Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
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>' */
30typedef 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) */
38typedef 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) */
49typedef 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 */
62
68
69/* Block signals and states (auto storage) */
70extern DW ukf_DW;
71
72/* External inputs (root inport signals with auto storage) */
73extern ExtU ukf_U;
74
75/* External outputs (root outports fed by signals with auto storage) */
76extern ExtY ukf_Y;
77
78/* Model entry point functions */
79extern void UKF_Wind_Estimator_initialize(void);
80extern void UKF_Wind_Estimator_step(void);
81
82/* Exported data declaration */
83
84/* Declaration for custom storage class: Struct */
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 */
real32_T aoa
ukf_init_type ukf_init
real32_T sideslip
struct ukf_params_tag ukf_params_type
ExtY ukf_Y
boolean_T x_not_empty
DW ukf_DW
void UKF_Wind_Estimator_initialize(void)
real32_T va
real32_T P0[49]
void UKF_Wind_Estimator_step(void)
struct ukf_init_tag ukf_init_type
ExtU ukf_U
ukf_params_type ukf_params
boolean_T P_not_empty
unsigned char boolean_T
Definition rtwtypes.h:64
float real32_T
Definition rtwtypes.h:55