368 lines
6.9 KiB
C++
368 lines
6.9 KiB
C++
#include "control_Velocidad_cal.h"
|
|
#include "control_Velocidad.h"
|
|
|
|
/* Storage class 'PageSwitching' */
|
|
control_Velocidad_cal_type control_Velocidad_cal_impl = {
|
|
/* Mask Parameter: Difference1_ICPrevInput
|
|
* Referenced by: '<S14>/UD'
|
|
*/
|
|
0.0,
|
|
|
|
/* Mask Parameter: PWMGenerator2Level_MinMax
|
|
* Referenced by: '<S2>/Constant10'
|
|
*/
|
|
{ -1.0, 1.0 },
|
|
|
|
/* Mask Parameter: EdgeDetector_model
|
|
* Referenced by: '<S17>/Constant1'
|
|
*/
|
|
1.0,
|
|
|
|
/* Mask Parameter: EdgeDetector_ic
|
|
* Referenced by: '<S17>/Memory'
|
|
*/
|
|
false,
|
|
|
|
/* Expression: -1e6
|
|
* Referenced by: '<S21>/Out1'
|
|
*/
|
|
-1.0E+6,
|
|
|
|
/* Expression: [1 0]
|
|
* Referenced by: '<S17>/pos. edge'
|
|
*/
|
|
{ 1.0, 0.0 },
|
|
|
|
/* Expression: [0 1]
|
|
* Referenced by: '<S17>/neg. edge'
|
|
*/
|
|
{ 0.0, 1.0 },
|
|
|
|
/* Expression: [1 1]
|
|
* Referenced by: '<S17>/either edge'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: initCond
|
|
* Referenced by: '<S16>/ '
|
|
*/
|
|
0.0,
|
|
|
|
/* Expression: 50
|
|
* Referenced by: '<Root>/Constant1'
|
|
*/
|
|
50.0,
|
|
|
|
/* Computed Parameter: DiscreteTimeIntegrator_gainval
|
|
* Referenced by: '<S1>/Discrete-Time Integrator'
|
|
*/
|
|
3.8461538461538463E-5,
|
|
|
|
/* Expression: 0
|
|
* Referenced by: '<S1>/Discrete-Time Integrator'
|
|
*/
|
|
0.0,
|
|
|
|
/* Expression: 2*pi/3
|
|
* Referenced by: '<S1>/Constant1'
|
|
*/
|
|
2.0943951023931953,
|
|
|
|
/* Expression: -2*pi/3
|
|
* Referenced by: '<S1>/Constant2'
|
|
*/
|
|
-2.0943951023931953,
|
|
|
|
/* Expression: 1
|
|
* Referenced by: '<Root>/Saturation'
|
|
*/
|
|
1.0,
|
|
|
|
/* Expression: -1
|
|
* Referenced by: '<Root>/Saturation'
|
|
*/
|
|
-1.0,
|
|
|
|
/* Expression: sps.Delay
|
|
* Referenced by: '<S13>/Constant3'
|
|
*/
|
|
9.6153846153846154E-5,
|
|
|
|
/* Expression: sps.Period
|
|
* Referenced by: '<S13>/Constant1'
|
|
*/
|
|
0.00038461538461538462,
|
|
|
|
/* Expression: sps.Freq
|
|
* Referenced by: '<S13>/1\ib1'
|
|
*/
|
|
2600.0,
|
|
|
|
/* Expression: [0 2 0]
|
|
* Referenced by: '<S13>/1-D Lookup Table'
|
|
*/
|
|
{ 0.0, 2.0, 0.0 },
|
|
|
|
/* Expression: [0 .5 1]
|
|
* Referenced by: '<S13>/1-D Lookup Table'
|
|
*/
|
|
{ 0.0, 0.5, 1.0 },
|
|
|
|
/* Expression: 1
|
|
* Referenced by: '<S13>/Constant2'
|
|
*/
|
|
1.0,
|
|
|
|
/* Expression: 0.5
|
|
* Referenced by: '<S4>/Gain1'
|
|
*/
|
|
0.5,
|
|
|
|
/* Computed Parameter: Digitaloutput_P1_Size
|
|
* Referenced by: '<Root>/Digital output'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: id
|
|
* Referenced by: '<Root>/Digital output'
|
|
*/
|
|
1.0,
|
|
|
|
/* Computed Parameter: Digitaloutput_P2_Size
|
|
* Referenced by: '<Root>/Digital output'
|
|
*/
|
|
{ 1.0, 6.0 },
|
|
|
|
/* Expression: chan
|
|
* Referenced by: '<Root>/Digital output'
|
|
*/
|
|
{ 1.0, 2.0, 4.0, 5.0, 6.0, 7.0 },
|
|
|
|
/* Computed Parameter: Digitaloutput_P3_Size
|
|
* Referenced by: '<Root>/Digital output'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: vectorizeInput
|
|
* Referenced by: '<Root>/Digital output'
|
|
*/
|
|
0.0,
|
|
|
|
/* Computed Parameter: Digitaloutput_P4_Size
|
|
* Referenced by: '<Root>/Digital output'
|
|
*/
|
|
{ 1.0, 6.0 },
|
|
|
|
/* Expression: reset
|
|
* Referenced by: '<Root>/Digital output'
|
|
*/
|
|
{ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 },
|
|
|
|
/* Computed Parameter: Digitaloutput_P5_Size
|
|
* Referenced by: '<Root>/Digital output'
|
|
*/
|
|
{ 1.0, 6.0 },
|
|
|
|
/* Expression: init
|
|
* Referenced by: '<Root>/Digital output'
|
|
*/
|
|
{ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 },
|
|
|
|
/* Computed Parameter: Digitaloutput_P6_Size
|
|
* Referenced by: '<Root>/Digital output'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: ts
|
|
* Referenced by: '<Root>/Digital output'
|
|
*/
|
|
-1.0,
|
|
|
|
/* Expression: 2*pi
|
|
* Referenced by: '<S1>/Gain'
|
|
*/
|
|
6.2831853071795862,
|
|
|
|
/* Expression: 0
|
|
* Referenced by: '<S3>/Delay1'
|
|
*/
|
|
0.0,
|
|
|
|
/* Computed Parameter: Digitalinput_P1_Size
|
|
* Referenced by: '<Root>/Digital input'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: id
|
|
* Referenced by: '<Root>/Digital input'
|
|
*/
|
|
1.0,
|
|
|
|
/* Computed Parameter: Digitalinput_P2_Size
|
|
* Referenced by: '<Root>/Digital input'
|
|
*/
|
|
{ 1.0, 2.0 },
|
|
|
|
/* Expression: chan
|
|
* Referenced by: '<Root>/Digital input'
|
|
*/
|
|
{ 8.0, 9.0 },
|
|
|
|
/* Computed Parameter: Digitalinput_P3_Size
|
|
* Referenced by: '<Root>/Digital input'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: vectorizeOutput
|
|
* Referenced by: '<Root>/Digital input'
|
|
*/
|
|
0.0,
|
|
|
|
/* Computed Parameter: Digitalinput_P4_Size
|
|
* Referenced by: '<Root>/Digital input'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: ts
|
|
* Referenced by: '<Root>/Digital input'
|
|
*/
|
|
3.8461538461538463E-5,
|
|
|
|
/* Expression: -1
|
|
* Referenced by: '<S3>/Constant1'
|
|
*/
|
|
-1.0,
|
|
|
|
/* Expression: 1
|
|
* Referenced by: '<S3>/Constant2'
|
|
*/
|
|
1.0,
|
|
|
|
/* Expression: 0
|
|
* Referenced by: '<S3>/Delay'
|
|
*/
|
|
0.0,
|
|
|
|
/* Expression: eps
|
|
* Referenced by: '<S18>/Constant'
|
|
*/
|
|
2.2204460492503131E-16,
|
|
|
|
/* Computed Parameter: IO397AnalogInput_P1_Size
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: id
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
1.0,
|
|
|
|
/* Computed Parameter: IO397AnalogInput_P2_Size
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
{ 1.0, 3.0 },
|
|
|
|
/* Expression: chan
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
{ 1.0, 2.0, 3.0 },
|
|
|
|
/* Computed Parameter: IO397AnalogInput_P3_Size
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: trigger
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
1.0,
|
|
|
|
/* Computed Parameter: IO397AnalogInput_P4_Size
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: range
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
2.0,
|
|
|
|
/* Computed Parameter: IO397AnalogInput_P5_Size
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: ts
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
0.001,
|
|
|
|
/* Computed Parameter: IO397AnalogInput_P6_Size
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: p.AiTriggerMode
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
2.0,
|
|
|
|
/* Computed Parameter: IO397AnalogInput_P7_Size
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: p.AiClockDivider
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
0.0,
|
|
|
|
/* Computed Parameter: IO397AnalogInput_P8_Size
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: parAiInternalSignal
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
1.0,
|
|
|
|
/* Computed Parameter: IO397AnalogInput_P9_Size
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
{ 1.0, 1.0 },
|
|
|
|
/* Expression: parAiDioTriggerChannel
|
|
* Referenced by: '<Root>/IO397 Analog Input'
|
|
*/
|
|
1.0,
|
|
|
|
/* Expression: 5
|
|
* Referenced by: '<Root>/Gain'
|
|
*/
|
|
5.0,
|
|
|
|
/* Expression: 5
|
|
* Referenced by: '<Root>/Gain1'
|
|
*/
|
|
5.0,
|
|
|
|
/* Expression: 5
|
|
* Referenced by: '<Root>/Gain2'
|
|
*/
|
|
5.0,
|
|
|
|
/* Computed Parameter: OUT_Y0
|
|
* Referenced by: '<S19>/OUT'
|
|
*/
|
|
false,
|
|
|
|
/* Computed Parameter: OUT_Y0_p
|
|
* Referenced by: '<S20>/OUT'
|
|
*/
|
|
false
|
|
};
|
|
|
|
control_Velocidad_cal_type *control_Velocidad_cal = &control_Velocidad_cal_impl;
|