Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
UKF_Wind_Estimator.h
Go to the documentation of this file.
1 /*
2  * File: UKF_Wind_Estimator.h
3  *
4  * Code generated for Simulink model 'UKF_Wind_Estimator'.
5  *
6  * Model version : 1.120
7  * Simulink Coder version : 8.10 (R2016a) 10-Feb-2016
8  * C/C++ source code generated on : Wed Nov 2 23:49:42 2016
9  *
10  * Target selection: ert.tlc
11  * Embedded hardware selection: Custom Processor->Custom
12  * Code generation objectives:
13  * 1. Execution efficiency
14  * 2. RAM efficiency
15  * Validation result: Not run
16  */
17 
18 #ifndef RTW_HEADER_UKF_Wind_Estimator_h_
19 #define RTW_HEADER_UKF_Wind_Estimator_h_
20 #include <math.h>
21 #include <string.h>
22 #ifndef UKF_Wind_Estimator_COMMON_INCLUDES_
23 # define UKF_Wind_Estimator_COMMON_INCLUDES_
24 #include "rtwtypes.h"
25 #endif /* UKF_Wind_Estimator_COMMON_INCLUDES_ */
26 
27 /* Macros for accessing real-time model data structure */
28 
29 /* Block signals and states (auto storage) for system '<Root>' */
30 typedef struct {
31  real32_T Delay1_DSTATE[7]; /* '<Root>/ Delay1' */
32  real32_T Delay_DSTATE[49]; /* '<Root>/ Delay' */
33  boolean_T x_not_empty; /* '<Root>/initialization' */
34  boolean_T P_not_empty; /* '<Root>/initialization' */
35 } DW;
36 
37 /* External inputs (root inport signals with auto storage) */
38 typedef struct {
39  real32_T rates[3]; /* '<Root>/rates' */
40  real32_T accel[3]; /* '<Root>/accel' */
41  real32_T q[4]; /* '<Root>/q' */
42  real32_T vk[3]; /* '<Root>/vk' */
43  real32_T va; /* '<Root>/va ' */
44  real32_T aoa; /* '<Root>/aoa' */
45  real32_T sideslip; /* '<Root>/sideslip' */
46 } ExtU;
47 
48 /* External outputs (root outports fed by signals with auto storage) */
49 typedef struct {
50  real32_T xout[7]; /* '<Root>/xout' */
51  real32_T Pout[49]; /* '<Root>/Pout' */
52 } ExtY;
53 
54 /* Type definition for custom storage class: Struct */
55 typedef struct ukf_init_tag {
57  real32_T P0[49];
62 
63 typedef struct ukf_params_tag {
64  real32_T Q[49];
65  real32_T R[36];
68 
69 /* Block signals and states (auto storage) */
70 extern DW ukf_DW;
71 
72 /* External inputs (root inport signals with auto storage) */
73 extern ExtU ukf_U;
74 
75 /* External outputs (root outports fed by signals with auto storage) */
76 extern ExtY ukf_Y;
77 
78 /* Model entry point functions */
79 extern void UKF_Wind_Estimator_initialize(void);
80 extern void UKF_Wind_Estimator_step(void);
81 
82 /* Exported data declaration */
83 
84 /* Declaration for custom storage class: Struct */
85 extern ukf_init_type ukf_init;
87 
88 /*-
89  * The generated code includes comments that allow you to trace directly
90  * back to the appropriate location in the model. The basic format
91  * is <system>/block_name, where system is the system number (uniquely
92  * assigned by Simulink) and block_name is the name of the block.
93  *
94  * Use the MATLAB hilite_system command to trace the generated code back
95  * to the model. For example,
96  *
97  * hilite_system('<S3>') - opens system 3
98  * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
99  *
100  * Here is the system hierarchy for this model
101  *
102  * '<Root>' : 'UKF_Wind_Estimator'
103  * '<S1>' : 'UKF_Wind_Estimator/UKF_correction'
104  * '<S2>' : 'UKF_Wind_Estimator/UKF_prediction'
105  * '<S3>' : 'UKF_Wind_Estimator/initialization'
106  * '<S4>' : 'UKF_Wind_Estimator/main'
107  * '<S5>' : 'UKF_Wind_Estimator/sigmas'
108  */
109 #endif /* RTW_HEADER_UKF_Wind_Estimator_h_ */
110 
111 /*
112  * File trailer for generated code.
113  *
114  * [EOF]
115  */
ukf_init_tag::alpha
real32_T alpha
Definition: UKF_Wind_Estimator.h:59
rtwtypes.h
ukf_params
ukf_params_type ukf_params
Definition: UKF_Wind_Estimator.c:24
boolean_T
unsigned char boolean_T
Definition: rtwtypes.h:64
ExtU
Definition: UKF_Wind_Estimator.h:38
ExtY
Definition: UKF_Wind_Estimator.h:49
ukf_params_type
struct ukf_params_tag ukf_params_type
DW::x_not_empty
boolean_T x_not_empty
Definition: UKF_Wind_Estimator.h:33
UKF_Wind_Estimator_step
void UKF_Wind_Estimator_step(void)
Definition: UKF_Wind_Estimator.c:1088
ukf_init_tag::P0
real32_T P0[49]
Definition: UKF_Wind_Estimator.h:57
ukf_init_tag::beta
real32_T beta
Definition: UKF_Wind_Estimator.h:60
ukf_Y
ExtY ukf_Y
Definition: UKF_Wind_Estimator.c:33
ExtU::va
real32_T va
Definition: UKF_Wind_Estimator.h:43
ukf_init_tag::x0
real32_T x0[7]
Definition: UKF_Wind_Estimator.h:56
DW::P_not_empty
boolean_T P_not_empty
Definition: UKF_Wind_Estimator.h:34
ukf_DW
DW ukf_DW
Definition: UKF_Wind_Estimator.c:27
UKF_Wind_Estimator_initialize
void UKF_Wind_Estimator_initialize(void)
Definition: UKF_Wind_Estimator.c:2098
ukf_params_tag::R
real32_T R[36]
Definition: UKF_Wind_Estimator.h:65
ukf_init_tag::ki
real32_T ki
Definition: UKF_Wind_Estimator.h:58
ukf_init_tag
Definition: UKF_Wind_Estimator.h:55
real32_T
float real32_T
Definition: rtwtypes.h:55
ukf_init_type
struct ukf_init_tag ukf_init_type
ukf_params_tag::dt
real32_T dt
Definition: UKF_Wind_Estimator.h:66
ukf_params_tag
Definition: UKF_Wind_Estimator.h:63
DW
Definition: UKF_Wind_Estimator.h:30
ExtU::sideslip
real32_T sideslip
Definition: UKF_Wind_Estimator.h:45
ukf_init
ukf_init_type ukf_init
Definition: UKF_Wind_Estimator.c:23
ExtU::aoa
real32_T aoa
Definition: UKF_Wind_Estimator.h:44
ukf_U
ExtU ukf_U
Definition: UKF_Wind_Estimator.c:30
ukf_params_tag::Q
real32_T Q[49]
Definition: UKF_Wind_Estimator.h:64