Project

General

Profile

« Previous | Next » 

Revision 4f47032a

Added by Pierre-Loïc Garoche over 3 years ago

Updates some expected outputs

View differences:

tests/silly/fullrosace_bloc.h
1 1
/* C code generated by lustrec
2
   SVN version number 0.1-405M
3
   Code is C99 compliant */
2
   Version number 1.5-701-unstable
3
   Code is C99 compliant
4
   Using (double) floating-point numbers */
4 5
   
5 6
#ifndef _FULLROSACE_BLOC
6 7
#define _FULLROSACE_BLOC
......
10 11

  
11 12

  
12 13
/* Import dependencies */
13
#include "math.h"
14
#include "fullrosace.h"
14
#include "lustrec_math.h"
15 15

  
16 16
/* Types definitions */
17 17

  
......
68 68
extern const double h_c;
69 69
extern const double Va_c;
70 70

  
71
/* Struct declarations */
71
/* Structs declarations */
72 72
struct Discrete_Closed_Loop_Model_74_prelude_Vz_filter_mem;
73 73
struct Discrete_Closed_Loop_Model_74_prelude_Vz_speed_control_mem;
74 74
struct Discrete_Closed_Loop_Model_74_prelude_Engine_mem;
......
98 98
/* Nodes declarations */
99 99
extern void Discrete_Closed_Loop_Model_74_prelude_Vz_filter_reset (struct Discrete_Closed_Loop_Model_74_prelude_Vz_filter_mem *self);
100 100

  
101
extern void Discrete_Closed_Loop_Model_74_prelude_Vz_filter_init (struct Discrete_Closed_Loop_Model_74_prelude_Vz_filter_mem *self);
102

  
103
extern void Discrete_Closed_Loop_Model_74_prelude_Vz_filter_clear (struct Discrete_Closed_Loop_Model_74_prelude_Vz_filter_mem *self);
104

  
101 105
extern void Discrete_Closed_Loop_Model_74_prelude_Vz_filter_step (double y1_1Vz,
102 106
                                                                  
103 107
                                                                  double (*y1_1Vz_filter),
......
106 110
extern void Discrete_Closed_Loop_Model_74_prelude_Vz_speed_control_reset (
107 111
struct Discrete_Closed_Loop_Model_74_prelude_Vz_speed_control_mem *self);
108 112

  
113
extern void Discrete_Closed_Loop_Model_74_prelude_Vz_speed_control_init (
114
struct Discrete_Closed_Loop_Model_74_prelude_Vz_speed_control_mem *self);
115

  
116
extern void Discrete_Closed_Loop_Model_74_prelude_Vz_speed_control_clear (
117
struct Discrete_Closed_Loop_Model_74_prelude_Vz_speed_control_mem *self);
118

  
109 119
extern void Discrete_Closed_Loop_Model_74_prelude_Vz_speed_control_step (
110 120
double y1_1Vz_c, double y1_1Vz_meas, double y1_1q_meas, double y1_1az_meas, 
111 121
double (*y1_1Vz_speed_control),
......
113 123

  
114 124
extern void Discrete_Closed_Loop_Model_74_prelude_Engine_reset (struct Discrete_Closed_Loop_Model_74_prelude_Engine_mem *self);
115 125

  
126
extern void Discrete_Closed_Loop_Model_74_prelude_Engine_init (struct Discrete_Closed_Loop_Model_74_prelude_Engine_mem *self);
127

  
128
extern void Discrete_Closed_Loop_Model_74_prelude_Engine_clear (struct Discrete_Closed_Loop_Model_74_prelude_Engine_mem *self);
129

  
116 130
extern void Discrete_Closed_Loop_Model_74_prelude_Engine_step (double y1_1delta_x_c,
117 131
                                                               
118 132
                                                               double (*y1_1Engine),
......
120 134

  
121 135
extern void Discrete_Closed_Loop_Model_74_prelude_Va_filter_reset (struct Discrete_Closed_Loop_Model_74_prelude_Va_filter_mem *self);
122 136

  
137
extern void Discrete_Closed_Loop_Model_74_prelude_Va_filter_init (struct Discrete_Closed_Loop_Model_74_prelude_Va_filter_mem *self);
138

  
139
extern void Discrete_Closed_Loop_Model_74_prelude_Va_filter_clear (struct Discrete_Closed_Loop_Model_74_prelude_Va_filter_mem *self);
140

  
123 141
extern void Discrete_Closed_Loop_Model_74_prelude_Va_filter_step (double y1_1Va,
124 142
                                                                  
125 143
                                                                  double (*y1_1Va_filter),
......
128 146
extern void Discrete_Closed_Loop_Model_74_prelude_Va_speed_control_reset (
129 147
struct Discrete_Closed_Loop_Model_74_prelude_Va_speed_control_mem *self);
130 148

  
149
extern void Discrete_Closed_Loop_Model_74_prelude_Va_speed_control_init (
150
struct Discrete_Closed_Loop_Model_74_prelude_Va_speed_control_mem *self);
151

  
152
extern void Discrete_Closed_Loop_Model_74_prelude_Va_speed_control_clear (
153
struct Discrete_Closed_Loop_Model_74_prelude_Va_speed_control_mem *self);
154

  
131 155
extern void Discrete_Closed_Loop_Model_74_prelude_Va_speed_control_step (
132 156
double y1_1Va_c, double y1_1Va_meas, double y1_1q_meas, double y1_1Vz_meas, 
133 157
double (*y1_1Va_speed_control),
......
135 159

  
136 160
extern void Discrete_Closed_Loop_Model_74_prelude_h_filter_reset (struct Discrete_Closed_Loop_Model_74_prelude_h_filter_mem *self);
137 161

  
162
extern void Discrete_Closed_Loop_Model_74_prelude_h_filter_init (struct Discrete_Closed_Loop_Model_74_prelude_h_filter_mem *self);
163

  
164
extern void Discrete_Closed_Loop_Model_74_prelude_h_filter_clear (struct Discrete_Closed_Loop_Model_74_prelude_h_filter_mem *self);
165

  
138 166
extern void Discrete_Closed_Loop_Model_74_prelude_h_filter_step (double y1_1h,
139 167
                                                                 
140 168
                                                                 double (*y1_1h_filter),
......
143 171
extern void Discrete_Closed_Loop_Model_74_prelude_FlightDynamics_reset (
144 172
struct Discrete_Closed_Loop_Model_74_prelude_FlightDynamics_mem *self);
145 173

  
174
extern void Discrete_Closed_Loop_Model_74_prelude_FlightDynamics_init (
175
struct Discrete_Closed_Loop_Model_74_prelude_FlightDynamics_mem *self);
176

  
177
extern void Discrete_Closed_Loop_Model_74_prelude_FlightDynamics_clear (
178
struct Discrete_Closed_Loop_Model_74_prelude_FlightDynamics_mem *self);
179

  
146 180
extern void Discrete_Closed_Loop_Model_74_prelude_FlightDynamics_step (
147 181
double y1_1T, double y1_1delta_e, 
148 182
double (*y1_1FlightDynamics), double (*y2_1FlightDynamics),
......
153 187
extern void Discrete_Closed_Loop_Model_74_prelude_AltitudeHold_reset (
154 188
struct Discrete_Closed_Loop_Model_74_prelude_AltitudeHold_mem *self);
155 189

  
190
extern void Discrete_Closed_Loop_Model_74_prelude_AltitudeHold_init (
191
struct Discrete_Closed_Loop_Model_74_prelude_AltitudeHold_mem *self);
192

  
193
extern void Discrete_Closed_Loop_Model_74_prelude_AltitudeHold_clear (
194
struct Discrete_Closed_Loop_Model_74_prelude_AltitudeHold_mem *self);
195

  
156 196
extern void Discrete_Closed_Loop_Model_74_prelude_AltitudeHold_step (
157 197
double y1_1hc, double y1_1hmeas, 
158 198
double (*y1_1AltitudeHold),
......
160 200

  
161 201
extern void Discrete_Closed_Loop_Model_74_prelude_az_filter_reset (struct Discrete_Closed_Loop_Model_74_prelude_az_filter_mem *self);
162 202

  
203
extern void Discrete_Closed_Loop_Model_74_prelude_az_filter_init (struct Discrete_Closed_Loop_Model_74_prelude_az_filter_mem *self);
204

  
205
extern void Discrete_Closed_Loop_Model_74_prelude_az_filter_clear (struct Discrete_Closed_Loop_Model_74_prelude_az_filter_mem *self);
206

  
163 207
extern void Discrete_Closed_Loop_Model_74_prelude_az_filter_step (double y1_1az,
164 208
                                                                  
165 209
                                                                  double (*y1_1az_filter),
......
167 211

  
168 212
extern void Discrete_Closed_Loop_Model_74_prelude_q_filter_reset (struct Discrete_Closed_Loop_Model_74_prelude_q_filter_mem *self);
169 213

  
214
extern void Discrete_Closed_Loop_Model_74_prelude_q_filter_init (struct Discrete_Closed_Loop_Model_74_prelude_q_filter_mem *self);
215

  
216
extern void Discrete_Closed_Loop_Model_74_prelude_q_filter_clear (struct Discrete_Closed_Loop_Model_74_prelude_q_filter_mem *self);
217

  
170 218
extern void Discrete_Closed_Loop_Model_74_prelude_q_filter_step (double y1_1q,
171 219
                                                                 
172 220
                                                                 double (*y1_1q_filter),
......
174 222

  
175 223
extern void Discrete_Closed_Loop_Model_74_prelude_Elevator_reset (struct Discrete_Closed_Loop_Model_74_prelude_Elevator_mem *self);
176 224

  
225
extern void Discrete_Closed_Loop_Model_74_prelude_Elevator_init (struct Discrete_Closed_Loop_Model_74_prelude_Elevator_mem *self);
226

  
227
extern void Discrete_Closed_Loop_Model_74_prelude_Elevator_clear (struct Discrete_Closed_Loop_Model_74_prelude_Elevator_mem *self);
228

  
177 229
extern void Discrete_Closed_Loop_Model_74_prelude_Elevator_step (double y1_1delta_e_c,
178 230
                                                                 
179 231
                                                                 double (*y1_1Elevator),
......
181 233

  
182 234
extern void Vz_filter_Discrete_State_Space_reset (struct Vz_filter_Discrete_State_Space_mem *self);
183 235

  
236
extern void Vz_filter_Discrete_State_Space_init (struct Vz_filter_Discrete_State_Space_mem *self);
237

  
238
extern void Vz_filter_Discrete_State_Space_clear (struct Vz_filter_Discrete_State_Space_mem *self);
239

  
184 240
extern void Vz_filter_Discrete_State_Space_step (double in1_1, 
185 241
                                                 double (*out1_1),
186 242
                                                 struct Vz_filter_Discrete_State_Space_mem *self);
......
203 259

  
204 260
extern void Vz_speed_control_Discrete_Time_Integrator_reset (struct Vz_speed_control_Discrete_Time_Integrator_mem *self);
205 261

  
262
extern void Vz_speed_control_Discrete_Time_Integrator_init (struct Vz_speed_control_Discrete_Time_Integrator_mem *self);
263

  
264
extern void Vz_speed_control_Discrete_Time_Integrator_clear (struct Vz_speed_control_Discrete_Time_Integrator_mem *self);
265

  
206 266
extern void Vz_speed_control_Discrete_Time_Integrator_step (double in1_1, 
207 267
                                                            double (*out1_1),
208 268
                                                            struct Vz_speed_control_Discrete_Time_Integrator_mem *self);
......
225 285

  
226 286
extern void Engine_DTIntegrator2_reset (struct Engine_DTIntegrator2_mem *self);
227 287

  
288
extern void Engine_DTIntegrator2_init (struct Engine_DTIntegrator2_mem *self);
289

  
290
extern void Engine_DTIntegrator2_clear (struct Engine_DTIntegrator2_mem *self);
291

  
228 292
extern void Engine_DTIntegrator2_step (double in1_1, 
229 293
                                       double (*out1_1),
230 294
                                       struct Engine_DTIntegrator2_mem *self);
231 295

  
232 296
extern void Va_filter_Discrete_State_Space_reset (struct Va_filter_Discrete_State_Space_mem *self);
233 297

  
298
extern void Va_filter_Discrete_State_Space_init (struct Va_filter_Discrete_State_Space_mem *self);
299

  
300
extern void Va_filter_Discrete_State_Space_clear (struct Va_filter_Discrete_State_Space_mem *self);
301

  
234 302
extern void Va_filter_Discrete_State_Space_step (double in1_1, 
235 303
                                                 double (*out1_1),
236 304
                                                 struct Va_filter_Discrete_State_Space_mem *self);
......
253 321

  
254 322
extern void Va_speed_control_DT_Integrator_reset (struct Va_speed_control_DT_Integrator_mem *self);
255 323

  
324
extern void Va_speed_control_DT_Integrator_init (struct Va_speed_control_DT_Integrator_mem *self);
325

  
326
extern void Va_speed_control_DT_Integrator_clear (struct Va_speed_control_DT_Integrator_mem *self);
327

  
256 328
extern void Va_speed_control_DT_Integrator_step (double in1_1, 
257 329
                                                 double (*out1_1),
258 330
                                                 struct Va_speed_control_DT_Integrator_mem *self);
259 331

  
260 332
extern void h_filter_Discrete_State_Space_reset (struct h_filter_Discrete_State_Space_mem *self);
261 333

  
334
extern void h_filter_Discrete_State_Space_init (struct h_filter_Discrete_State_Space_mem *self);
335

  
336
extern void h_filter_Discrete_State_Space_clear (struct h_filter_Discrete_State_Space_mem *self);
337

  
262 338
extern void h_filter_Discrete_State_Space_step (double in1_1, 
263 339
                                                double (*out1_1),
264 340
                                                struct h_filter_Discrete_State_Space_mem *self);
......
316 392

  
317 393
extern void FlightDynamics_DTIntegrator3_reset (struct FlightDynamics_DTIntegrator3_mem *self);
318 394

  
395
extern void FlightDynamics_DTIntegrator3_init (struct FlightDynamics_DTIntegrator3_mem *self);
396

  
397
extern void FlightDynamics_DTIntegrator3_clear (struct FlightDynamics_DTIntegrator3_mem *self);
398

  
319 399
extern void FlightDynamics_DTIntegrator3_step (double in1_1, double in1_2,
320 400
                                               double in1_3, double in1_4,
321 401
                                               double in1_5, 
......
344 424

  
345 425
extern void AltitudeHold_Memory_reset (struct AltitudeHold_Memory_mem *self);
346 426

  
427
extern void AltitudeHold_Memory_init (struct AltitudeHold_Memory_mem *self);
428

  
429
extern void AltitudeHold_Memory_clear (struct AltitudeHold_Memory_mem *self);
430

  
347 431
extern void AltitudeHold_Memory_step (double in1_1, 
348 432
                                      double (*out1_1),
349 433
                                      struct AltitudeHold_Memory_mem *self);
350 434

  
351 435
extern void AltitudeHold_Logic_SpeedCommand_reset (struct AltitudeHold_Logic_SpeedCommand_mem *self);
352 436

  
437
extern void AltitudeHold_Logic_SpeedCommand_init (struct AltitudeHold_Logic_SpeedCommand_mem *self);
438

  
439
extern void AltitudeHold_Logic_SpeedCommand_clear (struct AltitudeHold_Logic_SpeedCommand_mem *self);
440

  
353 441
extern void AltitudeHold_Logic_SpeedCommand_step (double y1_1Sum3,
354 442
                                                  double y1_1hmeas,
355 443
                                                  double y1_1hc,
......
359 447

  
360 448
extern void az_filter_Discrete_State_Space_reset (struct az_filter_Discrete_State_Space_mem *self);
361 449

  
450
extern void az_filter_Discrete_State_Space_init (struct az_filter_Discrete_State_Space_mem *self);
451

  
452
extern void az_filter_Discrete_State_Space_clear (struct az_filter_Discrete_State_Space_mem *self);
453

  
362 454
extern void az_filter_Discrete_State_Space_step (double in1_1, 
363 455
                                                 double (*out1_1),
364 456
                                                 struct az_filter_Discrete_State_Space_mem *self);
365 457

  
366 458
extern void q_filter_Discrete_State_Space_reset (struct q_filter_Discrete_State_Space_mem *self);
367 459

  
460
extern void q_filter_Discrete_State_Space_init (struct q_filter_Discrete_State_Space_mem *self);
461

  
462
extern void q_filter_Discrete_State_Space_clear (struct q_filter_Discrete_State_Space_mem *self);
463

  
368 464
extern void q_filter_Discrete_State_Space_step (double in1_1, 
369 465
                                                double (*out1_1),
370 466
                                                struct q_filter_Discrete_State_Space_mem *self);
......
387 483

  
388 484
extern void Elevator_DT_Integrator_reset (struct Elevator_DT_Integrator_mem *self);
389 485

  
486
extern void Elevator_DT_Integrator_init (struct Elevator_DT_Integrator_mem *self);
487

  
488
extern void Elevator_DT_Integrator_clear (struct Elevator_DT_Integrator_mem *self);
489

  
390 490
extern void Elevator_DT_Integrator_step (double in1_1, double in1_2, 
391 491
                                         double (*out1_1), double (*out1_2),
392 492
                                         struct Elevator_DT_Integrator_mem *self);
......
554 654

  
555 655
extern void AltitudeHold_AltitudeCaptureHold_reset (struct AltitudeHold_AltitudeCaptureHold_mem *self);
556 656

  
657
extern void AltitudeHold_AltitudeCaptureHold_init (struct AltitudeHold_AltitudeCaptureHold_mem *self);
658

  
659
extern void AltitudeHold_AltitudeCaptureHold_clear (struct AltitudeHold_AltitudeCaptureHold_mem *self);
660

  
557 661
extern void AltitudeHold_AltitudeCaptureHold_step (double y1_1h_meas,
558 662
                                                   double y1_1h_c,
559 663
                                                   double y1_1Vz_c, 
......
626 730

  
627 731
extern void AltitudeCaptureHold_DT_Integrator1_reset (struct AltitudeCaptureHold_DT_Integrator1_mem *self);
628 732

  
733
extern void AltitudeCaptureHold_DT_Integrator1_init (struct AltitudeCaptureHold_DT_Integrator1_mem *self);
734

  
735
extern void AltitudeCaptureHold_DT_Integrator1_clear (struct AltitudeCaptureHold_DT_Integrator1_mem *self);
736

  
629 737
extern void AltitudeCaptureHold_DT_Integrator1_step (double in1_1,
630 738
                                                     double y1_1Mux,
631 739
                                                     double y1_2Mux, 

Also available in: Unified diff