This commit is contained in:
Matthew GONG
2021-08-03 18:18:23 +08:00
parent c8c8a7f8a5
commit feccaeca10
11 changed files with 2657 additions and 3565 deletions
File diff suppressed because it is too large Load Diff
+184 -277
View File
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'ET39_SIL'.
*
* Model version : 1.1206
* Model version : 1.1209
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sun Aug 1 11:52:22 2021
* C/C++ source code generated on : Tue Aug 3 11:48:29 2021
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -295,46 +295,6 @@ typedef struct {
uint8_T is_c4_ET39_dummy_io; /* '<S1260>/tick' */
} DW_tick_ET39_SIL_p_T;
/* Block states (default storage) for system '<S1393>/Distance into gust (x)' */
typedef struct {
boolean_T Distanceintogustx_MODE; /* '<S1393>/Distance into gust (x)' */
} DW_Distanceintogustx_ET39_SIL_T;
/* Continuous states for system '<S1393>/Distance into gust (x)' */
typedef struct {
real_T DistanceintoGustxLimitedtogustlengthd_CSTATE_l;/* '<S1397>/Distance into Gust (x) (Limited to gust length d)' */
} X_Distanceintogustx_ET39_SIL_T;
/* State derivatives for system '<S1393>/Distance into gust (x)' */
typedef struct {
real_T DistanceintoGustxLimitedtogustlengthd_CSTATE_l;/* '<S1397>/Distance into Gust (x) (Limited to gust length d)' */
} XDot_Distanceintogustx_ET39_SIL_T;
/* State Disabled for system '<S1393>/Distance into gust (x)' */
typedef struct {
boolean_T DistanceintoGustxLimitedtogustlengthd_CSTATE_l;/* '<S1397>/Distance into Gust (x) (Limited to gust length d)' */
} XDis_Distanceintogustx_ET39_SIL_T;
/* Block states (default storage) for system '<S1393>/Distance into gust (y)' */
typedef struct {
boolean_T Distanceintogusty_MODE; /* '<S1393>/Distance into gust (y)' */
} DW_Distanceintogusty_ET39_SIL_T;
/* Continuous states for system '<S1393>/Distance into gust (y)' */
typedef struct {
real_T DistanceintoGustxLimitedtogustlengthd_CSTATE;/* '<S1398>/Distance into Gust (x) (Limited to gust length d) ' */
} X_Distanceintogusty_ET39_SIL_T;
/* State derivatives for system '<S1393>/Distance into gust (y)' */
typedef struct {
real_T DistanceintoGustxLimitedtogustlengthd_CSTATE;/* '<S1398>/Distance into Gust (x) (Limited to gust length d) ' */
} XDot_Distanceintogusty_ET39_SIL_T;
/* State Disabled for system '<S1393>/Distance into gust (y)' */
typedef struct {
boolean_T DistanceintoGustxLimitedtogustlengthd_CSTATE;/* '<S1398>/Distance into Gust (x) (Limited to gust length d) ' */
} XDis_Distanceintogusty_ET39_SIL_T;
/* Block signals (default storage) */
typedef struct {
C2 Merge; /* '<S40>/Merge' */
@@ -359,13 +319,13 @@ typedef struct {
mavlink_serial_control_t mav_serial_control;/* '<S652>/mav_serial_control' */
mavlink_serial_control_t ser_echo; /* '<S571>/traffic_ctrl' */
mavlink_autopilot_version_t ap_ver; /* '<S682>/send_auto_hw' */
mavlink_autopilot_version_t ap_ver_f;/* '<S571>/traffic_ctrl' */
mavlink_autopilot_version_t ap_ver_k;/* '<S571>/traffic_ctrl' */
mavlink_gps_raw_int_t gps; /* '<S599>/Chart' */
mavlink_battery_status_t bat; /* '<S595>/Chart' */
TrajPlan traj_out; /* '<S152>/landing_task' */
TrajPlan home; /* '<S154>/takeoff_task' */
TrajPlan traj_p; /* '<S154>/takeoff_task' */
TrajPlan traj_m; /* '<S146>/RTL_task' */
TrajPlan traj_n; /* '<S154>/takeoff_task' */
TrajPlan traj_o; /* '<S146>/RTL_task' */
mavlink_mission_item_int_t mav_mission_item_int;/* '<S658>/mav_mission_item_int' */
mavlink_mission_item_int_t send_req; /* '<S690>/Chart' */
mavlink_mission_item_int_t send_item;/* '<S691>/Chart_proc_mission_req' */
@@ -382,7 +342,7 @@ typedef struct {
mavlink_global_position_int_t ins; /* '<S598>/Chart' */
mavlink_emb_atmo_com_t atmos; /* '<S596>/Chart' */
mavlink_attitude_t att; /* '<S594>/Chart' */
CommandMsg msg_c; /* '<S683>/send_cmd' */
CommandMsg msg_o; /* '<S683>/send_cmd' */
CommandMsg cmd; /* '<S150>/mission_proc' */
mavlink_vfr_hud_t hud; /* '<S608>/Chart' */
mavlink_status_t mav_status; /* '<S676>/mav_parser' */
@@ -397,7 +357,7 @@ typedef struct {
mavlink_mission_request_t mav_mission_request;/* '<S660>/mav_mission_request' */
mavlink_mission_request_list_t mav_mission_request_list;/* '<S662>/mav_mission_request_list' */
mavlink_mission_request_int_t mission_req_int;/* '<S694>/Chart_proc_mission_upload' */
mavlink_mission_request_int_t mission_req_int_c;/* '<S571>/traffic_ctrl' */
mavlink_mission_request_int_t mission_req_int_k;/* '<S571>/traffic_ctrl' */
mavlink_mission_current_t cur; /* '<S575>/req_cur' */
mavlink_mission_current_t mission_cur;/* '<S571>/traffic_ctrl' */
mavlink_mission_count_t mav_mission_count;/* '<S656>/mav_mission_count' */
@@ -409,7 +369,7 @@ typedef struct {
mavlink_mission_ack_t ack; /* '<S575>/merge_ack' */
mavlink_mission_ack_t send_ack_b; /* '<S688>/Chart_proc_mission_clr_all' */
mavlink_mission_ack_t send_ack_a; /* '<S691>/Chart_proc_mission_req' */
mavlink_mission_ack_t mission_ack_m; /* '<S571>/traffic_ctrl' */
mavlink_mission_ack_t mission_ack_d; /* '<S571>/traffic_ctrl' */
mavlink_extended_sys_state_t ext_sys_stat;/* '<S597>/Chart' */
real_T Sum[3]; /* '<S1051>/Sum' */
real_T p1[3]; /* '<S941>/p1' */
@@ -467,27 +427,16 @@ typedef struct {
real_T Integrator1_br; /* '<S1312>/Integrator1' */
real_T Gain_m; /* '<S1312>/Gain' */
real_T agl_m; /* '<S937>/Sum1' */
real_T Transpose[9]; /* '<S1392>/Transpose' */
real_T Sqrt; /* '<S1392>/Sqrt' */
real_T MatrixMultiply[3]; /* '<S1392>/MatrixMultiply' */
real_T UnitConversion_e[3]; /* '<S1395>/Unit Conversion' */
real_T wind_North; /* '<S1396>/wind_North' */
real_T wind_East; /* '<S1396>/wind_East' */
real_T Sum2_d[3]; /* '<S1392>/Sum2' */
real_T Constant1; /* '<S1392>/Constant1' */
real_T Constant2; /* '<S1392>/Constant2' */
real_T Sum_n[2]; /* '<S1422>/Sum' */
real_T Sum_i[2]; /* '<S1421>/Sum' */
real_T Sum_c[2]; /* '<S1420>/Sum' */
real_T Sum1[2]; /* '<S1419>/Sum1' */
real_T Sum1_l[2]; /* '<S1418>/Sum1' */
real_T Sum_k[2]; /* '<S1417>/Sum' */
real_T DistanceintoGustxLimitedtogustlengthd;/* '<S1403>/Distance into Gust (x) (Limited to gust length d) ' */
real_T DistanceintoGustxLimitedtogustlengthd_n;/* '<S1402>/Distance into Gust (x) (Limited to gust length d) ' */
real_T DistanceintoGustxLimitedtogustlengthd_p;/* '<S1401>/Distance into Gust (x) (Limited to gust length d)' */
real_T DistanceintoGustxLimitedtogustlengthd_n2;/* '<S1399>/Distance into Gust (x) (Limited to gust length d) ' */
real_T DistanceintoGustxLimitedtogustlengthd_f;/* '<S1398>/Distance into Gust (x) (Limited to gust length d) ' */
real_T DistanceintoGustxLimitedtogustlengthd_ng;/* '<S1397>/Distance into Gust (x) (Limited to gust length d)' */
real_T Sum_n[2]; /* '<S1412>/Sum' */
real_T Sum_i[2]; /* '<S1411>/Sum' */
real_T Sum_c[2]; /* '<S1410>/Sum' */
real_T Sum1[2]; /* '<S1409>/Sum1' */
real_T Sum1_l[2]; /* '<S1408>/Sum1' */
real_T Sum_k[2]; /* '<S1407>/Sum' */
real_T TmpSignalConversionAtBytePackInport3[2];
real_T In1; /* '<S1310>/In1' */
real_T In1_j; /* '<S1309>/In1' */
@@ -533,7 +482,7 @@ typedef struct {
real_T VectorConcatenate[9]; /* '<S888>/Vector Concatenate' */
real_T rpm_h; /* '<S836>/rpm' */
real_T invIxx_c; /* '<S836>/inv Ixx' */
CommandAck ack_g; /* '<S46>/proc_cmd' */
CommandAck ack_d; /* '<S46>/proc_cmd' */
uint32_T TmpSignalConversionAtBytePackInport1[2];
uint32_T TmpSignalConversionAtBytePackInport1_p[2];
uint32_T TmpSignalConversionAtBytePackInport1_ph[2];
@@ -681,8 +630,8 @@ typedef struct {
real32_T max_gyro; /* '<S393>/Merge3' */
real32_T max_rpm_rot; /* '<S393>/Merge3' */
real32_T max_lift; /* '<S393>/Merge3' */
real32_T prop_rpm_lst[2]; /* '<S393>/Merge3' */
real32_T prop_pwm_lst[2]; /* '<S393>/Merge3' */
real32_T prop_rpm_lst[4]; /* '<S393>/Merge3' */
real32_T prop_pwm_lst[4]; /* '<S393>/Merge3' */
real32_T min_thr; /* '<S393>/Merge3' */
real32_T max_thr; /* '<S393>/Merge3' */
real32_T max_thrust; /* '<S393>/Merge3' */
@@ -782,6 +731,7 @@ typedef struct {
real32_T min_gamma; /* '<S393>/Merge3' */
real32_T max_steer; /* '<S393>/Merge3' */
real32_T P[4]; /* '<S393>/Merge3' */
real32_T min_rpm_prop; /* '<S393>/Merge3' */
real32_T critical_v_fwmc_e; /* '<S392>/Merge3' */
real32_T mc_effic_yaw_m; /* '<S392>/Merge3' */
real32_T min_dr_L1_m; /* '<S392>/Merge3' */
@@ -802,7 +752,7 @@ typedef struct {
real32_T rpm_rot_rb; /* '<S548>/Product' */
real32_T rot_rdu; /* '<S547>/Product' */
real32_T rpm_rot_lf; /* '<S546>/Product' */
real32_T rpm_rot_p; /* '<S550>/Product' */
real32_T rpm_rot_p; /* '<S550>/Switch1' */
real32_T RefArea_j; /* '<S392>/Merge3' */
real32_T trim_filter_num_p[2]; /* '<S392>/Merge3' */
real32_T fw_k_gamma_j; /* '<S392>/Merge3' */
@@ -823,14 +773,15 @@ typedef struct {
real32_T min_gamma_a; /* '<S392>/Merge3' */
real32_T max_steer_a; /* '<S392>/Merge3' */
real32_T P_n[4]; /* '<S392>/Merge3' */
real32_T min_rpm_prop_k; /* '<S392>/Merge3' */
real32_T RefSpan_b; /* '<S392>/Merge3' */
real32_T CLa_o; /* '<S392>/Merge3' */
real32_T Csb_n; /* '<S392>/Merge3' */
real32_T max_gyro_a; /* '<S392>/Merge3' */
real32_T max_rpm_rot_k; /* '<S392>/Merge3' */
real32_T max_lift_n; /* '<S392>/Merge3' */
real32_T prop_rpm_lst_b[2]; /* '<S392>/Merge3' */
real32_T prop_pwm_lst_o[2]; /* '<S392>/Merge3' */
real32_T prop_rpm_lst_b[4]; /* '<S392>/Merge3' */
real32_T prop_pwm_lst_o[4]; /* '<S392>/Merge3' */
real32_T min_thr_a; /* '<S392>/Merge3' */
real32_T max_thr_a; /* '<S392>/Merge3' */
real32_T max_thrust_k; /* '<S392>/Merge3' */
@@ -917,10 +868,10 @@ typedef struct {
real32_T f; /* '<S731>/Chart_proc_param_set' */
real32_T vn; /* '<S599>/Chart' */
real32_T ve; /* '<S599>/Chart' */
real32_T vn_m; /* '<S599>/Chart' */
real32_T ve_j; /* '<S599>/Chart' */
real32_T vn_b; /* '<S599>/Chart' */
real32_T ve_h; /* '<S599>/Chart' */
real32_T Merge_c; /* '<S615>/Merge' */
real32_T Sqrt_d; /* '<S616>/Sqrt' */
real32_T Sqrt; /* '<S616>/Sqrt' */
real32_T rdot; /* '<S557>/Merge2' */
real32_T dist; /* '<S557>/Merge2' */
real32_T bearing_base; /* '<S557>/Merge2' */
@@ -937,17 +888,17 @@ typedef struct {
real32_T params[7]; /* '<S159>/mav' */
real32_T gs_c_out; /* '<S155>/Chart' */
real32_T hdot_c_out; /* '<S152>/landing_task' */
real32_T gs_c_out_f; /* '<S152>/landing_task' */
real32_T gs_c_out_k; /* '<S152>/landing_task' */
real32_T gyro_c; /* '<S152>/landing_task' */
real32_T hdot_c; /* '<S154>/takeoff_task' */
real32_T as_c; /* '<S154>/takeoff_task' */
real32_T gs_c; /* '<S154>/takeoff_task' */
real32_T gyro_c_e; /* '<S154>/takeoff_task' */
real32_T gyro_c_j; /* '<S154>/takeoff_task' */
real32_T failsafe_asl; /* '<S154>/takeoff_task' */
real32_T gs_c_b; /* '<S146>/RTL_task' */
real32_T hdot_c_a; /* '<S146>/RTL_task' */
real32_T gs_c_a; /* '<S146>/RTL_task' */
real32_T hdot_c_b; /* '<S146>/RTL_task' */
real32_T h_c; /* '<S183>/Chart' */
real32_T params_a[7]; /* '<S40>/proc_cmd' */
real32_T params_n[7]; /* '<S40>/proc_cmd' */
int32_T ErrCode; /* '<S1353>/S-Function' */
int32_T ErrCode_k; /* '<S1356>/S-Function' */
int32_T ErrCode_j; /* '<S1359>/S-Function' */
@@ -972,47 +923,47 @@ typedef struct {
ENUM_semiauto_level3 level3_lgx; /* '<S175>/Chart' */
ENUM_mode mode; /* '<S155>/Chart' */
ENUM_mode mode_a; /* '<S152>/landing_task' */
ENUM_mode mode_p; /* '<S154>/takeoff_task' */
ENUM_mode mode_j; /* '<S146>/RTL_task' */
ENUM_mode mode_i; /* '<S183>/Chart' */
ENUM_mode mode_m; /* '<S154>/takeoff_task' */
ENUM_mode mode_e; /* '<S146>/RTL_task' */
ENUM_mode mode_f; /* '<S183>/Chart' */
ENUM_auto_level3 level3_auto_lgx; /* '<S146>/RTL_task' */
ENUM_VTOL_STATE vtol_state_out; /* '<S155>/Chart' */
ENUM_VTOL_STATE vtol_state_out_e; /* '<S152>/landing_task' */
ENUM_VTOL_STATE vtol_state; /* '<S154>/takeoff_task' */
ENUM_VTOL_STATE vtol_state_out_n; /* '<S146>/RTL_task' */
ENUM_VTOL_STATE vtol_state_out_f; /* '<S146>/RTL_task' */
ENUM_SystemState state; /* '<S154>/takeoff_task' */
ENUM_LANDED_STATE landed_state; /* '<S152>/landing_task' */
ENUM_LANDED_STATE landed_state_f; /* '<S154>/takeoff_task' */
ENUM_LANDED_STATE landed_state_e; /* '<S146>/RTL_task' */
ENUM_LANDED_STATE landed_state_e; /* '<S154>/takeoff_task' */
ENUM_LANDED_STATE landed_state_g; /* '<S146>/RTL_task' */
ENUM_LANDED_STATE landed_state_l; /* '<S183>/Chart' */
ENUM_CSAS_YAW CSAS_yaw_out; /* '<S155>/Chart' */
ENUM_CSAS_YAW CSAS_yaw; /* '<S152>/landing_task' */
ENUM_CSAS_YAW CSAS_yaw_h; /* '<S154>/takeoff_task' */
ENUM_CSAS_YAW CSAS_yaw_f; /* '<S146>/RTL_task' */
ENUM_CSAS_YAW CSAS_yaw_m; /* '<S146>/RTL_task' */
ENUM_CSAS_ROLL CSAS_roll_out; /* '<S155>/Chart' */
ENUM_CSAS_ROLL CSAS_roll; /* '<S152>/landing_task' */
ENUM_CSAS_ROLL CSAS_roll_h; /* '<S154>/takeoff_task' */
ENUM_CSAS_ROLL CSAS_roll_e; /* '<S146>/RTL_task' */
ENUM_CSAS_ROLL CSAS_roll_n; /* '<S154>/takeoff_task' */
ENUM_CSAS_ROLL CSAS_roll_b; /* '<S146>/RTL_task' */
ENUM_CSAS_PITCH CSAS_pitch_out; /* '<S155>/Chart' */
ENUM_CSAS_PITCH CSAS_pitch; /* '<S152>/landing_task' */
ENUM_CSAS_PITCH CSAS_pitch_c; /* '<S154>/takeoff_task' */
ENUM_CSAS_PITCH CSAS_pitch_i; /* '<S146>/RTL_task' */
ENUM_CSAS_PITCH CSAS_pitch_g; /* '<S154>/takeoff_task' */
ENUM_CSAS_PITCH CSAS_pitch_p; /* '<S146>/RTL_task' */
ENUM_AT AT_out; /* '<S155>/Chart' */
ENUM_AT AT; /* '<S152>/landing_task' */
ENUM_AT AT_k; /* '<S154>/takeoff_task' */
ENUM_AT AT_e; /* '<S146>/RTL_task' */
ENUM_AT AT_b; /* '<S154>/takeoff_task' */
ENUM_AT AT_p; /* '<S146>/RTL_task' */
ENUM_AG AG_out; /* '<S155>/Chart' */
ENUM_AG AG; /* '<S152>/landing_task' */
ENUM_AG AG_g; /* '<S154>/takeoff_task' */
ENUM_AG AG_p; /* '<S146>/RTL_task' */
ENUM_AG AG_n; /* '<S154>/takeoff_task' */
ENUM_AG AG_f; /* '<S146>/RTL_task' */
ENUM_AFCS_VERT AFCS_VERT_out; /* '<S155>/Chart' */
ENUM_AFCS_VERT AFCS_VERT; /* '<S152>/landing_task' */
ENUM_AFCS_VERT AFCS_VERT_k; /* '<S154>/takeoff_task' */
ENUM_AFCS_VERT AFCS_VERT_b; /* '<S146>/RTL_task' */
ENUM_AFCS_VERT AFCS_VERT_c; /* '<S154>/takeoff_task' */
ENUM_AFCS_VERT AFCS_VERT_f; /* '<S146>/RTL_task' */
ENUM_AFCS_LAT AFCS_LAT_out; /* '<S155>/Chart' */
ENUM_AFCS_LAT AFCS_LAT; /* '<S152>/landing_task' */
ENUM_AFCS_LAT AFCS_LAT_e; /* '<S154>/takeoff_task' */
ENUM_AFCS_LAT AFCS_LAT_f; /* '<S146>/RTL_task' */
ENUM_AFCS_LAT AFCS_LAT_l; /* '<S154>/takeoff_task' */
ENUM_AFCS_LAT AFCS_LAT_m; /* '<S146>/RTL_task' */
uint16_T UnitDelay_m; /* '<S1178>/Unit Delay' */
uint16_T len; /* '<S7>/Merge' */
uint16_T hal_rec_o2; /* '<S1385>/hal_rec' */
@@ -1080,8 +1031,8 @@ typedef struct {
uint16_T cur_np; /* '<S150>/mission_proc' */
uint16_T command_d; /* '<S159>/mav' */
uint16_T WP_out; /* '<S155>/Chart' */
uint16_T WP_out_i; /* '<S152>/landing_task' */
uint16_T WP_out_j; /* '<S154>/takeoff_task' */
uint16_T WP_out_h; /* '<S152>/landing_task' */
uint16_T WP_out_k; /* '<S154>/takeoff_task' */
uint16_T WP_cur; /* '<S43>/proc_set_ cur' */
uint16_T id; /* '<S40>/proc_cmd' */
uint16_T OutportBuffer_InsertedFor_gps_hdg_status_at_inport_0;/* '<S1286>/Constant' */
@@ -1168,7 +1119,7 @@ typedef struct {
uint8_T frame; /* '<S694>/Chart_proc_mission_upload' */
uint8_T autocontinue; /* '<S694>/Chart_proc_mission_upload' */
uint8_T ack_p; /* '<S721>/chat_clear_mission' */
uint8_T ack_d; /* '<S725>/chat_update_mission_item' */
uint8_T ack_dn; /* '<S725>/chat_update_mission_item' */
uint8_T id_g; /* '<S760>/Signal Copy' */
uint8_T seq_pp; /* '<S760>/Unit Delay' */
uint8_T mission_type_e; /* '<S688>/Chart_proc_mission_clr_all' */
@@ -1187,24 +1138,12 @@ typedef struct {
uint8_T BitwiseOperator; /* '<S620>/Bitwise Operator' */
uint8_T DataTypeConversion_h; /* '<S620>/Data Type Conversion' */
uint8_T engine_mode; /* '<S152>/landing_task' */
uint8_T engine_mode_c; /* '<S154>/takeoff_task' */
uint8_T engine_mode_m; /* '<S154>/takeoff_task' */
uint8_T Merge1; /* '<S46>/Merge1' */
boolean_T NOT; /* '<S6>/NOT' */
boolean_T NOT1; /* '<S6>/NOT1' */
boolean_T NOT3; /* '<S6>/NOT3' */
boolean_T NOT2; /* '<S6>/NOT2' */
boolean_T LogicalOperator2; /* '<S1394>/Logical Operator2' */
boolean_T HiddenBuf_InsertedFor_Distanceintogustx_at_inport_1;/* '<S1394>/Logical Operator2' */
boolean_T LogicalOperator1; /* '<S1394>/Logical Operator1' */
boolean_T HiddenBuf_InsertedFor_Distanceintogusty_at_inport_1;/* '<S1394>/Logical Operator1' */
boolean_T LogicalOperator3; /* '<S1394>/Logical Operator3' */
boolean_T HiddenBuf_InsertedFor_Distanceintogustz_at_inport_1;/* '<S1394>/Logical Operator3' */
boolean_T LogicalOperator2_f; /* '<S1393>/Logical Operator2' */
boolean_T HiddenBuf_InsertedFor_Distanceintogustx_at_inport_1_g;/* '<S1393>/Logical Operator2' */
boolean_T LogicalOperator1_k; /* '<S1393>/Logical Operator1' */
boolean_T HiddenBuf_InsertedFor_Distanceintogusty_at_inport_1_d;/* '<S1393>/Logical Operator1' */
boolean_T LogicalOperator3_m; /* '<S1393>/Logical Operator3' */
boolean_T HiddenBuf_InsertedFor_Distanceintogustz_at_inport_1_j;/* '<S1393>/Logical Operator3' */
boolean_T LogicalOperator; /* '<S1226>/Logical Operator' */
boolean_T enabled; /* '<S1262>/tick' */
boolean_T enabled_d; /* '<S1261>/tick' */
@@ -1234,16 +1173,16 @@ typedef struct {
boolean_T use_mission_traj; /* '<S152>/landing_task' */
boolean_T armed_out; /* '<S152>/landing_task' */
boolean_T landing_cmd_out; /* '<S152>/landing_task' */
boolean_T use_mission_traj_p; /* '<S154>/takeoff_task' */
boolean_T armed_out_n; /* '<S154>/takeoff_task' */
boolean_T use_mission_traj_d; /* '<S154>/takeoff_task' */
boolean_T armed_out_k; /* '<S154>/takeoff_task' */
boolean_T takeoff_cmd_out; /* '<S154>/takeoff_task' */
boolean_T abort_takeoff_cmd_out; /* '<S154>/takeoff_task' */
boolean_T landing_cmd_out_b; /* '<S154>/takeoff_task' */
boolean_T landing_cmd_out_e; /* '<S154>/takeoff_task' */
boolean_T use_mission_traj_f; /* '<S146>/RTL_task' */
boolean_T armed_out_l; /* '<S146>/RTL_task' */
boolean_T landing_cmd_out_f; /* '<S146>/RTL_task' */
boolean_T armed_out_h; /* '<S146>/RTL_task' */
boolean_T landing_cmd_out_b; /* '<S146>/RTL_task' */
boolean_T valid_ew; /* '<S42>/valid_checking' */
boolean_T ack_gy; /* '<S40>/proc_cmd' */
boolean_T ack_jd; /* '<S40>/proc_cmd' */
B_sbg_ecom_log_nav_data_frame_ET39_SIL_T sbg_ecom_log_nav_data_frame_g;/* '<S1209>/sbg_ecom_log_nav_data_frame' */
B_sbg_ecom_log_euler_data_frame_ET39_SIL_T sbg_ecom_log_euler_data_frame_c;/* '<S1209>/sbg_ecom_log_euler_data_frame' */
B_sbg_ecom_log_nav_data_frame_ET39_SIL_T sbg_ecom_log_nav_data_frame;/* '<S1196>/sbg_ecom_log_nav_data_frame' */
@@ -1275,7 +1214,7 @@ typedef struct {
MavMission m; /* '<S725>/chat_update_mission_item' */
CommandMsg msg_msgData; /* '<S683>/send_cmd' */
CommandMsg cmd_msgData; /* '<S150>/mission_proc' */
CommandMsg cmd_msgData_f; /* '<S40>/proc_cmd' */
CommandMsg cmd_msgData_a; /* '<S40>/proc_cmd' */
CommandMsg cmd2_msgData; /* '<S40>/proc_cmd' */
mavlink_param_value_t msg_msgData_e; /* '<S576>/proc_param_value' */
mavlink_param_value_t param_val_queue_msgData;/* '<S571>/traffic_ctrl' */
@@ -1284,17 +1223,17 @@ typedef struct {
MavFence f; /* '<S725>/chat_update_mission_item' */
MavRally r; /* '<S725>/chat_update_mission_item' */
real_T UnitDelay_1_DSTATE[3]; /* '<Root>/Unit Delay' */
real_T UnitDelay_4_DSTATE[9]; /* '<Root>/Unit Delay' */
real_T UnitDelay_11_DSTATE; /* '<Root>/Unit Delay' */
real_T UnitDelay_12_DSTATE; /* '<Root>/Unit Delay' */
real_T UnitDelay_DSTATE_b[2]; /* '<S1422>/Unit Delay' */
real_T UnitDelay_DSTATE_i[2]; /* '<S1421>/Unit Delay' */
real_T UnitDelay_DSTATE_m[2]; /* '<S1420>/Unit Delay' */
real_T UnitDelay_DSTATE_k[2]; /* '<S1419>/Unit Delay' */
real_T UnitDelay1_DSTATE[2]; /* '<S1419>/Unit Delay1' */
real_T UnitDelay_DSTATE_kt[2]; /* '<S1418>/Unit Delay' */
real_T UnitDelay1_DSTATE_p[2]; /* '<S1418>/Unit Delay1' */
real_T UnitDelay_DSTATE_ix[2]; /* '<S1417>/Unit Delay' */
real_T UnitDelay_4_DSTATE[9]; /* '<Root>/Unit Delay' */
real_T UnitDelay_DSTATE_b[2]; /* '<S1412>/Unit Delay' */
real_T UnitDelay_DSTATE_i[2]; /* '<S1411>/Unit Delay' */
real_T UnitDelay_DSTATE_m[2]; /* '<S1410>/Unit Delay' */
real_T UnitDelay_DSTATE_k[2]; /* '<S1409>/Unit Delay' */
real_T UnitDelay1_DSTATE[2]; /* '<S1409>/Unit Delay1' */
real_T UnitDelay_DSTATE_kt[2]; /* '<S1408>/Unit Delay' */
real_T UnitDelay1_DSTATE_p[2]; /* '<S1408>/Unit Delay1' */
real_T UnitDelay_DSTATE_ix[2]; /* '<S1407>/Unit Delay' */
real_T DiscreteTransferFcn_states[6];/* '<S1274>/Discrete Transfer Fcn' */
real_T DiscreteTransferFcn_states_j[6];/* '<S1285>/Discrete Transfer Fcn' */
real_T UnitDelay_DSTATE_j[3]; /* '<S1241>/Unit Delay' */
@@ -1304,7 +1243,7 @@ typedef struct {
real_T PrevY_f; /* '<S6>/Backlash4' */
real_T PrevY_c; /* '<S6>/Backlash3' */
real_T Product2_DWORK4[9]; /* '<S943>/Product2' */
real_T NextOutput[4]; /* '<S1416>/White Noise' */
real_T NextOutput[4]; /* '<S1406>/White Noise' */
real_T DiscreteTransferFcn_tmp[3]; /* '<S1274>/Discrete Transfer Fcn' */
real_T DiscreteTransferFcn_tmp_k[3]; /* '<S1285>/Discrete Transfer Fcn' */
real_T qbar0; /* '<S1237>/zero_set' */
@@ -1327,7 +1266,7 @@ typedef struct {
real_T last_lat1_in; /* '<S562>/nav_corner' */
real_T last_lon1_in; /* '<S562>/nav_corner' */
CommandAck ack_msgData; /* '<S569>/Chart_send_ack' */
CommandAck ack_msgData_f; /* '<S46>/proc_cmd' */
CommandAck ack_msgData_d; /* '<S46>/proc_cmd' */
mavlink_mission_count_t mission_cnt_msgData;/* '<S694>/Chart_proc_mission_upload' */
mavlink_mission_count_t send_cnt_msgData;/* '<S689>/Chart' */
mavlink_mission_count_t send_cnt_msgData_n;/* '<S692>/Chart_proc_mission_req_lst' */
@@ -1335,7 +1274,7 @@ typedef struct {
mavlink_mission_ack_t mission_ack_msgData;/* '<S694>/Chart_proc_mission_upload' */
mavlink_mission_ack_t ack1_msgData; /* '<S575>/merge_ack' */
mavlink_mission_ack_t ack2_msgData; /* '<S575>/merge_ack' */
mavlink_mission_ack_t ack_msgData_f4;/* '<S575>/merge_ack' */
mavlink_mission_ack_t ack_msgData_f; /* '<S575>/merge_ack' */
mavlink_mission_ack_t ack3_msgData; /* '<S575>/merge_ack' */
mavlink_mission_ack_t send_ack_msgData_m;/* '<S688>/Chart_proc_mission_clr_all' */
mavlink_mission_ack_t send_ack_msgData_p;/* '<S691>/Chart_proc_mission_req' */
@@ -1590,8 +1529,8 @@ typedef struct {
void* serial_echoline_msgInterface; /* '<S571>/traffic_ctrl' */
void* serial_echoline_msgHandle; /* '<S571>/traffic_ctrl' */
void* serial_echoline_msgDataPtr; /* '<S571>/traffic_ctrl' */
void* send_ack_msgInterface_k; /* '<S569>/Chart_send_ack' */
void* ack_msgInterface_a; /* '<S569>/Chart_send_ack' */
void* send_ack_msgInterface_h; /* '<S569>/Chart_send_ack' */
void* ack_msgInterface_i; /* '<S569>/Chart_send_ack' */
void* ack_msgHandle; /* '<S569>/Chart_send_ack' */
void* ack_msgDataPtr; /* '<S569>/Chart_send_ack' */
void* cmd_msgInterface; /* '<S150>/mission_proc' */
@@ -1604,7 +1543,7 @@ typedef struct {
void* cmd2_msgInterface; /* '<S40>/proc_cmd' */
void* cmd2_msgHandle; /* '<S40>/proc_cmd' */
void* cmd2_msgDataPtr; /* '<S40>/proc_cmd' */
void* ack_msgInterface_e; /* '<S46>/proc_cmd' */
void* ack_msgInterface_n; /* '<S46>/proc_cmd' */
real32_T DiscreteTransferFcn_states_f;/* '<S552>/Discrete Transfer Fcn' */
real32_T DiscreteTransferFcn1_states;/* '<S552>/Discrete Transfer Fcn1' */
real32_T Delay_DSTATE; /* '<S522>/Delay' */
@@ -1662,9 +1601,9 @@ typedef struct {
uint32_T m_bpIndex_oc; /* '<S857>/ct' */
uint32_T m_bpIndex_ij; /* '<S855>/cq' */
uint32_T m_bpIndex_g; /* '<S839>/mot' */
uint32_T RandSeed[4]; /* '<S1416>/White Noise' */
uint32_T PreLookUpIndexSearchaltitude_DWORK1;/* '<S1423>/PreLook-Up Index Search (altitude)' */
uint32_T PreLookUpIndexSearchprobofexceed_DWORK1;/* '<S1423>/PreLook-Up Index Search (prob of exceed)' */
uint32_T RandSeed[4]; /* '<S1406>/White Noise' */
uint32_T PreLookUpIndexSearchaltitude_DWORK1;/* '<S1413>/PreLook-Up Index Search (altitude)' */
uint32_T PreLookUpIndexSearchprobofexceed_DWORK1;/* '<S1413>/PreLook-Up Index Search (prob of exceed)' */
uint32_T last_gps1_vel_seq; /* '<S7>/record_traffic_ctrl' */
uint32_T last_gps1_pos_seq; /* '<S7>/record_traffic_ctrl' */
uint32_T last_gps1_hdt_seq; /* '<S7>/record_traffic_ctrl' */
@@ -1682,9 +1621,9 @@ typedef struct {
uint32_T m_bpIndex_d; /* '<S846>/cq' */
uint32_T m_bpIndex_dl; /* '<S848>/ct' */
uint32_T wait_time; /* '<S571>/traffic_ctrl' */
uint32_T temporalCounter_i1_h; /* '<S571>/traffic_ctrl' */
uint32_T temporalCounter_i1_dp; /* '<S571>/traffic_ctrl' */
uint32_T tick_abort; /* '<S154>/takeoff_task' */
uint32_T temporalCounter_i1_a; /* '<S154>/takeoff_task' */
uint32_T temporalCounter_i1_bm; /* '<S154>/takeoff_task' */
uint32_T temporalCounter_i1_e; /* '<S41>/check_conn' */
uint32_T m_bpIndex_l; /* '<S16>/1-D Lookup Table1' */
uint32_T m_bpIndex_iw; /* '<S16>/1-D Lookup Table3' */
@@ -1739,17 +1678,17 @@ typedef struct {
uint16_T UnitDelay1_DSTATE_l; /* '<S1>/Unit Delay1' */
uint16_T UnitDelay2_1_DSTATE[18]; /* '<S1>/Unit Delay2' */
int16_T left; /* '<S7>/record_traffic_ctrl' */
uint16_T temporalCounter_i1_hn; /* '<S1226>/check_gps_valid' */
uint16_T temporalCounter_i1_h; /* '<S1226>/check_gps_valid' */
uint16_T last_seq; /* '<S789>/Chart' */
uint16_T last_seq_e; /* '<S786>/Chart' */
uint16_T last_seq_h; /* '<S786>/Chart' */
uint16_T last_seq_k; /* '<S785>/Chart' */
uint16_T last_seq_i; /* '<S780>/Chart' */
uint16_T last_seq_o; /* '<S776>/Chart' */
uint16_T last_seq_h; /* '<S775>/Chart' */
uint16_T last_seq_p; /* '<S776>/Chart' */
uint16_T last_seq_g; /* '<S775>/Chart' */
uint16_T param_req_read_msgData; /* '<S576>/proc_param_value' */
uint16_T param_req_lst_msgData; /* '<S576>/proc_param_value' */
uint16_T param_set_msgData; /* '<S576>/proc_param_value' */
uint16_T temporalCounter_i1_ar; /* '<S575>/req_cur' */
uint16_T temporalCounter_i1_a; /* '<S575>/req_cur' */
uint16_T req_cur_msgData; /* '<S575>/req_cur' */
uint16_T set_cur_msgData; /* '<S575>/req_cur' */
uint16_T count; /* '<S694>/Chart_proc_mission_upload' */
@@ -1757,9 +1696,9 @@ typedef struct {
uint16_T resp_msgData; /* '<S731>/Chart_proc_param_set' */
uint16_T resp_msgData_i; /* '<S729>/Chart' */
uint16_T resp_msgData_k; /* '<S730>/Chart_proc_param_req_read' */
uint16_T temporalCounter_i1_f; /* '<S543>/Chart' */
uint16_T temporalCounter_i1_i; /* '<S152>/landing_task' */
uint16_T temporalCounter_i1_l; /* '<S146>/RTL_task' */
uint16_T temporalCounter_i1_es; /* '<S543>/Chart' */
uint16_T temporalCounter_i1_c; /* '<S152>/landing_task' */
uint16_T temporalCounter_i1_cg; /* '<S146>/RTL_task' */
uint16_T set_cur_msgData_h; /* '<S43>/proc_set_ cur' */
uint16_T last_cnt; /* '<S41>/check_conn' */
uint8_T UnitDelay2_3_DSTATE; /* '<S1>/Unit Delay2' */
@@ -1773,8 +1712,6 @@ typedef struct {
int8_T If_ActiveSubsystem_a; /* '<S1316>/If' */
int8_T If1_ActiveSubsystem; /* '<S983>/If1' */
int8_T If1_ActiveSubsystem_i; /* '<S998>/If1' */
int8_T ifHeightMaxlowaltitudeelseifHeightMinisotropicaltitude_ActiveSu;/* '<S1411>/if Height < Max low altitude elseif Height > Min isotropic altitude ' */
int8_T ifHeightMaxlowaltitudeelseifHeightMinisotropicaltitude_Active_h;/* '<S1412>/if Height < Max low altitude elseif Height > Min isotropic altitude ' */
int8_T If_ActiveSubsystem_h; /* '<S1232>/If' */
int8_T If1_ActiveSubsystem_j; /* '<S39>/If1' */
int8_T If1_ActiveSubsystem_e; /* '<S42>/If1' */
@@ -1851,25 +1788,25 @@ typedef struct {
uint8_T is_c8_pack_parser_g; /* '<S1181>/parser' */
uint8_T is_active_c68_ET39_autopilot;/* '<S789>/Chart' */
uint8_T is_c68_ET39_autopilot; /* '<S789>/Chart' */
uint8_T temporalCounter_i1_ha; /* '<S789>/Chart' */
uint8_T temporalCounter_i1_k; /* '<S789>/Chart' */
uint8_T is_active_c60_ET39_autopilot;/* '<S786>/Chart' */
uint8_T is_c60_ET39_autopilot; /* '<S786>/Chart' */
uint8_T temporalCounter_i1_o; /* '<S786>/Chart' */
uint8_T temporalCounter_i1_af; /* '<S786>/Chart' */
uint8_T is_active_c51_ET39_autopilot;/* '<S785>/Chart' */
uint8_T is_c51_ET39_autopilot; /* '<S785>/Chart' */
uint8_T temporalCounter_i1_p; /* '<S785>/Chart' */
uint8_T temporalCounter_i1_f; /* '<S785>/Chart' */
uint8_T is_active_c50_ET39_autopilot;/* '<S780>/Chart' */
uint8_T is_c50_ET39_autopilot; /* '<S780>/Chart' */
uint8_T temporalCounter_i1_o4; /* '<S780>/Chart' */
uint8_T temporalCounter_i1_j; /* '<S780>/Chart' */
uint8_T is_active_c49_ET39_autopilot;/* '<S776>/Chart' */
uint8_T is_c49_ET39_autopilot; /* '<S776>/Chart' */
uint8_T temporalCounter_i1_j; /* '<S776>/Chart' */
uint8_T temporalCounter_i1_m; /* '<S776>/Chart' */
uint8_T is_active_c48_ET39_autopilot;/* '<S775>/Chart' */
uint8_T is_c48_ET39_autopilot; /* '<S775>/Chart' */
uint8_T temporalCounter_i1_pc; /* '<S775>/Chart' */
uint8_T temporalCounter_i1_n; /* '<S775>/Chart' */
uint8_T is_active_c80_ET39_autopilot;/* '<S579>/Chart' */
uint8_T is_c80_ET39_autopilot; /* '<S579>/Chart' */
uint8_T temporalCounter_i1_bs; /* '<S579>/Chart' */
uint8_T temporalCounter_i1_ey; /* '<S579>/Chart' */
uint8_T is_active_c31_mavlink_utils; /* '<S576>/proc_param_value' */
uint8_T is_c31_mavlink_utils; /* '<S576>/proc_param_value' */
uint8_T temporalCounter_i1_jz; /* '<S576>/proc_param_value' */
@@ -1877,7 +1814,7 @@ typedef struct {
uint8_T is_active_c29_mavlink_utils; /* '<S694>/Chart_proc_mission_upload' */
uint8_T is_c29_mavlink_utils; /* '<S694>/Chart_proc_mission_upload' */
uint8_T retry; /* '<S694>/Chart_proc_mission_upload' */
uint8_T temporalCounter_i1_n; /* '<S694>/Chart_proc_mission_upload' */
uint8_T temporalCounter_i1_nk; /* '<S694>/Chart_proc_mission_upload' */
uint8_T is_active_c22_mavlink_utils; /* '<S575>/merge_ack' */
uint8_T is_active_c45_ET39_autopilot;/* '<S571>/traffic_ctrl' */
uint8_T is_c45_ET39_autopilot; /* '<S571>/traffic_ctrl' */
@@ -1909,7 +1846,7 @@ typedef struct {
uint8_T is_c48_mission_proc; /* '<S150>/mission_proc' */
uint8_T is_active_c11_ET39_autopilot;/* '<S155>/Chart' */
uint8_T is_c11_ET39_autopilot; /* '<S155>/Chart' */
uint8_T temporalCounter_i1_hc; /* '<S155>/Chart' */
uint8_T temporalCounter_i1_ed; /* '<S155>/Chart' */
uint8_T is_active_c26_ET39_autopilot;/* '<S152>/landing_task' */
uint8_T is_c26_ET39_autopilot; /* '<S152>/landing_task' */
uint8_T is_active_c27_ET39_autopilot;/* '<S154>/takeoff_task' */
@@ -1927,7 +1864,7 @@ typedef struct {
uint8_T is_active_c29_ET39_autopilot;/* '<S175>/Chart' */
uint8_T is_c29_ET39_autopilot; /* '<S175>/Chart' */
uint8_T last_aux_mode; /* '<S175>/Chart' */
uint8_T temporalCounter_i1_k; /* '<S175>/Chart' */
uint8_T temporalCounter_i1_cr; /* '<S175>/Chart' */
uint8_T is_active_c14_ET39_autopilot;/* '<S135>/Chart' */
uint8_T is_c14_ET39_autopilot; /* '<S135>/Chart' */
uint8_T is_active_c12_ET39_autopilot;/* '<S129>/TopLevelSwitch' */
@@ -1939,7 +1876,7 @@ typedef struct {
uint8_T seq1_p; /* '<S42>/valid_checking' */
uint8_T id1_i; /* '<S42>/valid_checking' */
uint8_T cnt_j; /* '<S42>/valid_checking' */
uint8_T temporalCounter_i1_c; /* '<S42>/valid_checking' */
uint8_T temporalCounter_i1_c3; /* '<S42>/valid_checking' */
uint8_T is_active_c13_C2_proc_comm; /* '<S41>/check_conn' */
uint8_T is_c13_C2_proc_comm; /* '<S41>/check_conn' */
uint8_T is_active_c22_ET39_autopilot;/* '<S40>/proc_cmd' */
@@ -2019,23 +1956,17 @@ typedef struct {
boolean_T cmd_isValid; /* '<S40>/proc_cmd' */
boolean_T cmd2_isValid; /* '<S40>/proc_cmd' */
boolean_T wind_model_MODE; /* '<S9>/wind_model' */
boolean_T Hwgwz_MODE; /* '<S1407>/Hwgw(z)' */
boolean_T Hvgwz_MODE; /* '<S1407>/Hvgw(z)' */
boolean_T Hugwz_MODE; /* '<S1407>/Hugw(z)' */
boolean_T Hrgw_MODE; /* '<S1406>/Hrgw' */
boolean_T Hqgw_MODE; /* '<S1406>/Hqgw' */
boolean_T Hpgw_MODE; /* '<S1406>/Hpgw' */
boolean_T Hwgwz_MODE; /* '<S1397>/Hwgw(z)' */
boolean_T Hvgwz_MODE; /* '<S1397>/Hvgw(z)' */
boolean_T Hugwz_MODE; /* '<S1397>/Hugw(z)' */
boolean_T Hrgw_MODE; /* '<S1396>/Hrgw' */
boolean_T Hqgw_MODE; /* '<S1396>/Hqgw' */
boolean_T Hpgw_MODE; /* '<S1396>/Hpgw' */
boolean_T Subsystem3_MODE; /* '<S6>/Subsystem3' */
boolean_T Subsystem2_MODE; /* '<S6>/Subsystem2' */
boolean_T Subsystem1_MODE; /* '<S6>/Subsystem1' */
boolean_T Subsystem_MODE; /* '<S6>/Subsystem' */
boolean_T enable_gear_MODE; /* '<S813>/enable_gear' */
DW_Distanceintogusty_ET39_SIL_T Distanceintogustz_l;/* '<S1394>/Distance into gust (z)' */
DW_Distanceintogusty_ET39_SIL_T Distanceintogusty_e;/* '<S1394>/Distance into gust (y)' */
DW_Distanceintogustx_ET39_SIL_T Distanceintogustx_j;/* '<S1394>/Distance into gust (x)' */
DW_Distanceintogusty_ET39_SIL_T Distanceintogustz;/* '<S1393>/Distance into gust (z)' */
DW_Distanceintogusty_ET39_SIL_T Distanceintogusty;/* '<S1393>/Distance into gust (y)' */
DW_Distanceintogustx_ET39_SIL_T Distanceintogustx;/* '<S1393>/Distance into gust (x)' */
DW_tick_ET39_SIL_p_T sf_tick_h; /* '<S1261>/tick' */
DW_tick_ET39_SIL_p_T sf_tick_k; /* '<S1260>/tick' */
DW_tick_ET39_SIL_T sf_tick_o; /* '<S1258>/tick' */
@@ -2111,12 +2042,6 @@ typedef struct {
real_T Integrator1_CSTATE_n; /* '<S1315>/Integrator1' */
real_T Integrator1_CSTATE_i; /* '<S1313>/Integrator1' */
real_T Integrator1_CSTATE_j; /* '<S1312>/Integrator1' */
X_Distanceintogusty_ET39_SIL_T Distanceintogustz_l;/* '<S1393>/Distance into gust (y)' */
X_Distanceintogusty_ET39_SIL_T Distanceintogusty_e;/* '<S1393>/Distance into gust (y)' */
X_Distanceintogustx_ET39_SIL_T Distanceintogustx_j;/* '<S1393>/Distance into gust (x)' */
X_Distanceintogusty_ET39_SIL_T Distanceintogustz;/* '<S1393>/Distance into gust (y)' */
X_Distanceintogusty_ET39_SIL_T Distanceintogusty;/* '<S1393>/Distance into gust (y)' */
X_Distanceintogustx_ET39_SIL_T Distanceintogustx;/* '<S1393>/Distance into gust (x)' */
real_T rollrate_CSTATE_c; /* '<S836>/rollrate' */
} X_ET39_SIL_T;
@@ -2148,12 +2073,6 @@ typedef struct {
real_T Integrator1_CSTATE_n; /* '<S1315>/Integrator1' */
real_T Integrator1_CSTATE_i; /* '<S1313>/Integrator1' */
real_T Integrator1_CSTATE_j; /* '<S1312>/Integrator1' */
XDot_Distanceintogusty_ET39_SIL_T Distanceintogustz_l;/* '<S1393>/Distance into gust (y)' */
XDot_Distanceintogusty_ET39_SIL_T Distanceintogusty_e;/* '<S1393>/Distance into gust (y)' */
XDot_Distanceintogustx_ET39_SIL_T Distanceintogustx_j;/* '<S1393>/Distance into gust (x)' */
XDot_Distanceintogusty_ET39_SIL_T Distanceintogustz;/* '<S1393>/Distance into gust (y)' */
XDot_Distanceintogusty_ET39_SIL_T Distanceintogusty;/* '<S1393>/Distance into gust (y)' */
XDot_Distanceintogustx_ET39_SIL_T Distanceintogustx;/* '<S1393>/Distance into gust (x)' */
real_T rollrate_CSTATE_c; /* '<S836>/rollrate' */
} XDot_ET39_SIL_T;
@@ -2181,12 +2100,6 @@ typedef struct {
boolean_T Integrator1_CSTATE_n; /* '<S1315>/Integrator1' */
boolean_T Integrator1_CSTATE_i; /* '<S1313>/Integrator1' */
boolean_T Integrator1_CSTATE_j; /* '<S1312>/Integrator1' */
XDis_Distanceintogusty_ET39_SIL_T Distanceintogustz_l;/* '<S1393>/Distance into gust (y)' */
XDis_Distanceintogusty_ET39_SIL_T Distanceintogusty_e;/* '<S1393>/Distance into gust (y)' */
XDis_Distanceintogustx_ET39_SIL_T Distanceintogustx_j;/* '<S1393>/Distance into gust (x)' */
XDis_Distanceintogusty_ET39_SIL_T Distanceintogustz;/* '<S1393>/Distance into gust (y)' */
XDis_Distanceintogusty_ET39_SIL_T Distanceintogusty;/* '<S1393>/Distance into gust (y)' */
XDis_Distanceintogustx_ET39_SIL_T Distanceintogustx;/* '<S1393>/Distance into gust (x)' */
boolean_T rollrate_CSTATE_c; /* '<S836>/rollrate' */
} XDis_ET39_SIL_T;
@@ -2231,19 +2144,19 @@ typedef struct {
const real_T Sum_n; /* '<S1123>/Sum' */
const real_T UnitConversion; /* '<S939>/Unit Conversion' */
const real_T TmpSignalConversionAtForEachSubsystemInport2[3];
const real_T Sqrt[4]; /* '<S1416>/Sqrt' */
const real_T Sqrt1; /* '<S1416>/Sqrt1' */
const real_T Divide[4]; /* '<S1416>/Divide' */
const real_T UnitConversion_o; /* '<S1405>/Unit Conversion' */
const real_T UnitConversion_a; /* '<S1415>/Unit Conversion' */
const real_T sigma_wg; /* '<S1424>/sigma_wg ' */
const real_T PreLookUpIndexSearchprobofexceed_o2;/* '<S1423>/PreLook-Up Index Search (prob of exceed)' */
const real_T UnitConversion_j; /* '<S1409>/Unit Conversion' */
const real_T UnitConversion_f; /* '<S1443>/Unit Conversion' */
const real_T Sum_l; /* '<S1433>/Sum' */
const real_T Sum_nh; /* '<S1425>/Sum' */
const real_T dt1; /* '<S1419>/dt1' */
const real_T dt1_h; /* '<S1418>/dt1' */
const real_T Sqrt[4]; /* '<S1406>/Sqrt' */
const real_T Sqrt1; /* '<S1406>/Sqrt1' */
const real_T Divide[4]; /* '<S1406>/Divide' */
const real_T UnitConversion_o; /* '<S1395>/Unit Conversion' */
const real_T UnitConversion_a; /* '<S1405>/Unit Conversion' */
const real_T sigma_wg; /* '<S1414>/sigma_wg ' */
const real_T PreLookUpIndexSearchprobofexceed_o2;/* '<S1413>/PreLook-Up Index Search (prob of exceed)' */
const real_T UnitConversion_j; /* '<S1399>/Unit Conversion' */
const real_T UnitConversion_f; /* '<S1433>/Unit Conversion' */
const real_T Sum_l; /* '<S1423>/Sum' */
const real_T Sum_nh; /* '<S1415>/Sum' */
const real_T dt1; /* '<S1409>/dt1' */
const real_T dt1_h; /* '<S1408>/dt1' */
const real_T Selector1[3]; /* '<S1127>/Selector1' */
const real_T Selector[3]; /* '<S1127>/Selector' */
const real_T Selector2[3]; /* '<S1127>/Selector2' */
@@ -2268,7 +2181,7 @@ typedef struct {
const real_T inv3; /* '<S886>/inv3' */
const real_T inv1; /* '<S886>/inv1' */
const real_T inv2; /* '<S886>/inv2' */
const uint32_T PreLookUpIndexSearchprobofexceed_o1;/* '<S1423>/PreLook-Up Index Search (prob of exceed)' */
const uint32_T PreLookUpIndexSearchprobofexceed_o1;/* '<S1413>/PreLook-Up Index Search (prob of exceed)' */
const uint16_T Width1; /* '<S1325>/Width1' */
const uint16_T Width1_d; /* '<S1326>/Width1' */
const uint16_T Width1_f; /* '<S1327>/Width1' */
@@ -2382,6 +2295,9 @@ struct P_ET39_SIL_T_ {
real_T Ps_bias; /* Variable: Ps_bias
* Referenced by: '<S1392>/Constant1'
*/
real_T V0[3]; /* Variable: V0
* Referenced by: '<S942>/ub,vb,wb'
*/
real_T deadband_dal; /* Variable: deadband_dal
* Referenced by: '<S6>/Backlash1'
*/
@@ -2400,19 +2316,16 @@ struct P_ET39_SIL_T_ {
real_T rho_bias; /* Variable: rho_bias
* Referenced by: '<S1392>/Constant2'
*/
real_T wind_able; /* Variable: wind_able
* Referenced by: '<Root>/Constant2'
*/
real_T wind_east[3]; /* Variable: wind_east
* Referenced by: '<S1396>/wind_East'
* Referenced by: '<S1394>/wind_East'
*/
real_T wind_level[3]; /* Variable: wind_level
* Referenced by:
* '<S1396>/wind_East'
* '<S1396>/wind_North'
* '<S1394>/wind_East'
* '<S1394>/wind_North'
*/
real_T wind_north[3]; /* Variable: wind_north
* Referenced by: '<S1396>/wind_North'
* Referenced by: '<S1394>/wind_North'
*/
real32_T B; /* Variable: B
* Referenced by:
@@ -2874,6 +2787,9 @@ struct P_ET39_SIL_T_ {
real32_T min_gamma; /* Variable: min_gamma
* Referenced by: '<S10>/Constant13'
*/
real32_T min_rpm_prop; /* Variable: min_rpm_prop
* Referenced by: '<S10>/Constant19'
*/
real32_T min_thr; /* Variable: min_thr
* Referenced by: '<S10>/Constant63'
*/
@@ -2890,20 +2806,20 @@ struct P_ET39_SIL_T_ {
real32_T num_tht_leadlag[3]; /* Variable: num_tht_leadlag
* Referenced by: '<S427>/Constant1'
*/
real32_T prop_pwm_lst[2]; /* Variable: prop_pwm_lst
real32_T prop_pwm_lst[4]; /* Variable: prop_pwm_lst
* Referenced by:
* '<S10>/Constant30'
* '<S33>/Constant1'
*/
real32_T prop_pwm_lst2[3]; /* Variable: prop_pwm_lst2
real32_T prop_pwm_lst2[4]; /* Variable: prop_pwm_lst2
* Referenced by: '<S1319>/Constant1'
*/
real32_T prop_rpm_lst[2]; /* Variable: prop_rpm_lst
real32_T prop_rpm_lst[4]; /* Variable: prop_rpm_lst
* Referenced by:
* '<S10>/Constant29'
* '<S33>/Constant'
*/
real32_T prop_rpm_lst2[3]; /* Variable: prop_rpm_lst2
real32_T prop_rpm_lst2[4]; /* Variable: prop_rpm_lst2
* Referenced by: '<S1319>/Constant'
*/
real32_T rho0; /* Variable: rho0
@@ -2973,6 +2889,9 @@ struct P_ET39_SIL_T_ {
* '<S1311>/Constant7'
* '<S26>/Constant7'
*/
boolean_T wind_able; /* Variable: wind_able
* Referenced by: '<Root>/Constant2'
*/
uint8_T pwm_inv_map[9]; /* Variable: pwm_inv_map
* Referenced by: '<S8>/Constant2'
*/
@@ -3044,8 +2963,8 @@ struct tag_RTM_ET39_SIL_T {
boolean_T zCCacheNeedsReset;
boolean_T derivCacheNeedsReset;
boolean_T CTOutputIncnstWithState;
real_T odeY[40];
real_T odeF[4][40];
real_T odeY[34];
real_T odeF[4][34];
ODE4_IntgData intgData;
/*
@@ -3707,14 +3626,12 @@ extern RT_MODEL_ET39_SIL_T *const ET39_SIL_M;
* Block '<S1320>/Data Type Conversion2' : Eliminate redundant data type conversion
* Block '<S1320>/Data Type Conversion3' : Eliminate redundant data type conversion
* Block '<S8>/Reshape' : Reshape block reduction
* Block '<S1400>/Unit Conversion' : Eliminated nontunable gain of 1
* Block '<S1404>/Unit Conversion' : Eliminated nontunable gain of 1
* Block '<S1419>/Reshape' : Reshape block reduction
* Block '<S1419>/Reshape1' : Reshape block reduction
* Block '<S1421>/Reshape' : Reshape block reduction
* Block '<S1427>/Reshape' : Reshape block reduction
* Block '<S1427>/Reshape1' : Reshape block reduction
* Block '<S1429>/Reshape' : Reshape block reduction
* Block '<S1429>/Reshape1' : Reshape block reduction
* Block '<S1431>/Reshape' : Reshape block reduction
* Block '<S1437>/Reshape' : Reshape block reduction
* Block '<S1437>/Reshape1' : Reshape block reduction
* Block '<S1439>/Reshape' : Reshape block reduction
* Block '<S130>/Constant' : Unused code path elimination
* Block '<S130>/Constant1' : Unused code path elimination
* Block '<S136>/Constant' : Unused code path elimination
@@ -5139,57 +5056,47 @@ extern RT_MODEL_ET39_SIL_T *const ET39_SIL_M;
* '<S1390>' : 'ET39_SIL/inner_recorder/rpm/rec/RS422_5_TX'
* '<S1391>' : 'ET39_SIL/inner_recorder/rpm/rec/STORE_PORT'
* '<S1392>' : 'ET39_SIL/wind_model/wind_model'
* '<S1393>' : 'ET39_SIL/wind_model/wind_model/Discrete Wind Gust Model'
* '<S1394>' : 'ET39_SIL/wind_model/wind_model/Discrete Wind Gust Model1'
* '<S1395>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))'
* '<S1396>' : 'ET39_SIL/wind_model/wind_model/WindBallon'
* '<S1397>' : 'ET39_SIL/wind_model/wind_model/Discrete Wind Gust Model/Distance into gust (x)'
* '<S1398>' : 'ET39_SIL/wind_model/wind_model/Discrete Wind Gust Model/Distance into gust (y)'
* '<S1399>' : 'ET39_SIL/wind_model/wind_model/Discrete Wind Gust Model/Distance into gust (z)'
* '<S1400>' : 'ET39_SIL/wind_model/wind_model/Discrete Wind Gust Model/Velocity Conversion'
* '<S1401>' : 'ET39_SIL/wind_model/wind_model/Discrete Wind Gust Model1/Distance into gust (x)'
* '<S1402>' : 'ET39_SIL/wind_model/wind_model/Discrete Wind Gust Model1/Distance into gust (y)'
* '<S1403>' : 'ET39_SIL/wind_model/wind_model/Discrete Wind Gust Model1/Distance into gust (z)'
* '<S1404>' : 'ET39_SIL/wind_model/wind_model/Discrete Wind Gust Model1/Velocity Conversion'
* '<S1405>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Angle Conversion'
* '<S1406>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates'
* '<S1407>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities'
* '<S1408>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Length Conversion'
* '<S1409>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Length Conversion1'
* '<S1410>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/RMS turbulence intensities'
* '<S1411>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates'
* '<S1412>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities'
* '<S1413>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths'
* '<S1414>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Velocity Conversion'
* '<S1415>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Velocity Conversion2'
* '<S1416>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/White Noise'
* '<S1417>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates/Hpgw'
* '<S1418>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates/Hqgw'
* '<S1419>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates/Hrgw'
* '<S1420>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities/Hugw(z)'
* '<S1421>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities/Hvgw(z)'
* '<S1422>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities/Hwgw(z)'
* '<S1423>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/RMS turbulence intensities/High Altitude Intensity'
* '<S1424>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/RMS turbulence intensities/Low Altitude Intensity'
* '<S1425>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Interpolate rates'
* '<S1426>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Low altitude rates'
* '<S1427>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Medium//High altitude rates'
* '<S1428>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Merge Subsystems'
* '<S1429>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Interpolate rates/wind to body transformation'
* '<S1430>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Interpolate rates/wind to body transformation/convert to earth coords'
* '<S1431>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Low altitude rates/wind to body transformation'
* '<S1432>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Low altitude rates/wind to body transformation/convert to earth coords'
* '<S1433>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Interpolate velocities'
* '<S1434>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Low altitude velocities'
* '<S1435>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Medium//High altitude velocities'
* '<S1436>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Merge Subsystems'
* '<S1437>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Interpolate velocities/wind to body transformation'
* '<S1438>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Interpolate velocities/wind to body transformation/convert to earth coords'
* '<S1439>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Low altitude velocities/wind to body transformation'
* '<S1440>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Low altitude velocities/wind to body transformation/convert to earth coords'
* '<S1441>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths/Low altitude scale length'
* '<S1442>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths/Medium//High altitude scale length'
* '<S1443>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths/Medium//High altitude scale length/Length Conversion'
* '<S1393>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))'
* '<S1394>' : 'ET39_SIL/wind_model/wind_model/WindBallon'
* '<S1395>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Angle Conversion'
* '<S1396>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates'
* '<S1397>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities'
* '<S1398>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Length Conversion'
* '<S1399>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Length Conversion1'
* '<S1400>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/RMS turbulence intensities'
* '<S1401>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates'
* '<S1402>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities'
* '<S1403>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths'
* '<S1404>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Velocity Conversion'
* '<S1405>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Velocity Conversion2'
* '<S1406>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/White Noise'
* '<S1407>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates/Hpgw'
* '<S1408>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates/Hqgw'
* '<S1409>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates/Hrgw'
* '<S1410>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities/Hugw(z)'
* '<S1411>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities/Hvgw(z)'
* '<S1412>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities/Hwgw(z)'
* '<S1413>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/RMS turbulence intensities/High Altitude Intensity'
* '<S1414>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/RMS turbulence intensities/Low Altitude Intensity'
* '<S1415>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Interpolate rates'
* '<S1416>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Low altitude rates'
* '<S1417>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Medium//High altitude rates'
* '<S1418>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Merge Subsystems'
* '<S1419>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Interpolate rates/wind to body transformation'
* '<S1420>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Interpolate rates/wind to body transformation/convert to earth coords'
* '<S1421>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Low altitude rates/wind to body transformation'
* '<S1422>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Low altitude rates/wind to body transformation/convert to earth coords'
* '<S1423>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Interpolate velocities'
* '<S1424>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Low altitude velocities'
* '<S1425>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Medium//High altitude velocities'
* '<S1426>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Merge Subsystems'
* '<S1427>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Interpolate velocities/wind to body transformation'
* '<S1428>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Interpolate velocities/wind to body transformation/convert to earth coords'
* '<S1429>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Low altitude velocities/wind to body transformation'
* '<S1430>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Low altitude velocities/wind to body transformation/convert to earth coords'
* '<S1431>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths/Low altitude scale length'
* '<S1432>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths/Medium//High altitude scale length'
* '<S1433>' : 'ET39_SIL/wind_model/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths/Medium//High altitude scale length/Length Conversion'
*/
#endif /* RTW_HEADER_ET39_SIL_h_ */
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'ET39_SIL'.
*
* Model version : 1.1206
* Model version : 1.1209
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sun Aug 1 11:52:22 2021
* C/C++ source code generated on : Tue Aug 3 11:48:29 2021
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -66,19 +66,19 @@ static const rtwCAPI_ModelParameters rtModelParameters[] = {
{ 6, TARGET_STRING("Ps_bias"), 0, 2, 0 },
{ 7, TARGET_STRING("deadband_dal"), 0, 2, 0 },
{ 7, TARGET_STRING("V0"), 0, 0, 0 },
{ 8, TARGET_STRING("deadband_dar"), 0, 2, 0 },
{ 8, TARGET_STRING("deadband_dal"), 0, 2, 0 },
{ 9, TARGET_STRING("deadband_del"), 0, 2, 0 },
{ 9, TARGET_STRING("deadband_dar"), 0, 2, 0 },
{ 10, TARGET_STRING("deadband_der"), 0, 2, 0 },
{ 10, TARGET_STRING("deadband_del"), 0, 2, 0 },
{ 11, TARGET_STRING("mass0"), 0, 2, 0 },
{ 11, TARGET_STRING("deadband_der"), 0, 2, 0 },
{ 12, TARGET_STRING("rho_bias"), 0, 2, 0 },
{ 12, TARGET_STRING("mass0"), 0, 2, 0 },
{ 13, TARGET_STRING("wind_able"), 0, 2, 0 },
{ 13, TARGET_STRING("rho_bias"), 0, 2, 0 },
{ 14, TARGET_STRING("wind_east"), 0, 0, 0 },
@@ -334,133 +334,137 @@ static const rtwCAPI_ModelParameters rtModelParameters[] = {
{ 140, TARGET_STRING("min_gamma"), 1, 2, 0 },
{ 141, TARGET_STRING("min_thr"), 1, 2, 0 },
{ 141, TARGET_STRING("min_rpm_prop"), 1, 2, 0 },
{ 142, TARGET_STRING("num_hv_leadlag"), 1, 0, 0 },
{ 142, TARGET_STRING("min_thr"), 1, 2, 0 },
{ 143, TARGET_STRING("num_phi_leadlag"), 1, 0, 0 },
{ 143, TARGET_STRING("num_hv_leadlag"), 1, 0, 0 },
{ 144, TARGET_STRING("num_tht_leadlag"), 1, 0, 0 },
{ 144, TARGET_STRING("num_phi_leadlag"), 1, 0, 0 },
{ 145, TARGET_STRING("prop_pwm_lst"), 1, 6, 0 },
{ 145, TARGET_STRING("num_tht_leadlag"), 1, 0, 0 },
{ 146, TARGET_STRING("prop_pwm_lst2"), 1, 7, 0 },
{ 146, TARGET_STRING("prop_pwm_lst"), 1, 3, 0 },
{ 147, TARGET_STRING("prop_rpm_lst"), 1, 6, 0 },
{ 147, TARGET_STRING("prop_pwm_lst2"), 1, 3, 0 },
{ 148, TARGET_STRING("prop_rpm_lst2"), 1, 7, 0 },
{ 148, TARGET_STRING("prop_rpm_lst"), 1, 3, 0 },
{ 149, TARGET_STRING("rho0"), 1, 2, 0 },
{ 149, TARGET_STRING("prop_rpm_lst2"), 1, 3, 0 },
{ 150, TARGET_STRING("rot_pwm_lst"), 1, 8, 0 },
{ 150, TARGET_STRING("rho0"), 1, 2, 0 },
{ 151, TARGET_STRING("rot_rpm_lst"), 1, 8, 0 },
{ 151, TARGET_STRING("rot_pwm_lst"), 1, 6, 0 },
{ 152, TARGET_STRING("trim_filter_den"), 1, 4, 0 },
{ 152, TARGET_STRING("rot_rpm_lst"), 1, 6, 0 },
{ 153, TARGET_STRING("trim_filter_num"), 1, 4, 0 },
{ 153, TARGET_STRING("trim_filter_den"), 1, 4, 0 },
{ 154, TARGET_STRING("useGammaNDI"), 1, 2, 0 },
{ 154, TARGET_STRING("trim_filter_num"), 1, 4, 0 },
{ 155, TARGET_STRING("use_hardmix"), 1, 2, 0 },
{ 155, TARGET_STRING("useGammaNDI"), 1, 2, 0 },
{ 156, TARGET_STRING("use_lead_lag"), 1, 2, 0 },
{ 156, TARGET_STRING("use_hardmix"), 1, 2, 0 },
{ 157, TARGET_STRING("volt0"), 1, 2, 0 },
{ 157, TARGET_STRING("use_lead_lag"), 1, 2, 0 },
{ 158, TARGET_STRING("washout_r_den"), 1, 4, 0 },
{ 158, TARGET_STRING("volt0"), 1, 2, 0 },
{ 159, TARGET_STRING("washout_r_num"), 1, 4, 0 },
{ 159, TARGET_STRING("washout_r_den"), 1, 4, 0 },
{ 160, TARGET_STRING("yaw_damping"), 1, 2, 0 },
{ 160, TARGET_STRING("washout_r_num"), 1, 4, 0 },
{ 161, TARGET_STRING("transrate"), 2, 2, 0 },
{ 161, TARGET_STRING("yaw_damping"), 1, 2, 0 },
{ 162, TARGET_STRING("actuator_hi"), 3, 3, 0 },
{ 162, TARGET_STRING("transrate"), 2, 2, 0 },
{ 163, TARGET_STRING("actuator_lo"), 3, 3, 0 },
{ 163, TARGET_STRING("actuator_hi"), 3, 3, 0 },
{ 164, TARGET_STRING("actuator_trim"), 3, 3, 0 },
{ 164, TARGET_STRING("actuator_lo"), 3, 3, 0 },
{ 165, TARGET_STRING("pwm_inv_map"), 4, 9, 0 },
{ 165, TARGET_STRING("actuator_trim"), 3, 3, 0 },
{ 166, TARGET_STRING("pwm_map"), 4, 10, 0 },
{ 166, TARGET_STRING("wind_able"), 4, 2, 0 },
{ 167, TARGET_STRING("system_id"), 4, 2, 0 },
{ 167, TARGET_STRING("pwm_inv_map"), 5, 7, 0 },
{ 168, TARGET_STRING("use_hv_leadlag"), 4, 2, 0 },
{ 168, TARGET_STRING("pwm_map"), 5, 8, 0 },
{ 169, TARGET_STRING("use_phi_leadlag"), 4, 2, 0 },
{ 169, TARGET_STRING("system_id"), 5, 2, 0 },
{ 170, TARGET_STRING("use_tht_leadlag"), 4, 2, 0 },
{ 170, TARGET_STRING("use_hv_leadlag"), 5, 2, 0 },
{ 171, TARGET_STRING("Att0"), 0, 0, 0 },
{ 171, TARGET_STRING("use_phi_leadlag"), 5, 2, 0 },
{ 172, TARGET_STRING("CD0UncertVal"), 0, 2, 0 },
{ 172, TARGET_STRING("use_tht_leadlag"), 5, 2, 0 },
{ 173, TARGET_STRING("CG_bias_m"), 0, 0, 0 },
{ 173, TARGET_STRING("Att0"), 0, 0, 0 },
{ 174, TARGET_STRING("CL0UncertVal"), 0, 2, 0 },
{ 174, TARGET_STRING("CD0UncertVal"), 0, 2, 0 },
{ 175, TARGET_STRING("CLaUncertGain"), 0, 2, 0 },
{ 175, TARGET_STRING("CG_bias_m"), 0, 0, 0 },
{ 176, TARGET_STRING("CLdelUncertGain"), 0, 2, 0 },
{ 176, TARGET_STRING("CL0UncertVal"), 0, 2, 0 },
{ 177, TARGET_STRING("CLderUncertGain"), 0, 2, 0 },
{ 177, TARGET_STRING("CLaUncertGain"), 0, 2, 0 },
{ 178, TARGET_STRING("CLqUncertGain"), 0, 2, 0 },
{ 178, TARGET_STRING("CLdelUncertGain"), 0, 2, 0 },
{ 179, TARGET_STRING("CY0UncertVal"), 0, 2, 0 },
{ 179, TARGET_STRING("CLderUncertGain"), 0, 2, 0 },
{ 180, TARGET_STRING("CYbUncertGain"), 0, 2, 0 },
{ 180, TARGET_STRING("CLqUncertGain"), 0, 2, 0 },
{ 181, TARGET_STRING("CYdelUncertGain"), 0, 2, 0 },
{ 181, TARGET_STRING("CY0UncertVal"), 0, 2, 0 },
{ 182, TARGET_STRING("CYderUncertGain"), 0, 2, 0 },
{ 182, TARGET_STRING("CYbUncertGain"), 0, 2, 0 },
{ 183, TARGET_STRING("CYpUncertGain"), 0, 2, 0 },
{ 183, TARGET_STRING("CYdelUncertGain"), 0, 2, 0 },
{ 184, TARGET_STRING("CYrUncertGain"), 0, 2, 0 },
{ 184, TARGET_STRING("CYderUncertGain"), 0, 2, 0 },
{ 185, TARGET_STRING("Cl0UncertVal"), 0, 2, 0 },
{ 185, TARGET_STRING("CYpUncertGain"), 0, 2, 0 },
{ 186, TARGET_STRING("ClbUncertGain"), 0, 2, 0 },
{ 186, TARGET_STRING("CYrUncertGain"), 0, 2, 0 },
{ 187, TARGET_STRING("CldalUncertGain"), 0, 2, 0 },
{ 187, TARGET_STRING("Cl0UncertVal"), 0, 2, 0 },
{ 188, TARGET_STRING("CldarUncertGain"), 0, 2, 0 },
{ 188, TARGET_STRING("ClbUncertGain"), 0, 2, 0 },
{ 189, TARGET_STRING("ClpUncertGain"), 0, 2, 0 },
{ 189, TARGET_STRING("CldalUncertGain"), 0, 2, 0 },
{ 190, TARGET_STRING("ClrUncertGain"), 0, 2, 0 },
{ 190, TARGET_STRING("CldarUncertGain"), 0, 2, 0 },
{ 191, TARGET_STRING("Cm0UncertVal"), 0, 2, 0 },
{ 191, TARGET_STRING("ClpUncertGain"), 0, 2, 0 },
{ 192, TARGET_STRING("CmaUncertPct"), 0, 2, 0 },
{ 192, TARGET_STRING("ClrUncertGain"), 0, 2, 0 },
{ 193, TARGET_STRING("CmdelUncertGain"), 0, 2, 0 },
{ 193, TARGET_STRING("Cm0UncertVal"), 0, 2, 0 },
{ 194, TARGET_STRING("CmderUncertGain"), 0, 2, 0 },
{ 194, TARGET_STRING("CmaUncertPct"), 0, 2, 0 },
{ 195, TARGET_STRING("CmqUncertGain"), 0, 2, 0 },
{ 195, TARGET_STRING("CmdelUncertGain"), 0, 2, 0 },
{ 196, TARGET_STRING("Cn0UncertVal"), 0, 2, 0 },
{ 196, TARGET_STRING("CmderUncertGain"), 0, 2, 0 },
{ 197, TARGET_STRING("CnbUncertGain"), 0, 2, 0 },
{ 197, TARGET_STRING("CmqUncertGain"), 0, 2, 0 },
{ 198, TARGET_STRING("CndelUncertGain"), 0, 2, 0 },
{ 198, TARGET_STRING("Cn0UncertVal"), 0, 2, 0 },
{ 199, TARGET_STRING("CnderUncertGain"), 0, 2, 0 },
{ 199, TARGET_STRING("CnbUncertGain"), 0, 2, 0 },
{ 200, TARGET_STRING("CnpUncertGain"), 0, 2, 0 },
{ 200, TARGET_STRING("CndelUncertGain"), 0, 2, 0 },
{ 201, TARGET_STRING("CnrUncertGain"), 0, 2, 0 },
{ 201, TARGET_STRING("CnderUncertGain"), 0, 2, 0 },
{ 202, TARGET_STRING("InertiaMoments_bias_kg_m2"), 0, 1, 0 },
{ 202, TARGET_STRING("CnpUncertGain"), 0, 2, 0 },
{ 203, TARGET_STRING("X0"), 0, 0, 0 },
{ 203, TARGET_STRING("CnrUncertGain"), 0, 2, 0 },
{ 204, TARGET_STRING("hground"), 0, 2, 0 },
{ 204, TARGET_STRING("InertiaMoments_bias_kg_m2"), 0, 1, 0 },
{ 205, TARGET_STRING("X0"), 0, 0, 0 },
{ 206, TARGET_STRING("hground"), 0, 2, 0 },
{ 0, (NULL), 0, 0, 0 }
};
@@ -476,13 +480,13 @@ static void* rtDataAddrMap[] = {
&ET39_SIL_P.GyroScaleMatrix[0], /* 4: Model Parameter */
&ET39_SIL_P.IMUloc[0], /* 5: Model Parameter */
&ET39_SIL_P.Ps_bias, /* 6: Model Parameter */
&ET39_SIL_P.deadband_dal, /* 7: Model Parameter */
&ET39_SIL_P.deadband_dar, /* 8: Model Parameter */
&ET39_SIL_P.deadband_del, /* 9: Model Parameter */
&ET39_SIL_P.deadband_der, /* 10: Model Parameter */
&ET39_SIL_P.mass0, /* 11: Model Parameter */
&ET39_SIL_P.rho_bias, /* 12: Model Parameter */
&ET39_SIL_P.wind_able, /* 13: Model Parameter */
&ET39_SIL_P.V0[0], /* 7: Model Parameter */
&ET39_SIL_P.deadband_dal, /* 8: Model Parameter */
&ET39_SIL_P.deadband_dar, /* 9: Model Parameter */
&ET39_SIL_P.deadband_del, /* 10: Model Parameter */
&ET39_SIL_P.deadband_der, /* 11: Model Parameter */
&ET39_SIL_P.mass0, /* 12: Model Parameter */
&ET39_SIL_P.rho_bias, /* 13: Model Parameter */
&ET39_SIL_P.wind_east[0], /* 14: Model Parameter */
&ET39_SIL_P.wind_level[0], /* 15: Model Parameter */
&ET39_SIL_P.wind_north[0], /* 16: Model Parameter */
@@ -610,70 +614,72 @@ static void* rtDataAddrMap[] = {
&ET39_SIL_P.min_de, /* 138: Model Parameter */
&ET39_SIL_P.min_dr, /* 139: Model Parameter */
&ET39_SIL_P.min_gamma, /* 140: Model Parameter */
&ET39_SIL_P.min_thr, /* 141: Model Parameter */
&ET39_SIL_P.num_hv_leadlag[0], /* 142: Model Parameter */
&ET39_SIL_P.num_phi_leadlag[0], /* 143: Model Parameter */
&ET39_SIL_P.num_tht_leadlag[0], /* 144: Model Parameter */
&ET39_SIL_P.prop_pwm_lst[0], /* 145: Model Parameter */
&ET39_SIL_P.prop_pwm_lst2[0], /* 146: Model Parameter */
&ET39_SIL_P.prop_rpm_lst[0], /* 147: Model Parameter */
&ET39_SIL_P.prop_rpm_lst2[0], /* 148: Model Parameter */
&ET39_SIL_P.rho0, /* 149: Model Parameter */
&ET39_SIL_P.rot_pwm_lst[0], /* 150: Model Parameter */
&ET39_SIL_P.rot_rpm_lst[0], /* 151: Model Parameter */
&ET39_SIL_P.trim_filter_den[0], /* 152: Model Parameter */
&ET39_SIL_P.trim_filter_num[0], /* 153: Model Parameter */
&ET39_SIL_P.useGammaNDI, /* 154: Model Parameter */
&ET39_SIL_P.use_hardmix, /* 155: Model Parameter */
&ET39_SIL_P.use_lead_lag, /* 156: Model Parameter */
&ET39_SIL_P.volt0, /* 157: Model Parameter */
&ET39_SIL_P.washout_r_den[0], /* 158: Model Parameter */
&ET39_SIL_P.washout_r_num[0], /* 159: Model Parameter */
&ET39_SIL_P.yaw_damping, /* 160: Model Parameter */
&ET39_SIL_P.transrate, /* 161: Model Parameter */
&ET39_SIL_P.actuator_hi[0], /* 162: Model Parameter */
&ET39_SIL_P.actuator_lo[0], /* 163: Model Parameter */
&ET39_SIL_P.actuator_trim[0], /* 164: Model Parameter */
&ET39_SIL_P.pwm_inv_map[0], /* 165: Model Parameter */
&ET39_SIL_P.pwm_map[0], /* 166: Model Parameter */
&ET39_SIL_P.system_id, /* 167: Model Parameter */
&ET39_SIL_P.use_hv_leadlag, /* 168: Model Parameter */
&ET39_SIL_P.use_phi_leadlag, /* 169: Model Parameter */
&ET39_SIL_P.use_tht_leadlag, /* 170: Model Parameter */
Att0, /* 171: Model Parameter */
&CD0UncertVal, /* 172: Model Parameter */
CG_bias_m, /* 173: Model Parameter */
&CL0UncertVal, /* 174: Model Parameter */
&CLaUncertGain, /* 175: Model Parameter */
&CLdelUncertGain, /* 176: Model Parameter */
&CLderUncertGain, /* 177: Model Parameter */
&CLqUncertGain, /* 178: Model Parameter */
&CY0UncertVal, /* 179: Model Parameter */
&CYbUncertGain, /* 180: Model Parameter */
&CYdelUncertGain, /* 181: Model Parameter */
&CYderUncertGain, /* 182: Model Parameter */
&CYpUncertGain, /* 183: Model Parameter */
&CYrUncertGain, /* 184: Model Parameter */
&Cl0UncertVal, /* 185: Model Parameter */
&ClbUncertGain, /* 186: Model Parameter */
&CldalUncertGain, /* 187: Model Parameter */
&CldarUncertGain, /* 188: Model Parameter */
&ClpUncertGain, /* 189: Model Parameter */
&ClrUncertGain, /* 190: Model Parameter */
&Cm0UncertVal, /* 191: Model Parameter */
&CmaUncertPct, /* 192: Model Parameter */
&CmdelUncertGain, /* 193: Model Parameter */
&CmderUncertGain, /* 194: Model Parameter */
&CmqUncertGain, /* 195: Model Parameter */
&Cn0UncertVal, /* 196: Model Parameter */
&CnbUncertGain, /* 197: Model Parameter */
&CndelUncertGain, /* 198: Model Parameter */
&CnderUncertGain, /* 199: Model Parameter */
&CnpUncertGain, /* 200: Model Parameter */
&CnrUncertGain, /* 201: Model Parameter */
InertiaMoments_bias_kg_m2, /* 202: Model Parameter */
X0, /* 203: Model Parameter */
&hground, /* 204: Model Parameter */
&ET39_SIL_P.min_rpm_prop, /* 141: Model Parameter */
&ET39_SIL_P.min_thr, /* 142: Model Parameter */
&ET39_SIL_P.num_hv_leadlag[0], /* 143: Model Parameter */
&ET39_SIL_P.num_phi_leadlag[0], /* 144: Model Parameter */
&ET39_SIL_P.num_tht_leadlag[0], /* 145: Model Parameter */
&ET39_SIL_P.prop_pwm_lst[0], /* 146: Model Parameter */
&ET39_SIL_P.prop_pwm_lst2[0], /* 147: Model Parameter */
&ET39_SIL_P.prop_rpm_lst[0], /* 148: Model Parameter */
&ET39_SIL_P.prop_rpm_lst2[0], /* 149: Model Parameter */
&ET39_SIL_P.rho0, /* 150: Model Parameter */
&ET39_SIL_P.rot_pwm_lst[0], /* 151: Model Parameter */
&ET39_SIL_P.rot_rpm_lst[0], /* 152: Model Parameter */
&ET39_SIL_P.trim_filter_den[0], /* 153: Model Parameter */
&ET39_SIL_P.trim_filter_num[0], /* 154: Model Parameter */
&ET39_SIL_P.useGammaNDI, /* 155: Model Parameter */
&ET39_SIL_P.use_hardmix, /* 156: Model Parameter */
&ET39_SIL_P.use_lead_lag, /* 157: Model Parameter */
&ET39_SIL_P.volt0, /* 158: Model Parameter */
&ET39_SIL_P.washout_r_den[0], /* 159: Model Parameter */
&ET39_SIL_P.washout_r_num[0], /* 160: Model Parameter */
&ET39_SIL_P.yaw_damping, /* 161: Model Parameter */
&ET39_SIL_P.transrate, /* 162: Model Parameter */
&ET39_SIL_P.actuator_hi[0], /* 163: Model Parameter */
&ET39_SIL_P.actuator_lo[0], /* 164: Model Parameter */
&ET39_SIL_P.actuator_trim[0], /* 165: Model Parameter */
&ET39_SIL_P.wind_able, /* 166: Model Parameter */
&ET39_SIL_P.pwm_inv_map[0], /* 167: Model Parameter */
&ET39_SIL_P.pwm_map[0], /* 168: Model Parameter */
&ET39_SIL_P.system_id, /* 169: Model Parameter */
&ET39_SIL_P.use_hv_leadlag, /* 170: Model Parameter */
&ET39_SIL_P.use_phi_leadlag, /* 171: Model Parameter */
&ET39_SIL_P.use_tht_leadlag, /* 172: Model Parameter */
Att0, /* 173: Model Parameter */
&CD0UncertVal, /* 174: Model Parameter */
CG_bias_m, /* 175: Model Parameter */
&CL0UncertVal, /* 176: Model Parameter */
&CLaUncertGain, /* 177: Model Parameter */
&CLdelUncertGain, /* 178: Model Parameter */
&CLderUncertGain, /* 179: Model Parameter */
&CLqUncertGain, /* 180: Model Parameter */
&CY0UncertVal, /* 181: Model Parameter */
&CYbUncertGain, /* 182: Model Parameter */
&CYdelUncertGain, /* 183: Model Parameter */
&CYderUncertGain, /* 184: Model Parameter */
&CYpUncertGain, /* 185: Model Parameter */
&CYrUncertGain, /* 186: Model Parameter */
&Cl0UncertVal, /* 187: Model Parameter */
&ClbUncertGain, /* 188: Model Parameter */
&CldalUncertGain, /* 189: Model Parameter */
&CldarUncertGain, /* 190: Model Parameter */
&ClpUncertGain, /* 191: Model Parameter */
&ClrUncertGain, /* 192: Model Parameter */
&Cm0UncertVal, /* 193: Model Parameter */
&CmaUncertPct, /* 194: Model Parameter */
&CmdelUncertGain, /* 195: Model Parameter */
&CmderUncertGain, /* 196: Model Parameter */
&CmqUncertGain, /* 197: Model Parameter */
&Cn0UncertVal, /* 198: Model Parameter */
&CnbUncertGain, /* 199: Model Parameter */
&CndelUncertGain, /* 200: Model Parameter */
&CnderUncertGain, /* 201: Model Parameter */
&CnpUncertGain, /* 202: Model Parameter */
&CnrUncertGain, /* 203: Model Parameter */
InertiaMoments_bias_kg_m2, /* 204: Model Parameter */
X0, /* 205: Model Parameter */
&hground, /* 206: Model Parameter */
};
/* Declare Data Run-Time Dimension Buffer Addresses statically */
@@ -695,6 +701,8 @@ static TARGET_CONST rtwCAPI_DataTypeMap rtDataTypeMap[] = {
{ "unsigned short", "uint16_T", 0, 0, sizeof(uint16_T), SS_UINT16, 0, 0 },
{ "unsigned char", "boolean_T", 0, 0, sizeof(boolean_T), SS_BOOLEAN, 0, 0 },
{ "unsigned char", "uint8_T", 0, 0, sizeof(uint8_T), SS_UINT8, 0, 0 }
};
@@ -727,11 +735,7 @@ static const rtwCAPI_DimensionMap rtDimensionMap[] = {
{ rtwCAPI_VECTOR, 14, 2, 0 },
{ rtwCAPI_VECTOR, 16, 2, 0 },
{ rtwCAPI_VECTOR, 18, 2, 0 },
{ rtwCAPI_VECTOR, 20, 2, 0 }
{ rtwCAPI_VECTOR, 16, 2, 0 }
};
/* Dimension Array- use dimArrayIndex to access elements of this array */
@@ -748,16 +752,12 @@ static const uint_T rtDimensionArray[] = {
2, /* 9 */
1, /* 10 */
5, /* 11 */
2, /* 12 */
11, /* 12 */
1, /* 13 */
3, /* 14 */
1, /* 15 */
11, /* 16 */
1, /* 17 */
1, /* 18 */
9, /* 19 */
1, /* 20 */
13 /* 21 */
1, /* 14 */
9, /* 15 */
1, /* 16 */
13 /* 17 */
};
/* Fixed Point Map */
@@ -790,7 +790,7 @@ static rtwCAPI_ModelMappingStaticInfo mmiStatic = {
(NULL), 0 },
{ rtBlockParameters, 0,
rtModelParameters, 205 },
rtModelParameters, 207 },
{ (NULL), 0 },
@@ -798,10 +798,10 @@ static rtwCAPI_ModelMappingStaticInfo mmiStatic = {
rtElementMap, rtSampleTimeMap, rtDimensionArray },
"float",
{ 3124855479U,
53724352U,
224880413U,
1463409290U },
{ 4276932866U,
1556142959U,
2251412148U,
878214798U },
(NULL), 0,
0
};
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'ET39_SIL'.
*
* Model version : 1.1206
* Model version : 1.1209
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sun Aug 1 11:52:22 2021
* C/C++ source code generated on : Tue Aug 3 11:48:29 2021
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'ET39_SIL'.
*
* Model version : 1.1206
* Model version : 1.1209
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sun Aug 1 11:52:22 2021
* C/C++ source code generated on : Tue Aug 3 11:48:29 2021
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -42,20 +42,20 @@ const ConstB_ET39_SIL_T ET39_SIL_ConstB = {
{ 0.0, 0.0, 0.0 }, /* synthesized block */
{ 0.070710678118654752, 0.070710678118654752, 0.070710678118654752,
0.070710678118654752 }, /* '<S1416>/Sqrt' */
0.070710678118654752, /* '<S1416>/Sqrt1' */
0.070710678118654752 }, /* '<S1406>/Sqrt' */
0.070710678118654752, /* '<S1406>/Sqrt1' */
{ 1.0, 1.0, 1.0, 1.0 }, /* '<S1416>/Divide' */
{ 1.0, 1.0, 1.0, 1.0 }, /* '<S1406>/Divide' */
0.0, /* '<S1395>/Unit Conversion' */
0.0, /* '<S1405>/Unit Conversion' */
0.0, /* '<S1415>/Unit Conversion' */
0.0, /* '<S1424>/sigma_wg ' */
0.0, /* '<S1423>/PreLook-Up Index Search (prob of exceed)' */
11.154855643044618, /* '<S1409>/Unit Conversion' */
1749.9999999999998, /* '<S1443>/Unit Conversion' */
1000.0, /* '<S1433>/Sum' */
1000.0, /* '<S1425>/Sum' */
10.652102490402442, /* '<S1419>/dt1' */
14.20280332053659, /* '<S1418>/dt1' */
0.0, /* '<S1414>/sigma_wg ' */
0.0, /* '<S1413>/PreLook-Up Index Search (prob of exceed)' */
11.154855643044618, /* '<S1399>/Unit Conversion' */
1749.9999999999998, /* '<S1433>/Unit Conversion' */
1000.0, /* '<S1423>/Sum' */
1000.0, /* '<S1415>/Sum' */
10.652102490402442, /* '<S1409>/dt1' */
14.20280332053659, /* '<S1408>/dt1' */
{ -0.062, -0.107, 0.16 }, /* '<S1127>/Selector1' */
@@ -90,7 +90,7 @@ const ConstB_ET39_SIL_T ET39_SIL_ConstB = {
-0.0, /* '<S886>/inv3' */
-0.0, /* '<S886>/inv1' */
-0.0, /* '<S886>/inv2' */
2U, /* '<S1423>/PreLook-Up Index Search (prob of exceed)' */
2U, /* '<S1413>/PreLook-Up Index Search (prob of exceed)' */
60U, /* '<S1325>/Width1' */
30U, /* '<S1326>/Width1' */
45U, /* '<S1327>/Width1' */
@@ -269,6 +269,11 @@ P_ET39_SIL_T ET39_SIL_P = {
*/
0.0,
/* Variable: V0
* Referenced by: '<S942>/ub,vb,wb'
*/
{ 0.0, 0.0, 0.0 },
/* Variable: deadband_dal
* Referenced by: '<S6>/Backlash1'
*/
@@ -299,25 +304,20 @@ P_ET39_SIL_T ET39_SIL_P = {
*/
0.0,
/* Variable: wind_able
* Referenced by: '<Root>/Constant2'
*/
0.0,
/* Variable: wind_east
* Referenced by: '<S1396>/wind_East'
* Referenced by: '<S1394>/wind_East'
*/
{ 0.0, 0.0, 0.0 },
{ 4.0, 5.0, 7.0 },
/* Variable: wind_level
* Referenced by:
* '<S1396>/wind_East'
* '<S1396>/wind_North'
* '<S1394>/wind_East'
* '<S1394>/wind_North'
*/
{ 0.0, 50.0, 100.0 },
/* Variable: wind_north
* Referenced by: '<S1396>/wind_North'
* Referenced by: '<S1394>/wind_North'
*/
{ 0.0, 0.0, 0.0 },
@@ -368,7 +368,7 @@ P_ET39_SIL_T ET39_SIL_P = {
/* Variable: CruiseSpeed
* Referenced by: '<S10>/Constant61'
*/
25.0F,
26.0F,
/* Variable: Csb
* Referenced by: '<S10>/Constant103'
@@ -474,7 +474,7 @@ P_ET39_SIL_T ET39_SIL_P = {
/* Variable: TransferSpeed
* Referenced by: '<S10>/Constant106'
*/
23.0F,
24.0F,
/* Variable: acc_g
* Referenced by: '<S10>/Constant2'
@@ -645,7 +645,7 @@ P_ET39_SIL_T ET39_SIL_P = {
/* Variable: fw_w_v
* Referenced by: '<S10>/Constant39'
*/
0.5F,
0.2F,
/* Variable: fw_w_vy
* Referenced by: '<S10>/Constant48'
@@ -771,7 +771,7 @@ P_ET39_SIL_T ET39_SIL_P = {
/* Variable: max_rpm_prop
* Referenced by: '<S10>/Constant9'
*/
6000.0F,
6700.0F,
/* Variable: max_rpm_rot
* Referenced by: '<S10>/Constant1'
@@ -791,7 +791,7 @@ P_ET39_SIL_T ET39_SIL_P = {
/* Variable: max_thrust_lst
* Referenced by: '<S10>/Constant37'
*/
{ 120.0F, 108.0F, 83.54F, 49.71F, 12.28F },
{ 80.0F, 80.0F, 80.0F, 80.0F, 70.0F },
/* Variable: max_thrust_tas
* Referenced by: '<S10>/Constant78'
@@ -918,7 +918,7 @@ P_ET39_SIL_T ET39_SIL_P = {
/* Variable: mc_min_hdot
* Referenced by: '<S25>/mc_max_hdot1'
*/
-1.5F,
-1.7F,
/* Variable: mc_min_tht
* Referenced by: '<S25>/mc_max_tht1'
@@ -1005,7 +1005,7 @@ P_ET39_SIL_T ET39_SIL_P = {
* '<S10>/Constant74'
* '<S264>/Constant'
*/
21.0F,
22.0F,
/* Variable: min_da
* Referenced by: '<S10>/Constant64'
@@ -1029,6 +1029,11 @@ P_ET39_SIL_T ET39_SIL_P = {
*/
-0.1745F,
/* Variable: min_rpm_prop
* Referenced by: '<S10>/Constant19'
*/
2500.0F,
/* Variable: min_thr
* Referenced by: '<S10>/Constant63'
*/
@@ -1058,24 +1063,24 @@ P_ET39_SIL_T ET39_SIL_P = {
* '<S10>/Constant30'
* '<S33>/Constant1'
*/
{ 1050.0F, 1896.0F },
{ 1050.0F, 1150.0F, 1416.0F, 1896.0F },
/* Variable: prop_pwm_lst2
* Referenced by: '<S1319>/Constant1'
*/
{ 900.0F, 1033.0F, 1896.0F },
{ 900.0F, 1050.0F, 1416.0F, 1896.0F },
/* Variable: prop_rpm_lst
* Referenced by:
* '<S10>/Constant29'
* '<S33>/Constant'
*/
{ 0.0F, 6000.0F },
{ 2500.0F, 5640.0F, 6000.0F, 6700.0F },
/* Variable: prop_rpm_lst2
* Referenced by: '<S1319>/Constant'
*/
{ 0.0F, 2200.0F, 6000.0F },
{ 0.0F, 2800.0F, 6700.0F, 7000.0F },
/* Variable: rho0
* Referenced by: '<S10>/Constant BP'
@@ -1178,6 +1183,11 @@ P_ET39_SIL_T ET39_SIL_P = {
*/
{ 1590U, 1460U, 1420U, 1480U },
/* Variable: wind_able
* Referenced by: '<Root>/Constant2'
*/
1,
/* Variable: pwm_inv_map
* Referenced by: '<S8>/Constant2'
*/
@@ -1238,75 +1248,75 @@ const ConstP_ET39_SIL_T ET39_SIL_ConstP = {
{ 0.0F, 0.0F, 0.0F, 0.0F, 50.0F },
{ 409219636, 1096188147 }
{ 409220426, 1096187369 }
}, { 3U,
16U,
1U,
{ 0.0F, 5.0F, 0.0F, 0.0F, 50.0F },
{ 409229947, 1096228816 }
{ 409220771, 1096228420 }
}, { 3U,
16U,
1U,
{ 0.0F, 50.0F, 200.0F, 0.0F, 60.0F },
{ 0.0F, 30.0F, 200.0F, 0.0F, 60.0F },
{ 409242802, 1096279285 }
{ 409221935, 1096286375 }
}, { 3U,
16U,
1U,
{ 0.0F, 50.0F, 200.0F, 0.0F, 70.0F },
{ 0.0F, 20.0F, 300.0F, 0.0F, 70.0F },
{ 409279022, 1096265266 }
{ 409266440, 1096273719 }
}, { 3U,
16U,
1U,
{ 0.0F, 50.0F, 200.0F, 0.0F, 70.0F },
{ 0.0F, 30.0F, 300.0F, 0.0F, 70.0F },
{ 409280889, 1096150289 }
{ 409269945, 1096155860 }
}, { 3U,
16U,
1U,
{ 0.0F, 50.0F, 200.0F, 0.0F, 50.0F },
{ 0.0F, 30.0F, 200.0F, 0.0F, 70.0F },
{ 409220116, 1096172527 }
{ 409221329, 1096159847 }
}, { 3U,
16U,
1U,
{ 0.0F, 50.0F, 200.0F, 0.0F, 60.0F },
{ 0.0F, 30.0F, 200.0F, 0.0F, 70.0F },
{ 409245012, 1096278457 }
{ 409221876, 1096290401 }
}, { 3U,
16U,
1U,
{ 0.0F, 50.0F, 200.0F, 0.0F, 70.0F },
{ 0.0F, 20.0F, 300.0F, 0.0F, 70.0F },
{ 409280993, 1096264677 }
{ 409266482, 1096277140 }
}, { 3U,
16U,
1U,
{ 0.0F, 50.0F, 200.0F, 0.0F, 70.0F },
{ 0.0F, 20.0F, 300.0F, 0.0F, 70.0F },
{ 409283154, 1096149244 }
{ 409270636, 1096122252 }
}, { 3U,
16U,
1U,
{ 0.0F, 5.0F, 200.0F, 0.0F, 50.0F },
{ 0.0F, 60.0F, 200.0F, 0.0F, 50.0F },
{ 409246534, 1096162703 }
{ 409220609, 1096145179 }
}, { 2U,
178U,
1U,
{ 0.0F, 22.0F, 0.0F, 0.0F, 0.0F },
{ 0.0F, 24.0F, 0.0F, 0.0F, 0.0F },
{ 0, 0 }
}, { 3U,
@@ -1315,7 +1325,7 @@ const ConstP_ET39_SIL_T ET39_SIL_ConstP = {
{ 0.0F, 0.0F, 0.0F, 0.0F, 50.0F },
{ 409220834, 1096187631 }
{ 409220641, 1096188891 }
}, { 0U,
0U,
0U,
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'ET39_SIL'.
*
* Model version : 1.1206
* Model version : 1.1209
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sun Aug 1 11:52:22 2021
* C/C++ source code generated on : Tue Aug 3 11:48:29 2021
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -101,7 +101,6 @@ extern const real_T rtCP_pooled_c0ngqF5doluJ[9];
extern const real_T rtCP_pooled_FEWufo6vVHrj[9];
extern const real_T rtCP_pooled_B5TQ9jFT4w0p[3];
extern const real_T rtCP_pooled_8RBKE3gHchpO[12];
extern const real_T rtCP_pooled_xcOBkYu90x0b[84];
extern const real_T rtCP_pooled_bDcwUj8yZ6yU[3];
extern const real_T rtCP_pooled_gK5exsriyOfk[9];
extern const real_T rtCP_pooled_AO4qPVKj4mSw[45];
@@ -163,10 +162,9 @@ extern const real32_T rtCP_pooled_NsfoROSYwB8n[3];
extern const real32_T rtCP_pooled_0BwgFckvyiIM[3];
extern const real32_T rtCP_pooled_vpZBO0efDb68[3];
extern const real32_T rtCP_pooled_8oAFyuceoFlQ[3];
extern const uint32_T rtCP_pooled_BWTVQM0GuqkK[2];
extern const uint32_T rtCP_pooled_52mPzBGwtz3T[2];
extern const uint32_T rtCP_pooled_VOMI4P330Dae[2];
extern const uint16_T rtCP_pooled_tIJ8apoWCxSH[9];
extern const uint16_T rtCP_pooled_0fy6CMNfXJPY[9];
extern const uint8_T rtCP_pooled_e6HU8n7YauPz;
extern const uint8_T rtCP_pooled_mhMab4fllVU3;
extern const uint8_T rtCP_pooled_mDbfc7f8L4g9;
@@ -193,10 +191,7 @@ extern const uint8_T rtCP_pooled_mDbfc7f8L4g9;
* Referenced by: '<S1127>/Constant'
*/
#define rtCP_PreLookUpIndexSearchaltitude_BreakpointsData rtCP_pooled_8RBKE3gHchpO/* Expression: h_vec
* Referenced by: '<S1423>/PreLook-Up Index Search (altitude)'
*/
#define rtCP_MediumHighAltitudeIntensity_Table rtCP_pooled_xcOBkYu90x0b/* Expression: sigma_vec'
* Referenced by: '<S1423>/Medium//High Altitude Intensity'
* Referenced by: '<S1413>/PreLook-Up Index Search (altitude)'
*/
#define rtCP_Gain1_Gain_f rtCP_pooled_bDcwUj8yZ6yU /* Expression: [1 1 -1]
* Referenced by: '<S982>/Gain1'
@@ -642,9 +637,6 @@ extern const uint8_T rtCP_pooled_mDbfc7f8L4g9;
#define rtCP_Constant5_Value_e3 rtCP_pooled_8oAFyuceoFlQ /* Computed Parameter: rtCP_Constant5_Value_e3
* Referenced by: '<S196>/Constant5'
*/
#define rtCP_MediumHighAltitudeIntensity_maxIndex rtCP_pooled_BWTVQM0GuqkK/* Computed Parameter: rtCP_MediumHighAltitudeIntensity_maxIndex
* Referenced by: '<S1423>/Medium//High Altitude Intensity'
*/
#define rtCP_table2D_CL_base_maxIndex rtCP_pooled_52mPzBGwtz3T /* Computed Parameter: rtCP_table2D_CL_base_maxIndex
* Referenced by: '<S897>/table2D_CL_base'
*/
@@ -735,7 +727,7 @@ extern const uint8_T rtCP_pooled_mDbfc7f8L4g9;
#define rtCP_table2D_Cn_del_maxIndex rtCP_pooled_VOMI4P330Dae /* Computed Parameter: rtCP_table2D_Cn_del_maxIndex
* Referenced by: '<S901>/table2D_Cn_del'
*/
#define rtCP_safe_output_Value rtCP_pooled_tIJ8apoWCxSH /* Computed Parameter: rtCP_safe_output_Value
#define rtCP_safe_output_Value rtCP_pooled_0fy6CMNfXJPY /* Computed Parameter: rtCP_safe_output_Value
* Referenced by: '<S30>/safe_output'
*/
#define rtCP_mav_parser_P1 rtCP_pooled_e6HU8n7YauPz /* Expression: Channel
@@ -2148,30 +2140,6 @@ extern void ET39_SIL_tick(real_T rtu_dt, boolean_T *rty_enabled,
extern void ET39_SIL_tick_c_Init(DW_tick_ET39_SIL_p_T *localDW);
extern void ET39_SIL_tick_k(real_T rtu_dt, boolean_T *rty_enabled,
DW_tick_ET39_SIL_p_T *localDW);
extern void ET39_SIL_Distanceintogustx_Init(X_Distanceintogustx_ET39_SIL_T
*localX);
extern void ET39_SIL_Distanceintogustx_Reset(X_Distanceintogustx_ET39_SIL_T
*localX);
extern void ET39_SIL_Distanceintogustx_Deriv(real_T rtu_V,
DW_Distanceintogustx_ET39_SIL_T *localDW, X_Distanceintogustx_ET39_SIL_T
*localX, XDot_Distanceintogustx_ET39_SIL_T *localXdot, real_T rtp_d_m);
extern void ET39_SIL_Distanceintogustx_Disable(DW_Distanceintogustx_ET39_SIL_T
*localDW);
extern void ET39_SIL_Distanceintogustx(RT_MODEL_ET39_SIL_T * const ET39_SIL_M,
boolean_T rtu_Enable, real_T *rty_x, DW_Distanceintogustx_ET39_SIL_T *localDW,
X_Distanceintogustx_ET39_SIL_T *localX, real_T rtp_d_m);
extern void ET39_SIL_Distanceintogusty_Init(X_Distanceintogusty_ET39_SIL_T
*localX);
extern void ET39_SIL_Distanceintogusty_Reset(X_Distanceintogusty_ET39_SIL_T
*localX);
extern void ET39_SIL_Distanceintogusty_Deriv(real_T rtu_V,
DW_Distanceintogusty_ET39_SIL_T *localDW, X_Distanceintogusty_ET39_SIL_T
*localX, XDot_Distanceintogusty_ET39_SIL_T *localXdot, real_T rtp_d_m);
extern void ET39_SIL_Distanceintogusty_Disable(DW_Distanceintogusty_ET39_SIL_T
*localDW);
extern void ET39_SIL_Distanceintogusty(RT_MODEL_ET39_SIL_T * const ET39_SIL_M,
boolean_T rtu_Enable, real_T *rty_x, DW_Distanceintogusty_ET39_SIL_T *localDW,
X_Distanceintogusty_ET39_SIL_T *localX, real_T rtp_d_m);
/* private model entry point functions */
extern void ET39_SIL_derivatives(void);
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'ET39_SIL'.
*
* Model version : 1.1206
* Model version : 1.1209
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sun Aug 1 11:52:22 2021
* C/C++ source code generated on : Tue Aug 3 11:48:29 2021
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
Binary file not shown.
@@ -1,6 +1,6 @@
MODEL=ET39_SIL
NUMST=2
NCSTATES=40
NCSTATES=34
HAVESTDIO
MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0
CLASSIC_INTERFACE=0
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'ET39_SIL'.
*
* Model version : 1.1206
* Model version : 1.1209
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sun Aug 1 11:52:22 2021
* C/C++ source code generated on : Tue Aug 3 11:48:29 2021
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)