Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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  */
ExtU ukf_U
real32_T aoa
unsigned char boolean_T
Definition: rtwtypes.h:64
real32_T x0[7]
DW ukf_DW
real32_T sideslip
ukf_init_type ukf_init
struct ukf_params_tag ukf_params_type
float real32_T
Definition: rtwtypes.h:55
void UKF_Wind_Estimator_initialize(void)
boolean_T P_not_empty
real32_T P0[49]
struct ukf_init_tag ukf_init_type
void UKF_Wind_Estimator_step(void)
boolean_T x_not_empty
ExtY ukf_Y
ukf_params_type ukf_params
real32_T va