1/*
2 * Academic License - for use in teaching, academic research, and meeting
3 * course requirements at degree granting institutions only. Not for
4 * government, commercial, or other organizational use.
5 *
6 * File: integ_Accel_and_Gyro_data.c
7 *
8 * Code generated for Simulink model 'integ_Accel_and_Gyro'.
9 *
10 * Model version : 1.7
11 * Simulink Coder version : 8.12 (R2017a) 16-Feb-2017
12 * C/C++ source code generated on : Tue Dec 05 15:47:02 2017
13 *
14 * Target selection: ert.tlc
15 * Embedded hardware selection: ARM Compatible->ARM Cortex
16 * Code generation objectives: Unspecified
17 * Validation result: Not run
18 */
19
20#include "integ_Accel_and_Gyro.h"
21#include "integ_Accel_and_Gyro_private.h"
22
23/* Block parameters (auto storage) */
24P_integ_Accel_and_Gyro_T integ_Accel_and_Gyro_P = {
25 -1.0, /* Expression: -1
26 * Referenced by: '<Root>/FXOS8700 6-Axes Sensor'
27 */
28 -1.0, /* Expression: -1
29 * Referenced by: '<S18>/I2C Master Read'
30 */
31 10.0, /* Expression: 10
32 * Referenced by: '<Root>/Step'
33 */
34 0.0, /* Expression: 0
35 * Referenced by: '<Root>/Step'
36 */
37 1.0, /* Expression: 1
38 * Referenced by: '<Root>/Step'
39 */
40 0.0F, /* Computed Parameter: Z_est_Y0
41 * Referenced by: '<S6>/Z_est'
42 */
43 0.0F, /* Computed Parameter: X_est_Y0
44 * Referenced by: '<S6>/X_est'
45 */
46 0.0F, /* Computed Parameter: X_prd_Y0
47 * Referenced by: '<S6>/X_prd'
48 */
49 0.0F, /* Computed Parameter: P_prd_Y0
50 * Referenced by: '<S6>/P_prd'
51 */
52
53 /* Computed Parameter: Constant3_Value
54 * Referenced by: '<S8>/Constant3'
55 */
56 { 1.0F, 0.0F, 0.0F, 0.0F, 0.5F, 1.0F, 0.0F, 0.0F, 0.0F, 0.0F, 1.0F, 0.0F, 0.0F,
57 0.0F, 0.5F, 1.0F },
58
59 /* Computed Parameter: Hcst_Value
60 * Referenced by: '<S8>/Hcst'
61 */
62 { 1.0F, 0.0F, 0.0F, 0.0F, 0.0F, 1.0F, 0.0F, 0.0F },
63
64 /* Computed Parameter: Hcst_t_Value
65 * Referenced by: '<S8>/Hcst_t'
66 */
67 { 1.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 1.0F, 0.0F },
68
69 /* Computed Parameter: Constant2_Value
70 * Referenced by: '<S8>/Constant2'
71 */
72 { 0.1F, 0.0F, 0.0F, 0.1F },
73
74 /* Computed Parameter: Constant4_Value
75 * Referenced by: '<S8>/Constant4'
76 */
77 { 1.0F, 0.5F, 0.0F, 0.0F, 0.0F, 1.0F, 0.0F, 0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 0.0F,
78 0.0F, 0.0F, 1.0F },
79
80 /* Computed Parameter: Constant5_Value
81 * Referenced by: '<S8>/Constant5'
82 */
83 { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.005F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F,
84 0.0F, 0.0F, 0.0F, 0.005F },
85 0.0F, /* Computed Parameter: x_filter_Y0
86 * Referenced by: '<S3>/x_filter'
87 */
88 0.0F, /* Computed Parameter: y_filter_Y0
89 * Referenced by: '<S3>/y_filter'
90 */
91 0.0F, /* Computed Parameter: x_meas_Y0
92 * Referenced by: '<S3>/x_meas'
93 */
94 0.0F, /* Computed Parameter: y_meas_Y0
95 * Referenced by: '<S3>/y_meas'
96 */
97 1.0F, /* Computed Parameter: DiscreteTimeIntegrator4_gainval
98 * Referenced by: '<S3>/Discrete-Time Integrator4'
99 */
100 0.0F, /* Computed Parameter: DiscreteTimeIntegrator4_IC
101 * Referenced by: '<S3>/Discrete-Time Integrator4'
102 */
103 1.0F, /* Computed Parameter: DiscreteTimeIntegrator6_gainval
104 * Referenced by: '<S3>/Discrete-Time Integrator6'
105 */
106 0.0F, /* Computed Parameter: DiscreteTimeIntegrator6_IC
107 * Referenced by: '<S3>/Discrete-Time Integrator6'
108 */
109 1.0F, /* Computed Parameter: DiscreteTimeIntegrator5_gainval
110 * Referenced by: '<S3>/Discrete-Time Integrator5'
111 */
112 0.0F, /* Computed Parameter: DiscreteTimeIntegrator5_IC
113 * Referenced by: '<S3>/Discrete-Time Integrator5'
114 */
115 1.0F, /* Computed Parameter: DiscreteTimeIntegrator7_gainval
116 * Referenced by: '<S3>/Discrete-Time Integrator7'
117 */
118 0.0F, /* Computed Parameter: DiscreteTimeIntegrator7_IC
119 * Referenced by: '<S3>/Discrete-Time Integrator7'
120 */
121 1.0F, /* Computed Parameter: DiscreteTimeIntegrator_gainval
122 * Referenced by: '<S3>/Discrete-Time Integrator'
123 */
124 0.0F, /* Computed Parameter: DiscreteTimeIntegrator_IC
125 * Referenced by: '<S3>/Discrete-Time Integrator'
126 */
127 1.0F, /* Computed Parameter: DiscreteTimeIntegrator2_gainval
128 * Referenced by: '<S3>/Discrete-Time Integrator2'
129 */
130 0.0F, /* Computed Parameter: DiscreteTimeIntegrator2_IC
131 * Referenced by: '<S3>/Discrete-Time Integrator2'
132 */
133 1.0F, /* Computed Parameter: DiscreteTimeIntegrator1_gainval
134 * Referenced by: '<S3>/Discrete-Time Integrator1'
135 */
136 0.0F, /* Computed Parameter: DiscreteTimeIntegrator1_IC
137 * Referenced by: '<S3>/Discrete-Time Integrator1'
138 */
139 1.0F, /* Computed Parameter: DiscreteTimeIntegrator3_gainval
140 * Referenced by: '<S3>/Discrete-Time Integrator3'
141 */
142 0.0F, /* Computed Parameter: DiscreteTimeIntegrator3_IC
143 * Referenced by: '<S3>/Discrete-Time Integrator3'
144 */
145
146 /* Computed Parameter: UnitDelay2_InitialCondition
147 * Referenced by: '<S4>/Unit Delay2'
148 */
149 { 0.006F, 0.01F, 0.006F, 0.01F },
150
151 /* Computed Parameter: UnitDelay3_InitialCondition
152 * Referenced by: '<S4>/Unit Delay3'
153 */
154 { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.005F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F,
155 0.0F, 0.0F, 0.0F, 0.005F },
156 36.53F, /* Computed Parameter: Constant_Value
157 * Referenced by: '<S2>/Constant'
158 */
159 1, /* Computed Parameter: Iterator_IterationLimit
160 * Referenced by: '<S6>/Iterator'
161 */
162 0, /* Computed Parameter: datar_Y0
163 * Referenced by: '<S18>/datar'
164 */
165 16384, /* Computed Parameter: Gain_Gain
166 * Referenced by: '<S2>/Gain'
167 */
168 32000, /* Computed Parameter: Gain2_Gain
169 * Referenced by: '<S2>/Gain2'
170 */
171 24672 /* Computed Parameter: Gain1_Gain
172 * Referenced by: '<S2>/Gain1'
173 */
174};
175
176/*
177 * File trailer for generated code.
178 *
179 * [EOF]
180 */
181