1 | /* |
2 | * FoilControlRaspberrySentinel_data.c |
3 | * |
4 | * Classroom License -- for classroom instructional use only. Not for |
5 | * government, commercial, academic research, or other organizational use. |
6 | * |
7 | * Code generation for model "FoilControlRaspberrySentinel". |
8 | * |
9 | * Model version : 1.24 |
10 | * Simulink Coder version : 8.11 (R2016b) 25-Aug-2016 |
11 | * C source code generated on : Wed Nov 23 14:06:32 2016 |
12 | * |
13 | * Target selection: ert.tlc |
14 | * Note: GRT includes extra infrastructure and instrumentation for prototyping |
15 | * Embedded hardware selection: ARM Compatible->ARM Cortex |
16 | * Code generation objectives: Unspecified |
17 | * Validation result: Not run |
18 | */ |
19 | |
20 | #include "FoilControlRaspberrySentinel.h" |
21 | #include "FoilControlRaspberrySentinel_private.h" |
22 | |
23 | /* Block parameters (auto storage) */ |
24 | P_FoilControlRaspberrySentine_T FoilControlRaspberrySentinel_P = { |
25 | /* Variable: km4pi |
26 | * Referenced by: '<Root>/Sentinel Calibration matrix' |
27 | */ |
28 | { 0.66790973106285545, 0.00058433753745576467, -0.086707669429715722, |
29 | 0.00078742986396080489, -0.52313725802792144, 0.512829912686384, |
30 | 0.00016915335958034294, -0.00051589724892789346, 0.098539356968350977 }, |
31 | 0.4, /* Mask Parameter: PIDController2DOF1_D |
32 | * Referenced by: '<S5>/Derivative Gain' |
33 | */ |
34 | 1.0, /* Mask Parameter: PIDController2DOF1_I |
35 | * Referenced by: '<S5>/Integral Gain' |
36 | */ |
37 | 1.0, /* Mask Parameter: PIDController2DOF1_Kb |
38 | * Referenced by: '<S5>/Kb' |
39 | */ |
40 | -0.3, /* Mask Parameter: PIDController2DOF1_LowerSaturat |
41 | * Referenced by: '<S5>/Saturate' |
42 | */ |
43 | 20.0, /* Mask Parameter: PIDController2DOF1_N |
44 | * Referenced by: '<S5>/Filter Coefficient' |
45 | */ |
46 | 3.0, /* Mask Parameter: PIDController2DOF1_P |
47 | * Referenced by: '<S5>/Proportional Gain' |
48 | */ |
49 | 0.3, /* Mask Parameter: PIDController2DOF1_UpperSaturat |
50 | * Referenced by: '<S5>/Saturate' |
51 | */ |
52 | 1.0, /* Mask Parameter: PIDController2DOF1_b |
53 | * Referenced by: '<S5>/Setpoint Weighting (Proportional)' |
54 | */ |
55 | 0.0, /* Mask Parameter: PIDController2DOF1_c |
56 | * Referenced by: '<S5>/Setpoint Weighting (Derivative)' |
57 | */ |
58 | 1U, /* Mask Parameter: CounterLimited_uplimit |
59 | * Referenced by: '<S11>/FixPt Switch' |
60 | */ |
61 | |
62 | /* Expression: [0,0,0,0;0,0,0,0;0,0,0,0;0,0,0,0] |
63 | * Referenced by: '<Root>/Constant2' |
64 | */ |
65 | { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, |
66 | 0.0 }, |
67 | 2.5, /* Expression: 2.5 |
68 | * Referenced by: '<Root>/Constant' |
69 | */ |
70 | 2.5, /* Expression: 2.5 |
71 | * Referenced by: '<Root>/Constant1' |
72 | */ |
73 | 0.02, /* Computed Parameter: Integrator_gainval |
74 | * Referenced by: '<S5>/Integrator' |
75 | */ |
76 | 0.0, /* Expression: InitialConditionForIntegrator |
77 | * Referenced by: '<S5>/Integrator' |
78 | */ |
79 | 0.02, /* Computed Parameter: Filter_gainval |
80 | * Referenced by: '<S5>/Filter' |
81 | */ |
82 | 0.0, /* Expression: InitialConditionForFilter |
83 | * Referenced by: '<S5>/Filter' |
84 | */ |
85 | 0.0, /* Expression: 0 |
86 | * Referenced by: '<S2>/Constant' |
87 | */ |
88 | 0U, /* Computed Parameter: Constant_Value_h |
89 | * Referenced by: '<S11>/Constant' |
90 | */ |
91 | 0U, /* Computed Parameter: Output_InitialCondition |
92 | * Referenced by: '<S3>/Output' |
93 | */ |
94 | 0U, /* Computed Parameter: Constant_Value_p |
95 | * Referenced by: '<S1>/Constant' |
96 | */ |
97 | 1U /* Computed Parameter: FixPtConstant_Value |
98 | * Referenced by: '<S10>/FixPt Constant' |
99 | */ |
100 | }; |
101 | |