diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/buildInfo.mat b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/buildInfo.mat index 30ff0c2..4addd9a 100644 Binary files a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/buildInfo.mat and b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/buildInfo.mat differ diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.c b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.c index 5f4ff3f..3fd3917 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.c +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1344 + * Model version : 1.1390 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Sat Aug 21 08:51:18 2021 + * C/C++ source code generated on : Mon Aug 23 14:30:11 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -49,7 +49,7 @@ #include "rt_roundd_snf.h" /* Named constants for Chart: '/manual_arm_disarm' */ -#define cr929_SIL_IN_NO_ACTIVE_CHILD_b ((uint8_T)0U) +#define cr929_SIL_IN_NO_ACTIVE_CHILD_d ((uint8_T)0U) #define cr929_SIL_IN_armed ((uint8_T)1U) #define cr929_SIL_IN_check_armed ((uint8_T)2U) #define cr929_SIL_IN_check_disarmed ((uint8_T)3U) @@ -61,22 +61,22 @@ #define cr929_SIL_IN_one ((uint8_T)1U) #define cr929_SIL_IN_two1 ((uint8_T)2U) -/* Named constants for Chart: '/psi_err' */ +/* Named constants for Chart: '/psi_err' */ #define cr929_SIL_pi (3.14159274F) -/* Named constants for Chart: '/tick' */ +/* Named constants for Chart: '/tick' */ #define cr929_SIL_IN_NO_ACTIVE_CHILD_l1 ((uint8_T)0U) #define cr929_SIL_IN_arrrived ((uint8_T)1U) #define cr929_SIL_IN_delay ((uint8_T)2U) #define cr929_SIL_IN_idle_b ((uint8_T)3U) -/* Named constants for Chart: '/tick' */ +/* Named constants for Chart: '/tick' */ #define cr929_SIL_IN_NO_ACTIVE_CHILD_lf ((uint8_T)0U) #define cr929_SIL_IN_arrrived_g ((uint8_T)1U) #define cr929_SIL_IN_delay_h ((uint8_T)2U) #define cr929_SIL_IN_idle_i ((uint8_T)3U) -/* Named constants for Chart: '/tick' */ +/* Named constants for Chart: '/tick' */ #define cr929_SIL_IN_NO_ACTIVE_CHILD_g ((uint8_T)0U) #define cr929_SIL_IN_arrrived_o ((uint8_T)1U) #define cr929_SIL_IN_idle_c ((uint8_T)2U) @@ -91,7 +91,7 @@ /* Named constants for Chart: '/proc_cmd' */ #define cr929_SIL_IN_Linked ((uint8_T)1U) #define cr929_SIL_IN_Linked2 ((uint8_T)2U) -#define cr929_SIL_IN_idle_f ((uint8_T)3U) +#define cr929_SIL_IN_idle_o ((uint8_T)3U) /* Named constants for Chart: '/check_conn' */ #define cr929_SIL_IN_LinkLoss ((uint8_T)1U) @@ -111,9 +111,9 @@ #define cr929_SIL_IN_xbit ((uint8_T)3U) /* Named constants for Chart: '/manual_arm_disarm' */ -#define cr929_SIL_IN_check_armed_a ((uint8_T)1U) -#define cr929_SIL_IN_check_disarmed_i ((uint8_T)2U) -#define cr929_SIL_IN_operational_k ((uint8_T)4U) +#define cr929_SIL_IN_check_armed_d ((uint8_T)1U) +#define cr929_SIL_IN_check_disarmed_g ((uint8_T)2U) +#define cr929_SIL_IN_operational_e ((uint8_T)4U) #define cr929_SIL_IN_xbit_p ((uint8_T)5U) /* Named constants for Chart: '/standby_emergency' */ @@ -142,20 +142,20 @@ #define cr929_SIL_IN_Flare_high ((uint8_T)2U) #define cr929_SIL_IN_Flare_low ((uint8_T)3U) #define cr929_SIL_IN_GearDown ((uint8_T)4U) -#define cr929_SIL_IN_Stop_f ((uint8_T)5U) +#define cr929_SIL_IN_Stop_m ((uint8_T)5U) #define cr929_SIL_IN_Taxi_Brake ((uint8_T)6U) #define cr929_SIL_IN_ThreeWheel ((uint8_T)7U) #define cr929_SIL_IN_TwoWheel ((uint8_T)8U) #define cr929_SIL_IN_WaveOff ((uint8_T)9U) /* Named constants for Chart: '/waypoint_task' */ -#define cr929_SIL_IN_Taxi_f ((uint8_T)1U) +#define cr929_SIL_IN_Taxi_h ((uint8_T)1U) #define cr929_SIL_IN_WayPoint ((uint8_T)2U) /* Named constants for Chart: '/waypoint_task' */ #define cr929_SIL_IN_Brake ((uint8_T)1U) #define cr929_SIL_IN_NextWP ((uint8_T)1U) -#define cr929_SIL_IN_Taxi_i ((uint8_T)2U) +#define cr929_SIL_IN_Taxi_c ((uint8_T)2U) #define cr929_SIL_IN_WP ((uint8_T)3U) /* Named constants for Chart: '/turning_limit' */ @@ -201,7 +201,7 @@ /* Named constants for Chart: '/waypoint_task' */ #define cr929_SIL_IN_Cruise ((uint8_T)1U) -#define cr929_SIL_IN_NextWP_o ((uint8_T)2U) +#define cr929_SIL_IN_NextWP_f ((uint8_T)2U) /* Named constants for Chart: '/mode_switch_and_safety' */ #define cr929_SIL_IN_WP_j ((uint8_T)1U) @@ -211,7 +211,7 @@ #define cr929_SIL_IN_Idle_h ((uint8_T)1U) #define cr929_SIL_IN_wait_d ((uint8_T)2U) -/* Named constants for Chart: '/pos_sel' */ +/* Named constants for Chart: '/pos_sel' */ #define cr929_SIL_IN_Pos1 ((uint8_T)1U) #define cr929_SIL_IN_Pos2 ((uint8_T)2U) #define cr929_SIL_IN_Pos3 ((uint8_T)3U) @@ -226,48 +226,48 @@ #define cr929_SIL_IN_spoiler2 ((uint8_T)12U) #define cr929_SIL_IN_spoiler3 ((uint8_T)13U) -/* Named constants for Chart: '/traffic_ctrl' */ +/* Named constants for Chart: '/traffic_ctrl' */ #define cr929_SIL_IN_Wait ((uint8_T)2U) -/* Named constants for Chart: '/chat_update_mission_item' */ +/* Named constants for Chart: '/chat_update_mission_item' */ #define cr929_SIL_fence_default_len ((uint16_T)16U) #define cr929_SIL_mission_default_len ((uint16_T)100U) #define cr929_SIL_rally_default_len ((uint16_T)16U) -/* Named constants for Chart: '/Chart_proc_mission_upload' */ +/* Named constants for Chart: '/Chart_proc_mission_upload' */ #define cr929_SIL_IN_Uploading ((uint8_T)2U) -/* Named constants for Chart: '/proc_param_value' */ +/* Named constants for Chart: '/proc_param_value' */ #define cr929_SIL_IN_SendOne ((uint8_T)2U) -/* Named constants for Chart: '/Chart' */ +/* Named constants for Chart: '/Chart' */ #define cr929_SIL_IN_work ((uint8_T)2U) -/* Named constants for Chart: '/Chart' */ +/* Named constants for Chart: '/Chart' */ #define cr929_SIL_IN_bad ((uint8_T)1U) #define cr929_SIL_IN_good ((uint8_T)2U) -/* Named constants for Chart: '/check_gps_valid' */ +/* Named constants for Chart: '/check_gps_valid' */ #define cr929_SIL_IN_Invalid ((uint8_T)1U) #define cr929_SIL_IN_Testing ((uint8_T)2U) #define cr929_SIL_IN_Valid ((uint8_T)3U) -/* Named constants for Chart: '/Chart' */ +/* Named constants for Chart: '/Chart' */ #define cr929_SIL_IN_useGPS ((uint8_T)1U) #define cr929_SIL_IN_useGPSVel ((uint8_T)2U) #define cr929_SIL_IN_useMag ((uint8_T)3U) -/* Named constants for Chart: '/IMU_bias_fix' */ +/* Named constants for Chart: '/IMU_bias_fix' */ #define cr929_SIL_IN_GetBias ((uint8_T)1U) #define cr929_SIL_IN_Init ((uint8_T)2U) #define cr929_SIL_IN_NoBias ((uint8_T)3U) -/* Named constants for Chart: '/zero_set' */ +/* Named constants for Chart: '/zero_set' */ #define cr929_SIL_IN_Init_a ((uint8_T)1U) #define cr929_SIL_IN_Work ((uint8_T)2U) #define cr929_SIL_IN_Work1 ((uint8_T)3U) -/* Named constants for Chart: '/status_mgr' */ +/* Named constants for Chart: '/status_mgr' */ #define cr929_SIL_IN_Step0 ((uint8_T)1U) #define cr929_SIL_IN_Step1 ((uint8_T)2U) #define cr929_SIL_IN_Step2 ((uint8_T)3U) @@ -275,7 +275,7 @@ #define cr929_SIL_IN_Step4 ((uint8_T)5U) #define cr929_SIL_IN_Work_d ((uint8_T)6U) -/* Named constants for Chart: '/tick' */ +/* Named constants for Chart: '/tick' */ #define cr929_SIL_IN_arrrived_p ((uint8_T)1U) #define cr929_SIL_IN_delay_i ((uint8_T)2U) @@ -474,6 +474,7 @@ const C2 cr929_SIL_rtZC2 = { 0.0F, /* dr_stimulus */ 0.0F, /* dh_stimulus */ 0.0F, /* ay_c */ + 0.0F, /* mass_est */ false, /* Switch_ControlLaw */ false, /* comac_ResetControlLaw */ false, /* comac_Arm_RUDTrimPanel */ @@ -845,7 +846,7 @@ real_T InertiaMoments_bias_kg_m2[9] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, */ real_T Ps_bias = 0.0; /* Variable: Ps_bias - * Referenced by: '/Constant1' + * Referenced by: '/Constant1' * 静压偏差 */ real_T ThrustUncertGain = 1.0; /* Variable: ThrustUncertGain @@ -875,7 +876,7 @@ real_T hground = 1409.0; /* Variable: hground * Referenced by: '/Constant1' */ real_T rho_bias = 0.0; /* Variable: rho_bias - * Referenced by: '/Constant2' + * Referenced by: '/Constant2' * 大气密度偏差 */ real_T wind_able = 0.0; /* Variable: wind_able @@ -920,18 +921,18 @@ static boolean_T cr929_SIL_sf_msg_pop_cmd(void); static boolean_T cr929_SIL_sf_msg_pop_cmd2(void); static void cr929_SIL_sf_msg_discard_cmd(void); static void cr929_SIL_sf_msg_discard_cmd2(void); -static boolean_T cr929_SIL_sf_msg_pop_mission_item(void); -static void cr929_SIL_sf_msg_send_mission_ack(void); -static void cr929_SIL_sf_msg_send_mission_req_int(void); -static boolean_T cr929_SIL_sf_msg_pop_mission_cnt(void); -static void cr929_SIL_sf_msg_discard_mission_cnt(void); -static void cr929_SIL_sf_msg_discard_mission_item(void); static boolean_T cr929_SIL_sf_msg_pop_set_cur(void); static void cr929_SIL_sf_msg_discard_set_cur(void); static void cr929_SIL_sf_msg_send_ack(void); static void cr929_SIL_sf_msg_send_cmd(void); static void cr929_SIL_enter_atomic_StateBy(void); static void cr929_SIL_enter_atomic_WaveOff(void); +static boolean_T cr929_SIL_sf_msg_pop_mission_item(void); +static void cr929_SIL_sf_msg_send_mission_ack(void); +static void cr929_SIL_sf_msg_send_mission_req_int(void); +static boolean_T cr929_SIL_sf_msg_pop_mission_cnt(void); +static void cr929_SIL_sf_msg_discard_mission_cnt(void); +static void cr929_SIL_sf_msg_discard_mission_item(void); static boolean_T cr929_SIL_sf_msg_pop_msgs(void); static void cr929_SIL_sf_msg_send_resp(void); static void cr929_SIL_sf_msg_send_resp_f(void); @@ -3204,7 +3205,7 @@ void cr929_SIL_manual_arm_disarm_Init(DW_manual_arm_disarm_cr929_SIL_T *localDW) { localDW->temporalCounter_i1 = 0U; localDW->is_active_c23_cr929_autopilot = 0U; - localDW->is_c23_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_b; + localDW->is_c23_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_d; } /* @@ -3511,12 +3512,12 @@ void cr929_SIL_valid_test(const C2 *rtu_C2_in_Inport_1, const TrajGen /* * System initialize for atomic system: - * '/psi_err' - * '/psi_err1' - * '/psi_err2' - * '/psi_err1' - * '/psi_err2' - * '/psi_err3' + * '/psi_err' + * '/psi_err1' + * '/psi_err2' + * '/psi_err1' + * '/psi_err2' + * '/psi_err3' */ void cr929_SIL_psi_err_Init(real32_T *rty_out) { @@ -3525,12 +3526,12 @@ void cr929_SIL_psi_err_Init(real32_T *rty_out) /* * System reset for atomic system: - * '/psi_err' - * '/psi_err1' - * '/psi_err2' - * '/psi_err1' - * '/psi_err2' - * '/psi_err3' + * '/psi_err' + * '/psi_err1' + * '/psi_err2' + * '/psi_err1' + * '/psi_err2' + * '/psi_err3' */ void cr929_SIL_psi_err_Reset(real32_T *rty_out) { @@ -3539,16 +3540,16 @@ void cr929_SIL_psi_err_Reset(real32_T *rty_out) /* * Output and update for atomic system: - * '/psi_err' - * '/psi_err1' - * '/psi_err2' - * '/psi_err1' - * '/psi_err2' - * '/psi_err3' + * '/psi_err' + * '/psi_err1' + * '/psi_err2' + * '/psi_err1' + * '/psi_err2' + * '/psi_err3' */ void cr929_SIL_psi_err(real32_T rtu_in, real32_T *rty_out) { - /* Chart: '/psi_err' */ + /* Chart: '/psi_err' */ if (rtu_in < -3.14159274F) { *rty_out = rtu_in + 6.28318548F; } else if (rtu_in > cr929_SIL_pi) { @@ -3557,91 +3558,91 @@ void cr929_SIL_psi_err(real32_T rtu_in, real32_T *rty_out) *rty_out = rtu_in; } - /* End of Chart: '/psi_err' */ + /* End of Chart: '/psi_err' */ } /* * Output and update for action system: - * '/H' - * '/AGL' + * '/H' + * '/AGL' */ void cr929_SIL_H(real32_T rtu_h_c, real32_T rtu_asl, real32_T *rty_dH, real32_T * rty_hdot_des) { - /* SignalConversion: '/OutportBuffer_InsertedFor_hdot_des_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_hdot_des_at_inport_0' incorporates: + * Constant: '/Constant' */ *rty_hdot_des = 0.0F; - /* Sum: '/subtract' */ + /* Sum: '/subtract' */ *rty_dH = rtu_h_c - rtu_asl; } /* * Output and update for action system: - * '/If Action Subsystem1' * '/If Action Subsystem1' * '/If Action Subsystem1' - * '/If Action Subsystem1' + * '/If Action Subsystem1' * '/If Action Subsystem1' * '/If Action Subsystem1' - * '/If Action Subsystem1' + * '/If Action Subsystem1' * '/If Action Subsystem1' * '/If Action Subsystem1' + * '/If Action Subsystem1' */ void cr929_SIL_IfActionSubsystem1(real32_T rtu_y_in, real32_T rtu_f, real32_T *rty_y_out) { real32_T rtb_Saturation_b; - /* Sum: '/Sum' incorporates: - * Constant: '/Constant' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant' */ rtb_Saturation_b = 1.0F - rtu_f; - /* Saturate: '/Saturation' incorporates: - * Constant: '/Constant' - * Sum: '/Sum' + /* Saturate: '/Saturation' incorporates: + * Constant: '/Constant' + * Sum: '/Sum' */ if (1.0F - rtu_f <= 0.0F) { rtb_Saturation_b = 0.0F; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Product: '/Product' */ + /* Product: '/Product' */ *rty_y_out = rtu_y_in * rtb_Saturation_b; } /* * System initialize for atomic system: - * '/theta1' - * '/theta1' - * '/theta1' + * '/theta1' + * '/theta1' + * '/theta1' */ void cr929_SIL_theta1_Init(DW_theta1_cr929_SIL_T *localDW) { - /* InitializeConditions for Delay: '/delay' */ + /* InitializeConditions for Delay: '/delay' */ localDW->icLoad = 1U; } /* * System reset for atomic system: - * '/theta1' - * '/theta1' - * '/theta1' + * '/theta1' + * '/theta1' + * '/theta1' */ void cr929_SIL_theta1_Reset(DW_theta1_cr929_SIL_T *localDW) { - /* InitializeConditions for Delay: '/delay' */ + /* InitializeConditions for Delay: '/delay' */ localDW->icLoad = 1U; } /* * Output and update for atomic system: - * '/theta1' - * '/theta1' - * '/theta1' + * '/theta1' + * '/theta1' + * '/theta1' */ real32_T cr929_SIL_theta1(real32_T rtu_y, real32_T rtu_max_tht, real32_T rtu_tht0, DW_theta1_cr929_SIL_T *localDW, real32_T rtp_Ts) @@ -3650,167 +3651,45 @@ real32_T cr929_SIL_theta1(real32_T rtu_y, real32_T rtu_max_tht, real32_T real32_T rtb_Merge_o5; real32_T rtb_Divide_oo; - /* Delay: '/delay' */ - if (localDW->icLoad != 0) { - localDW->delay_DSTATE = rtu_tht0; - } - - /* Math: '/Math Function1' */ - rtb_Merge_o5 = rtu_max_tht * rtu_max_tht; - - /* Product: '/Divide' incorporates: - * Constant: '/eps_tht' - * Constant: '/one' - * Delay: '/delay' - * Math: '/Math Function' - * Product: '/Divide1' - * Product: '/Product' - * Sum: '/Sum' - * Sum: '/Sum1' - */ - rtb_Divide_oo = (localDW->delay_DSTATE * localDW->delay_DSTATE * 2.0F - - rtb_Merge_o5) / rtb_Merge_o5; - - /* If: '/If' incorporates: - * Delay: '/delay' - * Inport: '/y_in' - * Product: '/Product' - */ - if ((rtb_Divide_oo < 0.0F) || ((rtb_Divide_oo > 0.0F) && - (localDW->delay_DSTATE * rtu_y < 0.0F))) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' - */ - rtb_Merge_o5 = rtu_y; - - /* End of Outputs for SubSystem: '/If Action Subsystem' */ - } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' - */ - cr929_SIL_IfActionSubsystem1(rtu_y, rtb_Divide_oo, &rtb_Merge_o5); - - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ - } - - /* End of If: '/If' */ - - /* Sum: '/Sum' incorporates: - * Delay: '/delay' - * Gain: '/dt2' - */ - rty_theta_hat_0 = rtp_Ts * rtb_Merge_o5 + localDW->delay_DSTATE; - - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' - */ - if (rty_theta_hat_0 > rtu_max_tht) { - rty_theta_hat_0 = rtu_max_tht; - } else { - if (rty_theta_hat_0 < 0.3F) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - rty_theta_hat_0 = 0.3F; - } - } - - /* End of Switch: '/Switch2' */ - - /* Update for Delay: '/delay' */ - localDW->icLoad = 0U; - localDW->delay_DSTATE = rty_theta_hat_0; - return rty_theta_hat_0; -} - -/* - * System initialize for atomic system: - * '/theta2' - * '/theta3' - * '/theta2' - * '/theta3' - * '/theta2' - * '/theta3' - */ -void cr929_SIL_theta2_Init(DW_theta2_cr929_SIL_T *localDW) -{ - /* InitializeConditions for Delay: '/delay' */ - localDW->icLoad = 1U; -} - -/* - * System reset for atomic system: - * '/theta2' - * '/theta3' - * '/theta2' - * '/theta3' - * '/theta2' - * '/theta3' - */ -void cr929_SIL_theta2_Reset(DW_theta2_cr929_SIL_T *localDW) -{ - /* InitializeConditions for Delay: '/delay' */ - localDW->icLoad = 1U; -} - -/* - * Output and update for atomic system: - * '/theta2' - * '/theta3' - * '/theta2' - * '/theta3' - * '/theta2' - * '/theta3' - */ -real32_T cr929_SIL_theta2(real32_T rtu_y, real32_T rtu_max_tht, real32_T - rtu_tht0, DW_theta2_cr929_SIL_T *localDW, real32_T rtp_Ts) -{ - real32_T rty_theta_hat_0; - real32_T rtb_Merge_p; - real32_T rtb_Divide_k; - /* Delay: '/delay' */ if (localDW->icLoad != 0) { localDW->delay_DSTATE = rtu_tht0; } - /* Math: '/Math Function1' */ - rtb_Merge_p = rtu_max_tht * rtu_max_tht; + /* Math: '/Math Function1' */ + rtb_Merge_o5 = rtu_max_tht * rtu_max_tht; - /* Product: '/Divide' incorporates: - * Constant: '/eps_tht' - * Constant: '/one' + /* Product: '/Divide' incorporates: + * Constant: '/eps_tht' + * Constant: '/one' * Delay: '/delay' - * Math: '/Math Function' - * Product: '/Divide1' - * Product: '/Product' - * Sum: '/Sum' - * Sum: '/Sum1' + * Math: '/Math Function' + * Product: '/Divide1' + * Product: '/Product' + * Sum: '/Sum' + * Sum: '/Sum1' */ - rtb_Divide_k = (localDW->delay_DSTATE * localDW->delay_DSTATE * 2.0F - - rtb_Merge_p) / rtb_Merge_p; + rtb_Divide_oo = (localDW->delay_DSTATE * localDW->delay_DSTATE * 2.0F - + rtb_Merge_o5) / rtb_Merge_o5; /* If: '/If' incorporates: * Delay: '/delay' - * Inport: '/y_in' + * Inport: '/y_in' * Product: '/Product' */ - if ((rtb_Divide_k < 0.0F) || ((rtb_Divide_k > 0.0F) && (localDW->delay_DSTATE * - rtu_y < 0.0F))) { + if ((rtb_Divide_oo < 0.0F) || ((rtb_Divide_oo > 0.0F) && + (localDW->delay_DSTATE * rtu_y < 0.0F))) { /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - rtb_Merge_p = rtu_y; + rtb_Merge_o5 = rtu_y; /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - cr929_SIL_IfActionSubsystem1(rtu_y, rtb_Divide_k, &rtb_Merge_p); + cr929_SIL_IfActionSubsystem1(rtu_y, rtb_Divide_oo, &rtb_Merge_o5); /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } @@ -3821,26 +3700,26 @@ real32_T cr929_SIL_theta2(real32_T rtu_y, real32_T rtu_max_tht, real32_T * Delay: '/delay' * Gain: '/dt2' */ - rty_theta_hat_0 = rtp_Ts * rtb_Merge_p + localDW->delay_DSTATE; + rty_theta_hat_0 = rtp_Ts * rtb_Merge_o5 + localDW->delay_DSTATE; - /* Switch: '/Switch2' incorporates: - * Gain: '/Gain' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rty_theta_hat_0 > rtu_max_tht) { rty_theta_hat_0 = rtu_max_tht; } else { - if (rty_theta_hat_0 < -rtu_max_tht) { - /* Switch: '/Switch' incorporates: - * Gain: '/Gain' + if (rty_theta_hat_0 < 0.3F) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' */ - rty_theta_hat_0 = -rtu_max_tht; + rty_theta_hat_0 = 0.3F; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ /* Update for Delay: '/delay' */ localDW->icLoad = 0U; @@ -3848,14 +3727,136 @@ real32_T cr929_SIL_theta2(real32_T rtu_y, real32_T rtu_max_tht, real32_T return rty_theta_hat_0; } +/* + * System initialize for atomic system: + * '/theta2' + * '/theta3' + * '/theta2' + * '/theta3' + * '/theta2' + * '/theta3' + */ +void cr929_SIL_theta2_Init(DW_theta2_cr929_SIL_T *localDW) +{ + /* InitializeConditions for Delay: '/delay' */ + localDW->icLoad = 1U; +} + +/* + * System reset for atomic system: + * '/theta2' + * '/theta3' + * '/theta2' + * '/theta3' + * '/theta2' + * '/theta3' + */ +void cr929_SIL_theta2_Reset(DW_theta2_cr929_SIL_T *localDW) +{ + /* InitializeConditions for Delay: '/delay' */ + localDW->icLoad = 1U; +} + +/* + * Output and update for atomic system: + * '/theta2' + * '/theta3' + * '/theta2' + * '/theta3' + * '/theta2' + * '/theta3' + */ +real32_T cr929_SIL_theta2(real32_T rtu_y, real32_T rtu_max_tht, real32_T + rtu_tht0, DW_theta2_cr929_SIL_T *localDW, real32_T rtp_Ts) +{ + real32_T rty_theta_hat_0; + real32_T rtb_Merge_p; + real32_T rtb_Divide_k; + + /* Delay: '/delay' */ + if (localDW->icLoad != 0) { + localDW->delay_DSTATE = rtu_tht0; + } + + /* Math: '/Math Function1' */ + rtb_Merge_p = rtu_max_tht * rtu_max_tht; + + /* Product: '/Divide' incorporates: + * Constant: '/eps_tht' + * Constant: '/one' + * Delay: '/delay' + * Math: '/Math Function' + * Product: '/Divide1' + * Product: '/Product' + * Sum: '/Sum' + * Sum: '/Sum1' + */ + rtb_Divide_k = (localDW->delay_DSTATE * localDW->delay_DSTATE * 2.0F - + rtb_Merge_p) / rtb_Merge_p; + + /* If: '/If' incorporates: + * Delay: '/delay' + * Inport: '/y_in' + * Product: '/Product' + */ + if ((rtb_Divide_k < 0.0F) || ((rtb_Divide_k > 0.0F) && (localDW->delay_DSTATE * + rtu_y < 0.0F))) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + rtb_Merge_p = rtu_y; + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } else { + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + cr929_SIL_IfActionSubsystem1(rtu_y, rtb_Divide_k, &rtb_Merge_p); + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + } + + /* End of If: '/If' */ + + /* Sum: '/Sum' incorporates: + * Delay: '/delay' + * Gain: '/dt2' + */ + rty_theta_hat_0 = rtp_Ts * rtb_Merge_p + localDW->delay_DSTATE; + + /* Switch: '/Switch2' incorporates: + * Gain: '/Gain' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' + */ + if (rty_theta_hat_0 > rtu_max_tht) { + rty_theta_hat_0 = rtu_max_tht; + } else { + if (rty_theta_hat_0 < -rtu_max_tht) { + /* Switch: '/Switch' incorporates: + * Gain: '/Gain' + */ + rty_theta_hat_0 = -rtu_max_tht; + } + } + + /* End of Switch: '/Switch2' */ + + /* Update for Delay: '/delay' */ + localDW->icLoad = 0U; + localDW->delay_DSTATE = rty_theta_hat_0; + return rty_theta_hat_0; +} + /* * Output and update for function-call system: - * '/dummy clear_mission' - * '/dummy clear_mission' + * '/dummy clear_mission' + * '/dummy clear_mission' */ void cr929_SIL_dummyclear_mission(uint8_T rtu_type, uint8_T *rty_ack) { - /* Chart: '/chat_clear_mission' */ + /* Chart: '/chat_clear_mission' */ switch (rtu_type) { case 1: dummyFenceCount = 0U; @@ -3872,41 +3873,41 @@ void cr929_SIL_dummyclear_mission(uint8_T rtu_type, uint8_T *rty_ack) *rty_ack = 0U; - /* End of Chart: '/chat_clear_mission' */ + /* End of Chart: '/chat_clear_mission' */ } -/* Start for function-call system: '/find_val' */ +/* Start for function-call system: '/find_val' */ void cr929_SIL_find_val_Start(void) { - /* Start for S-Function (find_param_val): '/find_val_capi' */ + /* Start for S-Function (find_param_val): '/find_val_capi' */ - /* S-Function Block: /find_val_capi */ + /* S-Function Block: /find_val_capi */ find_param_val_Start_wrapper(); } -/* Output and update for function-call system: '/find_val' */ +/* Output and update for function-call system: '/find_val' */ void cr929_SIL_find_val(uint16_T rtu_idx, uint8_T rty_name[16], uint8_T rty_value[4], uint8_T *rty_type, uint16_T *rty_count, uint16_T *rty_index) { - /* S-Function (find_param_val): '/find_val_capi' */ + /* S-Function (find_param_val): '/find_val_capi' */ find_param_val_Outputs_wrapper(&rtu_idx, &rty_name[0], &rty_value[0], rty_type, rty_count, rty_index); } -/* Output and update for function-call system: '/u2f' */ +/* Output and update for function-call system: '/u2f' */ void cr929_SIL_u2f(const uint8_T rtu_u[4], real32_T *rty_f) { - /* S-Function (byte2any): '/Byte Unpack' */ + /* S-Function (byte2any): '/Byte Unpack' */ - /* Unpack: /Byte Unpack */ + /* Unpack: /Byte Unpack */ (void) memcpy(rty_f, &rtu_u[0], 4); } /* * System initialize for atomic system: - * '/tick' - * '/tick' + * '/tick' + * '/tick' */ void cr929_SIL_tick_Init(DW_tick_cr929_SIL_T *localDW) { @@ -3917,13 +3918,13 @@ void cr929_SIL_tick_Init(DW_tick_cr929_SIL_T *localDW) /* * Output and update for atomic system: - * '/tick' - * '/tick' + * '/tick' + * '/tick' */ void cr929_SIL_tick(real_T rtu_dt, boolean_T *rty_enabled, DW_tick_cr929_SIL_T *localDW) { - /* Chart: '/tick' */ + /* Chart: '/tick' */ if (localDW->temporalCounter_i1 < MAX_uint32_T) { localDW->temporalCounter_i1++; } @@ -3959,13 +3960,13 @@ void cr929_SIL_tick(real_T rtu_dt, boolean_T *rty_enabled, DW_tick_cr929_SIL_T } } - /* End of Chart: '/tick' */ + /* End of Chart: '/tick' */ } /* * System initialize for atomic system: - * '/tick' - * '/tick' + * '/tick' + * '/tick' */ void cr929_SIL_tick_l_Init(DW_tick_cr929_SIL_g_T *localDW) { @@ -3976,13 +3977,13 @@ void cr929_SIL_tick_l_Init(DW_tick_cr929_SIL_g_T *localDW) /* * Output and update for atomic system: - * '/tick' - * '/tick' + * '/tick' + * '/tick' */ void cr929_SIL_tick_c(real_T rtu_dt, boolean_T *rty_enabled, DW_tick_cr929_SIL_g_T *localDW) { - /* Chart: '/tick' */ + /* Chart: '/tick' */ if (localDW->temporalCounter_i1 < MAX_uint32_T) { localDW->temporalCounter_i1++; } @@ -4018,13 +4019,13 @@ void cr929_SIL_tick_c(real_T rtu_dt, boolean_T *rty_enabled, } } - /* End of Chart: '/tick' */ + /* End of Chart: '/tick' */ } /* * System initialize for atomic system: - * '/tick' - * '/tick' + * '/tick' + * '/tick' */ void cr929_SIL_tick_h_Init(DW_tick_cr929_SIL_e_T *localDW) { @@ -4035,13 +4036,13 @@ void cr929_SIL_tick_h_Init(DW_tick_cr929_SIL_e_T *localDW) /* * Output and update for atomic system: - * '/tick' - * '/tick' + * '/tick' + * '/tick' */ void cr929_SIL_tick_e(real_T rtu_dt, boolean_T *rty_enabled, DW_tick_cr929_SIL_e_T *localDW) { - /* Chart: '/tick' */ + /* Chart: '/tick' */ if (localDW->temporalCounter_i1 < MAX_uint32_T) { localDW->temporalCounter_i1++; } @@ -4064,7 +4065,7 @@ void cr929_SIL_tick_e(real_T rtu_dt, boolean_T *rty_enabled, } } - /* End of Chart: '/tick' */ + /* End of Chart: '/tick' */ } /* @@ -4074,7 +4075,7 @@ void cr929_SIL_tick_e(real_T rtu_dt, boolean_T *rty_enabled, */ void cr929_SIL_EnabledSubsystem1_Init(DW_EnabledSubsystem1_cr929_SIL_T *localDW) { - /* InitializeConditions for Delay: '/Delay' */ + /* InitializeConditions for Delay: '/Delay' */ localDW->icLoad = 1U; } @@ -4085,7 +4086,7 @@ void cr929_SIL_EnabledSubsystem1_Init(DW_EnabledSubsystem1_cr929_SIL_T *localDW) */ void cr929_SIL_EnabledSubsystem1_Reset(DW_EnabledSubsystem1_cr929_SIL_T *localDW) { - /* InitializeConditions for Delay: '/Delay' */ + /* InitializeConditions for Delay: '/Delay' */ localDW->icLoad = 1U; } @@ -4112,7 +4113,7 @@ void cr929_SIL_EnabledSubsystem1(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, real_T rtb_Sum_gj; /* Outputs for Enabled SubSystem: '/Enabled Subsystem1' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (rtu_Enable > 0U) { @@ -4128,41 +4129,41 @@ void cr929_SIL_EnabledSubsystem1(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, } if (localDW->EnabledSubsystem1_MODE) { - /* Delay: '/Delay' */ + /* Delay: '/Delay' */ if (localDW->icLoad != 0) { localDW->Delay_DSTATE = rtu_In1; } - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant BP' - * Delay: '/Delay' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Sum: '/subtract1' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant BP' + * Delay: '/Delay' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Sum: '/subtract1' + * Switch: '/Switch' */ if (-0.25 - localDW->Delay_DSTATE > 0.001531) { rtb_Sum_gj = 0.001531; } else if (-0.25 - localDW->Delay_DSTATE < -0.001531) { - /* Switch: '/Switch' */ + /* Switch: '/Switch' */ rtb_Sum_gj = -0.001531; } else { rtb_Sum_gj = -0.25 - localDW->Delay_DSTATE; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Sum: '/Sum' incorporates: - * Delay: '/Delay' + /* Sum: '/Sum' incorporates: + * Delay: '/Delay' */ rtb_Sum_gj += localDW->Delay_DSTATE; - /* SignalConversion: '/OutportBufferForOut1' incorporates: - * Delay: '/Delay' + /* SignalConversion: '/OutportBufferForOut1' incorporates: + * Delay: '/Delay' */ *rty_Out1 = localDW->Delay_DSTATE; - /* Update for Delay: '/Delay' */ + /* Update for Delay: '/Delay' */ localDW->icLoad = 0U; localDW->Delay_DSTATE = rtb_Sum_gj; } @@ -4172,254 +4173,30 @@ void cr929_SIL_EnabledSubsystem1(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, /* * System initialize for enable system: - * '/throttle' - * '/throttle1' - */ -void cr929_SIL_throttle_Init(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, - DW_throttle_cr929_SIL_T *localDW, X_throttle_cr929_SIL_T *localX) -{ - /* InitializeConditions for Delay: '/Delay' */ - localDW->icLoad = 1U; - - /* InitializeConditions for Integrator: '/Integrator3' */ - if (rtmIsFirstInitCond(cr929_SIL_M)) { - localX->Integrator3_CSTATE = 0.0; - } - - localDW->Integrator3_IWORK = 1; - - /* End of InitializeConditions for Integrator: '/Integrator3' */ - - /* InitializeConditions for UnitDelay: '/Unit Delay' */ - localDW->UnitDelay_DSTATE = 0.0; -} - -/* - * System reset for enable system: - * '/throttle' - * '/throttle1' - */ -void cr929_SIL_throttle_Reset(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, - DW_throttle_cr929_SIL_T *localDW, X_throttle_cr929_SIL_T *localX) -{ - /* InitializeConditions for Delay: '/Delay' */ - localDW->icLoad = 1U; - - /* InitializeConditions for Integrator: '/Integrator3' */ - if (rtmIsFirstInitCond(cr929_SIL_M)) { - localX->Integrator3_CSTATE = 0.0; - } - - localDW->Integrator3_IWORK = 1; - - /* End of InitializeConditions for Integrator: '/Integrator3' */ - - /* InitializeConditions for UnitDelay: '/Unit Delay' */ - localDW->UnitDelay_DSTATE = 0.0; -} - -/* - * Disable for enable system: - * '/throttle' - * '/throttle1' - */ -void cr929_SIL_throttle_Disable(DW_throttle_cr929_SIL_T *localDW) -{ - localDW->throttle_MODE = false; -} - -/* - * Outputs for enable system: - * '/throttle' - * '/throttle1' - */ -void cr929_SIL_throttle(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, boolean_T - rtu_Enable, real_T rtu_thr_c, real_T rtu_In1, real_T *rty_thr, - B_throttle_cr929_SIL_T *localB, DW_throttle_cr929_SIL_T *localDW, - X_throttle_cr929_SIL_T *localX) -{ - real_T rtb_Gain_nv; - real_T rtb_subtract1_d; - - /* Outputs for Enabled SubSystem: '/throttle' incorporates: - * EnablePort: '/Enable' - */ - if (rtmIsMajorTimeStep(cr929_SIL_M) && rtmIsMajorTimeStep(cr929_SIL_M)) { - if (rtu_Enable) { - if (!localDW->throttle_MODE) { - cr929_SIL_throttle_Reset(cr929_SIL_M, localDW, localX); - localDW->throttle_MODE = true; - } - } else { - if (localDW->throttle_MODE) { - cr929_SIL_throttle_Disable(localDW); - } - } - } - - if (localDW->throttle_MODE) { - if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Delay: '/Delay' */ - if (localDW->icLoad != 0) { - localDW->Delay_DSTATE = rtu_thr_c; - } - - localB->Delay = localDW->Delay_DSTATE; - - /* End of Delay: '/Delay' */ - } - - /* Integrator: '/Integrator3' */ - if (localDW->Integrator3_IWORK != 0) { - localX->Integrator3_CSTATE = rtu_In1; - } - - localB->throttle = localX->Integrator3_CSTATE; - - /* End of Integrator: '/Integrator3' */ - - /* Sum: '/subtract2' */ - localB->subtract2 = localB->Delay - localB->throttle; - - /* Gain: '/Gain3' */ - localB->Gain3 = cr929_SIL_P.throttle_k * localB->subtract2; - - /* SignalConversion: '/OutportBufferForthr' */ - *rty_thr = localB->throttle; - if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Sum: '/Sum' incorporates: - * UnitDelay: '/Unit Delay' - */ - localDW->UnitDelay_DSTATE = rtu_thr_c - localDW->UnitDelay_DSTATE; - - /* Switch: '/if' incorporates: - * Constant: '/Constant1' - * Switch: '/if' - * UnitDelay: '/Unit Delay' - */ - if (localDW->UnitDelay_DSTATE > 0.0) { - /* Switch: '/if' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - */ - if (rtu_thr_c > 0.5) { - rtb_Gain_nv = 0.2825; - } else { - rtb_Gain_nv = 0.082; - } - - /* End of Switch: '/if' */ - } else if (rtu_thr_c > 0.5) { - /* Switch: '/if' incorporates: - * Constant: '/Constant' - */ - rtb_Gain_nv = 0.108; - } else { - rtb_Gain_nv = 0.082; - } - - /* End of Switch: '/if' */ - - /* Gain: '/Gain' */ - rtb_Gain_nv *= 0.003062; - - /* Sum: '/subtract1' */ - rtb_subtract1_d = rtu_thr_c - localB->Delay; - - /* Switch: '/Switch2' incorporates: - * Gain: '/Gain3' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' - */ - if (rtb_subtract1_d > rtb_Gain_nv) { - rtb_subtract1_d = rtb_Gain_nv; - } else { - if (rtb_subtract1_d < -rtb_Gain_nv) { - /* Switch: '/Switch' incorporates: - * Gain: '/Gain3' - */ - rtb_subtract1_d = -rtb_Gain_nv; - } - } - - /* End of Switch: '/Switch2' */ - - /* Sum: '/Sum' */ - localB->Sum_m = rtb_subtract1_d + localB->Delay; - } - } - - /* End of Outputs for SubSystem: '/throttle' */ -} - -/* - * Update for enable system: - * '/throttle' - * '/throttle1' - */ -void cr929_SIL_throttle_Update(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, - B_throttle_cr929_SIL_T *localB, DW_throttle_cr929_SIL_T *localDW) -{ - /* Update for Enabled SubSystem: '/throttle' incorporates: - * EnablePort: '/Enable' - */ - if (localDW->throttle_MODE) { - if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Update for Delay: '/Delay' */ - localDW->icLoad = 0U; - localDW->Delay_DSTATE = localB->Sum_m; - } - - /* Update for Integrator: '/Integrator3' */ - localDW->Integrator3_IWORK = 0; - } - - /* End of Update for SubSystem: '/throttle' */ -} - -/* - * Derivatives for enable system: - * '/throttle' - * '/throttle1' - */ -void cr929_SIL_throttle_Deriv(B_throttle_cr929_SIL_T *localB, - DW_throttle_cr929_SIL_T *localDW, XDot_throttle_cr929_SIL_T *localXdot) -{ - if (localDW->throttle_MODE) { - /* Derivatives for Integrator: '/Integrator3' */ - localXdot->Integrator3_CSTATE = localB->Gain3; - } else { - localXdot->Integrator3_CSTATE = 0.0; - } -} - -/* - * System initialize for enable system: - * '/Distance into gust (x)' - * '/Distance into gust (x)' + * '/Distance into gust (x)' + * '/Distance into gust (x)' */ void cr929_SIL_Distanceintogustx_Init(X_Distanceintogustx_cr929_SIL_T *localX) { - /* InitializeConditions for Integrator: '/Distance into Gust (x) (Limited to gust length d)' */ + /* InitializeConditions for Integrator: '/Distance into Gust (x) (Limited to gust length d)' */ localX->DistanceintoGustxLimitedtogustlengthd_CSTATE_b = 0.0; } /* * System reset for enable system: - * '/Distance into gust (x)' - * '/Distance into gust (x)' + * '/Distance into gust (x)' + * '/Distance into gust (x)' */ void cr929_SIL_Distanceintogustx_Reset(X_Distanceintogustx_cr929_SIL_T *localX) { - /* InitializeConditions for Integrator: '/Distance into Gust (x) (Limited to gust length d)' */ + /* InitializeConditions for Integrator: '/Distance into Gust (x) (Limited to gust length d)' */ localX->DistanceintoGustxLimitedtogustlengthd_CSTATE_b = 0.0; } /* * Disable for enable system: - * '/Distance into gust (x)' - * '/Distance into gust (x)' + * '/Distance into gust (x)' + * '/Distance into gust (x)' */ void cr929_SIL_Distanceintogustx_Disable(DW_Distanceintogustx_cr929_SIL_T *localDW) @@ -4429,15 +4206,15 @@ void cr929_SIL_Distanceintogustx_Disable(DW_Distanceintogustx_cr929_SIL_T /* * Outputs for enable system: - * '/Distance into gust (x)' - * '/Distance into gust (x)' + * '/Distance into gust (x)' + * '/Distance into gust (x)' */ void cr929_SIL_Distanceintogustx(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, boolean_T rtu_Enable, real_T *rty_x, DW_Distanceintogustx_cr929_SIL_T *localDW, X_Distanceintogustx_cr929_SIL_T *localX, real_T rtp_d_m) { - /* Outputs for Enabled SubSystem: '/Distance into gust (x)' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Distance into gust (x)' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M) && rtmIsMajorTimeStep(cr929_SIL_M)) { if (rtu_Enable) { @@ -4453,7 +4230,7 @@ void cr929_SIL_Distanceintogustx(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, } if (localDW->Distanceintogustx_MODE) { - /* Integrator: '/Distance into Gust (x) (Limited to gust length d)' */ + /* Integrator: '/Distance into Gust (x) (Limited to gust length d)' */ /* Limited Integrator */ if (localX->DistanceintoGustxLimitedtogustlengthd_CSTATE_b >= rtp_d_m) { localX->DistanceintoGustxLimitedtogustlengthd_CSTATE_b = rtp_d_m; @@ -4465,16 +4242,16 @@ void cr929_SIL_Distanceintogustx(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, *rty_x = localX->DistanceintoGustxLimitedtogustlengthd_CSTATE_b; - /* End of Integrator: '/Distance into Gust (x) (Limited to gust length d)' */ + /* End of Integrator: '/Distance into Gust (x) (Limited to gust length d)' */ } - /* End of Outputs for SubSystem: '/Distance into gust (x)' */ + /* End of Outputs for SubSystem: '/Distance into gust (x)' */ } /* * Derivatives for enable system: - * '/Distance into gust (x)' - * '/Distance into gust (x)' + * '/Distance into gust (x)' + * '/Distance into gust (x)' */ void cr929_SIL_Distanceintogustx_Deriv(real_T rtu_V, DW_Distanceintogustx_cr929_SIL_T *localDW, X_Distanceintogustx_cr929_SIL_T @@ -4483,7 +4260,7 @@ void cr929_SIL_Distanceintogustx_Deriv(real_T rtu_V, boolean_T lsat; boolean_T usat; if (localDW->Distanceintogustx_MODE) { - /* Derivatives for Integrator: '/Distance into Gust (x) (Limited to gust length d)' */ + /* Derivatives for Integrator: '/Distance into Gust (x) (Limited to gust length d)' */ lsat = (localX->DistanceintoGustxLimitedtogustlengthd_CSTATE_b <= 0.0); usat = (localX->DistanceintoGustxLimitedtogustlengthd_CSTATE_b >= rtp_d_m); if (((!lsat) && (!usat)) || (lsat && (rtu_V > 0.0)) || (usat && (rtu_V < 0.0))) @@ -4494,7 +4271,7 @@ void cr929_SIL_Distanceintogustx_Deriv(real_T rtu_V, localXdot->DistanceintoGustxLimitedtogustlengthd_CSTATE_b = 0.0; } - /* End of Derivatives for Integrator: '/Distance into Gust (x) (Limited to gust length d)' */ + /* End of Derivatives for Integrator: '/Distance into Gust (x) (Limited to gust length d)' */ } else { localXdot->DistanceintoGustxLimitedtogustlengthd_CSTATE_b = 0.0; } @@ -4502,36 +4279,36 @@ void cr929_SIL_Distanceintogustx_Deriv(real_T rtu_V, /* * System initialize for enable system: - * '/Distance into gust (y)' - * '/Distance into gust (z)' - * '/Distance into gust (y)' - * '/Distance into gust (z)' + * '/Distance into gust (y)' + * '/Distance into gust (z)' + * '/Distance into gust (y)' + * '/Distance into gust (z)' */ void cr929_SIL_Distanceintogusty_Init(X_Distanceintogusty_cr929_SIL_T *localX) { - /* InitializeConditions for Integrator: '/Distance into Gust (x) (Limited to gust length d) ' */ + /* InitializeConditions for Integrator: '/Distance into Gust (x) (Limited to gust length d) ' */ localX->DistanceintoGustxLimitedtogustlengthd_CSTATE = 0.0; } /* * System reset for enable system: - * '/Distance into gust (y)' - * '/Distance into gust (z)' - * '/Distance into gust (y)' - * '/Distance into gust (z)' + * '/Distance into gust (y)' + * '/Distance into gust (z)' + * '/Distance into gust (y)' + * '/Distance into gust (z)' */ void cr929_SIL_Distanceintogusty_Reset(X_Distanceintogusty_cr929_SIL_T *localX) { - /* InitializeConditions for Integrator: '/Distance into Gust (x) (Limited to gust length d) ' */ + /* InitializeConditions for Integrator: '/Distance into Gust (x) (Limited to gust length d) ' */ localX->DistanceintoGustxLimitedtogustlengthd_CSTATE = 0.0; } /* * Disable for enable system: - * '/Distance into gust (y)' - * '/Distance into gust (z)' - * '/Distance into gust (y)' - * '/Distance into gust (z)' + * '/Distance into gust (y)' + * '/Distance into gust (z)' + * '/Distance into gust (y)' + * '/Distance into gust (z)' */ void cr929_SIL_Distanceintogusty_Disable(DW_Distanceintogusty_cr929_SIL_T *localDW) @@ -4541,17 +4318,17 @@ void cr929_SIL_Distanceintogusty_Disable(DW_Distanceintogusty_cr929_SIL_T /* * Outputs for enable system: - * '/Distance into gust (y)' - * '/Distance into gust (z)' - * '/Distance into gust (y)' - * '/Distance into gust (z)' + * '/Distance into gust (y)' + * '/Distance into gust (z)' + * '/Distance into gust (y)' + * '/Distance into gust (z)' */ void cr929_SIL_Distanceintogusty(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, boolean_T rtu_Enable, real_T *rty_x, DW_Distanceintogusty_cr929_SIL_T *localDW, X_Distanceintogusty_cr929_SIL_T *localX, real_T rtp_d_m) { - /* Outputs for Enabled SubSystem: '/Distance into gust (y)' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Distance into gust (y)' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M) && rtmIsMajorTimeStep(cr929_SIL_M)) { if (rtu_Enable) { @@ -4567,7 +4344,7 @@ void cr929_SIL_Distanceintogusty(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, } if (localDW->Distanceintogusty_MODE) { - /* Integrator: '/Distance into Gust (x) (Limited to gust length d) ' */ + /* Integrator: '/Distance into Gust (x) (Limited to gust length d) ' */ /* Limited Integrator */ if (localX->DistanceintoGustxLimitedtogustlengthd_CSTATE >= rtp_d_m) { localX->DistanceintoGustxLimitedtogustlengthd_CSTATE = rtp_d_m; @@ -4579,18 +4356,18 @@ void cr929_SIL_Distanceintogusty(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, *rty_x = localX->DistanceintoGustxLimitedtogustlengthd_CSTATE; - /* End of Integrator: '/Distance into Gust (x) (Limited to gust length d) ' */ + /* End of Integrator: '/Distance into Gust (x) (Limited to gust length d) ' */ } - /* End of Outputs for SubSystem: '/Distance into gust (y)' */ + /* End of Outputs for SubSystem: '/Distance into gust (y)' */ } /* * Derivatives for enable system: - * '/Distance into gust (y)' - * '/Distance into gust (z)' - * '/Distance into gust (y)' - * '/Distance into gust (z)' + * '/Distance into gust (y)' + * '/Distance into gust (z)' + * '/Distance into gust (y)' + * '/Distance into gust (z)' */ void cr929_SIL_Distanceintogusty_Deriv(real_T rtu_V, DW_Distanceintogusty_cr929_SIL_T *localDW, X_Distanceintogusty_cr929_SIL_T @@ -4599,7 +4376,7 @@ void cr929_SIL_Distanceintogusty_Deriv(real_T rtu_V, boolean_T lsat; boolean_T usat; if (localDW->Distanceintogusty_MODE) { - /* Derivatives for Integrator: '/Distance into Gust (x) (Limited to gust length d) ' */ + /* Derivatives for Integrator: '/Distance into Gust (x) (Limited to gust length d) ' */ lsat = (localX->DistanceintoGustxLimitedtogustlengthd_CSTATE <= 0.0); usat = (localX->DistanceintoGustxLimitedtogustlengthd_CSTATE >= rtp_d_m); if (((!lsat) && (!usat)) || (lsat && (rtu_V > 0.0)) || (usat && (rtu_V < 0.0))) @@ -4610,7 +4387,7 @@ void cr929_SIL_Distanceintogusty_Deriv(real_T rtu_V, localXdot->DistanceintoGustxLimitedtogustlengthd_CSTATE = 0.0; } - /* End of Derivatives for Integrator: '/Distance into Gust (x) (Limited to gust length d) ' */ + /* End of Derivatives for Integrator: '/Distance into Gust (x) (Limited to gust length d) ' */ } else { localXdot->DistanceintoGustxLimitedtogustlengthd_CSTATE = 0.0; } @@ -4745,253 +4522,6 @@ static void cr929_SIL_sf_msg_discard_cmd2(void) } } -int32_T cr929_SIL_pop_c02u1i(Queue_mavlink_mission_item_int_t *q, - Msg_mavlink_mission_item_int_t *elementOut) -{ - int32_T isPop; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ - if (q->fHead == -1) { - isPop = 0; - } else { - *elementOut = q->fArray[q->fHead]; - isPop = 1; - if (q->fHead == q->fTail) { - q->fHead = -1; - q->fTail = -1; - } else { - q->fHead = (q->fHead + 1) % q->fCapacity; - } - } - - /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ - return isPop; -} - -Msg_mavlink_mission_item_int_t *cr929_SIL_Chart_proc_mission_upload_In2_RecvMsg - (void) -{ - Msg_mavlink_mission_item_int_t *msg_received = NULL; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ - if (cr929_SIL_pop_c02u1i - (&cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_Q, - &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_O) - != 0) { - msg_received = - &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_O; - } - - /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ - return msg_received; -} - -/* Function for Chart: '/Chart_proc_mission_upload' */ -static boolean_T cr929_SIL_sf_msg_pop_mission_item(void) -{ - boolean_T isPresent; - if (cr929_SIL_DW.mission_item_isValid) { - isPresent = true; - } else { - cr929_SIL_DW.mission_item_msgHandle = - cr929_SIL_Chart_proc_mission_upload_In2_RecvMsg(); - if (cr929_SIL_DW.mission_item_msgHandle != NULL) { - cr929_SIL_DW.mission_item_msgDataPtr = ((Msg_mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgHandle)->fData; - isPresent = true; - } else { - isPresent = false; - } - - cr929_SIL_DW.mission_item_isValid = isPresent; - } - - return isPresent; -} - -int32_T cr929_SIL_emplace_n2pydmu(Queue_mavlink_mission_ack_t *q, const - mavlink_mission_ack_t *dataIn) -{ - int32_T isEmplaced; - int32_T newTail; - Msg_mavlink_mission_ack_t *msg; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph14' */ - newTail = (q->fTail + 1) % q->fCapacity; - if (q->fHead == newTail) { - isEmplaced = 0; - } else { - q->fTail = newTail; - msg = &q->fArray[newTail]; - msg->fData = *dataIn; - if (q->fHead == -1) { - q->fHead = q->fTail; - } - - isEmplaced = 1; - } - - /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph14' */ - return isEmplaced; -} - -int32_T cr929_SIL_merge_ack_In2_SendData(const mavlink_mission_ack_t - *data_toSend) -{ - int32_T isSent = 0; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph15' */ - isSent = cr929_SIL_emplace_n2pydmu - (&cr929_SIL_DW.EntityQueue_InsertedFor_merge_ack_at_inport_1_Queue_mavlink_mis, - data_toSend); - return isSent; -} - -/* Function for Chart: '/Chart_proc_mission_upload' */ -static void cr929_SIL_sf_msg_send_mission_ack(void) -{ - cr929_SIL_merge_ack_In2_SendData(&cr929_SIL_DW.mission_ack_msgData); -} - -int32_T cr929_SIL_emplace_n2pydmuqf(Queue_mavlink_mission_request_int_t *q, - const mavlink_mission_request_int_t *dataIn) -{ - int32_T isEmplaced; - int32_T newTail; - Msg_mavlink_mission_request_int_t *msg; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph10' */ - newTail = (q->fTail + 1) % q->fCapacity; - if (q->fHead == newTail) { - isEmplaced = 0; - } else { - q->fTail = newTail; - msg = &q->fArray[newTail]; - msg->fData = *dataIn; - if (q->fHead == -1) { - q->fHead = q->fTail; - } - - isEmplaced = 1; - } - - /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph10' */ - return isEmplaced; -} - -int32_T cr929_SIL_traffic_ctrl_In8_SendData(const mavlink_mission_request_int_t * - data_toSend) -{ - int32_T isSent = 0; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph10' */ - isSent = cr929_SIL_emplace_n2pydmuqf - (&cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_7_Queue_mavlink_, - data_toSend); - return isSent; -} - -/* Function for Chart: '/Chart_proc_mission_upload' */ -static void cr929_SIL_sf_msg_send_mission_req_int(void) -{ - cr929_SIL_traffic_ctrl_In8_SendData(&cr929_SIL_DW.mission_req_int_msgData); -} - -int32_T cr929_SIL_pop_c02u1(Queue_mavlink_mission_count_t *q, - Msg_mavlink_mission_count_t *elementOut) -{ - int32_T isPop; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ - if (q->fHead == -1) { - isPop = 0; - } else { - *elementOut = q->fArray[q->fHead]; - isPop = 1; - if (q->fHead == q->fTail) { - q->fHead = -1; - q->fTail = -1; - } else { - q->fHead = (q->fHead + 1) % q->fCapacity; - } - } - - /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ - return isPop; -} - -Msg_mavlink_mission_count_t *cr929_SIL_Chart_proc_mission_upload_In1_RecvMsg - (void) -{ - Msg_mavlink_mission_count_t *msg_received = NULL; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ - if (cr929_SIL_pop_c02u1 - (&cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_Q, - &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_O) - != 0) { - msg_received = - &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_O; - } - - /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ - return msg_received; -} - -/* Function for Chart: '/Chart_proc_mission_upload' */ -static boolean_T cr929_SIL_sf_msg_pop_mission_cnt(void) -{ - boolean_T isPresent; - if (cr929_SIL_DW.mission_cnt_isValid) { - isPresent = true; - } else { - cr929_SIL_DW.mission_cnt_msgHandle = - cr929_SIL_Chart_proc_mission_upload_In1_RecvMsg(); - if (cr929_SIL_DW.mission_cnt_msgHandle != NULL) { - cr929_SIL_DW.mission_cnt_msgDataPtr = &((Msg_mavlink_mission_count_t *) - cr929_SIL_DW.mission_cnt_msgHandle)->fData; - isPresent = true; - } else { - isPresent = false; - } - - cr929_SIL_DW.mission_cnt_isValid = isPresent; - } - - return isPresent; -} - -/* Function for Chart: '/Chart_proc_mission_upload' */ -static void cr929_SIL_sf_msg_discard_mission_cnt(void) -{ - if (cr929_SIL_DW.mission_cnt_isValid) { - cr929_SIL_DW.mission_cnt_isValid = false; - } -} - -void cr929_SIL_freeMemPool_bvx(MemPool_mavlink_mission_item_int_t *memPool, - mavlink_mission_item_int_t *dataPtr) -{ - memPool->fFreeList[memPool->fNumFree] = dataPtr; - memPool->fNumFree++; -} - -void cr929_SIL_destroyMsg_ecw(const Msg_mavlink_mission_item_int_t *msg) -{ - cr929_SIL_freeMemPool_bvx - (&cr929_SIL_DW.slMsgMgr_MemPool_mavlink_mission_item_int_t, msg->fData); -} - -/* Function for Chart: '/Chart_proc_mission_upload' */ -static void cr929_SIL_sf_msg_discard_mission_item(void) -{ - if (cr929_SIL_DW.mission_item_isValid) { - cr929_SIL_destroyMsg_ecw((Msg_mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgHandle); - cr929_SIL_DW.mission_item_isValid = false; - } -} - int32_T cr929_SIL_pop(Queue_uint16 *q, Msg_uint16 *elementOut) { int32_T isPop; @@ -5100,7 +4630,7 @@ int32_T cr929_SIL_Chart_send_ack_SendData(const CommandAck *data_toSend) /* Function for Chart: '/proc_cmd' */ static void cr929_SIL_sf_msg_send_ack(void) { - cr929_SIL_Chart_send_ack_SendData(&cr929_SIL_DW.ack_msgData_l); + cr929_SIL_Chart_send_ack_SendData(&cr929_SIL_DW.ack_msgData_e); } CommandMsg *cr929_SIL_allocMemPool(MemPool_CommandMsg *memPool) @@ -5169,28 +4699,28 @@ static void cr929_SIL_sf_msg_send_cmd(void) /* Function for Chart: '/takeoff_task' */ static void cr929_SIL_enter_atomic_StateBy(void) { - cr929_SIL_B.mode_l = ENUM_mode_AUTO_READY; + cr929_SIL_B.mode_b = ENUM_mode_AUTO_READY; cr929_SIL_B.state = ENUM_SystemState_STANDBY; - cr929_SIL_B.landed_state_p = ENUM_LANDED_STATE_ON_GROUND; + cr929_SIL_B.landed_state_f = ENUM_LANDED_STATE_ON_GROUND; cr929_SIL_B.vtol_state = ENUM_VTOL_STATE_FW; - cr929_SIL_B.WP_out_j = cr929_SIL_B.BusAssignment_g.WP_cur; - cr929_SIL_B.use_mission_traj_k = true; + cr929_SIL_B.WP_out_a = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.use_mission_traj_c = true; cr929_SIL_B.home.lon1 = cr929_SIL_B.BusAssignment_h.lon; cr929_SIL_B.home.lat1 = cr929_SIL_B.BusAssignment_h.lat; cr929_SIL_B.home.h1 = cr929_SIL_B.BusAssignment_h.msl; - cr929_SIL_B.AFCS_VERT_f = ENUM_AFCS_VERT_OFF; - cr929_SIL_B.AFCS_LAT_h = ENUM_AFCS_LAT_OFF; + cr929_SIL_B.AFCS_VERT_n = ENUM_AFCS_VERT_OFF; + cr929_SIL_B.AFCS_LAT_p = ENUM_AFCS_LAT_OFF; cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_OFF; - cr929_SIL_B.CSAS_pitch_j = ENUM_CSAS_PITCH_COMMAND; - cr929_SIL_B.CSAS_yaw_p = ENUM_CSAS_YAW_OFF; + cr929_SIL_B.CSAS_pitch_e = ENUM_CSAS_PITCH_COMMAND; + cr929_SIL_B.CSAS_yaw_a = ENUM_CSAS_YAW_OFF; cr929_SIL_B.AT_i = ENUM_AT_OFF; - cr929_SIL_B.throttle_c_out_m = 0.0F; + cr929_SIL_B.throttle_c_out_n = 0.0F; cr929_SIL_B.tht_c = 0.0F; - cr929_SIL_B.phi_c_ck = 0.0F; + cr929_SIL_B.phi_c_l = 0.0F; /* Constant: '/Constant Single27' */ - cr929_SIL_B.as_c_n = cr929_SIL_P.V1; - cr929_SIL_B.gs_c_e = cr929_SIL_P.V1; + cr929_SIL_B.as_c_k = cr929_SIL_P.V1; + cr929_SIL_B.gs_c_hx = cr929_SIL_P.V1; cr929_SIL_B.gear_up_c = false; /* Constant: '/Constant Single36' */ @@ -5202,20 +4732,267 @@ static void cr929_SIL_enter_atomic_StateBy(void) /* Function for Chart: '/landing_task' */ static void cr929_SIL_enter_atomic_WaveOff(void) { - cr929_SIL_B.mode_c = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.mode_g = ENUM_mode_AUTO_MISSION; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_IN_AIR; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PHI; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; cr929_SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; cr929_SIL_B.hdot_c = 0.5F; - cr929_SIL_B.AT_j = ENUM_AT_AS; + cr929_SIL_B.AT_c = ENUM_AT_AS; /* Constant: '/Constant Single25' */ cr929_SIL_B.as_c = cr929_SIL_P.CruiseSpeed; cr929_SIL_B.CSAS_yaw = cr929_SIL_B.BusAssignment_g.CSAS_yaw; } +int32_T cr929_SIL_pop_c02u1i(Queue_mavlink_mission_item_int_t *q, + Msg_mavlink_mission_item_int_t *elementOut) +{ + int32_T isPop; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ + if (q->fHead == -1) { + isPop = 0; + } else { + *elementOut = q->fArray[q->fHead]; + isPop = 1; + if (q->fHead == q->fTail) { + q->fHead = -1; + q->fTail = -1; + } else { + q->fHead = (q->fHead + 1) % q->fCapacity; + } + } + + /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ + return isPop; +} + +Msg_mavlink_mission_item_int_t *cr929_SIL_Chart_proc_mission_upload_In2_RecvMsg + (void) +{ + Msg_mavlink_mission_item_int_t *msg_received = NULL; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ + if (cr929_SIL_pop_c02u1i + (&cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_Q, + &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_O) + != 0) { + msg_received = + &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_O; + } + + /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ + return msg_received; +} + +/* Function for Chart: '/Chart_proc_mission_upload' */ +static boolean_T cr929_SIL_sf_msg_pop_mission_item(void) +{ + boolean_T isPresent; + if (cr929_SIL_DW.mission_item_isValid) { + isPresent = true; + } else { + cr929_SIL_DW.mission_item_msgHandle = + cr929_SIL_Chart_proc_mission_upload_In2_RecvMsg(); + if (cr929_SIL_DW.mission_item_msgHandle != NULL) { + cr929_SIL_DW.mission_item_msgDataPtr = ((Msg_mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgHandle)->fData; + isPresent = true; + } else { + isPresent = false; + } + + cr929_SIL_DW.mission_item_isValid = isPresent; + } + + return isPresent; +} + +int32_T cr929_SIL_emplace_n2pydmu(Queue_mavlink_mission_ack_t *q, const + mavlink_mission_ack_t *dataIn) +{ + int32_T isEmplaced; + int32_T newTail; + Msg_mavlink_mission_ack_t *msg; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph14' */ + newTail = (q->fTail + 1) % q->fCapacity; + if (q->fHead == newTail) { + isEmplaced = 0; + } else { + q->fTail = newTail; + msg = &q->fArray[newTail]; + msg->fData = *dataIn; + if (q->fHead == -1) { + q->fHead = q->fTail; + } + + isEmplaced = 1; + } + + /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph14' */ + return isEmplaced; +} + +int32_T cr929_SIL_merge_ack_In2_SendData(const mavlink_mission_ack_t + *data_toSend) +{ + int32_T isSent = 0; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph15' */ + isSent = cr929_SIL_emplace_n2pydmu + (&cr929_SIL_DW.EntityQueue_InsertedFor_merge_ack_at_inport_1_Queue_mavlink_mis, + data_toSend); + return isSent; +} + +/* Function for Chart: '/Chart_proc_mission_upload' */ +static void cr929_SIL_sf_msg_send_mission_ack(void) +{ + cr929_SIL_merge_ack_In2_SendData(&cr929_SIL_DW.mission_ack_msgData); +} + +int32_T cr929_SIL_emplace_n2pydmuqf(Queue_mavlink_mission_request_int_t *q, + const mavlink_mission_request_int_t *dataIn) +{ + int32_T isEmplaced; + int32_T newTail; + Msg_mavlink_mission_request_int_t *msg; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph10' */ + newTail = (q->fTail + 1) % q->fCapacity; + if (q->fHead == newTail) { + isEmplaced = 0; + } else { + q->fTail = newTail; + msg = &q->fArray[newTail]; + msg->fData = *dataIn; + if (q->fHead == -1) { + q->fHead = q->fTail; + } + + isEmplaced = 1; + } + + /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph10' */ + return isEmplaced; +} + +int32_T cr929_SIL_traffic_ctrl_In8_SendData(const mavlink_mission_request_int_t * + data_toSend) +{ + int32_T isSent = 0; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph10' */ + isSent = cr929_SIL_emplace_n2pydmuqf + (&cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_7_Queue_mavlink_, + data_toSend); + return isSent; +} + +/* Function for Chart: '/Chart_proc_mission_upload' */ +static void cr929_SIL_sf_msg_send_mission_req_int(void) +{ + cr929_SIL_traffic_ctrl_In8_SendData(&cr929_SIL_DW.mission_req_int_msgData); +} + +int32_T cr929_SIL_pop_c02u1(Queue_mavlink_mission_count_t *q, + Msg_mavlink_mission_count_t *elementOut) +{ + int32_T isPop; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ + if (q->fHead == -1) { + isPop = 0; + } else { + *elementOut = q->fArray[q->fHead]; + isPop = 1; + if (q->fHead == q->fTail) { + q->fHead = -1; + q->fTail = -1; + } else { + q->fHead = (q->fHead + 1) % q->fCapacity; + } + } + + /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ + return isPop; +} + +Msg_mavlink_mission_count_t *cr929_SIL_Chart_proc_mission_upload_In1_RecvMsg + (void) +{ + Msg_mavlink_mission_count_t *msg_received = NULL; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ + if (cr929_SIL_pop_c02u1 + (&cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_Q, + &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_O) + != 0) { + msg_received = + &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_O; + } + + /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ + return msg_received; +} + +/* Function for Chart: '/Chart_proc_mission_upload' */ +static boolean_T cr929_SIL_sf_msg_pop_mission_cnt(void) +{ + boolean_T isPresent; + if (cr929_SIL_DW.mission_cnt_isValid) { + isPresent = true; + } else { + cr929_SIL_DW.mission_cnt_msgHandle = + cr929_SIL_Chart_proc_mission_upload_In1_RecvMsg(); + if (cr929_SIL_DW.mission_cnt_msgHandle != NULL) { + cr929_SIL_DW.mission_cnt_msgDataPtr = &((Msg_mavlink_mission_count_t *) + cr929_SIL_DW.mission_cnt_msgHandle)->fData; + isPresent = true; + } else { + isPresent = false; + } + + cr929_SIL_DW.mission_cnt_isValid = isPresent; + } + + return isPresent; +} + +/* Function for Chart: '/Chart_proc_mission_upload' */ +static void cr929_SIL_sf_msg_discard_mission_cnt(void) +{ + if (cr929_SIL_DW.mission_cnt_isValid) { + cr929_SIL_DW.mission_cnt_isValid = false; + } +} + +void cr929_SIL_freeMemPool_bvx(MemPool_mavlink_mission_item_int_t *memPool, + mavlink_mission_item_int_t *dataPtr) +{ + memPool->fFreeList[memPool->fNumFree] = dataPtr; + memPool->fNumFree++; +} + +void cr929_SIL_destroyMsg_ecw(const Msg_mavlink_mission_item_int_t *msg) +{ + cr929_SIL_freeMemPool_bvx + (&cr929_SIL_DW.slMsgMgr_MemPool_mavlink_mission_item_int_t, msg->fData); +} + +/* Function for Chart: '/Chart_proc_mission_upload' */ +static void cr929_SIL_sf_msg_discard_mission_item(void) +{ + if (cr929_SIL_DW.mission_item_isValid) { + cr929_SIL_destroyMsg_ecw((Msg_mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgHandle); + cr929_SIL_DW.mission_item_isValid = false; + } +} + int32_T cr929_SIL_pop_c02u1irtbrb(Queue_mavlink_message_t *q, Msg_mavlink_message_t *elementOut) { @@ -5256,7 +5033,7 @@ Msg_mavlink_message_t *cr929_SIL_proc_queue_RecvMsg(void) return msg_received; } -/* Function for Chart: '/proc_queue' */ +/* Function for Chart: '/proc_queue' */ static boolean_T cr929_SIL_sf_msg_pop_msgs(void) { boolean_T isPresent; @@ -5314,7 +5091,7 @@ int32_T cr929_SIL_proc_param_value_In1_SendData(const uint16_T *data_toSend) return isSent; } -/* Function for Chart: '/Chart_proc_param_req_read' */ +/* Function for Chart: '/Chart_proc_param_req_read' */ static void cr929_SIL_sf_msg_send_resp(void) { cr929_SIL_proc_param_value_In1_SendData(&cr929_SIL_DW.resp_msgData_g); @@ -5331,7 +5108,7 @@ int32_T cr929_SIL_proc_param_value_In2_SendData(const uint16_T *data_toSend) return isSent; } -/* Function for Chart: '/Chart' */ +/* Function for Chart: '/Chart' */ static void cr929_SIL_sf_msg_send_resp_f(void) { cr929_SIL_proc_param_value_In2_SendData(&cr929_SIL_DW.resp_msgData_d); @@ -5348,7 +5125,7 @@ int32_T cr929_SIL_proc_param_value_In3_SendData(const uint16_T *data_toSend) return isSent; } -/* Function for Chart: '/Chart_proc_param_set' */ +/* Function for Chart: '/Chart_proc_param_set' */ static void cr929_SIL_sf_msg_send_resp_c(void) { cr929_SIL_proc_param_value_In3_SendData(&cr929_SIL_DW.resp_msgData); @@ -5366,7 +5143,7 @@ int32_T cr929_SIL_merge_ack_In1_SendData(const mavlink_mission_ack_t return isSent; } -/* Function for Chart: '/Chart_proc_mission_req' */ +/* Function for Chart: '/Chart_proc_mission_req' */ static void cr929_SIL_sf_msg_send_send_ack_n(void) { cr929_SIL_merge_ack_In1_SendData(&cr929_SIL_DW.send_ack_msgData_l); @@ -5432,7 +5209,7 @@ int32_T cr929_SIL_traffic_ctrl_In5_SendData(const mavlink_mission_item_int_t return isSent; } -/* Function for Chart: '/Chart_proc_mission_req' */ +/* Function for Chart: '/Chart_proc_mission_req' */ static void cr929_SIL_sf_msg_send_send_item(void) { cr929_SIL_traffic_ctrl_In5_SendData(&cr929_SIL_DW.send_item_msgData); @@ -5449,7 +5226,7 @@ int32_T cr929_SIL_req_cur_In1_SendData(const uint16_T *data_toSend) return isSent; } -/* Function for Chart: '/Chart' */ +/* Function for Chart: '/Chart' */ static void cr929_SIL_sf_msg_send_req_cur(void) { cr929_SIL_req_cur_In1_SendData(&cr929_SIL_DW.req_cur_msgData_o); @@ -5493,7 +5270,7 @@ int32_T cr929_SIL_traffic_ctrl_In4_SendData(const mavlink_mission_count_t return isSent; } -/* Function for Chart: '/Chart_proc_mission_req_lst' */ +/* Function for Chart: '/Chart_proc_mission_req_lst' */ static void cr929_SIL_sf_msg_send_send_cnt(void) { cr929_SIL_traffic_ctrl_In4_SendData(&cr929_SIL_DW.send_cnt_msgData_p); @@ -5511,7 +5288,7 @@ int32_T cr929_SIL_Chart_proc_mission_upload_In1_SendData(const return isSent; } -/* Function for Chart: '/Chart' */ +/* Function for Chart: '/Chart' */ static void cr929_SIL_sf_msg_send_send_cnt_h(void) { cr929_SIL_Chart_proc_mission_upload_In1_SendData @@ -5530,7 +5307,7 @@ int32_T cr929_SIL_merge_ack_In3_SendData(const mavlink_mission_ack_t return isSent; } -/* Function for Chart: '/Chart_proc_mission_clr_all' */ +/* Function for Chart: '/Chart_proc_mission_clr_all' */ static void cr929_SIL_sf_msg_send_send_ack_h(void) { cr929_SIL_merge_ack_In3_SendData(&cr929_SIL_DW.send_ack_msgData_c); @@ -5548,7 +5325,7 @@ int32_T cr929_SIL_Chart_proc_mission_upload_In2_SendData(const return isSent; } -/* Function for Chart: '/Chart' */ +/* Function for Chart: '/Chart' */ static void cr929_SIL_sf_msg_send_send_req(void) { cr929_SIL_Chart_proc_mission_upload_In2_SendData @@ -5566,7 +5343,7 @@ int32_T cr929_SIL_proc_cmd_In1_SendData(const CommandMsg *data_toSend) return isSent; } -/* Function for Chart: '/send_cmd' */ +/* Function for Chart: '/send_cmd' */ static void cr929_SIL_sf_msg_send_msg(void) { cr929_SIL_proc_cmd_In1_SendData(&cr929_SIL_DW.msg_msgData); @@ -5632,7 +5409,7 @@ int32_T cr929_SIL_traffic_ctrl_In10_SendData(const mavlink_autopilot_version_t return isSent; } -/* Function for Chart: '/send_auto_hw' */ +/* Function for Chart: '/send_auto_hw' */ static void cr929_SIL_sf_msg_send_ap_ver(void) { cr929_SIL_traffic_ctrl_In10_SendData(&cr929_SIL_DW.ap_ver_msgData); @@ -5651,7 +5428,7 @@ void cr929_SIL_destroyMsg_ecw35(const Msg_mavlink_message_t *msg) msg->fData); } -/* Function for Chart: '/proc_queue' */ +/* Function for Chart: '/proc_queue' */ static void cr929_SIL_sf_msg_discard_msgs(void) { if (cr929_SIL_DW.msgs_isValid) { @@ -5678,7 +5455,7 @@ Msg_uint16 *cr929_SIL_req_cur_In1_RecvMsg(void) return msg_received; } -/* Function for Chart: '/req_cur' */ +/* Function for Chart: '/req_cur' */ static boolean_T cr929_SIL_sf_msg_pop_req_cur(void) { boolean_T isPresent; @@ -5738,7 +5515,7 @@ int32_T cr929_SIL_traffic_ctrl_In7_SendData(const mavlink_mission_current_t return isSent; } -/* Function for Chart: '/req_cur' */ +/* Function for Chart: '/req_cur' */ static void cr929_SIL_sf_msg_send_cur(void) { cr929_SIL_traffic_ctrl_In7_SendData(&cr929_SIL_DW.cur_msgData); @@ -5755,13 +5532,13 @@ int32_T cr929_SIL_proc_set_cur_SendData(const uint16_T *data_toSend) return isSent; } -/* Function for Chart: '/req_cur' */ +/* Function for Chart: '/req_cur' */ static void cr929_SIL_sf_msg_send_set_cur(void) { cr929_SIL_proc_set_cur_SendData(&cr929_SIL_DW.set_cur_msgData); } -/* Function for Chart: '/req_cur' */ +/* Function for Chart: '/req_cur' */ static void cr929_SIL_sf_msg_discard_req_cur(void) { if (cr929_SIL_DW.req_cur_isValid) { @@ -5808,7 +5585,7 @@ Msg_CommandAck *cr929_SIL_Chart_send_ack_RecvMsg(void) return msg_received; } -/* Function for Chart: '/Chart_send_ack' */ +/* Function for Chart: '/Chart_send_ack' */ static boolean_T cr929_SIL_sf_msg_pop_ack(void) { boolean_T isPresent; @@ -5890,13 +5667,13 @@ int32_T cr929_SIL_traffic_ctrl_In9_SendData(const mavlink_command_ack_t return isSent; } -/* Function for Chart: '/Chart_send_ack' */ +/* Function for Chart: '/Chart_send_ack' */ static void cr929_SIL_sf_msg_send_send_ack(void) { cr929_SIL_traffic_ctrl_In9_SendData(&cr929_SIL_DW.send_ack_msgData); } -/* Function for Chart: '/Chart_send_ack' */ +/* Function for Chart: '/Chart_send_ack' */ static void cr929_SIL_sf_msg_discard_ack(void) { if (cr929_SIL_DW.ack_isValid) { @@ -5964,7 +5741,7 @@ int32_T cr929_SIL_traffic_ctrl_In3_SendData(const mavlink_param_value_t return isSent; } -/* Function for Chart: '/proc_param_value' */ +/* Function for Chart: '/proc_param_value' */ static void cr929_SIL_sf_msg_send_msg_d(void) { cr929_SIL_traffic_ctrl_In3_SendData(&cr929_SIL_DW.msg_msgData_h); @@ -5987,7 +5764,7 @@ Msg_uint16 *cr929_SIL_proc_param_value_In3_RecvMsg(void) return msg_received; } -/* Function for Chart: '/proc_param_value' */ +/* Function for Chart: '/proc_param_value' */ static boolean_T cr929_SIL_sf_msg_pop_param_set(void) { boolean_T isPresent; @@ -6026,7 +5803,7 @@ Msg_uint16 *cr929_SIL_proc_param_value_In1_RecvMsg(void) return msg_received; } -/* Function for Chart: '/proc_param_value' */ +/* Function for Chart: '/proc_param_value' */ static boolean_T cr929_SIL_sf_msg_pop_param_req_read(void) { boolean_T isPresent; @@ -6066,7 +5843,7 @@ Msg_uint16 *cr929_SIL_proc_param_value_In2_RecvMsg(void) return msg_received; } -/* Function for Chart: '/proc_param_value' */ +/* Function for Chart: '/proc_param_value' */ static boolean_T cr929_SIL_sf_msg_pop_param_req_lst(void) { boolean_T isPresent; @@ -6089,7 +5866,7 @@ static boolean_T cr929_SIL_sf_msg_pop_param_req_lst(void) return isPresent; } -/* Function for Chart: '/proc_param_value' */ +/* Function for Chart: '/proc_param_value' */ static void cr929_SIL_sf_msg_discard_param_req_read(void) { if (cr929_SIL_DW.param_req_read_isValid) { @@ -6097,7 +5874,7 @@ static void cr929_SIL_sf_msg_discard_param_req_read(void) } } -/* Function for Chart: '/proc_param_value' */ +/* Function for Chart: '/proc_param_value' */ static void cr929_SIL_sf_msg_discard_param_req_lst(void) { if (cr929_SIL_DW.param_req_lst_isValid) { @@ -6105,7 +5882,7 @@ static void cr929_SIL_sf_msg_discard_param_req_lst(void) } } -/* Function for Chart: '/proc_param_value' */ +/* Function for Chart: '/proc_param_value' */ static void cr929_SIL_sf_msg_discard_param_set(void) { if (cr929_SIL_DW.param_set_isValid) { @@ -6153,7 +5930,7 @@ Msg_mavlink_mission_ack_t *cr929_SIL_merge_ack_In1_RecvMsg(void) return msg_received; } -/* Function for Chart: '/merge_ack' */ +/* Function for Chart: '/merge_ack' */ static boolean_T cr929_SIL_sf_msg_pop_ack1(void) { boolean_T isPresent; @@ -6211,7 +5988,7 @@ int32_T cr929_SIL_traffic_ctrl_In6_SendMsg(const Msg_mavlink_mission_ack_t return isSent; } -/* Function for Chart: '/merge_ack' */ +/* Function for Chart: '/merge_ack' */ static void cr929_SIL_sf_msg_forward_ack1_ack(void) { if (cr929_SIL_DW.ack1_isValid) { @@ -6238,7 +6015,7 @@ Msg_mavlink_mission_ack_t *cr929_SIL_merge_ack_In2_RecvMsg(void) return msg_received; } -/* Function for Chart: '/merge_ack' */ +/* Function for Chart: '/merge_ack' */ static boolean_T cr929_SIL_sf_msg_pop_ack2(void) { boolean_T isPresent; @@ -6260,7 +6037,7 @@ static boolean_T cr929_SIL_sf_msg_pop_ack2(void) return isPresent; } -/* Function for Chart: '/merge_ack' */ +/* Function for Chart: '/merge_ack' */ static void cr929_SIL_sf_msg_forward_ack2_ack(void) { if (cr929_SIL_DW.ack2_isValid) { @@ -6287,7 +6064,7 @@ Msg_mavlink_mission_ack_t *cr929_SIL_merge_ack_In3_RecvMsg(void) return msg_received; } -/* Function for Chart: '/merge_ack' */ +/* Function for Chart: '/merge_ack' */ static boolean_T cr929_SIL_sf_msg_pop_ack3(void) { boolean_T isPresent; @@ -6309,7 +6086,7 @@ static boolean_T cr929_SIL_sf_msg_pop_ack3(void) return isPresent; } -/* Function for Chart: '/merge_ack' */ +/* Function for Chart: '/merge_ack' */ static void cr929_SIL_sf_msg_forward_ack3_ack(void) { if (cr929_SIL_DW.ack3_isValid) { @@ -6319,7 +6096,7 @@ static void cr929_SIL_sf_msg_forward_ack3_ack(void) } } -/* Function for Chart: '/merge_ack' */ +/* Function for Chart: '/merge_ack' */ static void cr929_SIL_sf_msg_discard_ack1(void) { if (cr929_SIL_DW.ack1_isValid) { @@ -6327,7 +6104,7 @@ static void cr929_SIL_sf_msg_discard_ack1(void) } } -/* Function for Chart: '/merge_ack' */ +/* Function for Chart: '/merge_ack' */ static void cr929_SIL_sf_msg_discard_ack2(void) { if (cr929_SIL_DW.ack2_isValid) { @@ -6335,7 +6112,7 @@ static void cr929_SIL_sf_msg_discard_ack2(void) } } -/* Function for Chart: '/merge_ack' */ +/* Function for Chart: '/merge_ack' */ static void cr929_SIL_sf_msg_discard_ack3(void) { if (cr929_SIL_DW.ack3_isValid) { @@ -6403,7 +6180,7 @@ int32_T cr929_SIL_traffic_ctrl_In11_SendData(const mavlink_serial_control_t return isSent; } -/* Function for Chart: '/Chart_send_serial_control' */ +/* Function for Chart: '/Chart_send_serial_control' */ static void cr929_SIL_sf_msg_send_send_echo(void) { cr929_SIL_traffic_ctrl_In11_SendData(&cr929_SIL_DW.send_echo_msgData); @@ -6449,7 +6226,7 @@ Msg_mavlink_command_ack_t *cr929_SIL_traffic_ctrl_In9_RecvMsg(void) return msg_received; } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static boolean_T cr929_SIL_sf_msg_pop_command_ack_queue(void) { boolean_T isPresent; @@ -6512,7 +6289,7 @@ Msg_mavlink_mission_current_t *cr929_SIL_traffic_ctrl_In7_RecvMsg(void) return msg_received; } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static boolean_T cr929_SIL_sf_msg_pop_mission_cur_queue(void) { boolean_T isPresent; @@ -6553,7 +6330,7 @@ Msg_mavlink_mission_count_t *cr929_SIL_traffic_ctrl_In4_RecvMsg(void) return msg_received; } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static boolean_T cr929_SIL_sf_msg_pop_mission_cnt_queue(void) { boolean_T isPresent; @@ -6593,7 +6370,7 @@ Msg_mavlink_mission_item_int_t *cr929_SIL_traffic_ctrl_In5_RecvMsg(void) return msg_received; } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static boolean_T cr929_SIL_sf_msg_pop_mission_item_int_queue(void) { boolean_T isPresent; @@ -6634,7 +6411,7 @@ Msg_mavlink_mission_ack_t *cr929_SIL_traffic_ctrl_In6_RecvMsg(void) return msg_received; } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static boolean_T cr929_SIL_sf_msg_pop_mission_ack_queue(void) { boolean_T isPresent; @@ -6697,7 +6474,7 @@ Msg_mavlink_mission_request_int_t *cr929_SIL_traffic_ctrl_In8_RecvMsg(void) return msg_received; } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static boolean_T cr929_SIL_sf_msg_pop_mission_req_int_queue(void) { boolean_T isPresent; @@ -6761,7 +6538,7 @@ Msg_mavlink_param_value_t *cr929_SIL_traffic_ctrl_In3_RecvMsg(void) return msg_received; } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static boolean_T cr929_SIL_sf_msg_pop_param_val_queue(void) { boolean_T isPresent; @@ -6823,7 +6600,7 @@ Msg_mavlink_autopilot_version_t *cr929_SIL_traffic_ctrl_In10_RecvMsg(void) return msg_received; } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static boolean_T cr929_SIL_sf_msg_pop_ap_ver_queue(void) { boolean_T isPresent; @@ -6885,7 +6662,7 @@ Msg_mavlink_serial_control_t *cr929_SIL_traffic_ctrl_In11_RecvMsg(void) return msg_received; } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static boolean_T cr929_SIL_sf_msg_pop_serial_echoline(void) { boolean_T isPresent; @@ -6908,7 +6685,7 @@ static boolean_T cr929_SIL_sf_msg_pop_serial_echoline(void) return isPresent; } -/* Function for Chart: '/Chart' */ +/* Function for Chart: '/Chart' */ static uint8_T cr929_SIL_get_base_mode(void) { uint8_T b_mod; @@ -6920,19 +6697,19 @@ static uint8_T cr929_SIL_get_base_mode(void) return b_mod; } -/* Function for Chart: '/Chart' */ +/* Function for Chart: '/Chart' */ static uint32_T cr929_SIL_get_mode(void) { return (uint32_T)cr929_SIL_B.Merge_i.mode; } -/* Function for Chart: '/Chart' */ +/* Function for Chart: '/Chart' */ static uint8_T cr929_SIL_get_status(void) { return (uint8_T)cr929_SIL_B.Merge_i.state; } -/* Function for Chart: '/Chart' */ +/* Function for Chart: '/Chart' */ static real32_T cr929_SIL_get_rpm(real_T idx) { real32_T out; @@ -6945,7 +6722,7 @@ static real32_T cr929_SIL_get_rpm(real_T idx) return out; } -/* Function for Chart: '/Chart' */ +/* Function for Chart: '/Chart' */ static real32_T cr929_SIL_get_yaw(real32_T psi1) { real32_T psi; @@ -6957,7 +6734,7 @@ static real32_T cr929_SIL_get_yaw(real32_T psi1) return psi; } -/* Function for Chart: '/Chart' */ +/* Function for Chart: '/Chart' */ static uint16_T cr929_SIL_get_pwm_by_ch(uint8_T idx) { uint16_T out; @@ -6983,7 +6760,7 @@ void cr929_SIL_destroyMsg_ec(const Msg_mavlink_param_value_t *msg) msg->fData); } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static void cr929_SIL_sf_msg_discard_param_val_queue(void) { if (cr929_SIL_DW.param_val_queue_isValid) { @@ -6993,7 +6770,7 @@ static void cr929_SIL_sf_msg_discard_param_val_queue(void) } } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static void cr929_SIL_sf_msg_discard_mission_cnt_queue(void) { if (cr929_SIL_DW.mission_cnt_queue_isValid) { @@ -7001,7 +6778,7 @@ static void cr929_SIL_sf_msg_discard_mission_cnt_queue(void) } } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static void cr929_SIL_sf_msg_discard_mission_item_int_queue(void) { if (cr929_SIL_DW.mission_item_int_queue_isValid) { @@ -7011,7 +6788,7 @@ static void cr929_SIL_sf_msg_discard_mission_item_int_queue(void) } } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static void cr929_SIL_sf_msg_discard_mission_ack_queue(void) { if (cr929_SIL_DW.mission_ack_queue_isValid) { @@ -7019,7 +6796,7 @@ static void cr929_SIL_sf_msg_discard_mission_ack_queue(void) } } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static void cr929_SIL_sf_msg_discard_mission_cur_queue(void) { if (cr929_SIL_DW.mission_cur_queue_isValid) { @@ -7027,7 +6804,7 @@ static void cr929_SIL_sf_msg_discard_mission_cur_queue(void) } } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static void cr929_SIL_sf_msg_discard_mission_req_int_queue(void) { if (cr929_SIL_DW.mission_req_int_queue_isValid) { @@ -7048,7 +6825,7 @@ void cr929_SIL_destroyMsg_e(const Msg_mavlink_command_ack_t *msg) msg->fData); } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static void cr929_SIL_sf_msg_discard_command_ack_queue(void) { if (cr929_SIL_DW.command_ack_queue_isValid) { @@ -7071,7 +6848,7 @@ void cr929_SIL_destroyMsg_ecw3(const Msg_mavlink_autopilot_version_t *msg) (&cr929_SIL_DW.slMsgMgr_MemPool_mavlink_autopilot_version_t, msg->fData); } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static void cr929_SIL_sf_msg_discard_ap_ver_queue(void) { if (cr929_SIL_DW.ap_ver_queue_isValid) { @@ -7094,7 +6871,7 @@ void cr929_SIL_destroyMsg_ecw35w(const Msg_mavlink_serial_control_t *msg) (&cr929_SIL_DW.slMsgMgr_MemPool_mavlink_serial_control_t, msg->fData); } -/* Function for Chart: '/traffic_ctrl' */ +/* Function for Chart: '/traffic_ctrl' */ static void cr929_SIL_sf_msg_discard_serial_echoline(void) { if (cr929_SIL_DW.serial_echoline_isValid) { @@ -7104,7 +6881,7 @@ static void cr929_SIL_sf_msg_discard_serial_echoline(void) } } -/* Function for Chart: '/EKF14s' */ +/* Function for Chart: '/EKF14s' */ static void cr929_SIL_PredictStates(real32_T correctedDelAng[3], real32_T correctedDelVel[3]) { @@ -7122,14 +6899,14 @@ static void cr929_SIL_PredictStates(real32_T correctedDelAng[3], real32_T cr929_SIL_DW.Tbn_prev_not_empty = true; } - /* Constant: '/Constant' */ + /* Constant: '/Constant' */ correctedDelVel[0] = cr929_SIL_B.accel[0] * 0.003062F - cr929_SIL_DW.states[10]; correctedDelVel[1] = cr929_SIL_B.accel[1] * 0.003062F - cr929_SIL_DW.states[11]; correctedDelVel[2] = cr929_SIL_B.accel[2] * 0.003062F - cr929_SIL_DW.states[12]; delAngEarth_NED_idx_0 = 7.2921E-5F * cosf(cr929_SIL_B.Gain1_jf) * 0.003062F; delAngEarth_NED_idx_2 = -7.2921E-5F * sinf(cr929_SIL_B.Gain1_jf) * 0.003062F; for (i = 0; i < 3; i++) { - /* Constant: '/Constant' */ + /* Constant: '/Constant' */ correctedDelAng[i] = (cr929_SIL_B.Gain1_o2[i] * 0.003062F - cr929_SIL_DW.states[7 + i]) - ((cr929_SIL_DW.Tbn_prev [3 * i + 1] * 0.0F + cr929_SIL_DW.Tbn_prev[3 * i] * delAngEarth_NED_idx_0) @@ -7176,12 +6953,12 @@ static void cr929_SIL_PredictStates(real32_T correctedDelAng[3], real32_T cr929_SIL_DW.states[3] /= delAngEarth_NED_idx_0; Quat2Tbn_XRdqRR86(&cr929_SIL_DW.states[0], cr929_SIL_DW.Tbn_prev); - /* Constant: '/Constant' */ + /* Constant: '/Constant' */ tmp[0] = 0.0F; tmp[1] = 0.0F; - /* Constant: '/Constant12' incorporates: - * Constant: '/Constant' + /* Constant: '/Constant12' incorporates: + * Constant: '/Constant' */ tmp[2] = 0.0300279632F; for (i = 0; i < 3; i++) { @@ -7191,7 +6968,7 @@ static void cr929_SIL_PredictStates(real32_T correctedDelAng[3], real32_T } } -/* Function for Chart: '/EKF14s' */ +/* Function for Chart: '/EKF14s' */ static void cr929_SIL_ConstrainStates(void) { if (cr929_SIL_DW.states[7] > 0.000106883963F) { @@ -7251,7 +7028,7 @@ static void cr929_SIL_ConstrainStates(void) } } -/* Function for Chart: '/EKF14s' */ +/* Function for Chart: '/EKF14s' */ static void cr929_SIL_PredictCovariance(const real32_T deltaAngle[3], const real32_T deltaVelocity[3]) { @@ -7834,8 +7611,8 @@ static void cr929_SIL_PredictCovariance(const real32_T deltaAngle[3], const dAngBiasSigma[2] = 9.37584499E-9F; dAngBiasSigma[5] = 2.81275334E-7F; - /* Constant: '/Constant' incorporates: - * Constant: '/Constant Single' + /* Constant: '/Constant' incorporates: + * Constant: '/Constant Single' */ dAngBiasSigma[6] = 6.12399963E-5F; power_4TBdBPK2(dAngBiasSigma, processNoiseVariance); @@ -9091,7 +8868,7 @@ static void cr929_SIL_PredictCovariance(const real32_T deltaAngle[3], const } } -/* Function for Chart: '/EKF14s' */ +/* Function for Chart: '/EKF14s' */ static void cr929_SIL_OutputStateVars(void) { real32_T euler_covariance_matrix[9]; @@ -9130,17 +8907,17 @@ static void cr929_SIL_OutputStateVars(void) ((euler_angles_tmp + t23) - t31) - euler_angles_tmp_0); cr929_SIL_B.velocity_NED[0] = cr929_SIL_DW.states[4]; - /* Constant: '/Constant' */ + /* Constant: '/Constant' */ cr929_SIL_B.gyro_bias[0] = cr929_SIL_DW.states[7] / 0.003062F; cr929_SIL_B.accel_bias[0] = cr929_SIL_DW.states[10] / 0.003062F; cr929_SIL_B.velocity_NED[1] = cr929_SIL_DW.states[5]; - /* Constant: '/Constant' */ + /* Constant: '/Constant' */ cr929_SIL_B.gyro_bias[1] = cr929_SIL_DW.states[8] / 0.003062F; cr929_SIL_B.accel_bias[1] = cr929_SIL_DW.states[11] / 0.003062F; cr929_SIL_B.velocity_NED[2] = cr929_SIL_DW.states[6]; - /* Constant: '/Constant' */ + /* Constant: '/Constant' */ cr929_SIL_B.gyro_bias[2] = cr929_SIL_DW.states[9] / 0.003062F; cr929_SIL_B.accel_bias[2] = cr929_SIL_DW.states[12] / 0.003062F; cr929_SIL_B.hdg_bias = cr929_SIL_DW.states[13]; @@ -9224,7 +9001,7 @@ static void cr929_SIL_OutputStateVars(void) } } -/* Function for Chart: '/EKF14s' */ +/* Function for Chart: '/EKF14s' */ static void cr929_SIL_FuseVelocity(void) { uint8_T out_rang_cnt; @@ -9237,10 +9014,10 @@ static void cr929_SIL_FuseVelocity(void) cr929_SIL_B.velInnov[0] = cr929_SIL_DW.states[4] - cr929_SIL_B.DataTypeConversion2[0]; - /* Constant: '/Constant Single4' */ + /* Constant: '/Constant Single4' */ cr929_SIL_B.velInnovVar[0] = cr929_SIL_DW.P[60] + 0.2F; - /* Constant: '/Constant20' */ + /* Constant: '/Constant20' */ if (cr929_SIL_B.velInnov[0] * cr929_SIL_B.velInnov[0] / (25.0F * cr929_SIL_B.velInnovVar[0]) > 1.0F) { out_rang_cnt = 1U; @@ -9249,10 +9026,10 @@ static void cr929_SIL_FuseVelocity(void) cr929_SIL_B.velInnov[1] = cr929_SIL_DW.states[5] - cr929_SIL_B.DataTypeConversion2[1]; - /* Constant: '/Constant Single4' */ + /* Constant: '/Constant Single4' */ cr929_SIL_B.velInnovVar[1] = cr929_SIL_DW.P[75] + 0.2F; - /* Constant: '/Constant20' */ + /* Constant: '/Constant20' */ if (cr929_SIL_B.velInnov[1] * cr929_SIL_B.velInnov[1] / (25.0F * cr929_SIL_B.velInnovVar[1]) > 1.0F) { out_rang_cnt++; @@ -9261,10 +9038,10 @@ static void cr929_SIL_FuseVelocity(void) cr929_SIL_B.velInnov[2] = cr929_SIL_DW.states[6] - cr929_SIL_B.DataTypeConversion2[2]; - /* Constant: '/Constant Single4' */ + /* Constant: '/Constant Single4' */ cr929_SIL_B.velInnovVar[2] = cr929_SIL_DW.P[90] + 0.2F; - /* Constant: '/Constant20' */ + /* Constant: '/Constant20' */ if (cr929_SIL_B.velInnov[2] * cr929_SIL_B.velInnov[2] / (25.0F * cr929_SIL_B.velInnovVar[2]) > 1.0F) { out_rang_cnt++; @@ -9276,15 +9053,15 @@ static void cr929_SIL_FuseVelocity(void) cr929_SIL_DW.vel_reset_cnt = 0U; cr929_SIL_DW.states[4] = cr929_SIL_B.DataTypeConversion2[0]; - /* Constant: '/Constant3' */ + /* Constant: '/Constant3' */ cr929_SIL_DW.P[60] = 100.0F; cr929_SIL_DW.states[5] = cr929_SIL_B.DataTypeConversion2[1]; - /* Constant: '/Constant3' */ + /* Constant: '/Constant3' */ cr929_SIL_DW.P[75] = 100.0F; cr929_SIL_DW.states[6] = cr929_SIL_B.DataTypeConversion2[2]; - /* Constant: '/Constant3' */ + /* Constant: '/Constant3' */ cr929_SIL_DW.P[90] = 100.0F; cr929_SIL_DW.P_reset = true; } @@ -9319,7 +9096,7 @@ static void cr929_SIL_FuseVelocity(void) } } -/* Function for Chart: '/EKF14s' */ +/* Function for Chart: '/EKF14s' */ static void cr929_SIL_FuseHeading(void) { real32_T q0; @@ -9378,7 +9155,7 @@ static void cr929_SIL_FuseHeading(void) t14 * 2.0F; t14 = t10 * t13; - /* Constant: '/Constant Single1' */ + /* Constant: '/Constant Single1' */ cr929_SIL_B.hdgInnovVar = (((((((cr929_SIL_DW.P[0] * t10 * t13 * t17 + cr929_SIL_DW.P[13]) + cr929_SIL_DW.P[1] * t10 * t13 * t19) + cr929_SIL_DW.P [2] * t10 * t13 * t24) + cr929_SIL_DW.P[3] * t10 * t13 * t16) * (t14 * t17) @@ -9459,7 +9236,7 @@ static void cr929_SIL_FuseHeading(void) } } - /* Constant: '/Constant19' */ + /* Constant: '/Constant19' */ if (cr929_SIL_B.hdgInnov * cr929_SIL_B.hdgInnov / (25.0F * cr929_SIL_B.hdgInnovVar) > 1.0F) { cr929_SIL_DW.hdg_reset_cnt++; @@ -9467,7 +9244,7 @@ static void cr929_SIL_FuseHeading(void) cr929_SIL_DW.hdg_reset_cnt = 0U; } - /* End of Constant: '/Constant19' */ + /* End of Constant: '/Constant19' */ if (cr929_SIL_DW.hdg_reset_cnt > 10) { cr929_SIL_DW.hdg_reset_cnt = 0U; q1 = rt_atan2f_snf((cr929_SIL_DW.states[2] * cr929_SIL_DW.states[3] + @@ -9495,13 +9272,13 @@ static void cr929_SIL_FuseHeading(void) cr929_SIL_DW.states[3] = b_t10_tmp * sinPsi - b_t13 * q3; cr929_SIL_DW.states[13] = 0.0F; - /* Constant: '/Constant2' */ + /* Constant: '/Constant2' */ cr929_SIL_DW.P[0] = 0.0100000007F; cr929_SIL_DW.P[15] = 0.0100000007F; cr929_SIL_DW.P[30] = 0.0100000007F; cr929_SIL_DW.P[45] = 0.0100000007F; - /* Constant: '/Constant9' */ + /* Constant: '/Constant9' */ cr929_SIL_DW.P[195] = 0.0004F; cr929_SIL_DW.P_reset = true; } else { @@ -9570,7 +9347,7 @@ static void cr929_SIL_FuseHeading(void) } } -/* Function for Chart: '/EKF14s' */ +/* Function for Chart: '/EKF14s' */ static void cr929_SIL_resetStates(void) { int32_T i; @@ -9579,24 +9356,24 @@ static void cr929_SIL_resetStates(void) } } -/* Function for Chart: '/EKF14s' */ +/* Function for Chart: '/EKF14s' */ static void cr929_SIL_InitCovariance(void) { real32_T c_a[14]; real32_T z1[14]; int32_T k; - /* Constant: '/Constant2' */ + /* Constant: '/Constant2' */ c_a[0] = 0.1F; c_a[1] = 0.1F; c_a[2] = 0.1F; c_a[3] = 0.1F; - /* Constant: '/Constant3' */ + /* Constant: '/Constant3' */ c_a[4] = 10.0F; c_a[5] = 10.0F; - /* Constant: '/Constant4' */ + /* Constant: '/Constant4' */ c_a[6] = 5.0F; c_a[7] = 2.67209907E-6F; c_a[10] = 0.00021434F; @@ -9605,7 +9382,7 @@ static void cr929_SIL_InitCovariance(void) c_a[9] = 2.67209907E-6F; c_a[12] = 0.00021434F; - /* Constant: '/Constant9' */ + /* Constant: '/Constant9' */ c_a[13] = 0.02F; for (k = 0; k < 14; k++) { z1[k] = c_a[k] * c_a[k]; @@ -9617,7 +9394,7 @@ static void cr929_SIL_InitCovariance(void) } } -/* Function for Chart: '/EKF14s' */ +/* Function for Chart: '/EKF14s' */ static void cr929_SIL_InitStates(void) { int32_T i; @@ -9694,7 +9471,7 @@ int32_T cr929_SIL_proc_queue_SendData(const mavlink_message_t *data_toSend) return isSent; } -/* Function for Chart: '/push2msgs' */ +/* Function for Chart: '/push2msgs' */ static void cr929_SIL_sf_msg_send_msgs(void) { cr929_SIL_proc_queue_SendData(&cr929_SIL_DW.msgs_msgData_l); @@ -9703,29 +9480,7 @@ static void cr929_SIL_sf_msg_send_msgs(void) void cr929_SIL_initQueue_k0qncuyo4n2(Queue_mavlink_message_t *q, QueuePolicy_T policy, int32_T capacity, Msg_mavlink_message_t *qPool) { - /* Start for EntityQueue: '/EntityQueue_InsertedFor_proc_queue_at_inport_0' */ - q->fPolicy = policy; - q->fCapacity = capacity; - q->fHead = -1; - q->fTail = -1; - q->fArray = qPool; -} - -void cr929_SIL_initQueue(Queue_uint16 *q, QueuePolicy_T policy, int32_T capacity, - Msg_uint16 *qPool) -{ - /* Start for EntityQueue: '/EntityQueue_InsertedFor_req_cur_at_inport_0' */ - q->fPolicy = policy; - q->fCapacity = capacity; - q->fHead = -1; - q->fTail = -1; - q->fArray = qPool; -} - -void cr929_SIL_initQueue_k0qncu(Queue_mavlink_mission_item_int_t *q, - QueuePolicy_T policy, int32_T capacity, Msg_mavlink_mission_item_int_t *qPool) -{ - /* Start for EntityQueue: '/EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_proc_queue_at_inport_0' */ q->fPolicy = policy; q->fCapacity = capacity; q->fHead = -1; @@ -9736,7 +9491,29 @@ void cr929_SIL_initQueue_k0qncu(Queue_mavlink_mission_item_int_t *q, void cr929_SIL_initQueue_k0qnc(Queue_mavlink_mission_count_t *q, QueuePolicy_T policy, int32_T capacity, Msg_mavlink_mission_count_t *qPool) { - /* Start for EntityQueue: '/EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0' */ + q->fPolicy = policy; + q->fCapacity = capacity; + q->fHead = -1; + q->fTail = -1; + q->fArray = qPool; +} + +void cr929_SIL_initQueue_k0qncu(Queue_mavlink_mission_item_int_t *q, + QueuePolicy_T policy, int32_T capacity, Msg_mavlink_mission_item_int_t *qPool) +{ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1' */ + q->fPolicy = policy; + q->fCapacity = capacity; + q->fHead = -1; + q->fTail = -1; + q->fArray = qPool; +} + +void cr929_SIL_initQueue(Queue_uint16 *q, QueuePolicy_T policy, int32_T capacity, + Msg_uint16 *qPool) +{ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_req_cur_at_inport_0' */ q->fPolicy = policy; q->fCapacity = capacity; q->fHead = -1; @@ -9758,7 +9535,7 @@ void cr929_SIL_initQueue_k(Queue_CommandMsg *q, QueuePolicy_T policy, int32_T void cr929_SIL_initQueue_k0(Queue_CommandAck *q, QueuePolicy_T policy, int32_T capacity, Msg_CommandAck *qPool) { - /* Start for EntityQueue: '/EntityQueue_InsertedFor_Chart_send_ack_at_inport_0' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_Chart_send_ack_at_inport_0' */ q->fPolicy = policy; q->fCapacity = capacity; q->fHead = -1; @@ -9769,7 +9546,7 @@ void cr929_SIL_initQueue_k0(Queue_CommandAck *q, QueuePolicy_T policy, int32_T void cr929_SIL_initQueue_k0qn(Queue_mavlink_param_value_t *q, QueuePolicy_T policy, int32_T capacity, Msg_mavlink_param_value_t *qPool) { - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_2' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_2' */ q->fPolicy = policy; q->fCapacity = capacity; q->fHead = -1; @@ -9780,7 +9557,7 @@ void cr929_SIL_initQueue_k0qn(Queue_mavlink_param_value_t *q, QueuePolicy_T void cr929_SIL_initQueue_k0qncuy(Queue_mavlink_mission_ack_t *q, QueuePolicy_T policy, int32_T capacity, Msg_mavlink_mission_ack_t *qPool) { - /* Start for EntityQueue: '/EntityQueue_InsertedFor_merge_ack_at_inport_0' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_merge_ack_at_inport_0' */ q->fPolicy = policy; q->fCapacity = capacity; q->fHead = -1; @@ -9791,7 +9568,7 @@ void cr929_SIL_initQueue_k0qncuy(Queue_mavlink_mission_ack_t *q, QueuePolicy_T void cr929_SIL_initQueue_k0qncuyo(Queue_mavlink_mission_current_t *q, QueuePolicy_T policy, int32_T capacity, Msg_mavlink_mission_current_t *qPool) { - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_6' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_6' */ q->fPolicy = policy; q->fCapacity = capacity; q->fHead = -1; @@ -9803,7 +9580,7 @@ void cr929_SIL_initQueue_k0qncuyo4(Queue_mavlink_mission_request_int_t *q, QueuePolicy_T policy, int32_T capacity, Msg_mavlink_mission_request_int_t *qPool) { - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_7' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_7' */ q->fPolicy = policy; q->fCapacity = capacity; q->fHead = -1; @@ -9814,7 +9591,7 @@ void cr929_SIL_initQueue_k0qncuyo4(Queue_mavlink_mission_request_int_t *q, void cr929_SIL_initQueue_k0q(Queue_mavlink_command_ack_t *q, QueuePolicy_T policy, int32_T capacity, Msg_mavlink_command_ack_t *qPool) { - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_8' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_8' */ q->fPolicy = policy; q->fCapacity = capacity; q->fHead = -1; @@ -9825,7 +9602,7 @@ void cr929_SIL_initQueue_k0q(Queue_mavlink_command_ack_t *q, QueuePolicy_T void cr929_SIL_initQueue_k0qncuyo4n(Queue_mavlink_autopilot_version_t *q, QueuePolicy_T policy, int32_T capacity, Msg_mavlink_autopilot_version_t *qPool) { - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_9' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_9' */ q->fPolicy = policy; q->fCapacity = capacity; q->fHead = -1; @@ -9836,7 +9613,7 @@ void cr929_SIL_initQueue_k0qncuyo4n(Queue_mavlink_autopilot_version_t *q, void cr929_SIL_initQueue_k0qncuyo4n2e(Queue_mavlink_serial_control_t *q, QueuePolicy_T policy, int32_T capacity, Msg_mavlink_serial_control_t *qPool) { - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_10' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_10' */ q->fPolicy = policy; q->fCapacity = capacity; q->fHead = -1; @@ -9946,6 +9723,115 @@ int32_T cr929_SIL_proc_queue_RecvData(mavlink_message_t *data_received) return isReceived; } +int32_T cr929_SIL_push_bdbzo(Queue_mavlink_mission_count_t *q, const + Msg_mavlink_mission_count_t *element) +{ + int32_T isPush; + int32_T newTail; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ + newTail = (q->fTail + 1) % q->fCapacity; + if (q->fTail == newTail) { + isPush = 0; + } else { + q->fTail = newTail; + q->fArray[newTail] = *element; + if (q->fHead == -1) { + q->fHead = q->fTail; + } + + isPush = 1; + } + + /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ + return isPush; +} + +int32_T cr929_SIL_Chart_proc_mission_upload_In1_SendMsg(const + Msg_mavlink_mission_count_t *msg_toSend) +{ + int32_T isSent = 0; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ + isSent = cr929_SIL_push_bdbzo + (&cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_Q, + msg_toSend); + return isSent; +} + +int32_T cr929_SIL_Chart_proc_mission_upload_In1_RecvData(mavlink_mission_count_t + *data_received) +{ + int32_T isReceived; + Msg_mavlink_mission_count_t msg; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ + isReceived = cr929_SIL_pop_c02u1 + (&cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_Q, + &msg); + if (isReceived != 0) { + *data_received = msg.fData; + } + + /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ + return isReceived; +} + +int32_T cr929_SIL_push_bdbzo4(Queue_mavlink_mission_item_int_t *q, const + Msg_mavlink_mission_item_int_t *element) +{ + int32_T isPush; + int32_T newTail; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ + newTail = (q->fTail + 1) % q->fCapacity; + if (q->fTail == newTail) { + isPush = 0; + } else { + q->fTail = newTail; + q->fArray[newTail] = *element; + if (q->fHead == -1) { + q->fHead = q->fTail; + } + + isPush = 1; + } + + /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ + return isPush; +} + +int32_T cr929_SIL_Chart_proc_mission_upload_In2_SendMsg(const + Msg_mavlink_mission_item_int_t *msg_toSend) +{ + int32_T isSent = 0; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ + isSent = cr929_SIL_push_bdbzo4 + (&cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_Q, + msg_toSend); + return isSent; +} + +int32_T cr929_SIL_Chart_proc_mission_upload_In2_RecvData + (mavlink_mission_item_int_t *data_received) +{ + int32_T isReceived; + Msg_mavlink_mission_item_int_t msg; + + /* DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ + isReceived = cr929_SIL_pop_c02u1i + (&cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_Q, + &msg); + if (isReceived != 0) { + *data_received = *msg.fData; + cr929_SIL_destroyMsg_ecw(&msg); + } + + /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ + return isReceived; +} + int32_T cr929_SIL_push(Queue_uint16 *q, const Msg_uint16 *element) { int32_T isPush; @@ -10025,115 +9911,6 @@ int32_T cr929_SIL_proc_set_cur_RecvData(uint16_T *data_received) return isReceived; } -int32_T cr929_SIL_push_bdbzo4(Queue_mavlink_mission_item_int_t *q, const - Msg_mavlink_mission_item_int_t *element) -{ - int32_T isPush; - int32_T newTail; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ - newTail = (q->fTail + 1) % q->fCapacity; - if (q->fTail == newTail) { - isPush = 0; - } else { - q->fTail = newTail; - q->fArray[newTail] = *element; - if (q->fHead == -1) { - q->fHead = q->fTail; - } - - isPush = 1; - } - - /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ - return isPush; -} - -int32_T cr929_SIL_Chart_proc_mission_upload_In2_SendMsg(const - Msg_mavlink_mission_item_int_t *msg_toSend) -{ - int32_T isSent = 0; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ - isSent = cr929_SIL_push_bdbzo4 - (&cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_Q, - msg_toSend); - return isSent; -} - -int32_T cr929_SIL_Chart_proc_mission_upload_In2_RecvData - (mavlink_mission_item_int_t *data_received) -{ - int32_T isReceived; - Msg_mavlink_mission_item_int_t msg; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ - isReceived = cr929_SIL_pop_c02u1i - (&cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_Q, - &msg); - if (isReceived != 0) { - *data_received = *msg.fData; - cr929_SIL_destroyMsg_ecw(&msg); - } - - /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph18' */ - return isReceived; -} - -int32_T cr929_SIL_push_bdbzo(Queue_mavlink_mission_count_t *q, const - Msg_mavlink_mission_count_t *element) -{ - int32_T isPush; - int32_T newTail; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ - newTail = (q->fTail + 1) % q->fCapacity; - if (q->fTail == newTail) { - isPush = 0; - } else { - q->fTail = newTail; - q->fArray[newTail] = *element; - if (q->fHead == -1) { - q->fHead = q->fTail; - } - - isPush = 1; - } - - /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ - return isPush; -} - -int32_T cr929_SIL_Chart_proc_mission_upload_In1_SendMsg(const - Msg_mavlink_mission_count_t *msg_toSend) -{ - int32_T isSent = 0; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ - isSent = cr929_SIL_push_bdbzo - (&cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_Q, - msg_toSend); - return isSent; -} - -int32_T cr929_SIL_Chart_proc_mission_upload_In1_RecvData(mavlink_mission_count_t - *data_received) -{ - int32_T isReceived; - Msg_mavlink_mission_count_t msg; - - /* DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ - isReceived = cr929_SIL_pop_c02u1 - (&cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_Q, - &msg); - if (isReceived != 0) { - *data_received = msg.fData; - } - - /* End of DiscreteEventSubgraph: '/DiscreteEventSubgraph17' */ - return isReceived; -} - int32_T cr929_SIL_push_b(Queue_CommandMsg *q, const Msg_CommandMsg *element) { int32_T isPush; @@ -10883,6 +10660,8 @@ void cr929_SIL_step(void) real_T rtb_select2[3]; real_T rtb_select1_l[3]; real_T rtb_select2_e[3]; + real_T rtb_Sum_b; + real_T rtb_Sum_m; real_T rtb_Merge2; real_T rtb_Merge2_h; real_T rtb_LookupTableDynamic_i; @@ -10894,7 +10673,7 @@ void cr929_SIL_step(void) real32_T rtb_Saturation2; real32_T rtb_Sum_pi; real32_T rtb_Gain1_ov; - real32_T rtb_Switch2; + real32_T rtb_Switch2_d; real32_T rtb_Switch2_l; real32_T rtb_Switch2_o; real32_T rtb_Switch2_oq; @@ -10945,7 +10724,7 @@ void cr929_SIL_step(void) uint16_T rtb_select[23]; uint16_T rtb_Delay_a[23]; uint8_T rtb_pos_out; - uint8_T rtb_pos_out_f; + uint8_T rtb_pos_out_i; uint8_T rtb_Merge1_a; /* local scratch DWork variables */ @@ -10996,7 +10775,6 @@ void cr929_SIL_step(void) real_T rtb_ZeroOrderHold3[3]; int8_T s305_iter; Sensors rtb_TmpHiddenBufferAtBusAssignmentInport1_m; - real_T rtb_table2D_Cm_df; int32_T rtb_BitwiseAND2; int32_T rtb_BitwiseAND1; int32_T rtb_BitwiseAND3; @@ -11026,7 +10804,9 @@ void cr929_SIL_step(void) real_T rtb_Product2_ki[9]; real_T rtb_LowAltitudeScaleLength; real_T rtb_Sum1_b[3]; - real32_T rtb_uDLookupTable11; + real32_T rtb_uDLookupTable1_g; + C2 rtb_Merge_g; + boolean_T rtb_ResetControlLaw_out; real32_T rtb_qbarSc; ENUM_sysauto_level1 rtb_level1_lgx; boolean_T rtb_xbit_cmd; @@ -11156,6 +10936,7 @@ void cr929_SIL_step(void) real32_T rtb_Merge_k_dr_stimulus; real32_T rtb_Merge_k_dh_stimulus; real32_T rtb_Merge_k_ay_c; + real32_T rtb_Merge_k_mass_est; boolean_T rtb_Merge_k_Switch_ControlLaw; boolean_T rtb_Merge_k_comac_ResetControlLaw; boolean_T rtb_Merge_k_comac_Arm_RUDTrimPanel; @@ -11173,6 +10954,7 @@ void cr929_SIL_step(void) real32_T rtb_Merge_k_comac_HDG_CMD; real32_T rtb_Merge_k_comac_ALT_CMD; real32_T rtb_uDLookupTable_l; + real_T rtb_Gain_nv; int8_T rtb_VectorConcatenate_a[9]; real_T rtb_Sum_hz[3]; real32_T rtb_Product2_i[3]; @@ -11189,28 +10971,18 @@ void cr929_SIL_step(void) real32_T rtb_q2qdot; real32_T rtb_de2qdot; real32_T rtb_dr2rdot; - boolean_T rtb_Compare_i4; real32_T rtb_Saturation_fs; - ENUM_mode rtb_mode_a; + ENUM_mode rtb_mode_p; ENUM_LANDED_STATE rtb_landed_state_out; ENUM_AFCS_VERT rtb_AFCS_VERT; ENUM_CSAS_ROLL rtb_CSAS_roll; ENUM_CSAS_PITCH rtb_CSAS_pitch; ENUM_AT rtb_AT; - real32_T rtb_phi_c_c; + real32_T rtb_phi_c_h; ENUM_operational_level2 rtb_level2_lgx; - real32_T rtb_uDLookupTable4; - real32_T rtb_uDLookupTable5; real32_T rtb_uDLookupTable3; - real32_T rtb_uDLookupTable6; - real32_T rtb_uDLookupTable7; - real32_T rtb_uDLookupTable8; boolean_T rtb_Merge_o_gear_up; boolean_T rtb_Merge_o_switch_video; - real32_T rtb_Merge_o_steer_c; - real32_T rtb_Merge_o_de_c; - real32_T rtb_Merge_o_dh_c; - real32_T rtb_Merge_o_da_c; real32_T rtb_Merge_o_throttle_c; real32_T rtb_Merge_o_df_c; real32_T rtb_Merge_o_dsp_c; @@ -11333,6 +11105,7 @@ void cr929_SIL_step(void) real32_T rtb_Merge_o_dr_stimulus; real32_T rtb_Merge_o_dh_stimulus; real32_T rtb_Merge_o_ay_c; + real32_T rtb_Merge_o_mass_est; boolean_T rtb_Merge_o_Switch_ControlLaw; boolean_T rtb_Merge_o_comac_ResetControlLaw; boolean_T rtb_Merge_o_comac_Arm_RUDTrimPanel; @@ -11354,7 +11127,6 @@ void cr929_SIL_step(void) real32_T rtb_Product1_ox; real32_T rtb_Saturationcos; real32_T rtb_max_dpsi_o; - boolean_T rtb_Merge_ay_gear_up; boolean_T rtb_Merge_ay_switch_video; real32_T rtb_Merge_ay_da_c; real32_T rtb_Merge_ay_throttle_c; @@ -11483,6 +11255,7 @@ void cr929_SIL_step(void) real32_T rtb_Merge_ay_dr_stimulus; real32_T rtb_Merge_ay_dh_stimulus; real32_T rtb_Merge_ay_ay_c; + real32_T rtb_Merge_ay_mass_est; boolean_T rtb_Merge_ay_Switch_ControlLaw; boolean_T rtb_Merge_ay_comac_ResetControlLaw; boolean_T rtb_Merge_ay_comac_Arm_RUDTrimPanel; @@ -11505,10 +11278,17 @@ void cr929_SIL_step(void) boolean_T rtb_Merge_c_gear_up; boolean_T rtb_Merge_c_switch_video; real32_T rtb_Merge_c_steer_c; + real32_T rtb_Merge_c_da_c; + real32_T rtb_Merge_c_throttle_c; + real32_T rtb_Merge_c_df_c; + real32_T rtb_Merge_c_dsp_c; real32_T rtb_Merge_c_dr_c; + real32_T rtb_Merge_c_thrl_c; + real32_T rtb_Merge_c_thrr_c; boolean_T rtb_Merge_c_brake_c; boolean_T rtb_Merge_c_parachute_c; boolean_T rtb_Merge_c_anti_stall_parachute_c; + real32_T rtb_Merge_c_dar_c; real32_T rtb_Merge_c_der_c; real32_T rtb_Merge_c_dhr_c; real32_T rtb_Merge_c_dflio_c; @@ -11626,6 +11406,7 @@ void cr929_SIL_step(void) real32_T rtb_Merge_c_dr_stimulus; real32_T rtb_Merge_c_dh_stimulus; real32_T rtb_Merge_c_ay_c; + real32_T rtb_Merge_c_mass_est; boolean_T rtb_Merge_c_Switch_ControlLaw; boolean_T rtb_Merge_c_comac_ResetControlLaw; boolean_T rtb_Merge_c_comac_Arm_RUDTrimPanel; @@ -11647,13 +11428,11 @@ void cr929_SIL_step(void) real32_T rtb_divide_k; real32_T rtb_Switch_ph; real32_T rtb_Switch_cy; + boolean_T rtb_Merge_h_gear_up; boolean_T rtb_Merge_h_switch_video; boolean_T rtb_Merge_h_brake_c; boolean_T rtb_Merge_h_parachute_c; boolean_T rtb_Merge_h_anti_stall_parachute_c; - real32_T rtb_Merge_h_dhr_c; - real32_T rtb_Merge_h_dflio_c; - real32_T rtb_Merge_h_dflo_c; real32_T rtb_Merge_h_dal_c; real32_T rtb_Merge_h_del_c; real32_T rtb_Merge_h_dfrio_c; @@ -11769,6 +11548,7 @@ void cr929_SIL_step(void) real32_T rtb_Merge_h_dr_stimulus; real32_T rtb_Merge_h_dh_stimulus; real32_T rtb_Merge_h_ay_c; + real32_T rtb_Merge_h_mass_est; boolean_T rtb_Merge_h_Switch_ControlLaw; boolean_T rtb_Merge_h_comac_ResetControlLaw; boolean_T rtb_Merge_h_comac_Arm_RUDTrimPanel; @@ -11787,27 +11567,30 @@ void cr929_SIL_step(void) real32_T rtb_Merge_h_comac_ALT_CMD; real32_T rtb_Divide2_i; real32_T rtb_Delay_k; + real32_T rtb_Sum5_hx; real32_T rtb_Delay_ip; real32_T rtb_Delay_h; real32_T rtb_add1; + real32_T rtb_add_k; real32_T rtb_Merge11; real32_T rtb_Sum2_h[5]; real32_T rtb_Sum3_e[5]; + real32_T rtb_Sum7_f; real32_T rtb_Sum4_m; real32_T rtb_Delay_n; - real32_T rtb_Gain_cv; - real32_T rtb_subtract1_d; - boolean_T rtb_out_h2; - uint32_T rtb_out_gz; + real32_T rtb_add2; + boolean_T rtb_out_hr; + uint32_T rtb_out_et; ENUM_auto_level3 rtb_level3_lgx; - real32_T rtb_Merge_g; + real32_T rtb_Merge_dm; real32_T rtb_Switch2_ki; real32_T rtb_saturation_g; real32_T rtb_Product_ba; - ENUM_CSAS_YAW rtb_Merge_i5; + real32_T rtb_da2dar_deg; + real32_T rtb_da2dal_deg; + ENUM_CSAS_YAW rtb_Merge_d; real32_T rtb_Product_hl; ENUM_waypoint_level5 rtb_level5_lgx; - real32_T rtb_last_hdot_c; real32_T rtb_MaxHdot; real32_T rtb_Switch2_l5; real32_T rtb_Sum1_o; @@ -11817,11 +11600,8 @@ void cr929_SIL_step(void) real32_T rtb_sincos_o1_b[3]; real_T frac[2]; uint32_T bpIndex[2]; - real32_T rtb_uDLookupTable12; - real32_T rtb_uDLookupTable10; - real32_T rtb_uDLookupTable9; real_T rtb_MatrixConcatenation[18]; - boolean_T rtb_Compare_p[9]; + boolean_T rtb_Compare_bn[9]; int32_T i; static const int8_T tmp[3] = { 1, 0, 2 }; @@ -11831,20 +11611,13 @@ void cr929_SIL_step(void) real_T tmp_2[7]; real_T tmp_3[7]; real_T tmp_4[7]; - real32_T rtb_uDLookupTable15_0[20]; - real32_T rtb_Merge_o_dspri_c_idx_2; + real32_T rtb_uDLookupTable11_0[20]; + real32_T rtb_Gain_nd_idx_2; + real32_T rtb_Gain_nd_idx_1; + real32_T rtb_Gain_nd_idx_0; real_T rtb_Merge_ko_idx_2; real_T rtb_Merge_ko_idx_1; real_T rtb_Merge_ko_idx_0; - boolean_T rtb_Merge_h_load_signal_idx_2; - boolean_T rtb_Merge_h_load_signal_idx_1; - boolean_T rtb_Merge_h_load_signal_idx_0; - real32_T rtb_Merge_h_dspri_c_idx_2; - real32_T rtb_Merge_h_dspli_c_idx_2; - real32_T rtb_Merge_h_dspri_c_idx_1; - real32_T rtb_Merge_h_dspli_c_idx_1; - real32_T rtb_Merge_h_dspri_c_idx_0; - real32_T rtb_Merge_h_dspli_c_idx_0; real_T rtb_ImpAsg_InsertedFor_F_at_inport_0_idx_2; real_T rtb_ImpAsg_InsertedFor_F_at_inport_0_idx_1; real_T rtb_ImpAsg_InsertedFor_F_at_inport_0_idx_0; @@ -11866,9 +11639,18 @@ void cr929_SIL_step(void) real32_T rtb_Merge_k_dspri_c_idx_0; real32_T rtb_Merge_c_dspli_c_idx_0; real32_T rtb_Merge_k_dspli_c_idx_0; + boolean_T rtb_Merge_h_load_signal_idx_2; + boolean_T rtb_Merge_h_load_signal_idx_1; + boolean_T rtb_Merge_h_load_signal_idx_0; boolean_T rtb_Merge_ay_load_signal_idx_2; boolean_T rtb_Merge_ay_load_signal_idx_1; boolean_T rtb_Merge_ay_load_signal_idx_0; + real32_T rtb_Merge_h_dspri_c_idx_2; + real32_T rtb_Merge_h_dspli_c_idx_2; + real32_T rtb_Merge_h_dspri_c_idx_1; + real32_T rtb_Merge_h_dspli_c_idx_1; + real32_T rtb_Merge_h_dspri_c_idx_0; + real32_T rtb_Merge_h_dspli_c_idx_0; real32_T rtb_Merge_ay_dspri_c_idx_2; real32_T rtb_Merge_ay_dspli_c_idx_2; real32_T rtb_Merge_ay_dspri_c_idx_1; @@ -11878,6 +11660,9 @@ void cr929_SIL_step(void) boolean_T rtb_Merge_o_load_signal_idx_2; boolean_T rtb_Merge_o_load_signal_idx_1; boolean_T rtb_Merge_o_load_signal_idx_0; + real32_T rtb_Merge_o_dspri_c_idx_2; + real32_T rtb_Merge_o_dspri_c_idx_1; + real32_T rtb_Merge_o_dspri_c_idx_0; real_T rtb_sincos_o2_f_idx_1; real_T rtb_LugV1_e_idx_0; real_T rtb_WhiteNoise_idx_2; @@ -12994,7 +12779,7 @@ void cr929_SIL_step(void) cr929_SIL_B.Product6; /* Outputs for Enabled SubSystem: '/wind_model' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M) && rtmIsMajorTimeStep(cr929_SIL_M)) { /* Constant: '/Constant2' */ @@ -13004,118 +12789,118 @@ void cr929_SIL_step(void) } } else { if (cr929_SIL_DW.wind_model_MODE) { - /* Disable for Enabled SubSystem: '/Hpgw' */ + /* Disable for Enabled SubSystem: '/Hpgw' */ if (cr929_SIL_DW.Hpgw_MODE) { - /* Disable for Outport: '/pgw' */ + /* Disable for Outport: '/pgw' */ cr929_SIL_B.Sum_i3m[0] = 0.0; cr929_SIL_B.Sum_i3m[1] = 0.0; cr929_SIL_DW.Hpgw_MODE = false; } - /* End of Disable for SubSystem: '/Hpgw' */ + /* End of Disable for SubSystem: '/Hpgw' */ - /* Disable for Enabled SubSystem: '/Hwgw(z)' */ + /* Disable for Enabled SubSystem: '/Hwgw(z)' */ if (cr929_SIL_DW.Hwgwz_MODE) { - /* Disable for Outport: '/wgw' */ + /* Disable for Outport: '/wgw' */ cr929_SIL_B.Sum_gr[0] = 0.0; cr929_SIL_B.Sum_gr[1] = 0.0; cr929_SIL_DW.Hwgwz_MODE = false; } - /* End of Disable for SubSystem: '/Hwgw(z)' */ + /* End of Disable for SubSystem: '/Hwgw(z)' */ - /* Disable for Enabled SubSystem: '/Hqgw' */ + /* Disable for Enabled SubSystem: '/Hqgw' */ if (cr929_SIL_DW.Hqgw_MODE) { - /* Disable for Outport: '/qgw' */ + /* Disable for Outport: '/qgw' */ cr929_SIL_B.Sum1_i[0] = 0.0; cr929_SIL_B.Sum1_i[1] = 0.0; cr929_SIL_DW.Hqgw_MODE = false; } - /* End of Disable for SubSystem: '/Hqgw' */ + /* End of Disable for SubSystem: '/Hqgw' */ - /* Disable for Enabled SubSystem: '/Hvgw(z)' */ + /* Disable for Enabled SubSystem: '/Hvgw(z)' */ if (cr929_SIL_DW.Hvgwz_MODE) { - /* Disable for Outport: '/vgw' */ + /* Disable for Outport: '/vgw' */ cr929_SIL_B.Sum_kl[0] = 0.0; cr929_SIL_B.Sum_kl[1] = 0.0; cr929_SIL_DW.Hvgwz_MODE = false; } - /* End of Disable for SubSystem: '/Hvgw(z)' */ + /* End of Disable for SubSystem: '/Hvgw(z)' */ - /* Disable for Enabled SubSystem: '/Hrgw' */ + /* Disable for Enabled SubSystem: '/Hrgw' */ if (cr929_SIL_DW.Hrgw_MODE) { - /* Disable for Outport: '/rgw' */ + /* Disable for Outport: '/rgw' */ cr929_SIL_B.Sum1_cq[0] = 0.0; cr929_SIL_B.Sum1_cq[1] = 0.0; cr929_SIL_DW.Hrgw_MODE = false; } - /* End of Disable for SubSystem: '/Hrgw' */ + /* End of Disable for SubSystem: '/Hrgw' */ - /* Disable for If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ + /* Disable for If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ cr929_SIL_DW.ifHeightMaxlowaltitudeelseifHeightMinisotropicaltitude_ActiveSu = -1; - /* Disable for Enabled SubSystem: '/Hugw(z)' */ + /* Disable for Enabled SubSystem: '/Hugw(z)' */ if (cr929_SIL_DW.Hugwz_MODE) { - /* Disable for Outport: '/ugw' */ + /* Disable for Outport: '/ugw' */ cr929_SIL_B.Sum_fe[0] = 0.0; cr929_SIL_B.Sum_fe[1] = 0.0; cr929_SIL_DW.Hugwz_MODE = false; } - /* End of Disable for SubSystem: '/Hugw(z)' */ + /* End of Disable for SubSystem: '/Hugw(z)' */ - /* Disable for If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ + /* Disable for If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ cr929_SIL_DW.ifHeightMaxlowaltitudeelseifHeightMinisotropicaltitude_Active_a = -1; - /* Disable for Enabled SubSystem: '/Distance into gust (x)' */ + /* Disable for Enabled SubSystem: '/Distance into gust (x)' */ if (cr929_SIL_DW.Distanceintogustx.Distanceintogustx_MODE) { cr929_SIL_Distanceintogustx_Disable(&cr929_SIL_DW.Distanceintogustx); } - /* End of Disable for SubSystem: '/Distance into gust (x)' */ + /* End of Disable for SubSystem: '/Distance into gust (x)' */ - /* Disable for Enabled SubSystem: '/Distance into gust (y)' */ + /* Disable for Enabled SubSystem: '/Distance into gust (y)' */ if (cr929_SIL_DW.Distanceintogusty.Distanceintogusty_MODE) { cr929_SIL_Distanceintogusty_Disable(&cr929_SIL_DW.Distanceintogusty); } - /* End of Disable for SubSystem: '/Distance into gust (y)' */ + /* End of Disable for SubSystem: '/Distance into gust (y)' */ - /* Disable for Enabled SubSystem: '/Distance into gust (z)' */ + /* Disable for Enabled SubSystem: '/Distance into gust (z)' */ if (cr929_SIL_DW.Distanceintogustz.Distanceintogusty_MODE) { cr929_SIL_Distanceintogusty_Disable(&cr929_SIL_DW.Distanceintogustz); } - /* End of Disable for SubSystem: '/Distance into gust (z)' */ + /* End of Disable for SubSystem: '/Distance into gust (z)' */ - /* Disable for Enabled SubSystem: '/Distance into gust (x)' */ + /* Disable for Enabled SubSystem: '/Distance into gust (x)' */ if (cr929_SIL_DW.Distanceintogustx_d.Distanceintogustx_MODE) { cr929_SIL_Distanceintogustx_Disable (&cr929_SIL_DW.Distanceintogustx_d); } - /* End of Disable for SubSystem: '/Distance into gust (x)' */ + /* End of Disable for SubSystem: '/Distance into gust (x)' */ - /* Disable for Enabled SubSystem: '/Distance into gust (y)' */ + /* Disable for Enabled SubSystem: '/Distance into gust (y)' */ if (cr929_SIL_DW.Distanceintogusty_k.Distanceintogusty_MODE) { cr929_SIL_Distanceintogusty_Disable (&cr929_SIL_DW.Distanceintogusty_k); } - /* End of Disable for SubSystem: '/Distance into gust (y)' */ + /* End of Disable for SubSystem: '/Distance into gust (y)' */ - /* Disable for Enabled SubSystem: '/Distance into gust (z)' */ + /* Disable for Enabled SubSystem: '/Distance into gust (z)' */ if (cr929_SIL_DW.Distanceintogustz_a.Distanceintogusty_MODE) { cr929_SIL_Distanceintogusty_Disable (&cr929_SIL_DW.Distanceintogustz_a); } - /* End of Disable for SubSystem: '/Distance into gust (z)' */ + /* End of Disable for SubSystem: '/Distance into gust (z)' */ cr929_SIL_DW.wind_model_MODE = false; } } @@ -13125,7 +12910,7 @@ void cr929_SIL_step(void) if (cr929_SIL_DW.wind_model_MODE) { if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Math: '/Transpose' incorporates: + /* Math: '/Transpose' incorporates: * UnitDelay: '/Unit Delay2' */ for (i = 0; i < 3; i++) { @@ -13134,10 +12919,10 @@ void cr929_SIL_step(void) rtb_add_e4[2 + 3 * i] = cr929_SIL_DW.UnitDelay2_4_DSTATE[i + 6]; } - /* End of Math: '/Transpose' */ + /* End of Math: '/Transpose' */ - /* RandomNumber: '/White Noise' incorporates: - * Product: '/Product' + /* RandomNumber: '/White Noise' incorporates: + * Product: '/Product' */ rtb_WhiteNoise_idx_0 = cr929_SIL_ConstB.Divide[0] * cr929_SIL_DW.NextOutput[0]; @@ -13146,21 +12931,21 @@ void cr929_SIL_step(void) rtb_WhiteNoise_idx_2 = cr929_SIL_ConstB.Divide[2] * cr929_SIL_DW.NextOutput[2]; - /* Product: '/Product' incorporates: - * RandomNumber: '/White Noise' + /* Product: '/Product' incorporates: + * RandomNumber: '/White Noise' */ rtb_UnitConversion_n = cr929_SIL_ConstB.Divide[3] * cr929_SIL_DW.NextOutput[3]; - /* UnitConversion: '/Unit Conversion' incorporates: + /* UnitConversion: '/Unit Conversion' incorporates: * UnitDelay: '/Unit Delay2' */ /* Unit Conversion - from: m to: ft Expression: output = (3.28084*input) + (0) */ rtb_Divide6 = 3.280839895013123 * cr929_SIL_DW.UnitDelay2_11_DSTATE; - /* Interpolation_n-D: '/Medium//High Altitude Intensity' incorporates: - * PreLookup: '/PreLook-Up Index Search (altitude)' + /* Interpolation_n-D: '/Medium//High Altitude Intensity' incorporates: + * PreLookup: '/PreLook-Up Index Search (altitude)' */ bpIndex[0] = plook_bincpa(rtb_Divide6, rtCP_PreLookUpIndexSearchaltitude_BreakpointsData, 11U, @@ -13173,7 +12958,7 @@ void cr929_SIL_step(void) rtCP_MediumHighAltitudeIntensity_Table, 12U, rtCP_MediumHighAltitudeIntensity_maxIndex); - /* Saturate: '/Limit Function 10ft to 1000ft' */ + /* Saturate: '/Limit Function 10ft to 1000ft' */ if (rtb_Divide6 > 1000.0) { rtb_LookupTableDynamic_i = 1000.0; } else if (rtb_Divide6 < 10.0) { @@ -13182,38 +12967,38 @@ void cr929_SIL_step(void) rtb_LookupTableDynamic_i = rtb_Divide6; } - /* End of Saturate: '/Limit Function 10ft to 1000ft' */ + /* End of Saturate: '/Limit Function 10ft to 1000ft' */ - /* Outputs for Enabled SubSystem: '/Hpgw' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Hpgw' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M) && (!cr929_SIL_DW.Hpgw_MODE)) { - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_g[0] = 0.0; cr929_SIL_DW.UnitDelay_DSTATE_g[1] = 0.0; cr929_SIL_DW.Hpgw_MODE = true; } if (cr929_SIL_DW.Hpgw_MODE) { - /* Product: '/w2' incorporates: - * Gain: '/Lw' + /* Product: '/w2' incorporates: + * Gain: '/Lw' */ frac[0] = rtb_LookupTableDynamic_i * cr929_SIL_ConstB.UnitConversion_f; frac[1] = cr929_SIL_ConstB.UnitConversion_d * cr929_SIL_ConstB.UnitConversion_f; - /* Product: '/w4' */ + /* Product: '/w4' */ rtb_LowAltitudeScaleLength = frac[0] * cr929_SIL_ConstB.UnitConversion_f; u0 = frac[1] * cr929_SIL_ConstB.UnitConversion_f; - /* Product: '/w1' incorporates: - * Constant: '/Constant2' - * Sqrt: '/sqrt' + /* Product: '/w1' incorporates: + * Constant: '/Constant2' + * Sqrt: '/sqrt' */ rtb_LugV1_e_idx_0 = 2.6 / sqrt(frac[0]); - /* Math: '/Math Function' */ + /* Math: '/Math Function' */ if (rtb_LowAltitudeScaleLength < 0.0) { rtb_LowAltitudeScaleLength = -rt_powd_snf (-rtb_LowAltitudeScaleLength, 0.33333333333333331); @@ -13222,64 +13007,64 @@ void cr929_SIL_step(void) 0.33333333333333331); } - /* Sum: '/Sum' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Gain: '/2' - * Gain: '/dt' - * Product: '/Lug//V1' - * Product: '/Lug//V2' - * Product: '/w3' - * Sqrt: '/sqrt1' - * Sum: '/Sum1' - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Gain: '/2' + * Gain: '/dt' + * Product: '/Lug//V1' + * Product: '/Lug//V2' + * Product: '/w3' + * Sqrt: '/sqrt1' + * Sum: '/Sum1' + * UnitDelay: '/Unit Delay' */ cr929_SIL_B.Sum_i3m[0] = 0.95 / rtb_LowAltitudeScaleLength * cr929_SIL_ConstB.sigma_wg * sqrt(0.006124 * rtb_LugV1_e_idx_0) * rtb_UnitConversion_n + (1.0 - 0.003062 * rtb_LugV1_e_idx_0) * cr929_SIL_DW.UnitDelay_DSTATE_g[0]; - /* Update for UnitDelay: '/Unit Delay' */ + /* Update for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_g[0] = cr929_SIL_B.Sum_i3m[0]; - /* Product: '/w1' incorporates: - * Constant: '/Constant2' - * Sqrt: '/sqrt' + /* Product: '/w1' incorporates: + * Constant: '/Constant2' + * Sqrt: '/sqrt' */ rtb_LugV1_e_idx_0 = 2.6 / sqrt(frac[1]); - /* Math: '/Math Function' */ + /* Math: '/Math Function' */ if (u0 < 0.0) { rtb_LowAltitudeScaleLength = -rt_powd_snf(-u0, 0.33333333333333331); } else { rtb_LowAltitudeScaleLength = rt_powd_snf(u0, 0.33333333333333331); } - /* Sum: '/Sum' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Gain: '/2' - * Gain: '/dt' - * Product: '/Lug//V1' - * Product: '/Lug//V2' - * Product: '/w3' - * Sqrt: '/sqrt1' - * Sum: '/Sum1' - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Gain: '/2' + * Gain: '/dt' + * Product: '/Lug//V1' + * Product: '/Lug//V2' + * Product: '/w3' + * Sqrt: '/sqrt1' + * Sum: '/Sum1' + * UnitDelay: '/Unit Delay' */ cr929_SIL_B.Sum_i3m[1] = 0.95 / rtb_LowAltitudeScaleLength * rtb_sincos_o2_f_idx_1 * sqrt(0.006124 * rtb_LugV1_e_idx_0) * rtb_UnitConversion_n + (1.0 - 0.003062 * rtb_LugV1_e_idx_0) * cr929_SIL_DW.UnitDelay_DSTATE_g[1]; - /* Update for UnitDelay: '/Unit Delay' */ + /* Update for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_g[1] = cr929_SIL_B.Sum_i3m[1]; } - /* End of Outputs for SubSystem: '/Hpgw' */ + /* End of Outputs for SubSystem: '/Hpgw' */ - /* Sqrt: '/Sqrt' incorporates: - * DotProduct: '/Dot Product' + /* Sqrt: '/Sqrt' incorporates: + * DotProduct: '/Dot Product' * UnitDelay: '/Unit Delay2' */ cr929_SIL_B.Sqrt = sqrt((cr929_SIL_DW.UnitDelay2_1_DSTATE[0] * @@ -13289,59 +13074,59 @@ void cr929_SIL_step(void) cr929_SIL_DW.UnitDelay2_1_DSTATE[2] * cr929_SIL_DW.UnitDelay2_1_DSTATE[2]); - /* UnitConversion: '/Unit Conversion' */ + /* UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: m/s to: ft/s Expression: output = (3.28084*input) + (0) */ rtb_UnitConversion_n = 3.280839895013123 * cr929_SIL_B.Sqrt; - /* Outputs for Enabled SubSystem: '/Hqgw' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Hqgw' incorporates: + * EnablePort: '/Enable' */ - /* Outputs for Enabled SubSystem: '/Hwgw(z)' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Hwgw(z)' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (!cr929_SIL_DW.Hwgwz_MODE) { - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_i[0] = 0.0; cr929_SIL_DW.UnitDelay_DSTATE_i[1] = 0.0; cr929_SIL_DW.Hwgwz_MODE = true; } if (!cr929_SIL_DW.Hqgw_MODE) { - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_m[0] = 0.0; - /* InitializeConditions for UnitDelay: '/Unit Delay1' */ + /* InitializeConditions for UnitDelay: '/Unit Delay1' */ cr929_SIL_DW.UnitDelay1_DSTATE_l[0] = 0.0; - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_m[1] = 0.0; - /* InitializeConditions for UnitDelay: '/Unit Delay1' */ + /* InitializeConditions for UnitDelay: '/Unit Delay1' */ cr929_SIL_DW.UnitDelay1_DSTATE_l[1] = 0.0; cr929_SIL_DW.Hqgw_MODE = true; } } - /* End of Outputs for SubSystem: '/Hqgw' */ + /* End of Outputs for SubSystem: '/Hqgw' */ if (cr929_SIL_DW.Hwgwz_MODE) { - /* Product: '/V//Lwg' incorporates: - * Gain: '/Lw' + /* Product: '/V//Lwg' incorporates: + * Gain: '/Lw' */ frac[0] = rtb_UnitConversion_n / rtb_LookupTableDynamic_i; u0 = rtb_UnitConversion_n / cr929_SIL_ConstB.UnitConversion_d; - /* Sum: '/Sum' incorporates: - * Constant: '/Constant' - * Gain: '/2' - * Gain: '/dt' - * Product: '/Lug//V1' - * Product: '/Lug//V2' - * Product: '/V//Lwg' - * Sqrt: '/sqrt' - * Sum: '/Sum1' - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant' + * Gain: '/2' + * Gain: '/dt' + * Product: '/Lug//V1' + * Product: '/Lug//V2' + * Product: '/V//Lwg' + * Sqrt: '/sqrt' + * Sum: '/Sum1' + * UnitDelay: '/Unit Delay' */ cr929_SIL_B.Sum_gr[0] = (1.0 - 0.003062 * frac[0]) * cr929_SIL_DW.UnitDelay_DSTATE_i[0] + sqrt(0.006124 * frac[0]) * @@ -13350,63 +13135,63 @@ void cr929_SIL_step(void) cr929_SIL_DW.UnitDelay_DSTATE_i[1] + sqrt(0.006124 * u0) * rtb_WhiteNoise_idx_2 * rtb_sincos_o2_f_idx_1; - /* Update for UnitDelay: '/Unit Delay' */ + /* Update for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_i[0] = cr929_SIL_B.Sum_gr[0]; cr929_SIL_DW.UnitDelay_DSTATE_i[1] = cr929_SIL_B.Sum_gr[1]; } - /* End of Outputs for SubSystem: '/Hwgw(z)' */ + /* End of Outputs for SubSystem: '/Hwgw(z)' */ - /* Outputs for Enabled SubSystem: '/Hqgw' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Hqgw' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.Hqgw_MODE) { - /* Sum: '/Sum2' incorporates: - * Constant: '/Constant' - * Gain: '/dt' - * Product: '/w1' + /* Sum: '/Sum2' incorporates: + * Constant: '/Constant' + * Gain: '/dt' + * Product: '/w1' */ rtb_LugV1_e_idx_0 = 1.0 - rtb_UnitConversion_n / cr929_SIL_ConstB.dt1_k * 0.003062; - /* Sum: '/Sum1' incorporates: - * Product: '/Lug//V2' - * Product: '/w2' - * Sum: '/Sum3' - * UnitDelay: '/Unit Delay' - * UnitDelay: '/Unit Delay1' + /* Sum: '/Sum1' incorporates: + * Product: '/Lug//V2' + * Product: '/w2' + * Sum: '/Sum3' + * UnitDelay: '/Unit Delay' + * UnitDelay: '/Unit Delay1' */ cr929_SIL_B.Sum1_i[0] = (cr929_SIL_B.Sum_gr[0] - cr929_SIL_DW.UnitDelay1_DSTATE_l[0]) / cr929_SIL_ConstB.dt1_k + rtb_LugV1_e_idx_0 * cr929_SIL_DW.UnitDelay_DSTATE_m[0]; - /* Update for UnitDelay: '/Unit Delay' */ + /* Update for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_m[0] = cr929_SIL_B.Sum1_i[0]; - /* Update for UnitDelay: '/Unit Delay1' */ + /* Update for UnitDelay: '/Unit Delay1' */ cr929_SIL_DW.UnitDelay1_DSTATE_l[0] = cr929_SIL_B.Sum_gr[0]; - /* Sum: '/Sum1' incorporates: - * Product: '/Lug//V2' - * Product: '/w2' - * Sum: '/Sum3' - * UnitDelay: '/Unit Delay' - * UnitDelay: '/Unit Delay1' + /* Sum: '/Sum1' incorporates: + * Product: '/Lug//V2' + * Product: '/w2' + * Sum: '/Sum3' + * UnitDelay: '/Unit Delay' + * UnitDelay: '/Unit Delay1' */ cr929_SIL_B.Sum1_i[1] = (cr929_SIL_B.Sum_gr[1] - cr929_SIL_DW.UnitDelay1_DSTATE_l[1]) / cr929_SIL_ConstB.dt1_k + rtb_LugV1_e_idx_0 * cr929_SIL_DW.UnitDelay_DSTATE_m[1]; - /* Update for UnitDelay: '/Unit Delay' */ + /* Update for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_m[1] = cr929_SIL_B.Sum1_i[1]; - /* Update for UnitDelay: '/Unit Delay1' */ + /* Update for UnitDelay: '/Unit Delay1' */ cr929_SIL_DW.UnitDelay1_DSTATE_l[1] = cr929_SIL_B.Sum_gr[1]; } - /* End of Outputs for SubSystem: '/Hqgw' */ + /* End of Outputs for SubSystem: '/Hqgw' */ - /* Saturate: '/Limit Height h<1000ft' */ + /* Saturate: '/Limit Height h<1000ft' */ if (rtb_Divide6 > 1000.0) { rtb_LugV1_e_idx_0 = 1000.0; } else if (rtb_Divide6 < 0.0) { @@ -13415,15 +13200,15 @@ void cr929_SIL_step(void) rtb_LugV1_e_idx_0 = rtb_Divide6; } - /* End of Saturate: '/Limit Height h<1000ft' */ + /* End of Saturate: '/Limit Height h<1000ft' */ - /* Product: '/sigma_ug, sigma_vg' incorporates: - * Fcn: '/Low Altitude Intensity' + /* Product: '/sigma_ug, sigma_vg' incorporates: + * Fcn: '/Low Altitude Intensity' */ rtb_WhiteNoise_idx_2 = 1.0 / rt_powd_snf(0.000823 * rtb_LugV1_e_idx_0 + 0.177, 0.4) * cr929_SIL_ConstB.sigma_wg; - /* Fcn: '/Low Altitude Scale Length' */ + /* Fcn: '/Low Altitude Scale Length' */ rtb_LugV1_e_idx_0 = 0.000823 * rtb_LookupTableDynamic_i + 0.177; if (rtb_LugV1_e_idx_0 < 0.0) { rtb_LugV1_e_idx_0 = -rt_powd_snf(-rtb_LugV1_e_idx_0, 1.2); @@ -13434,57 +13219,57 @@ void cr929_SIL_step(void) rtb_LowAltitudeScaleLength = rtb_LookupTableDynamic_i / rtb_LugV1_e_idx_0; - /* End of Fcn: '/Low Altitude Scale Length' */ + /* End of Fcn: '/Low Altitude Scale Length' */ - /* Outputs for Enabled SubSystem: '/Hrgw' incorporates: - * EnablePort: '/Enable' - */ - /* Outputs for Enabled SubSystem: '/Hvgw(z)' incorporates: + /* Outputs for Enabled SubSystem: '/Hrgw' incorporates: * EnablePort: '/Enable' */ + /* Outputs for Enabled SubSystem: '/Hvgw(z)' incorporates: + * EnablePort: '/Enable' + */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (!cr929_SIL_DW.Hvgwz_MODE) { - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_e[0] = 0.0; cr929_SIL_DW.UnitDelay_DSTATE_e[1] = 0.0; cr929_SIL_DW.Hvgwz_MODE = true; } if (!cr929_SIL_DW.Hrgw_MODE) { - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_k[0] = 0.0; - /* InitializeConditions for UnitDelay: '/Unit Delay1' */ + /* InitializeConditions for UnitDelay: '/Unit Delay1' */ cr929_SIL_DW.UnitDelay1_DSTATE_c[0] = 0.0; - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_k[1] = 0.0; - /* InitializeConditions for UnitDelay: '/Unit Delay1' */ + /* InitializeConditions for UnitDelay: '/Unit Delay1' */ cr929_SIL_DW.UnitDelay1_DSTATE_c[1] = 0.0; cr929_SIL_DW.Hrgw_MODE = true; } } - /* End of Outputs for SubSystem: '/Hrgw' */ + /* End of Outputs for SubSystem: '/Hrgw' */ if (cr929_SIL_DW.Hvgwz_MODE) { - /* Product: '/V//Lvg' incorporates: - * Gain: '/Lv' + /* Product: '/V//Lvg' incorporates: + * Gain: '/Lv' */ u0 = rtb_UnitConversion_n / rtb_LowAltitudeScaleLength; rtb_LugV1_e_idx_0 = rtb_UnitConversion_n / cr929_SIL_ConstB.UnitConversion_d; - /* Sum: '/Sum' incorporates: - * Constant: '/Constant' - * Gain: '/2' - * Gain: '/dt' - * Product: '/Lug//V1' - * Product: '/Lug//V2' - * Product: '/V//Lvg' - * Sqrt: '/sqrt' - * Sum: '/Sum1' - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant' + * Gain: '/2' + * Gain: '/dt' + * Product: '/Lug//V1' + * Product: '/Lug//V2' + * Product: '/V//Lvg' + * Sqrt: '/sqrt' + * Sum: '/Sum1' + * UnitDelay: '/Unit Delay' */ cr929_SIL_B.Sum_kl[0] = (1.0 - 0.003062 * u0) * cr929_SIL_DW.UnitDelay_DSTATE_e[0] + sqrt(0.006124 * u0) * @@ -13493,63 +13278,63 @@ void cr929_SIL_step(void) cr929_SIL_DW.UnitDelay_DSTATE_e[1] + sqrt(0.006124 * rtb_LugV1_e_idx_0) * rtb_WhiteNoise_idx_1 * rtb_sincos_o2_f_idx_1; - /* Update for UnitDelay: '/Unit Delay' */ + /* Update for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_e[0] = cr929_SIL_B.Sum_kl[0]; cr929_SIL_DW.UnitDelay_DSTATE_e[1] = cr929_SIL_B.Sum_kl[1]; } - /* End of Outputs for SubSystem: '/Hvgw(z)' */ + /* End of Outputs for SubSystem: '/Hvgw(z)' */ - /* Outputs for Enabled SubSystem: '/Hrgw' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Hrgw' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.Hrgw_MODE) { - /* Sum: '/Sum2' incorporates: - * Constant: '/Constant' - * Gain: '/dt' - * Product: '/w1' + /* Sum: '/Sum2' incorporates: + * Constant: '/Constant' + * Gain: '/dt' + * Product: '/w1' */ rtb_LugV1_e_idx_0 = 1.0 - rtb_UnitConversion_n / cr929_SIL_ConstB.dt1 * 0.003062; - /* Sum: '/Sum1' incorporates: - * Product: '/Lug//V2' - * Product: '/w2' - * Sum: '/Sum3' - * UnitDelay: '/Unit Delay' - * UnitDelay: '/Unit Delay1' + /* Sum: '/Sum1' incorporates: + * Product: '/Lug//V2' + * Product: '/w2' + * Sum: '/Sum3' + * UnitDelay: '/Unit Delay' + * UnitDelay: '/Unit Delay1' */ cr929_SIL_B.Sum1_cq[0] = (cr929_SIL_B.Sum_kl[0] - cr929_SIL_DW.UnitDelay1_DSTATE_c[0]) / cr929_SIL_ConstB.dt1 + rtb_LugV1_e_idx_0 * cr929_SIL_DW.UnitDelay_DSTATE_k[0]; - /* Update for UnitDelay: '/Unit Delay' */ + /* Update for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_k[0] = cr929_SIL_B.Sum1_cq[0]; - /* Update for UnitDelay: '/Unit Delay1' */ + /* Update for UnitDelay: '/Unit Delay1' */ cr929_SIL_DW.UnitDelay1_DSTATE_c[0] = cr929_SIL_B.Sum_kl[0]; - /* Sum: '/Sum1' incorporates: - * Product: '/Lug//V2' - * Product: '/w2' - * Sum: '/Sum3' - * UnitDelay: '/Unit Delay' - * UnitDelay: '/Unit Delay1' + /* Sum: '/Sum1' incorporates: + * Product: '/Lug//V2' + * Product: '/w2' + * Sum: '/Sum3' + * UnitDelay: '/Unit Delay' + * UnitDelay: '/Unit Delay1' */ cr929_SIL_B.Sum1_cq[1] = (cr929_SIL_B.Sum_kl[1] - cr929_SIL_DW.UnitDelay1_DSTATE_c[1]) / cr929_SIL_ConstB.dt1 + rtb_LugV1_e_idx_0 * cr929_SIL_DW.UnitDelay_DSTATE_k[1]; - /* Update for UnitDelay: '/Unit Delay' */ + /* Update for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_k[1] = cr929_SIL_B.Sum1_cq[1]; - /* Update for UnitDelay: '/Unit Delay1' */ + /* Update for UnitDelay: '/Unit Delay1' */ cr929_SIL_DW.UnitDelay1_DSTATE_c[1] = cr929_SIL_B.Sum_kl[1]; } - /* End of Outputs for SubSystem: '/Hrgw' */ + /* End of Outputs for SubSystem: '/Hrgw' */ - /* If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ + /* If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (rtb_Divide6 <= 1000.0) { cr929_SIL_DW.ifHeightMaxlowaltitudeelseifHeightMinisotropicaltitude_ActiveSu @@ -13567,32 +13352,32 @@ void cr929_SIL_step(void) (cr929_SIL_DW.ifHeightMaxlowaltitudeelseifHeightMinisotropicaltitude_ActiveSu) { case 0: - /* Outputs for IfAction SubSystem: '/Low altitude rates' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Low altitude rates' incorporates: + * ActionPort: '/Action Port' */ - /* Trigonometry: '/Trigonometric Function1' */ + /* Trigonometry: '/Trigonometric Function1' */ rtb_LugV1_e_idx_0 = sin(cr929_SIL_ConstB.UnitConversion_e); rtb_WhiteNoise_idx_1 = cos(cr929_SIL_ConstB.UnitConversion_e); - /* Sum: '/Sum' incorporates: - * Product: '/Product1' - * Product: '/Product2' - * Trigonometry: '/Trigonometric Function1' + /* Sum: '/Sum' incorporates: + * Product: '/Product1' + * Product: '/Product2' + * Trigonometry: '/Trigonometric Function1' */ rtb_Product_mq[0] = cr929_SIL_B.Sum_i3m[0] * rtb_WhiteNoise_idx_1 - rtb_LugV1_e_idx_0 * cr929_SIL_B.Sum1_i[0]; - /* Sum: '/Sum1' incorporates: - * Product: '/Product1' - * Product: '/Product2' - * Trigonometry: '/Trigonometric Function1' + /* Sum: '/Sum1' incorporates: + * Product: '/Product1' + * Product: '/Product2' + * Trigonometry: '/Trigonometric Function1' */ rtb_Product_mq[1] = cr929_SIL_B.Sum1_i[0] * rtb_WhiteNoise_idx_1 + rtb_LugV1_e_idx_0 * cr929_SIL_B.Sum_i3m[0]; - /* Reshape: '/Reshape1' incorporates: - * Product: '/Product' - * SignalConversion: '/ConcatBufferAtVector ConcatenateIn3' + /* Reshape: '/Reshape1' incorporates: + * Product: '/Product' + * SignalConversion: '/ConcatBufferAtVector ConcatenateIn3' * UnitDelay: '/Unit Delay2' */ for (i = 0; i < 3; i++) { @@ -13602,48 +13387,48 @@ void cr929_SIL_step(void) rtb_Product_mq[0]); } - /* End of Reshape: '/Reshape1' */ - /* End of Outputs for SubSystem: '/Low altitude rates' */ + /* End of Reshape: '/Reshape1' */ + /* End of Outputs for SubSystem: '/Low altitude rates' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Medium//High altitude rates' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Medium//High altitude rates' incorporates: + * ActionPort: '/Action Port' */ - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ rtb_Sum1_b[0] = cr929_SIL_B.Sum_i3m[1]; rtb_Sum1_b[1] = cr929_SIL_B.Sum1_i[1]; rtb_Sum1_b[2] = cr929_SIL_B.Sum1_cq[1]; - /* End of Outputs for SubSystem: '/Medium//High altitude rates' */ + /* End of Outputs for SubSystem: '/Medium//High altitude rates' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Interpolate rates' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Interpolate rates' incorporates: + * ActionPort: '/Action Port' */ - /* Trigonometry: '/Trigonometric Function' */ + /* Trigonometry: '/Trigonometric Function' */ rtb_LugV1_e_idx_0 = sin(cr929_SIL_ConstB.UnitConversion_e); rtb_WhiteNoise_idx_1 = cos(cr929_SIL_ConstB.UnitConversion_e); - /* Sum: '/Sum' incorporates: - * Product: '/Product1' - * Product: '/Product2' - * Trigonometry: '/Trigonometric Function' + /* Sum: '/Sum' incorporates: + * Product: '/Product1' + * Product: '/Product2' + * Trigonometry: '/Trigonometric Function' */ rtb_Sum1_b[0] = cr929_SIL_B.Sum_i3m[0] * rtb_WhiteNoise_idx_1 - rtb_LugV1_e_idx_0 * cr929_SIL_B.Sum1_i[0]; - /* Sum: '/Sum1' incorporates: - * Product: '/Product1' - * Product: '/Product2' - * Trigonometry: '/Trigonometric Function' + /* Sum: '/Sum1' incorporates: + * Product: '/Product1' + * Product: '/Product2' + * Trigonometry: '/Trigonometric Function' */ rtb_Sum1_b[1] = cr929_SIL_B.Sum1_i[0] * rtb_WhiteNoise_idx_1 + rtb_LugV1_e_idx_0 * cr929_SIL_B.Sum_i3m[0]; - /* Product: '/Product' incorporates: - * SignalConversion: '/ConcatBufferAtVector ConcatenateIn3' + /* Product: '/Product' incorporates: + * SignalConversion: '/ConcatBufferAtVector ConcatenateIn3' * UnitDelay: '/Unit Delay2' */ for (i = 0; i < 3; i++) { @@ -13652,13 +13437,13 @@ void cr929_SIL_step(void) rtb_Sum1_b[1] + cr929_SIL_DW.UnitDelay2_4_DSTATE[i] * rtb_Sum1_b[0]); } - /* End of Product: '/Product' */ + /* End of Product: '/Product' */ - /* Sum: '/Sum3' incorporates: - * Constant: '/max_height_low' - * Product: '/Product1' - * Sum: '/Sum1' - * Sum: '/Sum2' + /* Sum: '/Sum3' incorporates: + * Constant: '/max_height_low' + * Product: '/Product1' + * Sum: '/Sum1' + * Sum: '/Sum2' */ rtb_Sum1_b[0] = (cr929_SIL_B.Sum_i3m[1] - rtb_Product_mq[0]) * (rtb_Divide6 - 1000.0) / cr929_SIL_ConstB.Sum_o + rtb_Product_mq[0]; @@ -13667,13 +13452,13 @@ void cr929_SIL_step(void) rtb_Sum1_b[2] = (cr929_SIL_B.Sum1_cq[1] - rtb_Product_mq[2]) * (rtb_Divide6 - 1000.0) / cr929_SIL_ConstB.Sum_o + rtb_Product_mq[2]; - /* End of Outputs for SubSystem: '/Interpolate rates' */ + /* End of Outputs for SubSystem: '/Interpolate rates' */ break; } - /* End of If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ + /* End of If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ - /* Product: '/MatrixMultiply' */ + /* Product: '/MatrixMultiply' */ for (i = 0; i < 3; i++) { cr929_SIL_B.MatrixMultiply[i] = 0.0; cr929_SIL_B.MatrixMultiply[i] += rtb_add_e4[i] * rtb_Sum1_b[0]; @@ -13681,15 +13466,15 @@ void cr929_SIL_step(void) cr929_SIL_B.MatrixMultiply[i] += rtb_add_e4[i + 6] * rtb_Sum1_b[2]; } - /* End of Product: '/MatrixMultiply' */ + /* End of Product: '/MatrixMultiply' */ - /* Outputs for Enabled SubSystem: '/Hugw(z)' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Hugw(z)' incorporates: + * EnablePort: '/Enable' */ - /* If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ + /* If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (!cr929_SIL_DW.Hugwz_MODE) { - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_h[0] = 0.0; cr929_SIL_DW.UnitDelay_DSTATE_h[1] = 0.0; cr929_SIL_DW.Hugwz_MODE = true; @@ -13708,20 +13493,20 @@ void cr929_SIL_step(void) } if (cr929_SIL_DW.Hugwz_MODE) { - /* Product: '/V//Lug' */ + /* Product: '/V//Lug' */ rtb_LugV1_e_idx_0 = rtb_UnitConversion_n / rtb_LowAltitudeScaleLength; rtb_UnitConversion_n /= cr929_SIL_ConstB.UnitConversion_d; - /* Sum: '/Sum' incorporates: - * Constant: '/Constant' - * Gain: '/2' - * Gain: '/dt' - * Product: '/Lug//V1' - * Product: '/Lug//V2' - * Product: '/V//Lug' - * Sqrt: '/sqrt' - * Sum: '/Sum1' - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant' + * Gain: '/2' + * Gain: '/dt' + * Product: '/Lug//V1' + * Product: '/Lug//V2' + * Product: '/V//Lug' + * Sqrt: '/sqrt' + * Sum: '/Sum1' + * UnitDelay: '/Unit Delay' */ cr929_SIL_B.Sum_fe[0] = (1.0 - 0.003062 * rtb_LugV1_e_idx_0) * cr929_SIL_DW.UnitDelay_DSTATE_h[0] + sqrt(0.006124 * @@ -13730,44 +13515,44 @@ void cr929_SIL_step(void) cr929_SIL_DW.UnitDelay_DSTATE_h[1] + sqrt(0.006124 * rtb_UnitConversion_n) * rtb_WhiteNoise_idx_0 * rtb_sincos_o2_f_idx_1; - /* Update for UnitDelay: '/Unit Delay' */ + /* Update for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_h[0] = cr929_SIL_B.Sum_fe[0]; cr929_SIL_DW.UnitDelay_DSTATE_h[1] = cr929_SIL_B.Sum_fe[1]; } - /* End of Outputs for SubSystem: '/Hugw(z)' */ + /* End of Outputs for SubSystem: '/Hugw(z)' */ - /* If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ + /* If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ switch (cr929_SIL_DW.ifHeightMaxlowaltitudeelseifHeightMinisotropicaltitude_Active_a) { case 0: - /* Outputs for IfAction SubSystem: '/Low altitude velocities' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Low altitude velocities' incorporates: + * ActionPort: '/Action Port' */ - /* Trigonometry: '/Trigonometric Function' */ + /* Trigonometry: '/Trigonometric Function' */ rtb_LugV1_e_idx_0 = sin(cr929_SIL_ConstB.UnitConversion_e); rtb_Divide6 = cos(cr929_SIL_ConstB.UnitConversion_e); - /* Sum: '/Sum' incorporates: - * Product: '/Product1' - * Product: '/Product2' - * Trigonometry: '/Trigonometric Function' + /* Sum: '/Sum' incorporates: + * Product: '/Product1' + * Product: '/Product2' + * Trigonometry: '/Trigonometric Function' */ rtb_Product_mq[0] = cr929_SIL_B.Sum_fe[0] * rtb_Divide6 - rtb_LugV1_e_idx_0 * cr929_SIL_B.Sum_kl[0]; - /* Sum: '/Sum1' incorporates: - * Product: '/Product1' - * Product: '/Product2' - * Trigonometry: '/Trigonometric Function' + /* Sum: '/Sum1' incorporates: + * Product: '/Product1' + * Product: '/Product2' + * Trigonometry: '/Trigonometric Function' */ rtb_Product_mq[1] = cr929_SIL_B.Sum_kl[0] * rtb_Divide6 + rtb_LugV1_e_idx_0 * cr929_SIL_B.Sum_fe[0]; - /* Reshape: '/Reshape1' incorporates: - * Product: '/Product' - * SignalConversion: '/ConcatBufferAtVector ConcatenateIn3' + /* Reshape: '/Reshape1' incorporates: + * Product: '/Product' + * SignalConversion: '/ConcatBufferAtVector ConcatenateIn3' * UnitDelay: '/Unit Delay2' */ for (i = 0; i < 3; i++) { @@ -13777,48 +13562,48 @@ void cr929_SIL_step(void) rtb_Product_mq[0]); } - /* End of Reshape: '/Reshape1' */ - /* End of Outputs for SubSystem: '/Low altitude velocities' */ + /* End of Reshape: '/Reshape1' */ + /* End of Outputs for SubSystem: '/Low altitude velocities' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Medium//High altitude velocities' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Medium//High altitude velocities' incorporates: + * ActionPort: '/Action Port' */ - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ rtb_Sum1_b[0] = cr929_SIL_B.Sum_fe[1]; rtb_Sum1_b[1] = cr929_SIL_B.Sum_kl[1]; rtb_Sum1_b[2] = cr929_SIL_B.Sum_gr[1]; - /* End of Outputs for SubSystem: '/Medium//High altitude velocities' */ + /* End of Outputs for SubSystem: '/Medium//High altitude velocities' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Interpolate velocities' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Interpolate velocities' incorporates: + * ActionPort: '/Action Port' */ - /* Trigonometry: '/Trigonometric Function' */ + /* Trigonometry: '/Trigonometric Function' */ rtb_LugV1_e_idx_0 = sin(cr929_SIL_ConstB.UnitConversion_e); rtb_WhiteNoise_idx_0 = cos(cr929_SIL_ConstB.UnitConversion_e); - /* Sum: '/Sum' incorporates: - * Product: '/Product1' - * Product: '/Product2' - * Trigonometry: '/Trigonometric Function' + /* Sum: '/Sum' incorporates: + * Product: '/Product1' + * Product: '/Product2' + * Trigonometry: '/Trigonometric Function' */ rtb_Sum1_b[0] = cr929_SIL_B.Sum_fe[0] * rtb_WhiteNoise_idx_0 - rtb_LugV1_e_idx_0 * cr929_SIL_B.Sum_kl[0]; - /* Sum: '/Sum1' incorporates: - * Product: '/Product1' - * Product: '/Product2' - * Trigonometry: '/Trigonometric Function' + /* Sum: '/Sum1' incorporates: + * Product: '/Product1' + * Product: '/Product2' + * Trigonometry: '/Trigonometric Function' */ rtb_Sum1_b[1] = cr929_SIL_B.Sum_kl[0] * rtb_WhiteNoise_idx_0 + rtb_LugV1_e_idx_0 * cr929_SIL_B.Sum_fe[0]; - /* Product: '/Product' incorporates: - * SignalConversion: '/ConcatBufferAtVector ConcatenateIn3' + /* Product: '/Product' incorporates: + * SignalConversion: '/ConcatBufferAtVector ConcatenateIn3' * UnitDelay: '/Unit Delay2' */ for (i = 0; i < 3; i++) { @@ -13827,13 +13612,13 @@ void cr929_SIL_step(void) rtb_Sum1_b[1] + cr929_SIL_DW.UnitDelay2_4_DSTATE[i] * rtb_Sum1_b[0]); } - /* End of Product: '/Product' */ + /* End of Product: '/Product' */ - /* Sum: '/Sum3' incorporates: - * Constant: '/max_height_low' - * Product: '/Product1' - * Sum: '/Sum1' - * Sum: '/Sum2' + /* Sum: '/Sum3' incorporates: + * Constant: '/max_height_low' + * Product: '/Product1' + * Sum: '/Sum1' + * Sum: '/Sum2' */ rtb_Sum1_b[0] = (cr929_SIL_B.Sum_fe[1] - rtb_Product_mq[0]) * (rtb_Divide6 - 1000.0) / cr929_SIL_ConstB.Sum_h + rtb_Product_mq[0]; @@ -13842,27 +13627,27 @@ void cr929_SIL_step(void) rtb_Sum1_b[2] = (cr929_SIL_B.Sum_gr[1] - rtb_Product_mq[2]) * (rtb_Divide6 - 1000.0) / cr929_SIL_ConstB.Sum_h + rtb_Product_mq[2]; - /* End of Outputs for SubSystem: '/Interpolate velocities' */ + /* End of Outputs for SubSystem: '/Interpolate velocities' */ break; } - /* UnitConversion: '/Unit Conversion' */ + /* UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: ft/s to: m/s Expression: output = (0.3048*input) + (0) */ rtb_Sum1_b[0] *= 0.3048; rtb_Sum1_b[1] *= 0.3048; rtb_LugV1_e_idx_0 = 0.3048 * rtb_Sum1_b[2]; - /* Lookup_n-D: '/wind_North' incorporates: + /* Lookup_n-D: '/wind_North' incorporates: * UnitDelay: '/Unit Delay2' */ rtb_LookupTableDynamic_i = look1_binlxpw (cr929_SIL_DW.UnitDelay2_12_DSTATE, cr929_SIL_P.wind_level, cr929_SIL_P.wind_north, 1U); - /* Sum: '/Sum2' incorporates: - * Constant: '/Constant' - * Lookup_n-D: '/wind_East' + /* Sum: '/Sum2' incorporates: + * Constant: '/Constant' + * Lookup_n-D: '/wind_East' * UnitDelay: '/Unit Delay2' */ tmp_0[0] = rtb_LookupTableDynamic_i; @@ -13870,148 +13655,148 @@ void cr929_SIL_step(void) cr929_SIL_P.wind_level, cr929_SIL_P.wind_east, 1U); tmp_0[2] = 0.0; for (i = 0; i < 3; i++) { - /* Sum: '/Sum2' incorporates: - * Product: '/MatrixMultiply1' + /* Sum: '/Sum2' incorporates: + * Product: '/MatrixMultiply1' */ cr929_SIL_B.Sum2_db[i] = tmp_0[i] + (rtb_add_e4[i + 6] * rtb_LugV1_e_idx_0 + (rtb_add_e4[i + 3] * rtb_Sum1_b[1] + rtb_add_e4[i] * rtb_Sum1_b[0])); } - /* Constant: '/Constant1' */ + /* Constant: '/Constant1' */ cr929_SIL_B.Constant1 = Ps_bias; - /* Constant: '/Constant2' */ + /* Constant: '/Constant2' */ cr929_SIL_B.Constant2 = rho_bias; } - /* Clock: '/Time' incorporates: - * Clock: '/Time' + /* Clock: '/Time' incorporates: + * Clock: '/Time' */ rtb_LugV1_e_idx_0 = cr929_SIL_M->Timing.t[0]; /* DotProduct: '/Dot Product' incorporates: - * Clock: '/Time' - * Constant: '/Gust start time' - * RelationalOperator: '/Gust Start' + * Clock: '/Time' + * Constant: '/Gust start time' + * RelationalOperator: '/Gust Start' */ rtb_TrigonometricFunction1_b = rtb_LugV1_e_idx_0; rtb_TrigonometricFunction1_b = (rtb_TrigonometricFunction1_b >= 20.0); - /* Logic: '/Logical Operator2' incorporates: - * Constant: '/Constant' + /* Logic: '/Logical Operator2' incorporates: + * Constant: '/Constant' */ cr929_SIL_B.LogicalOperator2 = false; if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* SignalConversion: '/HiddenBuf_InsertedFor_Distance into gust (x)_at_inport_1' */ + /* SignalConversion: '/HiddenBuf_InsertedFor_Distance into gust (x)_at_inport_1' */ cr929_SIL_B.HiddenBuf_InsertedFor_Distanceintogustx_at_inport_1 = cr929_SIL_B.LogicalOperator2; } - /* Outputs for Enabled SubSystem: '/Distance into gust (x)' */ + /* Outputs for Enabled SubSystem: '/Distance into gust (x)' */ cr929_SIL_Distanceintogustx(cr929_SIL_M, cr929_SIL_B.HiddenBuf_InsertedFor_Distanceintogustx_at_inport_1, &rtb_DistanceintoGustxLimitedtogustlengthd_m, &cr929_SIL_DW.Distanceintogustx, &cr929_SIL_X.Distanceintogustx, 120.0); - /* End of Outputs for SubSystem: '/Distance into gust (x)' */ + /* End of Outputs for SubSystem: '/Distance into gust (x)' */ - /* Logic: '/Logical Operator1' */ + /* Logic: '/Logical Operator1' */ cr929_SIL_B.LogicalOperator1 = (rtb_TrigonometricFunction1_b != 0.0); if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* SignalConversion: '/HiddenBuf_InsertedFor_Distance into gust (y)_at_inport_1' */ + /* SignalConversion: '/HiddenBuf_InsertedFor_Distance into gust (y)_at_inport_1' */ cr929_SIL_B.HiddenBuf_InsertedFor_Distanceintogusty_at_inport_1 = cr929_SIL_B.LogicalOperator1; } - /* Outputs for Enabled SubSystem: '/Distance into gust (y)' */ + /* Outputs for Enabled SubSystem: '/Distance into gust (y)' */ cr929_SIL_Distanceintogusty(cr929_SIL_M, cr929_SIL_B.HiddenBuf_InsertedFor_Distanceintogusty_at_inport_1, &rtb_DistanceintoGustxLimitedtogustlengthd_e, &cr929_SIL_DW.Distanceintogusty, &cr929_SIL_X.Distanceintogusty, 120.0); - /* End of Outputs for SubSystem: '/Distance into gust (y)' */ + /* End of Outputs for SubSystem: '/Distance into gust (y)' */ - /* Logic: '/Logical Operator3' incorporates: - * Constant: '/Constant2' + /* Logic: '/Logical Operator3' incorporates: + * Constant: '/Constant2' */ cr929_SIL_B.LogicalOperator3 = false; if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* SignalConversion: '/HiddenBuf_InsertedFor_Distance into gust (z)_at_inport_1' */ + /* SignalConversion: '/HiddenBuf_InsertedFor_Distance into gust (z)_at_inport_1' */ cr929_SIL_B.HiddenBuf_InsertedFor_Distanceintogustz_at_inport_1 = cr929_SIL_B.LogicalOperator3; } - /* Outputs for Enabled SubSystem: '/Distance into gust (z)' */ + /* Outputs for Enabled SubSystem: '/Distance into gust (z)' */ cr929_SIL_Distanceintogusty(cr929_SIL_M, cr929_SIL_B.HiddenBuf_InsertedFor_Distanceintogustz_at_inport_1, &rtb_DistanceintoGustxLimitedtogustlengthd_a, &cr929_SIL_DW.Distanceintogustz, &cr929_SIL_X.Distanceintogustz, 80.0); - /* End of Outputs for SubSystem: '/Distance into gust (z)' */ + /* End of Outputs for SubSystem: '/Distance into gust (z)' */ /* DotProduct: '/Dot Product' incorporates: - * Clock: '/Time' - * Constant: '/Gust start time' - * RelationalOperator: '/Gust Start' + * Clock: '/Time' + * Constant: '/Gust start time' + * RelationalOperator: '/Gust Start' */ rtb_TrigonometricFunction1_b = rtb_LugV1_e_idx_0; rtb_TrigonometricFunction1_b = (rtb_TrigonometricFunction1_b >= 200.0); - /* Logic: '/Logical Operator2' incorporates: - * Constant: '/Constant' + /* Logic: '/Logical Operator2' incorporates: + * Constant: '/Constant' */ cr929_SIL_B.LogicalOperator2_m = false; if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* SignalConversion: '/HiddenBuf_InsertedFor_Distance into gust (x)_at_inport_1' */ + /* SignalConversion: '/HiddenBuf_InsertedFor_Distance into gust (x)_at_inport_1' */ cr929_SIL_B.HiddenBuf_InsertedFor_Distanceintogustx_at_inport_1_a = cr929_SIL_B.LogicalOperator2_m; } - /* Outputs for Enabled SubSystem: '/Distance into gust (x)' */ + /* Outputs for Enabled SubSystem: '/Distance into gust (x)' */ cr929_SIL_Distanceintogustx(cr929_SIL_M, cr929_SIL_B.HiddenBuf_InsertedFor_Distanceintogustx_at_inport_1_a, &rtb_DistanceintoGustxLimitedtogustlengthd_l, &cr929_SIL_DW.Distanceintogustx_d, &cr929_SIL_X.Distanceintogustx_d, 120.0); - /* End of Outputs for SubSystem: '/Distance into gust (x)' */ + /* End of Outputs for SubSystem: '/Distance into gust (x)' */ - /* Logic: '/Logical Operator1' */ + /* Logic: '/Logical Operator1' */ cr929_SIL_B.LogicalOperator1_h = (rtb_TrigonometricFunction1_b != 0.0); if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* SignalConversion: '/HiddenBuf_InsertedFor_Distance into gust (y)_at_inport_1' */ + /* SignalConversion: '/HiddenBuf_InsertedFor_Distance into gust (y)_at_inport_1' */ cr929_SIL_B.HiddenBuf_InsertedFor_Distanceintogusty_at_inport_1_g = cr929_SIL_B.LogicalOperator1_h; } - /* Outputs for Enabled SubSystem: '/Distance into gust (y)' */ + /* Outputs for Enabled SubSystem: '/Distance into gust (y)' */ cr929_SIL_Distanceintogusty(cr929_SIL_M, cr929_SIL_B.HiddenBuf_InsertedFor_Distanceintogusty_at_inport_1_g, &rtb_DistanceintoGustxLimitedtogustlengthd_o, &cr929_SIL_DW.Distanceintogusty_k, &cr929_SIL_X.Distanceintogusty_k, 120.0); - /* End of Outputs for SubSystem: '/Distance into gust (y)' */ + /* End of Outputs for SubSystem: '/Distance into gust (y)' */ - /* Logic: '/Logical Operator3' incorporates: - * Constant: '/Constant2' + /* Logic: '/Logical Operator3' incorporates: + * Constant: '/Constant2' */ cr929_SIL_B.LogicalOperator3_l = false; if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* SignalConversion: '/HiddenBuf_InsertedFor_Distance into gust (z)_at_inport_1' */ + /* SignalConversion: '/HiddenBuf_InsertedFor_Distance into gust (z)_at_inport_1' */ cr929_SIL_B.HiddenBuf_InsertedFor_Distanceintogustz_at_inport_1_j = cr929_SIL_B.LogicalOperator3_l; } - /* Outputs for Enabled SubSystem: '/Distance into gust (z)' */ + /* Outputs for Enabled SubSystem: '/Distance into gust (z)' */ cr929_SIL_Distanceintogusty(cr929_SIL_M, cr929_SIL_B.HiddenBuf_InsertedFor_Distanceintogustz_at_inport_1_j, &rtb_DistanceintoGustxLimitedtogustlengthd, &cr929_SIL_DW.Distanceintogustz_a, &cr929_SIL_X.Distanceintogustz_a, 80.0); - /* End of Outputs for SubSystem: '/Distance into gust (z)' */ + /* End of Outputs for SubSystem: '/Distance into gust (z)' */ } /* End of Outputs for SubSystem: '/wind_model' */ @@ -14176,11 +13961,11 @@ void cr929_SIL_step(void) /* DataTypeConversion: '/Data Type Conversion2' */ rtb_DataTypeConversion_a = rtb_Delay_a[1]; - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' * Input0 Data Type: Floating Point real32_T * Input1 Data Type: Floating Point real32_T * Input2 Data Type: Floating Point real32_T @@ -14200,11 +13985,11 @@ void cr929_SIL_step(void) /* DataTypeConversion: '/Data Type Conversion1' */ rtb_DataTypeConversion_a = rtb_Delay_a[0]; - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' * Input0 Data Type: Floating Point real32_T * Input1 Data Type: Floating Point real32_T * Input2 Data Type: Floating Point real32_T @@ -14213,8 +13998,8 @@ void cr929_SIL_step(void) * */ LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_k), - &cr929_SIL_P.dar_pos[0], rtb_DataTypeConversion_a, &cr929_SIL_P.dar_pwm - [0], 2U); + rtCP_Constant1_Value_mr, rtb_DataTypeConversion_a, + rtCP_Constant_Value_oj, 2U); /* S-Function (sfix_bitop): '/Bitwise AND1' incorporates: * Inport: '/fault' @@ -14224,11 +14009,11 @@ void cr929_SIL_step(void) /* DataTypeConversion: '/Data Type Conversion3' */ rtb_DataTypeConversion_a = rtb_Delay_a[2]; - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' * Input0 Data Type: Floating Point real32_T * Input1 Data Type: Floating Point real32_T * Input2 Data Type: Floating Point real32_T @@ -14238,97 +14023,13 @@ void cr929_SIL_step(void) */ LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_m), rtCP_Constant1_Value_bh, rtb_DataTypeConversion_a, - rtCP_Constant_Value_pf2, 2U); + rtCP_Constant_Value_pf, 2U); /* S-Function (sfix_bitop): '/Bitwise AND3' incorporates: * Inport: '/fault' */ rtb_BitwiseAND3 = (int32_T)(cr929_SIL_U.fault & 16U); - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' - * Input0 Data Type: Floating Point real32_T - * Input1 Data Type: Floating Point real32_T - * Input2 Data Type: Floating Point real32_T - * Output0 Data Type: Floating Point real_T - * Lookup Method: Linear_Endpoint - * - */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_l), - &cr929_SIL_P.dsplo5_pos[0], rtb_DataTypeConversion12[0], - &cr929_SIL_P.dsplo5_pwm[0], 2U); - - /* S-Function (sfix_bitop): '/Bitwise AND' incorporates: - * Inport: '/fault' - */ - rtb_BitwiseAND = (int32_T)(cr929_SIL_U.fault & 51U); - - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' - * Input0 Data Type: Floating Point real32_T - * Input1 Data Type: Floating Point real32_T - * Input2 Data Type: Floating Point real32_T - * Output0 Data Type: Floating Point real_T - * Lookup Method: Linear_Endpoint - * - */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_lb), - rtCP_Constant1_Value_mt, rtb_DataTypeConversion12[1], - rtCP_Constant_Value_le0, 2U); - - /* S-Function (sfix_bitop): '/Bitwise AND1' incorporates: - * Inport: '/fault' - */ - rtb_BitwiseAND1_n = (int32_T)(cr929_SIL_U.fault & 52U); - - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' - * Input0 Data Type: Floating Point real32_T - * Input1 Data Type: Floating Point real32_T - * Input2 Data Type: Floating Point real32_T - * Output0 Data Type: Floating Point real_T - * Lookup Method: Linear_Endpoint - * - */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_i), - rtCP_Constant1_Value_i5, rtb_DataTypeConversion12[2], - rtCP_Constant_Value_aq, 2U); - - /* S-Function (sfix_bitop): '/Bitwise AND2' incorporates: - * Inport: '/fault' - */ - rtb_BitwiseAND2_o = (int32_T)(cr929_SIL_U.fault & 53U); - - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' - * Input0 Data Type: Floating Point real32_T - * Input1 Data Type: Floating Point real32_T - * Input2 Data Type: Floating Point real32_T - * Output0 Data Type: Floating Point real_T - * Lookup Method: Linear_Endpoint - * - */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_o), - &cr929_SIL_P.dsplo2_pos[0], rtb_DataTypeConversion12[3], - &cr929_SIL_P.dsplo2_pwm[0], 2U); - - /* S-Function (sfix_bitop): '/Bitwise AND3' incorporates: - * Inport: '/fault' - */ - rtb_BitwiseAND3_c = (int32_T)(cr929_SIL_U.fault & 54U); - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: * Constant: '/Constant' * Constant: '/Constant1' @@ -14341,140 +14042,14 @@ void cr929_SIL_step(void) * Lookup Method: Linear_Endpoint * */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_o4), - rtCP_Constant1_Value_e3, rtb_DataTypeConversion12[4], - rtCP_Constant_Value_gc, 2U); + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_l), + &cr929_SIL_P.dsplo5_pos[0], rtb_DataTypeConversion12[0], + &cr929_SIL_P.dsplo5_pwm[0], 5U); - /* S-Function (sfix_bitop): '/Bitwise AND4' incorporates: + /* S-Function (sfix_bitop): '/Bitwise AND' incorporates: * Inport: '/fault' */ - rtb_BitwiseAND4 = (int32_T)(cr929_SIL_U.fault & 55U); - - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' - * Input0 Data Type: Floating Point real32_T - * Input1 Data Type: Floating Point real32_T - * Input2 Data Type: Floating Point real32_T - * Output0 Data Type: Floating Point real_T - * Lookup Method: Linear_Endpoint - * - */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_n), - rtCP_Constant1_Value_in, rtb_DataTypeConversion12[5], - rtCP_Constant_Value_hy, 2U); - - /* S-Function (sfix_bitop): '/Bitwise AND5' incorporates: - * Inport: '/fault' - */ - rtb_BitwiseAND5 = (int32_T)(cr929_SIL_U.fault & 56U); - - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' - * Input0 Data Type: Floating Point real32_T - * Input1 Data Type: Floating Point real32_T - * Input2 Data Type: Floating Point real32_T - * Output0 Data Type: Floating Point real_T - * Lookup Method: Linear_Endpoint - * - */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_np), - rtCP_Constant1_Value_n0, rtb_DataTypeConversion12[6], - rtCP_Constant_Value_ek, 2U); - - /* S-Function (sfix_bitop): '/Bitwise AND6' incorporates: - * Inport: '/fault' - */ - rtb_BitwiseAND6 = (int32_T)(cr929_SIL_U.fault & 57U); - - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' - * Input0 Data Type: Floating Point real32_T - * Input1 Data Type: Floating Point real32_T - * Input2 Data Type: Floating Point real32_T - * Output0 Data Type: Floating Point real_T - * Lookup Method: Linear_Endpoint - * - */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_f), - rtCP_Constant1_Value_jxv, rtb_DataTypeConversion12[7], - rtCP_Constant_Value_nf, 2U); - - /* S-Function (sfix_bitop): '/Bitwise AND7' incorporates: - * Inport: '/fault' - */ - rtb_BitwiseAND7 = (int32_T)(cr929_SIL_U.fault & 58U); - - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' - * Input0 Data Type: Floating Point real32_T - * Input1 Data Type: Floating Point real32_T - * Input2 Data Type: Floating Point real32_T - * Output0 Data Type: Floating Point real_T - * Lookup Method: Linear_Endpoint - * - */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_a), - &cr929_SIL_P.dspri1_pos[0], rtb_DataTypeConversion12[8], - &cr929_SIL_P.dspri1_pwm[0], 2U); - - /* S-Function (sfix_bitop): '/Bitwise AND8' incorporates: - * Inport: '/fault' - */ - rtb_BitwiseAND8 = (int32_T)(cr929_SIL_U.fault & 59U); - - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' - * Input0 Data Type: Floating Point real32_T - * Input1 Data Type: Floating Point real32_T - * Input2 Data Type: Floating Point real32_T - * Output0 Data Type: Floating Point real_T - * Lookup Method: Linear_Endpoint - * - */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_nw), - &cr929_SIL_P.dspri2_pos[0], rtb_DataTypeConversion12[9], - &cr929_SIL_P.dspri2_pwm[0], 2U); - - /* S-Function (sfix_bitop): '/Bitwise AND9' incorporates: - * Inport: '/fault' - */ - rtb_BitwiseAND9 = (int32_T)(cr929_SIL_U.fault & 60U); - - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' - * Input0 Data Type: Floating Point real32_T - * Input1 Data Type: Floating Point real32_T - * Input2 Data Type: Floating Point real32_T - * Output0 Data Type: Floating Point real_T - * Lookup Method: Linear_Endpoint - * - */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_o45), - &cr929_SIL_P.dspri3_pos[0], rtb_DataTypeConversion12[10], - &cr929_SIL_P.dspri3_pwm[0], 2U); - - /* S-Function (sfix_bitop): '/Bitwise AND10' incorporates: - * Inport: '/fault' - */ - rtb_BitwiseAND10 = (int32_T)(cr929_SIL_U.fault & 61U); + rtb_BitwiseAND = (int32_T)(cr929_SIL_U.fault & 51U); /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: * Constant: '/Constant' @@ -14488,20 +14063,20 @@ void cr929_SIL_step(void) * Lookup Method: Linear_Endpoint * */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_b), - &cr929_SIL_P.dspro1_pos[0], rtb_DataTypeConversion12[11], - &cr929_SIL_P.dspro1_pwm[0], 2U); + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_lb), + rtCP_Constant1_Value_mt, rtb_DataTypeConversion12[1], + rtCP_Constant_Value_le0, 5U); - /* S-Function (sfix_bitop): '/Bitwise AND12' incorporates: + /* S-Function (sfix_bitop): '/Bitwise AND1' incorporates: * Inport: '/fault' */ - rtb_BitwiseAND12 = (int32_T)(cr929_SIL_U.fault & 62U); + rtb_BitwiseAND1_n = (int32_T)(cr929_SIL_U.fault & 52U); - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' * Input0 Data Type: Floating Point real32_T * Input1 Data Type: Floating Point real32_T * Input2 Data Type: Floating Point real32_T @@ -14509,14 +14084,161 @@ void cr929_SIL_step(void) * Lookup Method: Linear_Endpoint * */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_p), - rtCP_Constant1_Value_jx, rtb_DataTypeConversion12[12], - rtCP_Constant_Value_gwr, 2U); + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_i), + rtCP_Constant1_Value_i5, rtb_DataTypeConversion12[2], + rtCP_Constant_Value_aq, 5U); - /* S-Function (sfix_bitop): '/Bitwise AND13' incorporates: + /* S-Function (sfix_bitop): '/Bitwise AND2' incorporates: * Inport: '/fault' */ - rtb_BitwiseAND13 = (int32_T)(cr929_SIL_U.fault & 63U); + rtb_BitwiseAND2_o = (int32_T)(cr929_SIL_U.fault & 53U); + + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + */ + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + * Input0 Data Type: Floating Point real32_T + * Input1 Data Type: Floating Point real32_T + * Input2 Data Type: Floating Point real32_T + * Output0 Data Type: Floating Point real_T + * Lookup Method: Linear_Endpoint + * + */ + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_o), + &cr929_SIL_P.dsplo2_pos[0], rtb_DataTypeConversion12[3], + &cr929_SIL_P.dsplo2_pwm[0], 5U); + + /* S-Function (sfix_bitop): '/Bitwise AND3' incorporates: + * Inport: '/fault' + */ + rtb_BitwiseAND3_c = (int32_T)(cr929_SIL_U.fault & 54U); + + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + */ + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + * Input0 Data Type: Floating Point real32_T + * Input1 Data Type: Floating Point real32_T + * Input2 Data Type: Floating Point real32_T + * Output0 Data Type: Floating Point real_T + * Lookup Method: Linear_Endpoint + * + */ + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_o4), + rtCP_Constant1_Value_e3, rtb_DataTypeConversion12[4], + rtCP_Constant_Value_gc, 5U); + + /* S-Function (sfix_bitop): '/Bitwise AND4' incorporates: + * Inport: '/fault' + */ + rtb_BitwiseAND4 = (int32_T)(cr929_SIL_U.fault & 55U); + + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + */ + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + * Input0 Data Type: Floating Point real32_T + * Input1 Data Type: Floating Point real32_T + * Input2 Data Type: Floating Point real32_T + * Output0 Data Type: Floating Point real_T + * Lookup Method: Linear_Endpoint + * + */ + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_n), + rtCP_Constant1_Value_in, rtb_DataTypeConversion12[5], + rtCP_Constant_Value_hy, 5U); + + /* S-Function (sfix_bitop): '/Bitwise AND5' incorporates: + * Inport: '/fault' + */ + rtb_BitwiseAND5 = (int32_T)(cr929_SIL_U.fault & 56U); + + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + */ + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + * Input0 Data Type: Floating Point real32_T + * Input1 Data Type: Floating Point real32_T + * Input2 Data Type: Floating Point real32_T + * Output0 Data Type: Floating Point real_T + * Lookup Method: Linear_Endpoint + * + */ + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_np), + rtCP_Constant1_Value_n0, rtb_DataTypeConversion12[6], + rtCP_Constant_Value_ek, 5U); + + /* S-Function (sfix_bitop): '/Bitwise AND6' incorporates: + * Inport: '/fault' + */ + rtb_BitwiseAND6 = (int32_T)(cr929_SIL_U.fault & 57U); + + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + */ + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + * Input0 Data Type: Floating Point real32_T + * Input1 Data Type: Floating Point real32_T + * Input2 Data Type: Floating Point real32_T + * Output0 Data Type: Floating Point real_T + * Lookup Method: Linear_Endpoint + * + */ + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_f), + &cr929_SIL_P.dspli1_pos[0], rtb_DataTypeConversion12[7], + &cr929_SIL_P.dspli1_pwm[0], 5U); + + /* S-Function (sfix_bitop): '/Bitwise AND7' incorporates: + * Inport: '/fault' + */ + rtb_BitwiseAND7 = (int32_T)(cr929_SIL_U.fault & 58U); + + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + */ + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + * Input0 Data Type: Floating Point real32_T + * Input1 Data Type: Floating Point real32_T + * Input2 Data Type: Floating Point real32_T + * Output0 Data Type: Floating Point real_T + * Lookup Method: Linear_Endpoint + * + */ + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_a), + rtCP_Constant1_Value_k5, rtb_DataTypeConversion12[8], + rtCP_Constant_Value_dpr, 5U); + + /* S-Function (sfix_bitop): '/Bitwise AND8' incorporates: + * Inport: '/fault' + */ + rtb_BitwiseAND8 = (int32_T)(cr929_SIL_U.fault & 59U); + + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + */ + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + * Input0 Data Type: Floating Point real32_T + * Input1 Data Type: Floating Point real32_T + * Input2 Data Type: Floating Point real32_T + * Output0 Data Type: Floating Point real_T + * Lookup Method: Linear_Endpoint + * + */ + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_nw), + &cr929_SIL_P.dspri2_pos[0], rtb_DataTypeConversion12[9], + &cr929_SIL_P.dspri2_pwm[0], 5U); + + /* S-Function (sfix_bitop): '/Bitwise AND9' incorporates: + * Inport: '/fault' + */ + rtb_BitwiseAND9 = (int32_T)(cr929_SIL_U.fault & 60U); /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: * Constant: '/Constant' @@ -14530,14 +14252,35 @@ void cr929_SIL_step(void) * Lookup Method: Linear_Endpoint * */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_e), - &cr929_SIL_P.dspro3_pos[0], rtb_DataTypeConversion12[13], - &cr929_SIL_P.dspro3_pwm[0], 2U); + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_o45), + &cr929_SIL_P.dspri3_pos[0], rtb_DataTypeConversion12[10], + &cr929_SIL_P.dspri3_pwm[0], 5U); - /* S-Function (sfix_bitop): '/Bitwise AND14' incorporates: + /* S-Function (sfix_bitop): '/Bitwise AND10' incorporates: * Inport: '/fault' */ - rtb_BitwiseAND14 = (int32_T)(cr929_SIL_U.fault & 64U); + rtb_BitwiseAND10 = (int32_T)(cr929_SIL_U.fault & 61U); + + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + */ + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + * Input0 Data Type: Floating Point real32_T + * Input1 Data Type: Floating Point real32_T + * Input2 Data Type: Floating Point real32_T + * Output0 Data Type: Floating Point real_T + * Lookup Method: Linear_Endpoint + * + */ + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_b), + &cr929_SIL_P.dspro1_pos[0], rtb_DataTypeConversion12[11], + &cr929_SIL_P.dspro1_pwm[0], 5U); + + /* S-Function (sfix_bitop): '/Bitwise AND12' incorporates: + * Inport: '/fault' + */ + rtb_BitwiseAND12 = (int32_T)(cr929_SIL_U.fault & 62U); /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: * Constant: '/Constant' @@ -14551,14 +14294,14 @@ void cr929_SIL_step(void) * Lookup Method: Linear_Endpoint * */ - LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_g), - &cr929_SIL_P.dspro4_pos[0], rtb_DataTypeConversion12[14], - &cr929_SIL_P.dspro4_pwm[0], 2U); + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_p), + rtCP_Constant1_Value_jx, rtb_DataTypeConversion12[12], + rtCP_Constant_Value_gwr, 5U); - /* S-Function (sfix_bitop): '/Bitwise AND11' incorporates: + /* S-Function (sfix_bitop): '/Bitwise AND13' incorporates: * Inport: '/fault' */ - rtb_BitwiseAND11 = (int32_T)(cr929_SIL_U.fault & 65U); + rtb_BitwiseAND13 = (int32_T)(cr929_SIL_U.fault & 63U); /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: * Constant: '/Constant' @@ -14572,11 +14315,53 @@ void cr929_SIL_step(void) * Lookup Method: Linear_Endpoint * */ + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_e), + &cr929_SIL_P.dspro3_pos[0], rtb_DataTypeConversion12[13], + &cr929_SIL_P.dspro3_pwm[0], 5U); + + /* S-Function (sfix_bitop): '/Bitwise AND14' incorporates: + * Inport: '/fault' + */ + rtb_BitwiseAND14 = (int32_T)(cr929_SIL_U.fault & 64U); + + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + */ + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + * Input0 Data Type: Floating Point real32_T + * Input1 Data Type: Floating Point real32_T + * Input2 Data Type: Floating Point real32_T + * Output0 Data Type: Floating Point real_T + * Lookup Method: Linear_Endpoint + * + */ + LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_g), + &cr929_SIL_P.dspro4_pos[0], rtb_DataTypeConversion12[14], + &cr929_SIL_P.dspro4_pwm[0], 5U); + + /* S-Function (sfix_bitop): '/Bitwise AND11' incorporates: + * Inport: '/fault' + */ + rtb_BitwiseAND11 = (int32_T)(cr929_SIL_U.fault & 65U); + + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + */ + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + * Input0 Data Type: Floating Point real32_T + * Input1 Data Type: Floating Point real32_T + * Input2 Data Type: Floating Point real32_T + * Output0 Data Type: Floating Point real_T + * Lookup Method: Linear_Endpoint + * + */ LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_in), rtCP_Constant1_Value_ft, rtb_DataTypeConversion12[15], - rtCP_Constant_Value_gw, 2U); + rtCP_Constant_Value_gw, 5U); - /* S-Function (sfix_bitop): '/Bitwise AND15' incorporates: + /* S-Function (sfix_bitop): '/Bitwise AND15' incorporates: * Inport: '/fault' */ rtb_BitwiseAND15 = (int32_T)(cr929_SIL_U.fault & 66U); @@ -14584,11 +14369,11 @@ void cr929_SIL_step(void) /* DataTypeConversion: '/Data Type Conversion10' */ rtb_DataTypeConversion_a = rtb_Delay_a[5]; - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' * Input0 Data Type: Floating Point real32_T * Input1 Data Type: Floating Point real32_T * Input2 Data Type: Floating Point real32_T @@ -14597,14 +14382,14 @@ void cr929_SIL_step(void) * */ LookUp_real_Treal32_T_real32_T( &(cr929_SIL_B.LookupTableDynamic_d), - &cr929_SIL_P.dh_pos[0], rtb_DataTypeConversion_a, &cr929_SIL_P.dh_pwm[0], - 2U); + rtCP_Constant1_Value_ke, rtb_DataTypeConversion_a, + rtCP_Constant_Value_pl, 3U); /* UnitDelay: '/Unit Delay' */ cr929_SIL_B.UnitDelay_m = cr929_SIL_DW.UnitDelay_DSTATE_hm; /* UnitDelay: '/Unit Delay' */ - rtb_UnitDelay_d = cr929_SIL_DW.UnitDelay_DSTATE_c; + rtb_UnitDelay_d = cr929_SIL_DW.UnitDelay_DSTATE_c3; /* UnitDelay: '/Unit Delay' */ rtb_UnitDelay_lt = cr929_SIL_DW.UnitDelay_DSTATE_dq; @@ -14675,41 +14460,41 @@ void cr929_SIL_step(void) /* End of Chart: '/valid_checking' */ - /* Outputs for Iterator SubSystem: '/parse_to_msg_queue' incorporates: - * ForIterator: '/For Iterator' + /* Outputs for Iterator SubSystem: '/parse_to_msg_queue' incorporates: + * ForIterator: '/For Iterator' */ /* Inport: '/data_len' */ for (i = 0; i < cr929_SIL_U.data_len; i++) { - /* Selector: '/Selector' incorporates: + /* Selector: '/Selector' incorporates: * Inport: '/data_in' */ cr929_SIL_B.mav_char_in = cr929_SIL_U.data_in[i]; - /* S-Function (mav_parser): '/mav_parser' */ + /* S-Function (mav_parser): '/mav_parser' */ mav_parser_Outputs_wrapper(&cr929_SIL_B.mav_char_in, &cr929_SIL_B.mav_found, &cr929_SIL_B.mav_message, &cr929_SIL_B.mav_status, &rtCP_mav_parser_P1, 1); - /* If: '/If' */ + /* If: '/If' */ if (cr929_SIL_B.mav_found) { - /* Outputs for IfAction SubSystem: '/process_new_message' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/process_new_message' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/push2msgs' */ + /* Chart: '/push2msgs' */ cr929_SIL_DW.msgs_msgData_l = cr929_SIL_B.mav_message; cr929_SIL_sf_msg_send_msgs(); - /* End of Outputs for SubSystem: '/process_new_message' */ + /* End of Outputs for SubSystem: '/process_new_message' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ } /* End of Inport: '/data_len' */ - /* End of Outputs for SubSystem: '/parse_to_msg_queue' */ + /* End of Outputs for SubSystem: '/parse_to_msg_queue' */ - /* MATLAB Function: '/stdatmo' incorporates: - * DataTypeConversion: '/Data Type Conversion3' + /* MATLAB Function: '/stdatmo' incorporates: + * DataTypeConversion: '/Data Type Conversion3' */ if (rtb_DataStoreRead.asl_baro <= 11000.0F) { rtb_Divide6 = -0.0065 * rtb_DataStoreRead.asl_baro / 288.15 + 1.0; @@ -14764,30 +14549,30 @@ void cr929_SIL_step(void) rtb_Divide6 = rtb_Divide6 / rtb_LugV1_e_idx_0 / cr929_SIL_DW.R; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * MATLAB Function: '/stdatmo' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * MATLAB Function: '/stdatmo' */ rtb_DataTypeConversion_a = (real32_T)sqrt(cr929_SIL_DW.gamma * cr929_SIL_DW.R * rtb_LugV1_e_idx_0); - /* Product: '/product' incorporates: - * Constant: '/Constant Single' - * DataTypeConversion: '/Data Type Conversion2' - * MATLAB Function: '/stdatmo' - * Product: '/divide1' - * Sqrt: '/Sqrt' + /* Product: '/product' incorporates: + * Constant: '/Constant Single' + * DataTypeConversion: '/Data Type Conversion2' + * MATLAB Function: '/stdatmo' + * Product: '/divide1' + * Sqrt: '/Sqrt' */ /* Unit Conversion - from: K to: degC Expression: output = (1*input) + (-273.15) */ - rtb_uDLookupTable11 = sqrtf(1.0F / (real32_T)rtb_Divide6 * 1.225F) * + rtb_uDLookupTable1_g = sqrtf(1.0F / (real32_T)rtb_Divide6 * 1.225F) * rtb_DataStoreRead.IAS; - /* BusAssignment: '/Bus Assignment' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion2' - * MATLAB Function: '/stdatmo' - * Product: '/divide' - * UnitConversion: '/Unit Conversion' + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion2' + * MATLAB Function: '/stdatmo' + * Product: '/divide' + * UnitConversion: '/Unit Conversion' */ rtb_TmpHiddenBufferAtBusAssignmentInport1_m = rtb_DataStoreRead; rtb_TmpHiddenBufferAtBusAssignmentInport1_m.rho = (real32_T)rtb_Divide6; @@ -14796,213 +14581,213 @@ void cr929_SIL_step(void) rtb_TmpHiddenBufferAtBusAssignmentInport1_m.temp = -273.15F + (real32_T) rtb_LugV1_e_idx_0; rtb_TmpHiddenBufferAtBusAssignmentInport1_m.Mach = 1.0F / - rtb_DataTypeConversion_a * rtb_uDLookupTable11; - rtb_TmpHiddenBufferAtBusAssignmentInport1_m.TAS = rtb_uDLookupTable11; + rtb_DataTypeConversion_a * rtb_uDLookupTable1_g; + rtb_TmpHiddenBufferAtBusAssignmentInport1_m.TAS = rtb_uDLookupTable1_g; - /* Chart: '/Chart' incorporates: - * Constant: '/Constant3' + /* Chart: '/Chart' incorporates: + * Constant: '/Constant3' */ - if (cr929_SIL_DW.temporalCounter_i1_ge < 511U) { - cr929_SIL_DW.temporalCounter_i1_ge++; + if (cr929_SIL_DW.temporalCounter_i1_e < 511U) { + cr929_SIL_DW.temporalCounter_i1_e++; } if (cr929_SIL_DW.is_active_c48_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c48_cr929_autopilot = 1U; cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_de = cr929_SIL_B.good_n; + cr929_SIL_DW.last_seq_ma = cr929_SIL_B.good_n; i = 0; } else if (cr929_SIL_DW.is_c48_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_de != cr929_SIL_B.good_n) { + if (cr929_SIL_DW.last_seq_ma != cr929_SIL_B.good_n) { cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_ge = 0U; + cr929_SIL_DW.temporalCounter_i1_e = 0U; i = 1; - cr929_SIL_DW.last_seq_de = cr929_SIL_B.good_n; + cr929_SIL_DW.last_seq_ma = cr929_SIL_B.good_n; } else { i = 0; } - } else if (cr929_SIL_DW.last_seq_de != cr929_SIL_B.good_n) { + } else if (cr929_SIL_DW.last_seq_ma != cr929_SIL_B.good_n) { cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_ge = 0U; + cr929_SIL_DW.temporalCounter_i1_e = 0U; i = 1; - cr929_SIL_DW.last_seq_de = cr929_SIL_B.good_n; - } else if (cr929_SIL_DW.temporalCounter_i1_ge >= 327U) { + cr929_SIL_DW.last_seq_ma = cr929_SIL_B.good_n; + } else if (cr929_SIL_DW.temporalCounter_i1_e >= 327U) { cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_de = cr929_SIL_B.good_n; + cr929_SIL_DW.last_seq_ma = cr929_SIL_B.good_n; i = 0; } else { i = 1; } - /* End of Chart: '/Chart' */ + /* End of Chart: '/Chart' */ - /* Chart: '/Chart' */ - if (cr929_SIL_DW.temporalCounter_i1_n0 < 511U) { - cr929_SIL_DW.temporalCounter_i1_n0++; + /* Chart: '/Chart' */ + if (cr929_SIL_DW.temporalCounter_i1_lx < 511U) { + cr929_SIL_DW.temporalCounter_i1_lx++; } if (cr929_SIL_DW.is_active_c59_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c59_cr929_autopilot = 1U; cr929_SIL_DW.is_c59_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_k = cr929_SIL_B.good_h; + cr929_SIL_DW.last_seq_j = cr929_SIL_B.good_h; } else if (cr929_SIL_DW.is_c59_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_k != cr929_SIL_B.good_h) { + if (cr929_SIL_DW.last_seq_j != cr929_SIL_B.good_h) { cr929_SIL_DW.is_c59_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_n0 = 0U; + cr929_SIL_DW.temporalCounter_i1_lx = 0U; i |= 2U; - cr929_SIL_DW.last_seq_k = cr929_SIL_B.good_h; + cr929_SIL_DW.last_seq_j = cr929_SIL_B.good_h; } - } else if (cr929_SIL_DW.last_seq_k != cr929_SIL_B.good_h) { + } else if (cr929_SIL_DW.last_seq_j != cr929_SIL_B.good_h) { cr929_SIL_DW.is_c59_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_n0 = 0U; + cr929_SIL_DW.temporalCounter_i1_lx = 0U; i |= 2U; - cr929_SIL_DW.last_seq_k = cr929_SIL_B.good_h; - } else if (cr929_SIL_DW.temporalCounter_i1_n0 >= 327U) { + cr929_SIL_DW.last_seq_j = cr929_SIL_B.good_h; + } else if (cr929_SIL_DW.temporalCounter_i1_lx >= 327U) { cr929_SIL_DW.is_c59_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_k = cr929_SIL_B.good_h; + cr929_SIL_DW.last_seq_j = cr929_SIL_B.good_h; } else { i |= 2U; } - /* End of Chart: '/Chart' */ + /* End of Chart: '/Chart' */ - /* Chart: '/Chart' */ - if (cr929_SIL_DW.temporalCounter_i1_bp < 511U) { - cr929_SIL_DW.temporalCounter_i1_bp++; + /* Chart: '/Chart' */ + if (cr929_SIL_DW.temporalCounter_i1_aq < 511U) { + cr929_SIL_DW.temporalCounter_i1_aq++; } if (cr929_SIL_DW.is_active_c64_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c64_cr929_autopilot = 1U; cr929_SIL_DW.is_c64_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_o = cr929_SIL_B.UnitDelay_m; + cr929_SIL_DW.last_seq_e = cr929_SIL_B.UnitDelay_m; } else if (cr929_SIL_DW.is_c64_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_o != cr929_SIL_B.UnitDelay_m) { + if (cr929_SIL_DW.last_seq_e != cr929_SIL_B.UnitDelay_m) { cr929_SIL_DW.is_c64_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_bp = 0U; + cr929_SIL_DW.temporalCounter_i1_aq = 0U; i |= 4U; - cr929_SIL_DW.last_seq_o = cr929_SIL_B.UnitDelay_m; + cr929_SIL_DW.last_seq_e = cr929_SIL_B.UnitDelay_m; } - } else if (cr929_SIL_DW.last_seq_o != cr929_SIL_B.UnitDelay_m) { + } else if (cr929_SIL_DW.last_seq_e != cr929_SIL_B.UnitDelay_m) { cr929_SIL_DW.is_c64_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_bp = 0U; + cr929_SIL_DW.temporalCounter_i1_aq = 0U; i |= 4U; - cr929_SIL_DW.last_seq_o = cr929_SIL_B.UnitDelay_m; - } else if (cr929_SIL_DW.temporalCounter_i1_bp >= 327U) { + cr929_SIL_DW.last_seq_e = cr929_SIL_B.UnitDelay_m; + } else if (cr929_SIL_DW.temporalCounter_i1_aq >= 327U) { cr929_SIL_DW.is_c64_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_o = cr929_SIL_B.UnitDelay_m; + cr929_SIL_DW.last_seq_e = cr929_SIL_B.UnitDelay_m; } else { i |= 4U; } - /* End of Chart: '/Chart' */ + /* End of Chart: '/Chart' */ - /* Chart: '/Chart' incorporates: + /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (cr929_SIL_DW.temporalCounter_i1_ld < 511U) { - cr929_SIL_DW.temporalCounter_i1_ld++; + if (cr929_SIL_DW.temporalCounter_i1_cc < 511U) { + cr929_SIL_DW.temporalCounter_i1_cc++; } if (cr929_SIL_DW.is_active_c65_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c65_cr929_autopilot = 1U; cr929_SIL_DW.is_c65_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_h = cr929_SIL_DW.UnitDelay_DSTATE_c; + cr929_SIL_DW.last_seq_i = cr929_SIL_DW.UnitDelay_DSTATE_c3; } else if (cr929_SIL_DW.is_c65_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_h != cr929_SIL_DW.UnitDelay_DSTATE_c) { + if (cr929_SIL_DW.last_seq_i != cr929_SIL_DW.UnitDelay_DSTATE_c3) { cr929_SIL_DW.is_c65_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_ld = 0U; + cr929_SIL_DW.temporalCounter_i1_cc = 0U; i |= 8U; - cr929_SIL_DW.last_seq_h = cr929_SIL_DW.UnitDelay_DSTATE_c; + cr929_SIL_DW.last_seq_i = cr929_SIL_DW.UnitDelay_DSTATE_c3; } - } else if (cr929_SIL_DW.last_seq_h != cr929_SIL_DW.UnitDelay_DSTATE_c) { + } else if (cr929_SIL_DW.last_seq_i != cr929_SIL_DW.UnitDelay_DSTATE_c3) { cr929_SIL_DW.is_c65_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_ld = 0U; + cr929_SIL_DW.temporalCounter_i1_cc = 0U; i |= 8U; - cr929_SIL_DW.last_seq_h = cr929_SIL_DW.UnitDelay_DSTATE_c; - } else if (cr929_SIL_DW.temporalCounter_i1_ld >= 327U) { + cr929_SIL_DW.last_seq_i = cr929_SIL_DW.UnitDelay_DSTATE_c3; + } else if (cr929_SIL_DW.temporalCounter_i1_cc >= 327U) { cr929_SIL_DW.is_c65_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_h = cr929_SIL_DW.UnitDelay_DSTATE_c; + cr929_SIL_DW.last_seq_i = cr929_SIL_DW.UnitDelay_DSTATE_c3; } else { i |= 8U; } - /* End of Chart: '/Chart' */ + /* End of Chart: '/Chart' */ - /* Chart: '/Chart' incorporates: - * Chart: '/Chart' + /* Chart: '/Chart' incorporates: + * Chart: '/Chart' */ - if (cr929_SIL_DW.temporalCounter_i1_bz < 511U) { - cr929_SIL_DW.temporalCounter_i1_bz++; + if (cr929_SIL_DW.temporalCounter_i1_on < 511U) { + cr929_SIL_DW.temporalCounter_i1_on++; } if (cr929_SIL_DW.is_active_c74_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c74_cr929_autopilot = 1U; cr929_SIL_DW.is_c74_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_j = cr929_SIL_B.good_f; + cr929_SIL_DW.last_seq_d = cr929_SIL_B.good_f; } else if (cr929_SIL_DW.is_c74_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_j != cr929_SIL_B.good_f) { + if (cr929_SIL_DW.last_seq_d != cr929_SIL_B.good_f) { cr929_SIL_DW.is_c74_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_bz = 0U; + cr929_SIL_DW.temporalCounter_i1_on = 0U; i |= 32U; - cr929_SIL_DW.last_seq_j = cr929_SIL_B.good_f; + cr929_SIL_DW.last_seq_d = cr929_SIL_B.good_f; } - } else if (cr929_SIL_DW.last_seq_j != cr929_SIL_B.good_f) { + } else if (cr929_SIL_DW.last_seq_d != cr929_SIL_B.good_f) { cr929_SIL_DW.is_c74_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_bz = 0U; + cr929_SIL_DW.temporalCounter_i1_on = 0U; i |= 32U; - cr929_SIL_DW.last_seq_j = cr929_SIL_B.good_f; - } else if (cr929_SIL_DW.temporalCounter_i1_bz >= 327U) { + cr929_SIL_DW.last_seq_d = cr929_SIL_B.good_f; + } else if (cr929_SIL_DW.temporalCounter_i1_on >= 327U) { cr929_SIL_DW.is_c74_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_j = cr929_SIL_B.good_f; + cr929_SIL_DW.last_seq_d = cr929_SIL_B.good_f; } else { i |= 32U; } - /* End of Chart: '/Chart' */ + /* End of Chart: '/Chart' */ - /* Chart: '/Chart' incorporates: + /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (cr929_SIL_DW.temporalCounter_i1_j < 511U) { - cr929_SIL_DW.temporalCounter_i1_j++; + if (cr929_SIL_DW.temporalCounter_i1_c < 511U) { + cr929_SIL_DW.temporalCounter_i1_c++; } if (cr929_SIL_DW.is_active_c75_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c75_cr929_autopilot = 1U; cr929_SIL_DW.is_c75_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_b = cr929_SIL_DW.UnitDelay_DSTATE_dq; + cr929_SIL_DW.last_seq_l = cr929_SIL_DW.UnitDelay_DSTATE_dq; } else if (cr929_SIL_DW.is_c75_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_b != cr929_SIL_DW.UnitDelay_DSTATE_dq) { + if (cr929_SIL_DW.last_seq_l != cr929_SIL_DW.UnitDelay_DSTATE_dq) { cr929_SIL_DW.is_c75_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_j = 0U; + cr929_SIL_DW.temporalCounter_i1_c = 0U; i |= 64U; - cr929_SIL_DW.last_seq_b = cr929_SIL_DW.UnitDelay_DSTATE_dq; + cr929_SIL_DW.last_seq_l = cr929_SIL_DW.UnitDelay_DSTATE_dq; } - } else if (cr929_SIL_DW.last_seq_b != cr929_SIL_DW.UnitDelay_DSTATE_dq) { + } else if (cr929_SIL_DW.last_seq_l != cr929_SIL_DW.UnitDelay_DSTATE_dq) { cr929_SIL_DW.is_c75_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_j = 0U; + cr929_SIL_DW.temporalCounter_i1_c = 0U; i |= 64U; - cr929_SIL_DW.last_seq_b = cr929_SIL_DW.UnitDelay_DSTATE_dq; - } else if (cr929_SIL_DW.temporalCounter_i1_j >= 327U) { + cr929_SIL_DW.last_seq_l = cr929_SIL_DW.UnitDelay_DSTATE_dq; + } else if (cr929_SIL_DW.temporalCounter_i1_c >= 327U) { cr929_SIL_DW.is_c75_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_b = cr929_SIL_DW.UnitDelay_DSTATE_dq; + cr929_SIL_DW.last_seq_l = cr929_SIL_DW.UnitDelay_DSTATE_dq; } else { i |= 64U; } - /* End of Chart: '/Chart' */ + /* End of Chart: '/Chart' */ - /* Chart: '/Chart' incorporates: + /* Chart: '/Chart' incorporates: * DataStoreRead: '/Data Store Read' */ if (cr929_SIL_DW.CC.enable_rec) { i |= 128U; } - /* End of Chart: '/Chart' */ + /* End of Chart: '/Chart' */ - /* Chart: '/Chart' */ - if (cr929_SIL_DW.temporalCounter_i1_iz < 511U) { - cr929_SIL_DW.temporalCounter_i1_iz++; + /* Chart: '/Chart' */ + if (cr929_SIL_DW.temporalCounter_i1_k < 511U) { + cr929_SIL_DW.temporalCounter_i1_k++; } if (cr929_SIL_DW.is_active_c77_cr929_autopilot == 0U) { @@ -15012,132 +14797,114 @@ void cr929_SIL_step(void) } else if (cr929_SIL_DW.is_c77_cr929_autopilot == cr929_SIL_IN_bad) { if (cr929_SIL_DW.last_seq != cr929_SIL_B.good) { cr929_SIL_DW.is_c77_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_iz = 0U; + cr929_SIL_DW.temporalCounter_i1_k = 0U; i |= 256U; cr929_SIL_DW.last_seq = cr929_SIL_B.good; } } else if (cr929_SIL_DW.last_seq != cr929_SIL_B.good) { cr929_SIL_DW.is_c77_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_iz = 0U; + cr929_SIL_DW.temporalCounter_i1_k = 0U; i |= 256U; cr929_SIL_DW.last_seq = cr929_SIL_B.good; - } else if (cr929_SIL_DW.temporalCounter_i1_iz >= 327U) { + } else if (cr929_SIL_DW.temporalCounter_i1_k >= 327U) { cr929_SIL_DW.is_c77_cr929_autopilot = cr929_SIL_IN_bad; cr929_SIL_DW.last_seq = cr929_SIL_B.good; } else { i |= 256U; } - /* End of Chart: '/Chart' */ + /* End of Chart: '/Chart' */ - /* Chart: '/Chart' incorporates: + /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (cr929_SIL_DW.temporalCounter_i1_gk < 511U) { - cr929_SIL_DW.temporalCounter_i1_gk++; + if (cr929_SIL_DW.temporalCounter_i1_hq < 511U) { + cr929_SIL_DW.temporalCounter_i1_hq++; } if (cr929_SIL_DW.is_active_c49_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c49_cr929_autopilot = 1U; cr929_SIL_DW.is_c49_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_i = cr929_SIL_DW.UnitDelay_DSTATE_p; + cr929_SIL_DW.last_seq_f = cr929_SIL_DW.UnitDelay_DSTATE_p; } else if (cr929_SIL_DW.is_c49_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_i != cr929_SIL_DW.UnitDelay_DSTATE_p) { + if (cr929_SIL_DW.last_seq_f != cr929_SIL_DW.UnitDelay_DSTATE_p) { cr929_SIL_DW.is_c49_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_gk = 0U; + cr929_SIL_DW.temporalCounter_i1_hq = 0U; i |= 512U; - cr929_SIL_DW.last_seq_i = cr929_SIL_DW.UnitDelay_DSTATE_p; + cr929_SIL_DW.last_seq_f = cr929_SIL_DW.UnitDelay_DSTATE_p; } - } else if (cr929_SIL_DW.last_seq_i != cr929_SIL_DW.UnitDelay_DSTATE_p) { + } else if (cr929_SIL_DW.last_seq_f != cr929_SIL_DW.UnitDelay_DSTATE_p) { cr929_SIL_DW.is_c49_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_gk = 0U; + cr929_SIL_DW.temporalCounter_i1_hq = 0U; i |= 512U; - cr929_SIL_DW.last_seq_i = cr929_SIL_DW.UnitDelay_DSTATE_p; - } else if (cr929_SIL_DW.temporalCounter_i1_gk >= 327U) { + cr929_SIL_DW.last_seq_f = cr929_SIL_DW.UnitDelay_DSTATE_p; + } else if (cr929_SIL_DW.temporalCounter_i1_hq >= 327U) { cr929_SIL_DW.is_c49_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_i = cr929_SIL_DW.UnitDelay_DSTATE_p; + cr929_SIL_DW.last_seq_f = cr929_SIL_DW.UnitDelay_DSTATE_p; } else { i |= 512U; } - /* End of Chart: '/Chart' */ + /* End of Chart: '/Chart' */ - /* Chart: '/Chart' */ - if (cr929_SIL_DW.temporalCounter_i1_mt < 511U) { - cr929_SIL_DW.temporalCounter_i1_mt++; + /* Chart: '/Chart' */ + if (cr929_SIL_DW.temporalCounter_i1_cr < 511U) { + cr929_SIL_DW.temporalCounter_i1_cr++; } if (cr929_SIL_DW.is_active_c50_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c50_cr929_autopilot = 1U; cr929_SIL_DW.is_c50_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_e = cr929_SIL_B.good_e; + cr929_SIL_DW.last_seq_iq = cr929_SIL_B.good_e; } else if (cr929_SIL_DW.is_c50_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_e != cr929_SIL_B.good_e) { + if (cr929_SIL_DW.last_seq_iq != cr929_SIL_B.good_e) { cr929_SIL_DW.is_c50_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_mt = 0U; + cr929_SIL_DW.temporalCounter_i1_cr = 0U; i |= 1024U; - cr929_SIL_DW.last_seq_e = cr929_SIL_B.good_e; + cr929_SIL_DW.last_seq_iq = cr929_SIL_B.good_e; } - } else if (cr929_SIL_DW.last_seq_e != cr929_SIL_B.good_e) { + } else if (cr929_SIL_DW.last_seq_iq != cr929_SIL_B.good_e) { cr929_SIL_DW.is_c50_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_mt = 0U; + cr929_SIL_DW.temporalCounter_i1_cr = 0U; i |= 1024U; - cr929_SIL_DW.last_seq_e = cr929_SIL_B.good_e; - } else if (cr929_SIL_DW.temporalCounter_i1_mt >= 327U) { + cr929_SIL_DW.last_seq_iq = cr929_SIL_B.good_e; + } else if (cr929_SIL_DW.temporalCounter_i1_cr >= 327U) { cr929_SIL_DW.is_c50_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_e = cr929_SIL_B.good_e; + cr929_SIL_DW.last_seq_iq = cr929_SIL_B.good_e; } else { i |= 1024U; } - /* End of Chart: '/Chart' */ - - /* Chart: '/Chart' incorporates: - * UnitDelay: '/Unit Delay' - */ - if (cr929_SIL_DW.temporalCounter_i1_o < 511U) { - cr929_SIL_DW.temporalCounter_i1_o++; - } - - if (cr929_SIL_DW.is_active_c51_cr929_autopilot == 0U) { - cr929_SIL_DW.is_active_c51_cr929_autopilot = 1U; - cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_d = cr929_SIL_DW.UnitDelay_DSTATE_cc; - } else if (cr929_SIL_DW.is_c51_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_d != cr929_SIL_DW.UnitDelay_DSTATE_cc) { - cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_o = 0U; - i |= 2048U; - cr929_SIL_DW.last_seq_d = cr929_SIL_DW.UnitDelay_DSTATE_cc; - } - } else if (cr929_SIL_DW.last_seq_d != cr929_SIL_DW.UnitDelay_DSTATE_cc) { - cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_o = 0U; - i |= 2048U; - cr929_SIL_DW.last_seq_d = cr929_SIL_DW.UnitDelay_DSTATE_cc; - } else if (cr929_SIL_DW.temporalCounter_i1_o >= 327U) { - cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_d = cr929_SIL_DW.UnitDelay_DSTATE_cc; - } else { - i |= 2048U; - } - - /* End of Chart: '/Chart' */ - - /* Chart: '/Chart' incorporates: - * DataStoreRead: '/Data Store Read' - */ - if (cr929_SIL_DW.CC.rc.connected) { - i |= 4096U; - } - /* End of Chart: '/Chart' */ /* Chart: '/Chart' incorporates: - * DataStoreRead: '/Data Store Read' + * UnitDelay: '/Unit Delay' */ - if (cr929_SIL_DW.CC.linked) { - i |= 8192U; + if (cr929_SIL_DW.temporalCounter_i1_hz < 511U) { + cr929_SIL_DW.temporalCounter_i1_hz++; + } + + if (cr929_SIL_DW.is_active_c51_cr929_autopilot == 0U) { + cr929_SIL_DW.is_active_c51_cr929_autopilot = 1U; + cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_bad; + cr929_SIL_DW.last_seq_m = cr929_SIL_DW.UnitDelay_DSTATE_cc; + } else if (cr929_SIL_DW.is_c51_cr929_autopilot == cr929_SIL_IN_bad) { + if (cr929_SIL_DW.last_seq_m != cr929_SIL_DW.UnitDelay_DSTATE_cc) { + cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_good; + cr929_SIL_DW.temporalCounter_i1_hz = 0U; + i |= 2048U; + cr929_SIL_DW.last_seq_m = cr929_SIL_DW.UnitDelay_DSTATE_cc; + } + } else if (cr929_SIL_DW.last_seq_m != cr929_SIL_DW.UnitDelay_DSTATE_cc) { + cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_good; + cr929_SIL_DW.temporalCounter_i1_hz = 0U; + i |= 2048U; + cr929_SIL_DW.last_seq_m = cr929_SIL_DW.UnitDelay_DSTATE_cc; + } else if (cr929_SIL_DW.temporalCounter_i1_hz >= 327U) { + cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_bad; + cr929_SIL_DW.last_seq_m = cr929_SIL_DW.UnitDelay_DSTATE_cc; + } else { + i |= 2048U; } /* End of Chart: '/Chart' */ @@ -15145,8 +14912,8 @@ void cr929_SIL_step(void) /* Chart: '/Chart' incorporates: * DataStoreRead: '/Data Store Read' */ - if (cr929_SIL_DW.CC.parachute_c) { - i |= 16384U; + if (cr929_SIL_DW.CC.rc.connected) { + i |= 4096U; } /* End of Chart: '/Chart' */ @@ -15154,87 +14921,105 @@ void cr929_SIL_step(void) /* Chart: '/Chart' incorporates: * DataStoreRead: '/Data Store Read' */ - if (cr929_SIL_DW.CC.brake_c) { - i |= 32768U; + if (cr929_SIL_DW.CC.linked) { + i |= 8192U; } /* End of Chart: '/Chart' */ /* Chart: '/Chart' incorporates: - * Constant: '/Constant' - * RelationalOperator: '/Compare' + * DataStoreRead: '/Data Store Read' */ - if (cr929_SIL_B.gear_state == 109) { - rtb_out_gz = i | 65536U; - } else { - rtb_out_gz = (uint32_T)i; + if (cr929_SIL_DW.CC.parachute_c) { + i |= 16384U; } /* End of Chart: '/Chart' */ /* Chart: '/Chart' incorporates: - * Constant: '/Constant' - * RelationalOperator: '/Compare' + * DataStoreRead: '/Data Store Read' */ - if (cr929_SIL_B.gear_state == 146) { - rtb_out_gz |= 131072U; + if (cr929_SIL_DW.CC.brake_c) { + i |= 32768U; } /* End of Chart: '/Chart' */ /* Chart: '/Chart' incorporates: - * Constant: '/Constant' - * RelationalOperator: '/Compare' + * Constant: '/Constant' + * RelationalOperator: '/Compare' */ - if (cr929_SIL_B.rps > 1) { - rtb_out_gz |= 262144U; + if (cr929_SIL_B.gear_state == 109) { + rtb_out_et = i | 65536U; + } else { + rtb_out_et = (uint32_T)i; } /* End of Chart: '/Chart' */ - /* Chart: '/Chart' incorporates: - * S-Function (sfix_bitop): '/Bitwise AND' + /* Chart: '/Chart' incorporates: + * Constant: '/Constant' + * RelationalOperator: '/Compare' */ - if ((cr929_SIL_B.SumofElements_d & 1U) != 0U) { - rtb_out_gz |= 524288U; + if (cr929_SIL_B.gear_state == 146) { + rtb_out_et |= 131072U; + } + + /* End of Chart: '/Chart' */ + + /* Chart: '/Chart' incorporates: + * Constant: '/Constant' + * RelationalOperator: '/Compare' + */ + if (cr929_SIL_B.rps > 1) { + rtb_out_et |= 262144U; } /* End of Chart: '/Chart' */ - /* Chart: '/Chart' incorporates: - * S-Function (sfix_bitop): '/Bitwise AND' + /* Chart: '/Chart' incorporates: + * S-Function (sfix_bitop): '/Bitwise AND' */ - if ((cr929_SIL_B.SumofElements_d & 2U) != 0U) { - rtb_out_gz |= 1048576U; + if ((cr929_SIL_B.SumofElements_d & 1U) != 0U) { + rtb_out_et |= 524288U; } - /* End of Chart: '/Chart' */ + /* End of Chart: '/Chart' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant1' + /* Chart: '/Chart' incorporates: + * S-Function (sfix_bitop): '/Bitwise AND' + */ + if ((cr929_SIL_B.SumofElements_d & 2U) != 0U) { + rtb_out_et |= 1048576U; + } + + /* End of Chart: '/Chart' */ + + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read' - * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' */ rtb_TmpHiddenBufferAtBusAssignmentInport1_m.sensors_present = cr929_SIL_DW.CC.flap_lever; rtb_TmpHiddenBufferAtBusAssignmentInport1_m.sensors_enabled = 67108863U; - /* Chart: '/Chart' incorporates: - * S-Function (sfix_bitop): '/Bitwise AND' + /* Chart: '/Chart' incorporates: + * S-Function (sfix_bitop): '/Bitwise AND' */ if ((cr929_SIL_B.SumofElements_d & 4U) != 0U) { - rtb_out_gz |= 2097152U; + rtb_out_et |= 2097152U; } - /* End of Chart: '/Chart' */ + /* End of Chart: '/Chart' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Chart: '/Chart' + /* BusAssignment: '/Bus Assignment' incorporates: + * Chart: '/Chart' */ rtb_TmpHiddenBufferAtBusAssignmentInport1_m.sensors_health = (uint32_T) - (cr929_SIL_B.stats & 19) << 22 | rtb_out_gz; + (cr929_SIL_B.stats & 19) << 22 | rtb_out_et; - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ cr929_SIL_B.BusAssignment_h = rtb_TmpHiddenBufferAtBusAssignmentInport1_m; cr929_SIL_B.BusAssignment_h.bear_state = cr929_SIL_B.SumofElements_d; @@ -15328,21 +15113,15 @@ void cr929_SIL_step(void) /* End of Chart: '/valid_checking' */ /* If: '/If' incorporates: + * DataStoreRead: '/Data Store Read' + * Inport: '/In1' * UnitDelay: '/Unit Delay' */ if (cr929_SIL_DW.UnitDelay_DSTATE_gc <= 1U) { /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' - * DataStoreRead: '/Data Store Read' - * SignalConversion: '/TmpHiddenBufferAtBus AssignmentInport1' - */ - rtb_BusAssignment = cr929_SIL_DW.CC; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' * Constant: '/Constant BP' * Constant: '/Constant BP1' * Constant: '/Constant BP2' @@ -15353,31 +15132,31 @@ void cr929_SIL_step(void) * Constant: '/Constant BP7' * Constant: '/Constant BP8' * Constant: '/Constant BP9' + * DataStoreRead: '/Data Store Read' + * SignalConversion: '/TmpHiddenBufferAtBus AssignmentInport1' */ - rtb_BusAssignment.rc.pitch_cmd = 0.0F; - rtb_BusAssignment.rc.roll_cmd = 0.0F; - rtb_BusAssignment.rc.yaw_cmd = 0.0F; - rtb_BusAssignment.rc.throttle_cmd = 0.0F; + rtb_Merge_g = cr929_SIL_DW.CC; + rtb_Merge_g.rc.pitch_cmd = 0.0F; + rtb_Merge_g.rc.roll_cmd = 0.0F; + rtb_Merge_g.rc.yaw_cmd = 0.0F; + rtb_Merge_g.rc.throttle_cmd = 0.0F; for (i = 0; i < 18; i++) { - rtb_BusAssignment.rc.chan_raw[i] = rtCP_ConstantBP9_Value[i]; + rtb_Merge_g.rc.chan_raw[i] = rtCP_ConstantBP9_Value[i]; } - rtb_BusAssignment.rc.auto_mode = 0U; - rtb_BusAssignment.rc.aux_mode = 0U; - rtb_BusAssignment.rc.brake = false; - rtb_BusAssignment.rc.gear_up = false; - rtb_BusAssignment.rc.connected = false; + rtb_Merge_g.rc.auto_mode = 0U; + rtb_Merge_g.rc.aux_mode = 0U; + rtb_Merge_g.rc.brake = false; + rtb_Merge_g.rc.gear_up = false; + rtb_Merge_g.rc.connected = false; + /* End of BusAssignment: '/Bus Assignment' */ /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * DataStoreRead: '/Data Store Read' - * Inport: '/In1' - */ - rtb_BusAssignment = cr929_SIL_DW.CC; + rtb_Merge_g = cr929_SIL_DW.CC; /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } @@ -15387,35 +15166,27 @@ void cr929_SIL_step(void) /* Chart: '/Chart' incorporates: * DataStoreRead: '/Data Store Read' */ - if (cr929_SIL_DW.temporalCounter_i1_ny < 127U) { - cr929_SIL_DW.temporalCounter_i1_ny++; + if (cr929_SIL_DW.temporalCounter_i1_kw < 127U) { + cr929_SIL_DW.temporalCounter_i1_kw++; } if (cr929_SIL_DW.is_active_c3_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c3_cr929_autopilot = 1U; cr929_SIL_DW.is_c3_cr929_autopilot = cr929_SIL_IN_UnReset; - - /* BusAssignment: '/Bus Assignment' */ - rtb_BusAssignment.comac_ResetControlLaw = false; + rtb_ResetControlLaw_out = false; } else if (cr929_SIL_DW.is_c3_cr929_autopilot == cr929_SIL_IN_Reset) { - if (cr929_SIL_DW.temporalCounter_i1_ny >= 98U) { + if (cr929_SIL_DW.temporalCounter_i1_kw >= 98U) { cr929_SIL_DW.is_c3_cr929_autopilot = cr929_SIL_IN_UnReset; - - /* BusAssignment: '/Bus Assignment' */ - rtb_BusAssignment.comac_ResetControlLaw = false; + rtb_ResetControlLaw_out = false; } else { - /* BusAssignment: '/Bus Assignment' */ - rtb_BusAssignment.comac_ResetControlLaw = true; + rtb_ResetControlLaw_out = true; } } else if (cr929_SIL_DW.CC.comac_ResetControlLaw) { cr929_SIL_DW.is_c3_cr929_autopilot = cr929_SIL_IN_Reset; - cr929_SIL_DW.temporalCounter_i1_ny = 0U; - - /* BusAssignment: '/Bus Assignment' */ - rtb_BusAssignment.comac_ResetControlLaw = true; + cr929_SIL_DW.temporalCounter_i1_kw = 0U; + rtb_ResetControlLaw_out = true; } else { - /* BusAssignment: '/Bus Assignment' */ - rtb_BusAssignment.comac_ResetControlLaw = false; + rtb_ResetControlLaw_out = false; } /* End of Chart: '/Chart' */ @@ -15432,6 +15203,7 @@ void cr929_SIL_step(void) * Constant: '/Constant3' * UnitDelay: '/Unit Delay' */ + rtb_BusAssignment = rtb_Merge_g; rtb_BusAssignment.linked = false; rtb_BusAssignment.boot_time = cr929_SIL_DW.UnitDelay_DSTATE_gc; rtb_BusAssignment.rc.connected = false; @@ -15445,6 +15217,7 @@ void cr929_SIL_step(void) rtb_BusAssignment.dh_stimulus = 0.0F; rtb_BusAssignment.use_da2dsp = true; rtb_BusAssignment.brake_c = false; + rtb_BusAssignment.comac_ResetControlLaw = rtb_ResetControlLaw_out; /* If: '/If1' incorporates: * Inport: '/sbus_in' @@ -15503,175 +15276,175 @@ void cr929_SIL_step(void) /* UnitDelay: '/Unit Delay' */ cr929_SIL_B.UnitDelay = cr929_SIL_Y.traj; - /* Saturate: '/Saturation2' */ + /* Saturate: '/Saturation2' */ if (cr929_SIL_B.BusAssignment_h.qbar <= 382.8125F) { - rtb_phi_c_c = 382.8125F; + rtb_phi_c_h = 382.8125F; } else { - rtb_phi_c_c = cr929_SIL_B.BusAssignment_h.qbar; + rtb_phi_c_h = cr929_SIL_B.BusAssignment_h.qbar; } - /* End of Saturate: '/Saturation2' */ + /* End of Saturate: '/Saturation2' */ - /* Saturate: '/Saturation3' */ + /* Saturate: '/Saturation3' */ if (cr929_SIL_B.BusAssignment_h.TAS <= 25.0F) { dy = 25.0F; } else { dy = cr929_SIL_B.BusAssignment_h.TAS; } - /* End of Saturate: '/Saturation3' */ + /* End of Saturate: '/Saturation3' */ - /* Product: '/qbarSc' incorporates: - * Constant: '/Constant Single' - * Constant: '/Constant Single1' - * Constant: '/Constant Single2' + /* Product: '/qbarSc' incorporates: + * Constant: '/Constant Single' + * Constant: '/Constant Single1' + * Constant: '/Constant Single2' */ - rtb_qbarSc = rtb_phi_c_c * cr929_SIL_P.RefArea * cr929_SIL_P.CLa / + rtb_qbarSc = rtb_phi_c_h * cr929_SIL_P.RefArea * cr929_SIL_P.CLa / cr929_SIL_P.m / dy; /* Outputs for Atomic SubSystem: '/Calc_FW_Effic' */ - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (cr929_SIL_B.BusAssignment_h.TAS <= 0.01F) { rtb_uDLookupTable_l = 0.01F; } else { rtb_uDLookupTable_l = cr929_SIL_B.BusAssignment_h.TAS; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Lookup_n-D: '/1-D Lookup Table1' */ + /* Lookup_n-D: '/1-D Lookup Table1' */ rtb_uDLookupTable1 = look1_iflf_pbinlcapw(rtb_uDLookupTable_l, rtCP_uDLookupTable1_bp01Data, rtCP_uDLookupTable1_tableData, &cr929_SIL_DW.m_bpIndex_gy, 2U); - /* Product: '/Product2' incorporates: - * Constant: '/Constant8' + /* Product: '/Product2' incorporates: + * Constant: '/Constant8' */ rtb_Product2_g = rtb_uDLookupTable1 * cr929_SIL_P.max_da; - /* Lookup_n-D: '/1-D Lookup Table2' */ + /* Lookup_n-D: '/1-D Lookup Table2' */ rtb_uDLookupTable1 = look1_iflf_pbinlcapw(rtb_uDLookupTable_l, rtCP_uDLookupTable2_bp01Data, rtCP_uDLookupTable2_tableData, &cr929_SIL_DW.m_bpIndex_g2, 2U); - /* Gain: '/Gain1' incorporates: - * Constant: '/Constant2' - * Product: '/Product3' + /* Gain: '/Gain1' incorporates: + * Constant: '/Constant2' + * Product: '/Product3' */ - rtb_uDLookupTable11 = -(rtb_uDLookupTable1 * cr929_SIL_P.max_dr); + rtb_uDLookupTable1_g = -(rtb_uDLookupTable1 * cr929_SIL_P.max_dr); - /* Lookup_n-D: '/1-D Lookup Table4' */ + /* Lookup_n-D: '/1-D Lookup Table4' */ rtb_uDLookupTable_l = look1_iflf_pbinlcapw(rtb_uDLookupTable_l, rtCP_uDLookupTable4_bp01Data, rtCP_uDLookupTable4_tableData, &cr929_SIL_DW.m_bpIndex_la, 2U); - /* Product: '/Product' incorporates: - * Constant: '/Constant1' + /* Product: '/Product' incorporates: + * Constant: '/Constant1' */ rtb_Product_l = rtb_uDLookupTable_l * cr929_SIL_P.max_de; - /* Product: '/Product1' incorporates: - * Constant: '/Constant5' + /* Product: '/Product1' incorporates: + * Constant: '/Constant5' */ rtb_Product1_ie = rtb_uDLookupTable_l * cr929_SIL_P.min_de; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' * DataStoreRead: '/Data Store Read' */ rtb_LowerRelop1_gh = (cr929_SIL_DW.CC.landed_state == ENUM_LANDED_STATE_ON_GROUND); - /* Gain: '/Gain2' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* Gain: '/Gain2' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtb_Gain2_ew = cr929_SIL_P.STEER_POWER / cr929_SIL_P.Izz * (real32_T) rtb_LowerRelop1_gh; - /* Saturate: '/Saturation1' */ + /* Saturate: '/Saturation1' */ if (cr929_SIL_B.BusAssignment_h.qbar <= 0.1F) { rtb_uDLookupTable1 = 0.1F; } else { rtb_uDLookupTable1 = cr929_SIL_B.BusAssignment_h.qbar; } - /* End of Saturate: '/Saturation1' */ + /* End of Saturate: '/Saturation1' */ - /* Product: '/qbarSc1' incorporates: - * Constant: '/Constant6' - * Constant: '/Sc_Iyy1' - * Constant: '/Sc_Iyy2' - * Product: '/qbarSc2' + /* Product: '/qbarSc1' incorporates: + * Constant: '/Constant6' + * Constant: '/Sc_Iyy1' + * Constant: '/Sc_Iyy2' + * Product: '/qbarSc2' */ rtb_dr2rdot = rtb_uDLookupTable1 * cr929_SIL_P.RefSpan * cr929_SIL_P.RefArea; rtb_uDLookupTable2_c = rtb_dr2rdot / cr929_SIL_P.Ixx; - /* Switch: '/Switch' incorporates: - * Constant: '/Constant10' - * Constant: '/Constant9' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant10' + * Constant: '/Constant9' * DataStoreRead: '/Data Store Read' */ if (cr929_SIL_DW.CC.use_da2dsp) { - rtb_phi_c_c = cr929_SIL_P.Clda_mix; + rtb_phi_c_h = cr929_SIL_P.Clda_mix; } else { - rtb_phi_c_c = cr929_SIL_P.Clda; + rtb_phi_c_h = cr929_SIL_P.Clda; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Product: '/Product5' */ - rtb_Product5 = rtb_phi_c_c * rtb_uDLookupTable2_c; + /* Product: '/Product5' */ + rtb_Product5 = rtb_phi_c_h * rtb_uDLookupTable2_c; - /* Saturate: '/Saturation2' */ + /* Saturate: '/Saturation2' */ if (cr929_SIL_B.BusAssignment_h.TAS <= 22.0F) { rtb_uDLookupTable_l = 22.0F; } else { rtb_uDLookupTable_l = cr929_SIL_B.BusAssignment_h.TAS; } - /* End of Saturate: '/Saturation2' */ + /* End of Saturate: '/Saturation2' */ - /* Gain: '/p2pdot' incorporates: - * Product: '/Divide2' + /* Gain: '/p2pdot' incorporates: + * Product: '/Divide2' */ rtb_p2pdot = cr929_SIL_P.Clp * cr929_SIL_P.RefSpan / 2.0F * (rtb_uDLookupTable2_c / rtb_uDLookupTable_l); - /* Product: '/qbarSc' incorporates: - * Constant: '/Constant3' - * Constant: '/Constant4' - * Constant: '/Sc_Iyy' + /* Product: '/qbarSc' incorporates: + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Sc_Iyy' */ rtb_uDLookupTable2_c = rtb_uDLookupTable1 * cr929_SIL_P.RefArea * cr929_SIL_P.RefLen / cr929_SIL_P.Iyy; - /* Gain: '/q2qdot' incorporates: - * Product: '/Divide1' + /* Gain: '/q2qdot' incorporates: + * Product: '/Divide1' */ rtb_q2qdot = cr929_SIL_P.Cmq * cr929_SIL_P.RefLen / 2.0F * (rtb_uDLookupTable2_c / rtb_uDLookupTable_l); - /* Gain: '/de2qdot' */ + /* Gain: '/de2qdot' */ rtb_de2qdot = cr929_SIL_P.Cmde * rtb_uDLookupTable2_c; - /* Product: '/qbarSc2' incorporates: - * Constant: '/Constant7' + /* Product: '/qbarSc2' incorporates: + * Constant: '/Constant7' */ rtb_uDLookupTable1 = rtb_dr2rdot / cr929_SIL_P.Izz; - /* Gain: '/p2pdot1' incorporates: - * Product: '/Divide3' + /* Gain: '/p2pdot1' incorporates: + * Product: '/Divide3' */ rtb_uDLookupTable2_c = cr929_SIL_P.Cnr * cr929_SIL_P.RefSpan / 2.0F * (rtb_uDLookupTable1 / rtb_uDLookupTable_l); - /* Gain: '/dr2rdot' */ + /* Gain: '/dr2rdot' */ rtb_dr2rdot = cr929_SIL_P.Cndr * rtb_uDLookupTable1; - /* Product: '/Product4' incorporates: - * Constant: '/Constant' - * Lookup_n-D: '/1-D Lookup Table3' + /* Product: '/Product4' incorporates: + * Constant: '/Constant' + * Lookup_n-D: '/1-D Lookup Table3' */ rtb_uDLookupTable1 = look1_iflf_binlxpw(cr929_SIL_B.UnitDelay.v_g, rtCP_uDLookupTable3_bp01Data, rtCP_uDLookupTable3_tableData, 3U) * @@ -15684,19 +15457,19 @@ void cr929_SIL_step(void) cr929_SIL_DW.cmd2_isValid = false; if (cr929_SIL_DW.is_active_c12_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c12_cr929_autopilot = 1U; - cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_idle_f; + cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_idle_o; cr929_SIL_B.id = 0U; } else { switch (cr929_SIL_DW.is_c12_cr929_autopilot) { case cr929_SIL_IN_Linked: - cr929_SIL_B.ack_n = true; - cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_idle_f; + cr929_SIL_B.ack_e2 = true; + cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_idle_o; cr929_SIL_B.id = 0U; break; case cr929_SIL_IN_Linked2: - cr929_SIL_B.ack_n = false; - cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_idle_f; + cr929_SIL_B.ack_e2 = false; + cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_idle_o; cr929_SIL_B.id = 0U; break; @@ -15705,21 +15478,21 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_Linked; cr929_SIL_B.id = ((CommandMsg *)cr929_SIL_DW.cmd_msgDataPtr)->id; for (i = 0; i < 7; i++) { - cr929_SIL_B.params_kj[i] = ((CommandMsg *) + cr929_SIL_B.params_f[i] = ((CommandMsg *) cr929_SIL_DW.cmd_msgDataPtr)->params[i]; } - cr929_SIL_B.ack_n = true; + cr929_SIL_B.ack_e2 = true; } else { if (cr929_SIL_sf_msg_pop_cmd2()) { cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_Linked2; cr929_SIL_B.id = ((CommandMsg *)cr929_SIL_DW.cmd2_msgDataPtr)->id; for (i = 0; i < 7; i++) { - cr929_SIL_B.params_kj[i] = ((CommandMsg *) + cr929_SIL_B.params_f[i] = ((CommandMsg *) cr929_SIL_DW.cmd2_msgDataPtr)->params[i]; } - cr929_SIL_B.ack_n = false; + cr929_SIL_B.ack_e2 = false; } } break; @@ -15731,223 +15504,6 @@ void cr929_SIL_step(void) /* End of Chart: '/proc_cmd' */ - /* Chart: '/Chart_proc_mission_upload' */ - if (cr929_SIL_DW.temporalCounter_i1_f3 < 511U) { - cr929_SIL_DW.temporalCounter_i1_f3++; - } - - cr929_SIL_DW.mission_cnt_isValid = false; - cr929_SIL_DW.mission_item_isValid = false; - if (cr929_SIL_DW.is_active_c29_mavlink_utils == 0U) { - cr929_SIL_DW.is_active_c29_mavlink_utils = 1U; - cr929_SIL_DW.is_c29_mavlink_utils = cr929_SIL_IN_Idle_h; - cr929_SIL_B.enable_cnt = true; - cr929_SIL_B.enable_item = false; - } else { - guard1 = false; - guard2 = false; - guard3 = false; - guard4 = false; - if (cr929_SIL_DW.is_c29_mavlink_utils == cr929_SIL_IN_Idle_h) { - if (cr929_SIL_sf_msg_pop_mission_cnt()) { - cr929_SIL_B.mission_type = ((mavlink_mission_count_t *) - cr929_SIL_DW.mission_cnt_msgDataPtr)->mission_type; - cr929_SIL_DW.count = ((mavlink_mission_count_t *) - cr929_SIL_DW.mission_cnt_msgDataPtr)->count; - cr929_SIL_B.enable_cnt = false; - cr929_SIL_B.enable_item = true; - cr929_SIL_B.seq = 0U; - cr929_SIL_DW.retry = 3U; - - /* Outputs for Function Call SubSystem: '/dummy clear_mission' */ - cr929_SIL_dummyclear_mission(cr929_SIL_B.mission_type, - &cr929_SIL_B.ack_e); - - /* End of Outputs for SubSystem: '/dummy clear_mission' */ - if (cr929_SIL_DW.count > 0) { - cr929_SIL_DW.is_c29_mavlink_utils = cr929_SIL_IN_Uploading; - cr929_SIL_DW.temporalCounter_i1_f3 = 0U; - cr929_SIL_DW.mission_req_int_msgData.seq = cr929_SIL_B.seq; - cr929_SIL_DW.mission_req_int_msgData.mission_type = - cr929_SIL_B.mission_type; - cr929_SIL_sf_msg_send_mission_req_int(); - cr929_SIL_DW.retry--; - } else { - cr929_SIL_DW.mission_ack_msgData.mission_type = - cr929_SIL_B.mission_type; - cr929_SIL_DW.mission_ack_msgData.type = 0U; - cr929_SIL_sf_msg_send_mission_ack(); - guard3 = true; - } - } else { - if (cr929_SIL_sf_msg_pop_mission_item()) { - guard3 = true; - } - } - } else { - if (cr929_SIL_sf_msg_pop_mission_item()) { - rtb_Compare_i4 = ((((mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgDataPtr) - ->mission_type == cr929_SIL_B.mission_type) && - (((mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgDataPtr)->seq == - cr929_SIL_B.seq)); - } else { - rtb_Compare_i4 = false; - } - - if (rtb_Compare_i4) { - cr929_SIL_B.frame = ((mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgDataPtr)->frame; - cr929_SIL_B.command = ((mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgDataPtr)->command; - cr929_SIL_B.autocontinue = ((mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgDataPtr)->autocontinue; - cr929_SIL_B.param1 = ((mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgDataPtr)->param1; - cr929_SIL_B.param2 = ((mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgDataPtr)->param2; - cr929_SIL_B.param3 = ((mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgDataPtr)->param3; - cr929_SIL_B.param4 = ((mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgDataPtr)->param4; - cr929_SIL_B.x = ((mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgDataPtr)->x; - cr929_SIL_B.y = ((mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgDataPtr)->y; - cr929_SIL_B.z = ((mavlink_mission_item_int_t *) - cr929_SIL_DW.mission_item_msgDataPtr)->z; - - /* Outputs for Function Call SubSystem: '/dummy update_mission_item' */ - /* Chart: '/chat_update_mission_item' */ - switch (cr929_SIL_B.mission_type) { - case 1: - if (cr929_SIL_B.seq < cr929_SIL_fence_default_len) { - cr929_SIL_B.ack_g = 0U; - cr929_SIL_DW.f.command = cr929_SIL_B.command; - cr929_SIL_DW.f.param = cr929_SIL_B.param1; - cr929_SIL_DW.f.latlon[0] = cr929_SIL_B.x; - cr929_SIL_DW.f.latlon[1] = cr929_SIL_B.y; - rtb_out_gz = cr929_SIL_B.seq + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; - } - - dummyFenceCount = (uint16_T)rtb_out_gz; - dummyFence[dummyFenceCount - 1] = cr929_SIL_DW.f; - } else { - cr929_SIL_B.ack_g = 1U; - } - break; - - case 2: - if (cr929_SIL_B.seq < cr929_SIL_rally_default_len) { - cr929_SIL_B.ack_g = 0U; - cr929_SIL_DW.r.latlon[0] = cr929_SIL_B.x; - cr929_SIL_DW.r.latlon[1] = cr929_SIL_B.y; - cr929_SIL_DW.r.alt = cr929_SIL_B.z; - rtb_out_gz = cr929_SIL_B.seq + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; - } - - dummyRallyCount = (uint16_T)rtb_out_gz; - dummyRally[dummyRallyCount - 1] = cr929_SIL_DW.r; - } else { - cr929_SIL_B.ack_g = 1U; - } - break; - - default: - if (cr929_SIL_B.seq < cr929_SIL_mission_default_len) { - cr929_SIL_B.ack_g = 0U; - cr929_SIL_DW.m.frame = cr929_SIL_B.frame; - cr929_SIL_DW.m.command = cr929_SIL_B.command; - cr929_SIL_DW.m.autocont = cr929_SIL_B.autocontinue; - cr929_SIL_DW.m.params[0] = cr929_SIL_B.param1; - cr929_SIL_DW.m.params[1] = cr929_SIL_B.param2; - cr929_SIL_DW.m.params[2] = cr929_SIL_B.param3; - cr929_SIL_DW.m.params[3] = cr929_SIL_B.param4; - cr929_SIL_DW.m.latlon[0] = cr929_SIL_B.x; - cr929_SIL_DW.m.latlon[1] = cr929_SIL_B.y; - cr929_SIL_DW.m.params[4] = cr929_SIL_B.z; - rtb_out_gz = cr929_SIL_B.seq + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; - } - - dummyMissionCount = (uint16_T)rtb_out_gz; - dummyMission[dummyMissionCount - 1] = cr929_SIL_DW.m; - } else { - cr929_SIL_B.ack_g = 1U; - } - break; - } - - /* End of Chart: '/chat_update_mission_item' */ - /* End of Outputs for SubSystem: '/dummy update_mission_item' */ - if (cr929_SIL_B.ack_g == 0) { - cr929_SIL_B.seq++; - cr929_SIL_DW.retry = 3U; - if (cr929_SIL_B.seq >= cr929_SIL_DW.count) { - cr929_SIL_DW.mission_ack_msgData.mission_type = - cr929_SIL_B.mission_type; - cr929_SIL_DW.mission_ack_msgData.type = 0U; - cr929_SIL_sf_msg_send_mission_ack(); - guard1 = true; - } else { - guard2 = true; - } - } else { - guard4 = true; - } - } else { - if (cr929_SIL_DW.temporalCounter_i1_f3 >= 327U) { - guard4 = true; - } - } - } - - if (guard4) { - if (cr929_SIL_DW.retry == 0) { - cr929_SIL_DW.mission_ack_msgData.mission_type = - cr929_SIL_B.mission_type; - cr929_SIL_DW.mission_ack_msgData.type = 1U; - cr929_SIL_sf_msg_send_mission_ack(); - guard1 = true; - } else { - guard2 = true; - } - } - - if (guard3) { - cr929_SIL_DW.is_c29_mavlink_utils = cr929_SIL_IN_Idle_h; - cr929_SIL_B.enable_cnt = true; - cr929_SIL_B.enable_item = false; - } - - if (guard2) { - cr929_SIL_DW.is_c29_mavlink_utils = cr929_SIL_IN_Uploading; - cr929_SIL_DW.temporalCounter_i1_f3 = 0U; - cr929_SIL_DW.mission_req_int_msgData.seq = cr929_SIL_B.seq; - cr929_SIL_DW.mission_req_int_msgData.mission_type = - cr929_SIL_B.mission_type; - cr929_SIL_sf_msg_send_mission_req_int(); - cr929_SIL_DW.retry--; - } - - if (guard1) { - cr929_SIL_DW.is_c29_mavlink_utils = cr929_SIL_IN_Idle_h; - cr929_SIL_B.enable_cnt = true; - cr929_SIL_B.enable_item = false; - } - } - - cr929_SIL_sf_msg_discard_mission_cnt(); - cr929_SIL_sf_msg_discard_mission_item(); - - /* End of Chart: '/Chart_proc_mission_upload' */ - /* Chart: '/proc_set_ cur' */ cr929_SIL_DW.set_cur_isValid = false; if (cr929_SIL_DW.is_active_c14_C2_proc_comm == 0U) { @@ -15957,12 +15513,12 @@ void cr929_SIL_step(void) } else if (cr929_SIL_DW.is_c14_C2_proc_comm == cr929_SIL_IN_idle_g) { if (cr929_SIL_sf_msg_pop_set_cur()) { cr929_SIL_DW.is_c14_C2_proc_comm = cr929_SIL_IN_process_set_cur; - rtb_out_gz = *(uint16_T *)cr929_SIL_DW.set_cur_msgDataPtr + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; + rtb_out_et = *(uint16_T *)cr929_SIL_DW.set_cur_msgDataPtr + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; } - cr929_SIL_B.WP_cur = (uint16_T)rtb_out_gz; + cr929_SIL_B.WP_cur = (uint16_T)rtb_out_et; } } else { cr929_SIL_DW.is_c14_C2_proc_comm = cr929_SIL_IN_idle_g; @@ -16017,22 +15573,22 @@ void cr929_SIL_step(void) rtb_Merge1_a = 0U; /* If: '/If' */ - if (cr929_SIL_B.params_kj[0] > 1.5F) { + if (cr929_SIL_B.params_f[0] > 1.5F) { /* Outputs for IfAction SubSystem: '/set_base_alt' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.base_asl = cr929_SIL_B.params_kj[1]; + rtb_Merge_j.base_asl = cr929_SIL_B.params_f[1]; /* End of Outputs for SubSystem: '/set_base_alt' */ - } else if (cr929_SIL_B.params_kj[0] > 0.5F) { + } else if (cr929_SIL_B.params_f[0] > 0.5F) { /* Outputs for IfAction SubSystem: '/set_base_alt_baro' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.base_asl_baro = cr929_SIL_B.params_kj[1]; + rtb_Merge_j.base_asl_baro = cr929_SIL_B.params_f[1]; /* End of Outputs for SubSystem: '/set_base_alt_baro' */ } else { @@ -16059,7 +15615,7 @@ void cr929_SIL_step(void) * Gain: '/Gain1' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.takeoff_tht = 0.0174532924F * cr929_SIL_B.params_kj[0]; + rtb_Merge_j.takeoff_tht = 0.0174532924F * cr929_SIL_B.params_f[0]; /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: * Constant: '/Constant' @@ -16080,7 +15636,7 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.dist_trans = cr929_SIL_B.params_kj[1]; + rtb_Merge_j.dist_trans = cr929_SIL_B.params_f[1]; /* End of Outputs for SubSystem: '/dist_trans' */ break; @@ -16092,7 +15648,7 @@ void cr929_SIL_step(void) /* If: '/If' incorporates: * If: '/If' */ - if (cr929_SIL_B.params_kj[0] > 0.5F) { + if (cr929_SIL_B.params_f[0] > 0.5F) { /* Outputs for IfAction SubSystem: '/arm' incorporates: * ActionPort: '/Action Port' */ @@ -16184,54 +15740,54 @@ void cr929_SIL_step(void) rtb_Merge_j = rtb_Merge_a; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_c = fabsf(cr929_SIL_B.params_kj[0]); - if (rtb_phi_c_c < 8.388608E+6F) { - if (rtb_phi_c_c >= 0.5F) { - rtb_phi_c_c = floorf(cr929_SIL_B.params_kj[0] + 0.5F); + rtb_phi_c_h = fabsf(cr929_SIL_B.params_f[0]); + if (rtb_phi_c_h < 8.388608E+6F) { + if (rtb_phi_c_h >= 0.5F) { + rtb_phi_c_h = floorf(cr929_SIL_B.params_f[0] + 0.5F); } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[0] * 0.0F; + rtb_phi_c_h = cr929_SIL_B.params_f[0] * 0.0F; } } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[0]; + rtb_phi_c_h = cr929_SIL_B.params_f[0]; } - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } /* BusAssignment: '/Bus Assignment' incorporates: * DataTypeConversion: '/Data Type Conversion' */ - rtb_Merge_j.WP_cur = (uint16_T)(rtb_phi_c_c < 0.0F ? (int32_T) - (uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); + rtb_Merge_j.WP_cur = (uint16_T)(rtb_phi_c_h < 0.0F ? (int32_T) + (uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); /* DataTypeConversion: '/Data Type Conversion1' */ - rtb_phi_c_c = fabsf(cr929_SIL_B.params_kj[1]); - if (rtb_phi_c_c < 8.388608E+6F) { - if (rtb_phi_c_c >= 0.5F) { - rtb_phi_c_c = floorf(cr929_SIL_B.params_kj[1] + 0.5F); + rtb_phi_c_h = fabsf(cr929_SIL_B.params_f[1]); + if (rtb_phi_c_h < 8.388608E+6F) { + if (rtb_phi_c_h >= 0.5F) { + rtb_phi_c_h = floorf(cr929_SIL_B.params_f[1] + 0.5F); } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[1] * 0.0F; + rtb_phi_c_h = cr929_SIL_B.params_f[1] * 0.0F; } } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[1]; + rtb_phi_c_h = cr929_SIL_B.params_f[1]; } - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } /* BusAssignment: '/Bus Assignment' incorporates: * DataTypeConversion: '/Data Type Conversion1' */ - rtb_Merge_j.do_jump_cnt = (uint16_T)(rtb_phi_c_c < 0.0F ? (int32_T) - (uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); + rtb_Merge_j.do_jump_cnt = (uint16_T)(rtb_phi_c_h < 0.0F ? (int32_T) + (uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); /* End of Outputs for SubSystem: '/entry' */ } else if (rtb_Merge_a.do_jump_cnt > 1) { @@ -16242,11 +15798,11 @@ void cr929_SIL_step(void) rtb_Merge_j = rtb_Merge_a; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_c = floorf(cr929_SIL_B.params_kj[0]); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + rtb_phi_c_h = floorf(cr929_SIL_B.params_f[0]); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } /* BusAssignment: '/Bus Assignment' incorporates: @@ -16254,9 +15810,9 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' * Sum: '/subtract' */ - rtb_Merge_j.WP_cur = (uint16_T)(rtb_phi_c_c < 0.0F ? (int32_T) - (uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); + rtb_Merge_j.WP_cur = (uint16_T)(rtb_phi_c_h < 0.0F ? (int32_T) + (uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); rtb_Merge_j.do_jump_cnt = (uint16_T)(rtb_Merge_a.do_jump_cnt - 1); /* End of Outputs for SubSystem: '/count_down' */ @@ -16296,7 +15852,7 @@ void cr929_SIL_step(void) rtb_Merge1_a = 0U; /* If: '/If' */ - if (cr929_SIL_B.params_kj[0] > 1.5F) { + if (cr929_SIL_B.params_f[0] > 1.5F) { /* Outputs for IfAction SubSystem: '/operation' incorporates: * ActionPort: '/Action Port' */ @@ -16309,7 +15865,7 @@ void cr929_SIL_step(void) rtb_Merge_j.standby_cmd = false; /* End of Outputs for SubSystem: '/operation' */ - } else if (cr929_SIL_B.params_kj[0] > 0.5F) { + } else if (cr929_SIL_B.params_f[0] > 0.5F) { /* Outputs for IfAction SubSystem: '/xbit' incorporates: * ActionPort: '/Action Port' */ @@ -16362,29 +15918,29 @@ void cr929_SIL_step(void) */ /* Outputs for Atomic SubSystem: '/set_speed' */ /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_c = fabsf(cr929_SIL_B.params_kj[0]); - if (rtb_phi_c_c < 8.388608E+6F) { - if (rtb_phi_c_c >= 0.5F) { - rtb_phi_c_c = floorf(cr929_SIL_B.params_kj[0] + 0.5F); + rtb_phi_c_h = fabsf(cr929_SIL_B.params_f[0]); + if (rtb_phi_c_h < 8.388608E+6F) { + if (rtb_phi_c_h >= 0.5F) { + rtb_phi_c_h = floorf(cr929_SIL_B.params_f[0] + 0.5F); } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[0] * 0.0F; + rtb_phi_c_h = cr929_SIL_B.params_f[0] * 0.0F; } } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[0]; + rtb_phi_c_h = cr929_SIL_B.params_f[0]; } - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 256.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 256.0F); } /* SwitchCase: '/Switch Case' incorporates: * DataTypeConversion: '/Data Type Conversion' * Inport: '/In1' */ - switch (rtb_phi_c_c < 0.0F ? (int32_T)(uint8_T)-(int8_T)(uint8_T) - -rtb_phi_c_c : (int32_T)(uint8_T)rtb_phi_c_c) { + switch (rtb_phi_c_h < 0.0F ? (int32_T)(uint8_T)-(int8_T)(uint8_T) + -rtb_phi_c_h : (int32_T)(uint8_T)rtb_phi_c_h) { case 0: /* Outputs for IfAction SubSystem: '/set_as' incorporates: * ActionPort: '/Action Port' @@ -16392,13 +15948,13 @@ void cr929_SIL_step(void) /* If: '/If' incorporates: * Inport: '/In1' */ - if (cr929_SIL_B.params_kj[1] > 0.0F) { + if (cr929_SIL_B.params_f[1] > 0.0F) { /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.as_c = cr929_SIL_B.params_kj[1]; + rtb_Merge_j.as_c = cr929_SIL_B.params_f[1]; /* End of Outputs for SubSystem: '/Subsystem' */ } else { @@ -16421,13 +15977,13 @@ void cr929_SIL_step(void) /* If: '/If' incorporates: * Inport: '/In1' */ - if (cr929_SIL_B.params_kj[1] > 0.0F) { + if (cr929_SIL_B.params_f[1] > 0.0F) { /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.gs_c = cr929_SIL_B.params_kj[1]; + rtb_Merge_j.gs_c = cr929_SIL_B.params_f[1]; /* End of Outputs for SubSystem: '/Subsystem' */ } else { @@ -16450,14 +16006,14 @@ void cr929_SIL_step(void) /* If: '/If' incorporates: * Inport: '/In1' */ - if ((cr929_SIL_B.params_kj[1] > -10.0F) && (cr929_SIL_B.params_kj[1] - < 10.0F)) { + if ((cr929_SIL_B.params_f[1] > -10.0F) && (cr929_SIL_B.params_f[1] < + 10.0F)) { /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.hdot_c = cr929_SIL_B.params_kj[1]; + rtb_Merge_j.hdot_c = cr929_SIL_B.params_f[1]; /* End of Outputs for SubSystem: '/Subsystem' */ } else { @@ -16487,12 +16043,12 @@ void cr929_SIL_step(void) /* End of Outputs for SubSystem: '/set_speed' */ /* If: '/If' */ - if (cr929_SIL_B.params_kj[2] > -0.9F) { + if (cr929_SIL_B.params_f[2] > -0.9F) { /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_j.throttle_c = cr929_SIL_B.params_kj[2]; + rtb_Merge_j.throttle_c = cr929_SIL_B.params_f[2]; /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } @@ -16512,21 +16068,21 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_c = fabsf(cr929_SIL_B.params_kj[0]); - if (rtb_phi_c_c < 8.388608E+6F) { - if (rtb_phi_c_c >= 0.5F) { - rtb_phi_c_c = floorf(cr929_SIL_B.params_kj[0] + 0.5F); + rtb_phi_c_h = fabsf(cr929_SIL_B.params_f[0]); + if (rtb_phi_c_h < 8.388608E+6F) { + if (rtb_phi_c_h >= 0.5F) { + rtb_phi_c_h = floorf(cr929_SIL_B.params_f[0] + 0.5F); } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[0] * 0.0F; + rtb_phi_c_h = cr929_SIL_B.params_f[0] * 0.0F; } } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[0]; + rtb_phi_c_h = cr929_SIL_B.params_f[0]; } - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 256.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 256.0F); } /* SwitchCase: '/Switch Case' incorporates: @@ -16535,8 +16091,8 @@ void cr929_SIL_step(void) * Inport: '/C2_in' * Inport: '/C2_in' */ - switch (rtb_phi_c_c < 0.0F ? (int32_T)(uint8_T)-(int8_T)(uint8_T) - -rtb_phi_c_c : (int32_T)(uint8_T)rtb_phi_c_c) { + switch (rtb_phi_c_h < 0.0F ? (int32_T)(uint8_T)-(int8_T)(uint8_T) + -rtb_phi_c_h : (int32_T)(uint8_T)rtb_phi_c_h) { case 1: /* Outputs for IfAction SubSystem: '/AFCS_vert' incorporates: * ActionPort: '/Action Port' @@ -16545,29 +16101,29 @@ void cr929_SIL_step(void) rtb_Merge_j = rtb_Merge_a; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_c = fabsf(cr929_SIL_B.params_kj[1]); - if (rtb_phi_c_c < 8.388608E+6F) { - if (rtb_phi_c_c >= 0.5F) { - rtb_phi_c_c = floorf(cr929_SIL_B.params_kj[1] + 0.5F); + rtb_phi_c_h = fabsf(cr929_SIL_B.params_f[1]); + if (rtb_phi_c_h < 8.388608E+6F) { + if (rtb_phi_c_h >= 0.5F) { + rtb_phi_c_h = floorf(cr929_SIL_B.params_f[1] + 0.5F); } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[1] * 0.0F; + rtb_phi_c_h = cr929_SIL_B.params_f[1] * 0.0F; } } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[1]; + rtb_phi_c_h = cr929_SIL_B.params_f[1]; } - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 4.2949673E+9F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 4.2949673E+9F); } /* BusAssignment: '/Bus Assignment' incorporates: * DataTypeConversion: '/Data Type Conversion' * DataTypeConversion: '/Data Type Conversion1' */ - rtb_Merge_j.AFCS_VERT = (ENUM_AFCS_VERT)(rtb_phi_c_c < 0.0F ? - -(int32_T)(uint32_T)-rtb_phi_c_c : (int32_T)(uint32_T)rtb_phi_c_c); + rtb_Merge_j.AFCS_VERT = (ENUM_AFCS_VERT)(rtb_phi_c_h < 0.0F ? + -(int32_T)(uint32_T)-rtb_phi_c_h : (int32_T)(uint32_T)rtb_phi_c_h); /* End of Outputs for SubSystem: '/AFCS_vert' */ break; @@ -16580,29 +16136,29 @@ void cr929_SIL_step(void) rtb_Merge_j = rtb_Merge_a; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_c = fabsf(cr929_SIL_B.params_kj[1]); - if (rtb_phi_c_c < 8.388608E+6F) { - if (rtb_phi_c_c >= 0.5F) { - rtb_phi_c_c = floorf(cr929_SIL_B.params_kj[1] + 0.5F); + rtb_phi_c_h = fabsf(cr929_SIL_B.params_f[1]); + if (rtb_phi_c_h < 8.388608E+6F) { + if (rtb_phi_c_h >= 0.5F) { + rtb_phi_c_h = floorf(cr929_SIL_B.params_f[1] + 0.5F); } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[1] * 0.0F; + rtb_phi_c_h = cr929_SIL_B.params_f[1] * 0.0F; } } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[1]; + rtb_phi_c_h = cr929_SIL_B.params_f[1]; } - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 4.2949673E+9F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 4.2949673E+9F); } /* BusAssignment: '/Bus Assignment' incorporates: * DataTypeConversion: '/Data Type Conversion' * DataTypeConversion: '/Data Type Conversion1' */ - rtb_Merge_j.AS_SEL = (ENUM_AS_SEL)(rtb_phi_c_c < 0.0F ? -(int32_T) - (uint32_T)-rtb_phi_c_c : (int32_T)(uint32_T)rtb_phi_c_c); + rtb_Merge_j.AS_SEL = (ENUM_AS_SEL)(rtb_phi_c_h < 0.0F ? -(int32_T) + (uint32_T)-rtb_phi_c_h : (int32_T)(uint32_T)rtb_phi_c_h); /* End of Outputs for SubSystem: '/AS_SEL' */ break; @@ -16615,7 +16171,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.enable_rc = (cr929_SIL_B.params_kj[1] != 0.0F); + rtb_Merge_j.enable_rc = (cr929_SIL_B.params_f[1] != 0.0F); /* End of Outputs for SubSystem: '/rc_enable' */ break; @@ -16628,29 +16184,29 @@ void cr929_SIL_step(void) rtb_Merge_j = rtb_Merge_a; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_c = fabsf(cr929_SIL_B.params_kj[1]); - if (rtb_phi_c_c < 8.388608E+6F) { - if (rtb_phi_c_c >= 0.5F) { - rtb_phi_c_c = floorf(cr929_SIL_B.params_kj[1] + 0.5F); + rtb_phi_c_h = fabsf(cr929_SIL_B.params_f[1]); + if (rtb_phi_c_h < 8.388608E+6F) { + if (rtb_phi_c_h >= 0.5F) { + rtb_phi_c_h = floorf(cr929_SIL_B.params_f[1] + 0.5F); } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[1] * 0.0F; + rtb_phi_c_h = cr929_SIL_B.params_f[1] * 0.0F; } } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[1]; + rtb_phi_c_h = cr929_SIL_B.params_f[1]; } - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 4.2949673E+9F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 4.2949673E+9F); } /* BusAssignment: '/Bus Assignment' incorporates: * DataTypeConversion: '/Data Type Conversion' * DataTypeConversion: '/Data Type Conversion1' */ - rtb_Merge_j.AT = (ENUM_AT)(rtb_phi_c_c < 0.0F ? (uint32_T)-(int32_T) - (uint32_T)-rtb_phi_c_c : (uint32_T)rtb_phi_c_c); + rtb_Merge_j.AT = (ENUM_AT)(rtb_phi_c_h < 0.0F ? (uint32_T)-(int32_T) + (uint32_T)-rtb_phi_c_h : (uint32_T)rtb_phi_c_h); /* End of Outputs for SubSystem: '/AT' */ break; @@ -16663,7 +16219,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.enable_rec = (cr929_SIL_B.params_kj[1] != 0.0F); + rtb_Merge_j.enable_rec = (cr929_SIL_B.params_f[1] != 0.0F); /* End of Outputs for SubSystem: '/rec' */ break; @@ -16696,7 +16252,7 @@ void cr929_SIL_step(void) /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem1' incorporates: * ActionPort: '/Action Port' */ - rtb_Merge_i5 = ENUM_CSAS_YAW_AY_CTRL; + rtb_Merge_d = ENUM_CSAS_YAW_AY_CTRL; /* End of Outputs for SubSystem: '/Switch Case Action Subsystem1' */ break; @@ -16705,7 +16261,7 @@ void cr929_SIL_step(void) /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem' incorporates: * ActionPort: '/Action Port' */ - rtb_Merge_i5 = ENUM_CSAS_YAW_DAMPING; + rtb_Merge_d = ENUM_CSAS_YAW_DAMPING; /* End of Outputs for SubSystem: '/Switch Case Action Subsystem' */ break; @@ -16714,7 +16270,7 @@ void cr929_SIL_step(void) /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem2' incorporates: * ActionPort: '/Action Port' */ - rtb_Merge_i5 = rtb_Merge_a.CSAS_yaw; + rtb_Merge_d = rtb_Merge_a.CSAS_yaw; /* End of Outputs for SubSystem: '/Switch Case Action Subsystem2' */ break; @@ -16726,7 +16282,7 @@ void cr929_SIL_step(void) * Constant: '/Constant BP' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.CSAS_yaw = rtb_Merge_i5; + rtb_Merge_j.CSAS_yaw = rtb_Merge_d; rtb_Merge_j.ay_c = 0.0F; /* End of Outputs for SubSystem: '/ay_or_damping' */ @@ -16737,7 +16293,7 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* If: '/If' */ - if (cr929_SIL_B.params_kj[1] > 0.5F) { + if (cr929_SIL_B.params_f[1] > 0.5F) { /* Outputs for IfAction SubSystem: '/COMAC' incorporates: * ActionPort: '/Action Port' */ @@ -16775,7 +16331,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_Arm_RUDTrimPanel = (cr929_SIL_B.params_kj[1] != + rtb_Merge_j.comac_Arm_RUDTrimPanel = (cr929_SIL_B.params_f[1] != 0.0F); /* End of Outputs for SubSystem: '/Arm_RUDTrimPanel' */ @@ -16789,7 +16345,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_NoseLeft_RUDTrimPanel = (cr929_SIL_B.params_kj[1] + rtb_Merge_j.comac_NoseLeft_RUDTrimPanel = (cr929_SIL_B.params_f[1] != 0.0F); /* End of Outputs for SubSystem: '/NoseLeft_RUDTrimPanel' */ @@ -16803,7 +16359,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_NoseRight_RUDTrimPanel = (cr929_SIL_B.params_kj[1] + rtb_Merge_j.comac_NoseRight_RUDTrimPanel = (cr929_SIL_B.params_f[1] != 0.0F); /* End of Outputs for SubSystem: '/NoseRight_RUDTrimPanel' */ @@ -16817,7 +16373,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_Reset_RUDTrimPanel = (cr929_SIL_B.params_kj[1] != + rtb_Merge_j.comac_Reset_RUDTrimPanel = (cr929_SIL_B.params_f[1] != 0.0F); /* End of Outputs for SubSystem: '/Reset_RUDTrimPanel' */ @@ -16828,7 +16384,7 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* If: '/If' */ - if (cr929_SIL_B.params_kj[1] > 0.5F) { + if (cr929_SIL_B.params_f[1] > 0.5F) { /* Outputs for IfAction SubSystem: '/CP' incorporates: * ActionPort: '/Action Port' */ @@ -16877,7 +16433,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_InhibitAlphaPROT_Test = (cr929_SIL_B.params_kj[1] + rtb_Merge_j.comac_InhibitAlphaPROT_Test = (cr929_SIL_B.params_f[1] != 0.0F); /* End of Outputs for SubSystem: '/InhibitAlphaPROT_Test' */ @@ -16891,7 +16447,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_RudTrimEnable_NM_Test = (cr929_SIL_B.params_kj[1] + rtb_Merge_j.comac_RudTrimEnable_NM_Test = (cr929_SIL_B.params_f[1] != 0.0F); /* End of Outputs for SubSystem: '/RudTrimEnable_NM_Test' */ @@ -16905,8 +16461,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_InhibitMLA_Test = (cr929_SIL_B.params_kj[1] != - 0.0F); + rtb_Merge_j.comac_InhibitMLA_Test = (cr929_SIL_B.params_f[1] != 0.0F); /* End of Outputs for SubSystem: '/InhibitMLA_Test' */ break; @@ -16919,7 +16474,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_AP_Engage = (cr929_SIL_B.params_kj[1] != 0.0F); + rtb_Merge_j.comac_AP_Engage = (cr929_SIL_B.params_f[1] != 0.0F); /* End of Outputs for SubSystem: '/AP_Engage' */ break; @@ -16932,7 +16487,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_AT_Engage = (cr929_SIL_B.params_kj[1] != 0.0F); + rtb_Merge_j.comac_AT_Engage = (cr929_SIL_B.params_f[1] != 0.0F); /* End of Outputs for SubSystem: '/AT_Engage' */ break; @@ -16976,31 +16531,31 @@ void cr929_SIL_step(void) rtb_Merge_j = rtb_Merge_a; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_c = fabsf(cr929_SIL_B.params_kj[0]); - if (rtb_phi_c_c < 8.388608E+6F) { - if (rtb_phi_c_c >= 0.5F) { - rtb_phi_c_c = floorf(cr929_SIL_B.params_kj[0] + 0.5F); + rtb_phi_c_h = fabsf(cr929_SIL_B.params_f[0]); + if (rtb_phi_c_h < 8.388608E+6F) { + if (rtb_phi_c_h >= 0.5F) { + rtb_phi_c_h = floorf(cr929_SIL_B.params_f[0] + 0.5F); } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[0] * 0.0F; + rtb_phi_c_h = cr929_SIL_B.params_f[0] * 0.0F; } } else { - rtb_phi_c_c = cr929_SIL_B.params_kj[0]; + rtb_phi_c_h = cr929_SIL_B.params_f[0]; } - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } /* BusAssignment: '/Bus Assignment' incorporates: * DataTypeConversion: '/Data Type Conversion' */ - rtb_Merge_j.maneuver_cmd = (int16_T)(rtb_phi_c_c < 0.0F ? (int32_T) - (int16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(int16_T) - (uint16_T)rtb_phi_c_c); + rtb_Merge_j.maneuver_cmd = (int16_T)(rtb_phi_c_h < 0.0F ? (int32_T) + (int16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(int16_T) + (uint16_T)rtb_phi_c_h); for (i = 0; i < 6; i++) { - rtb_Merge_j.maneuver_params[i] = cr929_SIL_B.params_kj[i + 1]; + rtb_Merge_j.maneuver_params[i] = cr929_SIL_B.params_f[i + 1]; } /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: @@ -17021,7 +16576,7 @@ void cr929_SIL_step(void) rtb_Merge1_a = 0U; /* If: '/If' */ - if (cr929_SIL_B.params_kj[0] > 1.5F) { + if (cr929_SIL_B.params_f[0] > 1.5F) { /* Outputs for IfAction SubSystem: '/landing' incorporates: * ActionPort: '/Action Port' */ @@ -17032,7 +16587,7 @@ void cr929_SIL_step(void) rtb_Merge_j.landing_cmd = true; /* End of Outputs for SubSystem: '/landing' */ - } else if (cr929_SIL_B.params_kj[0] > 0.5F) { + } else if (cr929_SIL_B.params_f[0] > 0.5F) { /* Outputs for IfAction SubSystem: '/abort_takeoff' incorporates: * ActionPort: '/Action Port' */ @@ -17071,7 +16626,7 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.landing_abort_alt = cr929_SIL_B.params_kj[0]; + rtb_Merge_j.landing_abort_alt = cr929_SIL_B.params_f[0]; /* End of Outputs for SubSystem: '/landing_abort_alt' */ break; @@ -17093,9 +16648,9 @@ void cr929_SIL_step(void) /* End of SwitchCase: '/Switch Case' */ /* Chart: '/proc_cmd' */ - if (cr929_SIL_B.ack_n) { - cr929_SIL_DW.ack_msgData_l.id = cr929_SIL_B.id; - cr929_SIL_DW.ack_msgData_l.rslt = rtb_Merge1_a; + if (cr929_SIL_B.ack_e2) { + cr929_SIL_DW.ack_msgData_e.id = cr929_SIL_B.id; + cr929_SIL_DW.ack_msgData_e.rslt = rtb_Merge1_a; cr929_SIL_sf_msg_send_ack(); } @@ -17192,14 +16747,14 @@ void cr929_SIL_step(void) rtb_standby_cmd = true; rtb_xbit_cmd = true; if (!rtb_Merge1_e.armed) { - rtb_Compare_i4 = !rtb_Merge1_e.xbit_cmd; - if (rtb_Compare_i4 && (!rtb_Merge1_e.standby_cmd)) { + rtb_ResetControlLaw_out = !rtb_Merge1_e.xbit_cmd; + if (rtb_ResetControlLaw_out && (!rtb_Merge1_e.standby_cmd)) { cr929_SIL_DW.is_c24_cr929_autopilot = cr929_SIL_IN_operational; rtb_level1_lgx = operational; rtb_standby_cmd = false; rtb_xbit_cmd = false; } else { - if (rtb_Compare_i4 && rtb_Merge1_e.standby_cmd) { + if (rtb_ResetControlLaw_out && rtb_Merge1_e.standby_cmd) { cr929_SIL_DW.is_c24_cr929_autopilot = cr929_SIL_IN_standby; rtb_level1_lgx = standby; rtb_xbit_cmd = false; @@ -17271,7 +16826,7 @@ void cr929_SIL_step(void) cr929_SIL_manual_arm_disarm(rtb_BusAssignment_e.armed, rtb_BusAssignment_e.rc.pitch_cmd, rtb_BusAssignment_e.rc.roll_cmd, rtb_BusAssignment_e.rc.yaw_cmd, rtb_BusAssignment_e.rc.throttle_cmd, - &cr929_SIL_B.armed_out_p, &cr929_SIL_DW.sf_manual_arm_disarm); + &cr929_SIL_B.armed_out_b, &cr929_SIL_DW.sf_manual_arm_disarm); /* BusAssignment: '/Bus Assignment' incorporates: * Constant: '/Constant1' @@ -17328,7 +16883,7 @@ void cr929_SIL_step(void) */ cr929_SIL_B.Merge.gear_up = rtb_BusAssignment_e.rc.gear_up; cr929_SIL_B.Merge.brake_c = rtb_BusAssignment_e.rc.brake; - cr929_SIL_B.Merge.armed = cr929_SIL_B.armed_out_p; + cr929_SIL_B.Merge.armed = cr929_SIL_B.armed_out_b; cr929_SIL_B.Merge.use_da2dsp = false; /* End of Outputs for SubSystem: '/xbit' */ @@ -17345,7 +16900,7 @@ void cr929_SIL_step(void) */ cr929_SIL_DW.is_active_c69_cr929_autopilot = 0U; cr929_SIL_DW.is_c69_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - cr929_SIL_DW.temporalCounter_i1_k = 0U; + cr929_SIL_DW.temporalCounter_i1_j = 0U; cr929_SIL_DW.is_active_c43_cr929_autopilot = 0U; cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -17358,8 +16913,8 @@ void cr929_SIL_step(void) /* RelationalOperator: '/Compare' incorporates: * Constant: '/Constant' */ - rtb_Compare_i4 = (cr929_SIL_B.BusAssignment_h.gps_fixtype >= - ENUM_GPS_FIXTYPE_FIX_3D); + rtb_ResetControlLaw_out = (cr929_SIL_B.BusAssignment_h.gps_fixtype >= + ENUM_GPS_FIXTYPE_FIX_3D); /* Chart: '/standby_emergency' incorporates: * Constant: '/Constant' @@ -17370,86 +16925,86 @@ void cr929_SIL_step(void) if (cr929_SIL_DW.is_active_c69_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c69_cr929_autopilot = 1U; cr929_SIL_DW.is_c69_cr929_autopilot = cr929_SIL_IN_Standby; - rtb_mode_a = ENUM_mode_STANDBY; + rtb_mode_p = ENUM_mode_STANDBY; rtb_AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_OFF; rtb_CSAS_roll = ENUM_CSAS_ROLL_OFF; - rtb_Merge_i5 = ENUM_CSAS_YAW_OFF; + rtb_Merge_d = ENUM_CSAS_YAW_OFF; rtb_AT = ENUM_AT_OFF; rtb_landed_state_out = ENUM_LANDED_STATE_ON_GROUND; - rtb_phi_c_c = 0.0F; + rtb_phi_c_h = 0.0F; cr929_SIL_B.recovery = false; rtb_standby_cmd = true; } else { switch (cr929_SIL_DW.is_c69_cr929_autopilot) { case cr929_SIL_IN_Emergency: - rtb_mode_a = ENUM_mode_AUTO_LOITER; + rtb_mode_p = ENUM_mode_AUTO_LOITER; rtb_AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; rtb_CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; - rtb_Merge_i5 = ENUM_CSAS_YAW_DAMPING; + rtb_Merge_d = ENUM_CSAS_YAW_DAMPING; rtb_AT = ENUM_AT_AS; rtb_landed_state_out = ENUM_LANDED_STATE_IN_AIR; - rtb_phi_c_c = -0.3F; + rtb_phi_c_h = -0.3F; rtb_standby_cmd = true; cr929_SIL_B.recovery = (rtb_BusAssignment_e.rc.chan_raw[11] > 1500); break; case cr929_SIL_IN_Manual: - rtb_mode_a = ENUM_mode_MANUAL; + rtb_mode_p = ENUM_mode_MANUAL; rtb_AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_COMMAND; rtb_CSAS_roll = ENUM_CSAS_ROLL_COMMAND; - rtb_Merge_i5 = ENUM_CSAS_YAW_COMMAND; + rtb_Merge_d = ENUM_CSAS_YAW_COMMAND; rtb_AT = ENUM_AT_COMMAND; rtb_landed_state_out = ENUM_LANDED_STATE_IN_AIR; - rtb_phi_c_c = 0.0F; + rtb_phi_c_h = 0.0F; rtb_standby_cmd = true; cr929_SIL_B.recovery = (rtb_BusAssignment_e.rc.chan_raw[11] > 1500); break; case cr929_SIL_IN_Standby: - rtb_mode_a = ENUM_mode_STANDBY; + rtb_mode_p = ENUM_mode_STANDBY; rtb_AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_OFF; rtb_CSAS_roll = ENUM_CSAS_ROLL_OFF; - rtb_Merge_i5 = ENUM_CSAS_YAW_OFF; + rtb_Merge_d = ENUM_CSAS_YAW_OFF; rtb_AT = ENUM_AT_OFF; rtb_landed_state_out = ENUM_LANDED_STATE_ON_GROUND; - rtb_phi_c_c = 0.0F; + rtb_phi_c_h = 0.0F; rtb_standby_cmd = true; if ((cr929_SIL_B.BusAssignment_h.IAS > cr929_SIL_P.min_AS) && - rtb_Compare_i4 && (rtb_BusAssignment_e.boot_time > 300U) && - (rtb_BusAssignment_e.boot_time < 400U)) { + rtb_ResetControlLaw_out && (rtb_BusAssignment_e.boot_time > 300U) + && (rtb_BusAssignment_e.boot_time < 400U)) { cr929_SIL_DW.is_c69_cr929_autopilot = cr929_SIL_IN_Emergency; - rtb_mode_a = ENUM_mode_AUTO_LOITER; + rtb_mode_p = ENUM_mode_AUTO_LOITER; rtb_AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; rtb_CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; - rtb_Merge_i5 = ENUM_CSAS_YAW_DAMPING; + rtb_Merge_d = ENUM_CSAS_YAW_DAMPING; rtb_AT = ENUM_AT_AS; rtb_landed_state_out = ENUM_LANDED_STATE_IN_AIR; - rtb_phi_c_c = -0.3F; + rtb_phi_c_h = -0.3F; cr929_SIL_B.recovery = false; - } else if (rtb_Compare_i4 && (rtb_BusAssignment_e.boot_time > 300U) && - (rtb_BusAssignment_e.boot_time < 400U)) { + } else if (rtb_ResetControlLaw_out && (rtb_BusAssignment_e.boot_time + > 300U) && (rtb_BusAssignment_e.boot_time < 400U)) { cr929_SIL_DW.is_c69_cr929_autopilot = cr929_SIL_IN_Manual; - rtb_mode_a = ENUM_mode_MANUAL; + rtb_mode_p = ENUM_mode_MANUAL; rtb_AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_COMMAND; rtb_CSAS_roll = ENUM_CSAS_ROLL_COMMAND; - rtb_Merge_i5 = ENUM_CSAS_YAW_COMMAND; + rtb_Merge_d = ENUM_CSAS_YAW_COMMAND; rtb_AT = ENUM_AT_COMMAND; rtb_landed_state_out = ENUM_LANDED_STATE_IN_AIR; cr929_SIL_B.recovery = false; } else { if (rtb_BusAssignment_e.boot_time > 400U) { cr929_SIL_DW.is_c69_cr929_autopilot = cr929_SIL_IN_Standby1; - rtb_mode_a = ENUM_mode_STANDBY; + rtb_mode_p = ENUM_mode_STANDBY; rtb_AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_OFF; rtb_CSAS_roll = ENUM_CSAS_ROLL_OFF; - rtb_Merge_i5 = ENUM_CSAS_YAW_OFF; + rtb_Merge_d = ENUM_CSAS_YAW_OFF; rtb_AT = ENUM_AT_OFF; rtb_landed_state_out = ENUM_LANDED_STATE_ON_GROUND; cr929_SIL_B.recovery = false; @@ -17459,14 +17014,14 @@ void cr929_SIL_step(void) break; default: - rtb_mode_a = ENUM_mode_STANDBY; + rtb_mode_p = ENUM_mode_STANDBY; rtb_AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_OFF; rtb_CSAS_roll = ENUM_CSAS_ROLL_OFF; - rtb_Merge_i5 = ENUM_CSAS_YAW_OFF; + rtb_Merge_d = ENUM_CSAS_YAW_OFF; rtb_AT = ENUM_AT_OFF; rtb_landed_state_out = ENUM_LANDED_STATE_ON_GROUND; - rtb_phi_c_c = 0.0F; + rtb_phi_c_h = 0.0F; rtb_standby_cmd = false; break; } @@ -17475,94 +17030,94 @@ void cr929_SIL_step(void) /* End of Chart: '/standby_emergency' */ /* Chart: '/manual_arm_disarm' */ - if (cr929_SIL_DW.temporalCounter_i1_k < 1023U) { - cr929_SIL_DW.temporalCounter_i1_k++; + if (cr929_SIL_DW.temporalCounter_i1_j < 1023U) { + cr929_SIL_DW.temporalCounter_i1_j++; } if (cr929_SIL_DW.is_active_c43_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c43_cr929_autopilot = 1U; - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_f; - cr929_SIL_B.standby_e = true; + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_o; + cr929_SIL_B.standby_p = true; cr929_SIL_B.xbit_o = false; } else { switch (cr929_SIL_DW.is_c43_cr929_autopilot) { - case cr929_SIL_IN_check_armed_a: - if (cr929_SIL_DW.temporalCounter_i1_k >= 980U) { + case cr929_SIL_IN_check_armed_d: + if (cr929_SIL_DW.temporalCounter_i1_j >= 980U) { cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_xbit_p; - cr929_SIL_B.standby_e = true; + cr929_SIL_B.standby_p = true; cr929_SIL_B.xbit_o = true; } else { if ((rtb_BusAssignment_e.rc.pitch_cmd < 0.9F) || (rtb_BusAssignment_e.rc.roll_cmd < 0.9F) || (rtb_BusAssignment_e.rc.yaw_cmd > -0.9F) || (rtb_BusAssignment_e.rc.throttle_cmd > 0.1F)) { - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_f; - cr929_SIL_B.standby_e = true; + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_o; + cr929_SIL_B.standby_p = true; cr929_SIL_B.xbit_o = false; } } break; - case cr929_SIL_IN_check_disarmed_i: - if (cr929_SIL_DW.temporalCounter_i1_k >= 980U) { - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_operational_k; - cr929_SIL_B.standby_e = false; + case cr929_SIL_IN_check_disarmed_g: + if (cr929_SIL_DW.temporalCounter_i1_j >= 980U) { + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_operational_e; + cr929_SIL_B.standby_p = false; cr929_SIL_B.xbit_o = false; } else { if ((rtb_BusAssignment_e.rc.pitch_cmd < 0.9F) || (rtb_BusAssignment_e.rc.roll_cmd > -0.9F) || (rtb_BusAssignment_e.rc.yaw_cmd < 0.9F) || (rtb_BusAssignment_e.rc.throttle_cmd > 0.1F)) { - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_f; - cr929_SIL_B.standby_e = true; + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_o; + cr929_SIL_B.standby_p = true; cr929_SIL_B.xbit_o = false; } } break; - case cr929_SIL_IN_idle_f: - cr929_SIL_B.standby_e = true; + case cr929_SIL_IN_idle_o: + cr929_SIL_B.standby_p = true; cr929_SIL_B.xbit_o = false; if ((rtb_BusAssignment_e.rc.pitch_cmd > 0.9F) && (rtb_BusAssignment_e.rc.roll_cmd > 0.9F) && (rtb_BusAssignment_e.rc.yaw_cmd < -0.9F) && (rtb_BusAssignment_e.rc.throttle_cmd < 0.1F)) { - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_check_armed_a; - cr929_SIL_DW.temporalCounter_i1_k = 0U; + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_check_armed_d; + cr929_SIL_DW.temporalCounter_i1_j = 0U; } else { if ((rtb_BusAssignment_e.rc.pitch_cmd > 0.9F) && (rtb_BusAssignment_e.rc.roll_cmd < -0.9F) && (rtb_BusAssignment_e.rc.yaw_cmd > 0.9F) && (rtb_BusAssignment_e.rc.throttle_cmd < 0.1F)) { cr929_SIL_DW.is_c43_cr929_autopilot = - cr929_SIL_IN_check_disarmed_i; - cr929_SIL_DW.temporalCounter_i1_k = 0U; + cr929_SIL_IN_check_disarmed_g; + cr929_SIL_DW.temporalCounter_i1_j = 0U; } } break; - case cr929_SIL_IN_operational_k: - cr929_SIL_B.standby_e = false; + case cr929_SIL_IN_operational_e: + cr929_SIL_B.standby_p = false; cr929_SIL_B.xbit_o = false; if ((rtb_BusAssignment_e.rc.pitch_cmd < 0.9F) || (rtb_BusAssignment_e.rc.roll_cmd > -0.9F) || (rtb_BusAssignment_e.rc.yaw_cmd < 0.9F) || (rtb_BusAssignment_e.rc.throttle_cmd > 0.1F)) { - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_f; - cr929_SIL_B.standby_e = true; + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_o; + cr929_SIL_B.standby_p = true; cr929_SIL_B.xbit_o = false; } break; default: - cr929_SIL_B.standby_e = true; + cr929_SIL_B.standby_p = true; cr929_SIL_B.xbit_o = true; if ((rtb_BusAssignment_e.rc.pitch_cmd < 0.9F) || (rtb_BusAssignment_e.rc.roll_cmd < 0.9F) || (rtb_BusAssignment_e.rc.yaw_cmd > -0.9F) || (rtb_BusAssignment_e.rc.throttle_cmd > 0.1F)) { - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_f; - cr929_SIL_B.standby_e = true; + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_o; + cr929_SIL_B.standby_p = true; cr929_SIL_B.xbit_o = false; } break; @@ -17608,7 +17163,7 @@ void cr929_SIL_step(void) /* End of Saturate: '/Saturation' */ /* Chart: '/pos_sel' */ - cr929_SIL_pos_sel(rtb_BusAssignment_e.rc.chan_raw[9], &rtb_pos_out_f); + cr929_SIL_pos_sel(rtb_BusAssignment_e.rc.chan_raw[9], &rtb_pos_out_i); /* BusAssignment: '/Bus Assignment' incorporates: * Constant: '/Constant' @@ -17621,7 +17176,7 @@ void cr929_SIL_step(void) * Lookup_n-D: '/1-D Lookup Table' */ cr929_SIL_B.Merge = rtb_BusAssignment_e; - cr929_SIL_B.Merge.mode = rtb_mode_a; + cr929_SIL_B.Merge.mode = rtb_mode_p; cr929_SIL_B.Merge.armed = rtb_standby_cmd; cr929_SIL_B.Merge.state = ENUM_SystemState_UNINIT; cr929_SIL_B.Merge.landed_state = rtb_landed_state_out; @@ -17629,16 +17184,16 @@ void cr929_SIL_step(void) cr929_SIL_B.Merge.AFCS_VERT = rtb_AFCS_VERT; cr929_SIL_B.Merge.CSAS_roll = rtb_CSAS_roll; cr929_SIL_B.Merge.CSAS_pitch = rtb_CSAS_pitch; - cr929_SIL_B.Merge.CSAS_yaw = rtb_Merge_i5; + cr929_SIL_B.Merge.CSAS_yaw = rtb_Merge_d; cr929_SIL_B.Merge.AT = rtb_AT; cr929_SIL_B.Merge.hdot_c = 0.0F; cr929_SIL_B.Merge.tht_c = 0.0F; - cr929_SIL_B.Merge.phi_c = rtb_phi_c_c; + cr929_SIL_B.Merge.phi_c = rtb_phi_c_h; cr929_SIL_B.Merge.parachute_c = cr929_SIL_B.recovery; cr929_SIL_B.Merge.use_mission_traj = true; cr929_SIL_B.Merge.use_mix = true; cr929_SIL_B.Merge.vtol_state = ENUM_VTOL_STATE_FW; - cr929_SIL_B.Merge.standby_cmd = cr929_SIL_B.standby_e; + cr929_SIL_B.Merge.standby_cmd = cr929_SIL_B.standby_p; cr929_SIL_B.Merge.xbit_cmd = cr929_SIL_B.xbit_o; cr929_SIL_B.Merge.gear_up = false; cr929_SIL_B.Merge.steer_c = cr929_SIL_P.max_steer * @@ -17707,23 +17262,10 @@ void cr929_SIL_step(void) /* End of Switch: '/Switch1' */ - /* ManualSwitch: '/Manual Switch' incorporates: - * Constant: '/Constant2' - */ - rtb_phi_c_c = floorf(cr929_SIL_P.flap_level); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; - } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 256.0F); - } - /* BusAssignment: '/Bus Assignment' incorporates: * Constant: '/Constant Single25' - * ManualSwitch: '/Manual Switch' */ - cr929_SIL_B.Merge.flap_lever = (uint8_T)(rtb_phi_c_c < 0.0F ? (int32_T) - (uint8_T)-(int8_T)(uint8_T)-rtb_phi_c_c : (int32_T)(uint8_T) - rtb_phi_c_c); + cr929_SIL_B.Merge.flap_lever = rtb_pos_out_i; cr929_SIL_B.Merge.as_c = cr929_SIL_P.CruiseSpeed; /* End of Outputs for SubSystem: '/standby' */ @@ -18018,9 +17560,9 @@ void cr929_SIL_step(void) /* Chart: '/Chart' */ if (cr929_SIL_DW.is_active_c13_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c13_cr929_autopilot = 1U; - cr929_SIL_B.landed_state_out_k = + cr929_SIL_B.landed_state_out_i = cr929_SIL_B.BusAssignment.landed_state; - cr929_SIL_B.WP_out_n = cr929_SIL_B.BusAssignment.WP_cur; + cr929_SIL_B.WP_out_l = cr929_SIL_B.BusAssignment.WP_cur; } /* End of Chart: '/Chart' */ @@ -18028,8 +17570,8 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_cc = cr929_SIL_B.BusAssignment; rtb_Merge_cc.mode = ENUM_mode_AUTO_LOITER; - rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state_out_k; - rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_n; + rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state_out_i; + rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_l; rtb_Merge_cc.use_mission_traj = true; /* End of Outputs for SubSystem: '/halt' */ @@ -18078,12 +17620,12 @@ void cr929_SIL_step(void) /* End of Outputs for SubSystem: '/get_WP' */ while (cr929_SIL_B.is_mission) { - rtb_out_gz = cr929_SIL_B.cur_np + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; + rtb_out_et = cr929_SIL_B.cur_np + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; } - cr929_SIL_B.cur_np = (uint16_T)rtb_out_gz; + cr929_SIL_B.cur_np = (uint16_T)rtb_out_et; /* Outputs for Function Call SubSystem: '/get_WP' */ cr929_SIL_get_WP(cr929_SIL_B.cur_np, &cr929_SIL_B.is_mission, @@ -18119,12 +17661,12 @@ void cr929_SIL_step(void) } cr929_SIL_sf_msg_send_cmd(); - rtb_out_gz = cr929_SIL_B.cur_np + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; + rtb_out_et = cr929_SIL_B.cur_np + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; } - cr929_SIL_B.cur_np = (uint16_T)rtb_out_gz; + cr929_SIL_B.cur_np = (uint16_T)rtb_out_et; /* Outputs for Function Call SubSystem: '/get_WP' */ cr929_SIL_get_WP(cr929_SIL_B.cur_np, &cr929_SIL_B.is_mission, @@ -18139,12 +17681,12 @@ void cr929_SIL_step(void) } cr929_SIL_sf_msg_send_cmd(); - rtb_out_gz = cr929_SIL_B.cur_np + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; + rtb_out_et = cr929_SIL_B.cur_np + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; } - cr929_SIL_B.cur_np = (uint16_T)rtb_out_gz; + cr929_SIL_B.cur_np = (uint16_T)rtb_out_et; /* Outputs for Function Call SubSystem: '/get_WP' */ cr929_SIL_get_WP(cr929_SIL_B.cur_np, &cr929_SIL_B.is_mission, @@ -18166,12 +17708,12 @@ void cr929_SIL_step(void) /* End of Outputs for SubSystem: '/get_WP' */ while (cr929_SIL_B.is_mission) { - rtb_out_gz = cr929_SIL_B.cur_np + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; + rtb_out_et = cr929_SIL_B.cur_np + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; } - cr929_SIL_B.cur_np = (uint16_T)rtb_out_gz; + cr929_SIL_B.cur_np = (uint16_T)rtb_out_et; /* Outputs for Function Call SubSystem: '/get_WP' */ cr929_SIL_get_WP(cr929_SIL_B.cur_np, &cr929_SIL_B.is_mission, @@ -18254,7 +17796,7 @@ void cr929_SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/takeoff_task' */ - cr929_SIL_DW.temporalCounter_i1_c = 0U; + cr929_SIL_DW.temporalCounter_i1_h3 = 0U; cr929_SIL_DW.is_active_c17_cr929_autopilot = 0U; cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -18277,8 +17819,8 @@ void cr929_SIL_step(void) * Constant: '/Constant Single60' * Constant: '/Constant' */ - if (cr929_SIL_DW.temporalCounter_i1_c < 2047U) { - cr929_SIL_DW.temporalCounter_i1_c++; + if (cr929_SIL_DW.temporalCounter_i1_h3 < 2047U) { + cr929_SIL_DW.temporalCounter_i1_h3++; } if (cr929_SIL_DW.is_active_c17_cr929_autopilot == 0U) { @@ -18293,18 +17835,18 @@ void cr929_SIL_step(void) cr929_SIL_B.AT_i = ENUM_AT_OFF; if (cr929_SIL_B.UnitDelay.v_g < 1.0F) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_Stop; - cr929_SIL_B.AFCS_LAT_h = ENUM_AFCS_LAT_OFF; - cr929_SIL_B.CSAS_yaw_p = ENUM_CSAS_YAW_OFF; - cr929_SIL_B.CSAS_pitch_j = ENUM_CSAS_PITCH_OFF; + cr929_SIL_B.AFCS_LAT_p = ENUM_AFCS_LAT_OFF; + cr929_SIL_B.CSAS_yaw_a = ENUM_CSAS_YAW_OFF; + cr929_SIL_B.CSAS_pitch_e = ENUM_CSAS_PITCH_OFF; cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.brake_c_i = true; } break; case cr929_SIL_IN_Acc_Taxi_High: - cr929_SIL_B.CSAS_pitch_j = ENUM_CSAS_PITCH_THT_CTRL; + cr929_SIL_B.CSAS_pitch_e = ENUM_CSAS_PITCH_THT_CTRL; cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_ROLL_CTRL; - cr929_SIL_B.phi_c_ck = 0.0F; + cr929_SIL_B.phi_c_l = 0.0F; if (cr929_SIL_B.UnitDelay.v_g > cr929_SIL_P.V1) { if (cr929_SIL_P.V1 > cr929_SIL_P.max_GS) { guard1 = true; @@ -18338,10 +17880,10 @@ void cr929_SIL_step(void) if (cr929_SIL_B.UnitDelay.v_g > 0.8F * cr929_SIL_P.V1) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_Acc_Taxi_High; - cr929_SIL_B.CSAS_pitch_j = ENUM_CSAS_PITCH_THT_CTRL; + cr929_SIL_B.CSAS_pitch_e = ENUM_CSAS_PITCH_THT_CTRL; cr929_SIL_B.tht_c = cr929_SIL_DW.tht0; cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_ROLL_CTRL; - cr929_SIL_B.phi_c_ck = 0.0F; + cr929_SIL_B.phi_c_l = 0.0F; } } break; @@ -18350,34 +17892,34 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_LiftUp: - cr929_SIL_B.landed_state_p = ENUM_LANDED_STATE_TAKEOFF; + cr929_SIL_B.landed_state_f = ENUM_LANDED_STATE_TAKEOFF; if (cr929_SIL_B.UnitDelay.rel_alt > cr929_SIL_P.TakeOffAlt) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_ReachSafeAltitude; - cr929_SIL_B.landed_state_p = ENUM_LANDED_STATE_IN_AIR; + cr929_SIL_B.landed_state_f = ENUM_LANDED_STATE_IN_AIR; } break; case cr929_SIL_IN_ReachCruiseSpeed: - cr929_SIL_B.mode_l = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.mode_b = ENUM_mode_AUTO_MISSION; cr929_SIL_B.AT_i = ENUM_AT_AS; - if (cr929_SIL_DW.temporalCounter_i1_c >= 980U) { + if (cr929_SIL_DW.temporalCounter_i1_h3 >= 980U) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_Done; - rtb_out_gz = cr929_SIL_B.WP_out_j + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; + rtb_out_et = cr929_SIL_B.WP_out_a + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; } - cr929_SIL_B.WP_out_j = (uint16_T)rtb_out_gz; + cr929_SIL_B.WP_out_a = (uint16_T)rtb_out_et; } else { - cr929_SIL_B.CSAS_yaw_p = + cr929_SIL_B.CSAS_yaw_a = cr929_SIL_B.BusAssignment_g.CSAS_yaw; - cr929_SIL_B.WP_out_j = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.WP_out_a = cr929_SIL_B.BusAssignment_g.WP_cur; } break; case cr929_SIL_IN_ReachSafeAltitude: - cr929_SIL_B.landed_state_p = ENUM_LANDED_STATE_IN_AIR; + cr929_SIL_B.landed_state_f = ENUM_LANDED_STATE_IN_AIR; if (cr929_SIL_B.BusAssignment_h.IAS > cr929_SIL_P.min_AS) { if (cr929_SIL_P.auto_gear_updown != 0.0F) { cr929_SIL_B.gear_up_c = true; @@ -18385,29 +17927,29 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_ReachSafeSpeed; - cr929_SIL_B.AFCS_VERT_f = ENUM_AFCS_VERT_VNAV2THT; - cr929_SIL_B.AFCS_LAT_h = ENUM_AFCS_LAT_LNAV2PHI; - cr929_SIL_B.CSAS_yaw_p = ENUM_CSAS_YAW_DAMPING; + cr929_SIL_B.AFCS_VERT_n = ENUM_AFCS_VERT_VNAV2THT; + cr929_SIL_B.AFCS_LAT_p = ENUM_AFCS_LAT_LNAV2PHI; + cr929_SIL_B.CSAS_yaw_a = ENUM_CSAS_YAW_DAMPING; } break; case cr929_SIL_IN_ReachSafeSpeed: - cr929_SIL_B.AFCS_VERT_f = ENUM_AFCS_VERT_VNAV2THT; - cr929_SIL_B.AFCS_LAT_h = ENUM_AFCS_LAT_LNAV2PHI; + cr929_SIL_B.AFCS_VERT_n = ENUM_AFCS_VERT_VNAV2THT; + cr929_SIL_B.AFCS_LAT_p = ENUM_AFCS_LAT_LNAV2PHI; if ((cr929_SIL_B.BusAssignment_h.IAS > cr929_SIL_P.CruiseSpeed - - 2.0F) || (cr929_SIL_B.WP_out_j != + - 2.0F) || (cr929_SIL_B.WP_out_a != cr929_SIL_B.BusAssignment_g.WP_cur)) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_ReachCruiseSpeed; - cr929_SIL_DW.temporalCounter_i1_c = 0U; - cr929_SIL_B.mode_l = ENUM_mode_AUTO_MISSION; + cr929_SIL_DW.temporalCounter_i1_h3 = 0U; + cr929_SIL_B.mode_b = ENUM_mode_AUTO_MISSION; cr929_SIL_B.AT_i = ENUM_AT_AS; - cr929_SIL_B.as_c_n = cr929_SIL_P.CruiseSpeed; - cr929_SIL_B.WP_out_j = cr929_SIL_B.BusAssignment_g.WP_cur; - cr929_SIL_B.CSAS_yaw_p = + cr929_SIL_B.as_c_k = cr929_SIL_P.CruiseSpeed; + cr929_SIL_B.WP_out_a = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.CSAS_yaw_a = cr929_SIL_B.BusAssignment_g.CSAS_yaw; } else { - cr929_SIL_B.CSAS_yaw_p = + cr929_SIL_B.CSAS_yaw_a = cr929_SIL_B.BusAssignment_g.CSAS_yaw; } break; @@ -18419,9 +17961,9 @@ void cr929_SIL_step(void) (cr929_SIL_B.UnitDelay.rel_alt > cr929_SIL_P.TakeOffAlt)) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_LiftUp; - cr929_SIL_B.landed_state_p = ENUM_LANDED_STATE_TAKEOFF; + cr929_SIL_B.landed_state_f = ENUM_LANDED_STATE_TAKEOFF; } else { - if ((cr929_SIL_DW.temporalCounter_i1_c >= 1633U) || + if ((cr929_SIL_DW.temporalCounter_i1_h3 >= 1633U) || (cr929_SIL_B.BusAssignment_g.rc.throttle_cmd < 0.25F)) { cr929_SIL_B.tht_c = cr929_SIL_DW.tht0; cr929_SIL_DW.is_c17_cr929_autopilot = @@ -18433,17 +17975,17 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_StateBy: - cr929_SIL_B.mode_l = ENUM_mode_AUTO_READY; + cr929_SIL_B.mode_b = ENUM_mode_AUTO_READY; cr929_SIL_B.state = ENUM_SystemState_STANDBY; - cr929_SIL_B.landed_state_p = ENUM_LANDED_STATE_ON_GROUND; + cr929_SIL_B.landed_state_f = ENUM_LANDED_STATE_ON_GROUND; cr929_SIL_B.vtol_state = ENUM_VTOL_STATE_FW; - cr929_SIL_B.use_mission_traj_k = true; - cr929_SIL_B.AFCS_VERT_f = ENUM_AFCS_VERT_OFF; - cr929_SIL_B.AFCS_LAT_h = ENUM_AFCS_LAT_OFF; + cr929_SIL_B.use_mission_traj_c = true; + cr929_SIL_B.AFCS_VERT_n = ENUM_AFCS_VERT_OFF; + cr929_SIL_B.AFCS_LAT_p = ENUM_AFCS_LAT_OFF; cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_OFF; - cr929_SIL_B.CSAS_pitch_j = ENUM_CSAS_PITCH_COMMAND; + cr929_SIL_B.CSAS_pitch_e = ENUM_CSAS_PITCH_COMMAND; cr929_SIL_B.AT_i = ENUM_AT_OFF; - cr929_SIL_B.phi_c_ck = 0.0F; + cr929_SIL_B.phi_c_l = 0.0F; if ((cr929_SIL_B.BusAssignment_g.rc.throttle_cmd > 0.5F) && cr929_SIL_B.BusAssignment_g.takeoff_cmd && (cr929_SIL_B.BusAssignment_h.satnum >= 9) && @@ -18454,24 +17996,24 @@ void cr929_SIL_step(void) cr929_SIL_B.takeoff_cmd_out = false; cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_Taxi; cr929_SIL_B.state = ENUM_SystemState_ACTIVE; - cr929_SIL_B.AFCS_LAT_h = ENUM_AFCS_LAT_LNAV2PSIDOT; - cr929_SIL_B.CSAS_yaw_p = ENUM_CSAS_YAW_PSIDOT_CTRL; + cr929_SIL_B.AFCS_LAT_p = ENUM_AFCS_LAT_LNAV2PSIDOT; + cr929_SIL_B.CSAS_yaw_a = ENUM_CSAS_YAW_PSIDOT_CTRL; cr929_SIL_B.AT_i = ENUM_AT_GS; - cr929_SIL_B.gs_c_e = cr929_SIL_P.TaxiSpeed; + cr929_SIL_B.gs_c_hx = cr929_SIL_P.TaxiSpeed; cr929_SIL_B.brake_c_i = false; cr929_SIL_DW.tht0 = cr929_SIL_B.BusAssignment_h.tht; } break; case cr929_SIL_IN_Stop: - cr929_SIL_B.AFCS_LAT_h = ENUM_AFCS_LAT_OFF; - cr929_SIL_B.CSAS_pitch_j = ENUM_CSAS_PITCH_OFF; + cr929_SIL_B.AFCS_LAT_p = ENUM_AFCS_LAT_OFF; + cr929_SIL_B.CSAS_pitch_e = ENUM_CSAS_PITCH_OFF; cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_OFF; break; case cr929_SIL_IN_Taxi: cr929_SIL_B.state = ENUM_SystemState_ACTIVE; - cr929_SIL_B.AFCS_LAT_h = ENUM_AFCS_LAT_LNAV2PSIDOT; + cr929_SIL_B.AFCS_LAT_p = ENUM_AFCS_LAT_LNAV2PSIDOT; cr929_SIL_B.AT_i = ENUM_AT_GS; if (cr929_SIL_B.BusAssignment_g.rc.throttle_cmd < 0.25F) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_StateBy; @@ -18481,22 +18023,22 @@ void cr929_SIL_step(void) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_ThrottleUp; - cr929_SIL_B.mode_l = ENUM_mode_AUTO_TAKEOFF; + cr929_SIL_B.mode_b = ENUM_mode_AUTO_TAKEOFF; cr929_SIL_B.AT_i = ENUM_AT_COMMAND; - cr929_SIL_B.throttle_c_out_m = + cr929_SIL_B.throttle_c_out_n = cr929_SIL_B.BusAssignment_g.throttle_c; } } break; default: - cr929_SIL_B.mode_l = ENUM_mode_AUTO_TAKEOFF; + cr929_SIL_B.mode_b = ENUM_mode_AUTO_TAKEOFF; cr929_SIL_B.AT_i = ENUM_AT_COMMAND; - if (cr929_SIL_B.throttle_c_out_m > cr929_SIL_P.TakeOffThrottle) + if (cr929_SIL_B.throttle_c_out_n > cr929_SIL_P.TakeOffThrottle) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_Acc_Taxi_Low; - cr929_SIL_B.throttle_c_out_m = cr929_SIL_P.TakeOffThrottle; + cr929_SIL_B.throttle_c_out_n = cr929_SIL_P.TakeOffThrottle; } else if ((cr929_SIL_B.BusAssignment_g.rc.throttle_cmd < 0.25F) || (-cr929_SIL_B.UnitDelay.dist_offset > cr929_SIL_P.max_taxi) || @@ -18507,7 +18049,7 @@ void cr929_SIL_step(void) cr929_SIL_B.AT_i = ENUM_AT_OFF; cr929_SIL_B.brake_c_i = true; } else { - cr929_SIL_B.throttle_c_out_m += cr929_SIL_P.ThrottleRate * + cr929_SIL_B.throttle_c_out_n += cr929_SIL_P.ThrottleRate * 0.003062F; } break; @@ -18522,7 +18064,7 @@ void cr929_SIL_step(void) if (guard1) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_RollingUp; - cr929_SIL_DW.temporalCounter_i1_c = 0U; + cr929_SIL_DW.temporalCounter_i1_h3 = 0U; cr929_SIL_B.tht_c = cr929_SIL_B.BusAssignment_g.takeoff_tht; } } @@ -18531,24 +18073,24 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_cc = cr929_SIL_B.BusAssignment_g; - rtb_Merge_cc.mode = cr929_SIL_B.mode_l; + rtb_Merge_cc.mode = cr929_SIL_B.mode_b; rtb_Merge_cc.state = cr929_SIL_B.state; - rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state_p; + rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state_f; rtb_Merge_cc.vtol_state = cr929_SIL_B.vtol_state; - rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_j; - rtb_Merge_cc.use_mission_traj = cr929_SIL_B.use_mission_traj_k; + rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_a; + rtb_Merge_cc.use_mission_traj = cr929_SIL_B.use_mission_traj_c; rtb_Merge_cc.home = cr929_SIL_B.home; - rtb_Merge_cc.AFCS_VERT = cr929_SIL_B.AFCS_VERT_f; - rtb_Merge_cc.AFCS_LAT = cr929_SIL_B.AFCS_LAT_h; - rtb_Merge_cc.CSAS_pitch = cr929_SIL_B.CSAS_pitch_j; + rtb_Merge_cc.AFCS_VERT = cr929_SIL_B.AFCS_VERT_n; + rtb_Merge_cc.AFCS_LAT = cr929_SIL_B.AFCS_LAT_p; + rtb_Merge_cc.CSAS_pitch = cr929_SIL_B.CSAS_pitch_e; rtb_Merge_cc.CSAS_roll = cr929_SIL_B.CSAS_roll_o; - rtb_Merge_cc.CSAS_yaw = cr929_SIL_B.CSAS_yaw_p; + rtb_Merge_cc.CSAS_yaw = cr929_SIL_B.CSAS_yaw_a; rtb_Merge_cc.AT = cr929_SIL_B.AT_i; - rtb_Merge_cc.throttle_c = cr929_SIL_B.throttle_c_out_m; + rtb_Merge_cc.throttle_c = cr929_SIL_B.throttle_c_out_n; rtb_Merge_cc.tht_c = cr929_SIL_B.tht_c; - rtb_Merge_cc.phi_c = cr929_SIL_B.phi_c_ck; - rtb_Merge_cc.as_c = cr929_SIL_B.as_c_n; - rtb_Merge_cc.gs_c = cr929_SIL_B.gs_c_e; + rtb_Merge_cc.phi_c = cr929_SIL_B.phi_c_l; + rtb_Merge_cc.as_c = cr929_SIL_B.as_c_k; + rtb_Merge_cc.gs_c = cr929_SIL_B.gs_c_hx; rtb_Merge_cc.brake_c = cr929_SIL_B.brake_c_i; rtb_Merge_cc.gear_up = cr929_SIL_B.gear_up_c; rtb_Merge_cc.de_c = cr929_SIL_B.de_c; @@ -18565,7 +18107,7 @@ void cr929_SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/landing_task' */ - cr929_SIL_DW.temporalCounter_i1_e = 0U; + cr929_SIL_DW.temporalCounter_i1_fa = 0U; cr929_SIL_DW.is_active_c14_cr929_autopilot = 0U; cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -18582,22 +18124,22 @@ void cr929_SIL_step(void) * Constant: '/Constant Single51' * Constant: '/Constant' */ - if (cr929_SIL_DW.temporalCounter_i1_e < 1023U) { - cr929_SIL_DW.temporalCounter_i1_e++; + if (cr929_SIL_DW.temporalCounter_i1_fa < 1023U) { + cr929_SIL_DW.temporalCounter_i1_fa++; } if (cr929_SIL_DW.is_active_c14_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c14_cr929_autopilot = 1U; cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_Approach; - cr929_SIL_B.mode_c = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.mode_g = ENUM_mode_AUTO_MISSION; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_IN_AIR; - cr929_SIL_B.WP_out_c = cr929_SIL_B.BusAssignment_g.WP_cur; - cr929_SIL_B.use_mission_traj_a = true; + cr929_SIL_B.WP_out_o = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.use_mission_traj_m = true; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_VNAV2THT; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PHI; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; cr929_SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; - cr929_SIL_B.AT_j = ENUM_AT_GS; + cr929_SIL_B.AT_c = ENUM_AT_GS; cr929_SIL_B.throttle_c_out = cr929_SIL_B.BusAssignment_g.throttle_c; cr929_SIL_B.hdot_c = -0.5F; @@ -18606,7 +18148,7 @@ void cr929_SIL_step(void) cr929_SIL_B.gear_up_c_out = cr929_SIL_B.BusAssignment_g.rc.gear_up; cr929_SIL_B.brake_c = false; - cr929_SIL_B.phi_c_c = 0.0F; + cr929_SIL_B.phi_c_g = 0.0F; cr929_SIL_B.CSAS_yaw = cr929_SIL_B.BusAssignment_g.CSAS_yaw; } else { guard1 = false; @@ -18615,21 +18157,21 @@ void cr929_SIL_step(void) guard4 = false; switch (cr929_SIL_DW.is_c14_cr929_autopilot) { case cr929_SIL_IN_Approach: - cr929_SIL_B.mode_c = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.mode_g = ENUM_mode_AUTO_MISSION; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_IN_AIR; - cr929_SIL_B.use_mission_traj_a = true; + cr929_SIL_B.use_mission_traj_m = true; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_VNAV2THT; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PHI; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; cr929_SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; - cr929_SIL_B.AT_j = ENUM_AT_GS; + cr929_SIL_B.AT_c = ENUM_AT_GS; cr929_SIL_B.hdot_c = -0.5F; cr929_SIL_B.brake_c = false; - cr929_SIL_B.phi_c_c = 0.0F; + cr929_SIL_B.phi_c_g = 0.0F; if ((cr929_SIL_B.UnitDelay.v_g < cr929_SIL_P.GearDownSpeed) && (cr929_SIL_P.auto_gear_updown != 0.0F)) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_GearDown; - cr929_SIL_B.WP_out_c = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.WP_out_o = cr929_SIL_B.BusAssignment_g.WP_cur; cr929_SIL_B.throttle_c_out = cr929_SIL_B.BusAssignment_g.throttle_c; cr929_SIL_B.gear_up_c_out = false; @@ -18640,11 +18182,11 @@ void cr929_SIL_step(void) if (cr929_SIL_B.UnitDelay.rel_alt < cr929_SIL_P.FlareAlt) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_Flare_high; - cr929_SIL_B.mode_c = ENUM_mode_AUTO_LAND; + cr929_SIL_B.mode_g = ENUM_mode_AUTO_LAND; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_LANDING; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; cr929_SIL_B.hdot_c = -0.5F; - cr929_SIL_B.AT_j = ENUM_AT_COMMAND; + cr929_SIL_B.AT_c = ENUM_AT_COMMAND; cr929_SIL_B.throttle_c_out = cr929_SIL_B.BusAssignment_g.throttle_c; cr929_SIL_B.CSAS_yaw = @@ -18664,11 +18206,11 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_Flare_high: - cr929_SIL_B.mode_c = ENUM_mode_AUTO_LAND; + cr929_SIL_B.mode_g = ENUM_mode_AUTO_LAND; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_LANDING; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; cr929_SIL_B.hdot_c = -0.5F; - cr929_SIL_B.AT_j = ENUM_AT_COMMAND; + cr929_SIL_B.AT_c = ENUM_AT_COMMAND; if (cr929_SIL_B.throttle_c_out < 0.01F) { guard2 = true; } else if (cr929_SIL_B.BusAssignment_g.rc.throttle_cmd > 0.9F) @@ -18687,7 +18229,7 @@ void cr929_SIL_step(void) case cr929_SIL_IN_Flare_low: cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PSIDOT; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; - cr929_SIL_B.phi_c_c = 0.0F; + cr929_SIL_B.phi_c_g = 0.0F; if (cr929_SIL_B.BusAssignment_g.rc.throttle_cmd > 0.9F) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_WaveOff; cr929_SIL_enter_atomic_WaveOff(); @@ -18701,7 +18243,7 @@ void cr929_SIL_step(void) if ((cr929_SIL_B.BusAssignment_h.bear_state & 3) == 3) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_TwoWheel; - cr929_SIL_DW.temporalCounter_i1_e = 0U; + cr929_SIL_DW.temporalCounter_i1_fa = 0U; } } break; @@ -18712,11 +18254,11 @@ void cr929_SIL_step(void) if (cr929_SIL_B.UnitDelay.rel_alt < cr929_SIL_P.FlareAlt) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_Flare_high; - cr929_SIL_B.mode_c = ENUM_mode_AUTO_LAND; + cr929_SIL_B.mode_g = ENUM_mode_AUTO_LAND; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_LANDING; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; cr929_SIL_B.hdot_c = -0.5F; - cr929_SIL_B.AT_j = ENUM_AT_COMMAND; + cr929_SIL_B.AT_c = ENUM_AT_COMMAND; cr929_SIL_B.throttle_c_out = cr929_SIL_B.BusAssignment_g.throttle_c; cr929_SIL_B.CSAS_yaw = @@ -18735,7 +18277,7 @@ void cr929_SIL_step(void) } break; - case cr929_SIL_IN_Stop_f: + case cr929_SIL_IN_Stop_m: cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_OFF; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_OFF; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_OFF; @@ -18746,7 +18288,7 @@ void cr929_SIL_step(void) cr929_SIL_B.brake_c = true; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_ON_GROUND; if (cr929_SIL_B.UnitDelay.v_g < 2.0F) { - cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_Stop_f; + cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_Stop_m; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_OFF; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_OFF; cr929_SIL_B.CSAS_yaw = ENUM_CSAS_YAW_OFF; @@ -18758,10 +18300,10 @@ void cr929_SIL_step(void) case cr929_SIL_IN_ThreeWheel: if ((cr929_SIL_B.BusAssignment_h.bear_state & 7) != 7) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_TwoWheel; - cr929_SIL_DW.temporalCounter_i1_e = 0U; + cr929_SIL_DW.temporalCounter_i1_fa = 0U; } else { if ((cr929_SIL_B.UnitDelay.v_g < cr929_SIL_P.LandingSpeed * - 0.75F) || (cr929_SIL_DW.temporalCounter_i1_e >= 327U)) + 0.75F) || (cr929_SIL_DW.temporalCounter_i1_fa >= 327U)) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_Taxi_Brake; @@ -18775,8 +18317,8 @@ void cr929_SIL_step(void) if ((cr929_SIL_B.BusAssignment_h.bear_state & 7) == 7) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_ThreeWheel; - cr929_SIL_DW.temporalCounter_i1_e = 0U; - } else if (cr929_SIL_DW.temporalCounter_i1_e >= 980U) { + cr929_SIL_DW.temporalCounter_i1_fa = 0U; + } else if (cr929_SIL_DW.temporalCounter_i1_fa >= 980U) { guard4 = true; } else if ((cr929_SIL_B.BusAssignment_h.bear_state & 3) != 3) { @@ -18785,7 +18327,7 @@ void cr929_SIL_step(void) cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PSIDOT; cr929_SIL_B.CSAS_yaw = ENUM_CSAS_YAW_PSIDOT_CTRL; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; - cr929_SIL_B.phi_c_c = 0.0F; + cr929_SIL_B.phi_c_g = 0.0F; } else { if (cr929_SIL_B.UnitDelay.v_g < cr929_SIL_P.LandingSpeed * 0.75F) { @@ -18795,14 +18337,14 @@ void cr929_SIL_step(void) break; default: - cr929_SIL_B.mode_c = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.mode_g = ENUM_mode_AUTO_MISSION; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_IN_AIR; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PHI; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; cr929_SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; cr929_SIL_B.hdot_c = 0.5F; - cr929_SIL_B.AT_j = ENUM_AT_AS; + cr929_SIL_B.AT_c = ENUM_AT_AS; cr929_SIL_B.CSAS_yaw = cr929_SIL_B.BusAssignment_g.CSAS_yaw; break; } @@ -18816,7 +18358,7 @@ void cr929_SIL_step(void) if (guard3) { cr929_SIL_B.gs_c_h = cr929_SIL_B.BusAssignment_g.gs_c; cr929_SIL_B.CSAS_yaw = cr929_SIL_B.BusAssignment_g.CSAS_yaw; - cr929_SIL_B.WP_out_c = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.WP_out_o = cr929_SIL_B.BusAssignment_g.WP_cur; cr929_SIL_B.throttle_c_out = cr929_SIL_B.BusAssignment_g.throttle_c; } @@ -18827,12 +18369,12 @@ void cr929_SIL_step(void) cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PSIDOT; cr929_SIL_B.CSAS_yaw = ENUM_CSAS_YAW_PSIDOT_CTRL; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; - cr929_SIL_B.phi_c_c = 0.0F; + cr929_SIL_B.phi_c_g = 0.0F; } if (guard1) { cr929_SIL_B.CSAS_yaw = cr929_SIL_B.BusAssignment_g.CSAS_yaw; - cr929_SIL_B.WP_out_c = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.WP_out_o = cr929_SIL_B.BusAssignment_g.WP_cur; cr929_SIL_B.throttle_c_out = cr929_SIL_B.BusAssignment_g.throttle_c; cr929_SIL_B.gear_up_c_out = @@ -18845,23 +18387,23 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_cc = cr929_SIL_B.BusAssignment_g; - rtb_Merge_cc.mode = cr929_SIL_B.mode_c; + rtb_Merge_cc.mode = cr929_SIL_B.mode_g; rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state; - rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_c; - rtb_Merge_cc.use_mission_traj = cr929_SIL_B.use_mission_traj_a; + rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_o; + rtb_Merge_cc.use_mission_traj = cr929_SIL_B.use_mission_traj_m; rtb_Merge_cc.AFCS_VERT = cr929_SIL_B.AFCS_VERT; rtb_Merge_cc.AFCS_LAT = cr929_SIL_B.AFCS_LAT; rtb_Merge_cc.CSAS_pitch = cr929_SIL_B.CSAS_pitch; rtb_Merge_cc.CSAS_roll = cr929_SIL_B.CSAS_roll; rtb_Merge_cc.CSAS_yaw = cr929_SIL_B.CSAS_yaw; - rtb_Merge_cc.AT = cr929_SIL_B.AT_j; + rtb_Merge_cc.AT = cr929_SIL_B.AT_c; rtb_Merge_cc.throttle_c = cr929_SIL_B.throttle_c_out; rtb_Merge_cc.hdot_c = cr929_SIL_B.hdot_c; rtb_Merge_cc.as_c = cr929_SIL_B.as_c; rtb_Merge_cc.gs_c = cr929_SIL_B.gs_c_h; rtb_Merge_cc.gear_up = cr929_SIL_B.gear_up_c_out; rtb_Merge_cc.brake_c = cr929_SIL_B.brake_c; - rtb_Merge_cc.phi_c = cr929_SIL_B.phi_c_c; + rtb_Merge_cc.phi_c = cr929_SIL_B.phi_c_g; /* End of Outputs for SubSystem: '/landing' */ break; @@ -18894,14 +18436,14 @@ void cr929_SIL_step(void) (cr929_SIL_B.BusAssignment_h.TAS < cr929_SIL_P.max_GS) && (cr929_SIL_B.BusAssignment_h.TAS < cr929_SIL_P.min_AS) && (cr929_SIL_B.UnitDelay.v_g < cr929_SIL_P.min_AS)) { - cr929_SIL_DW.is_c18_cr929_autopilot = cr929_SIL_IN_Taxi_f; + cr929_SIL_DW.is_c18_cr929_autopilot = cr929_SIL_IN_Taxi_h; rtb_level5_lgx = ENUM_waypoint_level5_TAXI; } else { cr929_SIL_DW.is_c18_cr929_autopilot = cr929_SIL_IN_WayPoint; rtb_level5_lgx = ENUM_waypoint_level5_WAYPOINT; } } else if (cr929_SIL_DW.is_c18_cr929_autopilot == - cr929_SIL_IN_Taxi_f) { + cr929_SIL_IN_Taxi_h) { rtb_level5_lgx = ENUM_waypoint_level5_TAXI; } else { rtb_level5_lgx = ENUM_waypoint_level5_WAYPOINT; @@ -18937,7 +18479,7 @@ void cr929_SIL_step(void) * Chart: '/waypoint_task' */ cr929_SIL_DW.is_Taxi = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - cr929_SIL_DW.temporalCounter_i1_bi = 0U; + cr929_SIL_DW.temporalCounter_i1_dg = 0U; cr929_SIL_DW.is_active_c20_cr929_autopilot = 0U; cr929_SIL_DW.is_c20_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -18951,46 +18493,46 @@ void cr929_SIL_step(void) /* Chart: '/waypoint_task' incorporates: * Constant: '/Constant Single53' */ - if (cr929_SIL_DW.temporalCounter_i1_bi < 511U) { - cr929_SIL_DW.temporalCounter_i1_bi++; + if (cr929_SIL_DW.temporalCounter_i1_dg < 511U) { + cr929_SIL_DW.temporalCounter_i1_dg++; } if (cr929_SIL_DW.is_active_c20_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c20_cr929_autopilot = 1U; cr929_SIL_DW.is_c20_cr929_autopilot = cr929_SIL_IN_WP; - cr929_SIL_B.mode_n = ENUM_mode_AUTO_MISSION; - cr929_SIL_B.landed_state_out_f = + cr929_SIL_B.mode_l = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.landed_state_out_a = rtb_BusAssignment_o.landed_state; - cr929_SIL_B.WP_out_h = rtb_BusAssignment_o.WP_cur; - cr929_SIL_B.use_mission_traj_g = true; - cr929_SIL_B.AFCS_VERT_out_m = rtb_BusAssignment_o.AFCS_VERT; + cr929_SIL_B.WP_out_j = rtb_BusAssignment_o.WP_cur; + cr929_SIL_B.use_mission_traj_i = true; + cr929_SIL_B.AFCS_VERT_out_h = rtb_BusAssignment_o.AFCS_VERT; cr929_SIL_B.AFCS_LAT_out_j = rtb_BusAssignment_o.AFCS_LAT; - cr929_SIL_B.CSAS_pitch_out_m = rtb_BusAssignment_o.CSAS_pitch; - cr929_SIL_B.CSAS_roll_out_o = rtb_BusAssignment_o.CSAS_roll; - cr929_SIL_B.CSAS_yaw_out_i = rtb_BusAssignment_o.CSAS_yaw; - cr929_SIL_B.AT_out_h = rtb_BusAssignment_o.AT; - cr929_SIL_B.brake_c_out_c = rtb_BusAssignment_o.brake_c; + cr929_SIL_B.CSAS_pitch_out_j = rtb_BusAssignment_o.CSAS_pitch; + cr929_SIL_B.CSAS_roll_out_j = rtb_BusAssignment_o.CSAS_roll; + cr929_SIL_B.CSAS_yaw_out_m = rtb_BusAssignment_o.CSAS_yaw; + cr929_SIL_B.AT_out_g = rtb_BusAssignment_o.AT; + cr929_SIL_B.brake_c_out_n = rtb_BusAssignment_o.brake_c; } else { switch (cr929_SIL_DW.is_c20_cr929_autopilot) { case cr929_SIL_IN_NextWP: break; - case cr929_SIL_IN_Taxi_i: - if ((cr929_SIL_DW.temporalCounter_i1_bi >= 327U) && + case cr929_SIL_IN_Taxi_c: + if ((cr929_SIL_DW.temporalCounter_i1_dg >= 327U) && rtb_BusAssignment_o.autocont && (cr929_SIL_B.UnitDelay.dist_offset < rtb_BusAssignment_o.dist_trans)) { cr929_SIL_DW.is_Taxi = cr929_SIL_IN_NO_ACTIVE_CHILD_n; cr929_SIL_DW.is_c20_cr929_autopilot = cr929_SIL_IN_NextWP; - rtb_out_gz = cr929_SIL_B.WP_out_h + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; + rtb_out_et = cr929_SIL_B.WP_out_j + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; } - cr929_SIL_B.WP_out_h = (uint16_T)rtb_out_gz; + cr929_SIL_B.WP_out_j = (uint16_T)rtb_out_et; } else if (cr929_SIL_DW.is_Taxi == cr929_SIL_IN_Brake) { if (rtb_BusAssignment_o.rc.throttle_cmd > 0.3F) { - cr929_SIL_DW.is_Taxi = cr929_SIL_IN_Taxi_i; + cr929_SIL_DW.is_Taxi = cr929_SIL_IN_Taxi_c; cr929_SIL_B.gs_c = cr929_SIL_P.TaxiSpeed; } } else if (rtb_BusAssignment_o.rc.throttle_cmd < 0.3F) { @@ -19002,19 +18544,19 @@ void cr929_SIL_step(void) break; default: - cr929_SIL_B.mode_n = ENUM_mode_AUTO_MISSION; - cr929_SIL_B.use_mission_traj_g = true; - cr929_SIL_DW.is_c20_cr929_autopilot = cr929_SIL_IN_Taxi_i; - cr929_SIL_DW.temporalCounter_i1_bi = 0U; - cr929_SIL_B.landed_state_out_f = ENUM_LANDED_STATE_ON_GROUND; - cr929_SIL_B.AFCS_VERT_out_m = ENUM_AFCS_VERT_OFF; + cr929_SIL_B.mode_l = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.use_mission_traj_i = true; + cr929_SIL_DW.is_c20_cr929_autopilot = cr929_SIL_IN_Taxi_c; + cr929_SIL_DW.temporalCounter_i1_dg = 0U; + cr929_SIL_B.landed_state_out_a = ENUM_LANDED_STATE_ON_GROUND; + cr929_SIL_B.AFCS_VERT_out_h = ENUM_AFCS_VERT_OFF; cr929_SIL_B.AFCS_LAT_out_j = ENUM_AFCS_LAT_LNAV2PSIDOT; - cr929_SIL_B.CSAS_pitch_out_m = ENUM_CSAS_PITCH_OFF; - cr929_SIL_B.CSAS_roll_out_o = ENUM_CSAS_ROLL_OFF; - cr929_SIL_B.CSAS_yaw_out_i = ENUM_CSAS_YAW_PSIDOT_CTRL; - cr929_SIL_B.AT_out_h = ENUM_AT_GS; - cr929_SIL_B.brake_c_out_c = false; - cr929_SIL_DW.is_Taxi = cr929_SIL_IN_Taxi_i; + cr929_SIL_B.CSAS_pitch_out_j = ENUM_CSAS_PITCH_OFF; + cr929_SIL_B.CSAS_roll_out_j = ENUM_CSAS_ROLL_OFF; + cr929_SIL_B.CSAS_yaw_out_m = ENUM_CSAS_YAW_PSIDOT_CTRL; + cr929_SIL_B.AT_out_g = ENUM_AT_GS; + cr929_SIL_B.brake_c_out_n = false; + cr929_SIL_DW.is_Taxi = cr929_SIL_IN_Taxi_c; cr929_SIL_B.gs_c = cr929_SIL_P.TaxiSpeed; break; } @@ -19024,18 +18566,18 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_cc = rtb_BusAssignment_o; - rtb_Merge_cc.mode = cr929_SIL_B.mode_n; - rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state_out_f; - rtb_Merge_cc.use_mission_traj = cr929_SIL_B.use_mission_traj_g; - rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_h; - rtb_Merge_cc.AFCS_VERT = cr929_SIL_B.AFCS_VERT_out_m; + rtb_Merge_cc.mode = cr929_SIL_B.mode_l; + rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state_out_a; + rtb_Merge_cc.use_mission_traj = cr929_SIL_B.use_mission_traj_i; + rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_j; + rtb_Merge_cc.AFCS_VERT = cr929_SIL_B.AFCS_VERT_out_h; rtb_Merge_cc.AFCS_LAT = cr929_SIL_B.AFCS_LAT_out_j; - rtb_Merge_cc.CSAS_pitch = cr929_SIL_B.CSAS_pitch_out_m; - rtb_Merge_cc.CSAS_roll = cr929_SIL_B.CSAS_roll_out_o; - rtb_Merge_cc.CSAS_yaw = cr929_SIL_B.CSAS_yaw_out_i; - rtb_Merge_cc.AT = cr929_SIL_B.AT_out_h; + rtb_Merge_cc.CSAS_pitch = cr929_SIL_B.CSAS_pitch_out_j; + rtb_Merge_cc.CSAS_roll = cr929_SIL_B.CSAS_roll_out_j; + rtb_Merge_cc.CSAS_yaw = cr929_SIL_B.CSAS_yaw_out_m; + rtb_Merge_cc.AT = cr929_SIL_B.AT_out_g; rtb_Merge_cc.gs_c = cr929_SIL_B.gs_c; - rtb_Merge_cc.brake_c = cr929_SIL_B.brake_c_out_c; + rtb_Merge_cc.brake_c = cr929_SIL_B.brake_c_out_n; /* End of Outputs for SubSystem: '/taxi' */ break; @@ -19364,11 +18906,11 @@ void cr929_SIL_step(void) */ /* Saturate: '/Saturation' */ if (cr929_SIL_B.params_k[0] > 1.0F) { - rtb_phi_c_c = 1.0F; + rtb_phi_c_h = 1.0F; } else if (cr929_SIL_B.params_k[0] < 0.3F) { - rtb_phi_c_c = 0.3F; + rtb_phi_c_h = 0.3F; } else { - rtb_phi_c_c = cr929_SIL_B.params_k[0]; + rtb_phi_c_h = cr929_SIL_B.params_k[0]; } /* End of Saturate: '/Saturation' */ @@ -19385,7 +18927,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c78_maneuver = cr929_SIL_IN_wait; cr929_SIL_B.cmd_out_i = rtb_BusAssignment_o.maneuver_cmd; cr929_SIL_B.max_da_out = rtb_BusAssignment_o.max_da * - rtb_phi_c_c; + rtb_phi_c_h; cr929_SIL_B.use_da2dsp_out_e = (cr929_SIL_B.params_k[2] != 0.0F); } else { @@ -19396,16 +18938,16 @@ void cr929_SIL_step(void) case cr929_SIL_IN_Turning: /* Saturate: '/Saturation1' */ if (cr929_SIL_B.params_k[1] > 10.0F) { - rtb_phi_c_c = 10.0F; + rtb_phi_c_h = 10.0F; } else if (cr929_SIL_B.params_k[1] < 0.3F) { - rtb_phi_c_c = 0.3F; + rtb_phi_c_h = 0.3F; } else { - rtb_phi_c_c = cr929_SIL_B.params_k[1]; + rtb_phi_c_h = cr929_SIL_B.params_k[1]; } /* End of Saturate: '/Saturation1' */ if (cr929_SIL_DW.temporalCounter_i1_mp >= (uint32_T)ceil - (rtb_phi_c_c / 0.003062 - 3.062E-11)) { + (rtb_phi_c_h / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c78_maneuver = cr929_SIL_IN_End; cr929_SIL_B.cmd_out_i = 0; cr929_SIL_B.max_da_out = rtb_BusAssignment_o.max_da; @@ -19420,7 +18962,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.temporalCounter_i1_mp = 0U; } else { cr929_SIL_B.max_da_out = rtb_BusAssignment_o.max_da * - rtb_phi_c_c; + rtb_phi_c_h; } break; } @@ -19448,7 +18990,7 @@ void cr929_SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/steady_beta' */ - cr929_SIL_DW.temporalCounter_i1_ig = 0U; + cr929_SIL_DW.temporalCounter_i1_i = 0U; cr929_SIL_DW.is_active_c2_maneuver = 0U; cr929_SIL_DW.is_c2_maneuver = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -19460,17 +19002,17 @@ void cr929_SIL_step(void) */ /* Saturate: '/Saturation1' */ if (cr929_SIL_B.params_k[0] > 1.0F) { - rtb_phi_c_c = 1.0F; + rtb_phi_c_h = 1.0F; } else if (cr929_SIL_B.params_k[0] < -1.0F) { - rtb_phi_c_c = -1.0F; + rtb_phi_c_h = -1.0F; } else { - rtb_phi_c_c = cr929_SIL_B.params_k[0]; + rtb_phi_c_h = cr929_SIL_B.params_k[0]; } /* End of Saturate: '/Saturation1' */ /* Product: '/Product' */ - rtb_phi_c_c *= rtb_BusAssignment_o.max_dr; + rtb_phi_c_h *= rtb_BusAssignment_o.max_dr; /* Saturate: '/Saturation' */ if (cr929_SIL_B.params_k[1] > 20.0F) { @@ -19484,14 +19026,14 @@ void cr929_SIL_step(void) /* End of Saturate: '/Saturation' */ /* Chart: '/steady_beta' */ - if (cr929_SIL_DW.temporalCounter_i1_ig < MAX_uint32_T) { - cr929_SIL_DW.temporalCounter_i1_ig++; + if (cr929_SIL_DW.temporalCounter_i1_i < MAX_uint32_T) { + cr929_SIL_DW.temporalCounter_i1_i++; } if (cr929_SIL_DW.is_active_c2_maneuver == 0U) { cr929_SIL_DW.is_active_c2_maneuver = 1U; cr929_SIL_DW.is_c2_maneuver = cr929_SIL_IN_Rise; - cr929_SIL_DW.temporalCounter_i1_ig = 0U; + cr929_SIL_DW.temporalCounter_i1_i = 0U; cr929_SIL_B.cmd_out_hh = rtb_BusAssignment_o.maneuver_cmd; cr929_SIL_B.dr_b = 0.0F; } else { @@ -19500,46 +19042,46 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_Fall: - if (cr929_SIL_DW.temporalCounter_i1_ig >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_i >= (uint32_T)ceil (rtb_uDLookupTable_l / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c2_maneuver = cr929_SIL_IN_End; cr929_SIL_B.cmd_out_hh = 0; cr929_SIL_B.dr_b = 0.0F; } else { - cr929_SIL_B.dr_b = rtb_phi_c_c - (real32_T)((real_T) - cr929_SIL_DW.temporalCounter_i1_ig * 0.003062) * - rtb_phi_c_c / rtb_uDLookupTable_l; + cr929_SIL_B.dr_b = rtb_phi_c_h - (real32_T)((real_T) + cr929_SIL_DW.temporalCounter_i1_i * 0.003062) * + rtb_phi_c_h / rtb_uDLookupTable_l; } break; case cr929_SIL_IN_Keep: /* Saturate: '/Saturation2' */ if (cr929_SIL_B.params_k[2] > 30.0F) { - rtb_phi_c_c = 30.0F; + rtb_phi_c_h = 30.0F; } else if (cr929_SIL_B.params_k[2] < 3.0F) { - rtb_phi_c_c = 3.0F; + rtb_phi_c_h = 3.0F; } else { - rtb_phi_c_c = cr929_SIL_B.params_k[2]; + rtb_phi_c_h = cr929_SIL_B.params_k[2]; } /* End of Saturate: '/Saturation2' */ - if (cr929_SIL_DW.temporalCounter_i1_ig >= (uint32_T)ceil - (rtb_phi_c_c / 0.003062 - 3.062E-11)) { + if (cr929_SIL_DW.temporalCounter_i1_i >= (uint32_T)ceil + (rtb_phi_c_h / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c2_maneuver = cr929_SIL_IN_Fall; - cr929_SIL_DW.temporalCounter_i1_ig = 0U; + cr929_SIL_DW.temporalCounter_i1_i = 0U; } break; default: - if (cr929_SIL_DW.temporalCounter_i1_ig >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_i >= (uint32_T)ceil (rtb_uDLookupTable_l / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c2_maneuver = cr929_SIL_IN_Keep; - cr929_SIL_DW.temporalCounter_i1_ig = 0U; - cr929_SIL_B.dr_b = rtb_phi_c_c; + cr929_SIL_DW.temporalCounter_i1_i = 0U; + cr929_SIL_B.dr_b = rtb_phi_c_h; } else { cr929_SIL_B.dr_b = (real32_T)((real_T) - cr929_SIL_DW.temporalCounter_i1_ig * 0.003062) * - rtb_phi_c_c / rtb_uDLookupTable_l; + cr929_SIL_DW.temporalCounter_i1_i * 0.003062) * + rtb_phi_c_h / rtb_uDLookupTable_l; } break; } @@ -19584,14 +19126,14 @@ void cr929_SIL_step(void) * Switch: '/Switch' */ if (cr929_SIL_B.params_k[0] > cr929_SIL_P.max_AS) { - rtb_phi_c_c = cr929_SIL_P.max_AS; + rtb_phi_c_h = cr929_SIL_P.max_AS; } else if (cr929_SIL_B.params_k[0] < cr929_SIL_P.min_AS) { /* Switch: '/Switch' incorporates: * Constant: '/Constant Single55' */ - rtb_phi_c_c = cr929_SIL_P.min_AS; + rtb_phi_c_h = cr929_SIL_P.min_AS; } else { - rtb_phi_c_c = cr929_SIL_B.params_k[0]; + rtb_phi_c_h = cr929_SIL_B.params_k[0]; } /* End of Switch: '/Switch2' */ @@ -19606,7 +19148,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c3_maneuver = cr929_SIL_IN_start; cr929_SIL_B.cmd_out_a = rtb_BusAssignment_o.maneuver_cmd; cr929_SIL_B.thr_c_e = rtb_BusAssignment_o.throttle_c; - cr929_SIL_B.as = rtb_phi_c_c; + cr929_SIL_B.as = rtb_phi_c_h; cr929_SIL_B.vert_mode_a = ENUM_AFCS_VERT_AS2THT; cr929_SIL_B.AT_l = ENUM_AT_COMMAND; cr929_SIL_DW.as0 = rtb_BusAssignment_o.as_c; @@ -19633,23 +19175,23 @@ void cr929_SIL_step(void) cr929_SIL_B.AT_l = ENUM_AT_AS; cr929_SIL_B.as = cr929_SIL_DW.as0; } else { - cr929_SIL_B.as = rtb_phi_c_c; + cr929_SIL_B.as = rtb_phi_c_h; } break; default: /* Saturate: '/Saturation1' */ if (cr929_SIL_B.params_k[1] > 20.0F) { - rtb_phi_c_c = 20.0F; + rtb_phi_c_h = 20.0F; } else if (cr929_SIL_B.params_k[1] < 8.0F) { - rtb_phi_c_c = 8.0F; + rtb_phi_c_h = 8.0F; } else { - rtb_phi_c_c = cr929_SIL_B.params_k[1]; + rtb_phi_c_h = cr929_SIL_B.params_k[1]; } /* End of Saturate: '/Saturation1' */ if ((cr929_SIL_DW.temporalCounter_i1_n >= (uint32_T)ceil - (rtb_phi_c_c / 0.003062 - 3.062E-11)) || + (rtb_phi_c_h / 0.003062 - 3.062E-11)) || ((cr929_SIL_B.BusAssignment_h.phi > 0.2F) || (cr929_SIL_B.BusAssignment_h.phi < -0.2F))) { cr929_SIL_DW.is_c3_maneuver = cr929_SIL_IN_End; @@ -19716,16 +19258,16 @@ void cr929_SIL_step(void) /* Saturate: '/Saturation' */ if (cr929_SIL_B.params_k[0] > 30.0F) { - rtb_phi_c_c = 30.0F; + rtb_phi_c_h = 30.0F; } else if (cr929_SIL_B.params_k[0] < 1.0F) { - rtb_phi_c_c = 1.0F; + rtb_phi_c_h = 1.0F; } else { - rtb_phi_c_c = cr929_SIL_B.params_k[0]; + rtb_phi_c_h = cr929_SIL_B.params_k[0]; } /* End of Saturate: '/Saturation' */ if (cr929_SIL_DW.temporalCounter_i1_b >= (uint32_T)ceil - (rtb_phi_c_c / 0.003062 - 3.062E-11)) { + (rtb_phi_c_h / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c4_maneuver = cr929_SIL_IN_two1_n; cr929_SIL_B.cmd_out_h = 0; rtb_AFCS_VERT = ENUM_AFCS_VERT_VNAV2THT; @@ -19770,14 +19312,14 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* Gain: '/Gain1' */ - rtb_phi_c_c = 0.0174532924F * cr929_SIL_B.params_k[0]; + rtb_phi_c_h = 0.0174532924F * cr929_SIL_B.params_k[0]; /* Saturate: '/Saturation1' */ - if (rtb_phi_c_c > 0.1F) { - rtb_phi_c_c = 0.1F; + if (rtb_phi_c_h > 0.1F) { + rtb_phi_c_h = 0.1F; } else { - if (rtb_phi_c_c < -0.1F) { - rtb_phi_c_c = -0.1F; + if (rtb_phi_c_h < -0.1F) { + rtb_phi_c_h = -0.1F; } } @@ -19813,11 +19355,11 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c5_maneuver = cr929_SIL_IN_rise2; cr929_SIL_DW.temporalCounter_i1_p = 0U; cr929_SIL_B.cmd_out_g = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.de_n = -rtb_phi_c_c; + cr929_SIL_B.de_n = -rtb_phi_c_h; } else { - cr929_SIL_B.de_n = rtb_phi_c_c - (real32_T)((real_T) + cr929_SIL_B.de_n = rtb_phi_c_h - (real32_T)((real_T) cr929_SIL_DW.temporalCounter_i1_p * 0.003062) * - rtb_phi_c_c / rtb_uDLookupTable_l; + rtb_phi_c_h / rtb_uDLookupTable_l; } break; @@ -19827,11 +19369,11 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c5_maneuver = cr929_SIL_IN_fall; cr929_SIL_DW.temporalCounter_i1_p = 0U; cr929_SIL_B.cmd_out_g = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.de_n = rtb_phi_c_c; + cr929_SIL_B.de_n = rtb_phi_c_h; } else { cr929_SIL_B.de_n = (real32_T)((real_T) cr929_SIL_DW.temporalCounter_i1_p * 0.003062) * - rtb_phi_c_c / rtb_uDLookupTable_l; + rtb_phi_c_h / rtb_uDLookupTable_l; } break; @@ -19844,7 +19386,7 @@ void cr929_SIL_step(void) } else { cr929_SIL_B.de_n = (real32_T)((real_T) cr929_SIL_DW.temporalCounter_i1_p * 0.003062) * - rtb_phi_c_c / rtb_uDLookupTable_l + -rtb_phi_c_c; + rtb_phi_c_h / rtb_uDLookupTable_l + -rtb_phi_c_h; } break; } @@ -19882,19 +19424,19 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* Gain: '/Gain1' */ - rtb_phi_c_c = 0.0174532924F * cr929_SIL_B.params_k[0]; + rtb_phi_c_h = 0.0174532924F * cr929_SIL_B.params_k[0]; /* Switch: '/Switch2' incorporates: * RelationalOperator: '/LowerRelop1' * RelationalOperator: '/UpperRelop' * Switch: '/Switch' */ - if (rtb_phi_c_c > rtb_BusAssignment_o.max_de) { - rtb_phi_c_c = rtb_BusAssignment_o.max_de; + if (rtb_phi_c_h > rtb_BusAssignment_o.max_de) { + rtb_phi_c_h = rtb_BusAssignment_o.max_de; } else { - if (rtb_phi_c_c < rtb_BusAssignment_o.min_de) { + if (rtb_phi_c_h < rtb_BusAssignment_o.min_de) { /* Switch: '/Switch' */ - rtb_phi_c_c = rtb_BusAssignment_o.min_de; + rtb_phi_c_h = rtb_BusAssignment_o.min_de; } } @@ -19921,7 +19463,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c6_maneuver = cr929_SIL_IN_one_l; cr929_SIL_DW.temporalCounter_i1_gs = 0U; cr929_SIL_B.cmd_out_nrs = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.de = rtb_phi_c_c; + cr929_SIL_B.de = rtb_phi_c_h; cr929_SIL_B.de0 = rtb_BusAssignment_o.de_c; cr929_SIL_B.vert_mode_m = ENUM_AFCS_VERT_OFF; cr929_SIL_B.pitch_mode = ENUM_CSAS_PITCH_COMMAND; @@ -19934,7 +19476,7 @@ void cr929_SIL_step(void) (rtb_uDLookupTable_l / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c6_maneuver = cr929_SIL_IN_two; cr929_SIL_DW.temporalCounter_i1_gs = 0U; - cr929_SIL_B.de = -rtb_phi_c_c; + cr929_SIL_B.de = -rtb_phi_c_h; } break; @@ -20000,7 +19542,7 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* Gain: '/Gain1' */ - rtb_phi_c_c = 0.0174532924F * cr929_SIL_B.params_k[0]; + rtb_phi_c_h = 0.0174532924F * cr929_SIL_B.params_k[0]; /* Switch: '/Switch2' incorporates: * Gain: '/Gain' @@ -20008,14 +19550,14 @@ void cr929_SIL_step(void) * RelationalOperator: '/UpperRelop' * Switch: '/Switch' */ - if (rtb_phi_c_c > rtb_BusAssignment_o.max_dr) { - rtb_phi_c_c = rtb_BusAssignment_o.max_dr; + if (rtb_phi_c_h > rtb_BusAssignment_o.max_dr) { + rtb_phi_c_h = rtb_BusAssignment_o.max_dr; } else { - if (rtb_phi_c_c < -rtb_BusAssignment_o.max_dr) { + if (rtb_phi_c_h < -rtb_BusAssignment_o.max_dr) { /* Switch: '/Switch' incorporates: * Gain: '/Gain' */ - rtb_phi_c_c = -rtb_BusAssignment_o.max_dr; + rtb_phi_c_h = -rtb_BusAssignment_o.max_dr; } } @@ -20042,7 +19584,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c7_maneuver = cr929_SIL_IN_one_l; cr929_SIL_DW.temporalCounter_i1_g = 0U; cr929_SIL_B.cmd_out_nr = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.dr_d = rtb_phi_c_c; + cr929_SIL_B.dr_d = rtb_phi_c_h; cr929_SIL_B.da0_b = rtb_BusAssignment_o.da_c; cr929_SIL_B.dr0_hg = rtb_BusAssignment_o.dr_c; cr929_SIL_B.lat_mode_a = ENUM_AFCS_LAT_OFF; @@ -20060,7 +19602,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.temporalCounter_i1_g = 0U; cr929_SIL_B.cmd_out_nr = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.dr_d = -rtb_phi_c_c; + cr929_SIL_B.dr_d = -rtb_phi_c_h; } break; @@ -20130,7 +19672,7 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* Gain: '/Gain1' */ - rtb_phi_c_c = 0.0174532924F * cr929_SIL_B.params_k[0]; + rtb_phi_c_h = 0.0174532924F * cr929_SIL_B.params_k[0]; /* Switch: '/Switch2' incorporates: * Gain: '/Gain' @@ -20138,14 +19680,14 @@ void cr929_SIL_step(void) * RelationalOperator: '/UpperRelop' * Switch: '/Switch' */ - if (rtb_phi_c_c > rtb_BusAssignment_o.max_da) { - rtb_phi_c_c = rtb_BusAssignment_o.max_da; + if (rtb_phi_c_h > rtb_BusAssignment_o.max_da) { + rtb_phi_c_h = rtb_BusAssignment_o.max_da; } else { - if (rtb_phi_c_c < -rtb_BusAssignment_o.max_da) { + if (rtb_phi_c_h < -rtb_BusAssignment_o.max_da) { /* Switch: '/Switch' incorporates: * Gain: '/Gain' */ - rtb_phi_c_c = -rtb_BusAssignment_o.max_da; + rtb_phi_c_h = -rtb_BusAssignment_o.max_da; } } @@ -20172,7 +19714,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c8_maneuver = cr929_SIL_IN_one_l; cr929_SIL_DW.temporalCounter_i1_a = 0U; cr929_SIL_B.cmd_out_o = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.da = rtb_phi_c_c; + cr929_SIL_B.da = rtb_phi_c_h; cr929_SIL_B.da0_c = rtb_BusAssignment_o.da_c; cr929_SIL_B.dr0_h = rtb_BusAssignment_o.dr_c; cr929_SIL_B.lat_mode_i = ENUM_AFCS_LAT_OFF; @@ -20189,7 +19731,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c8_maneuver = cr929_SIL_IN_two; cr929_SIL_DW.temporalCounter_i1_a = 0U; cr929_SIL_B.cmd_out_o = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.da = -rtb_phi_c_c; + cr929_SIL_B.da = -rtb_phi_c_h; } break; @@ -20273,15 +19815,15 @@ void cr929_SIL_step(void) /* Saturate: '/Saturation1' */ if (cr929_SIL_B.params_k[1] > 45.0F) { - rtb_phi_c_c = 45.0F; + rtb_phi_c_h = 45.0F; } else if (cr929_SIL_B.params_k[1] < -45.0F) { - rtb_phi_c_c = -45.0F; + rtb_phi_c_h = -45.0F; } else { - rtb_phi_c_c = cr929_SIL_B.params_k[1]; + rtb_phi_c_h = cr929_SIL_B.params_k[1]; } /* End of Saturate: '/Saturation1' */ - cr929_SIL_B.phi_c_out = 0.0174532924F * rtb_phi_c_c; + cr929_SIL_B.phi_c_out = 0.0174532924F * rtb_phi_c_h; cr929_SIL_B.da_out = rtb_BusAssignment_o.da_c; cr929_SIL_B.use_da2dsp_out = (cr929_SIL_B.params_k[2] != 0.0F); @@ -20342,11 +19884,11 @@ void cr929_SIL_step(void) /* Saturate: '/Saturation' */ if (cr929_SIL_B.params_k[0] > 1.0F) { - rtb_phi_c_c = 1.0F; + rtb_phi_c_h = 1.0F; } else if (cr929_SIL_B.params_k[0] < 0.3F) { - rtb_phi_c_c = 0.3F; + rtb_phi_c_h = 0.3F; } else { - rtb_phi_c_c = cr929_SIL_B.params_k[0]; + rtb_phi_c_h = cr929_SIL_B.params_k[0]; } /* End of Saturate: '/Saturation' */ @@ -20361,7 +19903,7 @@ void cr929_SIL_step(void) } cr929_SIL_B.da_out = rtb_BusAssignment_o.max_da * - rtb_phi_c_c * dy; + rtb_phi_c_h * dy; cr929_SIL_B.roll_mode_m = ENUM_CSAS_ROLL_COMMAND; } else { cr929_SIL_B.da_out = rtb_BusAssignment_o.da_c; @@ -20395,7 +19937,7 @@ void cr929_SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/rudder_stim' */ - cr929_SIL_DW.temporalCounter_i1_l = 0U; + cr929_SIL_DW.temporalCounter_i1_ls = 0U; cr929_SIL_DW.is_active_c10_maneuver = 0U; cr929_SIL_DW.is_c10_maneuver = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -20408,17 +19950,17 @@ void cr929_SIL_step(void) */ /* Saturate: '/Saturation1' */ if (cr929_SIL_B.params_k[0] > 1.0F) { - rtb_phi_c_c = 1.0F; + rtb_phi_c_h = 1.0F; } else if (cr929_SIL_B.params_k[0] < -1.0F) { - rtb_phi_c_c = -1.0F; + rtb_phi_c_h = -1.0F; } else { - rtb_phi_c_c = cr929_SIL_B.params_k[0]; + rtb_phi_c_h = cr929_SIL_B.params_k[0]; } /* End of Saturate: '/Saturation1' */ /* Product: '/Product' */ - rtb_uDLookupTable_l = rtb_BusAssignment_o.max_dr * rtb_phi_c_c; + rtb_uDLookupTable_l = rtb_BusAssignment_o.max_dr * rtb_phi_c_h; /* Saturate: '/Saturation' */ if (cr929_SIL_B.params_k[1] > 3.0F) { @@ -20433,27 +19975,27 @@ void cr929_SIL_step(void) /* Saturate: '/Saturation2' */ if (cr929_SIL_B.params_k[2] > 40.0F) { - rtb_phi_c_c = 40.0F; + rtb_phi_c_h = 40.0F; } else if (cr929_SIL_B.params_k[2] < 5.0F) { - rtb_phi_c_c = 5.0F; + rtb_phi_c_h = 5.0F; } else { - rtb_phi_c_c = cr929_SIL_B.params_k[2]; + rtb_phi_c_h = cr929_SIL_B.params_k[2]; } /* End of Saturate: '/Saturation2' */ /* Gain: '/Gain1' */ - rtb_phi_c_c *= 0.0174532924F; + rtb_phi_c_h *= 0.0174532924F; /* Chart: '/rudder_stim' */ - if (cr929_SIL_DW.temporalCounter_i1_l < MAX_uint32_T) { - cr929_SIL_DW.temporalCounter_i1_l++; + if (cr929_SIL_DW.temporalCounter_i1_ls < MAX_uint32_T) { + cr929_SIL_DW.temporalCounter_i1_ls++; } if (cr929_SIL_DW.is_active_c10_maneuver == 0U) { cr929_SIL_DW.is_active_c10_maneuver = 1U; cr929_SIL_DW.is_c10_maneuver = cr929_SIL_IN_one_l; - cr929_SIL_DW.temporalCounter_i1_l = 0U; + cr929_SIL_DW.temporalCounter_i1_ls = 0U; cr929_SIL_B.cmd_out_m = rtb_BusAssignment_o.maneuver_cmd; cr929_SIL_B.dr = 0.0F; cr929_SIL_B.da0 = rtb_BusAssignment_o.da_c; @@ -20467,23 +20009,23 @@ void cr929_SIL_step(void) cr929_SIL_B.lat_mode_c = ENUM_AFCS_LAT_OFF; cr929_SIL_B.roll_mode_a = ENUM_CSAS_ROLL_COMMAND; cr929_SIL_B.yaw_mode = ENUM_CSAS_YAW_COMMAND; - if (cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_ls >= (uint32_T)ceil (rtb_Saturation_fs / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c10_maneuver = cr929_SIL_IN_two2; - cr929_SIL_DW.temporalCounter_i1_l = 0U; + cr929_SIL_DW.temporalCounter_i1_ls = 0U; cr929_SIL_B.cmd_out_m = rtb_BusAssignment_o.maneuver_cmd; cr929_SIL_B.dr = rtb_uDLookupTable_l; } else { cr929_SIL_B.dr = (real32_T)((real_T) - cr929_SIL_DW.temporalCounter_i1_l * 0.003062) * + cr929_SIL_DW.temporalCounter_i1_ls * 0.003062) * rtb_uDLookupTable_l / rtb_Saturation_fs; } break; case cr929_SIL_IN_two: - if ((cr929_SIL_B.BusAssignment_h.phi > rtb_phi_c_c) || - (cr929_SIL_B.BusAssignment_h.phi < -rtb_phi_c_c) || - (cr929_SIL_DW.temporalCounter_i1_l >= 1633U)) { + if ((cr929_SIL_B.BusAssignment_h.phi > rtb_phi_c_h) || + (cr929_SIL_B.BusAssignment_h.phi < -rtb_phi_c_h) || + (cr929_SIL_DW.temporalCounter_i1_ls >= 1633U)) { cr929_SIL_DW.is_c10_maneuver = cr929_SIL_IN_two1_l; cr929_SIL_B.cmd_out_m = 0; cr929_SIL_B.dr = 0.0F; @@ -20500,15 +20042,15 @@ void cr929_SIL_step(void) break; default: - if (cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_ls >= (uint32_T)ceil (rtb_Saturation_fs / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c10_maneuver = cr929_SIL_IN_two; - cr929_SIL_DW.temporalCounter_i1_l = 0U; + cr929_SIL_DW.temporalCounter_i1_ls = 0U; cr929_SIL_B.cmd_out_m = rtb_BusAssignment_o.maneuver_cmd; cr929_SIL_B.dr = 0.0F; } else { cr929_SIL_B.dr = rtb_uDLookupTable_l - (real32_T) - ((real_T)cr929_SIL_DW.temporalCounter_i1_l * 0.003062) + ((real_T)cr929_SIL_DW.temporalCounter_i1_ls * 0.003062) * rtb_uDLookupTable_l / rtb_Saturation_fs; } break; @@ -20553,7 +20095,7 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* Gain: '/Gain1' */ - rtb_phi_c_c = 0.0174532924F * cr929_SIL_B.params_k[0]; + rtb_phi_c_h = 0.0174532924F * cr929_SIL_B.params_k[0]; /* Chart: '/AC_test' */ if (cr929_SIL_DW.temporalCounter_i1_d < MAX_uint32_T) { @@ -20574,15 +20116,15 @@ void cr929_SIL_step(void) /* Saturate: '/Saturation1' */ if (cr929_SIL_B.params_k[1] > 3.0F) { - rtb_phi_c_c = 3.0F; + rtb_phi_c_h = 3.0F; } else if (cr929_SIL_B.params_k[1] < 1.1F) { - rtb_phi_c_c = 1.1F; + rtb_phi_c_h = 1.1F; } else { - rtb_phi_c_c = cr929_SIL_B.params_k[1]; + rtb_phi_c_h = cr929_SIL_B.params_k[1]; } /* End of Saturate: '/Saturation1' */ - cr929_SIL_DW.max_phi = 1.0F / rtb_phi_c_c; + cr929_SIL_DW.max_phi = 1.0F / rtb_phi_c_h; cr929_SIL_DW.max_phi = acosf(cr929_SIL_DW.max_phi); } else { switch (cr929_SIL_DW.is_c11_maneuver) { @@ -20598,11 +20140,11 @@ void cr929_SIL_step(void) cr929_SIL_DW.temporalCounter_i1_d = 0U; cr929_SIL_B.phi_c = 0.0F; } else { - if (rtb_phi_c_c < 0.0F) { + if (rtb_phi_c_h < 0.0F) { rtb_uDLookupTable_l = -1.0F; - } else if (rtb_phi_c_c > 0.0F) { + } else if (rtb_phi_c_h > 0.0F) { rtb_uDLookupTable_l = 1.0F; - } else if (rtb_phi_c_c == 0.0F) { + } else if (rtb_phi_c_h == 0.0F) { rtb_uDLookupTable_l = 0.0F; } else { rtb_uDLookupTable_l = (rtNaNF); @@ -20611,7 +20153,7 @@ void cr929_SIL_step(void) cr929_SIL_B.phi_c = cr929_SIL_DW.max_phi * rtb_uDLookupTable_l - (real32_T)((real_T) cr929_SIL_DW.temporalCounter_i1_d * 0.003062) * - rtb_phi_c_c; + rtb_phi_c_h; } break; @@ -20638,7 +20180,7 @@ void cr929_SIL_step(void) } else { cr929_SIL_B.phi_c = (real32_T)((real_T) cr929_SIL_DW.temporalCounter_i1_d * 0.003062) * - rtb_phi_c_c; + rtb_phi_c_h; } break; } @@ -20670,7 +20212,7 @@ void cr929_SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/waypoint_task' */ - cr929_SIL_DW.temporalCounter_i1_gl = 0U; + cr929_SIL_DW.temporalCounter_i1_dw = 0U; cr929_SIL_DW.is_active_c19_cr929_autopilot = 0U; cr929_SIL_DW.is_c19_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -20682,8 +20224,8 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* Chart: '/waypoint_task' */ - if (cr929_SIL_DW.temporalCounter_i1_gl < 511U) { - cr929_SIL_DW.temporalCounter_i1_gl++; + if (cr929_SIL_DW.temporalCounter_i1_dw < 511U) { + cr929_SIL_DW.temporalCounter_i1_dw++; } if (cr929_SIL_DW.is_active_c19_cr929_autopilot == 0U) { @@ -20704,32 +20246,32 @@ void cr929_SIL_step(void) } else { switch (cr929_SIL_DW.is_c19_cr929_autopilot) { case cr929_SIL_IN_Cruise: - if ((cr929_SIL_DW.temporalCounter_i1_gl >= 327U) && + if ((cr929_SIL_DW.temporalCounter_i1_dw >= 327U) && rtb_BusAssignment_o.autocont && (cr929_SIL_B.UnitDelay.dist_offset < rtb_BusAssignment_o.dist_trans)) { cr929_SIL_DW.is_c19_cr929_autopilot = - cr929_SIL_IN_NextWP_o; - rtb_out_gz = cr929_SIL_B.WP_out + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; + cr929_SIL_IN_NextWP_f; + rtb_out_et = cr929_SIL_B.WP_out + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; } - cr929_SIL_B.WP_out = (uint16_T)rtb_out_gz; + cr929_SIL_B.WP_out = (uint16_T)rtb_out_et; } else { cr929_SIL_B.CSAS_yaw_out = rtb_BusAssignment_o.CSAS_yaw; cr929_SIL_B.WP_out = rtb_BusAssignment_o.WP_cur; } break; - case cr929_SIL_IN_NextWP_o: + case cr929_SIL_IN_NextWP_f: break; default: cr929_SIL_B.mode = ENUM_mode_AUTO_MISSION; cr929_SIL_B.use_mission_traj = true; cr929_SIL_DW.is_c19_cr929_autopilot = cr929_SIL_IN_Cruise; - cr929_SIL_DW.temporalCounter_i1_gl = 0U; + cr929_SIL_DW.temporalCounter_i1_dw = 0U; cr929_SIL_B.WP_out = rtb_BusAssignment_o.WP_cur; cr929_SIL_B.AFCS_VERT_out = ENUM_AFCS_VERT_VNAV2THT; cr929_SIL_B.AFCS_LAT_out = ENUM_AFCS_LAT_LNAV2PHI; @@ -20802,15 +20344,15 @@ void cr929_SIL_step(void) * Constant: '/Constant BP' * Sum: '/subtract' */ - rtb_phi_c_c = ((real32_T)rtb_Merge_cc.rc.chan_raw[8] - 1500.0F) * + rtb_phi_c_h = ((real32_T)rtb_Merge_cc.rc.chan_raw[8] - 1500.0F) * 0.0025F; /* Saturate: '/Saturation' */ - if (rtb_phi_c_c > 1.0F) { - rtb_phi_c_c = 1.0F; + if (rtb_phi_c_h > 1.0F) { + rtb_phi_c_h = 1.0F; } else { - if (rtb_phi_c_c < -1.0F) { - rtb_phi_c_c = -1.0F; + if (rtb_phi_c_h < -1.0F) { + rtb_phi_c_h = -1.0F; } } @@ -20838,16 +20380,16 @@ void cr929_SIL_step(void) cr929_SIL_B.Merge = rtb_Merge_cc; /* Switch: '/Switch1' */ - if (rtb_phi_c_c > 0.0F) { + if (rtb_phi_c_h > 0.0F) { /* BusAssignment: '/Bus Assignment' incorporates: * Gain: '/gain7' */ - cr929_SIL_B.Merge.dh_c = cr929_SIL_P.max_dh * rtb_phi_c_c; + cr929_SIL_B.Merge.dh_c = cr929_SIL_P.max_dh * rtb_phi_c_h; } else { /* BusAssignment: '/Bus Assignment' incorporates: * Gain: '/gain8' */ - cr929_SIL_B.Merge.dh_c = -cr929_SIL_P.min_dh * rtb_phi_c_c; + cr929_SIL_B.Merge.dh_c = -cr929_SIL_P.min_dh * rtb_phi_c_h; } /* End of Switch: '/Switch1' */ @@ -20879,11 +20421,11 @@ void cr929_SIL_step(void) /* ManualSwitch: '/Manual Switch' incorporates: * Constant: '/Constant2' */ - rtb_phi_c_c = floorf(cr929_SIL_P.flap_level); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + rtb_phi_c_h = floorf(cr929_SIL_P.flap_level); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 256.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 256.0F); } /* BusAssignment: '/Bus Assignment' incorporates: @@ -20892,9 +20434,9 @@ void cr929_SIL_step(void) * Switch: '/Switch2' * Switch: '/Switch3' */ - cr929_SIL_B.Merge.flap_lever = (uint8_T)(rtb_phi_c_c < 0.0F ? (int32_T) - (uint8_T)-(int8_T)(uint8_T)-rtb_phi_c_c : (int32_T)(uint8_T) - rtb_phi_c_c); + cr929_SIL_B.Merge.flap_lever = (uint8_T)(rtb_phi_c_h < 0.0F ? (int32_T) + (uint8_T)-(int8_T)(uint8_T)-rtb_phi_c_h : (int32_T)(uint8_T) + rtb_phi_c_h); cr929_SIL_B.Merge.use_mix = true; cr929_SIL_B.Merge.parachute_c = (rtb_Merge_cc.rc.chan_raw[11] > 1500); cr929_SIL_B.Merge.anti_stall_parachute_c = (rtb_Merge_cc.rc.chan_raw[12] @@ -20915,7 +20457,7 @@ void cr929_SIL_step(void) mode = 0U; rtb_LugV1_e_idx_0 = 0.0; rtb_Divide6 = 0.0; - rtb_phi_c_c = 0.0F; + rtb_phi_c_h = 0.0F; rtb_uDLookupTable_l = 0.0F; elevation_baseline = 0.0F; rtb_Saturation_fs = 0.0F; @@ -20934,15 +20476,15 @@ void cr929_SIL_step(void) rtb_LugV1_e_idx_0 = (real_T)dummyMission[cur_np - 1].latlon[0] * 1.0E-7; rtb_Divide6 = (real_T)dummyMission[cur_np - 1].latlon[1] * 1.0E-7; - rtb_phi_c_c = dummyMission[cur_np - 1].params[4]; + rtb_phi_c_h = dummyMission[cur_np - 1].params[4]; i = MAV_MAV_FRAME_GLOBAL_RELATIVE_ALT; if (dummyMission[cur_np - 1].frame == i) { - rtb_phi_c_c = dummyMission[cur_np - 1].params[4] + + rtb_phi_c_h = dummyMission[cur_np - 1].params[4] + cr929_SIL_B.Merge.base_asl; } else { if (dummyMission[cur_np - 1].frame == (int32_T) MAV_MAV_FRAME_GLOBAL_RELATIVE_ALT_INT) { - rtb_phi_c_c = dummyMission[cur_np - 1].params[4] + + rtb_phi_c_h = dummyMission[cur_np - 1].params[4] + cr929_SIL_B.Merge.base_asl; } } @@ -21004,7 +20546,7 @@ void cr929_SIL_step(void) * rtb_WhiteNoise_idx_0); dist = sqrtf(dy * dy + heading * heading); rtb_uDLookupTable_l = rt_atan2f_snf(dy, heading); - elevation_baseline = rt_atan2f_snf(rtb_phi_c_c - + elevation_baseline = rt_atan2f_snf(rtb_phi_c_h - elevation_baseline, dist); } @@ -21035,7 +20577,7 @@ void cr929_SIL_step(void) dist2 = sqrtf(dy * dy + heading * heading); heading = rt_atan2f_snf(dy, heading); elevation_baseline2 = rt_atan2f_snf(elevation_baseline2 - - rtb_phi_c_c, dist2); + rtb_phi_c_h, dist2); if (mode == 1) { dy = heading - rtb_uDLookupTable_l; if (dy > 3.1415926535897931) { @@ -21079,7 +20621,7 @@ void cr929_SIL_step(void) */ cr929_SIL_B.Merge.traj.lat1 = rtb_LugV1_e_idx_0; cr929_SIL_B.Merge.traj.lon1 = rtb_Divide6; - cr929_SIL_B.Merge.traj.h1 = rtb_phi_c_c; + cr929_SIL_B.Merge.traj.h1 = rtb_phi_c_h; cr929_SIL_B.Merge.traj.azimuth = rtb_uDLookupTable_l; cr929_SIL_B.Merge.traj.elevation_baseline = elevation_baseline; cr929_SIL_B.Merge.traj.radius = rtb_Saturation_fs; @@ -21095,87 +20637,87 @@ void cr929_SIL_step(void) /* End of If: '/If' */ - /* Outputs for Atomic SubSystem: '/update_nav_info' */ - /* Outputs for IfAction SubSystem: '/case_circle' incorporates: - * ActionPort: '/Action Port' + /* Outputs for Atomic SubSystem: '/update_nav_info' */ + /* Outputs for IfAction SubSystem: '/case_circle' incorporates: + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' incorporates: - * MATLAB Function: '/nav_circle' - * Math: '/Math Function' - * Math: '/Math Function1' - * Sum: '/Sum' + /* SwitchCase: '/Switch Case' incorporates: + * MATLAB Function: '/nav_circle' + * Math: '/Math Function' + * Math: '/Math Function1' + * Sum: '/Sum' */ - rtb_phi_c_c = cr929_SIL_B.BusAssignment_h.v_n * + rtb_phi_c_h = cr929_SIL_B.BusAssignment_h.v_n * cr929_SIL_B.BusAssignment_h.v_n + cr929_SIL_B.BusAssignment_h.v_e * cr929_SIL_B.BusAssignment_h.v_e; - /* End of Outputs for SubSystem: '/case_circle' */ + /* End of Outputs for SubSystem: '/case_circle' */ - /* Sum: '/Sum' */ - rtb_uDLookupTable_l = rtb_phi_c_c; + /* Sum: '/Sum' */ + rtb_uDLookupTable_l = rtb_phi_c_h; - /* Saturate: '/Saturation' incorporates: - * Sum: '/Sum' + /* Saturate: '/Saturation' incorporates: + * Sum: '/Sum' */ - if (rtb_phi_c_c <= 0.001F) { + if (rtb_phi_c_h <= 0.001F) { rtb_uDLookupTable_l = 0.001F; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* BusCreator: '/Bus Creator' incorporates: - * Gain: '/Gain' - * Math: '/Math Function2' + /* BusCreator: '/Bus Creator' incorporates: + * Gain: '/Gain' + * Math: '/Math Function2' * Outport: '/traj' - * Sqrt: '/Sqrt' - * Sum: '/Sum1' + * Sqrt: '/Sqrt' + * Sum: '/Sum1' */ cr929_SIL_Y.traj.v_gv = sqrtf(-cr929_SIL_B.BusAssignment_h.v_d * -cr929_SIL_B.BusAssignment_h.v_d + rtb_uDLookupTable_l); - /* If: '/If' incorporates: + /* If: '/If' incorporates: * Constant: '/Constant' - * RelationalOperator: '/GreaterThan' + * RelationalOperator: '/GreaterThan' */ if (cr929_SIL_B.BusAssignment_h.gps_fixtype >= ENUM_GPS_FIXTYPE_DGPS) { - /* Outputs for IfAction SubSystem: '/use_gps_alt' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/use_gps_alt' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion: '/OutportBufferForASL' */ + /* SignalConversion: '/OutportBufferForASL' */ rtb_Saturation_fs = cr929_SIL_B.BusAssignment_h.msl; - /* BusCreator: '/Bus Creator' incorporates: + /* BusCreator: '/Bus Creator' incorporates: * Outport: '/traj' - * SignalConversion: '/sens_BusSelector' - * Sum: '/Sum' + * SignalConversion: '/sens_BusSelector' + * Sum: '/Sum' */ cr929_SIL_Y.traj.rel_alt = cr929_SIL_B.BusAssignment_h.msl - cr929_SIL_B.Merge.base_asl; - /* End of Outputs for SubSystem: '/use_gps_alt' */ + /* End of Outputs for SubSystem: '/use_gps_alt' */ } else { - /* Outputs for IfAction SubSystem: '/use_baro_alt' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/use_baro_alt' incorporates: + * ActionPort: '/Action Port' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ rtb_Saturation_fs = cr929_SIL_B.BusAssignment_h.asl_baro - cr929_SIL_B.Merge.base_asl_baro; - /* BusCreator: '/Bus Creator' incorporates: + /* BusCreator: '/Bus Creator' incorporates: * Outport: '/traj' - * SignalConversion: '/OutportBufferForAGL' + * SignalConversion: '/OutportBufferForAGL' */ cr929_SIL_Y.traj.rel_alt = rtb_Saturation_fs; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ rtb_Saturation_fs += cr929_SIL_B.Merge.base_asl; - /* End of Outputs for SubSystem: '/use_baro_alt' */ + /* End of Outputs for SubSystem: '/use_baro_alt' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ - /* SwitchCase: '/Switch Case' */ + /* SwitchCase: '/Switch Case' */ s305_iter = cr929_SIL_DW.SwitchCase_ActiveSubsystem_me; switch (cr929_SIL_B.Merge.traj.mode) { case 2: @@ -21193,10 +20735,10 @@ void cr929_SIL_step(void) switch (cr929_SIL_DW.SwitchCase_ActiveSubsystem_me) { case 0: - /* Outputs for IfAction SubSystem: '/case_circle' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/case_circle' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/nav_circle' */ + /* MATLAB Function: '/nav_circle' */ rtb_LugV1_e_idx_0 = cos(cr929_SIL_B.BusAssignment_h.lat * 3.1415926535897931 / 180.0); dist2 = (real32_T)((111699.749 - 1132.978 * rtb_LugV1_e_idx_0) * @@ -21207,16 +20749,16 @@ void cr929_SIL_step(void) rtb_LugV1_e_idx_0)); cr929_SIL_B.vert_offset = cr929_SIL_B.Merge.traj.h1 - rtb_Saturation_fs; if (cr929_SIL_B.Merge.traj.radius > 1.0F) { - rtb_Compare_i4 = true; + rtb_ResetControlLaw_out = true; dy = cr929_SIL_B.Merge.traj.radius; } else if (cr929_SIL_B.Merge.traj.radius > 0.0F) { - rtb_Compare_i4 = true; + rtb_ResetControlLaw_out = true; dy = 1.0F; } else if (cr929_SIL_B.Merge.traj.radius > -1.0F) { - rtb_Compare_i4 = false; + rtb_ResetControlLaw_out = false; dy = 1.0F; } else { - rtb_Compare_i4 = false; + rtb_ResetControlLaw_out = false; dy = -cr929_SIL_B.Merge.traj.radius; } @@ -21224,18 +20766,18 @@ void cr929_SIL_step(void) elevation_baseline = dist2 * dist2; cr929_SIL_B.dist = sqrtf(elevation_baseline + dist); cr929_SIL_B.bearing = rt_atan2f_snf(heading, dist2); - if (rtb_Compare_i4) { + if (rtb_ResetControlLaw_out) { cr929_SIL_B.bearing_base = cr929_SIL_B.bearing - 1.57079637F; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.omega_des = sqrtf(cr929_SIL_B.BusAssignment_h.v_n * cr929_SIL_B.BusAssignment_h.v_n + cr929_SIL_B.BusAssignment_h.v_e * cr929_SIL_B.BusAssignment_h.v_e) / dy; } else { cr929_SIL_B.bearing_base = cr929_SIL_B.bearing + 1.57079637F; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ - cr929_SIL_B.omega_des = -sqrtf(rtb_phi_c_c) / dy; + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + cr929_SIL_B.omega_des = -sqrtf(rtb_phi_c_h) / dy; } while (cr929_SIL_B.bearing_base > 3.1415926535897931) { @@ -21246,86 +20788,86 @@ void cr929_SIL_step(void) cr929_SIL_B.bearing_base += 6.28318548F; } - if (rtb_Compare_i4) { - rtb_phi_c_c = cr929_SIL_B.Merge.traj.heading - + if (rtb_ResetControlLaw_out) { + rtb_phi_c_h = cr929_SIL_B.Merge.traj.heading - cr929_SIL_B.bearing_base; } else { - rtb_phi_c_c = cr929_SIL_B.bearing_base - + rtb_phi_c_h = cr929_SIL_B.bearing_base - cr929_SIL_B.Merge.traj.heading; } - while (rtb_phi_c_c > 6.2831853071795862) { - rtb_phi_c_c -= 6.28318548F; + while (rtb_phi_c_h > 6.2831853071795862) { + rtb_phi_c_h -= 6.28318548F; } - while (rtb_phi_c_c < 0.0F) { - rtb_phi_c_c += 6.28318548F; + while (rtb_phi_c_h < 0.0F) { + rtb_phi_c_h += 6.28318548F; } cr929_SIL_B.horiz_offset = sqrtf(dist + elevation_baseline) - dy; - if (rtb_Compare_i4) { + if (rtb_ResetControlLaw_out) { cr929_SIL_B.horiz_offset = -cr929_SIL_B.horiz_offset; } - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_circle' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_circle' */ cr929_SIL_B.rdot = cr929_SIL_B.BusAssignment_h.v_n * cosf (cr929_SIL_B.bearing_base) + cr929_SIL_B.BusAssignment_h.v_e * sinf (cr929_SIL_B.bearing_base); - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_circle' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_circle' */ cr929_SIL_B.elevation_base = 0.0F; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_circle' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_circle' */ - cr929_SIL_B.dist_offset = dy * rtb_phi_c_c; + cr929_SIL_B.dist_offset = dy * rtb_phi_c_h; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_circle' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_circle' */ cr929_SIL_B.elevation = rt_atan2f_snf(cr929_SIL_B.vert_offset, cr929_SIL_B.dist); - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_circle' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_circle' */ cr929_SIL_B.ht_diff = cr929_SIL_B.vert_offset; - /* End of Outputs for SubSystem: '/case_circle' */ + /* End of Outputs for SubSystem: '/case_circle' */ break; case 1: if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_me != s305_iter) { - /* InitializeConditions for IfAction SubSystem: '/case_corner' incorporates: - * ActionPort: '/Action Port' + /* InitializeConditions for IfAction SubSystem: '/case_corner' incorporates: + * ActionPort: '/Action Port' */ - /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: - * UnitDelay: '/Unit Delay' + /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: + * UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_lp = 0U; - /* End of InitializeConditions for SubSystem: '/case_corner' */ + /* End of InitializeConditions for SubSystem: '/case_corner' */ - /* SystemReset for IfAction SubSystem: '/case_corner' incorporates: - * ActionPort: '/Action Port' + /* SystemReset for IfAction SubSystem: '/case_corner' incorporates: + * ActionPort: '/Action Port' */ - /* SystemReset for SwitchCase: '/Switch Case' incorporates: - * MATLAB Function: '/nav_corner' + /* SystemReset for SwitchCase: '/Switch Case' incorporates: + * MATLAB Function: '/nav_corner' */ cr929_SIL_DW.stage_not_empty = false; - /* End of SystemReset for SubSystem: '/case_corner' */ + /* End of SystemReset for SubSystem: '/case_corner' */ } - /* Outputs for IfAction SubSystem: '/case_corner' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/case_corner' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/nav_corner' incorporates: - * UnitDelay: '/Unit Delay' + /* MATLAB Function: '/nav_corner' incorporates: + * UnitDelay: '/Unit Delay' */ rtb_LugV1_e_idx_0 = cos(cr929_SIL_B.BusAssignment_h.lat * 3.1415926535897931 / 180.0); @@ -21355,7 +20897,7 @@ void cr929_SIL_step(void) cr929_SIL_B.BusAssignment_h.lat)); elevation_baseline = (real32_T)((cr929_SIL_B.Merge.traj.lon1 - cr929_SIL_B.BusAssignment_h.lon) * (111321.543 * rtb_LugV1_e_idx_0)); - rtb_phi_c_c = cr929_SIL_B.Merge.traj.h1 - rtb_Saturation_fs; + rtb_phi_c_h = cr929_SIL_B.Merge.traj.h1 - rtb_Saturation_fs; dy = cr929_SIL_B.Merge.traj.heading - cr929_SIL_B.Merge.traj.azimuth; if (dy > 3.1415926535897931) { dy -= 6.28318548F; @@ -21365,9 +20907,9 @@ void cr929_SIL_step(void) } } - rtb_Compare_i4 = false; + rtb_ResetControlLaw_out = false; if (dy > 0.0F) { - rtb_Compare_i4 = true; + rtb_ResetControlLaw_out = true; } heading = fabsf(dy); @@ -21384,39 +20926,39 @@ void cr929_SIL_step(void) tan_elv2 = tanf(cr929_SIL_B.Merge.traj.elevation_baseline2); lat_s = dist - dist2 * dy; lon_s = elevation_baseline - elevation_baseline2 * dy; - h_s = rtb_phi_c_c - dy * tan_angle; + h_s = rtb_phi_c_h - dy * tan_angle; lat_e = cos_hdg * dy + dist; lon_e = sin_hdg * dy + elevation_baseline; - cr929_SIL_B.ht_diff = dy * tan_elv2 + rtb_phi_c_c; + cr929_SIL_B.ht_diff = dy * tan_elv2 + rtb_phi_c_h; tan_elv3_tmp = cr929_SIL_B.Merge.traj.radius * heading; heading = (cr929_SIL_B.ht_diff - h_s) / tan_elv3_tmp; cr929_SIL_B.elevation_base = atanf(heading); cr929_SIL_B.dist = sqrtf(dist * dist + elevation_baseline * elevation_baseline); - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_corner' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_corner' */ cr929_SIL_B.omega_des = 0.0F; - /* MATLAB Function: '/nav_corner' */ + /* MATLAB Function: '/nav_corner' */ switch (cr929_SIL_DW.stage) { case 0: - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.horiz_offset = lat_s * elevation_baseline2 - lon_s * dist2; cr929_SIL_B.dist_offset = lat_s * dist2 + lon_s * elevation_baseline2; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.rdot = dist2 * cr929_SIL_B.BusAssignment_h.v_n + elevation_baseline2 * cr929_SIL_B.BusAssignment_h.v_e; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.vert_offset = (h_s - cr929_SIL_B.dist_offset * tan_angle) * cosf(cr929_SIL_B.Merge.traj.elevation_baseline); cr929_SIL_B.dist_offset += tan_elv3_tmp; cr929_SIL_B.bearing_base = cr929_SIL_B.Merge.traj.azimuth; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.elevation_base = cr929_SIL_B.Merge.traj.elevation_baseline; if (dist * dist2 + elevation_baseline * elevation_baseline2 < dy) { cr929_SIL_DW.stage = 1U; @@ -21424,36 +20966,36 @@ void cr929_SIL_step(void) break; case 2: - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.horiz_offset = lat_e * sin_hdg - lon_e * cos_hdg; cr929_SIL_B.dist_offset = lat_e * cos_hdg + lon_e * sin_hdg; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.rdot = cos_hdg * cr929_SIL_B.BusAssignment_h.v_n + sin_hdg * cr929_SIL_B.BusAssignment_h.v_e; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.vert_offset = (cr929_SIL_B.dist_offset * tan_elv2 + cr929_SIL_B.ht_diff) * cosf (cr929_SIL_B.Merge.traj.elevation_baseline2); cr929_SIL_B.bearing_base = cr929_SIL_B.Merge.traj.heading; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.elevation_base = cr929_SIL_B.Merge.traj.elevation_baseline2; break; default: - if (rtb_Compare_i4) { + if (rtb_ResetControlLaw_out) { dy = lat_s - elevation_baseline2 * cr929_SIL_B.Merge.traj.radius; dist2 = dist2 * cr929_SIL_B.Merge.traj.radius + lon_s; cr929_SIL_B.bearing_base = rt_atan2f_snf(dist2, dy) - 1.57079637F; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.horiz_offset = cr929_SIL_B.Merge.traj.radius - sqrtf(dy * dy + dist2 * dist2); - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.omega_des = sqrtf(cr929_SIL_B.BusAssignment_h.v_n * cr929_SIL_B.BusAssignment_h.v_n + cr929_SIL_B.BusAssignment_h.v_e * cr929_SIL_B.BusAssignment_h.v_e) / cr929_SIL_B.Merge.traj.radius; @@ -21462,11 +21004,11 @@ void cr929_SIL_step(void) dist2 = lon_s - dist2 * cr929_SIL_B.Merge.traj.radius; cr929_SIL_B.bearing_base = rt_atan2f_snf(dist2, dy) + 1.57079637F; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.horiz_offset = sqrtf(dy * dy + dist2 * dist2) - cr929_SIL_B.Merge.traj.radius; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.omega_des = -sqrtf(cr929_SIL_B.BusAssignment_h.v_n * cr929_SIL_B.BusAssignment_h.v_n + cr929_SIL_B.BusAssignment_h.v_e * cr929_SIL_B.BusAssignment_h.v_e) / cr929_SIL_B.Merge.traj.radius; @@ -21489,48 +21031,48 @@ void cr929_SIL_step(void) } } - if ((rtb_Compare_i4 && (dy < 0.0F)) || ((!rtb_Compare_i4) && (dy > - 0.0F))) { + if ((rtb_ResetControlLaw_out && (dy < 0.0F)) || + ((!rtb_ResetControlLaw_out) && (dy > 0.0F))) { cr929_SIL_DW.stage = 2U; } cr929_SIL_B.dist_offset = fabsf(dy) * cr929_SIL_B.Merge.traj.radius; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.rdot = cosf(cr929_SIL_B.bearing_base) * cr929_SIL_B.BusAssignment_h.v_n + sinf(cr929_SIL_B.bearing_base) * cr929_SIL_B.BusAssignment_h.v_e; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ cr929_SIL_B.vert_offset = (cr929_SIL_B.ht_diff - cr929_SIL_B.dist_offset * heading) * cosf(cr929_SIL_B.elevation_base); break; } - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_corner' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_corner' */ cr929_SIL_B.bearing = rt_atan2f_snf(elevation_baseline, dist); - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_corner' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_corner' */ - cr929_SIL_B.elevation = rt_atan2f_snf(rtb_phi_c_c, cr929_SIL_B.dist); + cr929_SIL_B.elevation = rt_atan2f_snf(rtb_phi_c_h, cr929_SIL_B.dist); - /* Sum: '/Sum' incorporates: - * Constant: '/Constant' - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant' + * UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_lp++; - /* End of Outputs for SubSystem: '/case_corner' */ + /* End of Outputs for SubSystem: '/case_corner' */ break; case 2: - /* Outputs for IfAction SubSystem: '/case_line' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/case_line' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/nav_line' */ + /* MATLAB Function: '/nav_line' */ rtb_LugV1_e_idx_0 = cos(cr929_SIL_B.BusAssignment_h.lat * 3.1415926535897931 / 180.0); dist = (real32_T)((111699.749 - 1132.978 * rtb_LugV1_e_idx_0) * @@ -21541,62 +21083,62 @@ void cr929_SIL_step(void) cr929_SIL_B.ht_diff = cr929_SIL_B.Merge.traj.h1 - rtb_Saturation_fs; cr929_SIL_B.dist = sqrtf(dist * dist + elevation_baseline * elevation_baseline); - rtb_phi_c_c = cosf(cr929_SIL_B.Merge.traj.azimuth); + rtb_phi_c_h = cosf(cr929_SIL_B.Merge.traj.azimuth); dy = sinf(cr929_SIL_B.Merge.traj.azimuth); - cr929_SIL_B.dist_offset = dist * rtb_phi_c_c + elevation_baseline * dy; + cr929_SIL_B.dist_offset = dist * rtb_phi_c_h + elevation_baseline * dy; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_line' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_line' */ - cr929_SIL_B.rdot = rtb_phi_c_c * cr929_SIL_B.BusAssignment_h.v_n + dy * + cr929_SIL_B.rdot = rtb_phi_c_h * cr929_SIL_B.BusAssignment_h.v_n + dy * cr929_SIL_B.BusAssignment_h.v_e; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_line' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_line' */ cr929_SIL_B.elevation_base = cr929_SIL_B.Merge.traj.elevation_baseline; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_line' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_line' */ - cr929_SIL_B.horiz_offset = dist * dy - elevation_baseline * rtb_phi_c_c; + cr929_SIL_B.horiz_offset = dist * dy - elevation_baseline * rtb_phi_c_h; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_line' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_line' */ cr929_SIL_B.bearing = rt_atan2f_snf(elevation_baseline, dist); - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_line' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_line' */ cr929_SIL_B.vert_offset = (cr929_SIL_B.ht_diff - cr929_SIL_B.dist_offset * tanf(cr929_SIL_B.Merge.traj.elevation_baseline)) * cosf (cr929_SIL_B.Merge.traj.elevation_baseline); - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_line' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_line' */ cr929_SIL_B.elevation = rt_atan2f_snf(cr929_SIL_B.ht_diff, cr929_SIL_B.dist); - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_line' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_line' */ cr929_SIL_B.omega_des = 0.0F; - /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: - * MATLAB Function: '/nav_line' + /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: + * MATLAB Function: '/nav_line' */ cr929_SIL_B.bearing_base = cr929_SIL_B.Merge.traj.azimuth; - /* End of Outputs for SubSystem: '/case_line' */ + /* End of Outputs for SubSystem: '/case_line' */ break; } - /* Sqrt: '/Sqrt1' */ + /* Sqrt: '/Sqrt1' */ rtb_uDLookupTable_l = sqrtf(rtb_uDLookupTable_l); - /* MATLAB Function: '/nav_point' */ + /* MATLAB Function: '/nav_point' */ rtb_LugV1_e_idx_0 = cos(cr929_SIL_B.BusAssignment_h.lat * 3.1415926535897931 / 180.0); dist = (real32_T)((111699.749 - 1132.978 * rtb_LugV1_e_idx_0) * @@ -21608,14 +21150,14 @@ void cr929_SIL_step(void) cr929_SIL_Y.traj.home_dist = sqrtf(dist * dist + elevation_baseline * elevation_baseline); - /* BusCreator: '/Bus Creator' incorporates: - * Gain: '/Gain' + /* BusCreator: '/Bus Creator' incorporates: + * Gain: '/Gain' * Outport: '/traj' - * Sum: '/Sum' - * Sum: '/Sum1' - * Sum: '/Sum2' - * Trigonometry: '/Trigonometric Function' - * Trigonometry: '/Trigonometric Function1' + * Sum: '/Sum' + * Sum: '/Sum1' + * Sum: '/Sum2' + * Trigonometry: '/Trigonometric Function' + * Trigonometry: '/Trigonometric Function1' */ cr929_SIL_Y.traj.v_g = rtb_uDLookupTable_l; cr929_SIL_Y.traj.gamma = rt_atan2f_snf(-cr929_SIL_B.BusAssignment_h.v_d, @@ -21642,10 +21184,10 @@ void cr929_SIL_step(void) cr929_SIL_Y.traj.ve_c = cr929_SIL_B.Merge.traj.ve_c; cr929_SIL_Y.traj.hdot_c = cr929_SIL_B.Merge.traj.hdot_c; - /* End of Outputs for SubSystem: '/update_nav_info' */ + /* End of Outputs for SubSystem: '/update_nav_info' */ - /* SwitchCase: '/Switch Case' incorporates: - * Inport: '/C2_in' + /* SwitchCase: '/Switch Case' incorporates: + * Inport: '/C2_in' */ s305_iter = cr929_SIL_DW.SwitchCase_ActiveSubsystem_m; switch (cr929_SIL_B.Merge.AFCS_VERT) { @@ -21667,35 +21209,35 @@ void cr929_SIL_step(void) if ((s305_iter != cr929_SIL_DW.SwitchCase_ActiveSubsystem_m) && (s305_iter == 0)) { - /* Disable for SwitchCase: '/Switch Case' */ + /* Disable for SwitchCase: '/Switch Case' */ if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_l == 1) { - /* Disable for SwitchCase: '/Switch Case' */ + /* Disable for SwitchCase: '/Switch Case' */ cr929_SIL_DW.SwitchCase_ActiveSubsystem_f = -1; } cr929_SIL_DW.SwitchCase_ActiveSubsystem_l = -1; - /* End of Disable for SwitchCase: '/Switch Case' */ + /* End of Disable for SwitchCase: '/Switch Case' */ } switch (cr929_SIL_DW.SwitchCase_ActiveSubsystem_m) { case 0: if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_m != s305_iter) { - /* InitializeConditions for IfAction SubSystem: '/gamma2tht' incorporates: - * ActionPort: '/Action Port' + /* InitializeConditions for IfAction SubSystem: '/gamma2tht' incorporates: + * ActionPort: '/Action Port' */ - /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: - * Delay: '/Delay' + /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: + * Delay: '/Delay' */ cr929_SIL_DW.icLoad_dd = 1U; - /* End of InitializeConditions for SubSystem: '/gamma2tht' */ + /* End of InitializeConditions for SubSystem: '/gamma2tht' */ } - /* Outputs for IfAction SubSystem: '/gamma2tht' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/gamma2tht' incorporates: + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' */ + /* SwitchCase: '/Switch Case' */ s305_iter = cr929_SIL_DW.SwitchCase_ActiveSubsystem_l; if (cr929_SIL_B.Merge.AFCS_VERT == ENUM_AFCS_VERT_GAMMA2THT) { cr929_SIL_DW.SwitchCase_ActiveSubsystem_l = 0; @@ -21705,28 +21247,28 @@ void cr929_SIL_step(void) if ((s305_iter != cr929_SIL_DW.SwitchCase_ActiveSubsystem_l) && (s305_iter == 1)) { - /* Disable for SwitchCase: '/Switch Case' */ + /* Disable for SwitchCase: '/Switch Case' */ cr929_SIL_DW.SwitchCase_ActiveSubsystem_f = -1; } switch (cr929_SIL_DW.SwitchCase_ActiveSubsystem_l) { case 0: - /* Outputs for IfAction SubSystem: '/gamma' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/gamma' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion: '/C2_in_BusSelector' */ - rtb_Merge_g = cr929_SIL_B.Merge.gamma_c; + /* SignalConversion: '/C2_in_BusSelector' */ + rtb_Merge_dm = cr929_SIL_B.Merge.gamma_c; - /* End of Outputs for SubSystem: '/gamma' */ + /* End of Outputs for SubSystem: '/gamma' */ break; case 1: - /* Outputs for IfAction SubSystem: '/hdot' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/hdot' incorporates: + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' incorporates: - * Inport: '/hdot_in' - * SignalConversion: '/C2_in_BusSelector' + /* SwitchCase: '/Switch Case' incorporates: + * Inport: '/hdot_in' + * SignalConversion: '/C2_in_BusSelector' */ s305_iter = cr929_SIL_DW.SwitchCase_ActiveSubsystem_f; if (cr929_SIL_B.Merge.AFCS_VERT == ENUM_AFCS_VERT_HDOT2THT) { @@ -21737,165 +21279,205 @@ void cr929_SIL_step(void) switch (cr929_SIL_DW.SwitchCase_ActiveSubsystem_f) { case 0: - /* Outputs for IfAction SubSystem: '/hdot' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/hdot' incorporates: + * ActionPort: '/Action Port' */ - rtb_last_hdot_c = cr929_SIL_B.Merge.hdot_c; + rtb_Merge_dm = cr929_SIL_B.Merge.hdot_c; - /* End of Outputs for SubSystem: '/hdot' */ + /* End of Outputs for SubSystem: '/hdot' */ break; case 1: if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_f != s305_iter) { - /* SystemReset for IfAction SubSystem: '/vnav' incorporates: - * ActionPort: '/Action Port' + /* SystemReset for IfAction SubSystem: '/vnav' incorporates: + * ActionPort: '/Action Port' */ - /* SystemReset for Atomic SubSystem: '/dH2hdot' */ - /* SystemReset for SwitchCase: '/Switch Case' incorporates: - * Delay: '/last_hdot_c' + /* SystemReset for Atomic SubSystem: '/dH2hdot' */ + /* SystemReset for SwitchCase: '/Switch Case' incorporates: + * Delay: '/last_hdot_c' */ cr929_SIL_DW.icLoad_n = 1U; - /* End of SystemReset for SubSystem: '/dH2hdot' */ - /* End of SystemReset for SubSystem: '/vnav' */ + /* End of SystemReset for SubSystem: '/dH2hdot' */ + /* End of SystemReset for SubSystem: '/vnav' */ } - /* Outputs for IfAction SubSystem: '/vnav' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/vnav' incorporates: + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' incorporates: - * Inport: '/vert' + /* SwitchCase: '/Switch Case' incorporates: + * Inport: '/vert' * Outport: '/traj' - * SignalConversion: '/AFCS_in_BusSelector' + * SignalConversion: '/AFCS_in_BusSelector' */ switch (cr929_SIL_B.Merge.AFCS_VERT) { case ENUM_AFCS_VERT_H2THT: - /* Outputs for IfAction SubSystem: '/H' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/H' incorporates: + * ActionPort: '/Action Port' */ cr929_SIL_H(cr929_SIL_B.Merge.h_c, cr929_SIL_Y.traj.abs_alt, &rtb_Merge_i, &rtb_Merge1_er); - /* End of Outputs for SubSystem: '/H' */ + /* End of Outputs for SubSystem: '/H' */ break; case ENUM_AFCS_VERT_AGL2THT: - /* Outputs for IfAction SubSystem: '/AGL' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/AGL' incorporates: + * ActionPort: '/Action Port' */ cr929_SIL_H(cr929_SIL_B.Merge.h_c, cr929_SIL_Y.traj.rel_alt, &rtb_Merge_i, &rtb_Merge1_er); - /* End of Outputs for SubSystem: '/AGL' */ + /* End of Outputs for SubSystem: '/AGL' */ break; default: - /* Outputs for IfAction SubSystem: '/VNAV' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/VNAV' incorporates: + * ActionPort: '/Action Port' */ - /* Saturate: '/Saturation' incorporates: + /* Saturate: '/Saturation' incorporates: * Outport: '/traj' */ if (cr929_SIL_Y.traj.elevation_baseline > 1.5F) { - rtb_phi_c_c = 1.5F; + rtb_phi_c_h = 1.5F; } else if (cr929_SIL_Y.traj.elevation_baseline < -1.5F) { - rtb_phi_c_c = -1.5F; + rtb_phi_c_h = -1.5F; } else { - rtb_phi_c_c = cr929_SIL_Y.traj.elevation_baseline; + rtb_phi_c_h = cr929_SIL_Y.traj.elevation_baseline; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Product: '/Product' incorporates: + /* Product: '/Product' incorporates: * Outport: '/traj' - * Trigonometry: '/atan' + * Trigonometry: '/atan' */ - rtb_Merge1_er = tanf(rtb_phi_c_c) * cr929_SIL_Y.traj.v_g; + rtb_Merge1_er = tanf(rtb_phi_c_h) * cr929_SIL_Y.traj.v_g; rtb_Merge_i = cr929_SIL_Y.traj.vert_offset; - /* End of Outputs for SubSystem: '/VNAV' */ + /* End of Outputs for SubSystem: '/VNAV' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* Outputs for Atomic SubSystem: '/dH2hdot' */ - /* Abs: '/AbsDH' */ - rtb_last_hdot_c = fabsf(rtb_Merge_i); + /* Outputs for Atomic SubSystem: '/dH2hdot' */ + /* Abs: '/AbsDH' */ + rtb_Merge_dm = fabsf(rtb_Merge_i); - /* Saturate: '/Saturation' */ - if (rtb_last_hdot_c <= 0.001F) { - rtb_last_hdot_c = 0.001F; + /* Saturate: '/Saturation' */ + if (rtb_Merge_dm <= 0.001F) { + rtb_Merge_dm = 0.001F; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Product: '/Product1' incorporates: + /* Product: '/Product1' incorporates: * Constant: '/Constant Single14' - * Constant: '/Constant' + * Constant: '/Constant' */ rtb_MaxHdot = 1.4F * cr929_SIL_P.max_az; - /* Product: '/Divide' */ - rtb_last_hdot_c = rtb_MaxHdot / rtb_last_hdot_c; + /* Product: '/Divide' */ + rtb_Merge_dm = rtb_MaxHdot / rtb_Merge_dm; - /* Sqrt: '/k' */ - rtb_last_hdot_c = sqrtf(rtb_last_hdot_c); + /* Sqrt: '/k' */ + rtb_Merge_dm = sqrtf(rtb_Merge_dm); - /* Gain: '/k_min' incorporates: + /* Gain: '/k_min' incorporates: * Constant: '/Constant Single15' */ rtb_Switch2_l5 = 0.1F * cr929_SIL_P.w_x; - /* Switch: '/Switch' incorporates: - * RelationalOperator: '/UpperRelop' + /* Switch: '/Switch' incorporates: + * RelationalOperator: '/UpperRelop' */ - if (!(rtb_last_hdot_c < rtb_Switch2_l5)) { - rtb_Switch2_l5 = rtb_last_hdot_c; + if (!(rtb_Merge_dm < rtb_Switch2_l5)) { + rtb_Switch2_l5 = rtb_Merge_dm; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single15' - * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/LowerRelop1' */ - if (rtb_last_hdot_c > cr929_SIL_P.w_x) { + if (rtb_Merge_dm > cr929_SIL_P.w_x) { rtb_Switch2_l5 = cr929_SIL_P.w_x; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Delay: '/last_hdot_c' incorporates: + /* Delay: '/last_hdot_c' incorporates: * Outport: '/traj' */ if (cr929_SIL_DW.icLoad_n != 0) { cr929_SIL_DW.last_hdot_c_DSTATE = cr929_SIL_Y.traj.hdot; } - /* Sum: '/Sum' incorporates: - * Delay: '/last_hdot_c' - * Product: '/Hdot_c' - * Sum: '/Sum2' + /* Sum: '/Sum' incorporates: + * Delay: '/last_hdot_c' + * Product: '/Hdot_c' + * Sum: '/Sum2' */ - rtb_last_hdot_c = (rtb_Merge_i * rtb_Switch2_l5 + rtb_Merge1_er) - + rtb_Merge_dm = (rtb_Merge_i * rtb_Switch2_l5 + rtb_Merge1_er) - cr929_SIL_DW.last_hdot_c_DSTATE; - /* Product: '/Product' incorporates: + /* Product: '/Product' incorporates: * Constant: '/Constant Single14' - * Constant: '/Constant' + * Constant: '/Constant' */ rtb_Sum1_o = cr929_SIL_P.max_az * 0.003062F; - /* Gain: '/min_az' */ + /* Gain: '/min_az' */ rtb_MinMax = -rtb_Sum1_o; + /* Switch: '/Switch' incorporates: + * Gain: '/min_az' + * RelationalOperator: '/UpperRelop' + */ + if (!(rtb_Merge_dm < -rtb_Sum1_o)) { + rtb_MinMax = rtb_Merge_dm; + } + + /* End of Switch: '/Switch' */ + + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + */ + if (!(rtb_Merge_dm > rtb_Sum1_o)) { + rtb_Sum1_o = rtb_MinMax; + } + + /* End of Switch: '/Switch2' */ + + /* Sum: '/Sum1' incorporates: + * Delay: '/last_hdot_c' + */ + rtb_Sum1_o += cr929_SIL_DW.last_hdot_c_DSTATE; + + /* Product: '/MaxHdot' */ + rtb_MaxHdot /= rtb_Switch2_l5; + + /* MinMax: '/MinMax' incorporates: + * Constant: '/Constant Single13' + * Sum: '/Sum3' + */ + rtb_MinMax = fminf(rtb_MaxHdot + rtb_Merge1_er, cr929_SIL_P.max_hdot); + + /* MinMax: '/MinMax1' incorporates: + * Constant: '/Constant Single28' + * Gain: '/MinHdot' + * Sum: '/Sum4' + */ + rtb_Merge_dm = fmaxf(-rtb_MaxHdot + rtb_Merge1_er, + cr929_SIL_P.min_hdot); + /* Switch: '/Switch' incorporates: - * Gain: '/min_az' * RelationalOperator: '/UpperRelop' */ - if (!(rtb_last_hdot_c < -rtb_Sum1_o)) { - rtb_MinMax = rtb_last_hdot_c; + if (!(rtb_Sum1_o < rtb_Merge_dm)) { + rtb_Merge_dm = rtb_Sum1_o; } /* End of Switch: '/Switch' */ @@ -21903,178 +21485,138 @@ void cr929_SIL_step(void) /* Switch: '/Switch2' incorporates: * RelationalOperator: '/LowerRelop1' */ - if (!(rtb_last_hdot_c > rtb_Sum1_o)) { - rtb_Sum1_o = rtb_MinMax; + if (rtb_Sum1_o > rtb_MinMax) { + rtb_Merge_dm = rtb_MinMax; } /* End of Switch: '/Switch2' */ - /* Sum: '/Sum1' incorporates: - * Delay: '/last_hdot_c' - */ - rtb_Sum1_o += cr929_SIL_DW.last_hdot_c_DSTATE; - - /* Product: '/MaxHdot' */ - rtb_MaxHdot /= rtb_Switch2_l5; - - /* MinMax: '/MinMax' incorporates: - * Constant: '/Constant Single13' - * Sum: '/Sum3' - */ - rtb_MinMax = fminf(rtb_MaxHdot + rtb_Merge1_er, cr929_SIL_P.max_hdot); - - /* MinMax: '/MinMax1' incorporates: - * Constant: '/Constant Single28' - * Gain: '/MinHdot' - * Sum: '/Sum4' - */ - rtb_last_hdot_c = fmaxf(-rtb_MaxHdot + rtb_Merge1_er, - cr929_SIL_P.min_hdot); - - /* Switch: '/Switch' incorporates: - * RelationalOperator: '/UpperRelop' - */ - if (!(rtb_Sum1_o < rtb_last_hdot_c)) { - rtb_last_hdot_c = rtb_Sum1_o; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - */ - if (rtb_Sum1_o > rtb_MinMax) { - rtb_last_hdot_c = rtb_MinMax; - } - - /* End of Switch: '/Switch2' */ - - /* Update for Delay: '/last_hdot_c' */ + /* Update for Delay: '/last_hdot_c' */ cr929_SIL_DW.icLoad_n = 0U; - cr929_SIL_DW.last_hdot_c_DSTATE = rtb_last_hdot_c; + cr929_SIL_DW.last_hdot_c_DSTATE = rtb_Merge_dm; - /* End of Outputs for SubSystem: '/dH2hdot' */ - /* End of Outputs for SubSystem: '/vnav' */ + /* End of Outputs for SubSystem: '/dH2hdot' */ + /* End of Outputs for SubSystem: '/vnav' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* Trigonometry: '/Atan2' incorporates: + /* Trigonometry: '/Atan2' incorporates: * Outport: '/traj' */ - rtb_Merge_g = rt_atan2f_snf(rtb_last_hdot_c, cr929_SIL_Y.traj.v_g); + rtb_Merge_dm = rt_atan2f_snf(rtb_Merge_dm, cr929_SIL_Y.traj.v_g); - /* End of Outputs for SubSystem: '/hdot' */ + /* End of Outputs for SubSystem: '/hdot' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* Sum: '/subtract' incorporates: - * Constant: '/Constant' + /* Sum: '/subtract' incorporates: + * Constant: '/Constant' */ - rtb_last_hdot_c = cr929_SIL_B.BusAssignment_h.IAS - cr929_SIL_P.min_AS; + rtb_MaxHdot = cr929_SIL_B.BusAssignment_h.IAS - cr929_SIL_P.min_AS; - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' + /* Switch: '/Switch' incorporates: * Constant: '/Constant' - * Logic: '/AND' - * RelationalOperator: '/Compare' + * Constant: '/Constant' + * Logic: '/AND' * RelationalOperator: '/Compare' - * Sum: '/Sum' + * RelationalOperator: '/Compare' + * Sum: '/Sum' */ - if ((!(rtb_last_hdot_c > 0.0F)) && (!(cr929_SIL_B.Merge.landed_state != + if ((!(rtb_MaxHdot > 0.0F)) && (!(cr929_SIL_B.Merge.landed_state != ENUM_LANDED_STATE_IN_AIR))) { - /* Gain: '/gain' */ - u0_0 = 0.0612244904F * rtb_last_hdot_c; + /* Gain: '/gain' */ + u0_0 = 0.0612244904F * rtb_MaxHdot; - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (u0_0 < -0.523560226F) { u0_0 = -0.523560226F; } - /* End of Saturate: '/Saturation' */ - rtb_Merge_g += u0_0; + /* End of Saturate: '/Saturation' */ + rtb_Merge_dm += u0_0; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Product: '/Product' incorporates: + /* Product: '/Product' incorporates: * Constant: '/Constant Single23' * Constant: '/Constant Single29' * Outport: '/traj' * Product: '/divide' - * Sum: '/Sum' + * Sum: '/Sum' */ rtb_uDLookupTable_l = 1.0F / rtb_qbarSc * cr929_SIL_P.k_tht / 2.56F * - (rtb_Merge_g - cr929_SIL_Y.traj.gamma); + (rtb_Merge_dm - cr929_SIL_Y.traj.gamma); - /* Delay: '/Delay' incorporates: - * Sum: '/Sum4' + /* Delay: '/Delay' incorporates: + * Sum: '/Sum4' */ if (cr929_SIL_DW.icLoad_dd != 0) { - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single6' * Constant: '/Constant Single64' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (cr929_SIL_B.BusAssignment_h.tht > cr929_SIL_P.max_tht) { - rtb_phi_c_c = cr929_SIL_P.max_tht; + rtb_phi_c_h = cr929_SIL_P.max_tht; } else if (cr929_SIL_B.BusAssignment_h.tht < cr929_SIL_P.min_tht) { - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: * Constant: '/Constant Single64' */ - rtb_phi_c_c = cr929_SIL_P.min_tht; + rtb_phi_c_h = cr929_SIL_P.min_tht; } else { - rtb_phi_c_c = cr929_SIL_B.BusAssignment_h.tht; + rtb_phi_c_h = cr929_SIL_B.BusAssignment_h.tht; } - /* End of Switch: '/Switch2' */ - cr929_SIL_DW.Delay_DSTATE_ku = rtb_phi_c_c - rtb_uDLookupTable_l; + /* End of Switch: '/Switch2' */ + cr929_SIL_DW.Delay_DSTATE_ku = rtb_phi_c_h - rtb_uDLookupTable_l; } - /* Sum: '/Sum1' incorporates: - * Constant: '/Constant' - * Delay: '/Delay' - * Product: '/Product1' - * Product: '/Product2' - * Sum: '/Sum2' + /* Sum: '/Sum1' incorporates: + * Constant: '/Constant' + * Delay: '/Delay' + * Product: '/Product1' + * Product: '/Product2' + * Sum: '/Sum2' */ rtb_Sum1_gt = (rtb_qbarSc * rtb_uDLookupTable_l * 0.003062F + cr929_SIL_DW.Delay_DSTATE_ku) + rtb_uDLookupTable_l; - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single6' * Constant: '/Constant Single64' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Sum1_gt > cr929_SIL_P.max_tht) { rtb_Sum1_gt = cr929_SIL_P.max_tht; } else { if (rtb_Sum1_gt < cr929_SIL_P.min_tht) { - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: * Constant: '/Constant Single64' */ rtb_Sum1_gt = cr929_SIL_P.min_tht; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant1' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant1' */ rtb_Merge_o_gear_up = cr929_SIL_B.Merge.gear_up; rtb_Merge_o_switch_video = cr929_SIL_B.Merge.switch_video; - rtb_Merge_o_steer_c = cr929_SIL_B.Merge.steer_c; - rtb_Merge_o_de_c = cr929_SIL_B.Merge.de_c; - rtb_Merge_o_dh_c = cr929_SIL_B.Merge.dh_c; - rtb_Merge_o_da_c = cr929_SIL_B.Merge.da_c; + rtb_MaxHdot = cr929_SIL_B.Merge.steer_c; + rtb_Switch2_l5 = cr929_SIL_B.Merge.de_c; + rtb_Sum1_o = cr929_SIL_B.Merge.dh_c; + rtb_MinMax = cr929_SIL_B.Merge.da_c; rtb_Merge_o_throttle_c = cr929_SIL_B.Merge.throttle_c; rtb_Merge_o_df_c = cr929_SIL_B.Merge.df_c; rtb_Merge_o_dsp_c = cr929_SIL_B.Merge.dsp_c; @@ -22099,11 +21641,11 @@ void cr929_SIL_step(void) rtb_Merge_o_dfrii_c = cr929_SIL_B.Merge.dfrii_c; rtb_Merge_o_dflo2_c = cr929_SIL_B.Merge.dflo2_c; rtb_Merge_o_dfro2_c = cr929_SIL_B.Merge.dfro2_c; - rtb_last_hdot_c = cr929_SIL_B.Merge.dspli_c[0]; - rtb_MaxHdot = cr929_SIL_B.Merge.dspri_c[0]; - rtb_Switch2_l5 = cr929_SIL_B.Merge.dspli_c[1]; - rtb_Sum1_o = cr929_SIL_B.Merge.dspri_c[1]; - rtb_MinMax = cr929_SIL_B.Merge.dspli_c[2]; + rtb_Gain_nd_idx_0 = cr929_SIL_B.Merge.dspli_c[0]; + rtb_Merge_o_dspri_c_idx_0 = cr929_SIL_B.Merge.dspri_c[0]; + rtb_Gain_nd_idx_1 = cr929_SIL_B.Merge.dspli_c[1]; + rtb_Merge_o_dspri_c_idx_1 = cr929_SIL_B.Merge.dspri_c[1]; + rtb_Gain_nd_idx_2 = cr929_SIL_B.Merge.dspli_c[2]; rtb_Merge_o_dspri_c_idx_2 = cr929_SIL_B.Merge.dspri_c[2]; for (i = 0; i < 5; i++) { rtb_Sum2_h[i] = cr929_SIL_B.Merge.dsplo_c[i]; @@ -22126,7 +21668,7 @@ void cr929_SIL_step(void) rtb_Merge_o_level4_lgx = cr929_SIL_B.Merge.level4_lgx; rtb_Merge_o_level5_lgx = cr929_SIL_B.Merge.level5_lgx; rtb_Merge_o_mode = cr929_SIL_B.Merge.mode; - rtb_table2D_Cm_df = cr929_SIL_B.Merge.traj.lat1; + rtb_Gain_nv = cr929_SIL_B.Merge.traj.lat1; rtb_q1dot = cr929_SIL_B.Merge.traj.lon1; rtb_Merge_o_traj_h1 = cr929_SIL_B.Merge.traj.h1; rtb_Merge_o_traj_azimuth = cr929_SIL_B.Merge.traj.azimuth; @@ -22224,6 +21766,7 @@ void cr929_SIL_step(void) rtb_Merge_o_dr_stimulus = cr929_SIL_B.Merge.dr_stimulus; rtb_Merge_o_dh_stimulus = cr929_SIL_B.Merge.dh_stimulus; rtb_Merge_o_ay_c = cr929_SIL_B.Merge.ay_c; + rtb_Merge_o_mass_est = cr929_SIL_B.Merge.mass_est; rtb_Merge_o_Switch_ControlLaw = cr929_SIL_B.Merge.Switch_ControlLaw; rtb_Merge_o_comac_ResetControlLaw = cr929_SIL_B.Merge.comac_ResetControlLaw; @@ -22252,113 +21795,113 @@ void cr929_SIL_step(void) rtb_Merge_o_comac_ALT_CMD = cr929_SIL_B.Merge.comac_ALT_CMD; rtb_Merge_o_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; - /* End of BusAssignment: '/Bus Assignment' */ + /* End of BusAssignment: '/Bus Assignment' */ - /* Sum: '/Sum3' */ + /* Sum: '/Sum3' */ rtb_Sum3_g = rtb_Sum1_gt - rtb_uDLookupTable_l; - /* End of Outputs for SubSystem: '/gamma2tht' */ + /* End of Outputs for SubSystem: '/gamma2tht' */ break; case 1: if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_m != s305_iter) { - /* InitializeConditions for IfAction SubSystem: '/as2tht' incorporates: - * ActionPort: '/Action Port' + /* InitializeConditions for IfAction SubSystem: '/as2tht' incorporates: + * ActionPort: '/Action Port' */ - /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: - * Delay: '/Delay' + /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: + * Delay: '/Delay' */ cr929_SIL_DW.icLoad_a3 = 1U; - /* End of InitializeConditions for SubSystem: '/as2tht' */ + /* End of InitializeConditions for SubSystem: '/as2tht' */ } - /* Outputs for IfAction SubSystem: '/as2tht' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/as2tht' incorporates: + * ActionPort: '/Action Port' */ - /* Gain: '/inv_g' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant2' + /* Gain: '/inv_g' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' * DataStoreRead: '/Data Store Read' - * Product: '/Product' - * Product: '/Product' - * Sum: '/Sum' + * Product: '/Product' + * Product: '/Product' + * Sum: '/Sum' */ rtb_qbarSc = 2.0F * cr929_SIL_P.ksi_v2tht * cr929_SIL_P.w_v2tht * (cr929_SIL_DW.CC.as_c - cr929_SIL_B.BusAssignment_h.IAS) * -0.10204082F; - /* Delay: '/Delay' incorporates: - * Sum: '/Sum4' + /* Delay: '/Delay' incorporates: + * Sum: '/Sum4' */ if (cr929_SIL_DW.icLoad_a3 != 0) { - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single6' * Constant: '/Constant Single64' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (cr929_SIL_B.BusAssignment_h.tht > cr929_SIL_P.max_tht) { - rtb_phi_c_c = cr929_SIL_P.max_tht; + rtb_phi_c_h = cr929_SIL_P.max_tht; } else if (cr929_SIL_B.BusAssignment_h.tht < cr929_SIL_P.min_tht) { - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: * Constant: '/Constant Single64' */ - rtb_phi_c_c = cr929_SIL_P.min_tht; + rtb_phi_c_h = cr929_SIL_P.min_tht; } else { - rtb_phi_c_c = cr929_SIL_B.BusAssignment_h.tht; + rtb_phi_c_h = cr929_SIL_B.BusAssignment_h.tht; } - /* End of Switch: '/Switch2' */ - cr929_SIL_DW.Delay_DSTATE_ey = rtb_phi_c_c - rtb_qbarSc; + /* End of Switch: '/Switch2' */ + cr929_SIL_DW.Delay_DSTATE_ey = rtb_phi_c_h - rtb_qbarSc; } - /* Sum: '/Sum1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant2' - * Constant: '/Constant' - * Delay: '/Delay' - * Product: '/Product1' - * Product: '/Product1' - * Product: '/Product2' - * Sum: '/Sum2' + /* Sum: '/Sum1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant' + * Delay: '/Delay' + * Product: '/Product1' + * Product: '/Product1' + * Product: '/Product2' + * Sum: '/Sum2' */ rtb_Sum1_gt = (cr929_SIL_P.w_v2tht / cr929_SIL_P.ksi_v2tht / 2.0F * rtb_qbarSc * 0.003062F + cr929_SIL_DW.Delay_DSTATE_ey) + rtb_qbarSc; - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single6' * Constant: '/Constant Single64' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Sum1_gt > cr929_SIL_P.max_tht) { rtb_Sum1_gt = cr929_SIL_P.max_tht; } else { if (rtb_Sum1_gt < cr929_SIL_P.min_tht) { - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: * Constant: '/Constant Single64' */ rtb_Sum1_gt = cr929_SIL_P.min_tht; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant1' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant1' */ rtb_Merge_o_gear_up = cr929_SIL_B.Merge.gear_up; rtb_Merge_o_switch_video = cr929_SIL_B.Merge.switch_video; - rtb_Merge_o_steer_c = cr929_SIL_B.Merge.steer_c; - rtb_Merge_o_de_c = cr929_SIL_B.Merge.de_c; - rtb_Merge_o_dh_c = cr929_SIL_B.Merge.dh_c; - rtb_Merge_o_da_c = cr929_SIL_B.Merge.da_c; + rtb_MaxHdot = cr929_SIL_B.Merge.steer_c; + rtb_Switch2_l5 = cr929_SIL_B.Merge.de_c; + rtb_Sum1_o = cr929_SIL_B.Merge.dh_c; + rtb_MinMax = cr929_SIL_B.Merge.da_c; rtb_Merge_o_throttle_c = cr929_SIL_B.Merge.throttle_c; rtb_Merge_o_df_c = cr929_SIL_B.Merge.df_c; rtb_Merge_o_dsp_c = cr929_SIL_B.Merge.dsp_c; @@ -22383,11 +21926,11 @@ void cr929_SIL_step(void) rtb_Merge_o_dfrii_c = cr929_SIL_B.Merge.dfrii_c; rtb_Merge_o_dflo2_c = cr929_SIL_B.Merge.dflo2_c; rtb_Merge_o_dfro2_c = cr929_SIL_B.Merge.dfro2_c; - rtb_last_hdot_c = cr929_SIL_B.Merge.dspli_c[0]; - rtb_MaxHdot = cr929_SIL_B.Merge.dspri_c[0]; - rtb_Switch2_l5 = cr929_SIL_B.Merge.dspli_c[1]; - rtb_Sum1_o = cr929_SIL_B.Merge.dspri_c[1]; - rtb_MinMax = cr929_SIL_B.Merge.dspli_c[2]; + rtb_Gain_nd_idx_0 = cr929_SIL_B.Merge.dspli_c[0]; + rtb_Merge_o_dspri_c_idx_0 = cr929_SIL_B.Merge.dspri_c[0]; + rtb_Gain_nd_idx_1 = cr929_SIL_B.Merge.dspli_c[1]; + rtb_Merge_o_dspri_c_idx_1 = cr929_SIL_B.Merge.dspri_c[1]; + rtb_Gain_nd_idx_2 = cr929_SIL_B.Merge.dspli_c[2]; rtb_Merge_o_dspri_c_idx_2 = cr929_SIL_B.Merge.dspri_c[2]; for (i = 0; i < 5; i++) { rtb_Sum2_h[i] = cr929_SIL_B.Merge.dsplo_c[i]; @@ -22410,7 +21953,7 @@ void cr929_SIL_step(void) rtb_Merge_o_level4_lgx = cr929_SIL_B.Merge.level4_lgx; rtb_Merge_o_level5_lgx = cr929_SIL_B.Merge.level5_lgx; rtb_Merge_o_mode = cr929_SIL_B.Merge.mode; - rtb_table2D_Cm_df = cr929_SIL_B.Merge.traj.lat1; + rtb_Gain_nv = cr929_SIL_B.Merge.traj.lat1; rtb_q1dot = cr929_SIL_B.Merge.traj.lon1; rtb_Merge_o_traj_h1 = cr929_SIL_B.Merge.traj.h1; rtb_Merge_o_traj_azimuth = cr929_SIL_B.Merge.traj.azimuth; @@ -22475,7 +22018,7 @@ void cr929_SIL_step(void) u0_0 = cr929_SIL_B.Merge.phi_c; rtb_Merge_o_psidot_c = cr929_SIL_B.Merge.psidot_c; rtb_Merge_o_hdot_c = cr929_SIL_B.Merge.hdot_c; - rtb_Merge_g = cr929_SIL_B.Merge.gamma_c; + rtb_Merge_dm = cr929_SIL_B.Merge.gamma_c; rtb_Merge_o_h_c = cr929_SIL_B.Merge.h_c; rtb_Merge_o_as_c = cr929_SIL_B.Merge.as_c; rtb_Merge_o_gs_c = cr929_SIL_B.Merge.gs_c; @@ -22509,6 +22052,7 @@ void cr929_SIL_step(void) rtb_Merge_o_dr_stimulus = cr929_SIL_B.Merge.dr_stimulus; rtb_Merge_o_dh_stimulus = cr929_SIL_B.Merge.dh_stimulus; rtb_Merge_o_ay_c = cr929_SIL_B.Merge.ay_c; + rtb_Merge_o_mass_est = cr929_SIL_B.Merge.mass_est; rtb_Merge_o_Switch_ControlLaw = cr929_SIL_B.Merge.Switch_ControlLaw; rtb_Merge_o_comac_ResetControlLaw = cr929_SIL_B.Merge.comac_ResetControlLaw; @@ -22537,27 +22081,27 @@ void cr929_SIL_step(void) rtb_Merge_o_comac_ALT_CMD = cr929_SIL_B.Merge.comac_ALT_CMD; rtb_Merge_o_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; - /* End of BusAssignment: '/Bus Assignment' */ + /* End of BusAssignment: '/Bus Assignment' */ - /* Update for Delay: '/Delay' incorporates: - * Sum: '/Sum3' + /* Update for Delay: '/Delay' incorporates: + * Sum: '/Sum3' */ cr929_SIL_DW.icLoad_a3 = 0U; cr929_SIL_DW.Delay_DSTATE_ey = rtb_Sum1_gt - rtb_qbarSc; - /* End of Outputs for SubSystem: '/as2tht' */ + /* End of Outputs for SubSystem: '/as2tht' */ break; case 2: - /* Outputs for IfAction SubSystem: '/off' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/off' incorporates: + * ActionPort: '/Action Port' */ rtb_Merge_o_gear_up = cr929_SIL_B.Merge.gear_up; rtb_Merge_o_switch_video = cr929_SIL_B.Merge.switch_video; - rtb_Merge_o_steer_c = cr929_SIL_B.Merge.steer_c; - rtb_Merge_o_de_c = cr929_SIL_B.Merge.de_c; - rtb_Merge_o_dh_c = cr929_SIL_B.Merge.dh_c; - rtb_Merge_o_da_c = cr929_SIL_B.Merge.da_c; + rtb_MaxHdot = cr929_SIL_B.Merge.steer_c; + rtb_Switch2_l5 = cr929_SIL_B.Merge.de_c; + rtb_Sum1_o = cr929_SIL_B.Merge.dh_c; + rtb_MinMax = cr929_SIL_B.Merge.da_c; rtb_Merge_o_throttle_c = cr929_SIL_B.Merge.throttle_c; rtb_Merge_o_df_c = cr929_SIL_B.Merge.df_c; rtb_Merge_o_dsp_c = cr929_SIL_B.Merge.dsp_c; @@ -22582,11 +22126,11 @@ void cr929_SIL_step(void) rtb_Merge_o_dfrii_c = cr929_SIL_B.Merge.dfrii_c; rtb_Merge_o_dflo2_c = cr929_SIL_B.Merge.dflo2_c; rtb_Merge_o_dfro2_c = cr929_SIL_B.Merge.dfro2_c; - rtb_last_hdot_c = cr929_SIL_B.Merge.dspli_c[0]; - rtb_MaxHdot = cr929_SIL_B.Merge.dspri_c[0]; - rtb_Switch2_l5 = cr929_SIL_B.Merge.dspli_c[1]; - rtb_Sum1_o = cr929_SIL_B.Merge.dspri_c[1]; - rtb_MinMax = cr929_SIL_B.Merge.dspli_c[2]; + rtb_Gain_nd_idx_0 = cr929_SIL_B.Merge.dspli_c[0]; + rtb_Merge_o_dspri_c_idx_0 = cr929_SIL_B.Merge.dspri_c[0]; + rtb_Gain_nd_idx_1 = cr929_SIL_B.Merge.dspli_c[1]; + rtb_Merge_o_dspri_c_idx_1 = cr929_SIL_B.Merge.dspri_c[1]; + rtb_Gain_nd_idx_2 = cr929_SIL_B.Merge.dspli_c[2]; rtb_Merge_o_dspri_c_idx_2 = cr929_SIL_B.Merge.dspri_c[2]; for (i = 0; i < 5; i++) { rtb_Sum2_h[i] = cr929_SIL_B.Merge.dsplo_c[i]; @@ -22610,7 +22154,7 @@ void cr929_SIL_step(void) rtb_Merge_o_level4_lgx = cr929_SIL_B.Merge.level4_lgx; rtb_Merge_o_level5_lgx = cr929_SIL_B.Merge.level5_lgx; rtb_Merge_o_mode = cr929_SIL_B.Merge.mode; - rtb_table2D_Cm_df = cr929_SIL_B.Merge.traj.lat1; + rtb_Gain_nv = cr929_SIL_B.Merge.traj.lat1; rtb_q1dot = cr929_SIL_B.Merge.traj.lon1; rtb_Merge_o_traj_h1 = cr929_SIL_B.Merge.traj.h1; rtb_Merge_o_traj_azimuth = cr929_SIL_B.Merge.traj.azimuth; @@ -22676,7 +22220,7 @@ void cr929_SIL_step(void) u0_0 = cr929_SIL_B.Merge.phi_c; rtb_Merge_o_psidot_c = cr929_SIL_B.Merge.psidot_c; rtb_Merge_o_hdot_c = cr929_SIL_B.Merge.hdot_c; - rtb_Merge_g = cr929_SIL_B.Merge.gamma_c; + rtb_Merge_dm = cr929_SIL_B.Merge.gamma_c; rtb_Merge_o_h_c = cr929_SIL_B.Merge.h_c; rtb_Merge_o_as_c = cr929_SIL_B.Merge.as_c; rtb_Merge_o_gs_c = cr929_SIL_B.Merge.gs_c; @@ -22710,6 +22254,7 @@ void cr929_SIL_step(void) rtb_Merge_o_dr_stimulus = cr929_SIL_B.Merge.dr_stimulus; rtb_Merge_o_dh_stimulus = cr929_SIL_B.Merge.dh_stimulus; rtb_Merge_o_ay_c = cr929_SIL_B.Merge.ay_c; + rtb_Merge_o_mass_est = cr929_SIL_B.Merge.mass_est; rtb_Merge_o_Switch_ControlLaw = cr929_SIL_B.Merge.Switch_ControlLaw; rtb_Merge_o_comac_ResetControlLaw = cr929_SIL_B.Merge.comac_ResetControlLaw; @@ -22737,14 +22282,14 @@ void cr929_SIL_step(void) rtb_Merge_o_comac_HDG_CMD = cr929_SIL_B.Merge.comac_HDG_CMD; rtb_Merge_o_comac_ALT_CMD = cr929_SIL_B.Merge.comac_ALT_CMD; - /* End of Outputs for SubSystem: '/off' */ + /* End of Outputs for SubSystem: '/off' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* SwitchCase: '/Switch Case' incorporates: - * Inport: '/C2_in_Inport_1' + /* SwitchCase: '/Switch Case' incorporates: + * Inport: '/C2_in_Inport_1' */ s305_iter = cr929_SIL_DW.SwitchCase_ActiveSubsystem_g; switch (rtb_Merge_o_AFCS_LAT) { @@ -22764,44 +22309,44 @@ void cr929_SIL_step(void) switch (cr929_SIL_DW.SwitchCase_ActiveSubsystem_g) { case 0: if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_g != s305_iter) { - /* SystemReset for IfAction SubSystem: '/LNAV2PHI' incorporates: - * ActionPort: '/Action Port' + /* SystemReset for IfAction SubSystem: '/LNAV2PHI' incorporates: + * ActionPort: '/Action Port' */ - /* SystemReset for SwitchCase: '/Switch Case' incorporates: - * Chart: '/psi_err' - * Chart: '/psi_err1' - * Chart: '/psi_err2' + /* SystemReset for SwitchCase: '/Switch Case' incorporates: + * Chart: '/psi_err' + * Chart: '/psi_err1' + * Chart: '/psi_err2' */ cr929_SIL_psi_err_Reset(&rtb_out_ic); cr929_SIL_psi_err_Reset(&rtb_out_pj); cr929_SIL_psi_err_Reset(&rtb_out_kz); - /* End of SystemReset for SubSystem: '/LNAV2PHI' */ + /* End of SystemReset for SubSystem: '/LNAV2PHI' */ } - /* Outputs for IfAction SubSystem: '/LNAV2PHI' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/LNAV2PHI' incorporates: + * ActionPort: '/Action Port' */ - /* Saturate: '/Saturation max_phi' incorporates: + /* Saturate: '/Saturation max_phi' incorporates: * Constant: '/Constant Single7' */ if (cr929_SIL_P.max_phi > 1.04712045F) { - rtb_phi_c_c = 1.04712045F; + rtb_phi_c_h = 1.04712045F; } else if (cr929_SIL_P.max_phi < 0.0872600377F) { - rtb_phi_c_c = 0.0872600377F; + rtb_phi_c_h = 0.0872600377F; } else { - rtb_phi_c_c = cr929_SIL_P.max_phi; + rtb_phi_c_h = cr929_SIL_P.max_phi; } - /* End of Saturate: '/Saturation max_phi' */ + /* End of Saturate: '/Saturation max_phi' */ - /* Product: '/Product1' incorporates: + /* Product: '/Product1' incorporates: * Constant: '/Constant Single42' - * Trigonometry: '/max_ns' + * Trigonometry: '/max_ns' */ - rtb_Product1_ox = 9.8F * tanf(rtb_phi_c_c); + rtb_Product1_ox = 9.8F * tanf(rtb_phi_c_h); - /* Saturate: '/pos v_g' incorporates: + /* Saturate: '/pos v_g' incorporates: * Outport: '/traj' */ if (cr929_SIL_Y.traj.v_g <= 1.0F) { @@ -22810,25 +22355,25 @@ void cr929_SIL_step(void) rtb_posv_g = cr929_SIL_Y.traj.v_g; } - /* End of Saturate: '/pos v_g' */ + /* End of Saturate: '/pos v_g' */ - /* Gain: '/margin_R' incorporates: - * Math: '/sqare v_g' - * Product: '/max_R' + /* Gain: '/margin_R' incorporates: + * Math: '/sqare v_g' + * Product: '/max_R' */ rtb_Saturationcos = rtb_posv_g * rtb_posv_g / rtb_Product1_ox * 1.2F; - /* Product: '/cos_max_dpsi' incorporates: - * Abs: '/AbsDy' - * Gain: '/Gain' + /* Product: '/cos_max_dpsi' incorporates: + * Abs: '/AbsDy' + * Gain: '/Gain' * Outport: '/traj' - * Sum: '/Subtract' + * Sum: '/Subtract' */ rtb_Saturationcos = (rtb_Saturationcos - fabsf (-cr929_SIL_Y.traj.horiz_offset)) / rtb_Saturationcos; - /* Saturate: '/Saturation cos' */ + /* Saturate: '/Saturation cos' */ if (rtb_Saturationcos > 0.996195257F) { rtb_Saturationcos = 0.996195257F; } else { @@ -22837,20 +22382,20 @@ void cr929_SIL_step(void) } } - /* End of Saturate: '/Saturation cos' */ + /* End of Saturate: '/Saturation cos' */ - /* Trigonometry: '/max_dpsi' */ + /* Trigonometry: '/max_dpsi' */ rtb_max_dpsi_o = acosf(rtb_Saturationcos); - /* Product: '/dv2vg' incorporates: + /* Product: '/dv2vg' incorporates: * Constant: '/Constant Single20' - * Gain: '/Gain' + * Gain: '/Gain' * Outport: '/traj' - * Product: '/Product' + * Product: '/Product' */ u0_0 = -cr929_SIL_Y.traj.horiz_offset * cr929_SIL_P.w_y / rtb_posv_g; - /* Saturate: '/Saturation sin(psi_c)' */ + /* Saturate: '/Saturation sin(psi_c)' */ if (u0_0 > 0.9998F) { u0_0 = 0.9998F; } else { @@ -22859,133 +22404,133 @@ void cr929_SIL_step(void) } } - /* End of Saturate: '/Saturation sin(psi_c)' */ + /* End of Saturate: '/Saturation sin(psi_c)' */ - /* Trigonometry: '/psi_c' */ + /* Trigonometry: '/psi_c' */ rtb_Saturationcos = asinf(u0_0); - /* Switch: '/Switch2' incorporates: - * Gain: '/neg' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Gain: '/neg' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Saturationcos > rtb_max_dpsi_o) { rtb_Saturationcos = rtb_max_dpsi_o; } else { if (rtb_Saturationcos < -rtb_max_dpsi_o) { - /* Switch: '/Switch' incorporates: - * Gain: '/neg' + /* Switch: '/Switch' incorporates: + * Gain: '/neg' */ rtb_Saturationcos = -rtb_max_dpsi_o; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Sum: '/Sum' incorporates: + /* Sum: '/Sum' incorporates: * Outport: '/traj' */ rtb_Sum_ht = rtb_Saturationcos + cr929_SIL_Y.traj.bearing_baseline; - /* Sum: '/err_psi' incorporates: + /* Sum: '/err_psi' incorporates: * Outport: '/traj' */ rtb_err_psi = rtb_Sum_ht - cr929_SIL_Y.traj.psi_t; - /* Chart: '/psi_err' */ + /* Chart: '/psi_err' */ cr929_SIL_psi_err(rtb_err_psi, &rtb_out_ic); - /* Product: '/product1' incorporates: + /* Product: '/product1' incorporates: * Constant: '/Constant Single21' * Outport: '/traj' - * Product: '/product' - * Sum: '/Sum1' + * Product: '/product' + * Sum: '/Sum1' */ rtb_Saturationcos = (rtb_out_ic * cr929_SIL_P.w_as + cr929_SIL_Y.traj.omega_des) * rtb_posv_g; - /* Switch: '/Switch2' incorporates: - * Gain: '/Gain2' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Gain: '/Gain2' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Saturationcos > rtb_Product1_ox) { rtb_Saturationcos = rtb_Product1_ox; } else { if (rtb_Saturationcos < -rtb_Product1_ox) { - /* Switch: '/Switch' incorporates: - * Gain: '/Gain2' + /* Switch: '/Switch' incorporates: + * Gain: '/Gain2' */ rtb_Saturationcos = -rtb_Product1_ox; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Trigonometry: '/phi_c' incorporates: + /* Trigonometry: '/phi_c' incorporates: * Constant: '/Constant Single42' */ rtb_Product1_ox = rt_atan2f_snf(rtb_Saturationcos, 9.8F); - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single7' - * Gain: '/Gain' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + * Gain: '/Gain' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Product1_ox > cr929_SIL_P.max_phi) { rtb_Product1_ox = cr929_SIL_P.max_phi; } else { if (rtb_Product1_ox < -cr929_SIL_P.max_phi) { - /* Switch: '/Switch' incorporates: - * Gain: '/Gain' + /* Switch: '/Switch' incorporates: + * Gain: '/Gain' */ rtb_Product1_ox = -cr929_SIL_P.max_phi; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* SwitchCase: '/Switch Case' incorporates: - * Constant: '/Constant' - * Inport: '/In1' + /* SwitchCase: '/Switch Case' incorporates: + * Constant: '/Constant' + * Inport: '/In1' */ switch (rtb_Merge_o_CSAS_yaw) { case ENUM_CSAS_YAW_DAMPING: case ENUM_CSAS_YAW_AY_CTRL: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ rtb_Merge_ay_CSAS_yaw = rtb_Merge_o_CSAS_yaw; - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem1' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem1' */ break; default: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ rtb_Merge_ay_CSAS_yaw = ENUM_CSAS_YAW_DAMPING; - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem2' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem2' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant BP' - * Constant: '/Constant1' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant BP' + * Constant: '/Constant1' */ - rtb_Merge_ay_gear_up = rtb_Merge_o_gear_up; + rtb_out_hr = rtb_Merge_o_gear_up; rtb_Merge_ay_switch_video = rtb_Merge_o_switch_video; - rtb_posv_g = rtb_Merge_o_steer_c; - rtb_Saturationcos = rtb_Merge_o_de_c; - rtb_max_dpsi_o = rtb_Merge_o_dh_c; - rtb_Merge_ay_da_c = rtb_Merge_o_da_c; + rtb_posv_g = rtb_MaxHdot; + rtb_Saturationcos = rtb_Switch2_l5; + rtb_max_dpsi_o = rtb_Sum1_o; + rtb_Merge_ay_da_c = rtb_MinMax; rtb_Merge_ay_throttle_c = rtb_Merge_o_throttle_c; rtb_Merge_ay_df_c = rtb_Merge_o_df_c; rtb_Merge_ay_dsp_c = rtb_Merge_o_dsp_c; @@ -23009,11 +22554,11 @@ void cr929_SIL_step(void) rtb_Merge_ay_dfrii_c = rtb_Merge_o_dfrii_c; rtb_Merge_ay_dflo2_c = rtb_Merge_o_dflo2_c; rtb_Merge_ay_dfro2_c = rtb_Merge_o_dfro2_c; - rtb_Merge_ay_dspli_c_idx_0 = rtb_last_hdot_c; - rtb_Merge_ay_dspri_c_idx_0 = rtb_MaxHdot; - rtb_Merge_ay_dspli_c_idx_1 = rtb_Switch2_l5; - rtb_Merge_ay_dspri_c_idx_1 = rtb_Sum1_o; - rtb_Merge_ay_dspli_c_idx_2 = rtb_MinMax; + rtb_Merge_ay_dspli_c_idx_0 = rtb_Gain_nd_idx_0; + rtb_Merge_ay_dspri_c_idx_0 = rtb_Merge_o_dspri_c_idx_0; + rtb_Merge_ay_dspli_c_idx_1 = rtb_Gain_nd_idx_1; + rtb_Merge_ay_dspri_c_idx_1 = rtb_Merge_o_dspri_c_idx_1; + rtb_Merge_ay_dspli_c_idx_2 = rtb_Gain_nd_idx_2; rtb_Merge_ay_dspri_c_idx_2 = rtb_Merge_o_dspri_c_idx_2; for (i = 0; i < 5; i++) { rtb_Merge_ay_dsplo_c[i] = rtb_Sum2_h[i]; @@ -23035,7 +22580,7 @@ void cr929_SIL_step(void) rtb_Merge_ay_level4_lgx = rtb_Merge_o_level4_lgx; rtb_Merge_ay_level5_lgx = rtb_Merge_o_level5_lgx; rtb_Merge_ay_mode = rtb_Merge_o_mode; - rtb_Merge_ay_traj_lat1 = rtb_table2D_Cm_df; + rtb_Merge_ay_traj_lat1 = rtb_Gain_nv; rtb_Merge_ay_traj_lon1 = rtb_q1dot; rtb_Merge_ay_traj_h1 = rtb_Merge_o_traj_h1; rtb_Merge_ay_traj_azimuth = rtb_Merge_o_traj_azimuth; @@ -23100,7 +22645,7 @@ void cr929_SIL_step(void) rtb_Merge_ay_tht_c = rtb_Sum1_gt; rtb_Sum3_o = rtb_Merge_o_psidot_c; rtb_Merge_ay_hdot_c = rtb_Merge_o_hdot_c; - rtb_Merge_ay_gamma_c = rtb_Merge_g; + rtb_Merge_ay_gamma_c = rtb_Merge_dm; rtb_Merge_ay_h_c = rtb_Merge_o_h_c; rtb_Merge_ay_as_c = rtb_Merge_o_as_c; rtb_Merge_ay_gs_c = rtb_Merge_o_gs_c; @@ -23133,6 +22678,7 @@ void cr929_SIL_step(void) rtb_Merge_ay_da_stimulus = rtb_Merge_o_da_stimulus; rtb_Merge_ay_dr_stimulus = rtb_Merge_o_dr_stimulus; rtb_Merge_ay_dh_stimulus = rtb_Merge_o_dh_stimulus; + rtb_Merge_ay_mass_est = rtb_Merge_o_mass_est; rtb_Merge_ay_Switch_ControlLaw = rtb_Merge_o_Switch_ControlLaw; rtb_Merge_ay_comac_ResetControlLaw = rtb_Merge_o_comac_ResetControlLaw; rtb_Merge_ay_comac_Arm_RUDTrimPanel = rtb_Merge_o_comac_Arm_RUDTrimPanel; @@ -23157,43 +22703,43 @@ void cr929_SIL_step(void) rtb_Merge_ay_CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; rtb_Merge_ay_ay_c = 0.0F; - /* End of BusAssignment: '/Bus Assignment' */ + /* End of BusAssignment: '/Bus Assignment' */ - /* Sum: '/err_psi1' incorporates: + /* Sum: '/err_psi1' incorporates: * Outport: '/traj' */ rtb_err_psi1 = cr929_SIL_Y.traj.psi_t - cr929_SIL_B.BusAssignment_h.psi; - /* Chart: '/psi_err1' */ + /* Chart: '/psi_err1' */ cr929_SIL_psi_err(rtb_err_psi1, &rtb_out_pj); - /* Chart: '/psi_err2' */ + /* Chart: '/psi_err2' */ cr929_SIL_psi_err(rtb_Sum_ht, &rtb_out_kz); - /* End of Outputs for SubSystem: '/LNAV2PHI' */ + /* End of Outputs for SubSystem: '/LNAV2PHI' */ break; case 1: if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_g != s305_iter) { - /* SystemReset for IfAction SubSystem: '/LNAV2PSIDOT' incorporates: - * ActionPort: '/Action Port' + /* SystemReset for IfAction SubSystem: '/LNAV2PSIDOT' incorporates: + * ActionPort: '/Action Port' */ - /* SystemReset for SwitchCase: '/Switch Case' incorporates: - * Chart: '/psi_err1' - * Chart: '/psi_err2' - * Chart: '/psi_err3' + /* SystemReset for SwitchCase: '/Switch Case' incorporates: + * Chart: '/psi_err1' + * Chart: '/psi_err2' + * Chart: '/psi_err3' */ cr929_SIL_psi_err_Reset(&rtb_out_kk); cr929_SIL_psi_err_Reset(&rtb_out_gh); cr929_SIL_psi_err_Reset(&rtb_out_cy); - /* End of SystemReset for SubSystem: '/LNAV2PSIDOT' */ + /* End of SystemReset for SubSystem: '/LNAV2PSIDOT' */ } - /* Outputs for IfAction SubSystem: '/LNAV2PSIDOT' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/LNAV2PSIDOT' incorporates: + * ActionPort: '/Action Port' */ - /* Saturate: '/Saturation' incorporates: + /* Saturate: '/Saturation' incorporates: * Outport: '/traj' */ if (cr929_SIL_Y.traj.v_g <= 1.0F) { @@ -23202,31 +22748,31 @@ void cr929_SIL_step(void) rtb_Product1_ox = cr929_SIL_Y.traj.v_g; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Lookup_n-D: '/1-D Lookup Table' incorporates: + /* Lookup_n-D: '/1-D Lookup Table' incorporates: * Outport: '/traj' */ rtb_posv_g = look1_iflf_pbinlcapw(cr929_SIL_Y.traj.v_g, rtCP_uDLookupTable_bp01Data_m, rtCP_uDLookupTable_tableData_f, &cr929_SIL_DW.m_bpIndex_by, 2U); - /* Gain: '/margin_R' incorporates: - * Math: '/sqare v_g' - * Product: '/max_R' + /* Gain: '/margin_R' incorporates: + * Math: '/sqare v_g' + * Product: '/max_R' */ rtb_posv_g = rtb_Product1_ox * rtb_Product1_ox / rtb_posv_g * 1.2F; - /* Product: '/cos_max_dpsi' incorporates: - * Abs: '/AbsDy' - * Gain: '/Gain' + /* Product: '/cos_max_dpsi' incorporates: + * Abs: '/AbsDy' + * Gain: '/Gain' * Outport: '/traj' - * Sum: '/Subtract' + * Sum: '/Subtract' */ rtb_posv_g = (rtb_posv_g - fabsf(-cr929_SIL_Y.traj.horiz_offset)) / rtb_posv_g; - /* Saturate: '/Saturation cos' */ + /* Saturate: '/Saturation cos' */ if (rtb_posv_g > 0.996195257F) { rtb_posv_g = 0.996195257F; } else { @@ -23235,21 +22781,21 @@ void cr929_SIL_step(void) } } - /* End of Saturate: '/Saturation cos' */ + /* End of Saturate: '/Saturation cos' */ - /* Trigonometry: '/max_dpsi' */ + /* Trigonometry: '/max_dpsi' */ rtb_posv_g = acosf(rtb_posv_g); - /* Product: '/dv2vg' incorporates: + /* Product: '/dv2vg' incorporates: * Constant: '/Constant Single20' - * Gain: '/Gain' + * Gain: '/Gain' * Outport: '/traj' - * Product: '/Product' + * Product: '/Product' */ rtb_Product1_ox = -cr929_SIL_Y.traj.horiz_offset * cr929_SIL_P.w_y / rtb_Product1_ox; - /* Saturate: '/Saturation sin(psi_c)' */ + /* Saturate: '/Saturation sin(psi_c)' */ if (rtb_Product1_ox > 0.9998F) { rtb_Product1_ox = 0.9998F; } else { @@ -23258,121 +22804,121 @@ void cr929_SIL_step(void) } } - /* End of Saturate: '/Saturation sin(psi_c)' */ + /* End of Saturate: '/Saturation sin(psi_c)' */ - /* Trigonometry: '/psi_c' */ + /* Trigonometry: '/psi_c' */ rtb_qbarSc = asinf(rtb_Product1_ox); - /* Switch: '/Switch2' incorporates: - * Gain: '/neg' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Gain: '/neg' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_qbarSc > rtb_posv_g) { rtb_qbarSc = rtb_posv_g; } else { if (rtb_qbarSc < -rtb_posv_g) { - /* Switch: '/Switch' incorporates: - * Gain: '/neg' + /* Switch: '/Switch' incorporates: + * Gain: '/neg' */ rtb_qbarSc = -rtb_posv_g; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Sum: '/Sum' incorporates: + /* Sum: '/Sum' incorporates: * Outport: '/traj' */ rtb_Sum_ea = cr929_SIL_Y.traj.psi_t - cr929_SIL_Y.traj.bearing_baseline; - /* Chart: '/psi_err2' */ + /* Chart: '/psi_err2' */ cr929_SIL_psi_err(rtb_Sum_ea, &rtb_out_kk); - /* Sum: '/Sum1' incorporates: + /* Sum: '/Sum1' incorporates: * Outport: '/traj' */ rtb_Sum1_m2 = cr929_SIL_B.BusAssignment_h.psi - cr929_SIL_Y.traj.bearing_baseline; - /* Chart: '/psi_err1' */ + /* Chart: '/psi_err1' */ cr929_SIL_psi_err(rtb_Sum1_m2, &rtb_out_gh); - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: * Outport: '/traj' */ if (cr929_SIL_Y.traj.v_g > 3.0F) { - rtb_phi_c_c = rtb_out_kk; + rtb_phi_c_h = rtb_out_kk; } else { - rtb_phi_c_c = rtb_out_gh; + rtb_phi_c_h = rtb_out_gh; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Sum: '/Sum2' */ - rtb_qbarSc -= rtb_phi_c_c; + /* Sum: '/Sum2' */ + rtb_qbarSc -= rtb_phi_c_h; - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant1' - * Constant: '/Constant2' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant2' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_qbarSc > 0.2F) { rtb_qbarSc = 0.2F; } else { if (rtb_qbarSc < -0.2F) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant2' */ rtb_qbarSc = -0.2F; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Sum: '/Sum3' incorporates: + /* Sum: '/Sum3' incorporates: * Constant: '/Constant Single17' * Constant: '/Constant Single31' - * Gain: '/Gain' + * Gain: '/Gain' * Outport: '/traj' - * Product: '/Product' + * Product: '/Product' */ rtb_Sum3_o = (rtb_qbarSc * cr929_SIL_P.w_r * cr929_SIL_P.k_psi + cr929_SIL_Y.traj.omega_des) + 0.4F * rtb_Merge_o_rc_yaw_cmd; - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single12' - * Gain: '/Gain1' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + * Gain: '/Gain1' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Sum3_o > cr929_SIL_P.max_r) { rtb_Sum3_o = cr929_SIL_P.max_r; } else { if (rtb_Sum3_o < -cr929_SIL_P.max_r) { - /* Switch: '/Switch' incorporates: - * Gain: '/Gain1' + /* Switch: '/Switch' incorporates: + * Gain: '/Gain1' */ rtb_Sum3_o = -cr929_SIL_P.max_r; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant1' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant1' */ - rtb_Merge_ay_gear_up = rtb_Merge_o_gear_up; + rtb_out_hr = rtb_Merge_o_gear_up; rtb_Merge_ay_switch_video = rtb_Merge_o_switch_video; - rtb_posv_g = rtb_Merge_o_steer_c; - rtb_Saturationcos = rtb_Merge_o_de_c; - rtb_max_dpsi_o = rtb_Merge_o_dh_c; - rtb_Merge_ay_da_c = rtb_Merge_o_da_c; + rtb_posv_g = rtb_MaxHdot; + rtb_Saturationcos = rtb_Switch2_l5; + rtb_max_dpsi_o = rtb_Sum1_o; + rtb_Merge_ay_da_c = rtb_MinMax; rtb_Merge_ay_throttle_c = rtb_Merge_o_throttle_c; rtb_Merge_ay_df_c = rtb_Merge_o_df_c; rtb_Merge_ay_dsp_c = rtb_Merge_o_dsp_c; @@ -23396,11 +22942,11 @@ void cr929_SIL_step(void) rtb_Merge_ay_dfrii_c = rtb_Merge_o_dfrii_c; rtb_Merge_ay_dflo2_c = rtb_Merge_o_dflo2_c; rtb_Merge_ay_dfro2_c = rtb_Merge_o_dfro2_c; - rtb_Merge_ay_dspli_c_idx_0 = rtb_last_hdot_c; - rtb_Merge_ay_dspri_c_idx_0 = rtb_MaxHdot; - rtb_Merge_ay_dspli_c_idx_1 = rtb_Switch2_l5; - rtb_Merge_ay_dspri_c_idx_1 = rtb_Sum1_o; - rtb_Merge_ay_dspli_c_idx_2 = rtb_MinMax; + rtb_Merge_ay_dspli_c_idx_0 = rtb_Gain_nd_idx_0; + rtb_Merge_ay_dspri_c_idx_0 = rtb_Merge_o_dspri_c_idx_0; + rtb_Merge_ay_dspli_c_idx_1 = rtb_Gain_nd_idx_1; + rtb_Merge_ay_dspri_c_idx_1 = rtb_Merge_o_dspri_c_idx_1; + rtb_Merge_ay_dspli_c_idx_2 = rtb_Gain_nd_idx_2; rtb_Merge_ay_dspri_c_idx_2 = rtb_Merge_o_dspri_c_idx_2; for (i = 0; i < 5; i++) { rtb_Merge_ay_dsplo_c[i] = rtb_Sum2_h[i]; @@ -23423,7 +22969,7 @@ void cr929_SIL_step(void) rtb_Merge_ay_level4_lgx = rtb_Merge_o_level4_lgx; rtb_Merge_ay_level5_lgx = rtb_Merge_o_level5_lgx; rtb_Merge_ay_mode = rtb_Merge_o_mode; - rtb_Merge_ay_traj_lat1 = rtb_table2D_Cm_df; + rtb_Merge_ay_traj_lat1 = rtb_Gain_nv; rtb_Merge_ay_traj_lon1 = rtb_q1dot; rtb_Merge_ay_traj_h1 = rtb_Merge_o_traj_h1; rtb_Merge_ay_traj_azimuth = rtb_Merge_o_traj_azimuth; @@ -23488,7 +23034,7 @@ void cr929_SIL_step(void) rtb_Merge_ay_tht_c = rtb_Sum1_gt; rtb_Product1_ox = u0_0; rtb_Merge_ay_hdot_c = rtb_Merge_o_hdot_c; - rtb_Merge_ay_gamma_c = rtb_Merge_g; + rtb_Merge_ay_gamma_c = rtb_Merge_dm; rtb_Merge_ay_h_c = rtb_Merge_o_h_c; rtb_Merge_ay_as_c = rtb_Merge_o_as_c; rtb_Merge_ay_gs_c = rtb_Merge_o_gs_c; @@ -23522,6 +23068,7 @@ void cr929_SIL_step(void) rtb_Merge_ay_dr_stimulus = rtb_Merge_o_dr_stimulus; rtb_Merge_ay_dh_stimulus = rtb_Merge_o_dh_stimulus; rtb_Merge_ay_ay_c = rtb_Merge_o_ay_c; + rtb_Merge_ay_mass_est = rtb_Merge_o_mass_est; rtb_Merge_ay_Switch_ControlLaw = rtb_Merge_o_Switch_ControlLaw; rtb_Merge_ay_comac_ResetControlLaw = rtb_Merge_o_comac_ResetControlLaw; rtb_Merge_ay_comac_Arm_RUDTrimPanel = rtb_Merge_o_comac_Arm_RUDTrimPanel; @@ -23545,29 +23092,29 @@ void cr929_SIL_step(void) rtb_Merge_ay_comac_ALT_CMD = rtb_Merge_o_comac_ALT_CMD; rtb_Merge_ay_CSAS_yaw = ENUM_CSAS_YAW_PSIDOT_CTRL; - /* End of BusAssignment: '/Bus Assignment' */ + /* End of BusAssignment: '/Bus Assignment' */ - /* Sum: '/Sum4' incorporates: + /* Sum: '/Sum4' incorporates: * Outport: '/traj' */ rtb_Sum4_p = cr929_SIL_Y.traj.bearing_baseline + rtb_qbarSc; - /* Chart: '/psi_err3' */ + /* Chart: '/psi_err3' */ cr929_SIL_psi_err(rtb_Sum4_p, &rtb_out_cy); - /* End of Outputs for SubSystem: '/LNAV2PSIDOT' */ + /* End of Outputs for SubSystem: '/LNAV2PSIDOT' */ break; case 2: - /* Outputs for IfAction SubSystem: '/OFF' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/OFF' incorporates: + * ActionPort: '/Action Port' */ - rtb_Merge_ay_gear_up = rtb_Merge_o_gear_up; + rtb_out_hr = rtb_Merge_o_gear_up; rtb_Merge_ay_switch_video = rtb_Merge_o_switch_video; - rtb_posv_g = rtb_Merge_o_steer_c; - rtb_Saturationcos = rtb_Merge_o_de_c; - rtb_max_dpsi_o = rtb_Merge_o_dh_c; - rtb_Merge_ay_da_c = rtb_Merge_o_da_c; + rtb_posv_g = rtb_MaxHdot; + rtb_Saturationcos = rtb_Switch2_l5; + rtb_max_dpsi_o = rtb_Sum1_o; + rtb_Merge_ay_da_c = rtb_MinMax; rtb_Merge_ay_throttle_c = rtb_Merge_o_throttle_c; rtb_Merge_ay_df_c = rtb_Merge_o_df_c; rtb_Merge_ay_dsp_c = rtb_Merge_o_dsp_c; @@ -23591,11 +23138,11 @@ void cr929_SIL_step(void) rtb_Merge_ay_dfrii_c = rtb_Merge_o_dfrii_c; rtb_Merge_ay_dflo2_c = rtb_Merge_o_dflo2_c; rtb_Merge_ay_dfro2_c = rtb_Merge_o_dfro2_c; - rtb_Merge_ay_dspli_c_idx_0 = rtb_last_hdot_c; - rtb_Merge_ay_dspri_c_idx_0 = rtb_MaxHdot; - rtb_Merge_ay_dspli_c_idx_1 = rtb_Switch2_l5; - rtb_Merge_ay_dspri_c_idx_1 = rtb_Sum1_o; - rtb_Merge_ay_dspli_c_idx_2 = rtb_MinMax; + rtb_Merge_ay_dspli_c_idx_0 = rtb_Gain_nd_idx_0; + rtb_Merge_ay_dspri_c_idx_0 = rtb_Merge_o_dspri_c_idx_0; + rtb_Merge_ay_dspli_c_idx_1 = rtb_Gain_nd_idx_1; + rtb_Merge_ay_dspri_c_idx_1 = rtb_Merge_o_dspri_c_idx_1; + rtb_Merge_ay_dspli_c_idx_2 = rtb_Gain_nd_idx_2; rtb_Merge_ay_dspri_c_idx_2 = rtb_Merge_o_dspri_c_idx_2; for (i = 0; i < 5; i++) { rtb_Merge_ay_dsplo_c[i] = rtb_Sum2_h[i]; @@ -23619,7 +23166,7 @@ void cr929_SIL_step(void) rtb_Merge_ay_level4_lgx = rtb_Merge_o_level4_lgx; rtb_Merge_ay_level5_lgx = rtb_Merge_o_level5_lgx; rtb_Merge_ay_mode = rtb_Merge_o_mode; - rtb_Merge_ay_traj_lat1 = rtb_table2D_Cm_df; + rtb_Merge_ay_traj_lat1 = rtb_Gain_nv; rtb_Merge_ay_traj_lon1 = rtb_q1dot; rtb_Merge_ay_traj_h1 = rtb_Merge_o_traj_h1; rtb_Merge_ay_traj_azimuth = rtb_Merge_o_traj_azimuth; @@ -23685,7 +23232,7 @@ void cr929_SIL_step(void) rtb_Product1_ox = u0_0; rtb_Sum3_o = rtb_Merge_o_psidot_c; rtb_Merge_ay_hdot_c = rtb_Merge_o_hdot_c; - rtb_Merge_ay_gamma_c = rtb_Merge_g; + rtb_Merge_ay_gamma_c = rtb_Merge_dm; rtb_Merge_ay_h_c = rtb_Merge_o_h_c; rtb_Merge_ay_as_c = rtb_Merge_o_as_c; rtb_Merge_ay_gs_c = rtb_Merge_o_gs_c; @@ -23719,6 +23266,7 @@ void cr929_SIL_step(void) rtb_Merge_ay_dr_stimulus = rtb_Merge_o_dr_stimulus; rtb_Merge_ay_dh_stimulus = rtb_Merge_o_dh_stimulus; rtb_Merge_ay_ay_c = rtb_Merge_o_ay_c; + rtb_Merge_ay_mass_est = rtb_Merge_o_mass_est; rtb_Merge_ay_Switch_ControlLaw = rtb_Merge_o_Switch_ControlLaw; rtb_Merge_ay_comac_ResetControlLaw = rtb_Merge_o_comac_ResetControlLaw; rtb_Merge_ay_comac_Arm_RUDTrimPanel = rtb_Merge_o_comac_Arm_RUDTrimPanel; @@ -23741,16 +23289,16 @@ void cr929_SIL_step(void) rtb_Merge_ay_comac_HDG_CMD = rtb_Merge_o_comac_HDG_CMD; rtb_Merge_ay_comac_ALT_CMD = rtb_Merge_o_comac_ALT_CMD; - /* End of Outputs for SubSystem: '/OFF' */ + /* End of Outputs for SubSystem: '/OFF' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* SwitchCase: '/Switch Case' incorporates: - * Constant: '/Constant' - * Constant: '/Constant3' - * Constant: '/Constant5' + /* SwitchCase: '/Switch Case' incorporates: + * Constant: '/Constant' + * Constant: '/Constant3' + * Constant: '/Constant5' */ s305_iter = cr929_SIL_DW.SwitchCase_ActiveSubsystem_h; switch (rtb_Merge_ay_CSAS_roll) { @@ -23771,305 +23319,304 @@ void cr929_SIL_step(void) switch (cr929_SIL_DW.SwitchCase_ActiveSubsystem_h) { case 0: if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_h != s305_iter) { - /* InitializeConditions for IfAction SubSystem: '/ROLL_CTRL' incorporates: - * ActionPort: '/Action Port' + /* InitializeConditions for IfAction SubSystem: '/ROLL_CTRL' incorporates: + * ActionPort: '/Action Port' */ - /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: - * Delay: '/Delay' - * UnitDelay: '/Unit Delay' + /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: + * Delay: '/Delay' + * UnitDelay: '/Unit Delay' */ cr929_SIL_DW.icLoad_d2 = 1U; cr929_SIL_DW.UnitDelay_DSTATE_f = 0.0F; - /* End of InitializeConditions for SubSystem: '/ROLL_CTRL' */ + /* End of InitializeConditions for SubSystem: '/ROLL_CTRL' */ - /* SystemReset for IfAction SubSystem: '/ROLL_CTRL' incorporates: - * ActionPort: '/Action Port' + /* SystemReset for IfAction SubSystem: '/ROLL_CTRL' incorporates: + * ActionPort: '/Action Port' */ - /* SystemReset for Atomic SubSystem: '/theta1' */ - /* SystemReset for SwitchCase: '/Switch Case' */ + /* SystemReset for Atomic SubSystem: '/theta1' */ + /* SystemReset for SwitchCase: '/Switch Case' */ cr929_SIL_theta1_Reset(&cr929_SIL_DW.theta1_d); - /* End of SystemReset for SubSystem: '/theta1' */ + /* End of SystemReset for SubSystem: '/theta1' */ - /* SystemReset for Atomic SubSystem: '/theta2' */ + /* SystemReset for Atomic SubSystem: '/theta2' */ cr929_SIL_theta2_Reset(&cr929_SIL_DW.theta2_g); - /* End of SystemReset for SubSystem: '/theta2' */ + /* End of SystemReset for SubSystem: '/theta2' */ - /* SystemReset for Atomic SubSystem: '/theta3' */ + /* SystemReset for Atomic SubSystem: '/theta3' */ cr929_SIL_theta2_Reset(&cr929_SIL_DW.theta3_b); - /* End of SystemReset for SubSystem: '/theta3' */ - /* End of SystemReset for SubSystem: '/ROLL_CTRL' */ + /* End of SystemReset for SubSystem: '/theta3' */ + /* End of SystemReset for SubSystem: '/ROLL_CTRL' */ } - /* Outputs for IfAction SubSystem: '/ROLL_CTRL' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/ROLL_CTRL' incorporates: + * ActionPort: '/Action Port' */ - /* MinMax: '/Min' */ - rtb_last_hdot_c = fminf(rtb_Merge_ay_max_da, rtb_Product2_g); + /* MinMax: '/Min' */ + rtb_Product2_g = fminf(rtb_Merge_ay_max_da, rtb_Product2_g); - /* Product: '/Product3' incorporates: - * Gain: '/Gain' + /* Product: '/Product3' incorporates: + * Gain: '/Gain' */ - rtb_pdot_max = rtb_Product5 * -rtb_last_hdot_c; + rtb_pdot_max = rtb_Product5 * -rtb_Product2_g; - /* SwitchCase: '/Switch Case' */ + /* SwitchCase: '/Switch Case' */ if (rtb_Merge_ay_CSAS_roll == ENUM_CSAS_ROLL_ROLL_CTRL) { - /* Outputs for IfAction SubSystem: '/roll_ctrl' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/roll_ctrl' incorporates: + * ActionPort: '/Action Port' */ - /* Outputs for Atomic SubSystem: '/phi_ctrl' */ - /* Saturate: '/Saturation' */ + /* Outputs for Atomic SubSystem: '/phi_ctrl' */ + /* Saturate: '/Saturation' */ if (cr929_SIL_B.BusAssignment_h.tht > 1.0F) { - rtb_phi_c_c = 1.0F; + rtb_phi_c_h = 1.0F; } else if (cr929_SIL_B.BusAssignment_h.tht < -1.0F) { - rtb_phi_c_c = -1.0F; + rtb_phi_c_h = -1.0F; } else { - rtb_phi_c_c = cr929_SIL_B.BusAssignment_h.tht; + rtb_phi_c_h = cr929_SIL_B.BusAssignment_h.tht; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Sum: '/Sum' incorporates: + /* Sum: '/Sum' incorporates: * Constant: '/Constant Single30' - * Product: '/Product' - * Product: '/Product1' - * Product: '/Product2' - * Product: '/Product3' - * Sum: '/Sum3' - * Sum: '/Sum5' - * Trigonometry: '/Trigonometric Function' - * Trigonometry: '/Trigonometric Function1' - * Trigonometry: '/Trigonometric Function2' + * Product: '/Product' + * Product: '/Product1' + * Product: '/Product2' + * Product: '/Product3' + * Sum: '/Sum3' + * Sum: '/Sum5' + * Trigonometry: '/Trigonometric Function' + * Trigonometry: '/Trigonometric Function1' + * Trigonometry: '/Trigonometric Function2' */ - rtb_Switch2_l5 = (rtb_Product1_ox - cr929_SIL_B.BusAssignment_h.phi) * + rtb_MaxHdot = (rtb_Product1_ox - cr929_SIL_B.BusAssignment_h.phi) * cr929_SIL_P.k_phi - (cr929_SIL_B.BusAssignment_h.q * sinf (cr929_SIL_B.BusAssignment_h.phi) + cr929_SIL_B.BusAssignment_h.r * - cosf(cr929_SIL_B.BusAssignment_h.phi)) * tanf(rtb_phi_c_c); + cosf(cr929_SIL_B.BusAssignment_h.phi)) * tanf(rtb_phi_c_h); - /* Gain: '/neg1' incorporates: + /* Gain: '/neg1' incorporates: * Constant: '/Constant Single10' */ - rtb_MaxHdot = -cr929_SIL_P.max_p; + rtb_Merge_dm = -cr929_SIL_P.max_p; - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: * Constant: '/Constant Single10' - * Gain: '/neg1' - * RelationalOperator: '/UpperRelop' + * Gain: '/neg1' + * RelationalOperator: '/UpperRelop' */ - if (!(rtb_Switch2_l5 < -cr929_SIL_P.max_p)) { - rtb_MaxHdot = rtb_Switch2_l5; + if (!(rtb_MaxHdot < -cr929_SIL_P.max_p)) { + rtb_Merge_dm = rtb_MaxHdot; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single10' - * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/LowerRelop1' */ - if (rtb_Switch2_l5 > cr929_SIL_P.max_p) { - /* SignalConversion: '/OutportBufferForp_c' */ - rtb_MaxHdot = cr929_SIL_P.max_p; + if (rtb_MaxHdot > cr929_SIL_P.max_p) { + /* SignalConversion: '/OutportBufferForp_c' */ + rtb_Merge_dm = cr929_SIL_P.max_p; } - /* End of Switch: '/Switch2' */ - /* End of Outputs for SubSystem: '/phi_ctrl' */ - /* End of Outputs for SubSystem: '/roll_ctrl' */ + /* End of Switch: '/Switch2' */ + /* End of Outputs for SubSystem: '/phi_ctrl' */ + /* End of Outputs for SubSystem: '/roll_ctrl' */ } else { - /* Outputs for IfAction SubSystem: '/pass_p_c' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/pass_p_c' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion: '/Signal Copy' */ - rtb_MaxHdot = rtb_Merge_ay_p_c; + /* SignalConversion: '/Signal Copy' */ + rtb_Merge_dm = rtb_Merge_ay_p_c; - /* End of Outputs for SubSystem: '/pass_p_c' */ + /* End of Outputs for SubSystem: '/pass_p_c' */ } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* Delay: '/Delay' incorporates: - * Product: '/Product2' + /* Delay: '/Delay' incorporates: + * Product: '/Product2' */ if (cr929_SIL_DW.icLoad_d2 != 0) { cr929_SIL_DW.Delay_DSTATE_e = rtb_Product5 * rtb_Merge_ay_da_c; } - /* SignalConversion: '/Signal Copy' incorporates: - * UnitDelay: '/Unit Delay' + /* SignalConversion: '/Signal Copy' incorporates: + * UnitDelay: '/Unit Delay' */ rec_hi.p_hat = cr929_SIL_DW.UnitDelay_DSTATE_f; - /* Gain: '/Gain' incorporates: - * Sum: '/Sum1' - * UnitDelay: '/Unit Delay' + /* Gain: '/Gain' incorporates: + * Sum: '/Sum1' + * UnitDelay: '/Unit Delay' */ - rtb_Switch2_l5 = -(cr929_SIL_DW.UnitDelay_DSTATE_f - - cr929_SIL_B.BusAssignment_h.p); + rtb_MaxHdot = -(cr929_SIL_DW.UnitDelay_DSTATE_f - + cr929_SIL_B.BusAssignment_h.p); - /* Gain: '/Gain4' incorporates: - * Delay: '/Delay' - * Product: '/Product2' + /* Gain: '/Gain4' incorporates: + * Delay: '/Delay' + * Product: '/Product2' */ - rtb_Saturation_e = rtb_Switch2_l5 * cr929_SIL_DW.Delay_DSTATE_e * - 2000.0F; + rtb_Saturation_e = rtb_MaxHdot * cr929_SIL_DW.Delay_DSTATE_e * 2000.0F; - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (rtb_Saturation_e > 1000.0F) { - /* Gain: '/Gain4' */ + /* Gain: '/Gain4' */ rtb_Saturation_e = 1000.0F; } else { if (rtb_Saturation_e < -1000.0F) { - /* Gain: '/Gain4' */ + /* Gain: '/Gain4' */ rtb_Saturation_e = -1000.0F; } } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Outputs for Atomic SubSystem: '/theta1' */ + /* Outputs for Atomic SubSystem: '/theta1' */ rtb_Switch2_k = (real32_T) cr929_SIL_theta1(rtb_Saturation_e, 3.0F, 1.0F, &cr929_SIL_DW.theta1_d, 0.003062F); - /* End of Outputs for SubSystem: '/theta1' */ + /* End of Outputs for SubSystem: '/theta1' */ - /* Gain: '/Gain3' incorporates: - * Constant: '/Constant' - * Constant: '/Constant3' + /* Gain: '/Gain3' incorporates: + * Constant: '/Constant' + * Constant: '/Constant3' */ - rtb_Saturation1_l = 2000.0F * rtb_Switch2_l5; + rtb_Saturation1_l = 2000.0F * rtb_MaxHdot; - /* Saturate: '/Saturation1' */ + /* Saturate: '/Saturation1' */ if (rtb_Saturation1_l > 1000.0F) { - /* Gain: '/Gain3' */ + /* Gain: '/Gain3' */ rtb_Saturation1_l = 1000.0F; } else { if (rtb_Saturation1_l < -1000.0F) { - /* Gain: '/Gain3' */ + /* Gain: '/Gain3' */ rtb_Saturation1_l = -1000.0F; } } - /* End of Saturate: '/Saturation1' */ + /* End of Saturate: '/Saturation1' */ - /* Outputs for Atomic SubSystem: '/theta2' */ + /* Outputs for Atomic SubSystem: '/theta2' */ rtb_Switch2_i = (real32_T) cr929_SIL_theta2(rtb_Saturation1_l, rtb_pdot_max, 0.0F, &cr929_SIL_DW.theta2_g, 0.003062F); - /* End of Outputs for SubSystem: '/theta2' */ + /* End of Outputs for SubSystem: '/theta2' */ - /* Product: '/Product1' incorporates: - * Constant: '/Constant5' + /* Product: '/Product1' incorporates: + * Constant: '/Constant5' */ - rtb_Switch2_l5 *= cr929_SIL_B.BusAssignment_h.p; + rtb_MaxHdot *= cr929_SIL_B.BusAssignment_h.p; - /* Gain: '/Gain2' */ - rtb_Switch2_l5 *= 2000.0F; + /* Gain: '/Gain2' */ + rtb_MaxHdot *= 2000.0F; - /* Saturate: '/Saturation2' */ - if (rtb_Switch2_l5 > 1000.0F) { + /* Saturate: '/Saturation2' */ + if (rtb_MaxHdot > 1000.0F) { rtb_Saturation2_i = 1000.0F; - } else if (rtb_Switch2_l5 < -1000.0F) { + } else if (rtb_MaxHdot < -1000.0F) { rtb_Saturation2_i = -1000.0F; } else { - rtb_Saturation2_i = rtb_Switch2_l5; + rtb_Saturation2_i = rtb_MaxHdot; } - /* End of Saturate: '/Saturation2' */ + /* End of Saturate: '/Saturation2' */ - /* Sum: '/Sum' incorporates: - * Constant: '/Constant1' - * Gain: '/Gain1' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant1' + * Gain: '/Gain1' */ - rtb_Sum1_o = -rtb_p2pdot + 1.0F; + rtb_Switch2_l5 = -rtb_p2pdot + 1.0F; - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: * Constant: '/Constant Single32' - * Constant: '/Constant1' - * Gain: '/Gain1' - * Sum: '/Sum' - * Sum: '/Sum2' + * Constant: '/Constant1' + * Gain: '/Gain1' + * Sum: '/Sum' + * Sum: '/Sum2' */ if (cr929_SIL_P.w_p - (-rtb_p2pdot + 1.0F) > 0.0F) { - rtb_Sum1_o = cr929_SIL_P.w_p; + rtb_Switch2_l5 = cr929_SIL_P.w_p; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Sum: '/Sum' */ - rtb_Sum_el = rtb_p2pdot + rtb_Sum1_o; + /* Sum: '/Sum' */ + rtb_Sum_el = rtb_p2pdot + rtb_Switch2_l5; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ rtb_Gain1_oj = 2.0F * rtb_Sum_el; - /* Outputs for Atomic SubSystem: '/theta3' */ + /* Outputs for Atomic SubSystem: '/theta3' */ rtb_Switch2_c = (real32_T) cr929_SIL_theta2(rtb_Saturation2_i, rtb_Gain1_oj, rtb_Sum_el, &cr929_SIL_DW.theta3_b, 0.003062F); - /* End of Outputs for SubSystem: '/theta3' */ + /* End of Outputs for SubSystem: '/theta3' */ - /* Sum: '/Sum2' incorporates: - * Delay: '/Delay' - * Product: '/Product1' - * Product: '/Product2' + /* Sum: '/Sum2' incorporates: + * Delay: '/Delay' + * Product: '/Product1' + * Product: '/Product2' */ - rtb_Switch2_l5 = (rtb_Switch2_k * cr929_SIL_DW.Delay_DSTATE_e + - rtb_Switch2_i) + rtb_Switch2_c * + rtb_MaxHdot = (rtb_Switch2_k * cr929_SIL_DW.Delay_DSTATE_e + + rtb_Switch2_i) + rtb_Switch2_c * cr929_SIL_B.BusAssignment_h.p; - /* Sum: '/Sum5' incorporates: + /* Sum: '/Sum5' incorporates: * Constant: '/Constant Single34' - * Delay: '/Delay' - * Gain: '/dt' - * Product: '/Product' - * Product: '/Product1' - * Sum: '/Sum' + * Delay: '/Delay' + * Gain: '/dt' + * Product: '/Product' + * Product: '/Product1' + * Sum: '/Sum' */ - rtb_Switch2_b = (rtb_Sum1_o * rtb_MaxHdot - rtb_Switch2_l5) * + rtb_Switch2_b = (rtb_Switch2_l5 * rtb_Merge_dm - rtb_MaxHdot) * cr929_SIL_P.k_p * 0.003062F + cr929_SIL_DW.Delay_DSTATE_e; - /* Switch: '/Switch2' incorporates: - * Gain: '/Gain' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Gain: '/Gain' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch2_b > rtb_pdot_max) { rtb_Switch2_b = rtb_pdot_max; } else { if (rtb_Switch2_b < -rtb_pdot_max) { - /* Switch: '/Switch' incorporates: - * Gain: '/Gain' + /* Switch: '/Switch' incorporates: + * Gain: '/Gain' */ rtb_Switch2_b = -rtb_pdot_max; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* SignalConversion: '/Signal Copy4' */ + /* SignalConversion: '/Signal Copy4' */ rec_hi.pdot_c = rtb_Switch2_b; - /* If: '/If' incorporates: - * Inport: '/In1' - * Product: '/Divide' + /* If: '/If' incorporates: + * Inport: '/In1' + * Product: '/Divide' */ if (rtb_Merge_ay_use_da2dsp) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* Product: '/Product' incorporates: - * Constant: '/Constant' - * Product: '/Divide' + /* Product: '/Product' incorporates: + * Constant: '/Constant' + * Product: '/Divide' */ rtb_Product_e4 = rec_hi.pdot_c / rtb_Product5 * cr929_SIL_P.Clda_mix; - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant1' - * Constant: '/Constant2' + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant2' */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' * Input0 Data Type: Floating Point real32_T * Input1 Data Type: Floating Point real32_T * Input2 Data Type: Floating Point real32_T @@ -24080,42 +23627,42 @@ void cr929_SIL_step(void) LookUp_real32_T_real32_T( &(rtb_LookupTableDynamic_d), &cr929_SIL_P.da_lst[0], rtb_Product_e4, &cr929_SIL_P.Cl_lst[0], 14U); - /* SignalConversion: '/OutportBufferForda_c' */ - rtb_MinMax = rtb_LookupTableDynamic_d; + /* SignalConversion: '/OutportBufferForda_c' */ + rtb_Product5 = rtb_LookupTableDynamic_d; - /* End of Outputs for SubSystem: '/If Action Subsystem' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - rtb_MinMax = rec_hi.pdot_c / rtb_Product5; + rtb_Product5 = rec_hi.pdot_c / rtb_Product5; - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ - if (!(rtb_MinMax > rtb_last_hdot_c)) { - /* Switch: '/Switch' incorporates: - * Gain: '/Gain' - * RelationalOperator: '/UpperRelop' + if (!(rtb_Product5 > rtb_Product2_g)) { + /* Switch: '/Switch' incorporates: + * Gain: '/Gain' + * RelationalOperator: '/UpperRelop' */ - if (rtb_MinMax < -rtb_last_hdot_c) { - rtb_last_hdot_c = -rtb_last_hdot_c; + if (rtb_Product5 < -rtb_Product2_g) { + rtb_Product2_g = -rtb_Product2_g; } else { - rtb_last_hdot_c = rtb_MinMax; + rtb_Product2_g = rtb_Product5; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* BusAssignment: '/Bus Assignment' */ - cr929_SIL_B.Merge_l.gear_up = rtb_Merge_ay_gear_up; + /* BusAssignment: '/Bus Assignment' */ + cr929_SIL_B.Merge_l.gear_up = rtb_out_hr; cr929_SIL_B.Merge_l.switch_video = rtb_Merge_ay_switch_video; cr929_SIL_B.Merge_l.steer_c = rtb_posv_g; cr929_SIL_B.Merge_l.de_c = rtb_Saturationcos; @@ -24275,6 +23822,7 @@ void cr929_SIL_step(void) cr929_SIL_B.Merge_l.dr_stimulus = rtb_Merge_ay_dr_stimulus; cr929_SIL_B.Merge_l.dh_stimulus = rtb_Merge_ay_dh_stimulus; cr929_SIL_B.Merge_l.ay_c = rtb_Merge_ay_ay_c; + cr929_SIL_B.Merge_l.mass_est = rtb_Merge_ay_mass_est; cr929_SIL_B.Merge_l.Switch_ControlLaw = rtb_Merge_ay_Switch_ControlLaw; cr929_SIL_B.Merge_l.comac_ResetControlLaw = rtb_Merge_ay_comac_ResetControlLaw; @@ -24301,57 +23849,57 @@ void cr929_SIL_step(void) cr929_SIL_B.Merge_l.comac_FPA_CMD = rtb_Merge_ay_comac_FPA_CMD; cr929_SIL_B.Merge_l.comac_HDG_CMD = rtb_Merge_ay_comac_HDG_CMD; cr929_SIL_B.Merge_l.comac_ALT_CMD = rtb_Merge_ay_comac_ALT_CMD; - cr929_SIL_B.Merge_l.p_c = rtb_MaxHdot; - cr929_SIL_B.Merge_l.da_c = rtb_last_hdot_c; + cr929_SIL_B.Merge_l.p_c = rtb_Merge_dm; + cr929_SIL_B.Merge_l.da_c = rtb_Product2_g; - /* End of BusAssignment: '/Bus Assignment' */ + /* End of BusAssignment: '/Bus Assignment' */ - /* Sum: '/Sum5' incorporates: - * Gain: '/dt' - * Product: '/Product' - * Sum: '/Sum' - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum5' incorporates: + * Gain: '/dt' + * Product: '/Product' + * Sum: '/Sum' + * UnitDelay: '/Unit Delay' */ - cr929_SIL_DW.UnitDelay_DSTATE_f += (rtb_Switch2_l5 - rtb_Sum1_o * + cr929_SIL_DW.UnitDelay_DSTATE_f += (rtb_MaxHdot - rtb_Switch2_l5 * cr929_SIL_DW.UnitDelay_DSTATE_f) * 0.003062F; - /* SignalConversion: '/Signal Copy3' */ + /* SignalConversion: '/Signal Copy3' */ rec_hi.p_tht_hat = rtb_Switch2_c; - /* SignalConversion: '/Signal Copy1' */ + /* SignalConversion: '/Signal Copy1' */ rec_hi.p_sigma_hat = rtb_Switch2_i; - /* SignalConversion: '/Signal Copy2' */ + /* SignalConversion: '/Signal Copy2' */ rec_hi.p_omega_hat = rtb_Switch2_k; - /* End of Outputs for SubSystem: '/ROLL_CTRL' */ + /* End of Outputs for SubSystem: '/ROLL_CTRL' */ break; case 1: - /* Outputs for IfAction SubSystem: '/COMMAND' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/COMMAND' incorporates: + * ActionPort: '/Action Port' */ - /* Switch: '/Switch2' incorporates: - * Gain: '/gain' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Gain: '/gain' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Merge_ay_da_c > rtb_Merge_ay_max_da) { - rtb_last_hdot_c = rtb_Merge_ay_max_da; + rtb_Product5 = rtb_Merge_ay_max_da; } else if (rtb_Merge_ay_da_c < -rtb_Merge_ay_max_da) { - /* Switch: '/Switch' incorporates: - * Gain: '/gain' + /* Switch: '/Switch' incorporates: + * Gain: '/gain' */ - rtb_last_hdot_c = -rtb_Merge_ay_max_da; + rtb_Product5 = -rtb_Merge_ay_max_da; } else { - rtb_last_hdot_c = rtb_Merge_ay_da_c; + rtb_Product5 = rtb_Merge_ay_da_c; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* BusAssignment: '/Bus Assignment' */ - cr929_SIL_B.Merge_l.gear_up = rtb_Merge_ay_gear_up; + /* BusAssignment: '/Bus Assignment' */ + cr929_SIL_B.Merge_l.gear_up = rtb_out_hr; cr929_SIL_B.Merge_l.switch_video = rtb_Merge_ay_switch_video; cr929_SIL_B.Merge_l.steer_c = rtb_posv_g; cr929_SIL_B.Merge_l.de_c = rtb_Saturationcos; @@ -24511,6 +24059,7 @@ void cr929_SIL_step(void) cr929_SIL_B.Merge_l.dr_stimulus = rtb_Merge_ay_dr_stimulus; cr929_SIL_B.Merge_l.dh_stimulus = rtb_Merge_ay_dh_stimulus; cr929_SIL_B.Merge_l.ay_c = rtb_Merge_ay_ay_c; + cr929_SIL_B.Merge_l.mass_est = rtb_Merge_ay_mass_est; cr929_SIL_B.Merge_l.Switch_ControlLaw = rtb_Merge_ay_Switch_ControlLaw; cr929_SIL_B.Merge_l.comac_ResetControlLaw = rtb_Merge_ay_comac_ResetControlLaw; @@ -24537,20 +24086,20 @@ void cr929_SIL_step(void) cr929_SIL_B.Merge_l.comac_FPA_CMD = rtb_Merge_ay_comac_FPA_CMD; cr929_SIL_B.Merge_l.comac_HDG_CMD = rtb_Merge_ay_comac_HDG_CMD; cr929_SIL_B.Merge_l.comac_ALT_CMD = rtb_Merge_ay_comac_ALT_CMD; - cr929_SIL_B.Merge_l.da_c = rtb_last_hdot_c; + cr929_SIL_B.Merge_l.da_c = rtb_Product5; - /* End of BusAssignment: '/Bus Assignment' */ - /* End of Outputs for SubSystem: '/COMMAND' */ + /* End of BusAssignment: '/Bus Assignment' */ + /* End of Outputs for SubSystem: '/COMMAND' */ break; case 2: - /* Outputs for IfAction SubSystem: '/OFF' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/OFF' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant' */ - cr929_SIL_B.Merge_l.gear_up = rtb_Merge_ay_gear_up; + cr929_SIL_B.Merge_l.gear_up = rtb_out_hr; cr929_SIL_B.Merge_l.switch_video = rtb_Merge_ay_switch_video; cr929_SIL_B.Merge_l.steer_c = rtb_posv_g; cr929_SIL_B.Merge_l.de_c = rtb_Saturationcos; @@ -24710,6 +24259,7 @@ void cr929_SIL_step(void) cr929_SIL_B.Merge_l.dr_stimulus = rtb_Merge_ay_dr_stimulus; cr929_SIL_B.Merge_l.dh_stimulus = rtb_Merge_ay_dh_stimulus; cr929_SIL_B.Merge_l.ay_c = rtb_Merge_ay_ay_c; + cr929_SIL_B.Merge_l.mass_est = rtb_Merge_ay_mass_est; cr929_SIL_B.Merge_l.Switch_ControlLaw = rtb_Merge_ay_Switch_ControlLaw; cr929_SIL_B.Merge_l.comac_ResetControlLaw = rtb_Merge_ay_comac_ResetControlLaw; @@ -24738,18 +24288,18 @@ void cr929_SIL_step(void) cr929_SIL_B.Merge_l.comac_ALT_CMD = rtb_Merge_ay_comac_ALT_CMD; cr929_SIL_B.Merge_l.da_c = 0.0F; - /* End of BusAssignment: '/Bus Assignment' */ - /* End of Outputs for SubSystem: '/OFF' */ + /* End of BusAssignment: '/Bus Assignment' */ + /* End of Outputs for SubSystem: '/OFF' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ /* Outputs for Atomic SubSystem: '/pitch' */ - /* SwitchCase: '/Switch Case' incorporates: - * Constant: '/Constant' - * Constant: '/Constant3' - * Constant: '/Constant5' + /* SwitchCase: '/Switch Case' incorporates: + * Constant: '/Constant' + * Constant: '/Constant3' + * Constant: '/Constant5' */ s305_iter = cr929_SIL_DW.SwitchCase_ActiveSubsystem_j; switch (cr929_SIL_B.Merge_l.CSAS_pitch) { @@ -24774,62 +24324,62 @@ void cr929_SIL_step(void) switch (cr929_SIL_DW.SwitchCase_ActiveSubsystem_j) { case 0: if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_j != s305_iter) { - /* InitializeConditions for IfAction SubSystem: '/THT_Q_CTRL' incorporates: - * ActionPort: '/Action Port' + /* InitializeConditions for IfAction SubSystem: '/THT_Q_CTRL' incorporates: + * ActionPort: '/Action Port' */ - /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: - * Delay: '/Delay' - * UnitDelay: '/Unit Delay' + /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: + * Delay: '/Delay' + * UnitDelay: '/Unit Delay' */ cr929_SIL_DW.icLoad_o = 1U; cr929_SIL_DW.UnitDelay_DSTATE_o = 0.0F; - /* End of InitializeConditions for SubSystem: '/THT_Q_CTRL' */ + /* End of InitializeConditions for SubSystem: '/THT_Q_CTRL' */ - /* SystemReset for IfAction SubSystem: '/THT_Q_CTRL' incorporates: - * ActionPort: '/Action Port' + /* SystemReset for IfAction SubSystem: '/THT_Q_CTRL' incorporates: + * ActionPort: '/Action Port' */ - /* SystemReset for Atomic SubSystem: '/theta1' */ - /* SystemReset for SwitchCase: '/Switch Case' */ + /* SystemReset for Atomic SubSystem: '/theta1' */ + /* SystemReset for SwitchCase: '/Switch Case' */ cr929_SIL_theta1_Reset(&cr929_SIL_DW.theta1); - /* End of SystemReset for SubSystem: '/theta1' */ + /* End of SystemReset for SubSystem: '/theta1' */ - /* SystemReset for Atomic SubSystem: '/theta2' */ + /* SystemReset for Atomic SubSystem: '/theta2' */ cr929_SIL_theta2_Reset(&cr929_SIL_DW.theta2); - /* End of SystemReset for SubSystem: '/theta2' */ + /* End of SystemReset for SubSystem: '/theta2' */ - /* SystemReset for Atomic SubSystem: '/theta3' */ + /* SystemReset for Atomic SubSystem: '/theta3' */ cr929_SIL_theta2_Reset(&cr929_SIL_DW.theta3); - /* End of SystemReset for SubSystem: '/theta3' */ - /* End of SystemReset for SubSystem: '/THT_Q_CTRL' */ + /* End of SystemReset for SubSystem: '/theta3' */ + /* End of SystemReset for SubSystem: '/THT_Q_CTRL' */ } - /* Outputs for IfAction SubSystem: '/THT_Q_CTRL' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/THT_Q_CTRL' incorporates: + * ActionPort: '/Action Port' */ - /* MinMax: '/Min' */ + /* MinMax: '/Min' */ rtb_Switch2_ki = fminf(cr929_SIL_B.Merge_l.max_de, rtb_Product_l); - /* Product: '/Product3' */ + /* Product: '/Product3' */ rtb_qdot_max = rtb_de2qdot * rtb_Product1_ie; - /* Delay: '/Delay' incorporates: - * Product: '/Product2' + /* Delay: '/Delay' incorporates: + * Product: '/Product2' */ if (cr929_SIL_DW.icLoad_o != 0) { cr929_SIL_DW.Delay_DSTATE_e5 = rtb_de2qdot * cr929_SIL_B.Merge_l.de_c; } - /* SwitchCase: '/Switch Case' */ + /* SwitchCase: '/Switch Case' */ if (cr929_SIL_B.Merge_l.CSAS_pitch == ENUM_CSAS_PITCH_THT_CTRL) { - /* Outputs for IfAction SubSystem: '/tht_ctrl' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/tht_ctrl' incorporates: + * ActionPort: '/Action Port' */ - /* Outputs for Atomic SubSystem: '/tht_ctrl' */ - /* Saturate: '/Saturation' */ + /* Outputs for Atomic SubSystem: '/tht_ctrl' */ + /* Saturate: '/Saturation' */ if (cr929_SIL_B.BusAssignment_h.phi > 1.0F) { rtb_Switch_gmk = 1.0F; } else if (cr929_SIL_B.BusAssignment_h.phi < -1.0F) { @@ -24838,102 +24388,102 @@ void cr929_SIL_step(void) rtb_Switch_gmk = cr929_SIL_B.BusAssignment_h.phi; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Product: '/Divide' incorporates: + /* Product: '/Divide' incorporates: * Constant: '/Constant Single29' - * Product: '/Product' - * Product: '/Product2' - * Sum: '/Sum' - * Sum: '/Sum5' - * Trigonometry: '/Trigonometric Function' - * Trigonometry: '/Trigonometric Function1' + * Product: '/Product' + * Product: '/Product2' + * Sum: '/Sum' + * Sum: '/Sum5' + * Trigonometry: '/Trigonometric Function' + * Trigonometry: '/Trigonometric Function1' */ rtb_Divide_e = ((cr929_SIL_B.Merge_l.tht_c - cr929_SIL_B.BusAssignment_h.tht) * cr929_SIL_P.k_tht + cr929_SIL_B.BusAssignment_h.r * sinf(rtb_Switch_gmk)) / cosf(rtb_Switch_gmk); - /* Gain: '/Gain3' incorporates: + /* Gain: '/Gain3' incorporates: * Constant: '/Constant Single11' */ rtb_Switch_gmk = -cr929_SIL_P.max_q; - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: * Constant: '/Constant Single11' - * Gain: '/Gain3' - * RelationalOperator: '/UpperRelop' + * Gain: '/Gain3' + * RelationalOperator: '/UpperRelop' */ if (!(rtb_Divide_e < -cr929_SIL_P.max_q)) { rtb_Switch_gmk = rtb_Divide_e; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single11' - * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/LowerRelop1' */ if (rtb_Divide_e > cr929_SIL_P.max_q) { - /* SignalConversion: '/OutportBufferForq_c' */ + /* SignalConversion: '/OutportBufferForq_c' */ rtb_Switch_gmk = cr929_SIL_P.max_q; } - /* End of Switch: '/Switch2' */ - /* End of Outputs for SubSystem: '/tht_ctrl' */ - /* End of Outputs for SubSystem: '/tht_ctrl' */ + /* End of Switch: '/Switch2' */ + /* End of Outputs for SubSystem: '/tht_ctrl' */ + /* End of Outputs for SubSystem: '/tht_ctrl' */ } else { - /* Outputs for IfAction SubSystem: '/pass_q_c' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/pass_q_c' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion: '/Signal Copy' */ + /* SignalConversion: '/Signal Copy' */ rtb_Switch_gmk = cr929_SIL_B.Merge_l.q_c; - /* End of Outputs for SubSystem: '/pass_q_c' */ + /* End of Outputs for SubSystem: '/pass_q_c' */ } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* Sum: '/Sum' incorporates: - * Constant: '/Constant1' - * Gain: '/Gain1' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant1' + * Gain: '/Gain1' */ - rtb_last_hdot_c = -rtb_q2qdot + 1.0F; + rtb_Product_l = -rtb_q2qdot + 1.0F; - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: * Constant: '/Constant Single33' - * Constant: '/Constant1' - * Gain: '/Gain1' - * Sum: '/Sum' - * Sum: '/Sum2' + * Constant: '/Constant1' + * Gain: '/Gain1' + * Sum: '/Sum' + * Sum: '/Sum2' */ if (cr929_SIL_P.w_q - (-rtb_q2qdot + 1.0F) > 0.0F) { - rtb_last_hdot_c = cr929_SIL_P.w_q; + rtb_Product_l = cr929_SIL_P.w_q; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* SignalConversion: '/Signal Copy1' incorporates: - * UnitDelay: '/Unit Delay' + /* SignalConversion: '/Signal Copy1' incorporates: + * UnitDelay: '/Unit Delay' */ rec_hi.q_hat = cr929_SIL_DW.UnitDelay_DSTATE_o; - /* Sum: '/Sum1' incorporates: - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum1' incorporates: + * UnitDelay: '/Unit Delay' */ rtb_Switch2_eg = cr929_SIL_DW.UnitDelay_DSTATE_o - cr929_SIL_B.BusAssignment_h.q; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ rtb_Switch2_eg = -rtb_Switch2_eg; - /* Gain: '/Gain4' incorporates: - * Delay: '/Delay' - * Product: '/Product2' + /* Gain: '/Gain4' incorporates: + * Delay: '/Delay' + * Product: '/Product2' */ u0_0 = rtb_Switch2_eg * cr929_SIL_DW.Delay_DSTATE_e5 * 2500.0F; - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (u0_0 > 1000.0F) { rtb_Saturation_l = 1000.0F; } else if (u0_0 < -1000.0F) { @@ -24942,21 +24492,21 @@ void cr929_SIL_step(void) rtb_Saturation_l = u0_0; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Outputs for Atomic SubSystem: '/theta1' */ + /* Outputs for Atomic SubSystem: '/theta1' */ rtb_Switch2_jt = (real32_T) cr929_SIL_theta1(rtb_Saturation_l, 3.0F, 1.0F, &cr929_SIL_DW.theta1, 0.003062F); - /* End of Outputs for SubSystem: '/theta1' */ + /* End of Outputs for SubSystem: '/theta1' */ - /* Gain: '/Gain3' incorporates: - * Constant: '/Constant' - * Constant: '/Constant3' + /* Gain: '/Gain3' incorporates: + * Constant: '/Constant' + * Constant: '/Constant3' */ u0_0 = 2500.0F * rtb_Switch2_eg; - /* Saturate: '/Saturation1' */ + /* Saturate: '/Saturation1' */ if (u0_0 > 1000.0F) { rtb_Saturation1_lq = 1000.0F; } else if (u0_0 < -1000.0F) { @@ -24965,23 +24515,23 @@ void cr929_SIL_step(void) rtb_Saturation1_lq = u0_0; } - /* End of Saturate: '/Saturation1' */ + /* End of Saturate: '/Saturation1' */ - /* Outputs for Atomic SubSystem: '/theta2' */ + /* Outputs for Atomic SubSystem: '/theta2' */ rtb_Switch2_ld = (real32_T) cr929_SIL_theta2(rtb_Saturation1_lq, rtb_qdot_max, 0.0F, &cr929_SIL_DW.theta2, 0.003062F); - /* End of Outputs for SubSystem: '/theta2' */ + /* End of Outputs for SubSystem: '/theta2' */ - /* Product: '/Product1' incorporates: - * Constant: '/Constant5' + /* Product: '/Product1' incorporates: + * Constant: '/Constant5' */ rtb_Switch2_eg *= cr929_SIL_B.BusAssignment_h.q; - /* Gain: '/Gain2' */ + /* Gain: '/Gain2' */ rtb_Switch2_eg *= 2500.0F; - /* Saturate: '/Saturation2' */ + /* Saturate: '/Saturation2' */ u0_0 = rtb_Switch2_eg; if (u0_0 > 1000.0F) { rtb_Saturation2_c = 1000.0F; @@ -24991,71 +24541,71 @@ void cr929_SIL_step(void) rtb_Saturation2_c = u0_0; } - /* End of Saturate: '/Saturation2' */ + /* End of Saturate: '/Saturation2' */ - /* Sum: '/Sum' */ - rtb_Sum_gk = rtb_q2qdot + rtb_last_hdot_c; + /* Sum: '/Sum' */ + rtb_Sum_gk = rtb_q2qdot + rtb_Product_l; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ rtb_Gain1_c1 = 2.0F * rtb_Sum_gk; - /* Outputs for Atomic SubSystem: '/theta3' */ + /* Outputs for Atomic SubSystem: '/theta3' */ rtb_Switch2_eg = (real32_T) cr929_SIL_theta2(rtb_Saturation2_c, rtb_Gain1_c1, rtb_Sum_gk, &cr929_SIL_DW.theta3, 0.003062F); - /* End of Outputs for SubSystem: '/theta3' */ + /* End of Outputs for SubSystem: '/theta3' */ - /* Sum: '/Sum2' incorporates: - * Delay: '/Delay' - * Product: '/Product1' - * Product: '/Product2' + /* Sum: '/Sum2' incorporates: + * Delay: '/Delay' + * Product: '/Product1' + * Product: '/Product2' */ - rtb_MaxHdot = (rtb_Switch2_jt * cr929_SIL_DW.Delay_DSTATE_e5 + - rtb_Switch2_ld) + rtb_Switch2_eg * + rtb_q2qdot = (rtb_Switch2_jt * cr929_SIL_DW.Delay_DSTATE_e5 + + rtb_Switch2_ld) + rtb_Switch2_eg * cr929_SIL_B.BusAssignment_h.q; - /* Sum: '/Sum5' incorporates: + /* Sum: '/Sum5' incorporates: * Constant: '/Constant Single35' - * Delay: '/Delay' - * Gain: '/dt' - * Product: '/Product' - * Product: '/Product1' - * Sum: '/Sum' + * Delay: '/Delay' + * Gain: '/dt' + * Product: '/Product' + * Product: '/Product1' + * Sum: '/Sum' */ - rtb_Switch2_b5 = (rtb_last_hdot_c * rtb_Switch_gmk - rtb_MaxHdot) * + rtb_Switch2_b5 = (rtb_Product_l * rtb_Switch_gmk - rtb_q2qdot) * cr929_SIL_P.k_q * 0.003062F + cr929_SIL_DW.Delay_DSTATE_e5; - /* Switch: '/Switch2' incorporates: - * Gain: '/Gain' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Gain: '/Gain' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch2_b5 > rtb_qdot_max) { rtb_Switch2_b5 = rtb_qdot_max; } else { if (rtb_Switch2_b5 < -rtb_qdot_max) { - /* Switch: '/Switch' incorporates: - * Gain: '/Gain' + /* Switch: '/Switch' incorporates: + * Gain: '/Gain' */ rtb_Switch2_b5 = -rtb_qdot_max; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* SignalConversion: '/Signal Copy' */ + /* SignalConversion: '/Signal Copy' */ rec_hi.qdot_c = rtb_Switch2_b5; - /* Product: '/Divide' */ + /* Product: '/Divide' */ rtb_Divide_e = rec_hi.qdot_c / rtb_de2qdot; - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ if (!(rtb_Divide_e > rtb_Switch2_ki)) { - /* Switch: '/Switch' incorporates: - * RelationalOperator: '/UpperRelop' + /* Switch: '/Switch' incorporates: + * RelationalOperator: '/UpperRelop' */ if (rtb_Divide_e < rtb_Product1_ie) { rtb_Switch2_ki = rtb_Product1_ie; @@ -25063,28 +24613,28 @@ void cr929_SIL_step(void) rtb_Switch2_ki = rtb_Divide_e; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_c_gear_up = cr929_SIL_B.Merge_l.gear_up; rtb_Merge_c_switch_video = cr929_SIL_B.Merge_l.switch_video; rtb_Merge_c_steer_c = cr929_SIL_B.Merge_l.steer_c; rtb_Divide_e = cr929_SIL_B.Merge_l.dh_c; - rtb_Merge11 = cr929_SIL_B.Merge_l.da_c; - rtb_Sum4_m = cr929_SIL_B.Merge_l.throttle_c; - rtb_add1 = cr929_SIL_B.Merge_l.df_c; - rtb_Delay_n = cr929_SIL_B.Merge_l.dsp_c; + rtb_Merge_c_da_c = cr929_SIL_B.Merge_l.da_c; + rtb_Merge_c_throttle_c = cr929_SIL_B.Merge_l.throttle_c; + rtb_Merge_c_df_c = cr929_SIL_B.Merge_l.df_c; + rtb_Merge_c_dsp_c = cr929_SIL_B.Merge_l.dsp_c; rtb_Merge_c_dr_c = cr929_SIL_B.Merge_l.dr_c; - rtb_Delay_k = cr929_SIL_B.Merge_l.thrl_c; - rtb_Delay_ip = cr929_SIL_B.Merge_l.thrr_c; + rtb_Merge_c_thrl_c = cr929_SIL_B.Merge_l.thrl_c; + rtb_Merge_c_thrr_c = cr929_SIL_B.Merge_l.thrr_c; rtb_Merge_c_brake_c = cr929_SIL_B.Merge_l.brake_c; rtb_Merge_c_parachute_c = cr929_SIL_B.Merge_l.parachute_c; rtb_Merge_c_anti_stall_parachute_c = cr929_SIL_B.Merge_l.anti_stall_parachute_c; - rtb_Delay_h = cr929_SIL_B.Merge_l.dar_c; + rtb_Merge_c_dar_c = cr929_SIL_B.Merge_l.dar_c; rtb_Merge_c_der_c = cr929_SIL_B.Merge_l.der_c; rtb_Merge_c_dhr_c = cr929_SIL_B.Merge_l.dhr_c; rtb_Merge_c_dflio_c = cr929_SIL_B.Merge_l.dflio_c; @@ -25226,6 +24776,7 @@ void cr929_SIL_step(void) rtb_Merge_c_dr_stimulus = cr929_SIL_B.Merge_l.dr_stimulus; rtb_Merge_c_dh_stimulus = cr929_SIL_B.Merge_l.dh_stimulus; rtb_Merge_c_ay_c = cr929_SIL_B.Merge_l.ay_c; + rtb_Merge_c_mass_est = cr929_SIL_B.Merge_l.mass_est; rtb_Merge_c_Switch_ControlLaw = cr929_SIL_B.Merge_l.Switch_ControlLaw; rtb_Merge_c_comac_ResetControlLaw = cr929_SIL_B.Merge_l.comac_ResetControlLaw; @@ -25253,66 +24804,66 @@ void cr929_SIL_step(void) rtb_Merge_c_comac_HDG_CMD = cr929_SIL_B.Merge_l.comac_HDG_CMD; rtb_Merge_c_comac_ALT_CMD = cr929_SIL_B.Merge_l.comac_ALT_CMD; - /* End of BusAssignment: '/Bus Assignment' */ + /* End of BusAssignment: '/Bus Assignment' */ - /* Sum: '/Sum5' incorporates: - * Gain: '/dt' - * Product: '/Product' - * Sum: '/Sum' - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum5' incorporates: + * Gain: '/dt' + * Product: '/Product' + * Sum: '/Sum' + * UnitDelay: '/Unit Delay' */ - cr929_SIL_DW.UnitDelay_DSTATE_o += (rtb_MaxHdot - rtb_last_hdot_c * + cr929_SIL_DW.UnitDelay_DSTATE_o += (rtb_q2qdot - rtb_Product_l * cr929_SIL_DW.UnitDelay_DSTATE_o) * 0.003062F; - /* SignalConversion: '/Signal Copy4' */ + /* SignalConversion: '/Signal Copy4' */ rec_hi.q_tht_hat = rtb_Switch2_eg; - /* SignalConversion: '/Signal Copy2' */ + /* SignalConversion: '/Signal Copy2' */ rec_hi.q_sigma_hat = rtb_Switch2_ld; - /* SignalConversion: '/Signal Copy3' */ + /* SignalConversion: '/Signal Copy3' */ rec_hi.q_omega_hat = rtb_Switch2_jt; - /* End of Outputs for SubSystem: '/THT_Q_CTRL' */ + /* End of Outputs for SubSystem: '/THT_Q_CTRL' */ break; case 1: - /* Outputs for IfAction SubSystem: '/COMMAND' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/COMMAND' incorporates: + * ActionPort: '/Action Port' */ - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (cr929_SIL_B.Merge_l.de_c > cr929_SIL_B.Merge_l.max_de) { rtb_Switch2_ki = cr929_SIL_B.Merge_l.max_de; } else if (cr929_SIL_B.Merge_l.de_c < cr929_SIL_B.Merge_l.min_de) { - /* Switch: '/Switch' */ + /* Switch: '/Switch' */ rtb_Switch2_ki = cr929_SIL_B.Merge_l.min_de; } else { rtb_Switch2_ki = cr929_SIL_B.Merge_l.de_c; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_c_gear_up = cr929_SIL_B.Merge_l.gear_up; rtb_Merge_c_switch_video = cr929_SIL_B.Merge_l.switch_video; rtb_Merge_c_steer_c = cr929_SIL_B.Merge_l.steer_c; rtb_Divide_e = cr929_SIL_B.Merge_l.dh_c; - rtb_Merge11 = cr929_SIL_B.Merge_l.da_c; - rtb_Sum4_m = cr929_SIL_B.Merge_l.throttle_c; - rtb_add1 = cr929_SIL_B.Merge_l.df_c; - rtb_Delay_n = cr929_SIL_B.Merge_l.dsp_c; + rtb_Merge_c_da_c = cr929_SIL_B.Merge_l.da_c; + rtb_Merge_c_throttle_c = cr929_SIL_B.Merge_l.throttle_c; + rtb_Merge_c_df_c = cr929_SIL_B.Merge_l.df_c; + rtb_Merge_c_dsp_c = cr929_SIL_B.Merge_l.dsp_c; rtb_Merge_c_dr_c = cr929_SIL_B.Merge_l.dr_c; - rtb_Delay_k = cr929_SIL_B.Merge_l.thrl_c; - rtb_Delay_ip = cr929_SIL_B.Merge_l.thrr_c; + rtb_Merge_c_thrl_c = cr929_SIL_B.Merge_l.thrl_c; + rtb_Merge_c_thrr_c = cr929_SIL_B.Merge_l.thrr_c; rtb_Merge_c_brake_c = cr929_SIL_B.Merge_l.brake_c; rtb_Merge_c_parachute_c = cr929_SIL_B.Merge_l.parachute_c; rtb_Merge_c_anti_stall_parachute_c = cr929_SIL_B.Merge_l.anti_stall_parachute_c; - rtb_Delay_h = cr929_SIL_B.Merge_l.dar_c; + rtb_Merge_c_dar_c = cr929_SIL_B.Merge_l.dar_c; rtb_Merge_c_der_c = cr929_SIL_B.Merge_l.der_c; rtb_Merge_c_dhr_c = cr929_SIL_B.Merge_l.dhr_c; rtb_Merge_c_dflio_c = cr929_SIL_B.Merge_l.dflio_c; @@ -25455,6 +25006,7 @@ void cr929_SIL_step(void) rtb_Merge_c_dr_stimulus = cr929_SIL_B.Merge_l.dr_stimulus; rtb_Merge_c_dh_stimulus = cr929_SIL_B.Merge_l.dh_stimulus; rtb_Merge_c_ay_c = cr929_SIL_B.Merge_l.ay_c; + rtb_Merge_c_mass_est = cr929_SIL_B.Merge_l.mass_est; rtb_Merge_c_Switch_ControlLaw = cr929_SIL_B.Merge_l.Switch_ControlLaw; rtb_Merge_c_comac_ResetControlLaw = cr929_SIL_B.Merge_l.comac_ResetControlLaw; @@ -25482,34 +25034,34 @@ void cr929_SIL_step(void) rtb_Merge_c_comac_HDG_CMD = cr929_SIL_B.Merge_l.comac_HDG_CMD; rtb_Merge_c_comac_ALT_CMD = cr929_SIL_B.Merge_l.comac_ALT_CMD; - /* End of BusAssignment: '/Bus Assignment' */ - /* End of Outputs for SubSystem: '/COMMAND' */ + /* End of BusAssignment: '/Bus Assignment' */ + /* End of Outputs for SubSystem: '/COMMAND' */ break; case 2: - /* Outputs for IfAction SubSystem: '/DAMPING' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/DAMPING' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: + /* BusAssignment: '/Bus Assignment' incorporates: * Constant: '/Constant Single37' - * Product: '/Product' + * Product: '/Product' */ rtb_Merge_c_gear_up = cr929_SIL_B.Merge_l.gear_up; rtb_Merge_c_switch_video = cr929_SIL_B.Merge_l.switch_video; rtb_Merge_c_steer_c = cr929_SIL_B.Merge_l.steer_c; rtb_Divide_e = cr929_SIL_B.Merge_l.dh_c; - rtb_Merge11 = cr929_SIL_B.Merge_l.da_c; - rtb_Sum4_m = cr929_SIL_B.Merge_l.throttle_c; - rtb_add1 = cr929_SIL_B.Merge_l.df_c; - rtb_Delay_n = cr929_SIL_B.Merge_l.dsp_c; + rtb_Merge_c_da_c = cr929_SIL_B.Merge_l.da_c; + rtb_Merge_c_throttle_c = cr929_SIL_B.Merge_l.throttle_c; + rtb_Merge_c_df_c = cr929_SIL_B.Merge_l.df_c; + rtb_Merge_c_dsp_c = cr929_SIL_B.Merge_l.dsp_c; rtb_Merge_c_dr_c = cr929_SIL_B.Merge_l.dr_c; - rtb_Delay_k = cr929_SIL_B.Merge_l.thrl_c; - rtb_Delay_ip = cr929_SIL_B.Merge_l.thrr_c; + rtb_Merge_c_thrl_c = cr929_SIL_B.Merge_l.thrl_c; + rtb_Merge_c_thrr_c = cr929_SIL_B.Merge_l.thrr_c; rtb_Merge_c_brake_c = cr929_SIL_B.Merge_l.brake_c; rtb_Merge_c_parachute_c = cr929_SIL_B.Merge_l.parachute_c; rtb_Merge_c_anti_stall_parachute_c = cr929_SIL_B.Merge_l.anti_stall_parachute_c; - rtb_Delay_h = cr929_SIL_B.Merge_l.dar_c; + rtb_Merge_c_dar_c = cr929_SIL_B.Merge_l.dar_c; rtb_Merge_c_der_c = cr929_SIL_B.Merge_l.der_c; rtb_Merge_c_dhr_c = cr929_SIL_B.Merge_l.dhr_c; rtb_Merge_c_dflio_c = cr929_SIL_B.Merge_l.dflio_c; @@ -25652,6 +25204,7 @@ void cr929_SIL_step(void) rtb_Merge_c_dr_stimulus = cr929_SIL_B.Merge_l.dr_stimulus; rtb_Merge_c_dh_stimulus = cr929_SIL_B.Merge_l.dh_stimulus; rtb_Merge_c_ay_c = cr929_SIL_B.Merge_l.ay_c; + rtb_Merge_c_mass_est = cr929_SIL_B.Merge_l.mass_est; rtb_Merge_c_Switch_ControlLaw = cr929_SIL_B.Merge_l.Switch_ControlLaw; rtb_Merge_c_comac_ResetControlLaw = cr929_SIL_B.Merge_l.comac_ResetControlLaw; @@ -25680,33 +25233,33 @@ void cr929_SIL_step(void) rtb_Merge_c_comac_ALT_CMD = cr929_SIL_B.Merge_l.comac_ALT_CMD; rtb_Switch2_ki = cr929_SIL_B.BusAssignment_h.q * cr929_SIL_P.k_r; - /* End of BusAssignment: '/Bus Assignment' */ - /* End of Outputs for SubSystem: '/DAMPING' */ + /* End of BusAssignment: '/Bus Assignment' */ + /* End of Outputs for SubSystem: '/DAMPING' */ break; case 3: - /* Outputs for IfAction SubSystem: '/OFF' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/OFF' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant' */ rtb_Merge_c_gear_up = cr929_SIL_B.Merge_l.gear_up; rtb_Merge_c_switch_video = cr929_SIL_B.Merge_l.switch_video; rtb_Merge_c_steer_c = cr929_SIL_B.Merge_l.steer_c; rtb_Divide_e = cr929_SIL_B.Merge_l.dh_c; - rtb_Merge11 = cr929_SIL_B.Merge_l.da_c; - rtb_Sum4_m = cr929_SIL_B.Merge_l.throttle_c; - rtb_add1 = cr929_SIL_B.Merge_l.df_c; - rtb_Delay_n = cr929_SIL_B.Merge_l.dsp_c; + rtb_Merge_c_da_c = cr929_SIL_B.Merge_l.da_c; + rtb_Merge_c_throttle_c = cr929_SIL_B.Merge_l.throttle_c; + rtb_Merge_c_df_c = cr929_SIL_B.Merge_l.df_c; + rtb_Merge_c_dsp_c = cr929_SIL_B.Merge_l.dsp_c; rtb_Merge_c_dr_c = cr929_SIL_B.Merge_l.dr_c; - rtb_Delay_k = cr929_SIL_B.Merge_l.thrl_c; - rtb_Delay_ip = cr929_SIL_B.Merge_l.thrr_c; + rtb_Merge_c_thrl_c = cr929_SIL_B.Merge_l.thrl_c; + rtb_Merge_c_thrr_c = cr929_SIL_B.Merge_l.thrr_c; rtb_Merge_c_brake_c = cr929_SIL_B.Merge_l.brake_c; rtb_Merge_c_parachute_c = cr929_SIL_B.Merge_l.parachute_c; rtb_Merge_c_anti_stall_parachute_c = cr929_SIL_B.Merge_l.anti_stall_parachute_c; - rtb_Delay_h = cr929_SIL_B.Merge_l.dar_c; + rtb_Merge_c_dar_c = cr929_SIL_B.Merge_l.dar_c; rtb_Merge_c_der_c = cr929_SIL_B.Merge_l.der_c; rtb_Merge_c_dhr_c = cr929_SIL_B.Merge_l.dhr_c; rtb_Merge_c_dflio_c = cr929_SIL_B.Merge_l.dflio_c; @@ -25849,6 +25402,7 @@ void cr929_SIL_step(void) rtb_Merge_c_dr_stimulus = cr929_SIL_B.Merge_l.dr_stimulus; rtb_Merge_c_dh_stimulus = cr929_SIL_B.Merge_l.dh_stimulus; rtb_Merge_c_ay_c = cr929_SIL_B.Merge_l.ay_c; + rtb_Merge_c_mass_est = cr929_SIL_B.Merge_l.mass_est; rtb_Merge_c_Switch_ControlLaw = cr929_SIL_B.Merge_l.Switch_ControlLaw; rtb_Merge_c_comac_ResetControlLaw = cr929_SIL_B.Merge_l.comac_ResetControlLaw; @@ -25877,19 +25431,19 @@ void cr929_SIL_step(void) rtb_Merge_c_comac_ALT_CMD = cr929_SIL_B.Merge_l.comac_ALT_CMD; rtb_Switch2_ki = 0.0F; - /* End of BusAssignment: '/Bus Assignment' */ - /* End of Outputs for SubSystem: '/OFF' */ + /* End of BusAssignment: '/Bus Assignment' */ + /* End of Outputs for SubSystem: '/OFF' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ /* End of Outputs for SubSystem: '/pitch' */ - /* SwitchCase: '/Switch Case1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant3' - * Constant: '/Constant5' - * Inport: '/C2_in_Inport_1' + /* SwitchCase: '/Switch Case1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant3' + * Constant: '/Constant5' + * Inport: '/C2_in_Inport_1' */ s305_iter = cr929_SIL_DW.SwitchCase1_ActiveSubsystem; switch (rtb_Merge_c_CSAS_yaw) { @@ -25913,42 +25467,42 @@ void cr929_SIL_step(void) switch (cr929_SIL_DW.SwitchCase1_ActiveSubsystem) { case 0: if (cr929_SIL_DW.SwitchCase1_ActiveSubsystem != s305_iter) { - /* InitializeConditions for IfAction SubSystem: '/DAMPING' incorporates: - * ActionPort: '/Action Port' + /* InitializeConditions for IfAction SubSystem: '/DAMPING' incorporates: + * ActionPort: '/Action Port' */ - /* InitializeConditions for SwitchCase: '/Switch Case1' incorporates: - * DiscreteTransferFcn: '/Discrete Transfer Fcn' + /* InitializeConditions for SwitchCase: '/Switch Case1' incorporates: * DiscreteTransferFcn: '/Discrete Transfer Fcn' + * DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states_p = 0.0F; cr929_SIL_DW.DiscreteTransferFcn_states_bl[0] = 0.0F; cr929_SIL_DW.DiscreteTransferFcn_states_bl[1] = 0.0F; cr929_SIL_DW.DiscreteTransferFcn_states_bl[2] = 0.0F; - /* End of InitializeConditions for SubSystem: '/DAMPING' */ + /* End of InitializeConditions for SubSystem: '/DAMPING' */ } - /* Outputs for IfAction SubSystem: '/DAMPING' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/DAMPING' incorporates: + * ActionPort: '/Action Port' */ - /* DiscreteTransferFcn: '/Discrete Transfer Fcn' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant2' - * Product: '/Product' + /* DiscreteTransferFcn: '/Discrete Transfer Fcn' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Product: '/Product' */ - cr929_SIL_DW.DiscreteTransferFcn_tmp_g = rtb_Merge11 * + cr929_SIL_DW.DiscreteTransferFcn_tmp_g = rtb_Merge_c_da_c * cr929_SIL_P.k_da2dr - cr929_SIL_P.den_da2dr[1] * cr929_SIL_DW.DiscreteTransferFcn_states_p; numAccum = cr929_SIL_P.num_da2dr[0] * cr929_SIL_DW.DiscreteTransferFcn_tmp_g + cr929_SIL_P.num_da2dr[1] * cr929_SIL_DW.DiscreteTransferFcn_states_p; - /* DiscreteTransferFcn: '/Discrete Transfer Fcn' incorporates: + /* DiscreteTransferFcn: '/Discrete Transfer Fcn' incorporates: * Constant: '/Constant Single38' * Constant: '/Constant Single39' * Constant: '/Constant Single48' - * Product: '/Product' + * Product: '/Product' */ cr929_SIL_DW.DiscreteTransferFcn_tmp_ic = ((cr929_SIL_B.BusAssignment_h.r * cr929_SIL_P.yaw_damping - @@ -25967,88 +25521,88 @@ void cr929_SIL_step(void) cr929_SIL_P.washout_r_num[3] * cr929_SIL_DW.DiscreteTransferFcn_states_bl[2]; - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant' - * DiscreteTransferFcn: '/Discrete Transfer Fcn' - * Gain: '/gain1' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant' + * DiscreteTransferFcn: '/Discrete Transfer Fcn' + * Gain: '/gain1' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch2_pl > cr929_SIL_P.max_dr_damping) { rtb_Switch2_pl = cr929_SIL_P.max_dr_damping; } else { if (rtb_Switch2_pl < -cr929_SIL_P.max_dr_damping) { - /* Switch: '/Switch' incorporates: - * Gain: '/gain1' + /* Switch: '/Switch' incorporates: + * Gain: '/gain1' */ rtb_Switch2_pl = -cr929_SIL_P.max_dr_damping; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant3' - * DiscreteTransferFcn: '/Discrete Transfer Fcn' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant3' + * DiscreteTransferFcn: '/Discrete Transfer Fcn' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (numAccum > 0.0872600377F) { numAccum = 0.0872600377F; } else { if (numAccum < -0.0872600377F) { - /* Switch: '/Switch' */ + /* Switch: '/Switch' */ numAccum = -0.0872600377F; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Sum: '/subtract' incorporates: - * Gain: '/gain2' - * Product: '/product' + /* Sum: '/subtract' incorporates: + * Gain: '/gain2' + * Product: '/product' */ rtb_subtract = ((cr929_SIL_P.phic2dr * rtb_Merge_c_phi_c + rtb_Switch2_pl) + -(rtb_Merge_c_rc_yaw_cmd * rtb_Merge_c_max_dr)) + numAccum; - /* Switch: '/Switch2' incorporates: - * Gain: '/gain' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Gain: '/gain' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_subtract > rtb_Merge_c_max_dr) { rtb_subtract = rtb_Merge_c_max_dr; } else { if (rtb_subtract < -rtb_Merge_c_max_dr) { - /* Switch: '/Switch' incorporates: - * Gain: '/gain' + /* Switch: '/Switch' incorporates: + * Gain: '/gain' */ rtb_subtract = -rtb_Merge_c_max_dr; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_k_gear_up = rtb_Merge_c_gear_up; rtb_Merge_k_switch_video = rtb_Merge_c_switch_video; rtb_Switch_cy = rtb_Merge_c_steer_c; numAccum = rtb_Switch2_ki; rtb_product1 = rtb_Divide_e; - rtb_Sum_k = rtb_Merge11; - rtb_divide_k = rtb_Sum4_m; - rtb_Product_hl = rtb_add1; - rtb_saturation_g = rtb_Delay_n; - rtb_Product_ba = rtb_Delay_k; - rtb_Merge_k_thrr_c = rtb_Delay_ip; + rtb_Sum_k = rtb_Merge_c_da_c; + rtb_divide_k = rtb_Merge_c_throttle_c; + rtb_Product_hl = rtb_Merge_c_df_c; + rtb_saturation_g = rtb_Merge_c_dsp_c; + rtb_Product_ba = rtb_Merge_c_thrl_c; + rtb_Merge_k_thrr_c = rtb_Merge_c_thrr_c; rtb_Merge_k_brake_c = rtb_Merge_c_brake_c; rtb_Merge_k_parachute_c = rtb_Merge_c_parachute_c; rtb_Merge_k_anti_stall_parachute_c = rtb_Merge_c_anti_stall_parachute_c; - rtb_Merge_k_dar_c = rtb_Delay_h; + rtb_Merge_k_dar_c = rtb_Merge_c_dar_c; rtb_Merge_k_der_c = rtb_Merge_c_der_c; rtb_Merge_k_dhr_c = rtb_Merge_c_dhr_c; rtb_Merge_k_dflio_c = rtb_Merge_c_dflio_c; @@ -26190,6 +25744,7 @@ void cr929_SIL_step(void) rtb_Merge_k_dr_stimulus = rtb_Merge_c_dr_stimulus; rtb_Merge_k_dh_stimulus = rtb_Merge_c_dh_stimulus; rtb_Merge_k_ay_c = rtb_Merge_c_ay_c; + rtb_Merge_k_mass_est = rtb_Merge_c_mass_est; rtb_Merge_k_Switch_ControlLaw = rtb_Merge_c_Switch_ControlLaw; rtb_Merge_k_comac_ResetControlLaw = rtb_Merge_c_comac_ResetControlLaw; rtb_Merge_k_comac_Arm_RUDTrimPanel = rtb_Merge_c_comac_Arm_RUDTrimPanel; @@ -26212,13 +25767,13 @@ void cr929_SIL_step(void) rtb_Merge_k_comac_HDG_CMD = rtb_Merge_c_comac_HDG_CMD; rtb_Merge_k_comac_ALT_CMD = rtb_Merge_c_comac_ALT_CMD; - /* End of BusAssignment: '/Bus Assignment' */ + /* End of BusAssignment: '/Bus Assignment' */ - /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states_p = cr929_SIL_DW.DiscreteTransferFcn_tmp_g; - /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states_bl[2] = cr929_SIL_DW.DiscreteTransferFcn_states_bl[1]; cr929_SIL_DW.DiscreteTransferFcn_states_bl[1] = @@ -26226,29 +25781,29 @@ void cr929_SIL_step(void) cr929_SIL_DW.DiscreteTransferFcn_states_bl[0] = cr929_SIL_DW.DiscreteTransferFcn_tmp_ic; - /* End of Outputs for SubSystem: '/DAMPING' */ + /* End of Outputs for SubSystem: '/DAMPING' */ break; case 1: - /* Outputs for IfAction SubSystem: '/COMMAND' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/COMMAND' incorporates: + * ActionPort: '/Action Port' */ rtb_Merge_k_gear_up = rtb_Merge_c_gear_up; rtb_Merge_k_switch_video = rtb_Merge_c_switch_video; rtb_Switch_cy = rtb_Merge_c_steer_c; numAccum = rtb_Switch2_ki; rtb_product1 = rtb_Divide_e; - rtb_Sum_k = rtb_Merge11; - rtb_divide_k = rtb_Sum4_m; - rtb_Product_hl = rtb_add1; - rtb_saturation_g = rtb_Delay_n; + rtb_Sum_k = rtb_Merge_c_da_c; + rtb_divide_k = rtb_Merge_c_throttle_c; + rtb_Product_hl = rtb_Merge_c_df_c; + rtb_saturation_g = rtb_Merge_c_dsp_c; rtb_subtract = rtb_Merge_c_dr_c; - rtb_Product_ba = rtb_Delay_k; - rtb_Merge_k_thrr_c = rtb_Delay_ip; + rtb_Product_ba = rtb_Merge_c_thrl_c; + rtb_Merge_k_thrr_c = rtb_Merge_c_thrr_c; rtb_Merge_k_brake_c = rtb_Merge_c_brake_c; rtb_Merge_k_parachute_c = rtb_Merge_c_parachute_c; rtb_Merge_k_anti_stall_parachute_c = rtb_Merge_c_anti_stall_parachute_c; - rtb_Merge_k_dar_c = rtb_Delay_h; + rtb_Merge_k_dar_c = rtb_Merge_c_dar_c; rtb_Merge_k_der_c = rtb_Merge_c_der_c; rtb_Merge_k_dhr_c = rtb_Merge_c_dhr_c; rtb_Merge_k_dflio_c = rtb_Merge_c_dflio_c; @@ -26390,6 +25945,7 @@ void cr929_SIL_step(void) rtb_Merge_k_dr_stimulus = rtb_Merge_c_dr_stimulus; rtb_Merge_k_dh_stimulus = rtb_Merge_c_dh_stimulus; rtb_Merge_k_ay_c = rtb_Merge_c_ay_c; + rtb_Merge_k_mass_est = rtb_Merge_c_mass_est; rtb_Merge_k_Switch_ControlLaw = rtb_Merge_c_Switch_ControlLaw; rtb_Merge_k_comac_ResetControlLaw = rtb_Merge_c_comac_ResetControlLaw; rtb_Merge_k_comac_Arm_RUDTrimPanel = rtb_Merge_c_comac_Arm_RUDTrimPanel; @@ -26412,31 +25968,31 @@ void cr929_SIL_step(void) rtb_Merge_k_comac_HDG_CMD = rtb_Merge_c_comac_HDG_CMD; rtb_Merge_k_comac_ALT_CMD = rtb_Merge_c_comac_ALT_CMD; - /* End of Outputs for SubSystem: '/COMMAND' */ + /* End of Outputs for SubSystem: '/COMMAND' */ break; case 2: - /* Outputs for IfAction SubSystem: '/OFF' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/OFF' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' */ rtb_Merge_k_gear_up = rtb_Merge_c_gear_up; rtb_Merge_k_switch_video = rtb_Merge_c_switch_video; numAccum = rtb_Switch2_ki; rtb_product1 = rtb_Divide_e; - rtb_Sum_k = rtb_Merge11; - rtb_divide_k = rtb_Sum4_m; - rtb_Product_hl = rtb_add1; - rtb_saturation_g = rtb_Delay_n; - rtb_Product_ba = rtb_Delay_k; - rtb_Merge_k_thrr_c = rtb_Delay_ip; + rtb_Sum_k = rtb_Merge_c_da_c; + rtb_divide_k = rtb_Merge_c_throttle_c; + rtb_Product_hl = rtb_Merge_c_df_c; + rtb_saturation_g = rtb_Merge_c_dsp_c; + rtb_Product_ba = rtb_Merge_c_thrl_c; + rtb_Merge_k_thrr_c = rtb_Merge_c_thrr_c; rtb_Merge_k_brake_c = rtb_Merge_c_brake_c; rtb_Merge_k_parachute_c = rtb_Merge_c_parachute_c; rtb_Merge_k_anti_stall_parachute_c = rtb_Merge_c_anti_stall_parachute_c; - rtb_Merge_k_dar_c = rtb_Delay_h; + rtb_Merge_k_dar_c = rtb_Merge_c_dar_c; rtb_Merge_k_der_c = rtb_Merge_c_der_c; rtb_Merge_k_dhr_c = rtb_Merge_c_dhr_c; rtb_Merge_k_dflio_c = rtb_Merge_c_dflio_c; @@ -26578,6 +26134,7 @@ void cr929_SIL_step(void) rtb_Merge_k_dr_stimulus = rtb_Merge_c_dr_stimulus; rtb_Merge_k_dh_stimulus = rtb_Merge_c_dh_stimulus; rtb_Merge_k_ay_c = rtb_Merge_c_ay_c; + rtb_Merge_k_mass_est = rtb_Merge_c_mass_est; rtb_Merge_k_Switch_ControlLaw = rtb_Merge_c_Switch_ControlLaw; rtb_Merge_k_comac_ResetControlLaw = rtb_Merge_c_comac_ResetControlLaw; rtb_Merge_k_comac_Arm_RUDTrimPanel = rtb_Merge_c_comac_Arm_RUDTrimPanel; @@ -26602,64 +26159,64 @@ void cr929_SIL_step(void) rtb_subtract = 0.0F; rtb_Switch_cy = 0.0F; - /* End of BusAssignment: '/Bus Assignment' */ - /* End of Outputs for SubSystem: '/OFF' */ + /* End of BusAssignment: '/Bus Assignment' */ + /* End of Outputs for SubSystem: '/OFF' */ break; case 3: - /* Outputs for IfAction SubSystem: '/PSIDOT_CTRL' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/PSIDOT_CTRL' incorporates: + * ActionPort: '/Action Port' */ - /* DiscreteTransferFcn: '/Discrete Transfer Fcn' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant2' - * Product: '/Product' + /* DiscreteTransferFcn: '/Discrete Transfer Fcn' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Product: '/Product' */ - cr929_SIL_DW.DiscreteTransferFcn_tmp_i = rtb_Merge11 * + cr929_SIL_DW.DiscreteTransferFcn_tmp_i = rtb_Merge_c_da_c * cr929_SIL_P.k_da2dr - cr929_SIL_P.den_da2dr[1] * cr929_SIL_DW.DiscreteTransferFcn_states_b; numAccum = cr929_SIL_P.num_da2dr[0] * cr929_SIL_DW.DiscreteTransferFcn_tmp_i + cr929_SIL_P.num_da2dr[1] * cr929_SIL_DW.DiscreteTransferFcn_states_b; - /* Gain: '/gain1' */ - rtb_Sum_k = -rtb_uDLookupTable11; + /* Gain: '/gain1' */ + rtb_Sum_k = -rtb_uDLookupTable1_g; - /* Product: '/product' */ - rtb_Switch2_pl = rtb_dr2rdot * rtb_uDLookupTable11; + /* Product: '/product' */ + rtb_Switch2_pl = rtb_dr2rdot * rtb_uDLookupTable1_g; - /* Product: '/product1' */ + /* Product: '/product1' */ rtb_product1 = rtb_Gain2_ew * rtb_uDLookupTable1; - /* Sum: '/add' */ + /* Sum: '/add' */ rtb_saturation = rtb_Switch2_pl + rtb_product1; - /* Saturate: '/saturation' */ + /* Saturate: '/saturation' */ if (rtb_saturation <= 0.001F) { rtb_saturation = 0.001F; } - /* End of Saturate: '/saturation' */ + /* End of Saturate: '/saturation' */ - /* Product: '/divide' */ + /* Product: '/divide' */ rtb_divide_k = rtb_Switch2_pl / rtb_saturation; - /* Delay: '/Delay' incorporates: - * Product: '/product' + /* Delay: '/Delay' incorporates: + * Product: '/product' */ if (cr929_SIL_DW.icLoad_bf != 0) { - cr929_SIL_DW.Delay_DSTATE_k = rtb_dr2rdot * rtb_Merge_c_dr_c; + cr929_SIL_DW.Delay_DSTATE_kc = rtb_dr2rdot * rtb_Merge_c_dr_c; } - /* SwitchCase: '/Switch Case' */ + /* SwitchCase: '/Switch Case' */ switch (rtb_Merge_c_CSAS_yaw) { case ENUM_CSAS_YAW_PSIDOT_CTRL: - /* Outputs for IfAction SubSystem: '/psidot_ctrl' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/psidot_ctrl' incorporates: + * ActionPort: '/Action Port' */ - /* Outputs for Atomic SubSystem: '/psidot_ctrl' */ - /* Saturate: '/Saturation1' */ + /* Outputs for Atomic SubSystem: '/psidot_ctrl' */ + /* Saturate: '/Saturation1' */ if (cr929_SIL_B.BusAssignment_h.phi > 1.0F) { rtb_Switch2_pl = 1.0F; } else if (cr929_SIL_B.BusAssignment_h.phi < -1.0F) { @@ -26668,142 +26225,142 @@ void cr929_SIL_step(void) rtb_Switch2_pl = cr929_SIL_B.BusAssignment_h.phi; } - /* End of Saturate: '/Saturation1' */ + /* End of Saturate: '/Saturation1' */ - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (cr929_SIL_B.BusAssignment_h.tht > 1.0F) { - rtb_phi_c_c = 1.0F; + rtb_phi_c_h = 1.0F; } else if (cr929_SIL_B.BusAssignment_h.tht < -1.0F) { - rtb_phi_c_c = -1.0F; + rtb_phi_c_h = -1.0F; } else { - rtb_phi_c_c = cr929_SIL_B.BusAssignment_h.tht; + rtb_phi_c_h = cr929_SIL_B.BusAssignment_h.tht; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Product: '/Product' incorporates: - * Product: '/Product1' - * Product: '/Product2' - * Sum: '/Sum1' - * Trigonometry: '/cos(phi)' - * Trigonometry: '/cos(tht)' - * Trigonometry: '/sin(phi)' + /* Product: '/Product' incorporates: + * Product: '/Product1' + * Product: '/Product2' + * Sum: '/Sum1' + * Trigonometry: '/cos(phi)' + * Trigonometry: '/cos(tht)' + * Trigonometry: '/sin(phi)' */ - rtb_Product_hl = (rtb_Merge_c_psidot_c * cosf(rtb_phi_c_c) - + rtb_Product_hl = (rtb_Merge_c_psidot_c * cosf(rtb_phi_c_h) - cr929_SIL_B.BusAssignment_h.q * sinf(rtb_Switch2_pl)) / cosf(rtb_Switch2_pl); - /* Gain: '/neg1' incorporates: + /* Gain: '/neg1' incorporates: * Constant: '/Constant Single12' */ rtb_Switch2_pl = -cr929_SIL_P.max_r; - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: * Constant: '/Constant Single12' - * Gain: '/neg1' - * RelationalOperator: '/UpperRelop' + * Gain: '/neg1' + * RelationalOperator: '/UpperRelop' */ if (!(rtb_Product_hl < -cr929_SIL_P.max_r)) { rtb_Switch2_pl = rtb_Product_hl; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single12' - * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/LowerRelop1' */ if (rtb_Product_hl > cr929_SIL_P.max_r) { - /* SignalConversion: '/OutportBufferForr_c' */ + /* SignalConversion: '/OutportBufferForr_c' */ rtb_Switch2_pl = cr929_SIL_P.max_r; } - /* End of Switch: '/Switch2' */ - /* End of Outputs for SubSystem: '/psidot_ctrl' */ - /* End of Outputs for SubSystem: '/psidot_ctrl' */ + /* End of Switch: '/Switch2' */ + /* End of Outputs for SubSystem: '/psidot_ctrl' */ + /* End of Outputs for SubSystem: '/psidot_ctrl' */ break; case ENUM_CSAS_YAW_AY_CTRL: - /* Outputs for IfAction SubSystem: '/ay_ctrl' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/ay_ctrl' incorporates: + * ActionPort: '/Action Port' */ - /* Product: '/Product2' incorporates: + /* Product: '/Product2' incorporates: * Constant: '/Constant BP' * Constant: '/Constant Single31' - * Constant: '/Constant BP' + * Constant: '/Constant BP' * Product: '/Product1' - * Product: '/product' - * Sum: '/Sum1' + * Product: '/product' + * Sum: '/Sum1' */ rtb_Product_hl = (rtb_Merge_c_rc_yaw_cmd * 0.5F - cr929_SIL_B.BusAssignment_h.ay) * (cr929_SIL_P.w_r / 2.56F); - /* Saturate: '/Saturation1' */ + /* Saturate: '/Saturation1' */ if (cr929_SIL_B.BusAssignment_h.qbar <= 20.0F) { - rtb_phi_c_c = 20.0F; + rtb_phi_c_h = 20.0F; } else { - rtb_phi_c_c = cr929_SIL_B.BusAssignment_h.qbar; + rtb_phi_c_h = cr929_SIL_B.BusAssignment_h.qbar; } - /* End of Saturate: '/Saturation1' */ + /* End of Saturate: '/Saturation1' */ - /* Product: '/Divide1' incorporates: + /* Product: '/Divide1' incorporates: * Constant: '/Constant Single4' * Constant: '/Constant Single50' * Constant: '/Constant Single9' */ - rtb_saturation_g = cr929_SIL_P.m / rtb_phi_c_c / cr929_SIL_P.RefArea / + rtb_saturation_g = cr929_SIL_P.m / rtb_phi_c_h / cr929_SIL_P.RefArea / cr929_SIL_P.Csb; - /* Delay: '/Delay' incorporates: - * Product: '/Divide2' - * Sum: '/Sum3' + /* Delay: '/Delay' incorporates: + * Product: '/Divide2' + * Sum: '/Sum3' */ if (cr929_SIL_DW.icLoad_c != 0) { cr929_SIL_DW.Delay_DSTATE_ik = cr929_SIL_B.BusAssignment_h.r / rtb_saturation_g - rtb_Product_hl; } - /* Product: '/Product' incorporates: - * Delay: '/Delay' - * Sum: '/Sum2' + /* Product: '/Product' incorporates: + * Delay: '/Delay' + * Sum: '/Sum2' */ rtb_Product_ba = (cr929_SIL_DW.Delay_DSTATE_ik + rtb_Product_hl) * rtb_saturation_g; - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single12' - * Gain: '/Gain' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + * Gain: '/Gain' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Product_ba > cr929_SIL_P.max_r) { rtb_Product_ba = cr929_SIL_P.max_r; } else { if (rtb_Product_ba < -cr929_SIL_P.max_r) { - /* Switch: '/Switch' incorporates: - * Gain: '/Gain' + /* Switch: '/Switch' incorporates: + * Gain: '/Gain' */ rtb_Product_ba = -cr929_SIL_P.max_r; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Saturate: '/saturation1' */ + /* Saturate: '/saturation1' */ if (cr929_SIL_B.BusAssignment_h.phi > 1.0F) { - rtb_phi_c_c = 1.0F; + rtb_phi_c_h = 1.0F; } else if (cr929_SIL_B.BusAssignment_h.phi < -1.0F) { - rtb_phi_c_c = -1.0F; + rtb_phi_c_h = -1.0F; } else { - rtb_phi_c_c = cr929_SIL_B.BusAssignment_h.phi; + rtb_phi_c_h = cr929_SIL_B.BusAssignment_h.phi; } - /* End of Saturate: '/saturation1' */ + /* End of Saturate: '/saturation1' */ - /* Saturate: '/saturation2' */ + /* Saturate: '/saturation2' */ if (cr929_SIL_B.BusAssignment_h.tht > 1.0F) { dy = 1.0F; } else if (cr929_SIL_B.BusAssignment_h.tht < -1.0F) { @@ -26812,9 +26369,9 @@ void cr929_SIL_step(void) dy = cr929_SIL_B.BusAssignment_h.tht; } - /* End of Saturate: '/saturation2' */ + /* End of Saturate: '/saturation2' */ - /* Saturate: '/saturation' incorporates: + /* Saturate: '/saturation' incorporates: * Outport: '/traj' */ if (cr929_SIL_Y.traj.v_g <= 1.0F) { @@ -26823,190 +26380,191 @@ void cr929_SIL_step(void) rtb_Switch2_pl = cr929_SIL_Y.traj.v_g; } - /* End of Saturate: '/saturation' */ + /* End of Saturate: '/saturation' */ - /* Sum: '/Sum' incorporates: + /* Sum: '/Sum' incorporates: * Constant: '/Constant Single42' - * Product: '/divide' - * Trigonometry: '/cos1' - * Trigonometry: '/cos2' + * Product: '/divide' + * Trigonometry: '/cos1' + * Trigonometry: '/cos2' */ - rtb_Switch2_pl = tanf(rtb_phi_c_c) * cosf(dy) * 9.8F / rtb_Switch2_pl + rtb_Switch2_pl = tanf(rtb_phi_c_h) * cosf(dy) * 9.8F / rtb_Switch2_pl + rtb_Product_ba; - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single12' - * Gain: '/gain' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + * Gain: '/gain' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch2_pl > cr929_SIL_P.max_r) { - /* SignalConversion: '/OutportBufferForr_c' */ + /* SignalConversion: '/OutportBufferForr_c' */ rtb_Switch2_pl = cr929_SIL_P.max_r; } else { if (rtb_Switch2_pl < -cr929_SIL_P.max_r) { - /* Switch: '/Switch' incorporates: - * Gain: '/gain' - * SignalConversion: '/OutportBufferForr_c' + /* Switch: '/Switch' incorporates: + * Gain: '/gain' + * SignalConversion: '/OutportBufferForr_c' */ rtb_Switch2_pl = -cr929_SIL_P.max_r; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Update for Delay: '/Delay' */ + /* Update for Delay: '/Delay' */ cr929_SIL_DW.icLoad_c = 0U; - /* Saturate: '/Saturation' incorporates: + /* Saturate: '/Saturation' incorporates: * Outport: '/traj' */ if (cr929_SIL_Y.traj.v_g <= 10.0F) { - rtb_phi_c_c = 10.0F; + rtb_phi_c_h = 10.0F; } else { - rtb_phi_c_c = cr929_SIL_Y.traj.v_g; + rtb_phi_c_h = cr929_SIL_Y.traj.v_g; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Update for Delay: '/Delay' incorporates: - * Constant: '/Constant' - * Product: '/Divide' - * Product: '/Divide3' - * Product: '/Product1' - * Sum: '/Sum' - * Sum: '/Sum4' + /* Update for Delay: '/Delay' incorporates: + * Constant: '/Constant' + * Product: '/Divide' + * Product: '/Divide3' + * Product: '/Product1' + * Sum: '/Sum' + * Sum: '/Sum4' */ - cr929_SIL_DW.Delay_DSTATE_ik = 1.0F / rtb_saturation_g / rtb_phi_c_c * + cr929_SIL_DW.Delay_DSTATE_ik = 1.0F / rtb_saturation_g / rtb_phi_c_h * (0.003062F * rtb_Product_hl) + (rtb_Product_ba / rtb_saturation_g - rtb_Product_hl); - /* End of Outputs for SubSystem: '/ay_ctrl' */ + /* End of Outputs for SubSystem: '/ay_ctrl' */ break; default: - /* Outputs for IfAction SubSystem: '/default' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/default' incorporates: + * ActionPort: '/Action Port' */ - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single12' - * Gain: '/gain' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + * Gain: '/gain' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch_ph > cr929_SIL_P.max_r) { - /* SignalConversion: '/OutportBufferForr_c' */ + /* SignalConversion: '/OutportBufferForr_c' */ rtb_Switch2_pl = cr929_SIL_P.max_r; } else if (rtb_Switch_ph < -cr929_SIL_P.max_r) { - /* Switch: '/Switch' incorporates: - * Gain: '/gain' - * SignalConversion: '/OutportBufferForr_c' + /* Switch: '/Switch' incorporates: + * Gain: '/gain' + * SignalConversion: '/OutportBufferForr_c' */ rtb_Switch2_pl = -cr929_SIL_P.max_r; } else { - /* SignalConversion: '/OutportBufferForr_c' */ + /* SignalConversion: '/OutportBufferForr_c' */ rtb_Switch2_pl = rtb_Switch_ph; } - /* End of Switch: '/Switch2' */ - /* End of Outputs for SubSystem: '/default' */ + /* End of Switch: '/Switch2' */ + /* End of Outputs for SubSystem: '/default' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* Sum: '/Sum' incorporates: - * Constant: '/Constant1' - * Gain: '/Gain1' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant1' + * Gain: '/Gain1' */ rtb_Switch_ph = -rtb_uDLookupTable2_c + 1.0F; - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: * Constant: '/Constant Single31' - * Constant: '/Constant1' - * Gain: '/Gain1' - * Sum: '/Sum' - * Sum: '/Sum2' + * Constant: '/Constant1' + * Gain: '/Gain1' + * Sum: '/Sum' + * Sum: '/Sum2' */ if (cr929_SIL_P.w_r - (-rtb_uDLookupTable2_c + 1.0F) > 0.0F) { rtb_Switch_ph = cr929_SIL_P.w_r; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* SignalConversion: '/Signal Copy1' incorporates: - * UnitDelay: '/Unit Delay' + /* SignalConversion: '/Signal Copy1' incorporates: + * UnitDelay: '/Unit Delay' */ rec_hi.r_hat = cr929_SIL_DW.UnitDelay_DSTATE_it; - /* Gain: '/Gain' incorporates: - * Sum: '/Sum1' - * UnitDelay: '/Unit Delay' + /* Gain: '/Gain' incorporates: + * Sum: '/Sum1' + * UnitDelay: '/Unit Delay' */ rtb_Saturation2 = -(cr929_SIL_DW.UnitDelay_DSTATE_it - cr929_SIL_B.BusAssignment_h.r); - /* Gain: '/Gain4' incorporates: - * Delay: '/Delay' - * Product: '/Product2' + /* Gain: '/Gain4' incorporates: + * Delay: '/Delay' + * Product: '/Product2' */ - rtb_Saturation = rtb_Saturation2 * cr929_SIL_DW.Delay_DSTATE_k * 2500.0F; + rtb_Saturation = rtb_Saturation2 * cr929_SIL_DW.Delay_DSTATE_kc * + 2500.0F; - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (rtb_Saturation > 1000.0F) { - /* Gain: '/Gain4' */ + /* Gain: '/Gain4' */ rtb_Saturation = 1000.0F; } else { if (rtb_Saturation < -1000.0F) { - /* Gain: '/Gain4' */ + /* Gain: '/Gain4' */ rtb_Saturation = -1000.0F; } } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Outputs for Atomic SubSystem: '/theta1' */ + /* Outputs for Atomic SubSystem: '/theta1' */ rtb_Switch2_oq = (real32_T) cr929_SIL_theta1(rtb_Saturation, 3.0F, 1.0F, &cr929_SIL_DW.theta1_k, 0.003062F); - /* End of Outputs for SubSystem: '/theta1' */ + /* End of Outputs for SubSystem: '/theta1' */ - /* Gain: '/Gain3' incorporates: - * Constant: '/Constant' - * Constant: '/Constant3' + /* Gain: '/Gain3' incorporates: + * Constant: '/Constant' + * Constant: '/Constant3' */ rtb_Saturation1 = 2500.0F * rtb_Saturation2; - /* Saturate: '/Saturation1' */ + /* Saturate: '/Saturation1' */ if (rtb_Saturation1 > 1000.0F) { - /* Gain: '/Gain3' */ + /* Gain: '/Gain3' */ rtb_Saturation1 = 1000.0F; } else { if (rtb_Saturation1 < -1000.0F) { - /* Gain: '/Gain3' */ + /* Gain: '/Gain3' */ rtb_Saturation1 = -1000.0F; } } - /* End of Saturate: '/Saturation1' */ + /* End of Saturate: '/Saturation1' */ - /* Outputs for Atomic SubSystem: '/theta2' */ + /* Outputs for Atomic SubSystem: '/theta2' */ rtb_Switch2_o = (real32_T) cr929_SIL_theta2(rtb_Saturation1, rtb_saturation, 0.0F, &cr929_SIL_DW.theta2_h, 0.003062F); - /* End of Outputs for SubSystem: '/theta2' */ + /* End of Outputs for SubSystem: '/theta2' */ - /* Product: '/Product1' incorporates: - * Constant: '/Constant5' + /* Product: '/Product1' incorporates: + * Constant: '/Constant5' */ rtb_Saturation2 *= cr929_SIL_B.BusAssignment_h.r; - /* Gain: '/Gain2' */ + /* Gain: '/Gain2' */ rtb_Saturation2 *= 2500.0F; - /* Saturate: '/Saturation2' */ + /* Saturate: '/Saturation2' */ if (rtb_Saturation2 > 1000.0F) { rtb_Saturation2 = 1000.0F; } else { @@ -27015,115 +26573,115 @@ void cr929_SIL_step(void) } } - /* End of Saturate: '/Saturation2' */ + /* End of Saturate: '/Saturation2' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ rtb_Sum_pi = rtb_uDLookupTable2_c + rtb_Switch_ph; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ rtb_Gain1_ov = 2.0F * rtb_Sum_pi; - /* Outputs for Atomic SubSystem: '/theta3' */ + /* Outputs for Atomic SubSystem: '/theta3' */ rtb_Switch2_l = (real32_T) cr929_SIL_theta2(rtb_Saturation2, rtb_Gain1_ov, rtb_Sum_pi, &cr929_SIL_DW.theta3_j, 0.003062F); - /* End of Outputs for SubSystem: '/theta3' */ + /* End of Outputs for SubSystem: '/theta3' */ - /* Sum: '/Sum2' incorporates: - * Delay: '/Delay' - * Product: '/Product1' - * Product: '/Product2' + /* Sum: '/Sum2' incorporates: + * Delay: '/Delay' + * Product: '/Product1' + * Product: '/Product2' */ - rtb_uDLookupTable2_c = (rtb_Switch2_oq * cr929_SIL_DW.Delay_DSTATE_k + + rtb_uDLookupTable2_c = (rtb_Switch2_oq * cr929_SIL_DW.Delay_DSTATE_kc + rtb_Switch2_o) + rtb_Switch2_l * cr929_SIL_B.BusAssignment_h.r; - /* Sum: '/Sum5' incorporates: + /* Sum: '/Sum5' incorporates: * Constant: '/Constant Single37' - * Delay: '/Delay' - * Gain: '/dt' - * Product: '/Product' - * Product: '/Product1' - * Sum: '/Sum' + * Delay: '/Delay' + * Gain: '/dt' + * Product: '/Product' + * Product: '/Product1' + * Sum: '/Sum' */ - rtb_Switch2 = (rtb_Switch_ph * rtb_Switch2_pl - rtb_uDLookupTable2_c) * - cr929_SIL_P.k_r * 0.003062F + cr929_SIL_DW.Delay_DSTATE_k; + rtb_Switch2_d = (rtb_Switch_ph * rtb_Switch2_pl - rtb_uDLookupTable2_c) * + cr929_SIL_P.k_r * 0.003062F + cr929_SIL_DW.Delay_DSTATE_kc; - /* Switch: '/Switch2' incorporates: - * Gain: '/Gain' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Gain: '/Gain' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ - if (rtb_Switch2 > rtb_saturation) { - rtb_Switch2 = rtb_saturation; + if (rtb_Switch2_d > rtb_saturation) { + rtb_Switch2_d = rtb_saturation; } else { - if (rtb_Switch2 < -rtb_saturation) { - /* Switch: '/Switch' incorporates: - * Gain: '/Gain' + if (rtb_Switch2_d < -rtb_saturation) { + /* Switch: '/Switch' incorporates: + * Gain: '/Gain' */ - rtb_Switch2 = -rtb_saturation; + rtb_Switch2_d = -rtb_saturation; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* SignalConversion: '/Signal Copy' */ - rec_hi.rdot_c = rtb_Switch2; + /* SignalConversion: '/Signal Copy' */ + rec_hi.rdot_c = rtb_Switch2_d; - /* Product: '/divide2' incorporates: - * Product: '/product2' + /* Product: '/divide2' incorporates: + * Product: '/product2' */ rtb_dr2rdot = rtb_divide_k * rec_hi.rdot_c / rtb_dr2rdot; - /* Switch: '/Switch2' incorporates: - * Gain: '/gain1' - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * Gain: '/gain1' + * RelationalOperator: '/LowerRelop1' */ - if (!(rtb_dr2rdot > -rtb_uDLookupTable11)) { - /* Switch: '/Switch' incorporates: - * RelationalOperator: '/UpperRelop' + if (!(rtb_dr2rdot > -rtb_uDLookupTable1_g)) { + /* Switch: '/Switch' incorporates: + * RelationalOperator: '/UpperRelop' */ - if (rtb_dr2rdot < rtb_uDLookupTable11) { - rtb_Sum_k = rtb_uDLookupTable11; + if (rtb_dr2rdot < rtb_uDLookupTable1_g) { + rtb_Sum_k = rtb_uDLookupTable1_g; } else { rtb_Sum_k = rtb_dr2rdot; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant3' - * DiscreteTransferFcn: '/Discrete Transfer Fcn' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant3' + * DiscreteTransferFcn: '/Discrete Transfer Fcn' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (numAccum > 0.0872600377F) { numAccum = 0.0872600377F; } else { if (numAccum < -0.0872600377F) { - /* Switch: '/Switch' */ + /* Switch: '/Switch' */ numAccum = -0.0872600377F; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Sum: '/Sum' incorporates: - * Constant: '/Constant' - * Product: '/Product' - * RelationalOperator: '/Relational Operator' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant' + * Product: '/Product' + * RelationalOperator: '/Relational Operator' */ rtb_subtract = (real32_T)(rtb_Merge_c_CSAS_yaw == ENUM_CSAS_YAW_AY_CTRL) * numAccum + rtb_Sum_k; - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Product: '/divide1' - * Product: '/product3' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * Product: '/divide1' + * Product: '/product3' */ if (rtb_LowerRelop1_gh) { rtb_Switch_cy = rtb_product1 / rtb_saturation * rec_hi.rdot_c / @@ -27132,42 +26690,42 @@ void cr929_SIL_step(void) rtb_Switch_cy = 0.0F; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch2' incorporates: - * Gain: '/gain2' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Gain: '/gain2' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch_cy > rtb_uDLookupTable1) { rtb_Switch_cy = rtb_uDLookupTable1; } else { if (rtb_Switch_cy < -rtb_uDLookupTable1) { - /* Switch: '/Switch' incorporates: - * Gain: '/gain2' + /* Switch: '/Switch' incorporates: + * Gain: '/gain2' */ rtb_Switch_cy = -rtb_uDLookupTable1; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_k_gear_up = rtb_Merge_c_gear_up; rtb_Merge_k_switch_video = rtb_Merge_c_switch_video; numAccum = rtb_Switch2_ki; rtb_product1 = rtb_Divide_e; - rtb_Sum_k = rtb_Merge11; - rtb_divide_k = rtb_Sum4_m; - rtb_Product_hl = rtb_add1; - rtb_saturation_g = rtb_Delay_n; - rtb_Product_ba = rtb_Delay_k; - rtb_Merge_k_thrr_c = rtb_Delay_ip; + rtb_Sum_k = rtb_Merge_c_da_c; + rtb_divide_k = rtb_Merge_c_throttle_c; + rtb_Product_hl = rtb_Merge_c_df_c; + rtb_saturation_g = rtb_Merge_c_dsp_c; + rtb_Product_ba = rtb_Merge_c_thrl_c; + rtb_Merge_k_thrr_c = rtb_Merge_c_thrr_c; rtb_Merge_k_brake_c = rtb_Merge_c_brake_c; rtb_Merge_k_parachute_c = rtb_Merge_c_parachute_c; rtb_Merge_k_anti_stall_parachute_c = rtb_Merge_c_anti_stall_parachute_c; - rtb_Merge_k_dar_c = rtb_Delay_h; + rtb_Merge_k_dar_c = rtb_Merge_c_dar_c; rtb_Merge_k_der_c = rtb_Merge_c_der_c; rtb_Merge_k_dhr_c = rtb_Merge_c_dhr_c; rtb_Merge_k_dflio_c = rtb_Merge_c_dflio_c; @@ -27308,6 +26866,7 @@ void cr929_SIL_step(void) rtb_Merge_k_dr_stimulus = rtb_Merge_c_dr_stimulus; rtb_Merge_k_dh_stimulus = rtb_Merge_c_dh_stimulus; rtb_Merge_k_ay_c = rtb_Merge_c_ay_c; + rtb_Merge_k_mass_est = rtb_Merge_c_mass_est; rtb_Merge_k_Switch_ControlLaw = rtb_Merge_c_Switch_ControlLaw; rtb_Merge_k_comac_ResetControlLaw = rtb_Merge_c_comac_ResetControlLaw; rtb_Merge_k_comac_Arm_RUDTrimPanel = rtb_Merge_c_comac_Arm_RUDTrimPanel; @@ -27330,59 +26889,59 @@ void cr929_SIL_step(void) rtb_Merge_k_comac_HDG_CMD = rtb_Merge_c_comac_HDG_CMD; rtb_Merge_k_comac_ALT_CMD = rtb_Merge_c_comac_ALT_CMD; - /* End of BusAssignment: '/Bus Assignment' */ + /* End of BusAssignment: '/Bus Assignment' */ - /* Sum: '/Sum5' incorporates: - * Gain: '/dt' - * Product: '/Product' - * Sum: '/Sum' - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum5' incorporates: + * Gain: '/dt' + * Product: '/Product' + * Sum: '/Sum' + * UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_it += (rtb_uDLookupTable2_c - rtb_Switch_ph * cr929_SIL_DW.UnitDelay_DSTATE_it) * 0.003062F; - /* SignalConversion: '/Signal Copy4' */ + /* SignalConversion: '/Signal Copy4' */ rec_hi.r_tht_hat = rtb_Switch2_l; - /* SignalConversion: '/Signal Copy2' */ + /* SignalConversion: '/Signal Copy2' */ rec_hi.r_sigma_hat = rtb_Switch2_o; - /* SignalConversion: '/Signal Copy3' */ + /* SignalConversion: '/Signal Copy3' */ rec_hi.r_omega_hat = rtb_Switch2_oq; - /* End of Outputs for SubSystem: '/PSIDOT_CTRL' */ + /* End of Outputs for SubSystem: '/PSIDOT_CTRL' */ break; } - /* End of SwitchCase: '/Switch Case1' */ + /* End of SwitchCase: '/Switch Case1' */ - /* Sum: '/add' incorporates: - * Constant: '/Constant' - * Gain: '/Gain1' + /* Sum: '/add' incorporates: + * Constant: '/Constant' + * Gain: '/Gain1' */ rtb_Switch2_ki = 0.0174532924F * cr929_SIL_P.dr0_c + rtb_subtract; - /* Switch: '/Switch2' incorporates: - * Gain: '/gain' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Gain: '/gain' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch2_ki > rtb_Merge_k_max_dr) { rtb_Switch2_ki = rtb_Merge_k_max_dr; } else { if (rtb_Switch2_ki < -rtb_Merge_k_max_dr) { - /* Switch: '/Switch' incorporates: - * Gain: '/gain' + /* Switch: '/Switch' incorporates: + * Gain: '/gain' */ rtb_Switch2_ki = -rtb_Merge_k_max_dr; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* SwitchCase: '/Switch Case' incorporates: - * BusAssignment: '/Bus Assignment' + /* SwitchCase: '/Switch Case' incorporates: + * BusAssignment: '/Bus Assignment' */ s305_iter = cr929_SIL_DW.SwitchCase_ActiveSubsystem_k; switch (rtb_Merge_k_AT) { @@ -27406,120 +26965,120 @@ void cr929_SIL_step(void) switch (cr929_SIL_DW.SwitchCase_ActiveSubsystem_k) { case 0: if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_k != s305_iter) { - /* InitializeConditions for IfAction SubSystem: '/AS' incorporates: - * ActionPort: '/Action Port' + /* InitializeConditions for IfAction SubSystem: '/AS' incorporates: + * ActionPort: '/Action Port' */ - /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: - * Delay: '/IntVal' + /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: + * Delay: '/IntVal' */ cr929_SIL_DW.icLoad_a = 1U; - /* End of InitializeConditions for SubSystem: '/AS' */ + /* End of InitializeConditions for SubSystem: '/AS' */ } - /* Outputs for IfAction SubSystem: '/AS' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/AS' incorporates: + * ActionPort: '/Action Port' */ - /* Product: '/Product1' incorporates: + /* Product: '/Product1' incorporates: * Constant: '/Constant Single42' * Outport: '/traj' */ rtb_Switch_gmk = cr929_SIL_Y.traj.gamma * 9.8F; - /* Product: '/KP' incorporates: + /* Product: '/KP' incorporates: * Constant: '/Constant Single18' * Constant: '/Constant Single19' - * Constant: '/two' + * Constant: '/two' * Outport: '/traj' - * Product: '/kp' + * Product: '/kp' */ - rtb_uDLookupTable11 = cr929_SIL_P.w_v * cr929_SIL_P.zeta_v * 2.0F * + rtb_uDLookupTable1_g = cr929_SIL_P.w_v * cr929_SIL_P.zeta_v * 2.0F * cr929_SIL_Y.traj.v_gv; - /* Delay: '/IntVal' incorporates: + /* Delay: '/IntVal' incorporates: * Constant: '/Constant Single4' * Constant: '/Constant Single78' - * Product: '/Divide1' - * Product: '/Product3' - * Sum: '/az0' + * Product: '/Divide1' + * Product: '/Product3' + * Sum: '/az0' */ if (cr929_SIL_DW.icLoad_a != 0) { cr929_SIL_DW.IntVal_DSTATE_p = (cr929_SIL_P.max_thrust * rtb_divide_k / - cr929_SIL_P.m + rtb_uDLookupTable11) - rtb_Switch_gmk; + cr929_SIL_P.m + rtb_uDLookupTable1_g) - rtb_Switch_gmk; } - /* Sum: '/az_c' incorporates: + /* Sum: '/az_c' incorporates: * Constant: '/Constant Single19' - * Constant: '/Constant' + * Constant: '/Constant' * DataStoreRead: '/Data Store Read' - * Delay: '/IntVal' - * Product: '/KI' - * Product: '/ki' - * Sum: '/err_hdot' - * Sum: '/int_az' + * Delay: '/IntVal' + * Product: '/KI' + * Product: '/ki' + * Sum: '/err_hdot' + * Sum: '/int_az' */ rtb_Divide2_i = ((cr929_SIL_P.w_v * cr929_SIL_P.w_v * (cr929_SIL_DW.CC.as_c - cr929_SIL_B.BusAssignment_h.IAS) * 0.003062F + cr929_SIL_DW.IntVal_DSTATE_p) + rtb_Switch_gmk) - - rtb_uDLookupTable11; + rtb_uDLookupTable1_g; - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant3' + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant3' */ if (!(rtb_Divide2_i > 0.0F)) { rtb_Divide2_i = 0.0F; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* Product: '/Divide2' incorporates: + /* Product: '/Divide2' incorporates: * Constant: '/Constant Single4' * Constant: '/Constant Single78' - * Product: '/Product' + * Product: '/Product' */ rtb_Divide2_i = rtb_Divide2_i * cr929_SIL_P.m / cr929_SIL_P.max_thrust; - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single76' * Constant: '/Constant Single77' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Divide2_i > cr929_SIL_P.max_thr) { rtb_Divide2_i = cr929_SIL_P.max_thr; } else { if (rtb_Divide2_i < cr929_SIL_P.min_thr) { - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: * Constant: '/Constant Single77' */ rtb_Divide2_i = cr929_SIL_P.min_thr; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* BusAssignment: '/Bus Assignment' */ - rtb_out_h2 = rtb_Merge_k_gear_up; + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_h_gear_up = rtb_Merge_k_gear_up; rtb_Merge_h_switch_video = rtb_Merge_k_switch_video; - rtb_subtract1_d = rtb_Switch_cy; - rtb_Gain_cv = numAccum; - rtb_uDLookupTable12 = rtb_product1; - rtb_uDLookupTable10 = rtb_Sum_k; - rtb_uDLookupTable9 = rtb_Product_hl; - rtb_uDLookupTable8 = rtb_saturation_g; - rtb_uDLookupTable7 = rtb_Switch2_ki; - rtb_uDLookupTable6 = rtb_Product_ba; - rtb_uDLookupTable5 = rtb_Merge_k_thrr_c; + rtb_add2 = rtb_Switch_cy; + rtb_da2dal_deg = numAccum; + rtb_da2dar_deg = rtb_product1; + rtb_add_k = rtb_Sum_k; + rtb_Sum7_f = rtb_Product_hl; + rtb_Sum5_hx = rtb_saturation_g; + rtb_Merge11 = rtb_Switch2_ki; + rtb_Sum4_m = rtb_Product_ba; + rtb_add1 = rtb_Merge_k_thrr_c; rtb_Merge_h_brake_c = rtb_Merge_k_brake_c; rtb_Merge_h_parachute_c = rtb_Merge_k_parachute_c; rtb_Merge_h_anti_stall_parachute_c = rtb_Merge_k_anti_stall_parachute_c; - rtb_uDLookupTable4 = rtb_Merge_k_dar_c; - rtb_uDLookupTable3 = rtb_Merge_k_der_c; - rtb_Merge_h_dhr_c = rtb_Merge_k_dhr_c; - rtb_Merge_h_dflio_c = rtb_Merge_k_dflio_c; - rtb_Merge_h_dflo_c = rtb_Merge_k_dflo_c; + rtb_Delay_n = rtb_Merge_k_dar_c; + rtb_Delay_k = rtb_Merge_k_der_c; + rtb_Delay_ip = rtb_Merge_k_dhr_c; + rtb_Delay_h = rtb_Merge_k_dflio_c; + rtb_uDLookupTable3 = rtb_Merge_k_dflo_c; rtb_Merge_h_dal_c = rtb_Merge_k_dal_c; rtb_Merge_h_del_c = rtb_Merge_k_del_c; rtb_Merge_h_dfrio_c = rtb_Merge_k_dfrio_c; @@ -27657,6 +27216,7 @@ void cr929_SIL_step(void) rtb_Merge_h_dr_stimulus = rtb_Merge_k_dr_stimulus; rtb_Merge_h_dh_stimulus = rtb_Merge_k_dh_stimulus; rtb_Merge_h_ay_c = rtb_Merge_k_ay_c; + rtb_Merge_h_mass_est = rtb_Merge_k_mass_est; rtb_Merge_h_Switch_ControlLaw = rtb_Merge_k_Switch_ControlLaw; rtb_Merge_h_comac_ResetControlLaw = rtb_Merge_k_comac_ResetControlLaw; rtb_Merge_h_comac_Arm_RUDTrimPanel = rtb_Merge_k_comac_Arm_RUDTrimPanel; @@ -27679,130 +27239,130 @@ void cr929_SIL_step(void) rtb_Merge_h_comac_HDG_CMD = rtb_Merge_k_comac_HDG_CMD; rtb_Merge_h_comac_ALT_CMD = rtb_Merge_k_comac_ALT_CMD; - /* End of BusAssignment: '/Bus Assignment' */ + /* End of BusAssignment: '/Bus Assignment' */ - /* Update for Delay: '/IntVal' incorporates: + /* Update for Delay: '/IntVal' incorporates: * Constant: '/Constant Single4' * Constant: '/Constant Single78' - * Product: '/Divide' - * Product: '/Product2' - * Sum: '/az_d' + * Product: '/Divide' + * Product: '/Product2' + * Sum: '/az_d' */ cr929_SIL_DW.icLoad_a = 0U; cr929_SIL_DW.IntVal_DSTATE_p = (rtb_Divide2_i * cr929_SIL_P.max_thrust / - cr929_SIL_P.m + rtb_uDLookupTable11) - rtb_Switch_gmk; + cr929_SIL_P.m + rtb_uDLookupTable1_g) - rtb_Switch_gmk; - /* End of Outputs for SubSystem: '/AS' */ + /* End of Outputs for SubSystem: '/AS' */ break; case 1: if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_k != s305_iter) { - /* InitializeConditions for IfAction SubSystem: '/GS' incorporates: - * ActionPort: '/Action Port' + /* InitializeConditions for IfAction SubSystem: '/GS' incorporates: + * ActionPort: '/Action Port' */ - /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: - * Delay: '/IntVal' + /* InitializeConditions for SwitchCase: '/Switch Case' incorporates: + * Delay: '/IntVal' */ cr929_SIL_DW.icLoad_cw = 1U; - /* End of InitializeConditions for SubSystem: '/GS' */ + /* End of InitializeConditions for SubSystem: '/GS' */ } - /* Outputs for IfAction SubSystem: '/GS' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/GS' incorporates: + * ActionPort: '/Action Port' */ - /* Product: '/KP' incorporates: + /* Product: '/KP' incorporates: * Constant: '/Constant Single18' * Constant: '/Constant Single19' - * Constant: '/two' + * Constant: '/two' * Outport: '/traj' - * Product: '/kp' + * Product: '/kp' */ rtb_Switch_gmk = cr929_SIL_P.w_v * cr929_SIL_P.zeta_v * 2.0F * cr929_SIL_Y.traj.v_g; - /* Delay: '/IntVal' incorporates: + /* Delay: '/IntVal' incorporates: * Constant: '/Constant Single4' * Constant: '/Constant Single78' - * Product: '/Divide1' - * Product: '/Product3' - * Sum: '/az0' + * Product: '/Divide1' + * Product: '/Product3' + * Sum: '/az0' */ if (cr929_SIL_DW.icLoad_cw != 0) { cr929_SIL_DW.IntVal_DSTATE = cr929_SIL_P.max_thrust * rtb_divide_k / cr929_SIL_P.m + rtb_Switch_gmk; } - /* Sum: '/az_c' incorporates: + /* Sum: '/az_c' incorporates: * Constant: '/Constant Single19' - * Constant: '/Constant' - * Delay: '/IntVal' + * Constant: '/Constant' + * Delay: '/IntVal' * Outport: '/traj' - * Product: '/KI' - * Product: '/ki' - * Sum: '/err_hdot' - * Sum: '/int_az' + * Product: '/KI' + * Product: '/ki' + * Sum: '/err_hdot' + * Sum: '/int_az' */ rtb_Divide2_i = (cr929_SIL_P.w_v * cr929_SIL_P.w_v * (rtb_Merge_k_gs_c - cr929_SIL_Y.traj.v_g) * 0.003062F + cr929_SIL_DW.IntVal_DSTATE) - rtb_Switch_gmk; - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant3' + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant3' */ if (!(rtb_Divide2_i > 0.0F)) { rtb_Divide2_i = 0.0F; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* Product: '/Divide2' incorporates: + /* Product: '/Divide2' incorporates: * Constant: '/Constant Single4' * Constant: '/Constant Single78' - * Product: '/Product' + * Product: '/Product' */ rtb_Divide2_i = rtb_Divide2_i * cr929_SIL_P.m / cr929_SIL_P.max_thrust; - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/Constant Single76' - * Constant: '/Constant BP' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + * Constant: '/Constant BP' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Divide2_i > cr929_SIL_P.max_thr) { rtb_Divide2_i = cr929_SIL_P.max_thr; } else { if (rtb_Divide2_i < 0.0F) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant BP' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant BP' */ rtb_Divide2_i = 0.0F; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* BusAssignment: '/Bus Assignment' */ - rtb_out_h2 = rtb_Merge_k_gear_up; + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_h_gear_up = rtb_Merge_k_gear_up; rtb_Merge_h_switch_video = rtb_Merge_k_switch_video; - rtb_subtract1_d = rtb_Switch_cy; - rtb_Gain_cv = numAccum; - rtb_uDLookupTable12 = rtb_product1; - rtb_uDLookupTable10 = rtb_Sum_k; - rtb_uDLookupTable9 = rtb_Product_hl; - rtb_uDLookupTable8 = rtb_saturation_g; - rtb_uDLookupTable7 = rtb_Switch2_ki; - rtb_uDLookupTable6 = rtb_Product_ba; - rtb_uDLookupTable5 = rtb_Merge_k_thrr_c; + rtb_add2 = rtb_Switch_cy; + rtb_da2dal_deg = numAccum; + rtb_da2dar_deg = rtb_product1; + rtb_add_k = rtb_Sum_k; + rtb_Sum7_f = rtb_Product_hl; + rtb_Sum5_hx = rtb_saturation_g; + rtb_Merge11 = rtb_Switch2_ki; + rtb_Sum4_m = rtb_Product_ba; + rtb_add1 = rtb_Merge_k_thrr_c; rtb_Merge_h_brake_c = rtb_Merge_k_brake_c; rtb_Merge_h_parachute_c = rtb_Merge_k_parachute_c; rtb_Merge_h_anti_stall_parachute_c = rtb_Merge_k_anti_stall_parachute_c; - rtb_uDLookupTable4 = rtb_Merge_k_dar_c; - rtb_uDLookupTable3 = rtb_Merge_k_der_c; - rtb_Merge_h_dhr_c = rtb_Merge_k_dhr_c; - rtb_Merge_h_dflio_c = rtb_Merge_k_dflio_c; - rtb_Merge_h_dflo_c = rtb_Merge_k_dflo_c; + rtb_Delay_n = rtb_Merge_k_dar_c; + rtb_Delay_k = rtb_Merge_k_der_c; + rtb_Delay_ip = rtb_Merge_k_dhr_c; + rtb_Delay_h = rtb_Merge_k_dflio_c; + rtb_uDLookupTable3 = rtb_Merge_k_dflo_c; rtb_Merge_h_dal_c = rtb_Merge_k_dal_c; rtb_Merge_h_del_c = rtb_Merge_k_del_c; rtb_Merge_h_dfrio_c = rtb_Merge_k_dfrio_c; @@ -27940,6 +27500,7 @@ void cr929_SIL_step(void) rtb_Merge_h_dr_stimulus = rtb_Merge_k_dr_stimulus; rtb_Merge_h_dh_stimulus = rtb_Merge_k_dh_stimulus; rtb_Merge_h_ay_c = rtb_Merge_k_ay_c; + rtb_Merge_h_mass_est = rtb_Merge_k_mass_est; rtb_Merge_h_Switch_ControlLaw = rtb_Merge_k_Switch_ControlLaw; rtb_Merge_h_comac_ResetControlLaw = rtb_Merge_k_comac_ResetControlLaw; rtb_Merge_h_comac_Arm_RUDTrimPanel = rtb_Merge_k_comac_Arm_RUDTrimPanel; @@ -27962,46 +27523,46 @@ void cr929_SIL_step(void) rtb_Merge_h_comac_HDG_CMD = rtb_Merge_k_comac_HDG_CMD; rtb_Merge_h_comac_ALT_CMD = rtb_Merge_k_comac_ALT_CMD; - /* End of BusAssignment: '/Bus Assignment' */ + /* End of BusAssignment: '/Bus Assignment' */ - /* Update for Delay: '/IntVal' incorporates: + /* Update for Delay: '/IntVal' incorporates: * Constant: '/Constant Single4' * Constant: '/Constant Single78' - * Product: '/Divide' - * Product: '/Product2' - * Sum: '/az_d' + * Product: '/Divide' + * Product: '/Product2' + * Sum: '/az_d' */ cr929_SIL_DW.icLoad_cw = 0U; cr929_SIL_DW.IntVal_DSTATE = rtb_Divide2_i * cr929_SIL_P.max_thrust / cr929_SIL_P.m + rtb_Switch_gmk; - /* End of Outputs for SubSystem: '/GS' */ + /* End of Outputs for SubSystem: '/GS' */ break; case 2: - /* Outputs for IfAction SubSystem: '/COMMAND' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/COMMAND' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' */ - rtb_out_h2 = rtb_Merge_k_gear_up; + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_h_gear_up = rtb_Merge_k_gear_up; rtb_Merge_h_switch_video = rtb_Merge_k_switch_video; - rtb_subtract1_d = rtb_Switch_cy; - rtb_Gain_cv = numAccum; - rtb_uDLookupTable12 = rtb_product1; - rtb_uDLookupTable10 = rtb_Sum_k; - rtb_uDLookupTable9 = rtb_Product_hl; - rtb_uDLookupTable8 = rtb_saturation_g; - rtb_uDLookupTable7 = rtb_Switch2_ki; - rtb_uDLookupTable6 = rtb_Product_ba; - rtb_uDLookupTable5 = rtb_Merge_k_thrr_c; + rtb_add2 = rtb_Switch_cy; + rtb_da2dal_deg = numAccum; + rtb_da2dar_deg = rtb_product1; + rtb_add_k = rtb_Sum_k; + rtb_Sum7_f = rtb_Product_hl; + rtb_Sum5_hx = rtb_saturation_g; + rtb_Merge11 = rtb_Switch2_ki; + rtb_Sum4_m = rtb_Product_ba; + rtb_add1 = rtb_Merge_k_thrr_c; rtb_Merge_h_brake_c = rtb_Merge_k_brake_c; rtb_Merge_h_parachute_c = rtb_Merge_k_parachute_c; rtb_Merge_h_anti_stall_parachute_c = rtb_Merge_k_anti_stall_parachute_c; - rtb_uDLookupTable4 = rtb_Merge_k_dar_c; - rtb_uDLookupTable3 = rtb_Merge_k_der_c; - rtb_Merge_h_dhr_c = rtb_Merge_k_dhr_c; - rtb_Merge_h_dflio_c = rtb_Merge_k_dflio_c; - rtb_Merge_h_dflo_c = rtb_Merge_k_dflo_c; + rtb_Delay_n = rtb_Merge_k_dar_c; + rtb_Delay_k = rtb_Merge_k_der_c; + rtb_Delay_ip = rtb_Merge_k_dhr_c; + rtb_Delay_h = rtb_Merge_k_dflio_c; + rtb_uDLookupTable3 = rtb_Merge_k_dflo_c; rtb_Merge_h_dal_c = rtb_Merge_k_dal_c; rtb_Merge_h_del_c = rtb_Merge_k_del_c; rtb_Merge_h_dfrio_c = rtb_Merge_k_dfrio_c; @@ -28139,6 +27700,7 @@ void cr929_SIL_step(void) rtb_Merge_h_dr_stimulus = rtb_Merge_k_dr_stimulus; rtb_Merge_h_dh_stimulus = rtb_Merge_k_dh_stimulus; rtb_Merge_h_ay_c = rtb_Merge_k_ay_c; + rtb_Merge_h_mass_est = rtb_Merge_k_mass_est; rtb_Merge_h_Switch_ControlLaw = rtb_Merge_k_Switch_ControlLaw; rtb_Merge_h_comac_ResetControlLaw = rtb_Merge_k_comac_ResetControlLaw; rtb_Merge_h_comac_Arm_RUDTrimPanel = rtb_Merge_k_comac_Arm_RUDTrimPanel; @@ -28161,48 +27723,48 @@ void cr929_SIL_step(void) rtb_Merge_h_comac_HDG_CMD = rtb_Merge_k_comac_HDG_CMD; rtb_Merge_h_comac_ALT_CMD = rtb_Merge_k_comac_ALT_CMD; - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (rtb_divide_k > 1.0F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Divide2_i = 1.0F; } else if (rtb_divide_k < -0.25F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Divide2_i = -0.25F; } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Divide2_i = rtb_divide_k; } - /* End of Saturate: '/Saturation' */ - /* End of Outputs for SubSystem: '/COMMAND' */ + /* End of Saturate: '/Saturation' */ + /* End of Outputs for SubSystem: '/COMMAND' */ break; case 3: - /* Outputs for IfAction SubSystem: '/OFF' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/OFF' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant' */ - rtb_out_h2 = rtb_Merge_k_gear_up; + rtb_Merge_h_gear_up = rtb_Merge_k_gear_up; rtb_Merge_h_switch_video = rtb_Merge_k_switch_video; - rtb_subtract1_d = rtb_Switch_cy; - rtb_Gain_cv = numAccum; - rtb_uDLookupTable12 = rtb_product1; - rtb_uDLookupTable10 = rtb_Sum_k; - rtb_uDLookupTable9 = rtb_Product_hl; - rtb_uDLookupTable8 = rtb_saturation_g; - rtb_uDLookupTable7 = rtb_Switch2_ki; - rtb_uDLookupTable6 = rtb_Product_ba; - rtb_uDLookupTable5 = rtb_Merge_k_thrr_c; + rtb_add2 = rtb_Switch_cy; + rtb_da2dal_deg = numAccum; + rtb_da2dar_deg = rtb_product1; + rtb_add_k = rtb_Sum_k; + rtb_Sum7_f = rtb_Product_hl; + rtb_Sum5_hx = rtb_saturation_g; + rtb_Merge11 = rtb_Switch2_ki; + rtb_Sum4_m = rtb_Product_ba; + rtb_add1 = rtb_Merge_k_thrr_c; rtb_Merge_h_brake_c = rtb_Merge_k_brake_c; rtb_Merge_h_parachute_c = rtb_Merge_k_parachute_c; rtb_Merge_h_anti_stall_parachute_c = rtb_Merge_k_anti_stall_parachute_c; - rtb_uDLookupTable4 = rtb_Merge_k_dar_c; - rtb_uDLookupTable3 = rtb_Merge_k_der_c; - rtb_Merge_h_dhr_c = rtb_Merge_k_dhr_c; - rtb_Merge_h_dflio_c = rtb_Merge_k_dflio_c; - rtb_Merge_h_dflo_c = rtb_Merge_k_dflo_c; + rtb_Delay_n = rtb_Merge_k_dar_c; + rtb_Delay_k = rtb_Merge_k_der_c; + rtb_Delay_ip = rtb_Merge_k_dhr_c; + rtb_Delay_h = rtb_Merge_k_dflio_c; + rtb_uDLookupTable3 = rtb_Merge_k_dflo_c; rtb_Merge_h_dal_c = rtb_Merge_k_dal_c; rtb_Merge_h_del_c = rtb_Merge_k_del_c; rtb_Merge_h_dfrio_c = rtb_Merge_k_dfrio_c; @@ -28340,6 +27902,7 @@ void cr929_SIL_step(void) rtb_Merge_h_dr_stimulus = rtb_Merge_k_dr_stimulus; rtb_Merge_h_dh_stimulus = rtb_Merge_k_dh_stimulus; rtb_Merge_h_ay_c = rtb_Merge_k_ay_c; + rtb_Merge_h_mass_est = rtb_Merge_k_mass_est; rtb_Merge_h_Switch_ControlLaw = rtb_Merge_k_Switch_ControlLaw; rtb_Merge_h_comac_ResetControlLaw = rtb_Merge_k_comac_ResetControlLaw; rtb_Merge_h_comac_Arm_RUDTrimPanel = rtb_Merge_k_comac_Arm_RUDTrimPanel; @@ -28363,252 +27926,618 @@ void cr929_SIL_step(void) rtb_Merge_h_comac_ALT_CMD = rtb_Merge_k_comac_ALT_CMD; rtb_Divide2_i = 0.0F; - /* End of BusAssignment: '/Bus Assignment' */ - /* End of Outputs for SubSystem: '/OFF' */ + /* End of BusAssignment: '/Bus Assignment' */ + /* End of Outputs for SubSystem: '/OFF' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ /* If: '/If' */ if (rtb_Merge_h_armed) { /* Outputs for IfAction SubSystem: '/armed' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_ay_gear_up = true; - - /* Saturate: '/Saturation' */ - if (rtb_Divide2_i > 1.0F) { - /* BusAssignment: '/Bus Assignment' */ - rtb_Divide2_i = 1.0F; - } else { - if (rtb_Divide2_i < -0.25F) { - /* BusAssignment: '/Bus Assignment' */ - rtb_Divide2_i = -0.25F; - } + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_g.gear_up = rtb_Merge_h_gear_up; + rtb_Merge_g.switch_video = rtb_Merge_h_switch_video; + rtb_Merge_g.steer_c = rtb_add2; + rtb_Merge_g.de_c = rtb_da2dal_deg; + rtb_Merge_g.dh_c = rtb_da2dar_deg; + rtb_Merge_g.da_c = rtb_add_k; + rtb_Merge_g.df_c = rtb_Sum7_f; + rtb_Merge_g.dsp_c = rtb_Sum5_hx; + rtb_Merge_g.dr_c = rtb_Merge11; + rtb_Merge_g.thrl_c = rtb_Sum4_m; + rtb_Merge_g.thrr_c = rtb_add1; + rtb_Merge_g.brake_c = rtb_Merge_h_brake_c; + rtb_Merge_g.parachute_c = rtb_Merge_h_parachute_c; + rtb_Merge_g.anti_stall_parachute_c = rtb_Merge_h_anti_stall_parachute_c; + rtb_Merge_g.dar_c = rtb_Delay_n; + rtb_Merge_g.der_c = rtb_Delay_k; + rtb_Merge_g.dhr_c = rtb_Delay_ip; + rtb_Merge_g.dflio_c = rtb_Delay_h; + rtb_Merge_g.dflo_c = rtb_uDLookupTable3; + rtb_Merge_g.dal_c = rtb_Merge_h_dal_c; + rtb_Merge_g.del_c = rtb_Merge_h_del_c; + rtb_Merge_g.dfrio_c = rtb_Merge_h_dfrio_c; + rtb_Merge_g.dfro_c = rtb_Merge_h_dfro_c; + rtb_Merge_g.dhl_c = rtb_Merge_h_dhl_c; + rtb_Merge_g.dflii_c = rtb_Merge_h_dflii_c; + rtb_Merge_g.dfrii_c = rtb_Merge_h_dfrii_c; + rtb_Merge_g.dflo2_c = rtb_Merge_h_dflo2_c; + rtb_Merge_g.dfro2_c = rtb_Merge_h_dfro2_c; + rtb_Merge_g.dspli_c[0] = rtb_Merge_h_dspli_c_idx_0; + rtb_Merge_g.dspri_c[0] = rtb_Merge_h_dspri_c_idx_0; + rtb_Merge_g.dspli_c[1] = rtb_Merge_h_dspli_c_idx_1; + rtb_Merge_g.dspri_c[1] = rtb_Merge_h_dspri_c_idx_1; + rtb_Merge_g.dspli_c[2] = rtb_Merge_h_dspli_c_idx_2; + rtb_Merge_g.dspri_c[2] = rtb_Merge_h_dspri_c_idx_2; + for (i = 0; i < 5; i++) { + rtb_Merge_g.dsplo_c[i] = rtb_Merge_h_dsplo_c[i]; + rtb_Merge_g.dspro_c[i] = rtb_Merge_h_dspro_c[i]; } - /* End of Saturate: '/Saturation' */ + rtb_Merge_g.load_signal[0] = rtb_Merge_h_load_signal_idx_0; + rtb_Merge_g.load_signal[1] = rtb_Merge_h_load_signal_idx_1; + rtb_Merge_g.load_signal[2] = rtb_Merge_h_load_signal_idx_2; + rtb_Merge_g.use_mix = rtb_Merge_h_use_mix; + rtb_Merge_g.AFCS_LAT = rtb_Merge_h_AFCS_LAT; + rtb_Merge_g.AFCS_VERT = rtb_Merge_h_AFCS_VERT; + rtb_Merge_g.CSAS_pitch = rtb_Merge_h_CSAS_pitch; + rtb_Merge_g.CSAS_roll = rtb_Merge_h_CSAS_roll; + rtb_Merge_g.CSAS_yaw = rtb_Merge_h_CSAS_yaw; + rtb_Merge_g.AT = rtb_Merge_h_AT; + rtb_Merge_g.level1_lgx = rtb_Merge_h_level1_lgx; + rtb_Merge_g.level2_lgx = rtb_Merge_h_level2_lgx; + rtb_Merge_g.level3_lgx = rtb_Merge_h_level3_lgx; + rtb_Merge_g.level3_auto_lgx = rtb_Merge_h_level3_auto_lgx; + rtb_Merge_g.level4_lgx = rtb_Merge_h_level4_lgx; + rtb_Merge_g.level5_lgx = rtb_Merge_h_level5_lgx; + rtb_Merge_g.mode = rtb_Merge_h_mode; + rtb_Merge_g.traj.lat1 = rtb_Merge_h_traj_lat1; + rtb_Merge_g.traj.lon1 = rtb_Merge_h_traj_lon1; + rtb_Merge_g.traj.h1 = rtb_Merge_h_traj_h1; + rtb_Merge_g.traj.azimuth = rtb_Merge_h_traj_azimuth; + rtb_Merge_g.traj.elevation_baseline = + rtb_Merge_h_traj_elevation_baseline; + rtb_Merge_g.traj.radius = rtb_Merge_h_traj_radius; + rtb_Merge_g.traj.heading = rtb_Merge_h_traj_heading; + rtb_Merge_g.traj.elevation_baseline2 = + rtb_Merge_h_traj_elevation_baseline2; + rtb_Merge_g.traj.mode = rtb_Merge_h_traj_mode; + rtb_Merge_g.traj.vn_c = rtb_Merge_h_traj_vn_c; + rtb_Merge_g.traj.ve_c = rtb_Merge_h_traj_ve_c; + rtb_Merge_g.traj.hdot_c = rtb_Merge_h_traj_hdot_c; + rtb_Merge_g.use_mission_traj = rtb_Merge_h_use_mission_traj; + rtb_Merge_g.rc.pitch_cmd = rtb_Merge_h_rc_pitch_cmd; + rtb_Merge_g.rc.roll_cmd = rtb_Merge_h_rc_roll_cmd; + rtb_Merge_g.rc.yaw_cmd = rtb_Merge_h_rc_yaw_cmd; + rtb_Merge_g.rc.throttle_cmd = rtb_Merge_h_rc_throttle_cmd; + for (i = 0; i < 18; i++) { + rtb_Merge_g.rc.chan_raw[i] = rtb_Merge_h_rc_chan_raw[i]; + } + + rtb_Merge_g.rc.auto_mode = rtb_Merge_h_rc_auto_mode; + rtb_Merge_g.rc.aux_mode = rtb_Merge_h_rc_aux_mode; + rtb_Merge_g.rc.id = rtb_Merge_h_rc_id; + rtb_Merge_g.rc.seq = rtb_Merge_h_rc_seq; + rtb_Merge_g.rc.brake = rtb_Merge_h_rc_brake; + rtb_Merge_g.rc.gear_up = rtb_Merge_h_rc_gear_up; + rtb_Merge_g.rc.connected = rtb_Merge_h_rc_connected; + rtb_Merge_g.boot_time = rtb_Merge_h_boot_time; + rtb_Merge_g.armed = true; + rtb_Merge_g.state = rtb_Merge_h_state; + rtb_Merge_g.vtol_state = rtb_Merge_h_vtol_state; + rtb_Merge_g.landed_state = rtb_Merge_h_landed_state; + rtb_Merge_g.linked = rtb_Merge_h_linked; + rtb_Merge_g.WP_cur = rtb_Merge_h_WP_cur; + rtb_Merge_g.base_asl = rtb_Merge_h_base_asl; + rtb_Merge_g.base_asl_baro = rtb_Merge_h_base_asl_baro; + rtb_Merge_g.standby_cmd = rtb_Merge_h_standby_cmd; + rtb_Merge_g.xbit_cmd = rtb_Merge_h_xbit_cmd; + rtb_Merge_g.autocont = rtb_Merge_h_autocont; + rtb_Merge_g.dist_offset_addins = rtb_Merge_h_dist_offset_addins; + rtb_Merge_g.horiz_offset_addins = rtb_Merge_h_horiz_offset_addins; + rtb_Merge_g.vert_offset_addins = rtb_Merge_h_vert_offset_addins; + rtb_Merge_g.home.lat1 = rtb_Merge_h_home_lat1; + rtb_Merge_g.home.lon1 = rtb_Merge_h_home_lon1; + rtb_Merge_g.home.h1 = rtb_Merge_h_home_h1; + rtb_Merge_g.home.azimuth = rtb_Merge_h_home_azimuth; + rtb_Merge_g.home.elevation_baseline = + rtb_Merge_h_home_elevation_baseline; + rtb_Merge_g.home.radius = rtb_Merge_h_home_radius; + rtb_Merge_g.home.heading = rtb_Merge_h_home_heading; + rtb_Merge_g.home.elevation_baseline2 = + rtb_Merge_h_home_elevation_baseline2; + rtb_Merge_g.home.mode = rtb_Merge_h_home_mode; + rtb_Merge_g.home.vn_c = rtb_Merge_h_home_vn_c; + rtb_Merge_g.home.ve_c = rtb_Merge_h_home_ve_c; + rtb_Merge_g.home.hdot_c = rtb_Merge_h_home_hdot_c; + rtb_Merge_g.q_c = rtb_Merge_h_q_c; + rtb_Merge_g.p_c = rtb_Merge_h_p_c; + rtb_Merge_g.r_c = rtb_Merge_h_r_c; + rtb_Merge_g.tht_c = rtb_Merge_h_tht_c; + rtb_Merge_g.phi_c = rtb_Merge_h_phi_c; + rtb_Merge_g.psidot_c = rtb_Merge_h_psidot_c; + rtb_Merge_g.hdot_c = rtb_Merge_h_hdot_c; + rtb_Merge_g.gamma_c = rtb_Merge_h_gamma_c; + rtb_Merge_g.h_c = rtb_Merge_h_h_c; + rtb_Merge_g.as_c = rtb_Merge_h_as_c; + rtb_Merge_g.gs_c = rtb_Merge_h_gs_c; + rtb_Merge_g.takeoff_tht = rtb_Merge_h_takeoff_tht; + rtb_Merge_g.dist_trans = rtb_Merge_h_dist_trans; + rtb_Merge_g.AS_SEL = rtb_Merge_h_AS_SEL; + rtb_Merge_g.aspd_error = rtb_Merge_h_aspd_error; + rtb_Merge_g.enable_rc = rtb_Merge_h_enable_rc; + rtb_Merge_g.max_de = rtb_Merge_h_max_de; + rtb_Merge_g.min_de = rtb_Merge_h_min_de; + rtb_Merge_g.max_da = rtb_Merge_h_max_da; + rtb_Merge_g.max_dr = rtb_Merge_h_max_dr; + rtb_Merge_g.enable_rec = rtb_Merge_h_enable_rec; + rtb_Merge_g.do_jump_cnt = rtb_Merge_h_do_jump_cnt; + rtb_Merge_g.max_df = rtb_Merge_h_max_df; + rtb_Merge_g.max_dsp = rtb_Merge_h_max_dsp; + rtb_Merge_g.min_dsp = rtb_Merge_h_min_dsp; + rtb_Merge_g.takeoff_cmd = rtb_Merge_h_takeoff_cmd; + rtb_Merge_g.landing_cmd = rtb_Merge_h_landing_cmd; + rtb_Merge_g.abort_takeoff_cmd = rtb_Merge_h_abort_takeoff_cmd; + rtb_Merge_g.landing_abort_alt = rtb_Merge_h_landing_abort_alt; + rtb_Merge_g.flap_lever = rtb_Merge_h_flap_lever; + rtb_Merge_g.maneuver_cmd = rtb_Merge_h_maneuver_cmd; + for (i = 0; i < 6; i++) { + rtb_Merge_g.maneuver_params[i] = rtb_Merge_h_maneuver_params[i]; + } + + rtb_Merge_g.use_da2dsp = rtb_Merge_h_use_da2dsp; + rtb_Merge_g.de_stimulus = rtb_Merge_h_de_stimulus; + rtb_Merge_g.da_stimulus = rtb_Merge_h_da_stimulus; + rtb_Merge_g.dr_stimulus = rtb_Merge_h_dr_stimulus; + rtb_Merge_g.dh_stimulus = rtb_Merge_h_dh_stimulus; + rtb_Merge_g.ay_c = rtb_Merge_h_ay_c; + rtb_Merge_g.mass_est = rtb_Merge_h_mass_est; + rtb_Merge_g.Switch_ControlLaw = rtb_Merge_h_Switch_ControlLaw; + rtb_Merge_g.comac_ResetControlLaw = rtb_Merge_h_comac_ResetControlLaw; + rtb_Merge_g.comac_Arm_RUDTrimPanel = rtb_Merge_h_comac_Arm_RUDTrimPanel; + rtb_Merge_g.comac_NoseLeft_RUDTrimPanel = + rtb_Merge_h_comac_NoseLeft_RUDTrimPanel; + rtb_Merge_g.comac_NoseRight_RUDTrimPanel = + rtb_Merge_h_comac_NoseRight_RUDTrimPanel; + rtb_Merge_g.comac_Reset_RUDTrimPanel = + rtb_Merge_h_comac_Reset_RUDTrimPanel; + rtb_Merge_g.comac_PrioritySwitchCP = rtb_Merge_h_comac_PrioritySwitchCP; + rtb_Merge_g.comac_PrioritySwitchFO = rtb_Merge_h_comac_PrioritySwitchFO; + rtb_Merge_g.comac_InhibitAlphaPROT_Test = + rtb_Merge_h_comac_InhibitAlphaPROT_Test; + rtb_Merge_g.comac_RudTrimEnable_NM_Test = + rtb_Merge_h_comac_RudTrimEnable_NM_Test; + rtb_Merge_g.comac_InhibitMLA_Test = rtb_Merge_h_comac_InhibitMLA_Test; + rtb_Merge_g.comac_AP_Engage = rtb_Merge_h_comac_AP_Engage; + rtb_Merge_g.comac_AT_Engage = rtb_Merge_h_comac_AT_Engage; + rtb_Merge_g.comac_FPA_CMD = rtb_Merge_h_comac_FPA_CMD; + rtb_Merge_g.comac_HDG_CMD = rtb_Merge_h_comac_HDG_CMD; + rtb_Merge_g.comac_ALT_CMD = rtb_Merge_h_comac_ALT_CMD; + + /* Saturate: '/Saturation' */ + if (rtb_Divide2_i > 1.0F) { + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_g.throttle_c = 1.0F; + } else if (rtb_Divide2_i < -0.25F) { + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_g.throttle_c = -0.25F; + } else { + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_g.throttle_c = rtb_Divide2_i; + } + + /* End of Saturate: '/Saturation' */ /* End of Outputs for SubSystem: '/armed' */ } else { /* Outputs for IfAction SubSystem: '/disarmed' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_ay_gear_up = false; - - /* Saturate: '/Saturation' */ - if (rtb_Divide2_i > -0.07F) { - /* BusAssignment: '/Bus Assignment' */ - rtb_Divide2_i = -0.07F; - } else { - if (rtb_Divide2_i < -0.25F) { - /* BusAssignment: '/Bus Assignment' */ - rtb_Divide2_i = -0.25F; - } + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_g.gear_up = rtb_Merge_h_gear_up; + rtb_Merge_g.switch_video = rtb_Merge_h_switch_video; + rtb_Merge_g.steer_c = rtb_add2; + rtb_Merge_g.de_c = rtb_da2dal_deg; + rtb_Merge_g.dh_c = rtb_da2dar_deg; + rtb_Merge_g.da_c = rtb_add_k; + rtb_Merge_g.df_c = rtb_Sum7_f; + rtb_Merge_g.dsp_c = rtb_Sum5_hx; + rtb_Merge_g.dr_c = rtb_Merge11; + rtb_Merge_g.thrl_c = rtb_Sum4_m; + rtb_Merge_g.thrr_c = rtb_add1; + rtb_Merge_g.brake_c = rtb_Merge_h_brake_c; + rtb_Merge_g.parachute_c = rtb_Merge_h_parachute_c; + rtb_Merge_g.anti_stall_parachute_c = rtb_Merge_h_anti_stall_parachute_c; + rtb_Merge_g.dar_c = rtb_Delay_n; + rtb_Merge_g.der_c = rtb_Delay_k; + rtb_Merge_g.dhr_c = rtb_Delay_ip; + rtb_Merge_g.dflio_c = rtb_Delay_h; + rtb_Merge_g.dflo_c = rtb_uDLookupTable3; + rtb_Merge_g.dal_c = rtb_Merge_h_dal_c; + rtb_Merge_g.del_c = rtb_Merge_h_del_c; + rtb_Merge_g.dfrio_c = rtb_Merge_h_dfrio_c; + rtb_Merge_g.dfro_c = rtb_Merge_h_dfro_c; + rtb_Merge_g.dhl_c = rtb_Merge_h_dhl_c; + rtb_Merge_g.dflii_c = rtb_Merge_h_dflii_c; + rtb_Merge_g.dfrii_c = rtb_Merge_h_dfrii_c; + rtb_Merge_g.dflo2_c = rtb_Merge_h_dflo2_c; + rtb_Merge_g.dfro2_c = rtb_Merge_h_dfro2_c; + rtb_Merge_g.dspli_c[0] = rtb_Merge_h_dspli_c_idx_0; + rtb_Merge_g.dspri_c[0] = rtb_Merge_h_dspri_c_idx_0; + rtb_Merge_g.dspli_c[1] = rtb_Merge_h_dspli_c_idx_1; + rtb_Merge_g.dspri_c[1] = rtb_Merge_h_dspri_c_idx_1; + rtb_Merge_g.dspli_c[2] = rtb_Merge_h_dspli_c_idx_2; + rtb_Merge_g.dspri_c[2] = rtb_Merge_h_dspri_c_idx_2; + for (i = 0; i < 5; i++) { + rtb_Merge_g.dsplo_c[i] = rtb_Merge_h_dsplo_c[i]; + rtb_Merge_g.dspro_c[i] = rtb_Merge_h_dspro_c[i]; } - /* End of Saturate: '/Saturation' */ + rtb_Merge_g.load_signal[0] = rtb_Merge_h_load_signal_idx_0; + rtb_Merge_g.load_signal[1] = rtb_Merge_h_load_signal_idx_1; + rtb_Merge_g.load_signal[2] = rtb_Merge_h_load_signal_idx_2; + rtb_Merge_g.use_mix = rtb_Merge_h_use_mix; + rtb_Merge_g.AFCS_LAT = rtb_Merge_h_AFCS_LAT; + rtb_Merge_g.AFCS_VERT = rtb_Merge_h_AFCS_VERT; + rtb_Merge_g.CSAS_pitch = rtb_Merge_h_CSAS_pitch; + rtb_Merge_g.CSAS_roll = rtb_Merge_h_CSAS_roll; + rtb_Merge_g.CSAS_yaw = rtb_Merge_h_CSAS_yaw; + rtb_Merge_g.AT = rtb_Merge_h_AT; + rtb_Merge_g.level1_lgx = rtb_Merge_h_level1_lgx; + rtb_Merge_g.level2_lgx = rtb_Merge_h_level2_lgx; + rtb_Merge_g.level3_lgx = rtb_Merge_h_level3_lgx; + rtb_Merge_g.level3_auto_lgx = rtb_Merge_h_level3_auto_lgx; + rtb_Merge_g.level4_lgx = rtb_Merge_h_level4_lgx; + rtb_Merge_g.level5_lgx = rtb_Merge_h_level5_lgx; + rtb_Merge_g.mode = rtb_Merge_h_mode; + rtb_Merge_g.traj.lat1 = rtb_Merge_h_traj_lat1; + rtb_Merge_g.traj.lon1 = rtb_Merge_h_traj_lon1; + rtb_Merge_g.traj.h1 = rtb_Merge_h_traj_h1; + rtb_Merge_g.traj.azimuth = rtb_Merge_h_traj_azimuth; + rtb_Merge_g.traj.elevation_baseline = + rtb_Merge_h_traj_elevation_baseline; + rtb_Merge_g.traj.radius = rtb_Merge_h_traj_radius; + rtb_Merge_g.traj.heading = rtb_Merge_h_traj_heading; + rtb_Merge_g.traj.elevation_baseline2 = + rtb_Merge_h_traj_elevation_baseline2; + rtb_Merge_g.traj.mode = rtb_Merge_h_traj_mode; + rtb_Merge_g.traj.vn_c = rtb_Merge_h_traj_vn_c; + rtb_Merge_g.traj.ve_c = rtb_Merge_h_traj_ve_c; + rtb_Merge_g.traj.hdot_c = rtb_Merge_h_traj_hdot_c; + rtb_Merge_g.use_mission_traj = rtb_Merge_h_use_mission_traj; + rtb_Merge_g.rc.pitch_cmd = rtb_Merge_h_rc_pitch_cmd; + rtb_Merge_g.rc.roll_cmd = rtb_Merge_h_rc_roll_cmd; + rtb_Merge_g.rc.yaw_cmd = rtb_Merge_h_rc_yaw_cmd; + rtb_Merge_g.rc.throttle_cmd = rtb_Merge_h_rc_throttle_cmd; + for (i = 0; i < 18; i++) { + rtb_Merge_g.rc.chan_raw[i] = rtb_Merge_h_rc_chan_raw[i]; + } + + rtb_Merge_g.rc.auto_mode = rtb_Merge_h_rc_auto_mode; + rtb_Merge_g.rc.aux_mode = rtb_Merge_h_rc_aux_mode; + rtb_Merge_g.rc.id = rtb_Merge_h_rc_id; + rtb_Merge_g.rc.seq = rtb_Merge_h_rc_seq; + rtb_Merge_g.rc.brake = rtb_Merge_h_rc_brake; + rtb_Merge_g.rc.gear_up = rtb_Merge_h_rc_gear_up; + rtb_Merge_g.rc.connected = rtb_Merge_h_rc_connected; + rtb_Merge_g.boot_time = rtb_Merge_h_boot_time; + rtb_Merge_g.armed = false; + rtb_Merge_g.state = rtb_Merge_h_state; + rtb_Merge_g.vtol_state = rtb_Merge_h_vtol_state; + rtb_Merge_g.landed_state = rtb_Merge_h_landed_state; + rtb_Merge_g.linked = rtb_Merge_h_linked; + rtb_Merge_g.WP_cur = rtb_Merge_h_WP_cur; + rtb_Merge_g.base_asl = rtb_Merge_h_base_asl; + rtb_Merge_g.base_asl_baro = rtb_Merge_h_base_asl_baro; + rtb_Merge_g.standby_cmd = rtb_Merge_h_standby_cmd; + rtb_Merge_g.xbit_cmd = rtb_Merge_h_xbit_cmd; + rtb_Merge_g.autocont = rtb_Merge_h_autocont; + rtb_Merge_g.dist_offset_addins = rtb_Merge_h_dist_offset_addins; + rtb_Merge_g.horiz_offset_addins = rtb_Merge_h_horiz_offset_addins; + rtb_Merge_g.vert_offset_addins = rtb_Merge_h_vert_offset_addins; + rtb_Merge_g.home.lat1 = rtb_Merge_h_home_lat1; + rtb_Merge_g.home.lon1 = rtb_Merge_h_home_lon1; + rtb_Merge_g.home.h1 = rtb_Merge_h_home_h1; + rtb_Merge_g.home.azimuth = rtb_Merge_h_home_azimuth; + rtb_Merge_g.home.elevation_baseline = + rtb_Merge_h_home_elevation_baseline; + rtb_Merge_g.home.radius = rtb_Merge_h_home_radius; + rtb_Merge_g.home.heading = rtb_Merge_h_home_heading; + rtb_Merge_g.home.elevation_baseline2 = + rtb_Merge_h_home_elevation_baseline2; + rtb_Merge_g.home.mode = rtb_Merge_h_home_mode; + rtb_Merge_g.home.vn_c = rtb_Merge_h_home_vn_c; + rtb_Merge_g.home.ve_c = rtb_Merge_h_home_ve_c; + rtb_Merge_g.home.hdot_c = rtb_Merge_h_home_hdot_c; + rtb_Merge_g.q_c = rtb_Merge_h_q_c; + rtb_Merge_g.p_c = rtb_Merge_h_p_c; + rtb_Merge_g.r_c = rtb_Merge_h_r_c; + rtb_Merge_g.tht_c = rtb_Merge_h_tht_c; + rtb_Merge_g.phi_c = rtb_Merge_h_phi_c; + rtb_Merge_g.psidot_c = rtb_Merge_h_psidot_c; + rtb_Merge_g.hdot_c = rtb_Merge_h_hdot_c; + rtb_Merge_g.gamma_c = rtb_Merge_h_gamma_c; + rtb_Merge_g.h_c = rtb_Merge_h_h_c; + rtb_Merge_g.as_c = rtb_Merge_h_as_c; + rtb_Merge_g.gs_c = rtb_Merge_h_gs_c; + rtb_Merge_g.takeoff_tht = rtb_Merge_h_takeoff_tht; + rtb_Merge_g.dist_trans = rtb_Merge_h_dist_trans; + rtb_Merge_g.AS_SEL = rtb_Merge_h_AS_SEL; + rtb_Merge_g.aspd_error = rtb_Merge_h_aspd_error; + rtb_Merge_g.enable_rc = rtb_Merge_h_enable_rc; + rtb_Merge_g.max_de = rtb_Merge_h_max_de; + rtb_Merge_g.min_de = rtb_Merge_h_min_de; + rtb_Merge_g.max_da = rtb_Merge_h_max_da; + rtb_Merge_g.max_dr = rtb_Merge_h_max_dr; + rtb_Merge_g.enable_rec = rtb_Merge_h_enable_rec; + rtb_Merge_g.do_jump_cnt = rtb_Merge_h_do_jump_cnt; + rtb_Merge_g.max_df = rtb_Merge_h_max_df; + rtb_Merge_g.max_dsp = rtb_Merge_h_max_dsp; + rtb_Merge_g.min_dsp = rtb_Merge_h_min_dsp; + rtb_Merge_g.takeoff_cmd = rtb_Merge_h_takeoff_cmd; + rtb_Merge_g.landing_cmd = rtb_Merge_h_landing_cmd; + rtb_Merge_g.abort_takeoff_cmd = rtb_Merge_h_abort_takeoff_cmd; + rtb_Merge_g.landing_abort_alt = rtb_Merge_h_landing_abort_alt; + rtb_Merge_g.flap_lever = rtb_Merge_h_flap_lever; + rtb_Merge_g.maneuver_cmd = rtb_Merge_h_maneuver_cmd; + for (i = 0; i < 6; i++) { + rtb_Merge_g.maneuver_params[i] = rtb_Merge_h_maneuver_params[i]; + } + + rtb_Merge_g.use_da2dsp = rtb_Merge_h_use_da2dsp; + rtb_Merge_g.de_stimulus = rtb_Merge_h_de_stimulus; + rtb_Merge_g.da_stimulus = rtb_Merge_h_da_stimulus; + rtb_Merge_g.dr_stimulus = rtb_Merge_h_dr_stimulus; + rtb_Merge_g.dh_stimulus = rtb_Merge_h_dh_stimulus; + rtb_Merge_g.ay_c = rtb_Merge_h_ay_c; + rtb_Merge_g.mass_est = rtb_Merge_h_mass_est; + rtb_Merge_g.Switch_ControlLaw = rtb_Merge_h_Switch_ControlLaw; + rtb_Merge_g.comac_ResetControlLaw = rtb_Merge_h_comac_ResetControlLaw; + rtb_Merge_g.comac_Arm_RUDTrimPanel = rtb_Merge_h_comac_Arm_RUDTrimPanel; + rtb_Merge_g.comac_NoseLeft_RUDTrimPanel = + rtb_Merge_h_comac_NoseLeft_RUDTrimPanel; + rtb_Merge_g.comac_NoseRight_RUDTrimPanel = + rtb_Merge_h_comac_NoseRight_RUDTrimPanel; + rtb_Merge_g.comac_Reset_RUDTrimPanel = + rtb_Merge_h_comac_Reset_RUDTrimPanel; + rtb_Merge_g.comac_PrioritySwitchCP = rtb_Merge_h_comac_PrioritySwitchCP; + rtb_Merge_g.comac_PrioritySwitchFO = rtb_Merge_h_comac_PrioritySwitchFO; + rtb_Merge_g.comac_InhibitAlphaPROT_Test = + rtb_Merge_h_comac_InhibitAlphaPROT_Test; + rtb_Merge_g.comac_RudTrimEnable_NM_Test = + rtb_Merge_h_comac_RudTrimEnable_NM_Test; + rtb_Merge_g.comac_InhibitMLA_Test = rtb_Merge_h_comac_InhibitMLA_Test; + rtb_Merge_g.comac_AP_Engage = rtb_Merge_h_comac_AP_Engage; + rtb_Merge_g.comac_AT_Engage = rtb_Merge_h_comac_AT_Engage; + rtb_Merge_g.comac_FPA_CMD = rtb_Merge_h_comac_FPA_CMD; + rtb_Merge_g.comac_HDG_CMD = rtb_Merge_h_comac_HDG_CMD; + rtb_Merge_g.comac_ALT_CMD = rtb_Merge_h_comac_ALT_CMD; + + /* Saturate: '/Saturation' */ + if (rtb_Divide2_i > -0.07F) { + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_g.throttle_c = -0.07F; + } else if (rtb_Divide2_i < -0.25F) { + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_g.throttle_c = -0.25F; + } else { + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_g.throttle_c = rtb_Divide2_i; + } + + /* End of Saturate: '/Saturation' */ /* End of Outputs for SubSystem: '/disarmed' */ } /* End of If: '/If' */ - /* If: '/If' incorporates: - * Inport: '/In1' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Lookup_n-D: '/1-D Lookup Table' + * Product: '/Product' + * Sum: '/add' */ - cr929_SIL_DW.If_ActiveSubsystem_l = (int8_T)!rtb_Merge_h_use_mix; + rtb_Merge_g.mass_est -= 0.006124F * look1_iflf_binlcpw + (rtb_Merge_g.throttle_c, cr929_SIL_P.thr_lst, cr929_SIL_P.Cf_lst, 11U); + + /* If: '/If' incorporates: + * Inport: '/In1' + */ + cr929_SIL_DW.If_ActiveSubsystem_l = (int8_T)!rtb_Merge_g.use_mix; switch (cr929_SIL_DW.If_ActiveSubsystem_l) { case 0: - /* Outputs for IfAction SubSystem: '/use_mix' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/use_mix' incorporates: + * ActionPort: '/Action Port' */ - /* Sum: '/add2' */ - rtb_Switch2_pl = rtb_uDLookupTable10 + rtb_Merge_h_da_stimulus; + /* Sum: '/add2' */ + rtb_add2 = rtb_Merge_g.da_c + rtb_Merge_g.da_stimulus; - /* If: '/If' */ - if (rtb_Merge_h_use_da2dsp) { - /* Outputs for IfAction SubSystem: '/use' incorporates: - * ActionPort: '/Action Port' + /* If: '/If' */ + if (rtb_Merge_g.use_da2dsp) { + /* Outputs for IfAction SubSystem: '/use' incorporates: + * ActionPort: '/Action Port' */ - /* Gain: '/Gain' */ - rtb_Delay_h = 57.2957802F * rtb_Switch2_pl; + /* Gain: '/Gain' */ + rtb_Delay_h = 57.2957802F * rtb_add2; - /* Lookup_n-D: '/da2dal_deg' */ + /* Lookup_n-D: '/da2dal_deg' */ rtb_Sum4_m = look1_iflf_pbinlcapw(rtb_Delay_h, cr929_SIL_P.da_list, cr929_SIL_P.dal_list, &cr929_SIL_DW.m_bpIndex_ih, 14U); - /* Gain: '/Gain1' */ - rtb_Switch2_ki = 0.0174532924F * rtb_Sum4_m; + /* Gain: '/Gain1' */ + rtb_da2dal_deg = 0.0174532924F * rtb_Sum4_m; - /* Lookup_n-D: '/da2dspr6_deg' */ + /* Lookup_n-D: '/da2dspr6_deg' */ rtb_Sum4_m = look1_iflf_pbinlcapw(rtb_Delay_h, cr929_SIL_P.da_list, cr929_SIL_P.dspr6_list, &cr929_SIL_DW.m_bpIndex_ok, 14U); - /* Gain: '/Gain1' */ - rtb_Gain2_ew = 0.0174532924F * rtb_Sum4_m; + /* Gain: '/Gain1' */ + rtb_Sum7_f = 0.0174532924F * rtb_Sum4_m; - /* Lookup_n-D: '/da2dspr7_deg' */ + /* Lookup_n-D: '/da2dspr7_deg' */ rtb_Sum4_m = look1_iflf_pbinlcapw(rtb_Delay_h, cr929_SIL_P.da_list, cr929_SIL_P.dspr7_list, &cr929_SIL_DW.m_bpIndex_bv, 14U); - /* Gain: '/Gain1' */ - rtb_Divide_e = 0.0174532924F * rtb_Sum4_m; + /* Gain: '/Gain1' */ + rtb_Sum5_hx = 0.0174532924F * rtb_Sum4_m; - /* Lookup_n-D: '/da2dspr8_deg' */ + /* Lookup_n-D: '/da2dspr8_deg' */ rtb_Sum4_m = look1_iflf_pbinlcapw(rtb_Delay_h, cr929_SIL_P.da_list, cr929_SIL_P.dspr8_list, &cr929_SIL_DW.m_bpIndex_br, 14U); - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ rtb_Delay_ip = 0.0174532924F * rtb_Sum4_m; - /* Lookup_n-D: '/da2dar_deg' */ + /* Lookup_n-D: '/da2dar_deg' */ rtb_Sum4_m = look1_iflf_pbinlcapw(rtb_Delay_h, cr929_SIL_P.da_list, cr929_SIL_P.dar_list, &cr929_SIL_DW.m_bpIndex_h, 14U); - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ rtb_Merge11 = 0.0174532924F * rtb_Sum4_m; - /* Lookup_n-D: '/da2dspl4_deg' */ + /* Lookup_n-D: '/da2dspl4_deg' */ rtb_Sum4_m = look1_iflf_pbinlcapw(rtb_Delay_h, cr929_SIL_P.da_list, cr929_SIL_P.dspl4_list, &cr929_SIL_DW.m_bpIndex_fx, 14U); - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ rtb_add1 = 0.0174532924F * rtb_Sum4_m; - /* Lookup_n-D: '/da2dspl5_deg' */ + /* Lookup_n-D: '/da2dspl5_deg' */ rtb_Sum4_m = look1_iflf_pbinlcapw(rtb_Delay_h, cr929_SIL_P.da_list, cr929_SIL_P.dspl5_list, &cr929_SIL_DW.m_bpIndex_i3, 14U); - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ rtb_Delay_n = 0.0174532924F * rtb_Sum4_m; - /* Lookup_n-D: '/da2dspl6_deg' */ + /* Lookup_n-D: '/da2dspl6_deg' */ rtb_Sum4_m = look1_iflf_pbinlcapw(rtb_Delay_h, cr929_SIL_P.da_list, cr929_SIL_P.dspl6_list, &cr929_SIL_DW.m_bpIndex_e5, 14U); - /* Gain: '/Gain1' */ - rtb_Switch_gmk = 0.0174532924F * rtb_Sum4_m; + /* Gain: '/Gain1' */ + rtb_da2dar_deg = 0.0174532924F * rtb_Sum4_m; - /* Lookup_n-D: '/da2dspl7_deg' */ + /* Lookup_n-D: '/da2dspl7_deg' */ rtb_Sum4_m = look1_iflf_pbinlcapw(rtb_Delay_h, cr929_SIL_P.da_list, cr929_SIL_P.dspl7_list, &cr929_SIL_DW.m_bpIndex_di, 14U); - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ rtb_Delay_k = 0.0174532924F * rtb_Sum4_m; - /* Lookup_n-D: '/da2dspl8_deg' */ + /* Lookup_n-D: '/da2dspl8_deg' */ rtb_Sum4_m = look1_iflf_pbinlcapw(rtb_Delay_h, cr929_SIL_P.da_list, cr929_SIL_P.dspl8_list, &cr929_SIL_DW.m_bpIndex_eg, 14U); - /* Gain: '/Gain1' */ - rtb_uDLookupTable11 = 0.0174532924F * rtb_Sum4_m; + /* Gain: '/Gain1' */ + rtb_add_k = 0.0174532924F * rtb_Sum4_m; - /* Lookup_n-D: '/da2dspr4_deg' */ + /* Lookup_n-D: '/da2dspr4_deg' */ rtb_Sum4_m = look1_iflf_pbinlcapw(rtb_Delay_h, cr929_SIL_P.da_list, cr929_SIL_P.dspr4_list, &cr929_SIL_DW.m_bpIndex_na, 14U); - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ rtb_Sum4_m *= 0.0174532924F; - /* Lookup_n-D: '/da2dspr5_deg' */ + /* Lookup_n-D: '/da2dspr5_deg' */ rtb_Delay_h = look1_iflf_pbinlcapw(rtb_Delay_h, cr929_SIL_P.da_list, cr929_SIL_P.dspr5_list, &cr929_SIL_DW.m_bpIndex_bx, 14U); - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ rtb_Delay_h *= 0.0174532924F; - /* End of Outputs for SubSystem: '/use' */ + /* End of Outputs for SubSystem: '/use' */ } else { - /* Outputs for IfAction SubSystem: '/no_use' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/no_use' incorporates: + * ActionPort: '/Action Port' */ - /* Gain: '/Gain' */ - rtb_Switch_gmk = 57.2957802F * rtb_Switch2_pl; + /* Gain: '/Gain' */ + rtb_da2dar_deg = 57.2957802F * rtb_add2; - /* Lookup_n-D: '/da2dal_deg' */ - rtb_Switch2_ki = look1_iflf_pbinlcapw(rtb_Switch_gmk, + /* Lookup_n-D: '/da2dal_deg' */ + rtb_da2dal_deg = look1_iflf_pbinlcapw(rtb_da2dar_deg, cr929_SIL_P.da_list_unmix, cr929_SIL_P.dal_list_unmix, &cr929_SIL_DW.m_bpIndex_f4, 2U); - /* Gain: '/Gain1' */ - rtb_Switch2_ki *= 0.0174532924F; + /* Gain: '/Gain1' */ + rtb_da2dal_deg *= 0.0174532924F; - /* Lookup_n-D: '/da2dar_deg' */ - rtb_Switch_gmk = look1_iflf_pbinlcapw(rtb_Switch_gmk, + /* Lookup_n-D: '/da2dar_deg' */ + rtb_da2dar_deg = look1_iflf_pbinlcapw(rtb_da2dar_deg, cr929_SIL_P.da_list_unmix, cr929_SIL_P.dar_list_unmix, &cr929_SIL_DW.m_bpIndex_gym, 2U); - /* Gain: '/Gain1' */ - rtb_Merge11 = 0.0174532924F * rtb_Switch_gmk; + /* Gain: '/Gain1' */ + rtb_Merge11 = 0.0174532924F * rtb_da2dar_deg; - /* SignalConversion: '/OutportBufferFordspl4_c' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBufferFordspl4_c' incorporates: + * Constant: '/Constant' */ rtb_add1 = 0.0F; - /* SignalConversion: '/OutportBufferFordspl5_c' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBufferFordspl5_c' incorporates: + * Constant: '/Constant' */ rtb_Delay_n = 0.0F; - /* SignalConversion: '/OutportBufferFordspl6_c' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBufferFordspl6_c' incorporates: + * Constant: '/Constant' */ - rtb_Switch_gmk = 0.0F; + rtb_da2dar_deg = 0.0F; - /* SignalConversion: '/OutportBufferFordspl7_c' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBufferFordspl7_c' incorporates: + * Constant: '/Constant' */ rtb_Delay_k = 0.0F; - /* SignalConversion: '/OutportBufferFordspl8_c' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBufferFordspl8_c' incorporates: + * Constant: '/Constant' */ - rtb_uDLookupTable11 = 0.0F; + rtb_add_k = 0.0F; - /* SignalConversion: '/OutportBufferFordspr4_c' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBufferFordspr4_c' incorporates: + * Constant: '/Constant' */ rtb_Sum4_m = 0.0F; - /* SignalConversion: '/OutportBufferFordspr5_c' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBufferFordspr5_c' incorporates: + * Constant: '/Constant' */ rtb_Delay_h = 0.0F; - /* SignalConversion: '/OutportBufferFordspr6_c' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBufferFordspr6_c' incorporates: + * Constant: '/Constant' */ - rtb_Gain2_ew = 0.0F; + rtb_Sum7_f = 0.0F; - /* SignalConversion: '/OutportBufferFordspr7_c' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBufferFordspr7_c' incorporates: + * Constant: '/Constant' */ - rtb_Divide_e = 0.0F; + rtb_Sum5_hx = 0.0F; - /* SignalConversion: '/OutportBufferFordspr8_c' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBufferFordspr8_c' incorporates: + * Constant: '/Constant' */ rtb_Delay_ip = 0.0F; - /* End of Outputs for SubSystem: '/no_use' */ + /* End of Outputs for SubSystem: '/no_use' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ - /* Chart: '/pos_sel' incorporates: - * Constant: '/Constant5' + /* Chart: '/pos_sel' incorporates: + * Constant: '/Constant5' */ - if (cr929_SIL_DW.temporalCounter_i1_f < MAX_uint32_T) { - cr929_SIL_DW.temporalCounter_i1_f++; + if (cr929_SIL_DW.temporalCounter_i1_l < MAX_uint32_T) { + cr929_SIL_DW.temporalCounter_i1_l++; } if (cr929_SIL_DW.is_active_c25_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c25_cr929_autopilot = 1U; cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos3; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_flap = 0.523560226F; cr929_SIL_B.outer_flap = 0.572774887F; cr929_SIL_B.inner_spoiler = 0.139616057F; @@ -28616,19 +28545,19 @@ void cr929_SIL_step(void) } else { switch (cr929_SIL_DW.is_c25_cr929_autopilot) { case cr929_SIL_IN_Pos1: - if ((cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && - (rtb_Merge_h_flap_lever == 0)) { + (rtb_Merge_g.flap_lever == 0)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_spoiler0; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_spoiler = 0.0F; cr929_SIL_B.outer_spoiler = 0.0F; } else { - if ((cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && - (rtb_Merge_h_flap_lever >= 2)) { + (rtb_Merge_g.flap_lever >= 2)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_flap2; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_flap = 0.383944154F; cr929_SIL_B.outer_flap = 0.420069814F; } @@ -28636,19 +28565,19 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_Pos2: - if ((cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && - (rtb_Merge_h_flap_lever <= 1)) { + (rtb_Merge_g.flap_lever <= 1)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_spoiler1; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_spoiler = 0.0698080286F; cr929_SIL_B.outer_spoiler = 0.0767888278F; } else { - if ((cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && - (rtb_Merge_h_flap_lever >= 3)) { + (rtb_Merge_g.flap_lever >= 3)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_flap3; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_flap = 0.523560226F; cr929_SIL_B.outer_flap = 0.572774887F; } @@ -28656,19 +28585,19 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_Pos3: - if ((cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && - (rtb_Merge_h_flap_lever <= 2)) { + (rtb_Merge_g.flap_lever <= 2)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_spoiler2; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_spoiler = 0.122164048F; cr929_SIL_B.outer_spoiler = 0.13438046F; } else { - if ((cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && - (rtb_Merge_h_flap_lever >= 4)) { + (rtb_Merge_g.flap_lever >= 4)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_flap4; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_flap = 0.698080301F; cr929_SIL_B.outer_flap = 0.76369983F; } @@ -28676,21 +28605,21 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_Pos6: - if ((cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && - (rtb_Merge_h_flap_lever <= 3)) { + (rtb_Merge_g.flap_lever <= 3)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_spoiler3; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_spoiler = 0.139616057F; cr929_SIL_B.outer_spoiler = 0.153577656F; } break; case cr929_SIL_IN_flap1: - if (cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos1; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_flap = 0.226876095F; cr929_SIL_B.outer_flap = 0.248167545F; cr929_SIL_B.inner_spoiler = 0.0698080286F; @@ -28699,10 +28628,10 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_flap2: - if (cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos2; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_flap = 0.383944154F; cr929_SIL_B.outer_flap = 0.420069814F; cr929_SIL_B.inner_spoiler = 0.122164048F; @@ -28711,10 +28640,10 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_flap3: - if (cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos3; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_flap = 0.523560226F; cr929_SIL_B.outer_flap = 0.572774887F; cr929_SIL_B.inner_spoiler = 0.139616057F; @@ -28723,10 +28652,10 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_flap4: - if (cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos6; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_flap = 0.698080301F; cr929_SIL_B.outer_flap = 0.76369983F; cr929_SIL_B.inner_spoiler = 0.191972077F; @@ -28735,21 +28664,21 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_pos0: - if ((cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && - (rtb_Merge_h_flap_lever >= 1)) { + (rtb_Merge_g.flap_lever >= 1)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_flap1; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_flap = 0.226876095F; cr929_SIL_B.outer_flap = 0.248167545F; } break; case cr929_SIL_IN_spoiler0: - if (cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_pos0; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_spoiler = 0.0F; cr929_SIL_B.outer_spoiler = 0.0F; cr929_SIL_B.inner_flap = 0.0F; @@ -28758,10 +28687,10 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_spoiler1: - if (cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos1; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_flap = 0.226876095F; cr929_SIL_B.outer_flap = 0.248167545F; cr929_SIL_B.inner_spoiler = 0.0698080286F; @@ -28770,10 +28699,10 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_spoiler2: - if (cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos2; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_flap = 0.383944154F; cr929_SIL_B.outer_flap = 0.420069814F; cr929_SIL_B.inner_spoiler = 0.122164048F; @@ -28782,10 +28711,10 @@ void cr929_SIL_step(void) break; default: - if (cr929_SIL_DW.temporalCounter_i1_f >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_l >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos3; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_B.inner_flap = 0.523560226F; cr929_SIL_B.outer_flap = 0.572774887F; cr929_SIL_B.inner_spoiler = 0.139616057F; @@ -28795,382 +28724,270 @@ void cr929_SIL_step(void) } } - /* End of Chart: '/pos_sel' */ + /* End of Chart: '/pos_sel' */ - /* Delay: '/Delay' */ + /* Delay: '/Delay' */ if (cr929_SIL_DW.icLoad_d != 0) { - cr929_SIL_DW.Delay_DSTATE = cr929_SIL_B.outer_spoiler; + cr929_SIL_DW.Delay_DSTATE_kb = cr929_SIL_B.outer_spoiler; } - /* Sum: '/Sum2' incorporates: - * Delay: '/Delay' + /* Sum: '/Sum2' incorporates: + * Delay: '/Delay' */ - rtb_Sum2_h[0] = (rtb_uDLookupTable8 + rtb_add1) + - cr929_SIL_DW.Delay_DSTATE; - rtb_Sum2_h[1] = (rtb_uDLookupTable8 + rtb_Delay_n) + - cr929_SIL_DW.Delay_DSTATE; - rtb_Sum2_h[2] = (rtb_uDLookupTable8 + rtb_Switch_gmk) + - cr929_SIL_DW.Delay_DSTATE; - rtb_Sum2_h[3] = (rtb_uDLookupTable8 + rtb_Delay_k) + - cr929_SIL_DW.Delay_DSTATE; - rtb_Sum2_h[4] = (rtb_uDLookupTable8 + rtb_uDLookupTable11) + - cr929_SIL_DW.Delay_DSTATE; + rtb_Sum2_h[0] = (rtb_Merge_g.dsp_c + rtb_add1) + + cr929_SIL_DW.Delay_DSTATE_kb; + rtb_Sum2_h[1] = (rtb_Merge_g.dsp_c + rtb_Delay_n) + + cr929_SIL_DW.Delay_DSTATE_kb; + rtb_Sum2_h[2] = (rtb_Merge_g.dsp_c + rtb_da2dar_deg) + + cr929_SIL_DW.Delay_DSTATE_kb; + rtb_Sum2_h[3] = (rtb_Merge_g.dsp_c + rtb_Delay_k) + + cr929_SIL_DW.Delay_DSTATE_kb; + rtb_Sum2_h[4] = (rtb_Merge_g.dsp_c + rtb_add_k) + + cr929_SIL_DW.Delay_DSTATE_kb; - /* Sum: '/add' */ - rtb_uDLookupTable11 = rtb_Gain_cv + rtb_Merge_h_de_stimulus; + /* Sum: '/add' */ + rtb_add_k = rtb_Merge_g.de_c + rtb_Merge_g.de_stimulus; - /* Delay: '/Delay' */ - if (cr929_SIL_DW.icLoad_b != 0) { + /* Delay: '/Delay' */ + if (cr929_SIL_DW.icLoad_bg != 0) { cr929_SIL_DW.Delay_DSTATE_l = cr929_SIL_B.inner_spoiler; } - /* Sum: '/Sum3' incorporates: - * Delay: '/Delay' + /* Sum: '/Sum3' incorporates: + * Delay: '/Delay' */ - rtb_Sum3_e[0] = (rtb_uDLookupTable8 + rtb_Sum4_m) + - cr929_SIL_DW.Delay_DSTATE; - rtb_Sum3_e[1] = (rtb_uDLookupTable8 + rtb_Delay_h) + - cr929_SIL_DW.Delay_DSTATE; - rtb_Sum3_e[2] = (rtb_uDLookupTable8 + rtb_Gain2_ew) + - cr929_SIL_DW.Delay_DSTATE; - rtb_Sum3_e[3] = (rtb_uDLookupTable8 + rtb_Divide_e) + - cr929_SIL_DW.Delay_DSTATE; - rtb_Sum3_e[4] = (rtb_uDLookupTable8 + rtb_Delay_ip) + - cr929_SIL_DW.Delay_DSTATE; + rtb_Sum3_e[0] = (rtb_Merge_g.dsp_c + rtb_Sum4_m) + + cr929_SIL_DW.Delay_DSTATE_kb; + rtb_Sum3_e[1] = (rtb_Merge_g.dsp_c + rtb_Delay_h) + + cr929_SIL_DW.Delay_DSTATE_kb; + rtb_Sum3_e[2] = (rtb_Merge_g.dsp_c + rtb_Sum7_f) + + cr929_SIL_DW.Delay_DSTATE_kb; + rtb_Sum3_e[3] = (rtb_Merge_g.dsp_c + rtb_Sum5_hx) + + cr929_SIL_DW.Delay_DSTATE_kb; + rtb_Sum3_e[4] = (rtb_Merge_g.dsp_c + rtb_Delay_ip) + + cr929_SIL_DW.Delay_DSTATE_kb; - /* Delay: '/Delay' */ + /* Delay: '/Delay' */ if (cr929_SIL_DW.icLoad_e != 0) { cr929_SIL_DW.Delay_DSTATE_i = cr929_SIL_B.inner_flap; } - /* Gain: '/Gain1' incorporates: - * Constant: '/Constant6' + /* Gain: '/Gain1' incorporates: + * Constant: '/Constant6' */ - rtb_Divide_e = 0.0174532924F * cr929_SIL_P.ddf_c; + rtb_Sum5_hx = 0.0174532924F * cr929_SIL_P.ddf_c; - /* Sum: '/Sum7' incorporates: - * Delay: '/Delay' + /* Sum: '/Sum7' incorporates: + * Delay: '/Delay' */ - rtb_Gain2_ew = cr929_SIL_DW.Delay_DSTATE_i - rtb_Divide_e; + rtb_Sum7_f = cr929_SIL_DW.Delay_DSTATE_i - rtb_Sum5_hx; - /* Delay: '/Delay' */ + /* Delay: '/Delay' */ if (cr929_SIL_DW.icLoad_j != 0) { cr929_SIL_DW.Delay_DSTATE_f = cr929_SIL_B.outer_flap; } - /* Sum: '/Sum4' incorporates: - * Delay: '/Delay' + /* Sum: '/Sum4' incorporates: + * Delay: '/Delay' */ - rtb_Sum4_m = cr929_SIL_DW.Delay_DSTATE_f - rtb_Divide_e; + rtb_Sum4_m = cr929_SIL_DW.Delay_DSTATE_f - rtb_Sum5_hx; - /* Sum: '/Sum6' incorporates: - * Delay: '/Delay' + /* Sum: '/Sum6' incorporates: + * Delay: '/Delay' */ - rtb_Switch_gmk = cr929_SIL_DW.Delay_DSTATE_i + rtb_Divide_e; + rtb_da2dar_deg = cr929_SIL_DW.Delay_DSTATE_i + rtb_Sum5_hx; - /* Sum: '/Sum5' incorporates: - * Delay: '/Delay' + /* Sum: '/Sum5' incorporates: + * Delay: '/Delay' */ - rtb_Divide_e += cr929_SIL_DW.Delay_DSTATE_f; + rtb_Sum5_hx += cr929_SIL_DW.Delay_DSTATE_f; - /* Sum: '/add3' */ - rtb_add1 = rtb_uDLookupTable12 + rtb_Merge_h_dh_stimulus; + /* Sum: '/add3' */ + rtb_add1 = rtb_Merge_g.dh_c + rtb_Merge_g.dh_stimulus; - /* Delay: '/Delay' */ + /* Delay: '/Delay' */ if (cr929_SIL_DW.icLoad_ed != 0) { cr929_SIL_DW.Delay_DSTATE_j = rtb_add1; } - /* BusAssignment: '/Bus Assignment1' incorporates: - * SignalConversion: '/TmpHiddenBufferAtBus Assignment1Inport1' + /* BusAssignment: '/Bus Assignment1' incorporates: + * SignalConversion: '/TmpHiddenBufferAtBus Assignment1Inport1' */ - cr929_SIL_B.Merge_i.gear_up = rtb_out_h2; - cr929_SIL_B.Merge_i.switch_video = rtb_Merge_h_switch_video; - cr929_SIL_B.Merge_i.steer_c = rtb_subtract1_d; - cr929_SIL_B.Merge_i.de_c = rtb_Gain_cv; - cr929_SIL_B.Merge_i.dh_c = rtb_uDLookupTable12; - cr929_SIL_B.Merge_i.da_c = rtb_uDLookupTable10; - cr929_SIL_B.Merge_i.throttle_c = rtb_Divide2_i; - cr929_SIL_B.Merge_i.df_c = rtb_uDLookupTable9; - cr929_SIL_B.Merge_i.dsp_c = rtb_uDLookupTable8; - cr929_SIL_B.Merge_i.dr_c = rtb_uDLookupTable7; - cr929_SIL_B.Merge_i.thrl_c = rtb_uDLookupTable6; - cr929_SIL_B.Merge_i.thrr_c = rtb_uDLookupTable5; - cr929_SIL_B.Merge_i.brake_c = rtb_Merge_h_brake_c; - cr929_SIL_B.Merge_i.parachute_c = rtb_Merge_h_parachute_c; - cr929_SIL_B.Merge_i.anti_stall_parachute_c = - rtb_Merge_h_anti_stall_parachute_c; - cr929_SIL_B.Merge_i.dar_c = rtb_uDLookupTable4; - cr929_SIL_B.Merge_i.der_c = rtb_uDLookupTable3; - cr929_SIL_B.Merge_i.dhr_c = rtb_Merge_h_dhr_c; - cr929_SIL_B.Merge_i.dflio_c = rtb_Merge_h_dflio_c; - cr929_SIL_B.Merge_i.dflo_c = rtb_Merge_h_dflo_c; - cr929_SIL_B.Merge_i.dal_c = rtb_Merge_h_dal_c; - cr929_SIL_B.Merge_i.del_c = rtb_Merge_h_del_c; - cr929_SIL_B.Merge_i.dfrio_c = rtb_Merge_h_dfrio_c; - cr929_SIL_B.Merge_i.dfro_c = rtb_Merge_h_dfro_c; - cr929_SIL_B.Merge_i.dhl_c = rtb_Merge_h_dhl_c; - cr929_SIL_B.Merge_i.dflii_c = rtb_Merge_h_dflii_c; - cr929_SIL_B.Merge_i.dfrii_c = rtb_Merge_h_dfrii_c; - cr929_SIL_B.Merge_i.dflo2_c = rtb_Merge_h_dflo2_c; - cr929_SIL_B.Merge_i.dfro2_c = rtb_Merge_h_dfro2_c; - cr929_SIL_B.Merge_i.dspli_c[0] = rtb_Merge_h_dspli_c_idx_0; - cr929_SIL_B.Merge_i.dspri_c[0] = rtb_Merge_h_dspri_c_idx_0; - cr929_SIL_B.Merge_i.dspli_c[1] = rtb_Merge_h_dspli_c_idx_1; - cr929_SIL_B.Merge_i.dspri_c[1] = rtb_Merge_h_dspri_c_idx_1; - cr929_SIL_B.Merge_i.dspli_c[2] = rtb_Merge_h_dspli_c_idx_2; - cr929_SIL_B.Merge_i.dspri_c[2] = rtb_Merge_h_dspri_c_idx_2; - for (i = 0; i < 5; i++) { - cr929_SIL_B.Merge_i.dsplo_c[i] = rtb_Merge_h_dsplo_c[i]; - cr929_SIL_B.Merge_i.dspro_c[i] = rtb_Merge_h_dspro_c[i]; - } - - cr929_SIL_B.Merge_i.load_signal[0] = rtb_Merge_h_load_signal_idx_0; - cr929_SIL_B.Merge_i.load_signal[1] = rtb_Merge_h_load_signal_idx_1; - cr929_SIL_B.Merge_i.load_signal[2] = rtb_Merge_h_load_signal_idx_2; - cr929_SIL_B.Merge_i.use_mix = rtb_Merge_h_use_mix; - cr929_SIL_B.Merge_i.AFCS_LAT = rtb_Merge_h_AFCS_LAT; - cr929_SIL_B.Merge_i.AFCS_VERT = rtb_Merge_h_AFCS_VERT; - cr929_SIL_B.Merge_i.CSAS_pitch = rtb_Merge_h_CSAS_pitch; - cr929_SIL_B.Merge_i.CSAS_roll = rtb_Merge_h_CSAS_roll; - cr929_SIL_B.Merge_i.CSAS_yaw = rtb_Merge_h_CSAS_yaw; - cr929_SIL_B.Merge_i.AT = rtb_Merge_h_AT; - cr929_SIL_B.Merge_i.level1_lgx = rtb_Merge_h_level1_lgx; - cr929_SIL_B.Merge_i.level2_lgx = rtb_Merge_h_level2_lgx; - cr929_SIL_B.Merge_i.level3_lgx = rtb_Merge_h_level3_lgx; - cr929_SIL_B.Merge_i.level3_auto_lgx = rtb_Merge_h_level3_auto_lgx; - cr929_SIL_B.Merge_i.level4_lgx = rtb_Merge_h_level4_lgx; - cr929_SIL_B.Merge_i.level5_lgx = rtb_Merge_h_level5_lgx; - cr929_SIL_B.Merge_i.mode = rtb_Merge_h_mode; - cr929_SIL_B.Merge_i.traj.lat1 = rtb_Merge_h_traj_lat1; - cr929_SIL_B.Merge_i.traj.lon1 = rtb_Merge_h_traj_lon1; - cr929_SIL_B.Merge_i.traj.h1 = rtb_Merge_h_traj_h1; - cr929_SIL_B.Merge_i.traj.azimuth = rtb_Merge_h_traj_azimuth; - cr929_SIL_B.Merge_i.traj.elevation_baseline = - rtb_Merge_h_traj_elevation_baseline; - cr929_SIL_B.Merge_i.traj.radius = rtb_Merge_h_traj_radius; - cr929_SIL_B.Merge_i.traj.heading = rtb_Merge_h_traj_heading; - cr929_SIL_B.Merge_i.traj.elevation_baseline2 = - rtb_Merge_h_traj_elevation_baseline2; - cr929_SIL_B.Merge_i.traj.mode = rtb_Merge_h_traj_mode; - cr929_SIL_B.Merge_i.traj.vn_c = rtb_Merge_h_traj_vn_c; - cr929_SIL_B.Merge_i.traj.ve_c = rtb_Merge_h_traj_ve_c; - cr929_SIL_B.Merge_i.traj.hdot_c = rtb_Merge_h_traj_hdot_c; - cr929_SIL_B.Merge_i.use_mission_traj = rtb_Merge_h_use_mission_traj; - cr929_SIL_B.Merge_i.rc.pitch_cmd = rtb_Merge_h_rc_pitch_cmd; - cr929_SIL_B.Merge_i.rc.roll_cmd = rtb_Merge_h_rc_roll_cmd; - cr929_SIL_B.Merge_i.rc.yaw_cmd = rtb_Merge_h_rc_yaw_cmd; - cr929_SIL_B.Merge_i.rc.throttle_cmd = rtb_Merge_h_rc_throttle_cmd; - for (i = 0; i < 18; i++) { - cr929_SIL_B.Merge_i.rc.chan_raw[i] = rtb_Merge_h_rc_chan_raw[i]; - } - - cr929_SIL_B.Merge_i.rc.auto_mode = rtb_Merge_h_rc_auto_mode; - cr929_SIL_B.Merge_i.rc.aux_mode = rtb_Merge_h_rc_aux_mode; - cr929_SIL_B.Merge_i.rc.id = rtb_Merge_h_rc_id; - cr929_SIL_B.Merge_i.rc.seq = rtb_Merge_h_rc_seq; - cr929_SIL_B.Merge_i.rc.brake = rtb_Merge_h_rc_brake; - cr929_SIL_B.Merge_i.rc.gear_up = rtb_Merge_h_rc_gear_up; - cr929_SIL_B.Merge_i.rc.connected = rtb_Merge_h_rc_connected; - cr929_SIL_B.Merge_i.boot_time = rtb_Merge_h_boot_time; - cr929_SIL_B.Merge_i.armed = rtb_Merge_ay_gear_up; - cr929_SIL_B.Merge_i.state = rtb_Merge_h_state; - cr929_SIL_B.Merge_i.vtol_state = rtb_Merge_h_vtol_state; - cr929_SIL_B.Merge_i.landed_state = rtb_Merge_h_landed_state; - cr929_SIL_B.Merge_i.linked = rtb_Merge_h_linked; - cr929_SIL_B.Merge_i.WP_cur = rtb_Merge_h_WP_cur; - cr929_SIL_B.Merge_i.base_asl = rtb_Merge_h_base_asl; - cr929_SIL_B.Merge_i.base_asl_baro = rtb_Merge_h_base_asl_baro; - cr929_SIL_B.Merge_i.standby_cmd = rtb_Merge_h_standby_cmd; - cr929_SIL_B.Merge_i.xbit_cmd = rtb_Merge_h_xbit_cmd; - cr929_SIL_B.Merge_i.autocont = rtb_Merge_h_autocont; - cr929_SIL_B.Merge_i.dist_offset_addins = rtb_Merge_h_dist_offset_addins; - cr929_SIL_B.Merge_i.horiz_offset_addins = - rtb_Merge_h_horiz_offset_addins; - cr929_SIL_B.Merge_i.vert_offset_addins = rtb_Merge_h_vert_offset_addins; - cr929_SIL_B.Merge_i.home.lat1 = rtb_Merge_h_home_lat1; - cr929_SIL_B.Merge_i.home.lon1 = rtb_Merge_h_home_lon1; - cr929_SIL_B.Merge_i.home.h1 = rtb_Merge_h_home_h1; - cr929_SIL_B.Merge_i.home.azimuth = rtb_Merge_h_home_azimuth; - cr929_SIL_B.Merge_i.home.elevation_baseline = - rtb_Merge_h_home_elevation_baseline; - cr929_SIL_B.Merge_i.home.radius = rtb_Merge_h_home_radius; - cr929_SIL_B.Merge_i.home.heading = rtb_Merge_h_home_heading; - cr929_SIL_B.Merge_i.home.elevation_baseline2 = - rtb_Merge_h_home_elevation_baseline2; - cr929_SIL_B.Merge_i.home.mode = rtb_Merge_h_home_mode; - cr929_SIL_B.Merge_i.home.vn_c = rtb_Merge_h_home_vn_c; - cr929_SIL_B.Merge_i.home.ve_c = rtb_Merge_h_home_ve_c; - cr929_SIL_B.Merge_i.home.hdot_c = rtb_Merge_h_home_hdot_c; - cr929_SIL_B.Merge_i.q_c = rtb_Merge_h_q_c; - cr929_SIL_B.Merge_i.p_c = rtb_Merge_h_p_c; - cr929_SIL_B.Merge_i.r_c = rtb_Merge_h_r_c; - cr929_SIL_B.Merge_i.tht_c = rtb_Merge_h_tht_c; - cr929_SIL_B.Merge_i.phi_c = rtb_Merge_h_phi_c; - cr929_SIL_B.Merge_i.psidot_c = rtb_Merge_h_psidot_c; - cr929_SIL_B.Merge_i.hdot_c = rtb_Merge_h_hdot_c; - cr929_SIL_B.Merge_i.gamma_c = rtb_Merge_h_gamma_c; - cr929_SIL_B.Merge_i.h_c = rtb_Merge_h_h_c; - cr929_SIL_B.Merge_i.as_c = rtb_Merge_h_as_c; - cr929_SIL_B.Merge_i.gs_c = rtb_Merge_h_gs_c; - cr929_SIL_B.Merge_i.takeoff_tht = rtb_Merge_h_takeoff_tht; - cr929_SIL_B.Merge_i.dist_trans = rtb_Merge_h_dist_trans; - cr929_SIL_B.Merge_i.AS_SEL = rtb_Merge_h_AS_SEL; - cr929_SIL_B.Merge_i.aspd_error = rtb_Merge_h_aspd_error; - cr929_SIL_B.Merge_i.enable_rc = rtb_Merge_h_enable_rc; - cr929_SIL_B.Merge_i.max_de = rtb_Merge_h_max_de; - cr929_SIL_B.Merge_i.min_de = rtb_Merge_h_min_de; - cr929_SIL_B.Merge_i.max_da = rtb_Merge_h_max_da; - cr929_SIL_B.Merge_i.max_dr = rtb_Merge_h_max_dr; - cr929_SIL_B.Merge_i.enable_rec = rtb_Merge_h_enable_rec; - cr929_SIL_B.Merge_i.do_jump_cnt = rtb_Merge_h_do_jump_cnt; - cr929_SIL_B.Merge_i.max_df = rtb_Merge_h_max_df; - cr929_SIL_B.Merge_i.max_dsp = rtb_Merge_h_max_dsp; - cr929_SIL_B.Merge_i.min_dsp = rtb_Merge_h_min_dsp; - cr929_SIL_B.Merge_i.takeoff_cmd = rtb_Merge_h_takeoff_cmd; - cr929_SIL_B.Merge_i.landing_cmd = rtb_Merge_h_landing_cmd; - cr929_SIL_B.Merge_i.abort_takeoff_cmd = rtb_Merge_h_abort_takeoff_cmd; - cr929_SIL_B.Merge_i.landing_abort_alt = rtb_Merge_h_landing_abort_alt; - cr929_SIL_B.Merge_i.flap_lever = rtb_Merge_h_flap_lever; - cr929_SIL_B.Merge_i.maneuver_cmd = rtb_Merge_h_maneuver_cmd; - for (i = 0; i < 6; i++) { - cr929_SIL_B.Merge_i.maneuver_params[i] = rtb_Merge_h_maneuver_params[i]; - } - - cr929_SIL_B.Merge_i.use_da2dsp = rtb_Merge_h_use_da2dsp; - cr929_SIL_B.Merge_i.de_stimulus = rtb_Merge_h_de_stimulus; - cr929_SIL_B.Merge_i.da_stimulus = rtb_Merge_h_da_stimulus; - cr929_SIL_B.Merge_i.dr_stimulus = rtb_Merge_h_dr_stimulus; - cr929_SIL_B.Merge_i.dh_stimulus = rtb_Merge_h_dh_stimulus; - cr929_SIL_B.Merge_i.ay_c = rtb_Merge_h_ay_c; - cr929_SIL_B.Merge_i.Switch_ControlLaw = rtb_Merge_h_Switch_ControlLaw; - cr929_SIL_B.Merge_i.comac_ResetControlLaw = - rtb_Merge_h_comac_ResetControlLaw; - cr929_SIL_B.Merge_i.comac_Arm_RUDTrimPanel = - rtb_Merge_h_comac_Arm_RUDTrimPanel; - cr929_SIL_B.Merge_i.comac_NoseLeft_RUDTrimPanel = - rtb_Merge_h_comac_NoseLeft_RUDTrimPanel; - cr929_SIL_B.Merge_i.comac_NoseRight_RUDTrimPanel = - rtb_Merge_h_comac_NoseRight_RUDTrimPanel; - cr929_SIL_B.Merge_i.comac_Reset_RUDTrimPanel = - rtb_Merge_h_comac_Reset_RUDTrimPanel; - cr929_SIL_B.Merge_i.comac_PrioritySwitchCP = - rtb_Merge_h_comac_PrioritySwitchCP; - cr929_SIL_B.Merge_i.comac_PrioritySwitchFO = - rtb_Merge_h_comac_PrioritySwitchFO; - cr929_SIL_B.Merge_i.comac_InhibitAlphaPROT_Test = - rtb_Merge_h_comac_InhibitAlphaPROT_Test; - cr929_SIL_B.Merge_i.comac_RudTrimEnable_NM_Test = - rtb_Merge_h_comac_RudTrimEnable_NM_Test; - cr929_SIL_B.Merge_i.comac_InhibitMLA_Test = - rtb_Merge_h_comac_InhibitMLA_Test; - cr929_SIL_B.Merge_i.comac_AP_Engage = rtb_Merge_h_comac_AP_Engage; - cr929_SIL_B.Merge_i.comac_AT_Engage = rtb_Merge_h_comac_AT_Engage; - cr929_SIL_B.Merge_i.comac_FPA_CMD = rtb_Merge_h_comac_FPA_CMD; - cr929_SIL_B.Merge_i.comac_HDG_CMD = rtb_Merge_h_comac_HDG_CMD; - cr929_SIL_B.Merge_i.comac_ALT_CMD = rtb_Merge_h_comac_ALT_CMD; - cr929_SIL_B.Merge_i.del_c = rtb_uDLookupTable11; - cr929_SIL_B.Merge_i.der_c = rtb_uDLookupTable11; - cr929_SIL_B.Merge_i.dal_c = rtb_Switch2_ki; + cr929_SIL_B.Merge_i = rtb_Merge_g; + cr929_SIL_B.Merge_i.del_c = rtb_add_k; + cr929_SIL_B.Merge_i.der_c = rtb_add_k; + cr929_SIL_B.Merge_i.dal_c = rtb_da2dal_deg; cr929_SIL_B.Merge_i.dar_c = rtb_Merge11; - /* Sum: '/Sum' incorporates: - * Delay: '/Delay' - * Sum: '/Sum1' + /* Sum: '/Sum' incorporates: + * Delay: '/Delay' + * Sum: '/Sum1' */ - rtb_phi_c_c = rtb_uDLookupTable8 + cr929_SIL_DW.Delay_DSTATE_l; + rtb_phi_c_h = rtb_Merge_g.dsp_c + cr929_SIL_DW.Delay_DSTATE_l; - /* BusAssignment: '/Bus Assignment1' incorporates: - * Delay: '/Delay' - * Sum: '/Sum' + /* BusAssignment: '/Bus Assignment1' incorporates: + * Delay: '/Delay' + * Sum: '/Sum' */ - cr929_SIL_B.Merge_i.dspli_c[0] = rtb_phi_c_c; - cr929_SIL_B.Merge_i.dspli_c[1] = rtb_phi_c_c; - cr929_SIL_B.Merge_i.dspli_c[2] = rtb_phi_c_c; - cr929_SIL_B.Merge_i.dspri_c[0] = rtb_phi_c_c; - cr929_SIL_B.Merge_i.dspri_c[1] = rtb_phi_c_c; - cr929_SIL_B.Merge_i.dspri_c[2] = rtb_phi_c_c; + cr929_SIL_B.Merge_i.dspli_c[0] = rtb_phi_c_h; + cr929_SIL_B.Merge_i.dspli_c[1] = rtb_phi_c_h; + cr929_SIL_B.Merge_i.dspli_c[2] = rtb_phi_c_h; + cr929_SIL_B.Merge_i.dspri_c[0] = rtb_phi_c_h; + cr929_SIL_B.Merge_i.dspri_c[1] = rtb_phi_c_h; + cr929_SIL_B.Merge_i.dspri_c[2] = rtb_phi_c_h; for (i = 0; i < 5; i++) { cr929_SIL_B.Merge_i.dsplo_c[i] = rtb_Sum2_h[i]; cr929_SIL_B.Merge_i.dspro_c[i] = rtb_Sum3_e[i]; } - cr929_SIL_B.Merge_i.dflio_c = rtb_Gain2_ew; - cr929_SIL_B.Merge_i.dflii_c = rtb_Gain2_ew; + cr929_SIL_B.Merge_i.dflio_c = rtb_Sum7_f; + cr929_SIL_B.Merge_i.dflii_c = rtb_Sum7_f; cr929_SIL_B.Merge_i.dflo_c = rtb_Sum4_m; cr929_SIL_B.Merge_i.dflo2_c = rtb_Sum4_m; - cr929_SIL_B.Merge_i.dfrio_c = rtb_Switch_gmk; - cr929_SIL_B.Merge_i.dfrii_c = rtb_Switch_gmk; - cr929_SIL_B.Merge_i.dfro_c = rtb_Divide_e; - cr929_SIL_B.Merge_i.dfro2_c = rtb_Divide_e; + cr929_SIL_B.Merge_i.dfrio_c = rtb_da2dar_deg; + cr929_SIL_B.Merge_i.dfrii_c = rtb_da2dar_deg; + cr929_SIL_B.Merge_i.dfro_c = rtb_Sum5_hx; + cr929_SIL_B.Merge_i.dfro2_c = rtb_Sum5_hx; cr929_SIL_B.Merge_i.dhr_c = cr929_SIL_DW.Delay_DSTATE_j; cr929_SIL_B.Merge_i.dhl_c = cr929_SIL_DW.Delay_DSTATE_j; - /* If: '/If' incorporates: - * Constant: '/Constant' + /* If: '/If' incorporates: + * Constant: '/Constant' */ if ((cr929_SIL_P.force_thrl >= -0.25F) && (cr929_SIL_P.force_thrl <= 0.1F)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment1' incorporates: - * Inport: '/In1' + /* BusAssignment: '/Bus Assignment1' incorporates: + * Inport: '/In1' */ cr929_SIL_B.Merge_i.thrl_c = cr929_SIL_P.force_thrl; - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } else { - /* BusAssignment: '/Bus Assignment1' */ - cr929_SIL_B.Merge_i.thrl_c = rtb_Divide2_i; + /* BusAssignment: '/Bus Assignment1' incorporates: + * SignalConversion: '/C2InBus_BusSelector' + */ + cr929_SIL_B.Merge_i.thrl_c = rtb_Merge_g.throttle_c; } - /* End of If: '/If' */ + /* End of If: '/If' */ - /* If: '/If' incorporates: - * Constant: '/Constant' + /* If: '/If' incorporates: + * Constant: '/Constant' */ if ((cr929_SIL_P.force_thrr >= -0.25F) && (cr929_SIL_P.force_thrr < 0.1F)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment1' incorporates: - * Inport: '/In1' + /* BusAssignment: '/Bus Assignment1' incorporates: + * Inport: '/In1' */ cr929_SIL_B.Merge_i.thrr_c = cr929_SIL_P.force_thrr; - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } else { - /* BusAssignment: '/Bus Assignment1' incorporates: - * Gain: '/gain' + /* BusAssignment: '/Bus Assignment1' incorporates: + * Gain: '/gain' + * SignalConversion: '/C2InBus_BusSelector' */ - cr929_SIL_B.Merge_i.thrr_c = cr929_SIL_P.kthr_r * rtb_Divide2_i; + cr929_SIL_B.Merge_i.thrr_c = cr929_SIL_P.kthr_r * + rtb_Merge_g.throttle_c; } - /* End of If: '/If' */ + /* End of If: '/If' */ - /* BusAssignment: '/Bus Assignment1' incorporates: - * Constant: '/Constant7' - * Delay: '/Delay' - * Gain: '/Gain1' - * Sum: '/add1' + /* BusAssignment: '/Bus Assignment1' incorporates: + * Constant: '/Constant7' + * Delay: '/Delay' + * Gain: '/Gain1' + * Sum: '/add1' */ - cr929_SIL_B.Merge_i.dr_c = (rtb_uDLookupTable7 + rtb_Merge_h_dr_stimulus) + cr929_SIL_B.Merge_i.dr_c = (rtb_Merge_g.dr_c + rtb_Merge_g.dr_stimulus) + 0.0174532924F * cr929_SIL_P.dr_trim; - cr929_SIL_B.Merge_i.de_c = rtb_uDLookupTable11; - cr929_SIL_B.Merge_i.da_c = rtb_Switch2_pl; + cr929_SIL_B.Merge_i.de_c = rtb_add_k; + cr929_SIL_B.Merge_i.da_c = rtb_add2; cr929_SIL_B.Merge_i.dh_c = cr929_SIL_DW.Delay_DSTATE_j; - /* Gain: '/Gain' incorporates: - * Constant: '/Constant4' + /* Gain: '/Gain' incorporates: + * Constant: '/Constant4' */ - rtb_Gain_cv = 0.003062F * cr929_SIL_P.dht_ratelim; + rtb_da2dal_deg = 0.003062F * cr929_SIL_P.dht_ratelim; + + /* Sum: '/subtract1' incorporates: + * Delay: '/Delay' + */ + rtb_add2 = rtb_add1 - cr929_SIL_DW.Delay_DSTATE_j; + + /* Switch: '/Switch2' incorporates: + * Gain: '/Gain3' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' + */ + if (rtb_add2 > rtb_da2dal_deg) { + rtb_add2 = rtb_da2dal_deg; + } else { + if (rtb_add2 < -rtb_da2dal_deg) { + /* Switch: '/Switch' incorporates: + * Gain: '/Gain3' + */ + rtb_add2 = -rtb_da2dal_deg; + } + } + + /* End of Switch: '/Switch2' */ + + /* Update for Delay: '/Delay' incorporates: + * Sum: '/Sum' + */ + cr929_SIL_DW.Delay_DSTATE_j += rtb_add2; + + /* Gain: '/Gain' incorporates: + * Constant: '/Constant2' + */ + rtb_da2dal_deg = 0.003062F * cr929_SIL_P.dflap_ratelim; + + /* Sum: '/subtract1' incorporates: + * Delay: '/Delay' + */ + rtb_add2 = cr929_SIL_B.outer_flap - cr929_SIL_DW.Delay_DSTATE_f; + + /* Switch: '/Switch2' incorporates: + * Gain: '/Gain3' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' + */ + if (rtb_add2 > rtb_da2dal_deg) { + rtb_add2 = rtb_da2dal_deg; + } else { + if (rtb_add2 < -rtb_da2dal_deg) { + /* Switch: '/Switch' incorporates: + * Gain: '/Gain3' + */ + rtb_add2 = -rtb_da2dal_deg; + } + } + + /* End of Switch: '/Switch2' */ + + /* Update for Delay: '/Delay' incorporates: + * Sum: '/Sum' + */ + cr929_SIL_DW.Delay_DSTATE_f += rtb_add2; + + /* Gain: '/Gain' incorporates: + * Constant: '/Constant3' + */ + rtb_da2dal_deg = 0.003062F * cr929_SIL_P.dflap_ratelim; /* Sum: '/subtract1' incorporates: * Delay: '/Delay' */ - rtb_subtract1_d = rtb_add1 - cr929_SIL_DW.Delay_DSTATE_j; + rtb_add2 = cr929_SIL_B.inner_flap - cr929_SIL_DW.Delay_DSTATE_i; /* Switch: '/Switch2' incorporates: * Gain: '/Gain3' @@ -29178,14 +28995,14 @@ void cr929_SIL_step(void) * RelationalOperator: '/UpperRelop' * Switch: '/Switch' */ - if (rtb_subtract1_d > rtb_Gain_cv) { - rtb_subtract1_d = rtb_Gain_cv; + if (rtb_add2 > rtb_da2dal_deg) { + rtb_add2 = rtb_da2dal_deg; } else { - if (rtb_subtract1_d < -rtb_Gain_cv) { + if (rtb_add2 < -rtb_da2dal_deg) { /* Switch: '/Switch' incorporates: * Gain: '/Gain3' */ - rtb_subtract1_d = -rtb_Gain_cv; + rtb_add2 = -rtb_da2dal_deg; } } @@ -29194,51 +29011,17 @@ void cr929_SIL_step(void) /* Update for Delay: '/Delay' incorporates: * Sum: '/Sum' */ - cr929_SIL_DW.Delay_DSTATE_j += rtb_subtract1_d; - - /* Gain: '/Gain' incorporates: - * Constant: '/Constant2' - */ - rtb_Gain_cv = 0.003062F * cr929_SIL_P.dflap_ratelim; - - /* Sum: '/subtract1' incorporates: - * Delay: '/Delay' - */ - rtb_subtract1_d = cr929_SIL_B.outer_flap - cr929_SIL_DW.Delay_DSTATE_f; - - /* Switch: '/Switch2' incorporates: - * Gain: '/Gain3' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' - */ - if (rtb_subtract1_d > rtb_Gain_cv) { - rtb_subtract1_d = rtb_Gain_cv; - } else { - if (rtb_subtract1_d < -rtb_Gain_cv) { - /* Switch: '/Switch' incorporates: - * Gain: '/Gain3' - */ - rtb_subtract1_d = -rtb_Gain_cv; - } - } - - /* End of Switch: '/Switch2' */ - - /* Update for Delay: '/Delay' incorporates: - * Sum: '/Sum' - */ - cr929_SIL_DW.Delay_DSTATE_f += rtb_subtract1_d; + cr929_SIL_DW.Delay_DSTATE_i += rtb_add2; /* Gain: '/Gain' incorporates: - * Constant: '/Constant3' + * Constant: '/Constant' */ - rtb_Gain_cv = 0.003062F * cr929_SIL_P.dflap_ratelim; + rtb_da2dal_deg = 0.003062F * cr929_SIL_P.dsp_ratelim; /* Sum: '/subtract1' incorporates: * Delay: '/Delay' */ - rtb_subtract1_d = cr929_SIL_B.inner_flap - cr929_SIL_DW.Delay_DSTATE_i; + rtb_add2 = cr929_SIL_B.inner_spoiler - cr929_SIL_DW.Delay_DSTATE_l; /* Switch: '/Switch2' incorporates: * Gain: '/Gain3' @@ -29246,14 +29029,14 @@ void cr929_SIL_step(void) * RelationalOperator: '/UpperRelop' * Switch: '/Switch' */ - if (rtb_subtract1_d > rtb_Gain_cv) { - rtb_subtract1_d = rtb_Gain_cv; + if (rtb_add2 > rtb_da2dal_deg) { + rtb_add2 = rtb_da2dal_deg; } else { - if (rtb_subtract1_d < -rtb_Gain_cv) { + if (rtb_add2 < -rtb_da2dal_deg) { /* Switch: '/Switch' incorporates: * Gain: '/Gain3' */ - rtb_subtract1_d = -rtb_Gain_cv; + rtb_add2 = -rtb_da2dal_deg; } } @@ -29262,323 +29045,321 @@ void cr929_SIL_step(void) /* Update for Delay: '/Delay' incorporates: * Sum: '/Sum' */ - cr929_SIL_DW.Delay_DSTATE_i += rtb_subtract1_d; + cr929_SIL_DW.Delay_DSTATE_l += rtb_add2; - /* Gain: '/Gain' incorporates: - * Constant: '/Constant' + /* Gain: '/Gain' incorporates: + * Constant: '/Constant1' */ - rtb_Gain_cv = 0.003062F * cr929_SIL_P.dsp_ratelim; + rtb_da2dal_deg = 0.003062F * cr929_SIL_P.dsp_ratelim; - /* Sum: '/subtract1' incorporates: - * Delay: '/Delay' + /* Sum: '/subtract1' incorporates: + * Delay: '/Delay' */ - rtb_subtract1_d = cr929_SIL_B.inner_spoiler - - cr929_SIL_DW.Delay_DSTATE_l; + rtb_add2 = cr929_SIL_B.outer_spoiler - cr929_SIL_DW.Delay_DSTATE_kb; - /* Switch: '/Switch2' incorporates: - * Gain: '/Gain3' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * Gain: '/Gain3' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ - if (rtb_subtract1_d > rtb_Gain_cv) { - rtb_subtract1_d = rtb_Gain_cv; + if (rtb_add2 > rtb_da2dal_deg) { + rtb_add2 = rtb_da2dal_deg; } else { - if (rtb_subtract1_d < -rtb_Gain_cv) { - /* Switch: '/Switch' incorporates: - * Gain: '/Gain3' + if (rtb_add2 < -rtb_da2dal_deg) { + /* Switch: '/Switch' incorporates: + * Gain: '/Gain3' */ - rtb_subtract1_d = -rtb_Gain_cv; + rtb_add2 = -rtb_da2dal_deg; } } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Update for Delay: '/Delay' incorporates: - * Sum: '/Sum' - */ - cr929_SIL_DW.Delay_DSTATE_l += rtb_subtract1_d; - - /* Gain: '/Gain' incorporates: - * Constant: '/Constant1' - */ - rtb_Gain_cv = 0.003062F * cr929_SIL_P.dsp_ratelim; - - /* Sum: '/subtract1' incorporates: - * Delay: '/Delay' - */ - rtb_subtract1_d = cr929_SIL_B.outer_spoiler - cr929_SIL_DW.Delay_DSTATE; - - /* Switch: '/Switch2' incorporates: - * Gain: '/Gain3' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' - */ - if (rtb_subtract1_d > rtb_Gain_cv) { - rtb_subtract1_d = rtb_Gain_cv; - } else { - if (rtb_subtract1_d < -rtb_Gain_cv) { - /* Switch: '/Switch' incorporates: - * Gain: '/Gain3' - */ - rtb_subtract1_d = -rtb_Gain_cv; - } - } - - /* End of Switch: '/Switch2' */ - - /* Update for Delay: '/Delay' incorporates: - * Sum: '/Sum' + /* Update for Delay: '/Delay' incorporates: + * Sum: '/Sum' */ cr929_SIL_DW.icLoad_d = 0U; - cr929_SIL_DW.Delay_DSTATE += rtb_subtract1_d; - - /* Update for Delay: '/Delay' */ - cr929_SIL_DW.icLoad_b = 0U; + cr929_SIL_DW.Delay_DSTATE_kb += rtb_add2; /* Update for Delay: '/Delay' */ - cr929_SIL_DW.icLoad_e = 0U; - - /* Update for Delay: '/Delay' */ - cr929_SIL_DW.icLoad_j = 0U; + cr929_SIL_DW.icLoad_bg = 0U; /* Update for Delay: '/Delay' */ + cr929_SIL_DW.icLoad_e = 0U; + + /* Update for Delay: '/Delay' */ + cr929_SIL_DW.icLoad_j = 0U; + + /* Update for Delay: '/Delay' */ cr929_SIL_DW.icLoad_ed = 0U; - /* End of Outputs for SubSystem: '/use_mix' */ + /* End of Outputs for SubSystem: '/use_mix' */ break; case 1: - /* Outputs for IfAction SubSystem: '/no_mix' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/no_mix' incorporates: + * ActionPort: '/Action Port' */ - cr929_SIL_B.Merge_i.gear_up = rtb_out_h2; - cr929_SIL_B.Merge_i.switch_video = rtb_Merge_h_switch_video; - cr929_SIL_B.Merge_i.steer_c = rtb_subtract1_d; - cr929_SIL_B.Merge_i.de_c = rtb_Gain_cv; - cr929_SIL_B.Merge_i.dh_c = rtb_uDLookupTable12; - cr929_SIL_B.Merge_i.da_c = rtb_uDLookupTable10; - cr929_SIL_B.Merge_i.throttle_c = rtb_Divide2_i; - cr929_SIL_B.Merge_i.df_c = rtb_uDLookupTable9; - cr929_SIL_B.Merge_i.dsp_c = rtb_uDLookupTable8; - cr929_SIL_B.Merge_i.dr_c = rtb_uDLookupTable7; - cr929_SIL_B.Merge_i.thrl_c = rtb_uDLookupTable6; - cr929_SIL_B.Merge_i.thrr_c = rtb_uDLookupTable5; - cr929_SIL_B.Merge_i.brake_c = rtb_Merge_h_brake_c; - cr929_SIL_B.Merge_i.parachute_c = rtb_Merge_h_parachute_c; - cr929_SIL_B.Merge_i.anti_stall_parachute_c = - rtb_Merge_h_anti_stall_parachute_c; - cr929_SIL_B.Merge_i.dar_c = rtb_uDLookupTable4; - cr929_SIL_B.Merge_i.der_c = rtb_uDLookupTable3; - cr929_SIL_B.Merge_i.dhr_c = rtb_Merge_h_dhr_c; - cr929_SIL_B.Merge_i.dflio_c = rtb_Merge_h_dflio_c; - cr929_SIL_B.Merge_i.dflo_c = rtb_Merge_h_dflo_c; - cr929_SIL_B.Merge_i.dal_c = rtb_Merge_h_dal_c; - cr929_SIL_B.Merge_i.del_c = rtb_Merge_h_del_c; - cr929_SIL_B.Merge_i.dfrio_c = rtb_Merge_h_dfrio_c; - cr929_SIL_B.Merge_i.dfro_c = rtb_Merge_h_dfro_c; - cr929_SIL_B.Merge_i.dhl_c = rtb_Merge_h_dhl_c; - cr929_SIL_B.Merge_i.dflii_c = rtb_Merge_h_dflii_c; - cr929_SIL_B.Merge_i.dfrii_c = rtb_Merge_h_dfrii_c; - cr929_SIL_B.Merge_i.dflo2_c = rtb_Merge_h_dflo2_c; - cr929_SIL_B.Merge_i.dfro2_c = rtb_Merge_h_dfro2_c; - cr929_SIL_B.Merge_i.dspli_c[0] = rtb_Merge_h_dspli_c_idx_0; - cr929_SIL_B.Merge_i.dspri_c[0] = rtb_Merge_h_dspri_c_idx_0; - cr929_SIL_B.Merge_i.dspli_c[1] = rtb_Merge_h_dspli_c_idx_1; - cr929_SIL_B.Merge_i.dspri_c[1] = rtb_Merge_h_dspri_c_idx_1; - cr929_SIL_B.Merge_i.dspli_c[2] = rtb_Merge_h_dspli_c_idx_2; - cr929_SIL_B.Merge_i.dspri_c[2] = rtb_Merge_h_dspri_c_idx_2; - for (i = 0; i < 5; i++) { - cr929_SIL_B.Merge_i.dsplo_c[i] = rtb_Merge_h_dsplo_c[i]; - cr929_SIL_B.Merge_i.dspro_c[i] = rtb_Merge_h_dspro_c[i]; - } + cr929_SIL_B.Merge_i = rtb_Merge_g; - cr929_SIL_B.Merge_i.load_signal[0] = rtb_Merge_h_load_signal_idx_0; - cr929_SIL_B.Merge_i.load_signal[1] = rtb_Merge_h_load_signal_idx_1; - cr929_SIL_B.Merge_i.load_signal[2] = rtb_Merge_h_load_signal_idx_2; - cr929_SIL_B.Merge_i.use_mix = rtb_Merge_h_use_mix; - cr929_SIL_B.Merge_i.AFCS_LAT = rtb_Merge_h_AFCS_LAT; - cr929_SIL_B.Merge_i.AFCS_VERT = rtb_Merge_h_AFCS_VERT; - cr929_SIL_B.Merge_i.CSAS_pitch = rtb_Merge_h_CSAS_pitch; - cr929_SIL_B.Merge_i.CSAS_roll = rtb_Merge_h_CSAS_roll; - cr929_SIL_B.Merge_i.CSAS_yaw = rtb_Merge_h_CSAS_yaw; - cr929_SIL_B.Merge_i.AT = rtb_Merge_h_AT; - cr929_SIL_B.Merge_i.level1_lgx = rtb_Merge_h_level1_lgx; - cr929_SIL_B.Merge_i.level2_lgx = rtb_Merge_h_level2_lgx; - cr929_SIL_B.Merge_i.level3_lgx = rtb_Merge_h_level3_lgx; - cr929_SIL_B.Merge_i.level3_auto_lgx = rtb_Merge_h_level3_auto_lgx; - cr929_SIL_B.Merge_i.level4_lgx = rtb_Merge_h_level4_lgx; - cr929_SIL_B.Merge_i.level5_lgx = rtb_Merge_h_level5_lgx; - cr929_SIL_B.Merge_i.mode = rtb_Merge_h_mode; - cr929_SIL_B.Merge_i.traj.lat1 = rtb_Merge_h_traj_lat1; - cr929_SIL_B.Merge_i.traj.lon1 = rtb_Merge_h_traj_lon1; - cr929_SIL_B.Merge_i.traj.h1 = rtb_Merge_h_traj_h1; - cr929_SIL_B.Merge_i.traj.azimuth = rtb_Merge_h_traj_azimuth; - cr929_SIL_B.Merge_i.traj.elevation_baseline = - rtb_Merge_h_traj_elevation_baseline; - cr929_SIL_B.Merge_i.traj.radius = rtb_Merge_h_traj_radius; - cr929_SIL_B.Merge_i.traj.heading = rtb_Merge_h_traj_heading; - cr929_SIL_B.Merge_i.traj.elevation_baseline2 = - rtb_Merge_h_traj_elevation_baseline2; - cr929_SIL_B.Merge_i.traj.mode = rtb_Merge_h_traj_mode; - cr929_SIL_B.Merge_i.traj.vn_c = rtb_Merge_h_traj_vn_c; - cr929_SIL_B.Merge_i.traj.ve_c = rtb_Merge_h_traj_ve_c; - cr929_SIL_B.Merge_i.traj.hdot_c = rtb_Merge_h_traj_hdot_c; - cr929_SIL_B.Merge_i.use_mission_traj = rtb_Merge_h_use_mission_traj; - cr929_SIL_B.Merge_i.rc.pitch_cmd = rtb_Merge_h_rc_pitch_cmd; - cr929_SIL_B.Merge_i.rc.roll_cmd = rtb_Merge_h_rc_roll_cmd; - cr929_SIL_B.Merge_i.rc.yaw_cmd = rtb_Merge_h_rc_yaw_cmd; - cr929_SIL_B.Merge_i.rc.throttle_cmd = rtb_Merge_h_rc_throttle_cmd; - for (i = 0; i < 18; i++) { - cr929_SIL_B.Merge_i.rc.chan_raw[i] = rtb_Merge_h_rc_chan_raw[i]; - } - - cr929_SIL_B.Merge_i.rc.auto_mode = rtb_Merge_h_rc_auto_mode; - cr929_SIL_B.Merge_i.rc.aux_mode = rtb_Merge_h_rc_aux_mode; - cr929_SIL_B.Merge_i.rc.id = rtb_Merge_h_rc_id; - cr929_SIL_B.Merge_i.rc.seq = rtb_Merge_h_rc_seq; - cr929_SIL_B.Merge_i.rc.brake = rtb_Merge_h_rc_brake; - cr929_SIL_B.Merge_i.rc.gear_up = rtb_Merge_h_rc_gear_up; - cr929_SIL_B.Merge_i.rc.connected = rtb_Merge_h_rc_connected; - cr929_SIL_B.Merge_i.boot_time = rtb_Merge_h_boot_time; - cr929_SIL_B.Merge_i.armed = rtb_Merge_ay_gear_up; - cr929_SIL_B.Merge_i.state = rtb_Merge_h_state; - cr929_SIL_B.Merge_i.vtol_state = rtb_Merge_h_vtol_state; - cr929_SIL_B.Merge_i.landed_state = rtb_Merge_h_landed_state; - cr929_SIL_B.Merge_i.linked = rtb_Merge_h_linked; - cr929_SIL_B.Merge_i.WP_cur = rtb_Merge_h_WP_cur; - cr929_SIL_B.Merge_i.base_asl = rtb_Merge_h_base_asl; - cr929_SIL_B.Merge_i.base_asl_baro = rtb_Merge_h_base_asl_baro; - cr929_SIL_B.Merge_i.standby_cmd = rtb_Merge_h_standby_cmd; - cr929_SIL_B.Merge_i.xbit_cmd = rtb_Merge_h_xbit_cmd; - cr929_SIL_B.Merge_i.autocont = rtb_Merge_h_autocont; - cr929_SIL_B.Merge_i.dist_offset_addins = rtb_Merge_h_dist_offset_addins; - cr929_SIL_B.Merge_i.horiz_offset_addins = - rtb_Merge_h_horiz_offset_addins; - cr929_SIL_B.Merge_i.vert_offset_addins = rtb_Merge_h_vert_offset_addins; - cr929_SIL_B.Merge_i.home.lat1 = rtb_Merge_h_home_lat1; - cr929_SIL_B.Merge_i.home.lon1 = rtb_Merge_h_home_lon1; - cr929_SIL_B.Merge_i.home.h1 = rtb_Merge_h_home_h1; - cr929_SIL_B.Merge_i.home.azimuth = rtb_Merge_h_home_azimuth; - cr929_SIL_B.Merge_i.home.elevation_baseline = - rtb_Merge_h_home_elevation_baseline; - cr929_SIL_B.Merge_i.home.radius = rtb_Merge_h_home_radius; - cr929_SIL_B.Merge_i.home.heading = rtb_Merge_h_home_heading; - cr929_SIL_B.Merge_i.home.elevation_baseline2 = - rtb_Merge_h_home_elevation_baseline2; - cr929_SIL_B.Merge_i.home.mode = rtb_Merge_h_home_mode; - cr929_SIL_B.Merge_i.home.vn_c = rtb_Merge_h_home_vn_c; - cr929_SIL_B.Merge_i.home.ve_c = rtb_Merge_h_home_ve_c; - cr929_SIL_B.Merge_i.home.hdot_c = rtb_Merge_h_home_hdot_c; - cr929_SIL_B.Merge_i.q_c = rtb_Merge_h_q_c; - cr929_SIL_B.Merge_i.p_c = rtb_Merge_h_p_c; - cr929_SIL_B.Merge_i.r_c = rtb_Merge_h_r_c; - cr929_SIL_B.Merge_i.tht_c = rtb_Merge_h_tht_c; - cr929_SIL_B.Merge_i.phi_c = rtb_Merge_h_phi_c; - cr929_SIL_B.Merge_i.psidot_c = rtb_Merge_h_psidot_c; - cr929_SIL_B.Merge_i.hdot_c = rtb_Merge_h_hdot_c; - cr929_SIL_B.Merge_i.gamma_c = rtb_Merge_h_gamma_c; - cr929_SIL_B.Merge_i.h_c = rtb_Merge_h_h_c; - cr929_SIL_B.Merge_i.as_c = rtb_Merge_h_as_c; - cr929_SIL_B.Merge_i.gs_c = rtb_Merge_h_gs_c; - cr929_SIL_B.Merge_i.takeoff_tht = rtb_Merge_h_takeoff_tht; - cr929_SIL_B.Merge_i.dist_trans = rtb_Merge_h_dist_trans; - cr929_SIL_B.Merge_i.AS_SEL = rtb_Merge_h_AS_SEL; - cr929_SIL_B.Merge_i.aspd_error = rtb_Merge_h_aspd_error; - cr929_SIL_B.Merge_i.enable_rc = rtb_Merge_h_enable_rc; - cr929_SIL_B.Merge_i.max_de = rtb_Merge_h_max_de; - cr929_SIL_B.Merge_i.min_de = rtb_Merge_h_min_de; - cr929_SIL_B.Merge_i.max_da = rtb_Merge_h_max_da; - cr929_SIL_B.Merge_i.max_dr = rtb_Merge_h_max_dr; - cr929_SIL_B.Merge_i.enable_rec = rtb_Merge_h_enable_rec; - cr929_SIL_B.Merge_i.do_jump_cnt = rtb_Merge_h_do_jump_cnt; - cr929_SIL_B.Merge_i.max_df = rtb_Merge_h_max_df; - cr929_SIL_B.Merge_i.max_dsp = rtb_Merge_h_max_dsp; - cr929_SIL_B.Merge_i.min_dsp = rtb_Merge_h_min_dsp; - cr929_SIL_B.Merge_i.takeoff_cmd = rtb_Merge_h_takeoff_cmd; - cr929_SIL_B.Merge_i.landing_cmd = rtb_Merge_h_landing_cmd; - cr929_SIL_B.Merge_i.abort_takeoff_cmd = rtb_Merge_h_abort_takeoff_cmd; - cr929_SIL_B.Merge_i.landing_abort_alt = rtb_Merge_h_landing_abort_alt; - cr929_SIL_B.Merge_i.flap_lever = rtb_Merge_h_flap_lever; - cr929_SIL_B.Merge_i.maneuver_cmd = rtb_Merge_h_maneuver_cmd; - for (i = 0; i < 6; i++) { - cr929_SIL_B.Merge_i.maneuver_params[i] = rtb_Merge_h_maneuver_params[i]; - } - - cr929_SIL_B.Merge_i.use_da2dsp = rtb_Merge_h_use_da2dsp; - cr929_SIL_B.Merge_i.de_stimulus = rtb_Merge_h_de_stimulus; - cr929_SIL_B.Merge_i.da_stimulus = rtb_Merge_h_da_stimulus; - cr929_SIL_B.Merge_i.dr_stimulus = rtb_Merge_h_dr_stimulus; - cr929_SIL_B.Merge_i.dh_stimulus = rtb_Merge_h_dh_stimulus; - cr929_SIL_B.Merge_i.ay_c = rtb_Merge_h_ay_c; - cr929_SIL_B.Merge_i.Switch_ControlLaw = rtb_Merge_h_Switch_ControlLaw; - cr929_SIL_B.Merge_i.comac_ResetControlLaw = - rtb_Merge_h_comac_ResetControlLaw; - cr929_SIL_B.Merge_i.comac_Arm_RUDTrimPanel = - rtb_Merge_h_comac_Arm_RUDTrimPanel; - cr929_SIL_B.Merge_i.comac_NoseLeft_RUDTrimPanel = - rtb_Merge_h_comac_NoseLeft_RUDTrimPanel; - cr929_SIL_B.Merge_i.comac_NoseRight_RUDTrimPanel = - rtb_Merge_h_comac_NoseRight_RUDTrimPanel; - cr929_SIL_B.Merge_i.comac_Reset_RUDTrimPanel = - rtb_Merge_h_comac_Reset_RUDTrimPanel; - cr929_SIL_B.Merge_i.comac_PrioritySwitchCP = - rtb_Merge_h_comac_PrioritySwitchCP; - cr929_SIL_B.Merge_i.comac_PrioritySwitchFO = - rtb_Merge_h_comac_PrioritySwitchFO; - cr929_SIL_B.Merge_i.comac_InhibitAlphaPROT_Test = - rtb_Merge_h_comac_InhibitAlphaPROT_Test; - cr929_SIL_B.Merge_i.comac_RudTrimEnable_NM_Test = - rtb_Merge_h_comac_RudTrimEnable_NM_Test; - cr929_SIL_B.Merge_i.comac_InhibitMLA_Test = - rtb_Merge_h_comac_InhibitMLA_Test; - cr929_SIL_B.Merge_i.comac_AP_Engage = rtb_Merge_h_comac_AP_Engage; - cr929_SIL_B.Merge_i.comac_AT_Engage = rtb_Merge_h_comac_AT_Engage; - cr929_SIL_B.Merge_i.comac_FPA_CMD = rtb_Merge_h_comac_FPA_CMD; - cr929_SIL_B.Merge_i.comac_HDG_CMD = rtb_Merge_h_comac_HDG_CMD; - cr929_SIL_B.Merge_i.comac_ALT_CMD = rtb_Merge_h_comac_ALT_CMD; - - /* End of Outputs for SubSystem: '/no_mix' */ + /* End of Outputs for SubSystem: '/no_mix' */ break; } - /* End of If: '/If' */ + /* End of If: '/If' */ - /* Sum: '/Subtract' incorporates: - * Constant: '/Constant' + /* Sum: '/Subtract' incorporates: + * Constant: '/Constant' */ cr929_SIL_B.Subtract_p = (uint16_T)(cr929_SIL_B.Merge_i.WP_cur - 1); - /* Chart: '/proc_queue' */ + /* Chart: '/Chart_proc_mission_upload' */ + if (cr929_SIL_DW.temporalCounter_i1_f < 511U) { + cr929_SIL_DW.temporalCounter_i1_f++; + } + + cr929_SIL_DW.mission_cnt_isValid = false; + cr929_SIL_DW.mission_item_isValid = false; + if (cr929_SIL_DW.is_active_c29_mavlink_utils == 0U) { + cr929_SIL_DW.is_active_c29_mavlink_utils = 1U; + cr929_SIL_DW.is_c29_mavlink_utils = cr929_SIL_IN_Idle_h; + cr929_SIL_B.enable_cnt = true; + cr929_SIL_B.enable_item = false; + } else { + guard1 = false; + guard2 = false; + guard3 = false; + guard4 = false; + if (cr929_SIL_DW.is_c29_mavlink_utils == cr929_SIL_IN_Idle_h) { + if (cr929_SIL_sf_msg_pop_mission_cnt()) { + cr929_SIL_B.mission_type = ((mavlink_mission_count_t *) + cr929_SIL_DW.mission_cnt_msgDataPtr)->mission_type; + cr929_SIL_DW.count = ((mavlink_mission_count_t *) + cr929_SIL_DW.mission_cnt_msgDataPtr)->count; + cr929_SIL_B.enable_cnt = false; + cr929_SIL_B.enable_item = true; + cr929_SIL_B.seq = 0U; + cr929_SIL_DW.retry = 3U; + + /* Outputs for Function Call SubSystem: '/dummy clear_mission' */ + cr929_SIL_dummyclear_mission(cr929_SIL_B.mission_type, + &cr929_SIL_B.ack_ej); + + /* End of Outputs for SubSystem: '/dummy clear_mission' */ + if (cr929_SIL_DW.count > 0) { + cr929_SIL_DW.is_c29_mavlink_utils = cr929_SIL_IN_Uploading; + cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.mission_req_int_msgData.seq = cr929_SIL_B.seq; + cr929_SIL_DW.mission_req_int_msgData.mission_type = + cr929_SIL_B.mission_type; + cr929_SIL_sf_msg_send_mission_req_int(); + cr929_SIL_DW.retry--; + } else { + cr929_SIL_DW.mission_ack_msgData.mission_type = + cr929_SIL_B.mission_type; + cr929_SIL_DW.mission_ack_msgData.type = 0U; + cr929_SIL_sf_msg_send_mission_ack(); + guard3 = true; + } + } else { + if (cr929_SIL_sf_msg_pop_mission_item()) { + guard3 = true; + } + } + } else { + if (cr929_SIL_sf_msg_pop_mission_item()) { + rtb_out_hr = ((((mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgDataPtr)->mission_type == + cr929_SIL_B.mission_type) && + (((mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgDataPtr)->seq == + cr929_SIL_B.seq)); + } else { + rtb_out_hr = false; + } + + if (rtb_out_hr) { + cr929_SIL_B.frame = ((mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgDataPtr)->frame; + cr929_SIL_B.command = ((mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgDataPtr)->command; + cr929_SIL_B.autocontinue = ((mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgDataPtr)->autocontinue; + cr929_SIL_B.param1 = ((mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgDataPtr)->param1; + cr929_SIL_B.param2 = ((mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgDataPtr)->param2; + cr929_SIL_B.param3 = ((mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgDataPtr)->param3; + cr929_SIL_B.param4 = ((mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgDataPtr)->param4; + cr929_SIL_B.x = ((mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgDataPtr)->x; + cr929_SIL_B.y = ((mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgDataPtr)->y; + cr929_SIL_B.z = ((mavlink_mission_item_int_t *) + cr929_SIL_DW.mission_item_msgDataPtr)->z; + + /* Outputs for Function Call SubSystem: '/dummy update_mission_item' */ + /* Chart: '/chat_update_mission_item' */ + switch (cr929_SIL_B.mission_type) { + case 1: + if (cr929_SIL_B.seq < cr929_SIL_fence_default_len) { + cr929_SIL_B.ack_g = 0U; + cr929_SIL_DW.f.command = cr929_SIL_B.command; + cr929_SIL_DW.f.param = cr929_SIL_B.param1; + cr929_SIL_DW.f.latlon[0] = cr929_SIL_B.x; + cr929_SIL_DW.f.latlon[1] = cr929_SIL_B.y; + rtb_out_et = cr929_SIL_B.seq + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; + } + + dummyFenceCount = (uint16_T)rtb_out_et; + dummyFence[dummyFenceCount - 1] = cr929_SIL_DW.f; + } else { + cr929_SIL_B.ack_g = 1U; + } + break; + + case 2: + if (cr929_SIL_B.seq < cr929_SIL_rally_default_len) { + cr929_SIL_B.ack_g = 0U; + cr929_SIL_DW.r.latlon[0] = cr929_SIL_B.x; + cr929_SIL_DW.r.latlon[1] = cr929_SIL_B.y; + cr929_SIL_DW.r.alt = cr929_SIL_B.z; + rtb_out_et = cr929_SIL_B.seq + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; + } + + dummyRallyCount = (uint16_T)rtb_out_et; + dummyRally[dummyRallyCount - 1] = cr929_SIL_DW.r; + } else { + cr929_SIL_B.ack_g = 1U; + } + break; + + default: + if (cr929_SIL_B.seq < cr929_SIL_mission_default_len) { + cr929_SIL_B.ack_g = 0U; + cr929_SIL_DW.m.frame = cr929_SIL_B.frame; + cr929_SIL_DW.m.command = cr929_SIL_B.command; + cr929_SIL_DW.m.autocont = cr929_SIL_B.autocontinue; + cr929_SIL_DW.m.params[0] = cr929_SIL_B.param1; + cr929_SIL_DW.m.params[1] = cr929_SIL_B.param2; + cr929_SIL_DW.m.params[2] = cr929_SIL_B.param3; + cr929_SIL_DW.m.params[3] = cr929_SIL_B.param4; + cr929_SIL_DW.m.latlon[0] = cr929_SIL_B.x; + cr929_SIL_DW.m.latlon[1] = cr929_SIL_B.y; + cr929_SIL_DW.m.params[4] = cr929_SIL_B.z; + rtb_out_et = cr929_SIL_B.seq + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; + } + + dummyMissionCount = (uint16_T)rtb_out_et; + dummyMission[dummyMissionCount - 1] = cr929_SIL_DW.m; + } else { + cr929_SIL_B.ack_g = 1U; + } + break; + } + + /* End of Chart: '/chat_update_mission_item' */ + /* End of Outputs for SubSystem: '/dummy update_mission_item' */ + if (cr929_SIL_B.ack_g == 0) { + cr929_SIL_B.seq++; + cr929_SIL_DW.retry = 3U; + if (cr929_SIL_B.seq >= cr929_SIL_DW.count) { + cr929_SIL_DW.mission_ack_msgData.mission_type = + cr929_SIL_B.mission_type; + cr929_SIL_DW.mission_ack_msgData.type = 0U; + cr929_SIL_sf_msg_send_mission_ack(); + guard1 = true; + } else { + guard2 = true; + } + } else { + guard4 = true; + } + } else { + if (cr929_SIL_DW.temporalCounter_i1_f >= 327U) { + guard4 = true; + } + } + } + + if (guard4) { + if (cr929_SIL_DW.retry == 0) { + cr929_SIL_DW.mission_ack_msgData.mission_type = + cr929_SIL_B.mission_type; + cr929_SIL_DW.mission_ack_msgData.type = 1U; + cr929_SIL_sf_msg_send_mission_ack(); + guard1 = true; + } else { + guard2 = true; + } + } + + if (guard3) { + cr929_SIL_DW.is_c29_mavlink_utils = cr929_SIL_IN_Idle_h; + cr929_SIL_B.enable_cnt = true; + cr929_SIL_B.enable_item = false; + } + + if (guard2) { + cr929_SIL_DW.is_c29_mavlink_utils = cr929_SIL_IN_Uploading; + cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.mission_req_int_msgData.seq = cr929_SIL_B.seq; + cr929_SIL_DW.mission_req_int_msgData.mission_type = + cr929_SIL_B.mission_type; + cr929_SIL_sf_msg_send_mission_req_int(); + cr929_SIL_DW.retry--; + } + + if (guard1) { + cr929_SIL_DW.is_c29_mavlink_utils = cr929_SIL_IN_Idle_h; + cr929_SIL_B.enable_cnt = true; + cr929_SIL_B.enable_item = false; + } + } + + cr929_SIL_sf_msg_discard_mission_cnt(); + cr929_SIL_sf_msg_discard_mission_item(); + + /* End of Chart: '/Chart_proc_mission_upload' */ + + /* Chart: '/proc_queue' */ cr929_SIL_DW.msgs_isValid = false; if (cr929_SIL_sf_msg_pop_msgs()) { cr929_SIL_B.msg = *(mavlink_message_t *)cr929_SIL_DW.msgs_msgDataPtr; - /* Outputs for Function Call SubSystem: '/dec_and_proc_each' */ - /* SwitchCase: '/Switch Case' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion' - * Logic: '/AND' - * RelationalOperator: '/Compare' - * S-Function (sfix_bitop): '/Bitwise AND' + /* Outputs for Function Call SubSystem: '/dec_and_proc_each' */ + /* SwitchCase: '/Switch Case' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion' + * Logic: '/AND' + * RelationalOperator: '/Compare' + * S-Function (sfix_bitop): '/Bitwise AND' */ switch ((int32_T)cr929_SIL_B.msg.msgid) { case MAV_MAV_TYPE_VTOL_QUADROTOR: - /* Outputs for IfAction SubSystem: '/param_req_get_dec' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/param_req_get_dec' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/Function-Call Subsystem' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_param_request_read_decode): '/mav_param_req_read' */ + /* S-Function (mav_param_request_read_decode): '/mav_param_req_read' */ mav_param_request_read_decode_Outputs_wrapper(&cr929_SIL_B.msg, &cr929_SIL_B.mav_param_req_read); - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_param_req_read' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_param_req_read' */ - /* Chart: '/Chart_proc_param_req_read' */ + /* Chart: '/Chart_proc_param_req_read' */ if (cr929_SIL_B.mav_param_req_read.target_system == cr929_SIL_P.system_id) { if (cr929_SIL_B.mav_param_req_read.param_index < 0) { @@ -29587,12 +29368,12 @@ void cr929_SIL_step(void) cr929_SIL_B.mav_param_req_read.param_id[i]; } - /* Outputs for Function Call SubSystem: '/find_idx' */ - /* S-Function (find_param_idx): '/find_idx_capi' */ + /* Outputs for Function Call SubSystem: '/find_idx' */ + /* S-Function (find_param_idx): '/find_idx_capi' */ find_param_idx_Outputs_wrapper(&cr929_SIL_B.name_h[0], &cr929_SIL_B.param_idx_b); - /* End of Outputs for SubSystem: '/find_idx' */ + /* End of Outputs for SubSystem: '/find_idx' */ if (cr929_SIL_B.param_idx_b >= 0) { cr929_SIL_DW.resp_msgData_g = (uint16_T)cr929_SIL_B.param_idx_b; cr929_SIL_sf_msg_send_resp(); @@ -29604,50 +29385,50 @@ void cr929_SIL_step(void) } } - /* End of Chart: '/Chart_proc_param_req_read' */ - /* End of Outputs for SubSystem: '/param_req_get_dec' */ + /* End of Chart: '/Chart_proc_param_req_read' */ + /* End of Outputs for SubSystem: '/param_req_get_dec' */ break; case MAV_MAV_TYPE_VTOL_TILTROTOR: - /* Outputs for IfAction SubSystem: '/param_req_lst_dec' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/param_req_lst_dec' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/Function-Call Subsystem' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_param_request_list_decode): '/mav_param_request_list' */ + /* S-Function (mav_param_request_list_decode): '/mav_param_request_list' */ mav_param_request_list_decode_Outputs_wrapper(&cr929_SIL_B.msg, &cr929_SIL_B.mav_param_request_list); - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_param_req_lst' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_param_req_lst' */ - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ if (cr929_SIL_B.mav_param_request_list.target_system == cr929_SIL_P.system_id) { cr929_SIL_DW.resp_msgData_d = 0U; cr929_SIL_sf_msg_send_resp_f(); } - /* End of Chart: '/Chart' */ - /* End of Outputs for SubSystem: '/param_req_lst_dec' */ + /* End of Chart: '/Chart' */ + /* End of Outputs for SubSystem: '/param_req_lst_dec' */ break; case MAV_MAV_TYPE_VTOL_RESERVED3: - /* Outputs for IfAction SubSystem: '/param_set_dec' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/param_set_dec' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/Function-Call Subsystem' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_param_set_decode): '/mav_param_set' */ + /* S-Function (mav_param_set_decode): '/mav_param_set' */ mav_param_set_decode_Outputs_wrapper(&cr929_SIL_B.msg, &cr929_SIL_B.mav_param_set); - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_param_set' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_param_set' */ - /* Chart: '/Chart_proc_param_set' */ + /* Chart: '/Chart_proc_param_set' */ if (cr929_SIL_B.mav_param_set.target_system == cr929_SIL_P.system_id) { for (i = 0; i < 16; i++) { @@ -29656,69 +29437,69 @@ void cr929_SIL_step(void) cr929_SIL_B.f = cr929_SIL_B.mav_param_set.param_value; - /* Outputs for Function Call SubSystem: '/f2u' */ - /* S-Function (any2byte): '/Byte Pack' */ + /* Outputs for Function Call SubSystem: '/f2u' */ + /* S-Function (any2byte): '/Byte Pack' */ - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_bv[0], &cr929_SIL_B.f, 4); - /* End of Outputs for SubSystem: '/f2u' */ + /* End of Outputs for SubSystem: '/f2u' */ cr929_SIL_B.value[0] = cr929_SIL_B.BytePack_bv[0]; cr929_SIL_B.value[1] = cr929_SIL_B.BytePack_bv[1]; cr929_SIL_B.value[2] = cr929_SIL_B.BytePack_bv[2]; cr929_SIL_B.value[3] = cr929_SIL_B.BytePack_bv[3]; cr929_SIL_B.type_i = cr929_SIL_B.mav_param_set.param_type; - /* Outputs for Function Call SubSystem: '/set_val' */ - /* S-Function (set_param_val): '/set_val_capi' */ + /* Outputs for Function Call SubSystem: '/set_val' */ + /* S-Function (set_param_val): '/set_val_capi' */ set_param_val_Outputs_wrapper(&cr929_SIL_B.name[0], &cr929_SIL_B.value[0], &cr929_SIL_B.type_i, &cr929_SIL_B.param_idx); - /* End of Outputs for SubSystem: '/set_val' */ + /* End of Outputs for SubSystem: '/set_val' */ if (cr929_SIL_B.param_idx >= 0) { cr929_SIL_DW.resp_msgData = (uint16_T)cr929_SIL_B.param_idx; cr929_SIL_sf_msg_send_resp_c(); } } - /* End of Chart: '/Chart_proc_param_set' */ - /* End of Outputs for SubSystem: '/param_set_dec' */ + /* End of Chart: '/Chart_proc_param_set' */ + /* End of Outputs for SubSystem: '/param_set_dec' */ break; case MAV_MAV_COMP_ID_USER16: case MAV_MAV_COMP_ID_USER27: - /* Outputs for IfAction SubSystem: '/mission_req_dec' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/mission_req_dec' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/Function-Call Subsystem' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_mission_request_decode): '/mav_mission_request' */ + /* S-Function (mav_mission_request_decode): '/mav_mission_request' */ mav_mission_request_decode_Outputs_wrapper(&cr929_SIL_B.msg, &cr929_SIL_B.mav_mission_request); - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_mission_req' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_mission_req' */ - /* Chart: '/Chart_proc_mission_req' */ + /* Chart: '/Chart_proc_mission_req' */ if (cr929_SIL_B.mav_mission_request.target_system == cr929_SIL_P.system_id) { cr929_SIL_B.seq_m = cr929_SIL_B.mav_mission_request.seq; cr929_SIL_B.type_f = cr929_SIL_B.mav_mission_request.mission_type; - /* Outputs for Function Call SubSystem: '/user-defined get_mission_item' */ - /* Chart: '/chat_get_mission_item' */ + /* Outputs for Function Call SubSystem: '/user-defined get_mission_item' */ + /* Chart: '/chat_get_mission_item' */ switch (cr929_SIL_B.type_f) { case 1: if (cr929_SIL_B.seq_m < dummyFenceCount) { cr929_SIL_B.ack_f = 0U; - rtb_out_gz = cr929_SIL_B.seq_m + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; + rtb_out_et = cr929_SIL_B.seq_m + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; } - expl_temp_0 = &dummyFence[(int32_T)rtb_out_gz - 1]; + expl_temp_0 = &dummyFence[(int32_T)rtb_out_et - 1]; cr929_SIL_B.frame_m = 5U; cr929_SIL_B.command_a = expl_temp_0->command; cr929_SIL_B.autocont = 0U; @@ -29733,12 +29514,12 @@ void cr929_SIL_step(void) case 2: if (cr929_SIL_B.seq_m < dummyRallyCount) { cr929_SIL_B.ack_f = 0U; - rtb_out_gz = cr929_SIL_B.seq_m + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; + rtb_out_et = cr929_SIL_B.seq_m + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; } - expl_temp_1 = &dummyRally[(int32_T)rtb_out_gz - 1]; + expl_temp_1 = &dummyRally[(int32_T)rtb_out_et - 1]; cr929_SIL_B.command_a = 5100U; cr929_SIL_B.x_e = expl_temp_1->latlon[0]; cr929_SIL_B.y_k = expl_temp_1->latlon[1]; @@ -29751,12 +29532,12 @@ void cr929_SIL_step(void) default: if (cr929_SIL_B.seq_m < dummyMissionCount) { cr929_SIL_B.ack_f = 0U; - rtb_out_gz = cr929_SIL_B.seq_m + 1U; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; + rtb_out_et = cr929_SIL_B.seq_m + 1U; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; } - expl_temp = &dummyMission[(int32_T)rtb_out_gz - 1]; + expl_temp = &dummyMission[(int32_T)rtb_out_et - 1]; cr929_SIL_B.frame_m = expl_temp->frame; cr929_SIL_B.command_a = expl_temp->command; cr929_SIL_B.autocont = expl_temp->autocont; @@ -29773,8 +29554,8 @@ void cr929_SIL_step(void) break; } - /* End of Chart: '/chat_get_mission_item' */ - /* End of Outputs for SubSystem: '/user-defined get_mission_item' */ + /* End of Chart: '/chat_get_mission_item' */ + /* End of Outputs for SubSystem: '/user-defined get_mission_item' */ if (cr929_SIL_B.ack_f == 0) { cr929_SIL_DW.send_item_msgData.current = (uint8_T) ((cr929_SIL_B.Subtract_p == cr929_SIL_B.seq_m) && @@ -29799,25 +29580,25 @@ void cr929_SIL_step(void) } } - /* End of Chart: '/Chart_proc_mission_req' */ - /* End of Outputs for SubSystem: '/mission_req_dec' */ + /* End of Chart: '/Chart_proc_mission_req' */ + /* End of Outputs for SubSystem: '/mission_req_dec' */ break; case MAV_MAV_COMP_ID_USER17: - /* Outputs for IfAction SubSystem: '/mission_set_cur_dec' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/mission_set_cur_dec' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/Function-Call Subsystem' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_mission_set_current_decode): '/mav_mission_set_current' */ + /* S-Function (mav_mission_set_current_decode): '/mav_mission_set_current' */ mav_mission_set_current_decode_Outputs_wrapper(&cr929_SIL_B.msg, &cr929_SIL_B.mav_mission_set_current); - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_mission_set_cur' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_mission_set_cur' */ - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ if (cr929_SIL_B.mav_mission_set_current.target_system == cr929_SIL_P.system_id) { cr929_SIL_DW.req_cur_msgData_o = @@ -29825,31 +29606,31 @@ void cr929_SIL_step(void) cr929_SIL_sf_msg_send_req_cur(); } - /* End of Chart: '/Chart' */ - /* End of Outputs for SubSystem: '/mission_set_cur_dec' */ + /* End of Chart: '/Chart' */ + /* End of Outputs for SubSystem: '/mission_set_cur_dec' */ break; case MAV_MAV_COMP_ID_USER19: - /* Outputs for IfAction SubSystem: '/mission_req_lst_dec' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/mission_req_lst_dec' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/Function-Call Subsystem' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_mission_request_list_decode): '/mav_mission_request_list' */ + /* S-Function (mav_mission_request_list_decode): '/mav_mission_request_list' */ mav_mission_request_list_decode_Outputs_wrapper(&cr929_SIL_B.msg, &cr929_SIL_B.mav_mission_request_list); - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_mission_req_lst' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_mission_req_lst' */ - /* Chart: '/Chart_proc_mission_req_lst' */ + /* Chart: '/Chart_proc_mission_req_lst' */ if (cr929_SIL_B.mav_mission_request_list.target_system == cr929_SIL_P.system_id) { cr929_SIL_B.type = cr929_SIL_B.mav_mission_request_list.mission_type; - /* Outputs for Function Call SubSystem: '/user-defined get_mission_cnt' */ - /* Chart: '/chat_get_mission_cnt' */ + /* Outputs for Function Call SubSystem: '/user-defined get_mission_cnt' */ + /* Chart: '/chat_get_mission_cnt' */ switch (cr929_SIL_B.type) { case 1: cr929_SIL_B.cnt = dummyFenceCount; @@ -29864,141 +29645,141 @@ void cr929_SIL_step(void) break; } - /* End of Chart: '/chat_get_mission_cnt' */ - /* End of Outputs for SubSystem: '/user-defined get_mission_cnt' */ + /* End of Chart: '/chat_get_mission_cnt' */ + /* End of Outputs for SubSystem: '/user-defined get_mission_cnt' */ cr929_SIL_DW.send_cnt_msgData_p.count = cr929_SIL_B.cnt; cr929_SIL_DW.send_cnt_msgData_p.mission_type = cr929_SIL_B.type; cr929_SIL_sf_msg_send_send_cnt(); } - /* End of Chart: '/Chart_proc_mission_req_lst' */ - /* End of Outputs for SubSystem: '/mission_req_lst_dec' */ + /* End of Chart: '/Chart_proc_mission_req_lst' */ + /* End of Outputs for SubSystem: '/mission_req_lst_dec' */ break; case MAV_MAV_COMP_ID_USER20: - /* Outputs for IfAction SubSystem: '/mission_cnt_dec' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/mission_cnt_dec' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/Function-Call Subsystem' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_mission_count_decode): '/mav_mission_count' */ + /* S-Function (mav_mission_count_decode): '/mav_mission_count' */ mav_mission_count_decode_Outputs_wrapper(&cr929_SIL_B.msg, &cr929_SIL_B.mav_mission_count); - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_mission_cnt' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_mission_cnt' */ - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ if ((cr929_SIL_B.mav_mission_count.target_system == cr929_SIL_P.system_id) && cr929_SIL_B.enable_cnt) { cr929_SIL_DW.send_cnt_msgData = cr929_SIL_B.mav_mission_count; cr929_SIL_sf_msg_send_send_cnt_h(); } - /* End of Chart: '/Chart' */ - /* End of Outputs for SubSystem: '/mission_cnt_dec' */ + /* End of Chart: '/Chart' */ + /* End of Outputs for SubSystem: '/mission_cnt_dec' */ break; case MAV_MAV_COMP_ID_USER21: - /* Outputs for IfAction SubSystem: '/mission_clr_all_dec' incorporates: - * ActionPort: '/Action Port' - */ - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/Function-Call Subsystem' - */ - /* S-Function (mav_mission_clear_all_decode): '/mav_mission_clear_all' */ - mav_mission_clear_all_decode_Outputs_wrapper(&cr929_SIL_B.msg, - &cr929_SIL_B.mav_mission_clear_all); - - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_mission_clr_all' - */ - /* Chart: '/Chart_proc_mission_clr_all' */ - if (cr929_SIL_B.mav_mission_clear_all.target_system == - cr929_SIL_P.system_id) { - cr929_SIL_B.mission_type_i = - cr929_SIL_B.mav_mission_clear_all.mission_type; - - /* Outputs for Function Call SubSystem: '/dummy clear_mission' */ - cr929_SIL_dummyclear_mission(cr929_SIL_B.mission_type_i, - &cr929_SIL_B.ack_dm); - - /* End of Outputs for SubSystem: '/dummy clear_mission' */ - cr929_SIL_DW.send_ack_msgData_c.mission_type = - cr929_SIL_B.mission_type_i; - cr929_SIL_DW.send_ack_msgData_c.type = cr929_SIL_B.ack_dm; - cr929_SIL_sf_msg_send_send_ack_h(); - } - - /* End of Chart: '/Chart_proc_mission_clr_all' */ - /* End of Outputs for SubSystem: '/mission_clr_all_dec' */ - break; - - case MAV_MAV_COMP_ID_USER49: - /* Outputs for IfAction SubSystem: '/mission_item_int_dec' incorporates: + /* Outputs for IfAction SubSystem: '/mission_clr_all_dec' incorporates: * ActionPort: '/Action Port' */ /* Chart: '/parse_and_proc' incorporates: * SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_mission_item_int_decode): '/mav_mission_item_int' */ + /* S-Function (mav_mission_clear_all_decode): '/mav_mission_clear_all' */ + mav_mission_clear_all_decode_Outputs_wrapper(&cr929_SIL_B.msg, + &cr929_SIL_B.mav_mission_clear_all); + + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_mission_clr_all' + */ + /* Chart: '/Chart_proc_mission_clr_all' */ + if (cr929_SIL_B.mav_mission_clear_all.target_system == + cr929_SIL_P.system_id) { + cr929_SIL_B.mission_type_i = + cr929_SIL_B.mav_mission_clear_all.mission_type; + + /* Outputs for Function Call SubSystem: '/dummy clear_mission' */ + cr929_SIL_dummyclear_mission(cr929_SIL_B.mission_type_i, + &cr929_SIL_B.ack_d); + + /* End of Outputs for SubSystem: '/dummy clear_mission' */ + cr929_SIL_DW.send_ack_msgData_c.mission_type = + cr929_SIL_B.mission_type_i; + cr929_SIL_DW.send_ack_msgData_c.type = cr929_SIL_B.ack_d; + cr929_SIL_sf_msg_send_send_ack_h(); + } + + /* End of Chart: '/Chart_proc_mission_clr_all' */ + /* End of Outputs for SubSystem: '/mission_clr_all_dec' */ + break; + + case MAV_MAV_COMP_ID_USER49: + /* Outputs for IfAction SubSystem: '/mission_item_int_dec' incorporates: + * ActionPort: '/Action Port' + */ + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/Function-Call Subsystem' + */ + /* S-Function (mav_mission_item_int_decode): '/mav_mission_item_int' */ mav_mission_item_int_decode_Outputs_wrapper(&cr929_SIL_B.msg, &cr929_SIL_B.mav_mission_item_int); - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_mission_item' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_mission_item' */ - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ if ((cr929_SIL_B.mav_mission_item_int.target_system == cr929_SIL_P.system_id) && cr929_SIL_B.enable_item) { cr929_SIL_DW.send_req_msgData = cr929_SIL_B.mav_mission_item_int; cr929_SIL_sf_msg_send_send_req(); } - /* End of Chart: '/Chart' */ - /* End of Outputs for SubSystem: '/mission_item_int_dec' */ + /* End of Chart: '/Chart' */ + /* End of Outputs for SubSystem: '/mission_item_int_dec' */ break; case MAV_MAV_COMP_ID_USER52: - /* Outputs for IfAction SubSystem: '/cmd_long_dec' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/cmd_long_dec' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/Function-Call Subsystem' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_command_long_decode): '/mav_command_long' */ + /* S-Function (mav_command_long_decode): '/mav_command_long' */ mav_command_long_decode_Outputs_wrapper(&cr929_SIL_B.msg, &cr929_SIL_B.mav_command_long); - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_cmd_long' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_cmd_long' */ - /* If: '/If' incorporates: - * Constant: '/system_id' + /* If: '/If' incorporates: + * Constant: '/system_id' */ if ((cr929_SIL_B.mav_command_long.target_system == cr929_SIL_P.system_id) || (cr929_SIL_B.mav_command_long.target_system == 0)) { - /* Outputs for IfAction SubSystem: '/proc_by_id' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/proc_by_id' incorporates: + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' */ + /* SwitchCase: '/Switch Case' */ if (cr929_SIL_B.mav_command_long.command == 520) { - /* Outputs for IfAction SubSystem: '/REQUEST_AUTOPILOT_CAPABILITIES' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/REQUEST_AUTOPILOT_CAPABILITIES' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/send_auto_hw' */ + /* Chart: '/send_auto_hw' */ cr929_SIL_DW.ap_ver_msgData.capabilities = 57348U; cr929_SIL_DW.ap_ver_msgData.flight_sw_version = 17039616U; cr929_SIL_sf_msg_send_ap_ver(); - /* End of Outputs for SubSystem: '/REQUEST_AUTOPILOT_CAPABILITIES' */ + /* End of Outputs for SubSystem: '/REQUEST_AUTOPILOT_CAPABILITIES' */ } else { - /* Outputs for IfAction SubSystem: '/default' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/default' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/send_cmd' */ + /* Chart: '/send_cmd' */ cr929_SIL_DW.msg_msgData.id = cr929_SIL_B.mav_command_long.command; cr929_SIL_DW.msg_msgData.params[0] = cr929_SIL_B.mav_command_long.param1; @@ -30016,40 +29797,40 @@ void cr929_SIL_step(void) cr929_SIL_B.mav_command_long.param7; cr929_SIL_sf_msg_send_msg(); - /* End of Outputs for SubSystem: '/default' */ + /* End of Outputs for SubSystem: '/default' */ } - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/proc_by_id' */ + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/proc_by_id' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/cmd_long_dec' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/cmd_long_dec' */ break; case MAV_MAV_COMP_ID_USER46: - /* Outputs for IfAction SubSystem: '/rc_channels_override_dec' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/rc_channels_override_dec' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/Function-Call Subsystem' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_rc_channels_override_decode): '/mav_rc_channels_override' */ + /* S-Function (mav_rc_channels_override_decode): '/mav_rc_channels_override' */ mav_rc_channels_override_decode_Outputs_wrapper(&cr929_SIL_B.msg, &cr929_SIL_B.mav_rc_channels_override); - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_rc_chs_ov' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_rc_chs_ov' */ - /* If: '/If' incorporates: - * Constant: '/system_id' + /* If: '/If' incorporates: + * Constant: '/system_id' */ if (cr929_SIL_B.mav_rc_channels_override.target_system == cr929_SIL_P.system_id) { - /* Outputs for IfAction SubSystem: '/proc_by_id' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/proc_by_id' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion: '/BusConversion_InsertedFor_rc_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_rc_at_inport_0' */ cr929_SIL_B.channels_e[0] = cr929_SIL_B.mav_rc_channels_override.chan1_raw; cr929_SIL_B.channels_e[1] = @@ -30087,103 +29868,103 @@ void cr929_SIL_step(void) cr929_SIL_B.channels_e[17] = cr929_SIL_B.mav_rc_channels_override.chan18_raw; - /* SignalConversion: '/Signal Copy' */ + /* SignalConversion: '/Signal Copy' */ cr929_SIL_B.id_h = cr929_SIL_B.mav_rc_channels_override.target_component; - /* UnitDelay: '/Unit Delay' */ + /* UnitDelay: '/Unit Delay' */ cr929_SIL_B.seq_j = cr929_SIL_DW.UnitDelay_DSTATE_em; - /* Sum: '/Sum' incorporates: - * Constant: '/one' - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum' incorporates: + * Constant: '/one' + * UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_em = (uint8_T)(1U + cr929_SIL_B.seq_j); - /* SignalConversion: '/TmpBufferAttrueOutport1' incorporates: - * Constant: '/true' + /* SignalConversion: '/TmpBufferAttrueOutport1' incorporates: + * Constant: '/true' */ cr929_SIL_B.valid_o = true; - /* End of Outputs for SubSystem: '/proc_by_id' */ + /* End of Outputs for SubSystem: '/proc_by_id' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ for (i = 0; i < 18; i++) { - /* SignalConversion: '/BusConversion_InsertedFor_rc_at_inport_0' */ + /* SignalConversion: '/BusConversion_InsertedFor_rc_at_inport_0' */ cr929_SIL_B.channels[i] = cr929_SIL_B.channels_e[i]; } - /* End of Outputs for SubSystem: '/rc_channels_override_dec' */ + /* End of Outputs for SubSystem: '/rc_channels_override_dec' */ break; case MAV_MAV_AUTOPILOT_FP: - /* Outputs for IfAction SubSystem: '/set_mode_dec' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/set_mode_dec' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/Function-Call Subsystem' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_set_mode_decode): '/mav_set_mode' */ + /* S-Function (mav_set_mode_decode): '/mav_set_mode' */ mav_set_mode_decode_Outputs_wrapper(&cr929_SIL_B.msg, &cr929_SIL_B.mav_set_mode); - /* End of Outputs for SubSystem: '/set_mode_dec' */ + /* End of Outputs for SubSystem: '/set_mode_dec' */ break; case MAV_MAVLINK_MSG_ID_GPS_RTCM_DATA: - /* Outputs for IfAction SubSystem: '/gps_rtcm_data' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/gps_rtcm_data' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/Function-Call Subsystem' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_gps_rtcm_data_decode): '/mav_gps_rtcm_data' */ + /* S-Function (mav_gps_rtcm_data_decode): '/mav_gps_rtcm_data' */ mav_gps_rtcm_data_decode_Outputs_wrapper(&cr929_SIL_B.msg, &cr929_SIL_B.mav_gps_rtcm_data); - /* End of Outputs for SubSystem: '/gps_rtcm_data' */ + /* End of Outputs for SubSystem: '/gps_rtcm_data' */ break; case MAV_MAVLINK_MSG_ID_SERIAL_CONTROL: - /* Outputs for IfAction SubSystem: '/gps_rtcm_data1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/gps_rtcm_data1' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/Function-Call Subsystem' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_serial_control_decode): '/mav_serial_control' */ + /* S-Function (mav_serial_control_decode): '/mav_serial_control' */ mav_serial_control_decode_Outputs_wrapper(&cr929_SIL_B.msg, &cr929_SIL_B.mav_serial_control); - /* Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_serial_control' + /* Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_serial_control' */ - /* Outputs for Enabled SubSystem: '/Subsystem' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Subsystem' incorporates: + * EnablePort: '/Enable' */ if ((cr929_SIL_B.mav_serial_control.device == 10) && ((cr929_SIL_B.mav_serial_control.flags & 4U) != 0U)) { - /* S-Function (hal_serial_cmdline): '/S-Function' */ + /* S-Function (hal_serial_cmdline): '/S-Function' */ hal_serial_cmdline_Outputs_wrapper (&cr929_SIL_B.mav_serial_control.data[0], &cr929_SIL_B.mav_serial_control.count, &cr929_SIL_B.SFunction_c); } - /* End of Outputs for SubSystem: '/Subsystem' */ - /* End of Outputs for SubSystem: '/gps_rtcm_data1' */ + /* End of Outputs for SubSystem: '/Subsystem' */ + /* End of Outputs for SubSystem: '/gps_rtcm_data1' */ break; } - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/dec_and_proc_each' */ + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/dec_and_proc_each' */ } cr929_SIL_sf_msg_discard_msgs(); - /* End of Chart: '/proc_queue' */ + /* End of Chart: '/proc_queue' */ - /* Chart: '/req_cur' */ + /* Chart: '/req_cur' */ if (cr929_SIL_DW.temporalCounter_i1_ip < 4095U) { cr929_SIL_DW.temporalCounter_i1_ip++; } @@ -30208,7 +29989,7 @@ void cr929_SIL_step(void) cr929_SIL_sf_msg_discard_req_cur(); - /* End of Chart: '/req_cur' */ + /* End of Chart: '/req_cur' */ /* DataStoreWrite: '/Data Store Write' */ cr929_SIL_DW.CC = cr929_SIL_B.Merge_i; @@ -30218,42 +29999,45 @@ void cr929_SIL_step(void) */ cr929_SIL_B.DataTypeConversion_m = (uint8_T)cr929_SIL_P.system_id; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' * Constant: '/Constant' */ cr929_SIL_B.BusAssignment_d = cr929_SIL_rtZExtU_FlightControlLaw_T; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' - * DataTypeConversion: '/Data Type Conversion' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' + * DataTypeConversion: '/Data Type Conversion' */ cr929_SIL_B.BusAssignment_d.ResetControlLaw_Sim_hl = cr929_SIL_B.Merge.comac_ResetControlLaw; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * BusAssignment: '/Bus Assignment' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * BusAssignment: '/Bus Assignment' */ cr929_SIL_B.BusAssignment_d.ANA_Bus.NoseLeft_RUDTrimPanel_b = cr929_SIL_B.Merge.comac_NoseLeft_RUDTrimPanel; - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * BusAssignment: '/Bus Assignment' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * BusAssignment: '/Bus Assignment' */ cr929_SIL_B.BusAssignment_d.ANA_Bus.NoseRight_RUDTrimPanel_b = cr929_SIL_B.Merge.comac_NoseRight_RUDTrimPanel; - /* DataTypeConversion: '/Data Type Conversion10' incorporates: - * Gain: '/gain4' + /* DataTypeConversion: '/Data Type Conversion10' incorporates: + * Gain: '/gain4' */ rtb_LookupTableDynamic_i = 30.0F * cr929_SIL_B.Merge.rc.yaw_cmd; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion3' - * Gain: '/gain' - * Gain: '/gain2' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion3' + * DataTypeConversion: '/Data Type Conversion4' + * DataTypeConversion: '/Data Type Conversion5' + * Gain: '/gain' + * Gain: '/gain2' */ cr929_SIL_B.BusAssignment_d.ANA_Bus.Arm_RUDTrimPanel_b = cr929_SIL_B.Merge.comac_Arm_RUDTrimPanel; @@ -30268,79 +30052,57 @@ void cr929_SIL_step(void) cr929_SIL_B.BusAssignment_d.ANA_Bus.YawCmdCP_Pedal_deg_d = rtb_LookupTableDynamic_i; cr929_SIL_B.BusAssignment_d.ANA_Bus.YawCmdFO_Pedal_deg_d = 0.0; - - /* Gain: '/Gain' incorporates: - * Constant: '/Constant BP' - * Sum: '/subtract' - */ - u0_0 = ((real32_T)cr929_SIL_B.Merge.rc.chan_raw[10] - 1500.0F) * 0.0025F; - - /* Saturate: '/Saturation' */ - if (u0_0 > 1.0F) { - u0_0 = 1.0F; - } else { - if (u0_0 < -1.0F) { - u0_0 = -1.0F; - } - } - - /* End of Saturate: '/Saturation' */ - - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' - * DataTypeConversion: '/Data Type Conversion4' - * DataTypeConversion: '/Data Type Conversion5' - * Lookup_n-D: '/1-D Lookup Table' - */ - cr929_SIL_B.BusAssignment_d.ANA_Bus.SBCmd_SBHandle_deg_d = - look1_iflf_binlxpw(u0_0, rtCP_uDLookupTable_bp01Data_o, - rtCP_uDLookupTable_tableData_m, 1U); + cr929_SIL_B.BusAssignment_d.ANA_Bus.SBCmd_SBHandle_deg_d = 0.0; cr929_SIL_B.BusAssignment_d.ANA_Bus.PrioritySwitchFO_SSU_b = cr929_SIL_B.Merge.comac_PrioritySwitchFO; cr929_SIL_B.BusAssignment_d.ANA_Bus.PrioritySwitchCP_SSU_b = cr929_SIL_B.Merge.comac_PrioritySwitchCP; - /* Sqrt: '/Sqrt' incorporates: - * Constant: '/Constant' - * Sqrt: '/Sqrt1' + /* Outputs for IfAction SubSystem: '/COMAC' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If' incorporates: + * Constant: '/Constant' + * Sqrt: '/Sqrt1' + * Sqrt: '/Sqrt' + * Sqrt: '/Sqrt1' */ /* Unit Conversion - from: m to: ft Expression: output = (3.28084*input) + (0) */ - rtb_subtract1_d = sqrtf(1.0F / cr929_SIL_P.K); + rtb_add2 = sqrtf(1.0F / cr929_SIL_P.K); - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' - * DataTypeConversion: '/Data Type Conversion1' - * Product: '/Product' - * Sqrt: '/Sqrt' - * UnitConversion: '/Unit Conversion' + /* End of Outputs for SubSystem: '/COMAC' */ + + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' + * DataTypeConversion: '/Data Type Conversion1' + * Product: '/Product' + * Sqrt: '/Sqrt' + * UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: m/s to: kn Expression: output = (1.94384*input) + (0) */ cr929_SIL_B.BusAssignment_d.u29_Bus.AirData.CAS_AD_kts_d = - cr929_SIL_B.BusAssignment_h.IAS * rtb_subtract1_d * 1.94384444F; + cr929_SIL_B.BusAssignment_h.IAS * rtb_add2 * 1.94384444F; - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * Product: '/Product1' - * Sqrt: '/Sqrt' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * Product: '/Product1' + * Sqrt: '/Sqrt' */ - rtb_LookupTableDynamic_i = cr929_SIL_B.BusAssignment_h.Mach * - rtb_subtract1_d; + rtb_LookupTableDynamic_i = cr929_SIL_B.BusAssignment_h.Mach * rtb_add2; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' - * Constant: '/Constant1' - * Constant: '/Constant2' - * Gain: '/gain' - * Math: '/Math Function' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' + * Constant: '/Constant1' + * Gain: '/gain' * Outport: '/traj' - * Product: '/Product2' - * Product: '/Product3' - * Product: '/Product4' - * Sqrt: '/Sqrt' - * UnitConversion: '/Unit Conversion' + * Product: '/Product2' + * Product: '/Product3' + * Product: '/Product4' + * Sqrt: '/Sqrt' * UnitConversion: '/Unit Conversion' - * UnitConversion: '/Unit Conversion' + * UnitConversion: '/Unit Conversion' + * UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: m/s to: kn Expression: output = (1.94384*input) + (0) */ @@ -30350,15 +30112,15 @@ void cr929_SIL_step(void) cr929_SIL_B.BusAssignment_h.asl_baro; cr929_SIL_B.BusAssignment_d.u29_Bus.AirData.Mach_AD_d = rtb_LookupTableDynamic_i; - cr929_SIL_B.BusAssignment_d.u29_Bus.AirData.Qc_AD_milibar_d = powf(1.0F / - cr929_SIL_P.K, 3.0F) * cr929_SIL_B.BusAssignment_h.qbar * 0.01F; + cr929_SIL_B.BusAssignment_d.u29_Bus.AirData.Qc_AD_milibar_d = 1.0F / + cr929_SIL_P.K * cr929_SIL_B.BusAssignment_h.qbar * 0.01F; cr929_SIL_B.BusAssignment_d.u29_Bus.AirData.TAS_AD_kts_d = - cr929_SIL_B.BusAssignment_h.TAS * rtb_subtract1_d * 1.94384444F; + cr929_SIL_B.BusAssignment_h.TAS * rtb_add2 * 1.94384444F; cr929_SIL_B.BusAssignment_d.u29_Bus.AirData.VS_AD_fpm_d = 196.850388F * - (cr929_SIL_Y.traj.hdot * rtb_subtract1_d); + (cr929_SIL_Y.traj.hdot * rtb_add2); - /* Sqrt: '/Sqrt' incorporates: - * Constant: '/Constant1' + /* Sqrt: '/Sqrt' incorporates: + * Constant: '/Constant1' */ /* Unit Conversion - from: rad to: deg Expression: output = (57.2958*input) + (0) */ @@ -30366,107 +30128,107 @@ void cr929_SIL_step(void) Expression: output = (57.2958*input) + (0) */ rtb_Switch2_ki = sqrtf(cr929_SIL_P.K); - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * Product: '/Product' - * UnitConversion: '/Unit Conversion' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * Product: '/Product' + * UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: rad/s to: deg/s Expression: output = (57.2958*input) + (0) */ rtb_LookupTableDynamic_i = cr929_SIL_B.BusAssignment_h.p * rtb_Switch2_ki * 57.2957802F; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' - * DataTypeConversion: '/Data Type Conversion3' - * Product: '/Product1' - * UnitConversion: '/Unit Conversion' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' + * DataTypeConversion: '/Data Type Conversion3' + * Product: '/Product1' + * UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: rad/s to: deg/s Expression: output = (57.2958*input) + (0) */ cr929_SIL_B.BusAssignment_d.u29_Bus.AttitudeData_IRU.PitchRateB_IRU429_degs_d = cr929_SIL_B.BusAssignment_h.q * rtb_Switch2_ki * 57.2957802F; - /* Product: '/Product2' */ + /* Product: '/Product2' */ rtb_Switch2_ki *= cr929_SIL_B.BusAssignment_h.r; - /* UnitConversion: '/Unit Conversion' */ + /* UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: rad/s to: deg/s Expression: output = (57.2958*input) + (0) */ rtb_Switch2_ki *= 57.2957802F; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' - * DataTypeConversion: '/Data Type Conversion4' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' + * DataTypeConversion: '/Data Type Conversion4' */ cr929_SIL_B.BusAssignment_d.u29_Bus.AttitudeData_IRU.YawRateB_IRU429_degs_d = rtb_Switch2_ki; - /* DataTypeConversion: '/Data Type Conversion6' incorporates: - * BusAssignment: '/Bus Assignment' + /* DataTypeConversion: '/Data Type Conversion6' incorporates: + * BusAssignment: '/Bus Assignment' * Constant: '/Constant Single42' - * Product: '/divide1' + * Product: '/divide1' */ cr929_SIL_B.BusAssignment_d.u29_Bus.AttitudeData_IRU.NyB_IRU429_g_d = cr929_SIL_B.BusAssignment_h.ay / 9.8F; - /* Gain: '/gain' incorporates: - * BusAssignment: '/Bus Assignment' + /* Gain: '/gain' incorporates: + * BusAssignment: '/Bus Assignment' * Constant: '/Constant Single42' - * Constant: '/Constant' - * Product: '/divide2' - * Sum: '/Sum' + * Constant: '/Constant' + * Product: '/divide2' + * Sum: '/Sum' */ cr929_SIL_B.BusAssignment_d.u29_Bus.AttitudeData_IRU.NzB_IRU429_g_d = -(cr929_SIL_B.BusAssignment_h.az / 9.8F + 1.0); - /* DataTypeConversion: '/Data Type Conversion8' incorporates: - * BusAssignment: '/Bus Assignment' + /* DataTypeConversion: '/Data Type Conversion8' incorporates: + * BusAssignment: '/Bus Assignment' * Outport: '/traj' - * UnitConversion: '/Unit Conversion' + * UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: rad to: deg Expression: output = (57.2958*input) + (0) */ cr929_SIL_B.BusAssignment_d.u29_Bus.AttitudeData_IRU.FPA_IRU429_deg_d = 57.2957802F * cr929_SIL_Y.traj.gamma; - /* DataTypeConversion: '/Data Type Conversion10' incorporates: + /* DataTypeConversion: '/Data Type Conversion10' incorporates: * Outport: '/traj' - * Product: '/Product4' - * UnitConversion: '/Unit Conversion' + * Product: '/Product4' + * UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: m/s to: kn Expression: output = (1.94384*input) + (0) */ /* Unit Conversion - from: m/s to: ft/min Expression: output = (196.85*input) + (0) */ - rtb_Merge2 = 196.850388F * (cr929_SIL_Y.traj.hdot * rtb_subtract1_d); + rtb_Merge2 = 196.850388F * (cr929_SIL_Y.traj.hdot * rtb_add2); - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: * Outport: '/traj' */ /* Unit Conversion - from: rad to: deg Expression: output = (57.2958*input) + (0) */ if (cr929_SIL_Y.traj.v_g > 3.0F) { - rtb_phi_c_c = cr929_SIL_Y.traj.psi_t; + rtb_phi_c_h = cr929_SIL_Y.traj.psi_t; } else { - rtb_phi_c_c = cr929_SIL_B.BusAssignment_h.psi; + rtb_phi_c_h = cr929_SIL_B.BusAssignment_h.psi; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataTypeConversion: '/Data Type Conversion11' incorporates: - * UnitConversion: '/Unit Conversion' + /* DataTypeConversion: '/Data Type Conversion11' incorporates: + * UnitConversion: '/Unit Conversion' */ - rtb_Merge2_h = 57.2957802F * rtb_phi_c_c; + rtb_Merge2_h = 57.2957802F * rtb_phi_c_h; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' * Constant: '/Constant Single42' * Outport: '/traj' - * Product: '/Product3' - * Product: '/divide' - * UnitConversion: '/Unit Conversion' - * UnitConversion: '/Unit Conversion' - * UnitConversion: '/Unit Conversion' + * Product: '/Product3' + * Product: '/divide' + * UnitConversion: '/Unit Conversion' + * UnitConversion: '/Unit Conversion' + * UnitConversion: '/Unit Conversion' */ cr929_SIL_B.BusAssignment_d.u29_Bus.AttitudeData_IRU.RollAngle_IRU429_deg_d = 57.2957802F * cr929_SIL_B.BusAssignment_h.phi; @@ -30477,59 +30239,59 @@ void cr929_SIL_step(void) cr929_SIL_B.BusAssignment_d.u29_Bus.AttitudeData_IRU.NxB_IRU429_g_d = cr929_SIL_B.BusAssignment_h.ax / 9.8F; cr929_SIL_B.BusAssignment_d.u29_Bus.AttitudeData_IRU.GS_IRU429_kts_d = - cr929_SIL_Y.traj.v_g * rtb_subtract1_d * 1.94384444F; + cr929_SIL_Y.traj.v_g * rtb_add2 * 1.94384444F; cr929_SIL_B.BusAssignment_d.u29_Bus.AttitudeData_IRU.VS_IRU429_fpm_d = rtb_Merge2; cr929_SIL_B.BusAssignment_d.u29_Bus.AttitudeData_IRU.HDG_IRU429_deg_d = rtb_Merge2_h; - /* DataTypeConversion: '/Data Type Conversion4' incorporates: + /* DataTypeConversion: '/Data Type Conversion4' incorporates: * Outport: '/traj' - * UnitConversion: '/Unit Conversion' + * UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: m to: ft Expression: output = (3.28084*input) + (0) */ rtb_Merge2_h = 3.28084F * cr929_SIL_Y.traj.rel_alt; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' */ cr929_SIL_B.BusAssignment_d.u29_Bus.RA.Altitude_RA_ft_d = rtb_Merge2_h; - /* DataTypeConversion: '/Data Type Conversion8' incorporates: - * UnitConversion: '/Unit Conversion' + /* DataTypeConversion: '/Data Type Conversion8' incorporates: + * UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: rad to: deg Expression: output = (57.2958*input) + (0) */ rtb_Merge2_h = 57.2957802F * cr929_SIL_B.BusAssignment_h.alpha; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * UnitConversion: '/Unit Conversion' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: rad to: deg Expression: output = (57.2958*input) + (0) */ rtb_Merge2 = 57.2957802F * cr929_SIL_B.BusAssignment_h.beta; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' */ cr929_SIL_B.BusAssignment_d.u29_Bus.Vane.AOA_Body_deg_d = rtb_Merge2_h; cr929_SIL_B.BusAssignment_d.u29_Bus.Vane.AOS_Body_deg_d = rtb_Merge2; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant2' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' */ cr929_SIL_B.BusAssignment_d.ADB_Bus.DMRS.RollRateB_DMRS_degs_d = 0.0; cr929_SIL_B.BusAssignment_d.ADB_Bus.DMRS.PitchRateB_DMRS_degs_d = 0.0; cr929_SIL_B.BusAssignment_d.ADB_Bus.DMRS.YawRateB_DMRS_degs_d = 0.0; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' - * Constant: '/Constant' - * Constant: '/Constant1' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' + * Constant: '/Constant' + * Constant: '/Constant1' * UnitDelay: '/Unit Delay' */ cr929_SIL_B.BusAssignment_d.ADB_Bus.REU.FlapPOS_SFECU_deg_d = 24.0; @@ -30579,11 +30341,11 @@ void cr929_SIL_step(void) cr929_SIL_B.BusAssignment_d.ADB_Bus.REU.THSPOS_Motor_Sensor_deg_d = 0.0; cr929_SIL_B.BusAssignment_d.ADB_Bus.REU.PedalMotorPOS_Motor_deg_d = 0.0; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' - * S-Function (sfix_bitop): '/Bitwise AND1' - * S-Function (sfix_bitop): '/Bitwise AND2' - * S-Function (sfix_bitop): '/Bitwise AND3' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' + * S-Function (sfix_bitop): '/Bitwise AND1' + * S-Function (sfix_bitop): '/Bitwise AND2' + * S-Function (sfix_bitop): '/Bitwise AND3' */ cr929_SIL_B.BusAssignment_d.u64_BUS.LGCU.WOWLeft_LGCU_b = (uint8_T) (cr929_SIL_B.BusAssignment_h.bear_state & 1); @@ -30600,8 +30362,8 @@ void cr929_SIL_step(void) cr929_SIL_B.BusAssignment_d.u64_BUS.LGCU.WheelSpeedLeft_LGCU_kts_d = 0.0; cr929_SIL_B.BusAssignment_d.u64_BUS.LGCU.WheelSpeedRight_LGCU_kts_d = 0.0; - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' */ cr929_SIL_B.BusAssignment_d.u64_BUS.FADEC.TRALeft_FADEC_deg_f = 0.0; cr929_SIL_B.BusAssignment_d.u64_BUS.FADEC.TRARight_FADEC_deg_f = 0.0; @@ -30612,20 +30374,20 @@ void cr929_SIL_step(void) cr929_SIL_B.BusAssignment_d.u64_BUS.FADEC.ReverseLeft_FADEC_b = 0U; cr929_SIL_B.BusAssignment_d.u64_BUS.FADEC.ReverseRight_FADEC_b = 0U; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * Constant: '/Constant Single4' - * UnitConversion: '/Unit Conversion' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * Gain: '/Gain' + * UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: kg to: lbm Expression: output = (2.20462*input) + (0) */ - rtb_Merge2_h = 2.20462251F * cr929_SIL_P.m; + rtb_Merge2_h = 1.0F / cr929_SIL_P.K * cr929_SIL_B.Merge.mass_est * + 2.20462251F; - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant Single4' - * Constant: '/Constant' - * Constant: '/Constant1' + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' * Input0 Data Type: Floating Point real32_T * Input1 Data Type: Floating Point real32_T * Input2 Data Type: Floating Point real32_T @@ -30634,13 +30396,13 @@ void cr929_SIL_step(void) * */ LookUp_real_Treal32_T_real32_T( &(rtb_Merge2), &cr929_SIL_P.cg_lst[0], - cr929_SIL_P.m, &cr929_SIL_P.mass_lst[0], 19U); + cr929_SIL_B.Merge.mass_est, &cr929_SIL_P.mass_lst[0], 19U); - /* BusAssignment: '/Bus Assignment' incorporates: - * BusAssignment: '/Bus Assignment' - * DataTypeConversion: '/Data Type Conversion1' - * DataTypeConversion: '/Data Type Conversion2' - * DataTypeConversion: '/Data Type Conversion3' + /* BusAssignment: '/Bus Assignment' incorporates: + * BusAssignment: '/Bus Assignment' + * DataTypeConversion: '/Data Type Conversion1' + * DataTypeConversion: '/Data Type Conversion2' + * DataTypeConversion: '/Data Type Conversion3' */ cr929_SIL_B.BusAssignment_d.TestControlInputs_g.Mass_Test_lbs_d = rtb_Merge2_h; @@ -30653,24 +30415,24 @@ void cr929_SIL_step(void) cr929_SIL_B.BusAssignment_d.TestControlInputs_g.InhibitMLA_Test_b = cr929_SIL_B.Merge.comac_InhibitMLA_Test; - /* DataTypeConversion: '/Data Type Conversion3' incorporates: - * UnitConversion: '/Unit Conversion' + /* DataTypeConversion: '/Data Type Conversion3' incorporates: + * UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: rad to: deg Expression: output = (57.2958*input) + (0) */ rtb_Merge2_h = 57.2957802F * cr929_SIL_B.Merge.comac_FPA_CMD; - /* DataTypeConversion: '/Data Type Conversion4' incorporates: - * UnitConversion: '/Unit Conversion' + /* DataTypeConversion: '/Data Type Conversion4' incorporates: + * UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: rad to: deg Expression: output = (57.2958*input) + (0) */ rtb_Merge2 = 57.2957802F * cr929_SIL_B.Merge.comac_HDG_CMD; - /* BusAssignment: '/Bus Assignment' incorporates: - * DataTypeConversion: '/Data Type Conversion1' - * DataTypeConversion: '/Data Type Conversion2' - * UnitConversion: '/Unit Conversion' + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + * DataTypeConversion: '/Data Type Conversion2' + * UnitConversion: '/Unit Conversion' */ /* Unit Conversion - from: m to: ft Expression: output = (3.28084*input) + (0) */ @@ -30690,127 +30452,115 @@ void cr929_SIL_step(void) /* If: '/If' */ if (cr929_SIL_B.Merge_i.Switch_ControlLaw) { /* Outputs for IfAction SubSystem: '/COMAC' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - * DataTypeConversion: '/Data Type Conversion2' - * DataTypeConversion: '/Data Type Conversion3' - * DataTypeConversion: '/Data Type Conversion4' - * DataTypeConversion: '/Data Type Conversion5' - * DataTypeConversion: '/Data Type Conversion6' - * DataTypeConversion: '/Data Type Conversion7' - * DataTypeConversion: '/Data Type Conversion8' - * UnitConversion: '/Unit Conversion' + /* Delay: '/Delay' */ + /* Unit Conversion - from: deg to: rad + Expression: output = (0.0174533*input) + (0) */ + /* Unit Conversion - from: deg to: rad + Expression: output = (0.0174533*input) + (0) */ + /* Unit Conversion - from: deg to: rad + Expression: output = (0.0174533*input) + (0) */ + /* Unit Conversion - from: deg to: rad + Expression: output = (0.0174533*input) + (0) */ + /* Unit Conversion - from: deg to: rad + Expression: output = (0.0174533*input) + (0) */ + /* Unit Conversion - from: deg to: rad + Expression: output = (0.0174533*input) + (0) */ + /* Unit Conversion - from: deg to: rad + Expression: output = (0.0174533*input) + (0) */ + /* Unit Conversion - from: deg to: rad + Expression: output = (0.0174533*input) + (0) */ + /* Unit Conversion - from: deg to: rad + Expression: output = (0.0174533*input) + (0) */ + if (cr929_SIL_DW.icLoad_dh != 0) { + cr929_SIL_DW.Delay_DSTATE_a = cr929_SIL_B.Merge_i.dh_c; + } + + /* Sum: '/add' incorporates: + * DataTypeConversion: '/Data Type Conversion10' + * Delay: '/Delay' + * Gain: '/gain' + * Gain: '/gain1' + * Product: '/Product' + */ + rtb_add1 = rtb_add2 * (real32_T) + cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.THSTrimCMD_ACE_degs_d + * 0.0174520072F * 0.003062F + cr929_SIL_DW.Delay_DSTATE_a; + + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant3' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' + */ + if (rtb_add1 > cr929_SIL_P.max_dh) { + rtb_add1 = cr929_SIL_P.max_dh; + } else { + if (rtb_add1 < cr929_SIL_P.min_dh) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant3' + */ + rtb_add1 = cr929_SIL_P.min_dh; + } + } + + /* End of Switch: '/Switch2' */ + + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * DataTypeConversion: '/Data Type Conversion2' + * DataTypeConversion: '/Data Type Conversion3' + * DataTypeConversion: '/Data Type Conversion4' * UnitConversion: '/Unit Conversion' * UnitConversion: '/Unit Conversion' * UnitConversion: '/Unit Conversion' * UnitConversion: '/Unit Conversion' * UnitConversion: '/Unit Conversion' - * UnitConversion: '/Unit Conversion' - * UnitConversion: '/Unit Conversion' - * UnitConversion: '/Unit Conversion' */ - /* Unit Conversion - from: deg to: rad - Expression: output = (0.0174533*input) + (0) */ - /* Unit Conversion - from: deg to: rad - Expression: output = (0.0174533*input) + (0) */ - /* Unit Conversion - from: deg to: rad - Expression: output = (0.0174533*input) + (0) */ - /* Unit Conversion - from: deg to: rad - Expression: output = (0.0174533*input) + (0) */ - /* Unit Conversion - from: deg to: rad - Expression: output = (0.0174533*input) + (0) */ - /* Unit Conversion - from: deg to: rad - Expression: output = (0.0174533*input) + (0) */ - /* Unit Conversion - from: deg to: rad - Expression: output = (0.0174533*input) + (0) */ - /* Unit Conversion - from: deg to: rad - Expression: output = (0.0174533*input) + (0) */ - /* Unit Conversion - from: deg to: rad - Expression: output = (0.0174533*input) + (0) */ - rtb_uDLookupTable7 = (real32_T)(0.017453292519943295 * + rtb_Sum4_m = (real32_T)(0.017453292519943295 * cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.AILLeftLCMD_ACE_deg_d); - rtb_subtract1_d = (real32_T)(0.017453292519943295 * + rtb_da2dar_deg = (real32_T)(0.017453292519943295 * cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.AILRightCMD_ACE_deg_d); - rtb_uDLookupTable6 = (real32_T)(0.017453292519943295 * + rtb_Delay_n = (real32_T)(0.017453292519943295 * cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.ELELeftCMD_ACE_deg_d); - rtb_uDLookupTable12 = (real32_T)(0.017453292519943295 * + rtb_add_k = (real32_T)(0.017453292519943295 * cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.ELERightCMD_ACE_deg_d); - rtb_Gain_cv = (real32_T)(0.017453292519943295 * + rtb_uDLookupTable3 = (real32_T)(0.017453292519943295 * cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.RUDCMD_ACE_deg_d); - rtb_last_hdot_c = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLLeft1CMD_ACE_deg_d); - rtb_Switch2_l5 = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLLeft2CMD_ACE_deg_d); - rtb_MinMax = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLLeft3CMD_ACE_deg_d); - rtb_MaxHdot = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLRight1CMD_ACE_deg_d); - rtb_Sum1_o = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLRight2CMD_ACE_deg_d); - rtb_Merge_o_dspri_c_idx_2 = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLRight3CMD_ACE_deg_d); - rtb_Merge_h_dsplo_c[0] = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLLeft4CMD_ACE_deg_d); - rtb_Merge_h_dsplo_c[1] = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLLeft5CMD_ACE_deg_d); - rtb_Merge_h_dsplo_c[2] = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLLeft6CMD_ACE_deg_d); - rtb_Merge_h_dsplo_c[3] = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLLeft7CMD_ACE_deg_d); - rtb_Merge_h_dsplo_c[4] = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLLeft8CMD_ACE_deg_d); - rtb_Merge_h_dspro_c[0] = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLRight4CMD_ACE_deg_d); - rtb_Merge_h_dspro_c[1] = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLRight5CMD_ACE_deg_d); - rtb_Merge_h_dspro_c[2] = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLRight6CMD_ACE_deg_d); - rtb_Merge_h_dspro_c[3] = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLRight7CMD_ACE_deg_d); - rtb_Merge_h_dspro_c[4] = (real32_T)(0.017453292519943295 * - cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.SPLRight8CMD_ACE_deg_d); + + /* Update for Delay: '/Delay' */ + cr929_SIL_DW.icLoad_dh = 0U; + cr929_SIL_DW.Delay_DSTATE_a = rtb_add1; /* End of Outputs for SubSystem: '/COMAC' */ } else { /* Outputs for IfAction SubSystem: '/NUAA' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' */ - rtb_uDLookupTable7 = cr929_SIL_B.Merge_i.dal_c; - rtb_subtract1_d = cr929_SIL_B.Merge_i.dar_c; - rtb_uDLookupTable6 = cr929_SIL_B.Merge_i.del_c; - rtb_uDLookupTable12 = cr929_SIL_B.Merge_i.der_c; - rtb_Gain_cv = cr929_SIL_B.Merge_i.dr_c; - rtb_last_hdot_c = cr929_SIL_B.Merge_i.dspli_c[0]; - rtb_MaxHdot = cr929_SIL_B.Merge_i.dspri_c[0]; - rtb_Switch2_l5 = cr929_SIL_B.Merge_i.dspli_c[1]; - rtb_Sum1_o = cr929_SIL_B.Merge_i.dspri_c[1]; - rtb_MinMax = cr929_SIL_B.Merge_i.dspli_c[2]; - rtb_Merge_o_dspri_c_idx_2 = cr929_SIL_B.Merge_i.dspri_c[2]; - for (i = 0; i < 5; i++) { - rtb_Merge_h_dsplo_c[i] = cr929_SIL_B.Merge_i.dsplo_c[i]; - rtb_Merge_h_dspro_c[i] = cr929_SIL_B.Merge_i.dspro_c[i]; - } + /* BusAssignment: '/Bus Assignment1' */ + rtb_Sum4_m = cr929_SIL_B.Merge_i.dal_c; + rtb_da2dar_deg = cr929_SIL_B.Merge_i.dar_c; + rtb_Delay_n = cr929_SIL_B.Merge_i.del_c; + rtb_add_k = cr929_SIL_B.Merge_i.der_c; + rtb_uDLookupTable3 = cr929_SIL_B.Merge_i.dr_c; + rtb_add1 = cr929_SIL_B.Merge_i.dh_c; - /* End of BusAssignment: '/Bus Assignment' */ /* End of Outputs for SubSystem: '/NUAA' */ } - /* End of If: '/If' */ - - /* Lookup_n-D: '/1-D Lookup Table' */ - rtb_Switch2_ki = look1_iflf_pbinlcapw(rtb_Gain_cv, cr929_SIL_P.drd_pos, - cr929_SIL_P.drd_pwm, &cr929_SIL_DW.m_bpIndex_e, 2U); + /* Lookup_n-D: '/1-D Lookup Table6' */ + rtb_Switch2_ki = look1_iflf_pbinlcapw(rtb_uDLookupTable3, + cr929_SIL_P.dru_pos, cr929_SIL_P.dru_pwm, &cr929_SIL_DW.m_bpIndex_e, 2U); /* Lookup_n-D: '/1-D Lookup Table1' */ - rtb_uDLookupTable11 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.thrl_c, + rtb_uDLookupTable1_g = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.thrl_c, cr929_SIL_P.thr_pos, cr929_SIL_P.thr_pwm, &cr929_SIL_DW.m_bpIndex_c, 2U); /* Lookup_n-D: '/1-D Lookup Table2' */ - rtb_Gain_cv = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.thrr_c, + rtb_da2dal_deg = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.thrr_c, cr929_SIL_P.thr_pos, cr929_SIL_P.thr_pwm, &cr929_SIL_DW.m_bpIndex_d, 2U); /* Switch: '/Switch1' incorporates: @@ -30825,136 +30575,127 @@ void cr929_SIL_step(void) /* End of Switch: '/Switch1' */ + /* Lookup_n-D: '/1-D Lookup Table15' */ + rtb_add2 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dflo2_c, + cr929_SIL_P.dflo2_pos, cr929_SIL_P.dflo2_pwm, &cr929_SIL_DW.m_bpIndex_k, + 4U); + /* Lookup_n-D: '/1-D Lookup Table3' */ - rtb_subtract1_d = look1_iflf_pbinlcapw(rtb_subtract1_d, - cr929_SIL_P.dar_pos, cr929_SIL_P.dar_pwm, &cr929_SIL_DW.m_bpIndex_p, 2U); + rtb_da2dar_deg = look1_iflf_pbinlcapw(rtb_da2dar_deg, cr929_SIL_P.dar_pos, + cr929_SIL_P.dar_pwm, &cr929_SIL_DW.m_bpIndex_p, 2U); /* Lookup_n-D: '/1-D Lookup Table4' */ - rtb_uDLookupTable12 = look1_iflf_pbinlcapw(rtb_uDLookupTable12, - cr929_SIL_P.der_pos, cr929_SIL_P.der_pwm, &cr929_SIL_DW.m_bpIndex_dt, 2U); + rtb_add_k = look1_iflf_pbinlcapw(rtb_add_k, cr929_SIL_P.der_pos, + cr929_SIL_P.der_pwm, &cr929_SIL_DW.m_bpIndex_dt, 2U); - /* Lookup_n-D: '/1-D Lookup Table5' */ - rtb_uDLookupTable10 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dh_c, - cr929_SIL_P.dh_pos, cr929_SIL_P.dh_pwm, &cr929_SIL_DW.m_bpIndex_am, 2U); + /* Lookup_n-D: '/1-D Lookup Table12' */ + rtb_Sum7_f = look1_iflf_pbinlcapw(rtb_add1, cr929_SIL_P.dhl_pos, + cr929_SIL_P.dhl_pwm, &cr929_SIL_DW.m_bpIndex_eo, 3U); - /* Lookup_n-D: '/1-D Lookup Table6' */ - rtb_uDLookupTable9 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dr_c, - cr929_SIL_P.dru_pos, cr929_SIL_P.dru_pwm, &cr929_SIL_DW.m_bpIndex_ex, 2U); + /* Lookup_n-D: '/1-D Lookup Table17' */ + rtb_Sum5_hx = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dflio_c, + cr929_SIL_P.dflio_pos, cr929_SIL_P.dflio_pwm, &cr929_SIL_DW.m_bpIndex_n, + 4U); /* Lookup_n-D: '/1-D Lookup Table7' */ - rtb_uDLookupTable8 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dflo_c, + rtb_Merge11 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dflo_c, cr929_SIL_P.dflo_pos, cr929_SIL_P.dflo_pwm, &cr929_SIL_DW.m_bpIndex_i, 4U); /* Lookup_n-D: '/1-D Lookup Table8' */ - rtb_uDLookupTable7 = look1_iflf_pbinlcapw(rtb_uDLookupTable7, - cr929_SIL_P.dal_pos, cr929_SIL_P.dal_pwm, &cr929_SIL_DW.m_bpIndex_f, 2U); + rtb_Sum4_m = look1_iflf_pbinlcapw(rtb_Sum4_m, cr929_SIL_P.dal_pos, + cr929_SIL_P.dal_pwm, &cr929_SIL_DW.m_bpIndex_f, 2U); /* Lookup_n-D: '/1-D Lookup Table9' */ - rtb_uDLookupTable6 = look1_iflf_pbinlcapw(rtb_uDLookupTable6, - cr929_SIL_P.del_pos, cr929_SIL_P.del_pwm, &cr929_SIL_DW.m_bpIndex_is, 2U); + rtb_Delay_n = look1_iflf_pbinlcapw(rtb_Delay_n, cr929_SIL_P.del_pos, + cr929_SIL_P.del_pwm, &cr929_SIL_DW.m_bpIndex_is, 2U); /* Lookup_n-D: '/1-D Lookup Table10' */ - rtb_uDLookupTable5 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dfrio_c, + rtb_Delay_k = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dfrio_c, cr929_SIL_P.dfrio_pos, cr929_SIL_P.dfrio_pwm, &cr929_SIL_DW.m_bpIndex_g, 4U); /* Lookup_n-D: '/1-D Lookup Table11' */ - rtb_uDLookupTable4 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dfro_c, + rtb_Delay_ip = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dfro_c, cr929_SIL_P.dfro_pos, cr929_SIL_P.dfro_pwm, &cr929_SIL_DW.m_bpIndex_dp, 4U); - /* Lookup_n-D: '/1-D Lookup Table13' */ - rtb_uDLookupTable3 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dflii_c, - cr929_SIL_P.dflii_pos, cr929_SIL_P.dflii_pwm, &cr929_SIL_DW.m_bpIndex_k, - 4U); - - /* Lookup_n-D: '/1-D Lookup Table14' */ - rtb_uDLookupTable2_c = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dfrii_c, - cr929_SIL_P.dfrii_pos, cr929_SIL_P.dfrii_pwm, &cr929_SIL_DW.m_bpIndex_ik, - 4U); - - /* Lookup_n-D: '/1-D Lookup Table15' */ - rtb_uDLookupTable1 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dflo2_c, - cr929_SIL_P.dflo2_pos, cr929_SIL_P.dflo2_pwm, &cr929_SIL_DW.m_bpIndex_ko, - 4U); - /* Lookup_n-D: '/1-D Lookup Table16' */ - rtb_uDLookupTable_l = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dfro2_c, + rtb_Delay_h = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dfro2_c, cr929_SIL_P.dfro2_pos, cr929_SIL_P.dfro2_pwm, &cr929_SIL_DW.m_bpIndex_c3, 4U); + /* Lookup_n-D: '/1-D Lookup Table' */ + rtb_uDLookupTable3 = look1_iflf_pbinlcapw(rtb_uDLookupTable3, + cr929_SIL_P.drd_pos, cr929_SIL_P.drd_pwm, &cr929_SIL_DW.m_bpIndex_ek, 2U); + + /* Lookup_n-D: '/1-D Lookup Table5' */ + rtb_uDLookupTable2_c = look1_iflf_pbinlcapw(rtb_add1, cr929_SIL_P.dhr_pos, + cr929_SIL_P.dhr_pwm, &cr929_SIL_DW.m_bpIndex_am, 3U); + + /* Lookup_n-D: '/1-D Lookup Table13' */ + rtb_uDLookupTable1 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dflii_c, + cr929_SIL_P.dflii_pos, cr929_SIL_P.dflii_pwm, &cr929_SIL_DW.m_bpIndex_kk, + 4U); + + /* Lookup_n-D: '/1-D Lookup Table14' */ + rtb_uDLookupTable_l = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dfrii_c, + cr929_SIL_P.dfrii_pos, cr929_SIL_P.dfrii_pwm, &cr929_SIL_DW.m_bpIndex_ik, + 4U); + /* SignalConversion: '/TmpSignal ConversionAtSelectorInport1' */ - rtb_uDLookupTable15_0[0] = rtb_Switch2_ki; - rtb_uDLookupTable15_0[1] = rtb_uDLookupTable11; - rtb_uDLookupTable15_0[2] = rtb_Gain_cv; + rtb_uDLookupTable11_0[0] = rtb_Switch2_ki; + rtb_uDLookupTable11_0[1] = rtb_uDLookupTable1_g; + rtb_uDLookupTable11_0[2] = rtb_da2dal_deg; /* Switch: '/Switch' */ if (cr929_SIL_B.Merge_i.brake_c) { /* SignalConversion: '/TmpSignal ConversionAtSelectorInport1' incorporates: * Constant: '/Constant' */ - rtb_uDLookupTable15_0[3] = cr929_SIL_P.brake_lock; + rtb_uDLookupTable11_0[3] = cr929_SIL_P.brake_lock; } else { /* SignalConversion: '/TmpSignal ConversionAtSelectorInport1' incorporates: * Constant: '/Constant1' */ - rtb_uDLookupTable15_0[3] = cr929_SIL_P.brake_release; + rtb_uDLookupTable11_0[3] = cr929_SIL_P.brake_release; } /* End of Switch: '/Switch' */ /* SignalConversion: '/TmpSignal ConversionAtSelectorInport1' */ - rtb_uDLookupTable15_0[4] = rtb_DataTypeConversion_a; - - /* Switch: '/Switch2' */ - if (cr929_SIL_B.Merge_i.anti_stall_parachute_c) { - /* SignalConversion: '/TmpSignal ConversionAtSelectorInport1' incorporates: - * Constant: '/Constant4' - */ - rtb_uDLookupTable15_0[5] = cr929_SIL_P.antistall_lock; - } else { - /* SignalConversion: '/TmpSignal ConversionAtSelectorInport1' incorporates: - * Constant: '/Constant5' - */ - rtb_uDLookupTable15_0[5] = cr929_SIL_P.antistall_release; - } - - /* End of Switch: '/Switch2' */ - - /* SignalConversion: '/TmpSignal ConversionAtSelectorInport1' incorporates: - * Constant: '/Constant6' - */ - rtb_uDLookupTable15_0[6] = rtb_subtract1_d; - rtb_uDLookupTable15_0[7] = rtb_uDLookupTable12; - rtb_uDLookupTable15_0[8] = rtb_uDLookupTable10; - rtb_uDLookupTable15_0[9] = rtb_uDLookupTable9; - rtb_uDLookupTable15_0[10] = rtb_uDLookupTable8; - rtb_uDLookupTable15_0[11] = rtb_uDLookupTable7; - rtb_uDLookupTable15_0[12] = rtb_uDLookupTable6; - rtb_uDLookupTable15_0[13] = rtb_uDLookupTable5; - rtb_uDLookupTable15_0[14] = rtb_uDLookupTable4; - rtb_uDLookupTable15_0[15] = 1500.0F; - rtb_uDLookupTable15_0[16] = rtb_uDLookupTable3; - rtb_uDLookupTable15_0[17] = rtb_uDLookupTable2_c; - rtb_uDLookupTable15_0[18] = rtb_uDLookupTable1; - rtb_uDLookupTable15_0[19] = rtb_uDLookupTable_l; + rtb_uDLookupTable11_0[4] = rtb_DataTypeConversion_a; + rtb_uDLookupTable11_0[5] = rtb_add2; + rtb_uDLookupTable11_0[6] = rtb_da2dar_deg; + rtb_uDLookupTable11_0[7] = rtb_add_k; + rtb_uDLookupTable11_0[8] = rtb_Sum7_f; + rtb_uDLookupTable11_0[9] = rtb_Sum5_hx; + rtb_uDLookupTable11_0[10] = rtb_Merge11; + rtb_uDLookupTable11_0[11] = rtb_Sum4_m; + rtb_uDLookupTable11_0[12] = rtb_Delay_n; + rtb_uDLookupTable11_0[13] = rtb_Delay_k; + rtb_uDLookupTable11_0[14] = rtb_Delay_ip; + rtb_uDLookupTable11_0[15] = rtb_Delay_h; + rtb_uDLookupTable11_0[16] = rtb_uDLookupTable3; + rtb_uDLookupTable11_0[17] = rtb_uDLookupTable2_c; + rtb_uDLookupTable11_0[18] = rtb_uDLookupTable1; + rtb_uDLookupTable11_0[19] = rtb_uDLookupTable_l; /* DataTypeConversion: '/Data Type Conversion' incorporates: * Constant: '/Constant7' * Selector: '/Selector' */ for (i = 0; i < 20; i++) { - rtb_phi_c_c = floorf(rtb_uDLookupTable15_0[cr929_SIL_P.map_pwm[i]]); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + rtb_phi_c_h = floorf(rtb_uDLookupTable11_0[cr929_SIL_P.map_pwm[i]]); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion[i] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T) - (uint16_T)rtb_phi_c_c); + cr929_SIL_B.DataTypeConversion[i] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T) + (uint16_T)rtb_phi_c_h); } /* End of DataTypeConversion: '/Data Type Conversion' */ @@ -30965,16 +30706,16 @@ void cr929_SIL_step(void) 2U); /* DataTypeConversion: '/Data Type Conversion1' */ - rtb_phi_c_c = floorf(rtb_uDLookupTable_l); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + rtb_phi_c_h = floorf(rtb_uDLookupTable_l); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion1_p = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); + cr929_SIL_B.DataTypeConversion1_p = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); /* End of DataTypeConversion: '/Data Type Conversion1' */ @@ -30982,246 +30723,246 @@ void cr929_SIL_step(void) cr929_SIL_B.DataTypeConversion10 = (uint16_T)cr929_SIL_B.Merge_i.AT; /* Lookup_n-D: '/1-D Lookup Table' */ - rtb_uDLookupTable_l = look1_iflf_pbinlcapw(rtb_last_hdot_c, + rtb_uDLookupTable_l = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dspli_c[0], cr929_SIL_P.dspli1_pos, cr929_SIL_P.dspli1_pwm, - &cr929_SIL_DW.m_bpIndex_c4, 2U); + &cr929_SIL_DW.m_bpIndex_c4, 5U); /* Lookup_n-D: '/1-D Lookup Table1' */ - rtb_uDLookupTable1 = look1_iflf_pbinlcapw(rtb_Switch2_l5, + rtb_uDLookupTable1 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dspli_c[1], cr929_SIL_P.dspli2_pos, cr929_SIL_P.dspli2_pwm, - &cr929_SIL_DW.m_bpIndex_l, 2U); + &cr929_SIL_DW.m_bpIndex_l, 5U); /* Lookup_n-D: '/1-D Lookup Table2' */ - rtb_uDLookupTable2_c = look1_iflf_pbinlcapw(rtb_MinMax, + rtb_uDLookupTable2_c = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dspli_c[2], cr929_SIL_P.dspli3_pos, cr929_SIL_P.dspli3_pwm, - &cr929_SIL_DW.m_bpIndex_j, 2U); + &cr929_SIL_DW.m_bpIndex_j, 5U); /* Lookup_n-D: '/1-D Lookup Table3' */ - rtb_uDLookupTable3 = look1_iflf_pbinlcapw(rtb_MaxHdot, + rtb_uDLookupTable3 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dspri_c[0], cr929_SIL_P.dspri1_pos, cr929_SIL_P.dspri1_pwm, - &cr929_SIL_DW.m_bpIndex_kz, 2U); + &cr929_SIL_DW.m_bpIndex_kz, 5U); /* Lookup_n-D: '/1-D Lookup Table4' */ - rtb_uDLookupTable4 = look1_iflf_pbinlcapw(rtb_Sum1_o, + rtb_Delay_h = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dspri_c[1], cr929_SIL_P.dspri2_pos, cr929_SIL_P.dspri2_pwm, - &cr929_SIL_DW.m_bpIndex_gi, 2U); + &cr929_SIL_DW.m_bpIndex_gi, 5U); /* Lookup_n-D: '/1-D Lookup Table5' */ - rtb_uDLookupTable5 = look1_iflf_pbinlcapw(rtb_Merge_o_dspri_c_idx_2, + rtb_Delay_ip = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dspri_c[2], cr929_SIL_P.dspri3_pos, cr929_SIL_P.dspri3_pwm, - &cr929_SIL_DW.m_bpIndex_n, 2U); + &cr929_SIL_DW.m_bpIndex_ni, 5U); /* Lookup_n-D: '/1-D Lookup Table6' */ - rtb_uDLookupTable6 = look1_iflf_pbinlcapw(rtb_Merge_h_dsplo_c[0], + rtb_Delay_k = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dsplo_c[0], cr929_SIL_P.dsplo1_pos, cr929_SIL_P.dsplo1_pwm, - &cr929_SIL_DW.m_bpIndex_cz, 2U); + &cr929_SIL_DW.m_bpIndex_cz, 5U); /* Lookup_n-D: '/1-D Lookup Table7' */ - rtb_uDLookupTable7 = look1_iflf_pbinlcapw(rtb_Merge_h_dsplo_c[1], + rtb_Delay_n = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dsplo_c[1], cr929_SIL_P.dsplo2_pos, cr929_SIL_P.dsplo2_pwm, - &cr929_SIL_DW.m_bpIndex_cg, 2U); + &cr929_SIL_DW.m_bpIndex_cg, 5U); /* Lookup_n-D: '/1-D Lookup Table8' */ - rtb_uDLookupTable8 = look1_iflf_pbinlcapw(rtb_Merge_h_dsplo_c[2], + rtb_Sum4_m = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dsplo_c[2], cr929_SIL_P.dsplo3_pos, cr929_SIL_P.dsplo3_pwm, - &cr929_SIL_DW.m_bpIndex_b, 2U); + &cr929_SIL_DW.m_bpIndex_b, 5U); /* Lookup_n-D: '/1-D Lookup Table9' */ - rtb_uDLookupTable9 = look1_iflf_pbinlcapw(rtb_Merge_h_dsplo_c[3], + rtb_Merge11 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dsplo_c[3], cr929_SIL_P.dsplo4_pos, cr929_SIL_P.dsplo4_pwm, - &cr929_SIL_DW.m_bpIndex_kv, 2U); + &cr929_SIL_DW.m_bpIndex_kv, 5U); /* Lookup_n-D: '/1-D Lookup Table10' */ - rtb_uDLookupTable10 = look1_iflf_pbinlcapw(rtb_Merge_h_dsplo_c[4], + rtb_Sum5_hx = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dsplo_c[4], cr929_SIL_P.dsplo5_pos, cr929_SIL_P.dsplo5_pwm, - &cr929_SIL_DW.m_bpIndex_pd, 2U); + &cr929_SIL_DW.m_bpIndex_pd, 5U); /* Lookup_n-D: '/1-D Lookup Table12' */ - rtb_uDLookupTable12 = look1_iflf_pbinlcapw(rtb_Merge_h_dspro_c[0], + rtb_Sum7_f = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dspro_c[0], cr929_SIL_P.dspro1_pos, cr929_SIL_P.dspro1_pwm, - &cr929_SIL_DW.m_bpIndex_e4, 2U); + &cr929_SIL_DW.m_bpIndex_e4, 5U); /* Lookup_n-D: '/1-D Lookup Table13' */ - rtb_subtract1_d = look1_iflf_pbinlcapw(rtb_Merge_h_dspro_c[1], + rtb_add_k = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dspro_c[1], cr929_SIL_P.dspro2_pos, cr929_SIL_P.dspro2_pwm, - &cr929_SIL_DW.m_bpIndex_az, 2U); + &cr929_SIL_DW.m_bpIndex_az, 5U); /* Lookup_n-D: '/1-D Lookup Table14' */ - rtb_Gain_cv = look1_iflf_pbinlcapw(rtb_Merge_h_dspro_c[2], + rtb_da2dar_deg = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dspro_c[2], cr929_SIL_P.dspro3_pos, cr929_SIL_P.dspro3_pwm, - &cr929_SIL_DW.m_bpIndex_o, 2U); + &cr929_SIL_DW.m_bpIndex_o, 5U); /* Lookup_n-D: '/1-D Lookup Table15' */ - rtb_Switch2_ki = look1_iflf_pbinlcapw(rtb_Merge_h_dspro_c[3], + rtb_add2 = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dspro_c[3], cr929_SIL_P.dspro4_pos, cr929_SIL_P.dspro4_pwm, - &cr929_SIL_DW.m_bpIndex_kb, 2U); + &cr929_SIL_DW.m_bpIndex_kb, 5U); /* Lookup_n-D: '/1-D Lookup Table11' */ - rtb_uDLookupTable11 = look1_iflf_pbinlcapw(rtb_Merge_h_dspro_c[4], + rtb_Switch2_ki = look1_iflf_pbinlcapw(cr929_SIL_B.Merge_i.dspro_c[4], cr929_SIL_P.dspro5_pos, cr929_SIL_P.dspro5_pwm, - &cr929_SIL_DW.m_bpIndex_ku, 2U); + &cr929_SIL_DW.m_bpIndex_ku, 5U); /* DataTypeConversion: '/Data Type Conversion2' */ - rtb_phi_c_c = floorf(rtb_uDLookupTable_l); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + rtb_phi_c_h = floorf(rtb_uDLookupTable_l); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[0] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_uDLookupTable1); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[0] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_uDLookupTable1); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[1] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_uDLookupTable2_c); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[1] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_uDLookupTable2_c); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[2] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_uDLookupTable3); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[2] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_uDLookupTable3); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[3] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_uDLookupTable4); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[3] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_Delay_h); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[4] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_uDLookupTable5); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[4] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_Delay_ip); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[5] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_uDLookupTable6); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[5] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_Delay_k); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[6] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_uDLookupTable7); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[6] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_Delay_n); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[7] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_uDLookupTable8); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[7] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_Sum4_m); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[8] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_uDLookupTable9); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[8] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_Merge11); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[9] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_uDLookupTable10); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[9] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_Sum5_hx); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[10] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_uDLookupTable12); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[10] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_Sum7_f); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[11] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_subtract1_d); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[11] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_add_k); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[12] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_Gain_cv); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[12] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_da2dar_deg); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[13] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_Switch2_ki); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[13] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_add2); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[14] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); - rtb_phi_c_c = floorf(rtb_uDLookupTable11); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[14] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); + rtb_phi_c_h = floorf(rtb_Switch2_ki); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[15] = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T)(uint16_T) - rtb_phi_c_c); + cr929_SIL_B.DataTypeConversion2_m[15] = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T)(uint16_T) + rtb_phi_c_h); /* End of DataTypeConversion: '/Data Type Conversion2' */ @@ -31249,7 +30990,7 @@ void cr929_SIL_step(void) */ cr929_SIL_DW.UnitDelay_DSTATE_gc++; - /* Chart: '/Chart_send_ack' */ + /* Chart: '/Chart_send_ack' */ cr929_SIL_DW.ack_isValid = false; if (cr929_SIL_DW.is_active_c26_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c26_cr929_autopilot = 1U; @@ -31265,9 +31006,9 @@ void cr929_SIL_step(void) cr929_SIL_sf_msg_discard_ack(); - /* End of Chart: '/Chart_send_ack' */ + /* End of Chart: '/Chart_send_ack' */ - /* Chart: '/proc_param_value' */ + /* Chart: '/proc_param_value' */ if (cr929_SIL_DW.temporalCounter_i1_b0 < 127U) { cr929_SIL_DW.temporalCounter_i1_b0++; } @@ -31300,12 +31041,12 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c31_mavlink_utils = cr929_SIL_IN_SendOne; cr929_SIL_DW.temporalCounter_i1_b0 = 0U; - /* Outputs for Function Call SubSystem: '/find_val' */ + /* Outputs for Function Call SubSystem: '/find_val' */ cr929_SIL_find_val(cr929_SIL_B.idx, cr929_SIL_B.param_name, cr929_SIL_B.param_value, &cr929_SIL_B.param_type, &cr929_SIL_B.param_cnt, &cr929_SIL_B.param_index); - /* End of Outputs for SubSystem: '/find_val' */ + /* End of Outputs for SubSystem: '/find_val' */ cr929_SIL_DW.msg_msgData_h.param_index = cr929_SIL_B.param_index; for (i = 0; i < 16; i++) { cr929_SIL_DW.msg_msgData_h.param_id[i] = cr929_SIL_B.param_name[i]; @@ -31316,10 +31057,10 @@ void cr929_SIL_step(void) cr929_SIL_B.u[2] = cr929_SIL_B.param_value[2]; cr929_SIL_B.u[3] = cr929_SIL_B.param_value[3]; - /* Outputs for Function Call SubSystem: '/u2f' */ + /* Outputs for Function Call SubSystem: '/u2f' */ cr929_SIL_u2f(cr929_SIL_B.u, &cr929_SIL_B.ByteUnpack); - /* End of Outputs for SubSystem: '/u2f' */ + /* End of Outputs for SubSystem: '/u2f' */ cr929_SIL_DW.msg_msgData_h.param_value = cr929_SIL_B.ByteUnpack; cr929_SIL_DW.msg_msgData_h.param_type = cr929_SIL_B.param_type; cr929_SIL_DW.msg_msgData_h.param_count = cr929_SIL_B.param_cnt; @@ -31334,12 +31075,12 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c31_mavlink_utils = cr929_SIL_IN_SendOne; cr929_SIL_DW.temporalCounter_i1_b0 = 0U; - /* Outputs for Function Call SubSystem: '/find_val' */ + /* Outputs for Function Call SubSystem: '/find_val' */ cr929_SIL_find_val(cr929_SIL_B.idx, cr929_SIL_B.param_name, cr929_SIL_B.param_value, &cr929_SIL_B.param_type, &cr929_SIL_B.param_cnt, &cr929_SIL_B.param_index); - /* End of Outputs for SubSystem: '/find_val' */ + /* End of Outputs for SubSystem: '/find_val' */ cr929_SIL_DW.msg_msgData_h.param_index = cr929_SIL_B.param_index; for (i = 0; i < 16; i++) { cr929_SIL_DW.msg_msgData_h.param_id[i] = cr929_SIL_B.param_name[i]; @@ -31350,10 +31091,10 @@ void cr929_SIL_step(void) cr929_SIL_B.u[2] = cr929_SIL_B.param_value[2]; cr929_SIL_B.u[3] = cr929_SIL_B.param_value[3]; - /* Outputs for Function Call SubSystem: '/u2f' */ + /* Outputs for Function Call SubSystem: '/u2f' */ cr929_SIL_u2f(cr929_SIL_B.u, &cr929_SIL_B.ByteUnpack); - /* End of Outputs for SubSystem: '/u2f' */ + /* End of Outputs for SubSystem: '/u2f' */ cr929_SIL_DW.msg_msgData_h.param_value = cr929_SIL_B.ByteUnpack; cr929_SIL_DW.msg_msgData_h.param_type = cr929_SIL_B.param_type; cr929_SIL_DW.msg_msgData_h.param_count = cr929_SIL_B.param_cnt; @@ -31368,9 +31109,9 @@ void cr929_SIL_step(void) cr929_SIL_sf_msg_discard_param_req_lst(); cr929_SIL_sf_msg_discard_param_set(); - /* End of Chart: '/proc_param_value' */ + /* End of Chart: '/proc_param_value' */ - /* Chart: '/merge_ack' */ + /* Chart: '/merge_ack' */ cr929_SIL_DW.ack1_isValid = false; cr929_SIL_DW.ack2_isValid = false; cr929_SIL_DW.ack3_isValid = false; @@ -31394,50 +31135,50 @@ void cr929_SIL_step(void) cr929_SIL_sf_msg_discard_ack2(); cr929_SIL_sf_msg_discard_ack3(); - /* End of Chart: '/merge_ack' */ + /* End of Chart: '/merge_ack' */ /* Outputs for Atomic SubSystem: '/proc_serial_echo' */ - /* Chart: '/Chart' */ - if (cr929_SIL_DW.temporalCounter_i1_hq < 127U) { - cr929_SIL_DW.temporalCounter_i1_hq++; + /* Chart: '/Chart' */ + if (cr929_SIL_DW.temporalCounter_i1_b5 < 127U) { + cr929_SIL_DW.temporalCounter_i1_b5++; } if (cr929_SIL_DW.is_active_c80_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c80_cr929_autopilot = 1U; cr929_SIL_DW.is_c80_cr929_autopilot = cr929_SIL_IN_idle_g; - cr929_SIL_DW.temporalCounter_i1_hq = 0U; - rtb_out_h2 = false; + cr929_SIL_DW.temporalCounter_i1_b5 = 0U; + rtb_out_hr = false; } else if (cr929_SIL_DW.is_c80_cr929_autopilot == cr929_SIL_IN_idle_g) { - rtb_out_h2 = false; - if (cr929_SIL_DW.temporalCounter_i1_hq >= 82U) { + rtb_out_hr = false; + if (cr929_SIL_DW.temporalCounter_i1_b5 >= 82U) { cr929_SIL_DW.is_c80_cr929_autopilot = cr929_SIL_IN_work; - rtb_out_h2 = true; + rtb_out_hr = true; } } else { cr929_SIL_DW.is_c80_cr929_autopilot = cr929_SIL_IN_idle_g; - cr929_SIL_DW.temporalCounter_i1_hq = 0U; - rtb_out_h2 = false; + cr929_SIL_DW.temporalCounter_i1_b5 = 0U; + rtb_out_hr = false; } - /* End of Chart: '/Chart' */ + /* End of Chart: '/Chart' */ - /* If: '/If1' */ - if (rtb_out_h2) { - /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: - * ActionPort: '/Action Port' + /* If: '/If1' */ + if (rtb_out_hr) { + /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* S-Function (hal_serial_echoline): '/S-Function1' */ + /* S-Function (hal_serial_echoline): '/S-Function1' */ hal_serial_echoline_Outputs_wrapper(&cr929_SIL_B.SFunction1_o1[0], &cr929_SIL_B.SFunction1_o2); - /* If: '/If' */ + /* If: '/If' */ if (cr929_SIL_B.SFunction1_o2 > 0) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/Chart_send_serial_control' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Chart: '/Chart_send_serial_control' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' */ cr929_SIL_DW.send_echo_msgData.device = 10U; cr929_SIL_DW.send_echo_msgData.flags = 0U; @@ -31446,22 +31187,22 @@ void cr929_SIL_step(void) cr929_SIL_DW.send_echo_msgData.count = cr929_SIL_B.SFunction1_o2; cr929_SIL_sf_msg_send_send_echo(); - /* End of Outputs for SubSystem: '/If Action Subsystem' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/Subsystem' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/Subsystem' */ } - /* End of If: '/If1' */ + /* End of If: '/If1' */ /* End of Outputs for SubSystem: '/proc_serial_echo' */ - /* Chart: '/traffic_ctrl' incorporates: + /* Chart: '/traffic_ctrl' incorporates: * Constant: '/Constant BP2' * Outport: '/buff_len' */ - if (cr929_SIL_DW.temporalCounter_i1_i < 2097151U) { - cr929_SIL_DW.temporalCounter_i1_i++; + if (cr929_SIL_DW.temporalCounter_i1_o < 2097151U) { + cr929_SIL_DW.temporalCounter_i1_o++; } cr929_SIL_DW.param_val_queue_isValid = false; @@ -31481,8 +31222,8 @@ void cr929_SIL_step(void) cr929_SIL_B.command_ack = *(mavlink_command_ack_t *) cr929_SIL_DW.command_ack_queue_msgDataPtr; - /* Outputs for Function Call SubSystem: '/cmd_ack_enc' */ - /* S-Function (mav_command_ack_encode): '/mav_command_ack_enc' incorporates: + /* Outputs for Function Call SubSystem: '/cmd_ack_enc' */ + /* S-Function (mav_command_ack_encode): '/mav_command_ack_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31490,13 +31231,13 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/cmd_ack_enc' */ + /* End of Outputs for SubSystem: '/cmd_ack_enc' */ } else if (cr929_SIL_sf_msg_pop_mission_cur_queue()) { cr929_SIL_B.mission_cur = *(mavlink_mission_current_t *) cr929_SIL_DW.mission_cur_queue_msgDataPtr; - /* Outputs for Function Call SubSystem: '/mission_cur_enc' */ - /* S-Function (mav_mission_current_encode): '/mav_mission_current_enc' incorporates: + /* Outputs for Function Call SubSystem: '/mission_cur_enc' */ + /* S-Function (mav_mission_current_encode): '/mav_mission_current_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31504,13 +31245,13 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/mission_cur_enc' */ + /* End of Outputs for SubSystem: '/mission_cur_enc' */ } else if (cr929_SIL_sf_msg_pop_mission_cnt_queue()) { cr929_SIL_B.mission_cnt = *(mavlink_mission_count_t *) cr929_SIL_DW.mission_cnt_queue_msgDataPtr; - /* Outputs for Function Call SubSystem: '/mission_cnt_enc' */ - /* S-Function (mav_mission_count_encode): '/mav_mission_count_enc' incorporates: + /* Outputs for Function Call SubSystem: '/mission_cnt_enc' */ + /* S-Function (mav_mission_count_encode): '/mav_mission_count_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31518,13 +31259,13 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/mission_cnt_enc' */ + /* End of Outputs for SubSystem: '/mission_cnt_enc' */ } else if (cr929_SIL_sf_msg_pop_mission_item_int_queue()) { cr929_SIL_B.mission_item_int = *(mavlink_mission_item_int_t *) cr929_SIL_DW.mission_item_int_queue_msgDataPtr; - /* Outputs for Function Call SubSystem: '/mission_item_int_enc' */ - /* S-Function (mav_mission_item_int_encode): '/mav_mission_item_int_enc' incorporates: + /* Outputs for Function Call SubSystem: '/mission_item_int_enc' */ + /* S-Function (mav_mission_item_int_encode): '/mav_mission_item_int_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31533,42 +31274,42 @@ void cr929_SIL_step(void) &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/mission_item_int_enc' */ + /* End of Outputs for SubSystem: '/mission_item_int_enc' */ } else if (cr929_SIL_sf_msg_pop_mission_ack_queue()) { - cr929_SIL_B.mission_ack_g = *(mavlink_mission_ack_t *) + cr929_SIL_B.mission_ack_h = *(mavlink_mission_ack_t *) cr929_SIL_DW.mission_ack_queue_msgDataPtr; - /* Outputs for Function Call SubSystem: '/mission_ack_enc' */ - /* S-Function (mav_mission_ack_encode): '/mav_mission_ack_enc' incorporates: + /* Outputs for Function Call SubSystem: '/mission_ack_enc' */ + /* S-Function (mav_mission_ack_encode): '/mav_mission_ack_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ - mav_mission_ack_encode_Outputs_wrapper(&cr929_SIL_B.mission_ack_g, + mav_mission_ack_encode_Outputs_wrapper(&cr929_SIL_B.mission_ack_h, &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/mission_ack_enc' */ + /* End of Outputs for SubSystem: '/mission_ack_enc' */ } else if (cr929_SIL_sf_msg_pop_mission_req_int_queue()) { - cr929_SIL_B.mission_req_int_d = *(mavlink_mission_request_int_t *) + cr929_SIL_B.mission_req_int_e = *(mavlink_mission_request_int_t *) cr929_SIL_DW.mission_req_int_queue_msgDataPtr; - /* Outputs for Function Call SubSystem: '/mission_req_int_enc' */ - /* S-Function (mav_mission_request_int_encode): '/mav_mission_request_int_enc' incorporates: + /* Outputs for Function Call SubSystem: '/mission_req_int_enc' */ + /* S-Function (mav_mission_request_int_encode): '/mav_mission_request_int_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ mav_mission_request_int_encode_Outputs_wrapper - (&cr929_SIL_B.mission_req_int_d, &cr929_SIL_B.DataTypeConversion_m, + (&cr929_SIL_B.mission_req_int_e, &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/mission_req_int_enc' */ + /* End of Outputs for SubSystem: '/mission_req_int_enc' */ } else if (cr929_SIL_sf_msg_pop_param_val_queue()) { cr929_SIL_B.param_val = *(mavlink_param_value_t *) cr929_SIL_DW.param_val_queue_msgDataPtr; - /* Outputs for Function Call SubSystem: '/param_val_enc' */ - /* S-Function (mav_param_value_encode): '/mav_param_value_enc' incorporates: + /* Outputs for Function Call SubSystem: '/param_val_enc' */ + /* S-Function (mav_param_value_encode): '/mav_param_value_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31576,13 +31317,13 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/param_val_enc' */ + /* End of Outputs for SubSystem: '/param_val_enc' */ } else if (cr929_SIL_sf_msg_pop_ap_ver_queue()) { cr929_SIL_B.ap_ver_g = *(mavlink_autopilot_version_t *) cr929_SIL_DW.ap_ver_queue_msgDataPtr; - /* Outputs for Function Call SubSystem: '/ap_ver_enc' */ - /* S-Function (mav_autopilot_version_encode): '/mav_autopilot_version_enc' incorporates: + /* Outputs for Function Call SubSystem: '/ap_ver_enc' */ + /* S-Function (mav_autopilot_version_encode): '/mav_autopilot_version_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31590,13 +31331,13 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/ap_ver_enc' */ + /* End of Outputs for SubSystem: '/ap_ver_enc' */ } else if (cr929_SIL_sf_msg_pop_serial_echoline()) { cr929_SIL_B.ser_echo = *(mavlink_serial_control_t *) cr929_SIL_DW.serial_echoline_msgDataPtr; - /* Outputs for Function Call SubSystem: '/ser_ctrl_enc' */ - /* S-Function (mav_serial_control_encode): '/mav_serial_control_enc' incorporates: + /* Outputs for Function Call SubSystem: '/ser_ctrl_enc' */ + /* S-Function (mav_serial_control_encode): '/mav_serial_control_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31604,32 +31345,32 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/ser_ctrl_enc' */ + /* End of Outputs for SubSystem: '/ser_ctrl_enc' */ } else { - /* Outputs for Function Call SubSystem: '/loop_download' */ - /* UnitDelay: '/Unit Delay' */ + /* Outputs for Function Call SubSystem: '/loop_download' */ + /* UnitDelay: '/Unit Delay' */ mode = cr929_SIL_DW.UnitDelay_DSTATE_kr; - /* Sum: '/Sum' incorporates: - * Constant: '/Constant' - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant' + * UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_kr++; - /* Math: '/Rem' */ + /* Math: '/Rem' */ mode = (uint8_T)(mode % 21); - /* SwitchCase: '/Switch Case' */ + /* SwitchCase: '/Switch Case' */ switch (mode) { case 10: - /* Outputs for IfAction SubSystem: '/rpm_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/rpm_enc' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion: '/TmpSignal ConversionAt SFunction Inport1' incorporates: - * Chart: '/Chart' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain' + /* SignalConversion: '/TmpSignal ConversionAt SFunction Inport1' incorporates: + * Chart: '/Chart' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain' */ cr929_SIL_B.TmpSignalConversionAtSFunctionInport1[0] = 57.2957802F * cr929_SIL_B.BusAssignment_h.alpha; @@ -31642,14 +31383,14 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1[4] = cr929_SIL_B.SumofElements_d; - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ cr929_SIL_B.rpm.rpm1 = cr929_SIL_get_rpm(1.0); cr929_SIL_B.rpm.rpm2 = cr929_SIL_get_rpm(2.0); cr929_SIL_B.rpm.rpm3 = cr929_SIL_get_rpm(3.0); cr929_SIL_B.rpm.rpm4 = cr929_SIL_get_rpm(4.0); cr929_SIL_B.rpm.rpm5 = cr929_SIL_get_rpm(5.0); - /* S-Function (mav_rpm_encode): '/mav_rpm_enc' incorporates: + /* S-Function (mav_rpm_encode): '/mav_rpm_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31657,16 +31398,16 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/rpm_enc' */ + /* End of Outputs for SubSystem: '/rpm_enc' */ break; case 0: case 8: case 15: - /* Outputs for IfAction SubSystem: '/attitude_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/attitude_enc' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ cr929_SIL_B.att.time_boot_ms = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.att.roll = cr929_SIL_B.BusAssignment_h.phi; cr929_SIL_B.att.pitch = cr929_SIL_B.BusAssignment_h.tht; @@ -31675,7 +31416,7 @@ void cr929_SIL_step(void) cr929_SIL_B.att.pitchspeed = cr929_SIL_B.BusAssignment_h.q; cr929_SIL_B.att.yawspeed = cr929_SIL_B.BusAssignment_h.r; - /* S-Function (mav_attitude_encode): '/mav_attitude_enc' incorporates: + /* S-Function (mav_attitude_encode): '/mav_attitude_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31683,15 +31424,15 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/attitude_enc' */ + /* End of Outputs for SubSystem: '/attitude_enc' */ break; case 2: case 13: - /* Outputs for IfAction SubSystem: '/glb_pos_int_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/glb_pos_int_enc' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ cr929_SIL_B.ins.time_boot_ms = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.ins.lat = (int32_T)rt_roundd_snf (cr929_SIL_B.BusAssignment_h.lat * 1.0E+7); @@ -31711,7 +31452,7 @@ void cr929_SIL_step(void) cr929_SIL_B.ins.hdg = (uint16_T)roundf(cr929_SIL_get_yaw (cr929_SIL_B.BusAssignment_h.psi)); - /* S-Function (mav_global_position_int_encode): '/mav_global_position_int_enc' incorporates: + /* S-Function (mav_global_position_int_encode): '/mav_global_position_int_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31719,12 +31460,12 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/glb_pos_int_enc' */ + /* End of Outputs for SubSystem: '/glb_pos_int_enc' */ break; case 3: - /* Outputs for IfAction SubSystem: '/gps_raw_int_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/gps_raw_int_enc' incorporates: + * ActionPort: '/Action Port' */ cr929_SIL_B.gps.time_usec = cr929_SIL_B.BusAssignment_h.TOW; cr929_SIL_B.gps.fix_type = (uint8_T) @@ -31740,43 +31481,43 @@ void cr929_SIL_step(void) cr929_SIL_B.vn = cr929_SIL_B.BusAssignment_h.v_n; cr929_SIL_B.ve = cr929_SIL_B.BusAssignment_h.v_e; - /* Chart: '/Chart' incorporates: - * SubSystem: '/get_vel' + /* Chart: '/Chart' incorporates: + * SubSystem: '/get_vel' */ - /* Sqrt: '/Sqrt' incorporates: - * Math: '/Math Function' - * Math: '/Math Function1' - * Sum: '/Sum' + /* Sqrt: '/Sqrt' incorporates: + * Math: '/Math Function' + * Math: '/Math Function1' + * Sum: '/Sum' */ cr929_SIL_B.Sqrt_i = sqrtf(cr929_SIL_B.vn * cr929_SIL_B.vn + cr929_SIL_B.ve * cr929_SIL_B.ve); cr929_SIL_B.gps.vel = (uint16_T)roundf(cr929_SIL_B.Sqrt_i * 100.0F); - cr929_SIL_B.vn_d = cr929_SIL_B.BusAssignment_h.v_n; - cr929_SIL_B.ve_l = cr929_SIL_B.BusAssignment_h.v_e; + cr929_SIL_B.vn_g = cr929_SIL_B.BusAssignment_h.v_n; + cr929_SIL_B.ve_k = cr929_SIL_B.BusAssignment_h.v_e; - /* Chart: '/Chart' incorporates: - * SubSystem: '/get_cog' + /* Chart: '/Chart' incorporates: + * SubSystem: '/get_cog' */ - /* Gain: '/Gain' incorporates: - * Trigonometry: '/Trigonometric Function' + /* Gain: '/Gain' incorporates: + * Trigonometry: '/Trigonometric Function' */ - cr929_SIL_B.Merge_a = 57.2957802F * rt_atan2f_snf(cr929_SIL_B.ve_l, - cr929_SIL_B.vn_d); + cr929_SIL_B.Merge_a = 57.2957802F * rt_atan2f_snf(cr929_SIL_B.ve_k, + cr929_SIL_B.vn_g); - /* If: '/If' */ + /* If: '/If' */ if (cr929_SIL_B.Merge_a < 0.0F) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - /* Sum: '/Sum' incorporates: - * Constant: '/Constant' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant' */ cr929_SIL_B.Merge_a += 360.0F; - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ cr929_SIL_B.gps.cog = (uint16_T)roundf(cr929_SIL_B.Merge_a * 100.0F); cr929_SIL_B.gps.satellites_visible = cr929_SIL_B.BusAssignment_h.satnum; @@ -31791,7 +31532,7 @@ void cr929_SIL_step(void) cr929_SIL_B.gps.hdg_acc = (uint32_T)roundf (cr929_SIL_B.BusAssignment_h.hdg_acc * 5.73E+6F); - /* S-Function (mav_gps_raw_int_encode): '/mav_gps_raw_int_enc' incorporates: + /* S-Function (mav_gps_raw_int_encode): '/mav_gps_raw_int_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31799,24 +31540,24 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/gps_raw_int_enc' */ + /* End of Outputs for SubSystem: '/gps_raw_int_enc' */ break; case 4: case 11: - /* Outputs for IfAction SubSystem: '/svo_out_raw_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/svo_out_raw_enc' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 20; i++) { - /* SignalConversion: '/TmpSignal ConversionAt SFunction Inport3' incorporates: - * Chart: '/Chart' + /* SignalConversion: '/TmpSignal ConversionAt SFunction Inport3' incorporates: + * Chart: '/Chart' */ cr929_SIL_B.TmpSignalConversionAtSFunctionInport3[i] = cr929_SIL_B.DataTypeConversion[i]; } - /* SignalConversion: '/TmpSignal ConversionAt SFunction Inport3' incorporates: - * Chart: '/Chart' + /* SignalConversion: '/TmpSignal ConversionAt SFunction Inport3' incorporates: + * Chart: '/Chart' */ cr929_SIL_B.TmpSignalConversionAtSFunctionInport3[20] = cr929_SIL_B.DataTypeConversion1_p; @@ -31848,7 +31589,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport3[78] = cr929_SIL_B.DataTypeConversion10; - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ cr929_SIL_B.servos.time_usec = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.servos.port = cr929_SIL_DW.port_num; cr929_SIL_B.servos.servo1_raw = cr929_SIL_get_pwm_by_ch((uint8_T) @@ -31890,7 +31631,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.port_num = 0U; } - /* S-Function (mav_servo_output_raw_encode): '/mav_servo_output_raw_enc' incorporates: + /* S-Function (mav_servo_output_raw_encode): '/mav_servo_output_raw_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31898,15 +31639,15 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/svo_out_raw_enc' */ + /* End of Outputs for SubSystem: '/svo_out_raw_enc' */ break; case 6: case 17: - /* Outputs for IfAction SubSystem: '/nav_ctrl_out_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/nav_ctrl_out_enc' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/Chart' incorporates: + /* Chart: '/Chart' incorporates: * Outport: '/traj' */ cr929_SIL_B.nav.nav_roll = cr929_SIL_B.Merge_i.phi_c * 57.3F; @@ -31920,7 +31661,7 @@ void cr929_SIL_step(void) cr929_SIL_B.nav.aspd_error = cr929_SIL_B.Merge_i.aspd_error; cr929_SIL_B.nav.xtrack_error = cr929_SIL_Y.traj.horiz_offset; - /* S-Function (mav_nav_controller_output_encode): '/mav_nav_controller_output_enc' incorporates: + /* S-Function (mav_nav_controller_output_encode): '/mav_nav_controller_output_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31928,21 +31669,21 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/nav_ctrl_out_enc' */ + /* End of Outputs for SubSystem: '/nav_ctrl_out_enc' */ break; case 5: - /* Outputs for IfAction SubSystem: '/scal_pres_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/scal_pres_enc' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ cr929_SIL_B.pres.time_boot_ms = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.pres.press_abs = cr929_SIL_B.Ps * 0.01F; cr929_SIL_B.pres.press_diff = cr929_SIL_B.qbar_bl * 0.01F; cr929_SIL_B.pres.temperature = (int16_T)roundf(cr929_SIL_B.temp * 100.0F); - /* S-Function (mav_scaled_pressure_encode): '/mav_scaled_pressure_enc' incorporates: + /* S-Function (mav_scaled_pressure_encode): '/mav_scaled_pressure_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31950,14 +31691,14 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/scal_pres_enc' */ + /* End of Outputs for SubSystem: '/scal_pres_enc' */ break; case 19: - /* Outputs for IfAction SubSystem: '/vfr_hud_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/vfr_hud_enc' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/Chart' incorporates: + /* Chart: '/Chart' incorporates: * Outport: '/traj' */ cr929_SIL_B.hud.airspeed = cr929_SIL_B.BusAssignment_h.IAS; @@ -31969,7 +31710,7 @@ void cr929_SIL_step(void) cr929_SIL_B.hud.alt = cr929_SIL_B.BusAssignment_h.msl; cr929_SIL_B.hud.climb = cr929_SIL_Y.traj.hdot; - /* S-Function (mav_vfr_hud_encode): '/mav_vfr_hud_enc' incorporates: + /* S-Function (mav_vfr_hud_encode): '/mav_vfr_hud_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -31977,14 +31718,14 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/vfr_hud_enc' */ + /* End of Outputs for SubSystem: '/vfr_hud_enc' */ break; case 7: - /* Outputs for IfAction SubSystem: '/sys_stat_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/sys_stat_enc' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ cr929_SIL_B.sys_status.onboard_control_sensors_present = cr929_SIL_B.BusAssignment_h.sensors_present; cr929_SIL_B.sys_status.onboard_control_sensors_enabled = @@ -31999,20 +31740,20 @@ void cr929_SIL_step(void) cr929_SIL_B.sys_status.battery_remaining = cr929_SIL_B.BusAssignment_h.battery_remaining; - /* Product: '/Divide' incorporates: - * Constant: '/Constant' + /* Product: '/Divide' incorporates: + * Constant: '/Constant' */ - rtb_out_gz = 1000U * cr929_SIL_B.mav_status.packet_rx_drop_count; - if (rtb_out_gz > 65535U) { - rtb_out_gz = 65535U; + rtb_out_et = 1000U * cr929_SIL_B.mav_status.packet_rx_drop_count; + if (rtb_out_et > 65535U) { + rtb_out_et = 65535U; } - /* Chart: '/Chart' incorporates: - * Constant: '/Constant1' - * Product: '/Divide' - * Sum: '/Sum' + /* Chart: '/Chart' incorporates: + * Constant: '/Constant1' + * Product: '/Divide' + * Sum: '/Sum' */ - cr929_SIL_B.sys_status.drop_rate_comm = (uint16_T)(rtb_out_gz / + cr929_SIL_B.sys_status.drop_rate_comm = (uint16_T)(rtb_out_et / (((uint32_T)cr929_SIL_B.mav_status.packet_rx_drop_count + cr929_SIL_B.mav_status.packet_rx_success_count) + 1U)); cr929_SIL_B.sys_status.errors_comm = @@ -32026,7 +31767,7 @@ void cr929_SIL_step(void) cr929_SIL_B.sys_status.errors_count4 = cr929_SIL_B.BusAssignment_h.errors_count4; - /* S-Function (mav_sys_status_encode): '/mav_sys_status_enc' incorporates: + /* S-Function (mav_sys_status_encode): '/mav_sys_status_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -32034,20 +31775,20 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/sys_stat_enc' */ + /* End of Outputs for SubSystem: '/sys_stat_enc' */ break; case 12: - /* Outputs for IfAction SubSystem: '/ext_sys_stat_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/ext_sys_stat_enc' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ cr929_SIL_B.ext_sys_stat.vtol_state = (uint8_T) cr929_SIL_B.Merge_i.vtol_state; cr929_SIL_B.ext_sys_stat.landed_state = (uint8_T) cr929_SIL_B.Merge_i.landed_state; - /* S-Function (mav_ext_sys_stat_encode): '/mav_ext_sys_stat_enc' incorporates: + /* S-Function (mav_ext_sys_stat_encode): '/mav_ext_sys_stat_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -32055,14 +31796,14 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/ext_sys_stat_enc' */ + /* End of Outputs for SubSystem: '/ext_sys_stat_enc' */ break; case 14: - /* Outputs for IfAction SubSystem: '/rc_chan_raw_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/rc_chan_raw_enc' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ cr929_SIL_B.rc_channels.time_boot_ms = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.rc_channels.port = cr929_SIL_B.Merge_i.rc.id; cr929_SIL_B.rc_channels.chan1_raw = cr929_SIL_B.Merge_i.rc.chan_raw @@ -32098,7 +31839,7 @@ void cr929_SIL_step(void) cr929_SIL_B.rc_channels.chan16_raw = cr929_SIL_B.Merge_i.rc.chan_raw[15]; - /* S-Function (mav_rc_channels_raw_encode): '/mav_rc_channels_raw_enc' incorporates: + /* S-Function (mav_rc_channels_raw_encode): '/mav_rc_channels_raw_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -32106,14 +31847,14 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/rc_chan_raw_enc' */ + /* End of Outputs for SubSystem: '/rc_chan_raw_enc' */ break; case 16: - /* Outputs for IfAction SubSystem: '/bat_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/bat_enc' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ cr929_SIL_B.bat.id = 0U; cr929_SIL_B.bat.battery_function = 2U; cr929_SIL_B.bat.type = 3U; @@ -32129,7 +31870,7 @@ void cr929_SIL_step(void) cr929_SIL_B.bat.voltages[2] = (uint16_T)roundf (cr929_SIL_B.BusAssignment_h.analog_inputs[2] * 1000.0F); - /* S-Function (mav_battery_status_encode): '/mav_battery_status_enc' incorporates: + /* S-Function (mav_battery_status_encode): '/mav_battery_status_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -32137,36 +31878,36 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/bat_enc' */ + /* End of Outputs for SubSystem: '/bat_enc' */ break; case 18: - /* Outputs for IfAction SubSystem: '/ins1_state' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/ins1_state' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * ArithShift: '/Shift Arithmetic' - * ArithShift: '/Shift Arithmetic1' - * Constant: '/Constant' - * Constant: '/Constant BP' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - * DataTypeConversion: '/Data Type Conversion2' - * DataTypeConversion: '/Data Type Conversion3' - * DataTypeConversion: '/Data Type Conversion4' - * DataTypeConversion: '/Data Type Conversion5' - * DataTypeConversion: '/Data Type Conversion6' - * Gain: '/Gain' - * Gain: '/Gain1' - * Gain: '/Gain2' - * Gain: '/Gain3' - * Gain: '/Gain6' - * Gain: '/Gain' - * S-Function (sfix_bitop): '/Bitwise AND1' - * S-Function (sfix_bitop): '/Bitwise AND2' - * S-Function (sfix_bitop): '/Bitwise AND4' - * Sum: '/Sum' - * Sum: '/Sum1' + /* BusAssignment: '/Bus Assignment' incorporates: + * ArithShift: '/Shift Arithmetic' + * ArithShift: '/Shift Arithmetic1' + * Constant: '/Constant' + * Constant: '/Constant BP' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * DataTypeConversion: '/Data Type Conversion2' + * DataTypeConversion: '/Data Type Conversion3' + * DataTypeConversion: '/Data Type Conversion4' + * DataTypeConversion: '/Data Type Conversion5' + * DataTypeConversion: '/Data Type Conversion6' + * Gain: '/Gain' + * Gain: '/Gain1' + * Gain: '/Gain2' + * Gain: '/Gain3' + * Gain: '/Gain6' + * Gain: '/Gain' + * S-Function (sfix_bitop): '/Bitwise AND1' + * S-Function (sfix_bitop): '/Bitwise AND2' + * S-Function (sfix_bitop): '/Bitwise AND4' + * Sum: '/Sum' + * Sum: '/Sum1' */ cr929_SIL_B.BusAssignment_o = cr929_SIL_rtZmavlink_ins1_t; cr929_SIL_B.BusAssignment_o.time_boot_ms = @@ -32199,39 +31940,39 @@ void cr929_SIL_step(void) cr929_SIL_B.solution_status_b; cr929_SIL_B.BusAssignment_o.seq = (uint8_T)cr929_SIL_B.good_n; - /* Gain: '/Gain7' */ - rtb_phi_c_c = floorf(100.0F * cr929_SIL_B.LLA_acc_m[0]); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + /* Gain: '/Gain7' */ + rtb_phi_c_h = floorf(100.0F * cr929_SIL_B.LLA_acc_m[0]); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - /* BusAssignment: '/Bus Assignment' incorporates: - * Gain: '/Gain7' + /* BusAssignment: '/Bus Assignment' incorporates: + * Gain: '/Gain7' */ - cr929_SIL_B.BusAssignment_o.eph = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T) - (uint16_T)rtb_phi_c_c); + cr929_SIL_B.BusAssignment_o.eph = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T) + (uint16_T)rtb_phi_c_h); - /* Gain: '/Gain8' */ - rtb_phi_c_c = floorf(100.0F * cr929_SIL_B.LLA_acc_m[2]); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + /* Gain: '/Gain8' */ + rtb_phi_c_h = floorf(100.0F * cr929_SIL_B.LLA_acc_m[2]); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - /* BusAssignment: '/Bus Assignment' incorporates: - * Gain: '/Gain8' + /* BusAssignment: '/Bus Assignment' incorporates: + * Gain: '/Gain8' */ - cr929_SIL_B.BusAssignment_o.epv = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T) - (uint16_T)rtb_phi_c_c); + cr929_SIL_B.BusAssignment_o.epv = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T) + (uint16_T)rtb_phi_c_h); cr929_SIL_B.BusAssignment_o.satellites_visible = cr929_SIL_B.sv_used_d; - /* S-Function (mav_ins1_encode): '/mav_ins1_enc' incorporates: + /* S-Function (mav_ins1_encode): '/mav_ins1_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -32239,36 +31980,36 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/ins1_state' */ + /* End of Outputs for SubSystem: '/ins1_state' */ break; case 9: - /* Outputs for IfAction SubSystem: '/ins2_state' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/ins2_state' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * ArithShift: '/Shift Arithmetic' - * ArithShift: '/Shift Arithmetic1' - * Constant: '/Constant' - * Constant: '/Constant BP' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - * DataTypeConversion: '/Data Type Conversion2' - * DataTypeConversion: '/Data Type Conversion3' - * DataTypeConversion: '/Data Type Conversion4' - * DataTypeConversion: '/Data Type Conversion5' - * DataTypeConversion: '/Data Type Conversion6' - * Gain: '/Gain' - * Gain: '/Gain1' - * Gain: '/Gain2' - * Gain: '/Gain3' - * Gain: '/Gain6' - * Gain: '/Gain' - * S-Function (sfix_bitop): '/Bitwise AND1' - * S-Function (sfix_bitop): '/Bitwise AND2' - * S-Function (sfix_bitop): '/Bitwise AND4' - * Sum: '/Sum' - * Sum: '/Sum1' + /* BusAssignment: '/Bus Assignment' incorporates: + * ArithShift: '/Shift Arithmetic' + * ArithShift: '/Shift Arithmetic1' + * Constant: '/Constant' + * Constant: '/Constant BP' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * DataTypeConversion: '/Data Type Conversion2' + * DataTypeConversion: '/Data Type Conversion3' + * DataTypeConversion: '/Data Type Conversion4' + * DataTypeConversion: '/Data Type Conversion5' + * DataTypeConversion: '/Data Type Conversion6' + * Gain: '/Gain' + * Gain: '/Gain1' + * Gain: '/Gain2' + * Gain: '/Gain3' + * Gain: '/Gain6' + * Gain: '/Gain' + * S-Function (sfix_bitop): '/Bitwise AND1' + * S-Function (sfix_bitop): '/Bitwise AND2' + * S-Function (sfix_bitop): '/Bitwise AND4' + * Sum: '/Sum' + * Sum: '/Sum1' */ cr929_SIL_B.BusAssignment_b = cr929_SIL_rtZmavlink_ins2_t; cr929_SIL_B.BusAssignment_b.time_boot_ms = @@ -32301,38 +32042,38 @@ void cr929_SIL_step(void) cr929_SIL_B.solution_status_c; cr929_SIL_B.BusAssignment_b.seq = (uint8_T)cr929_SIL_B.good_h; - /* Gain: '/Gain7' */ - rtb_phi_c_c = floorf(100.0F * cr929_SIL_B.LLA_acc[0]); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + /* Gain: '/Gain7' */ + rtb_phi_c_h = floorf(100.0F * cr929_SIL_B.LLA_acc[0]); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - /* BusAssignment: '/Bus Assignment' incorporates: - * Gain: '/Gain7' + /* BusAssignment: '/Bus Assignment' incorporates: + * Gain: '/Gain7' */ - cr929_SIL_B.BusAssignment_b.eph = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T) - (uint16_T)rtb_phi_c_c); + cr929_SIL_B.BusAssignment_b.eph = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T) + (uint16_T)rtb_phi_c_h); - /* Gain: '/Gain8' */ - rtb_phi_c_c = floorf(100.0F * cr929_SIL_B.LLA_acc[2]); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + /* Gain: '/Gain8' */ + rtb_phi_c_h = floorf(100.0F * cr929_SIL_B.LLA_acc[2]); + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 65536.0F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 65536.0F); } - /* BusAssignment: '/Bus Assignment' incorporates: - * Gain: '/Gain8' + /* BusAssignment: '/Bus Assignment' incorporates: + * Gain: '/Gain8' */ - cr929_SIL_B.BusAssignment_b.epv = (uint16_T)(rtb_phi_c_c < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_c : (int32_T) - (uint16_T)rtb_phi_c_c); + cr929_SIL_B.BusAssignment_b.epv = (uint16_T)(rtb_phi_c_h < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_h : (int32_T) + (uint16_T)rtb_phi_c_h); cr929_SIL_B.BusAssignment_b.satellites_visible = cr929_SIL_B.sv_used; - /* S-Function (mav_ins2_encode): '/mav_ins2_enc' incorporates: + /* S-Function (mav_ins2_encode): '/mav_ins2_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -32340,14 +32081,14 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/ins2_state' */ + /* End of Outputs for SubSystem: '/ins2_state' */ break; case 1: - /* Outputs for IfAction SubSystem: '/emb_atmo_com_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/emb_atmo_com_enc' incorporates: + * ActionPort: '/Action Port' */ - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ cr929_SIL_B.atmos.time_boot_ms = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.atmos.ps = cr929_SIL_B.BusAssignment_h.baro; cr929_SIL_B.atmos.qbar = cr929_SIL_B.BusAssignment_h.qbar; @@ -32357,7 +32098,7 @@ void cr929_SIL_step(void) cr929_SIL_B.atmos.mach = cr929_SIL_B.BusAssignment_h.Mach; cr929_SIL_B.atmos.seq = (uint8_T)roundf(cr929_SIL_B.imu_temp_j); - /* S-Function (mav_emb_atmo_com_encode): '/mav_emb_atmo_com_enc' incorporates: + /* S-Function (mav_emb_atmo_com_encode): '/mav_emb_atmo_com_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -32365,24 +32106,24 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/emb_atmo_com_enc' */ + /* End of Outputs for SubSystem: '/emb_atmo_com_enc' */ break; default: - /* Outputs for IfAction SubSystem: '/heartbeat_enc' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/heartbeat_enc' incorporates: + * ActionPort: '/Action Port' */ - /* S-Function (sfix_bitop): '/Bitwise Operator' */ + /* S-Function (sfix_bitop): '/Bitwise Operator' */ cr929_SIL_B.BitwiseOperator = 5U; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * Constant: '/Constant' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * Constant: '/Constant' */ cr929_SIL_B.DataTypeConversion_c = (uint8_T) MAV_MAV_AUTOPILOT_RESERVED; - /* Chart: '/Chart' incorporates: - * Constant: '/mav_autopilot_ZT' + /* Chart: '/Chart' incorporates: + * Constant: '/mav_autopilot_ZT' */ cr929_SIL_B.heartbeat.type = cr929_SIL_B.DataTypeConversion_c; cr929_SIL_B.heartbeat.autopilot = 19U; @@ -32390,7 +32131,7 @@ void cr929_SIL_step(void) cr929_SIL_B.heartbeat.custom_mode = cr929_SIL_get_mode(); cr929_SIL_B.heartbeat.system_status = cr929_SIL_get_status(); - /* S-Function (mav_heartbeat_encode): '/mav_heartbeat_enc' incorporates: + /* S-Function (mav_heartbeat_encode): '/mav_heartbeat_enc' incorporates: * Constant: '/Constant BP' * Constant: '/Constant BP1' */ @@ -32398,26 +32139,26 @@ void cr929_SIL_step(void) &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); - /* End of Outputs for SubSystem: '/heartbeat_enc' */ + /* End of Outputs for SubSystem: '/heartbeat_enc' */ break; } - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/loop_download' */ + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/loop_download' */ } cr929_SIL_DW.is_c45_cr929_autopilot = cr929_SIL_IN_Wait; - cr929_SIL_DW.temporalCounter_i1_i = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; - /* Outputs for Function Call SubSystem: '/Function-Call Subsystem' */ - /* S-Function (mav_msg2buff): '/mav_msg2buff' incorporates: + /* Outputs for Function Call SubSystem: '/Function-Call Subsystem' */ + /* S-Function (mav_msg2buff): '/mav_msg2buff' incorporates: * Outport: '/buff' * Outport: '/buff_len' */ mav_msg2buff_Outputs_wrapper(&cr929_SIL_B.Merged_msg, &cr929_SIL_Y.buff [0], &cr929_SIL_Y.buff_len, 256); - /* End of Outputs for SubSystem: '/Function-Call Subsystem' */ + /* End of Outputs for SubSystem: '/Function-Call Subsystem' */ /* Outport: '/seq' */ cr929_SIL_Y.seq++; @@ -32438,7 +32179,7 @@ void cr929_SIL_step(void) } } } else { - if ((uint32_T)((int32_T)cr929_SIL_DW.temporalCounter_i1_i * 3062) >= + if ((uint32_T)((int32_T)cr929_SIL_DW.temporalCounter_i1_o * 3062) >= cr929_SIL_DW.wait_time) { cr929_SIL_DW.is_c45_cr929_autopilot = cr929_SIL_IN_Idle_h; } @@ -32454,7 +32195,7 @@ void cr929_SIL_step(void) cr929_SIL_sf_msg_discard_ap_ver_queue(); cr929_SIL_sf_msg_discard_serial_echoline(); - /* End of Chart: '/traffic_ctrl' */ + /* End of Chart: '/traffic_ctrl' */ /* Update for UnitDelay: '/Unit Delay2' */ cr929_SIL_DW.UnitDelay2_3_DSTATE = cr929_SIL_B.id_h; @@ -32470,67 +32211,67 @@ void cr929_SIL_step(void) cr929_SIL_DW.UnitDelay2_1_DSTATE_h[i] = cr929_SIL_B.channels[i]; } - /* Update for SwitchCase: '/Switch Case' */ + /* Update for SwitchCase: '/Switch Case' */ if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_m == 0) { - /* Update for IfAction SubSystem: '/gamma2tht' incorporates: - * ActionPort: '/Action Port' + /* Update for IfAction SubSystem: '/gamma2tht' incorporates: + * ActionPort: '/Action Port' */ - /* Update for Delay: '/Delay' */ + /* Update for Delay: '/Delay' */ cr929_SIL_DW.icLoad_dd = 0U; cr929_SIL_DW.Delay_DSTATE_ku = rtb_Sum3_g; - /* End of Update for SubSystem: '/gamma2tht' */ + /* End of Update for SubSystem: '/gamma2tht' */ } - /* End of Update for SwitchCase: '/Switch Case' */ + /* End of Update for SwitchCase: '/Switch Case' */ - /* Update for SwitchCase: '/Switch Case' */ + /* Update for SwitchCase: '/Switch Case' */ if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_h == 0) { - /* Update for IfAction SubSystem: '/ROLL_CTRL' incorporates: - * ActionPort: '/Action Port' + /* Update for IfAction SubSystem: '/ROLL_CTRL' incorporates: + * ActionPort: '/Action Port' */ - /* Update for Delay: '/Delay' */ + /* Update for Delay: '/Delay' */ cr929_SIL_DW.icLoad_d2 = 0U; cr929_SIL_DW.Delay_DSTATE_e = rtb_Switch2_b; - /* End of Update for SubSystem: '/ROLL_CTRL' */ + /* End of Update for SubSystem: '/ROLL_CTRL' */ } - /* End of Update for SwitchCase: '/Switch Case' */ + /* End of Update for SwitchCase: '/Switch Case' */ /* Update for Atomic SubSystem: '/pitch' */ - /* Update for SwitchCase: '/Switch Case' */ + /* Update for SwitchCase: '/Switch Case' */ if (cr929_SIL_DW.SwitchCase_ActiveSubsystem_j == 0) { - /* Update for IfAction SubSystem: '/THT_Q_CTRL' incorporates: - * ActionPort: '/Action Port' + /* Update for IfAction SubSystem: '/THT_Q_CTRL' incorporates: + * ActionPort: '/Action Port' */ - /* Update for Delay: '/Delay' */ + /* Update for Delay: '/Delay' */ cr929_SIL_DW.icLoad_o = 0U; cr929_SIL_DW.Delay_DSTATE_e5 = rtb_Switch2_b5; - /* End of Update for SubSystem: '/THT_Q_CTRL' */ + /* End of Update for SubSystem: '/THT_Q_CTRL' */ } - /* End of Update for SwitchCase: '/Switch Case' */ + /* End of Update for SwitchCase: '/Switch Case' */ /* End of Update for SubSystem: '/pitch' */ - /* Update for SwitchCase: '/Switch Case1' */ + /* Update for SwitchCase: '/Switch Case1' */ if (cr929_SIL_DW.SwitchCase1_ActiveSubsystem == 3) { - /* Update for IfAction SubSystem: '/PSIDOT_CTRL' incorporates: - * ActionPort: '/Action Port' + /* Update for IfAction SubSystem: '/PSIDOT_CTRL' incorporates: + * ActionPort: '/Action Port' */ - /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states_b = cr929_SIL_DW.DiscreteTransferFcn_tmp_i; - /* Update for Delay: '/Delay' */ + /* Update for Delay: '/Delay' */ cr929_SIL_DW.icLoad_bf = 0U; - cr929_SIL_DW.Delay_DSTATE_k = rtb_Switch2; + cr929_SIL_DW.Delay_DSTATE_kc = rtb_Switch2_d; - /* End of Update for SubSystem: '/PSIDOT_CTRL' */ + /* End of Update for SubSystem: '/PSIDOT_CTRL' */ } - /* End of Update for SwitchCase: '/Switch Case1' */ + /* End of Update for SwitchCase: '/Switch Case1' */ /* Update for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE = cr929_SIL_B.cr929_FlightControlLaw; @@ -32543,11 +32284,11 @@ void cr929_SIL_step(void) /* DataTypeConversion: '/Data Type Conversion6' */ rtb_DataTypeConversion_a = rtb_Delay_a[3]; - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' * Input0 Data Type: Floating Point real32_T * Input1 Data Type: Floating Point real32_T * Input2 Data Type: Floating Point real32_T @@ -32572,16 +32313,138 @@ void cr929_SIL_step(void) /* Logic: '/NOT3' */ cr929_SIL_B.NOT3 = (rtb_BitwiseAND4_f == 0U); + + /* Outputs for Enabled SubSystem: '/throttle' incorporates: + * EnablePort: '/Enable' + */ + if (rtmIsMajorTimeStep(cr929_SIL_M)) { + if (cr929_SIL_B.NOT3) { + if (!cr929_SIL_DW.throttle_MODE) { + /* InitializeConditions for Delay: '/Delay' */ + cr929_SIL_DW.icLoad_b = 1U; + + /* InitializeConditions for Integrator: '/Integrator3' */ + if (rtmIsFirstInitCond(cr929_SIL_M)) { + cr929_SIL_X.Integrator3_CSTATE_o = 0.0; + } + + cr929_SIL_DW.Integrator3_IWORK_n = 1; + + /* End of InitializeConditions for Integrator: '/Integrator3' */ + + /* InitializeConditions for UnitDelay: '/Unit Delay' */ + cr929_SIL_DW.UnitDelay_DSTATE_c = 0.0; + cr929_SIL_DW.throttle_MODE = true; + } + } else { + if (cr929_SIL_DW.throttle_MODE) { + cr929_SIL_DW.throttle_MODE = false; + } + } + } + + /* End of Outputs for SubSystem: '/throttle' */ } /* End of Outputs for SubSystem: '/atmosphere' */ - /* Outputs for Enabled SubSystem: '/throttle' */ - cr929_SIL_throttle(cr929_SIL_M, cr929_SIL_B.NOT3, - cr929_SIL_B.LookupTableDynamic_ov, - cr929_SIL_B.UnitDelay_l, &cr929_SIL_B.throttle_l, - &cr929_SIL_B.throttle, &cr929_SIL_DW.throttle, - &cr929_SIL_X.throttle); + /* Outputs for Enabled SubSystem: '/throttle' incorporates: + * EnablePort: '/Enable' + */ + if (cr929_SIL_DW.throttle_MODE) { + if (rtmIsMajorTimeStep(cr929_SIL_M)) { + /* Delay: '/Delay' */ + if (cr929_SIL_DW.icLoad_b != 0) { + cr929_SIL_DW.Delay_DSTATE_k = cr929_SIL_B.LookupTableDynamic_ov; + } + + cr929_SIL_B.Delay_j = cr929_SIL_DW.Delay_DSTATE_k; + + /* End of Delay: '/Delay' */ + } + + /* Integrator: '/Integrator3' */ + if (cr929_SIL_DW.Integrator3_IWORK_n != 0) { + cr929_SIL_X.Integrator3_CSTATE_o = cr929_SIL_B.UnitDelay_l; + } + + cr929_SIL_B.throttle_i = cr929_SIL_X.Integrator3_CSTATE_o; + + /* End of Integrator: '/Integrator3' */ + + /* Sum: '/subtract2' */ + cr929_SIL_B.subtract2_c = cr929_SIL_B.Delay_j - cr929_SIL_B.throttle_i; + + /* Gain: '/Gain3' */ + cr929_SIL_B.Gain3_e = cr929_SIL_P.throttle_k * cr929_SIL_B.subtract2_c; + + /* SignalConversion: '/OutportBufferForthr' */ + cr929_SIL_B.throttle_l = cr929_SIL_B.throttle_i; + if (rtmIsMajorTimeStep(cr929_SIL_M)) { + /* Sum: '/Sum' incorporates: + * UnitDelay: '/Unit Delay' + */ + cr929_SIL_DW.UnitDelay_DSTATE_c = cr929_SIL_B.LookupTableDynamic_ov - + cr929_SIL_DW.UnitDelay_DSTATE_c; + + /* Switch: '/if' incorporates: + * Constant: '/Constant1' + * Switch: '/if' + * UnitDelay: '/Unit Delay' + */ + if (cr929_SIL_DW.UnitDelay_DSTATE_c > 0.0) { + /* Switch: '/if' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + */ + if (cr929_SIL_B.LookupTableDynamic_ov > 0.5) { + rtb_LookupTableDynamic_i = 0.2538; + } else { + rtb_LookupTableDynamic_i = 0.0877; + } + + /* End of Switch: '/if' */ + } else if (cr929_SIL_B.LookupTableDynamic_ov > 0.5) { + /* Switch: '/if' incorporates: + * Constant: '/Constant' + */ + rtb_LookupTableDynamic_i = 0.108; + } else { + rtb_LookupTableDynamic_i = 0.082; + } + + /* End of Switch: '/if' */ + + /* Gain: '/Gain' */ + rtb_Gain_nv = 0.003062 * rtb_LookupTableDynamic_i; + + /* Sum: '/subtract1' */ + rtb_LookupTableDynamic_i = cr929_SIL_B.LookupTableDynamic_ov - + cr929_SIL_B.Delay_j; + + /* Switch: '/Switch2' incorporates: + * Gain: '/Gain3' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' + */ + if (rtb_LookupTableDynamic_i > rtb_Gain_nv) { + rtb_LookupTableDynamic_i = rtb_Gain_nv; + } else { + if (rtb_LookupTableDynamic_i < -rtb_Gain_nv) { + /* Switch: '/Switch' incorporates: + * Gain: '/Gain3' + */ + rtb_LookupTableDynamic_i = -rtb_Gain_nv; + } + } + + /* End of Switch: '/Switch2' */ + + /* Sum: '/Sum' */ + rtb_Sum_m = rtb_LookupTableDynamic_i + cr929_SIL_B.Delay_j; + } + } /* End of Outputs for SubSystem: '/throttle' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { @@ -32599,13 +32462,136 @@ void cr929_SIL_step(void) /* Logic: '/NOT4' */ cr929_SIL_B.NOT4 = (rtb_BitwiseAND_o == 0U); + + /* Outputs for Enabled SubSystem: '/throttle1' incorporates: + * EnablePort: '/Enable' + */ + if (rtmIsMajorTimeStep(cr929_SIL_M)) { + if (cr929_SIL_B.NOT4) { + if (!cr929_SIL_DW.throttle1_MODE) { + /* InitializeConditions for Delay: '/Delay' */ + cr929_SIL_DW.icLoad_h = 1U; + + /* InitializeConditions for Integrator: '/Integrator3' */ + if (rtmIsFirstInitCond(cr929_SIL_M)) { + cr929_SIL_X.Integrator3_CSTATE = 0.0; + } + + cr929_SIL_DW.Integrator3_IWORK = 1; + + /* End of InitializeConditions for Integrator: '/Integrator3' */ + + /* InitializeConditions for UnitDelay: '/Unit Delay' */ + cr929_SIL_DW.UnitDelay_DSTATE_a = 0.0; + cr929_SIL_DW.throttle1_MODE = true; + } + } else { + if (cr929_SIL_DW.throttle1_MODE) { + cr929_SIL_DW.throttle1_MODE = false; + } + } + } + + /* End of Outputs for SubSystem: '/throttle1' */ } - /* Outputs for Enabled SubSystem: '/throttle1' */ - cr929_SIL_throttle(cr929_SIL_M, cr929_SIL_B.NOT4, - cr929_SIL_B.LookupTableDynamic_ov, cr929_SIL_B.UnitDelay1, - &cr929_SIL_B.throttle_r, &cr929_SIL_B.throttle1, - &cr929_SIL_DW.throttle1, &cr929_SIL_X.throttle1); + /* Outputs for Enabled SubSystem: '/throttle1' incorporates: + * EnablePort: '/Enable' + */ + if (cr929_SIL_DW.throttle1_MODE) { + if (rtmIsMajorTimeStep(cr929_SIL_M)) { + /* Delay: '/Delay' */ + if (cr929_SIL_DW.icLoad_h != 0) { + cr929_SIL_DW.Delay_DSTATE = cr929_SIL_B.LookupTableDynamic_ov; + } + + cr929_SIL_B.Delay = cr929_SIL_DW.Delay_DSTATE; + + /* End of Delay: '/Delay' */ + } + + /* Integrator: '/Integrator3' */ + if (cr929_SIL_DW.Integrator3_IWORK != 0) { + cr929_SIL_X.Integrator3_CSTATE = cr929_SIL_B.UnitDelay1; + } + + cr929_SIL_B.throttle = cr929_SIL_X.Integrator3_CSTATE; + + /* End of Integrator: '/Integrator3' */ + + /* Sum: '/subtract2' */ + cr929_SIL_B.subtract2 = cr929_SIL_B.Delay - cr929_SIL_B.throttle; + + /* Gain: '/Gain3' */ + cr929_SIL_B.Gain3 = cr929_SIL_P.throttle_k * cr929_SIL_B.subtract2; + + /* SignalConversion: '/OutportBufferForthr' */ + cr929_SIL_B.throttle_r = cr929_SIL_B.throttle; + if (rtmIsMajorTimeStep(cr929_SIL_M)) { + /* Sum: '/Sum' incorporates: + * UnitDelay: '/Unit Delay' + */ + cr929_SIL_DW.UnitDelay_DSTATE_a = cr929_SIL_B.LookupTableDynamic_ov - + cr929_SIL_DW.UnitDelay_DSTATE_a; + + /* Switch: '/if' incorporates: + * Constant: '/Constant1' + * Switch: '/if' + * UnitDelay: '/Unit Delay' + */ + if (cr929_SIL_DW.UnitDelay_DSTATE_a > 0.0) { + /* Switch: '/if' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + */ + if (cr929_SIL_B.LookupTableDynamic_ov > 0.5) { + rtb_LookupTableDynamic_i = 0.2538; + } else { + rtb_LookupTableDynamic_i = 0.0938; + } + + /* End of Switch: '/if' */ + } else if (cr929_SIL_B.LookupTableDynamic_ov > 0.5) { + /* Switch: '/if' incorporates: + * Constant: '/Constant' + */ + rtb_LookupTableDynamic_i = 0.108; + } else { + rtb_LookupTableDynamic_i = 0.082; + } + + /* End of Switch: '/if' */ + + /* Gain: '/Gain' */ + rtb_Gain_nv = 0.003062 * rtb_LookupTableDynamic_i; + + /* Sum: '/subtract1' */ + rtb_LookupTableDynamic_i = cr929_SIL_B.LookupTableDynamic_ov - + cr929_SIL_B.Delay; + + /* Switch: '/Switch2' incorporates: + * Gain: '/Gain3' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' + */ + if (rtb_LookupTableDynamic_i > rtb_Gain_nv) { + rtb_LookupTableDynamic_i = rtb_Gain_nv; + } else { + if (rtb_LookupTableDynamic_i < -rtb_Gain_nv) { + /* Switch: '/Switch' incorporates: + * Gain: '/Gain3' + */ + rtb_LookupTableDynamic_i = -rtb_Gain_nv; + } + } + + /* End of Switch: '/Switch2' */ + + /* Sum: '/Sum' */ + rtb_Sum_b = rtb_LookupTableDynamic_i + cr929_SIL_B.Delay; + } + } /* End of Outputs for SubSystem: '/throttle1' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { @@ -32616,7 +32602,7 @@ void cr929_SIL_step(void) /* End of Outputs for SubSystem: '/Enabled Subsystem1' */ - /* SignalConversion: '/TmpHiddenBufferAtBus AssignmentInport1' */ + /* SignalConversion: '/TmpHiddenBufferAtBus AssignmentInport1' */ rtb_TmpHiddenBufferAtBusAssignmentInport1_m = rtb_DataStoreRead; } @@ -32822,11 +32808,10 @@ void cr929_SIL_step(void) rtb_Divide6 = 0.017453292519943295 * cr929_SIL_B.UnitConversion[0]; /* Trigonometry: '/sine' */ - rtb_table2D_Cm_df = sin(rtb_Divide6); + rtb_Gain_nv = sin(rtb_Divide6); /* Product: '/Product' */ - cr929_SIL_B.Product_p = rtb_table2D_Cm_df * rtb_table2D_Cm_df * - cr929_SIL_ConstB.Sum2; + cr929_SIL_B.Product_p = rtb_Gain_nv * rtb_Gain_nv * cr929_SIL_ConstB.Sum2; /* Sum: '/Sum2' incorporates: * Constant: '/f2' @@ -32985,17 +32970,17 @@ void cr929_SIL_step(void) /* DataTypeConversion: '/Data Type Conversion8' */ rtb_DataTypeConversion_a = rtb_Delay_a[4]; - /* Switch: '/Switch1' */ + /* Switch: '/Switch1' */ rtb_LookupTableDynamic_i = (rtb_DataTypeConversion_a > 1500.0F); /* DataTypeConversion: '/Data Type Conversion9' */ rtb_brake = rtb_LookupTableDynamic_i; - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' * Input0 Data Type: Integer U16 * Input1 Data Type: Floating Point real32_T * Input2 Data Type: Floating Point real32_T @@ -33243,7 +33228,7 @@ void cr929_SIL_step(void) /* End of Saturate: '/saturation' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_j != 0) { cr929_SIL_X.Integrator_CSTATE_f = cr929_SIL_B.LookupTableDynamic; @@ -33259,17 +33244,16 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_c = cr929_SIL_X.Integrator_CSTATE_f; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ /* Backlash: '/Backlash1' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_de / 2.0; - if (cr929_SIL_B.Integrator_c < cr929_SIL_DW.PrevY - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash1 = cr929_SIL_B.Integrator_c + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_c <= cr929_SIL_DW.PrevY + - rtb_table2D_Cm_df) { + rtb_Gain_nv = cr929_SIL_P.deadband_de / 2.0; + if (cr929_SIL_B.Integrator_c < cr929_SIL_DW.PrevY - rtb_Gain_nv) { + cr929_SIL_B.Backlash1 = cr929_SIL_B.Integrator_c + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_c <= cr929_SIL_DW.PrevY + rtb_Gain_nv) { cr929_SIL_B.Backlash1 = cr929_SIL_DW.PrevY; } else { - cr929_SIL_B.Backlash1 = cr929_SIL_B.Integrator_c - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash1 = cr929_SIL_B.Integrator_c - rtb_Gain_nv; } /* End of Backlash: '/Backlash1' */ @@ -33278,7 +33262,7 @@ void cr929_SIL_step(void) cr929_SIL_B.NOT1 = ((uint32_T)rtb_BitwiseAND2 == 0U); /* Outputs for Enabled SubSystem: '/Enabled Subsystem6' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT1) { @@ -33296,10 +33280,10 @@ void cr929_SIL_step(void) } /* Outputs for Enabled SubSystem: '/Enabled Subsystem6' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem6_MODE_d) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_bt = cr929_SIL_B.Backlash1; } @@ -33330,7 +33314,7 @@ void cr929_SIL_step(void) rtCP_table2D_CL_de_bp02Data, rtCP_table2D_CL_de_tableData, rtCP_table2D_CL_de_maxIndex, 5U) * CLdeUncertGain; - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_e != 0) { cr929_SIL_X.Integrator_CSTATE_d = cr929_SIL_B.LookupTableDynamic_k; @@ -33346,17 +33330,16 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_d = cr929_SIL_X.Integrator_CSTATE_d; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ /* Backlash: '/Backlash8' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_da / 2.0; - if (cr929_SIL_B.Integrator_d < cr929_SIL_DW.PrevY_e - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash8 = cr929_SIL_B.Integrator_d + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_d <= cr929_SIL_DW.PrevY_e + - rtb_table2D_Cm_df) { + rtb_Gain_nv = cr929_SIL_P.deadband_da / 2.0; + if (cr929_SIL_B.Integrator_d < cr929_SIL_DW.PrevY_e - rtb_Gain_nv) { + cr929_SIL_B.Backlash8 = cr929_SIL_B.Integrator_d + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_d <= cr929_SIL_DW.PrevY_e + rtb_Gain_nv) { cr929_SIL_B.Backlash8 = cr929_SIL_DW.PrevY_e; } else { - cr929_SIL_B.Backlash8 = cr929_SIL_B.Integrator_d - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash8 = cr929_SIL_B.Integrator_d - rtb_Gain_nv; } /* End of Backlash: '/Backlash8' */ @@ -33365,7 +33348,7 @@ void cr929_SIL_step(void) cr929_SIL_B.NOT = ((uint32_T)rtb_BitwiseAND1 == 0U); /* Outputs for Enabled SubSystem: '/Enabled Subsystem5' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT) { @@ -33383,10 +33366,10 @@ void cr929_SIL_step(void) } /* Outputs for Enabled SubSystem: '/Enabled Subsystem5' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem5_MODE_g) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_n = cr929_SIL_B.Backlash8; } @@ -33408,7 +33391,7 @@ void cr929_SIL_step(void) /* End of Saturate: '/saturation' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_jd != 0) { cr929_SIL_X.Integrator_CSTATE_b = cr929_SIL_B.LookupTableDynamic_m; @@ -33424,17 +33407,16 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_m = cr929_SIL_X.Integrator_CSTATE_b; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ /* Backlash: '/Backlash2' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dr / 2.0; - if (cr929_SIL_B.Integrator_m < cr929_SIL_DW.PrevY_c - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash2 = cr929_SIL_B.Integrator_m + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_m <= cr929_SIL_DW.PrevY_c + - rtb_table2D_Cm_df) { + rtb_Gain_nv = cr929_SIL_P.deadband_dr / 2.0; + if (cr929_SIL_B.Integrator_m < cr929_SIL_DW.PrevY_c - rtb_Gain_nv) { + cr929_SIL_B.Backlash2 = cr929_SIL_B.Integrator_m + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_m <= cr929_SIL_DW.PrevY_c + rtb_Gain_nv) { cr929_SIL_B.Backlash2 = cr929_SIL_DW.PrevY_c; } else { - cr929_SIL_B.Backlash2 = cr929_SIL_B.Integrator_m - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash2 = cr929_SIL_B.Integrator_m - rtb_Gain_nv; } /* End of Backlash: '/Backlash2' */ @@ -33443,7 +33425,7 @@ void cr929_SIL_step(void) cr929_SIL_B.NOT2 = ((uint32_T)rtb_BitwiseAND3 == 0U); /* Outputs for Enabled SubSystem: '/Enabled Subsystem7' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT2) { @@ -33461,10 +33443,10 @@ void cr929_SIL_step(void) } /* Outputs for Enabled SubSystem: '/Enabled Subsystem7' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem7_MODE_l) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_e = cr929_SIL_B.Backlash2; } @@ -33486,7 +33468,7 @@ void cr929_SIL_step(void) /* End of Saturate: '/saturation' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_f != 0) { cr929_SIL_X.Integrator_CSTATE_h = cr929_SIL_B.LookupTableDynamic_l; @@ -33502,26 +33484,25 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_n = cr929_SIL_X.Integrator_CSTATE_h; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash6' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_n < cr929_SIL_DW.PrevY_d - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash6 = cr929_SIL_B.Integrator_n + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_n <= cr929_SIL_DW.PrevY_d + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash6' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_n < cr929_SIL_DW.PrevY_d - rtb_Gain_nv) { + cr929_SIL_B.Backlash6 = cr929_SIL_B.Integrator_n + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_n <= cr929_SIL_DW.PrevY_d + rtb_Gain_nv) { cr929_SIL_B.Backlash6 = cr929_SIL_DW.PrevY_d; } else { - cr929_SIL_B.Backlash6 = cr929_SIL_B.Integrator_n - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash6 = cr929_SIL_B.Integrator_n - rtb_Gain_nv; } - /* End of Backlash: '/Backlash6' */ + /* End of Backlash: '/Backlash6' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT' */ + /* Logic: '/NOT' */ cr929_SIL_B.NOT_c = ((uint32_T)rtb_BitwiseAND == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem5' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem5' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT_c) { @@ -33535,20 +33516,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem5' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem5' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem5' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem5' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem5_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_b = cr929_SIL_B.Backlash6; } - /* End of Outputs for SubSystem: '/Enabled Subsystem5' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem5' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_p != 0) { cr929_SIL_X.Integrator_CSTATE_g = cr929_SIL_B.LookupTableDynamic_lb; @@ -33564,26 +33545,26 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_ml = cr929_SIL_X.Integrator_CSTATE_g; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash1' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_ml < cr929_SIL_DW.PrevY_b - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash1_g = cr929_SIL_B.Integrator_ml + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_ml <= cr929_SIL_DW.PrevY_b + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash1' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_ml < cr929_SIL_DW.PrevY_b - rtb_Gain_nv) { + cr929_SIL_B.Backlash1_g = cr929_SIL_B.Integrator_ml + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_ml <= cr929_SIL_DW.PrevY_b + rtb_Gain_nv) + { cr929_SIL_B.Backlash1_g = cr929_SIL_DW.PrevY_b; } else { - cr929_SIL_B.Backlash1_g = cr929_SIL_B.Integrator_ml - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash1_g = cr929_SIL_B.Integrator_ml - rtb_Gain_nv; } - /* End of Backlash: '/Backlash1' */ + /* End of Backlash: '/Backlash1' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT1' */ + /* Logic: '/NOT1' */ cr929_SIL_B.NOT1_h = ((uint32_T)rtb_BitwiseAND1_n == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem1' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem1' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT1_h) { @@ -33597,20 +33578,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem1' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem1' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem1' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem1' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem1_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_la = cr929_SIL_B.Backlash1_g; } - /* End of Outputs for SubSystem: '/Enabled Subsystem1' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem1' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_a != 0) { cr929_SIL_X.Integrator_CSTATE_p = cr929_SIL_B.LookupTableDynamic_i; @@ -33626,26 +33607,26 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_mm = cr929_SIL_X.Integrator_CSTATE_p; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash2' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_mm < cr929_SIL_DW.PrevY_ex - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash2_e = cr929_SIL_B.Integrator_mm + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_mm <= cr929_SIL_DW.PrevY_ex + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash2' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_mm < cr929_SIL_DW.PrevY_ex - rtb_Gain_nv) { + cr929_SIL_B.Backlash2_e = cr929_SIL_B.Integrator_mm + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_mm <= cr929_SIL_DW.PrevY_ex + rtb_Gain_nv) + { cr929_SIL_B.Backlash2_e = cr929_SIL_DW.PrevY_ex; } else { - cr929_SIL_B.Backlash2_e = cr929_SIL_B.Integrator_mm - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash2_e = cr929_SIL_B.Integrator_mm - rtb_Gain_nv; } - /* End of Backlash: '/Backlash2' */ + /* End of Backlash: '/Backlash2' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT2' */ + /* Logic: '/NOT2' */ cr929_SIL_B.NOT2_a = ((uint32_T)rtb_BitwiseAND2_o == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem2' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem2' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT2_a) { @@ -33659,20 +33640,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem2' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem2' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem2' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem2' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem2_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_g = cr929_SIL_B.Backlash2_e; } - /* End of Outputs for SubSystem: '/Enabled Subsystem2' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem2' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_g != 0) { cr929_SIL_X.Integrator_CSTATE_a = cr929_SIL_B.LookupTableDynamic_o; @@ -33688,26 +33669,25 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_g = cr929_SIL_X.Integrator_CSTATE_a; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash3' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_g < cr929_SIL_DW.PrevY_o - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash3 = cr929_SIL_B.Integrator_g + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_g <= cr929_SIL_DW.PrevY_o + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash3' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_g < cr929_SIL_DW.PrevY_o - rtb_Gain_nv) { + cr929_SIL_B.Backlash3 = cr929_SIL_B.Integrator_g + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_g <= cr929_SIL_DW.PrevY_o + rtb_Gain_nv) { cr929_SIL_B.Backlash3 = cr929_SIL_DW.PrevY_o; } else { - cr929_SIL_B.Backlash3 = cr929_SIL_B.Integrator_g - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash3 = cr929_SIL_B.Integrator_g - rtb_Gain_nv; } - /* End of Backlash: '/Backlash3' */ + /* End of Backlash: '/Backlash3' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT3' */ + /* Logic: '/NOT3' */ cr929_SIL_B.NOT3_h = ((uint32_T)rtb_BitwiseAND3_c == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem3' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem3' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT3_h) { @@ -33721,20 +33701,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem3' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem3' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem3' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem3' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem3_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_i = cr929_SIL_B.Backlash3; } - /* End of Outputs for SubSystem: '/Enabled Subsystem3' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem3' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_fo != 0) { cr929_SIL_X.Integrator_CSTATE_hz = cr929_SIL_B.LookupTableDynamic_o4; @@ -33750,26 +33730,26 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_nq = cr929_SIL_X.Integrator_CSTATE_hz; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash4' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_nq < cr929_SIL_DW.PrevY_k - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash4 = cr929_SIL_B.Integrator_nq + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_nq <= cr929_SIL_DW.PrevY_k + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash4' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_nq < cr929_SIL_DW.PrevY_k - rtb_Gain_nv) { + cr929_SIL_B.Backlash4 = cr929_SIL_B.Integrator_nq + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_nq <= cr929_SIL_DW.PrevY_k + rtb_Gain_nv) + { cr929_SIL_B.Backlash4 = cr929_SIL_DW.PrevY_k; } else { - cr929_SIL_B.Backlash4 = cr929_SIL_B.Integrator_nq - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash4 = cr929_SIL_B.Integrator_nq - rtb_Gain_nv; } - /* End of Backlash: '/Backlash4' */ + /* End of Backlash: '/Backlash4' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT4' */ + /* Logic: '/NOT4' */ cr929_SIL_B.NOT4_m = ((uint32_T)rtb_BitwiseAND4 == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem4' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem4' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT4_m) { @@ -33783,20 +33763,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem4' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem4' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem4' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem4' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem4_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_fb = cr929_SIL_B.Backlash4; } - /* End of Outputs for SubSystem: '/Enabled Subsystem4' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem4' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_k != 0) { cr929_SIL_X.Integrator_CSTATE_ho = cr929_SIL_B.LookupTableDynamic_n; @@ -33812,26 +33792,25 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_k = cr929_SIL_X.Integrator_CSTATE_ho; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash5' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_k < cr929_SIL_DW.PrevY_j - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash5 = cr929_SIL_B.Integrator_k + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_k <= cr929_SIL_DW.PrevY_j + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash5' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_k < cr929_SIL_DW.PrevY_j - rtb_Gain_nv) { + cr929_SIL_B.Backlash5 = cr929_SIL_B.Integrator_k + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_k <= cr929_SIL_DW.PrevY_j + rtb_Gain_nv) { cr929_SIL_B.Backlash5 = cr929_SIL_DW.PrevY_j; } else { - cr929_SIL_B.Backlash5 = cr929_SIL_B.Integrator_k - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash5 = cr929_SIL_B.Integrator_k - rtb_Gain_nv; } - /* End of Backlash: '/Backlash5' */ + /* End of Backlash: '/Backlash5' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT5' */ + /* Logic: '/NOT5' */ cr929_SIL_B.NOT5 = ((uint32_T)rtb_BitwiseAND5 == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem6' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem6' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT5) { @@ -33845,20 +33824,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem6' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem6' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem6' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem6' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem6_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_d = cr929_SIL_B.Backlash5; } - /* End of Outputs for SubSystem: '/Enabled Subsystem6' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem6' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_go != 0) { cr929_SIL_X.Integrator_CSTATE_o = cr929_SIL_B.LookupTableDynamic_np; @@ -33874,26 +33853,26 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_no = cr929_SIL_X.Integrator_CSTATE_o; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash7' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_no < cr929_SIL_DW.PrevY_p - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash7 = cr929_SIL_B.Integrator_no + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_no <= cr929_SIL_DW.PrevY_p + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash7' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_no < cr929_SIL_DW.PrevY_p - rtb_Gain_nv) { + cr929_SIL_B.Backlash7 = cr929_SIL_B.Integrator_no + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_no <= cr929_SIL_DW.PrevY_p + rtb_Gain_nv) + { cr929_SIL_B.Backlash7 = cr929_SIL_DW.PrevY_p; } else { - cr929_SIL_B.Backlash7 = cr929_SIL_B.Integrator_no - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash7 = cr929_SIL_B.Integrator_no - rtb_Gain_nv; } - /* End of Backlash: '/Backlash7' */ + /* End of Backlash: '/Backlash7' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT6' */ + /* Logic: '/NOT6' */ cr929_SIL_B.NOT6 = ((uint32_T)rtb_BitwiseAND6 == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem7' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem7' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT6) { @@ -33907,20 +33886,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem7' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem7' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem7' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem7' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem7_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_m = cr929_SIL_B.Backlash7; } - /* End of Outputs for SubSystem: '/Enabled Subsystem7' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem7' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_h != 0) { cr929_SIL_X.Integrator_CSTATE_i = cr929_SIL_B.LookupTableDynamic_f; @@ -33936,26 +33915,25 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_e = cr929_SIL_X.Integrator_CSTATE_i; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash8' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_e < cr929_SIL_DW.PrevY_f - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash8_d = cr929_SIL_B.Integrator_e + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_e <= cr929_SIL_DW.PrevY_f + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash8' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_e < cr929_SIL_DW.PrevY_f - rtb_Gain_nv) { + cr929_SIL_B.Backlash8_d = cr929_SIL_B.Integrator_e + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_e <= cr929_SIL_DW.PrevY_f + rtb_Gain_nv) { cr929_SIL_B.Backlash8_d = cr929_SIL_DW.PrevY_f; } else { - cr929_SIL_B.Backlash8_d = cr929_SIL_B.Integrator_e - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash8_d = cr929_SIL_B.Integrator_e - rtb_Gain_nv; } - /* End of Backlash: '/Backlash8' */ + /* End of Backlash: '/Backlash8' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT7' */ + /* Logic: '/NOT7' */ cr929_SIL_B.NOT7 = ((uint32_T)rtb_BitwiseAND7 == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem8' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem8' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT7) { @@ -33969,20 +33947,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem8' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem8' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem8' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem8' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem8_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_f = cr929_SIL_B.Backlash8_d; } - /* End of Outputs for SubSystem: '/Enabled Subsystem8' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem8' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_m != 0) { cr929_SIL_X.Integrator_CSTATE_om = cr929_SIL_B.LookupTableDynamic_a; @@ -33998,26 +33976,25 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_j = cr929_SIL_X.Integrator_CSTATE_om; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash9' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_j < cr929_SIL_DW.PrevY_g - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash9 = cr929_SIL_B.Integrator_j + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_j <= cr929_SIL_DW.PrevY_g + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash9' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_j < cr929_SIL_DW.PrevY_g - rtb_Gain_nv) { + cr929_SIL_B.Backlash9 = cr929_SIL_B.Integrator_j + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_j <= cr929_SIL_DW.PrevY_g + rtb_Gain_nv) { cr929_SIL_B.Backlash9 = cr929_SIL_DW.PrevY_g; } else { - cr929_SIL_B.Backlash9 = cr929_SIL_B.Integrator_j - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash9 = cr929_SIL_B.Integrator_j - rtb_Gain_nv; } - /* End of Backlash: '/Backlash9' */ + /* End of Backlash: '/Backlash9' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT8' */ + /* Logic: '/NOT8' */ cr929_SIL_B.NOT8 = ((uint32_T)rtb_BitwiseAND8 == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem9' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem9' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT8) { @@ -34031,20 +34008,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem9' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem9' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem9' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem9' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem9_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1 = cr929_SIL_B.Backlash9; } - /* End of Outputs for SubSystem: '/Enabled Subsystem9' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem9' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_ea != 0) { cr929_SIL_X.Integrator_CSTATE_ha = cr929_SIL_B.LookupTableDynamic_nw; @@ -34060,26 +34037,26 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_jc = cr929_SIL_X.Integrator_CSTATE_ha; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash10' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_jc < cr929_SIL_DW.PrevY_ja - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash10 = cr929_SIL_B.Integrator_jc + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_jc <= cr929_SIL_DW.PrevY_ja + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash10' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_jc < cr929_SIL_DW.PrevY_ja - rtb_Gain_nv) { + cr929_SIL_B.Backlash10 = cr929_SIL_B.Integrator_jc + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_jc <= cr929_SIL_DW.PrevY_ja + rtb_Gain_nv) + { cr929_SIL_B.Backlash10 = cr929_SIL_DW.PrevY_ja; } else { - cr929_SIL_B.Backlash10 = cr929_SIL_B.Integrator_jc - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash10 = cr929_SIL_B.Integrator_jc - rtb_Gain_nv; } - /* End of Backlash: '/Backlash10' */ + /* End of Backlash: '/Backlash10' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT9' */ + /* Logic: '/NOT9' */ cr929_SIL_B.NOT9 = ((uint32_T)rtb_BitwiseAND9 == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem10' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem10' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT9) { @@ -34093,20 +34070,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem10' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem10' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem10' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem10' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem10_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_a = cr929_SIL_B.Backlash10; } - /* End of Outputs for SubSystem: '/Enabled Subsystem10' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem10' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_g3 != 0) { cr929_SIL_X.Integrator_CSTATE_l = cr929_SIL_B.LookupTableDynamic_o45; @@ -34122,26 +34099,26 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_l = cr929_SIL_X.Integrator_CSTATE_l; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash12' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_l < cr929_SIL_DW.PrevY_kb - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash12 = cr929_SIL_B.Integrator_l + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_l <= cr929_SIL_DW.PrevY_kb + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash12' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_l < cr929_SIL_DW.PrevY_kb - rtb_Gain_nv) { + cr929_SIL_B.Backlash12 = cr929_SIL_B.Integrator_l + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_l <= cr929_SIL_DW.PrevY_kb + rtb_Gain_nv) + { cr929_SIL_B.Backlash12 = cr929_SIL_DW.PrevY_kb; } else { - cr929_SIL_B.Backlash12 = cr929_SIL_B.Integrator_l - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash12 = cr929_SIL_B.Integrator_l - rtb_Gain_nv; } - /* End of Backlash: '/Backlash12' */ + /* End of Backlash: '/Backlash12' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT10' */ + /* Logic: '/NOT10' */ cr929_SIL_B.NOT10 = ((uint32_T)rtb_BitwiseAND10 == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem11' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem11' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT10) { @@ -34155,20 +34132,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem11' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem11' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem11' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem11' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem11_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_is = cr929_SIL_B.Backlash12; } - /* End of Outputs for SubSystem: '/Enabled Subsystem11' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem11' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_i != 0) { cr929_SIL_X.Integrator_CSTATE_bb = cr929_SIL_B.LookupTableDynamic_b; @@ -34184,26 +34161,26 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_dl = cr929_SIL_X.Integrator_CSTATE_bb; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash11' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_dl < cr929_SIL_DW.PrevY_ox - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash11 = cr929_SIL_B.Integrator_dl + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_dl <= cr929_SIL_DW.PrevY_ox + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash11' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_dl < cr929_SIL_DW.PrevY_ox - rtb_Gain_nv) { + cr929_SIL_B.Backlash11 = cr929_SIL_B.Integrator_dl + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_dl <= cr929_SIL_DW.PrevY_ox + rtb_Gain_nv) + { cr929_SIL_B.Backlash11 = cr929_SIL_DW.PrevY_ox; } else { - cr929_SIL_B.Backlash11 = cr929_SIL_B.Integrator_dl - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash11 = cr929_SIL_B.Integrator_dl - rtb_Gain_nv; } - /* End of Backlash: '/Backlash11' */ + /* End of Backlash: '/Backlash11' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT12' */ + /* Logic: '/NOT12' */ cr929_SIL_B.NOT12 = ((uint32_T)rtb_BitwiseAND12 == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem14' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem14' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT12) { @@ -34217,20 +34194,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem14' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem14' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem14' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem14' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem14_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_mx = cr929_SIL_B.Backlash11; } - /* End of Outputs for SubSystem: '/Enabled Subsystem14' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem14' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_hp != 0) { cr929_SIL_X.Integrator_CSTATE_ba = cr929_SIL_B.LookupTableDynamic_p; @@ -34246,26 +34223,25 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_h = cr929_SIL_X.Integrator_CSTATE_ba; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash13' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_h < cr929_SIL_DW.PrevY_h - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash13 = cr929_SIL_B.Integrator_h + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_h <= cr929_SIL_DW.PrevY_h + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash13' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_h < cr929_SIL_DW.PrevY_h - rtb_Gain_nv) { + cr929_SIL_B.Backlash13 = cr929_SIL_B.Integrator_h + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_h <= cr929_SIL_DW.PrevY_h + rtb_Gain_nv) { cr929_SIL_B.Backlash13 = cr929_SIL_DW.PrevY_h; } else { - cr929_SIL_B.Backlash13 = cr929_SIL_B.Integrator_h - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash13 = cr929_SIL_B.Integrator_h - rtb_Gain_nv; } - /* End of Backlash: '/Backlash13' */ + /* End of Backlash: '/Backlash13' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT13' */ + /* Logic: '/NOT13' */ cr929_SIL_B.NOT13 = ((uint32_T)rtb_BitwiseAND13 == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem15' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem15' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT13) { @@ -34279,20 +34255,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem15' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem15' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem15' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem15' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem15_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_c = cr929_SIL_B.Backlash13; } - /* End of Outputs for SubSystem: '/Enabled Subsystem15' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem15' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_o != 0) { cr929_SIL_X.Integrator_CSTATE_hoh = cr929_SIL_B.LookupTableDynamic_e; @@ -34308,26 +34284,26 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_eg = cr929_SIL_X.Integrator_CSTATE_hoh; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash14' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_eg < cr929_SIL_DW.PrevY_hp - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash14 = cr929_SIL_B.Integrator_eg + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_eg <= cr929_SIL_DW.PrevY_hp + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash14' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_eg < cr929_SIL_DW.PrevY_hp - rtb_Gain_nv) { + cr929_SIL_B.Backlash14 = cr929_SIL_B.Integrator_eg + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_eg <= cr929_SIL_DW.PrevY_hp + rtb_Gain_nv) + { cr929_SIL_B.Backlash14 = cr929_SIL_DW.PrevY_hp; } else { - cr929_SIL_B.Backlash14 = cr929_SIL_B.Integrator_eg - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash14 = cr929_SIL_B.Integrator_eg - rtb_Gain_nv; } - /* End of Backlash: '/Backlash14' */ + /* End of Backlash: '/Backlash14' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT14' */ + /* Logic: '/NOT14' */ cr929_SIL_B.NOT14 = ((uint32_T)rtb_BitwiseAND14 == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem12' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem12' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT14) { @@ -34341,20 +34317,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem12' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem12' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem12' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem12' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem12_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_l = cr929_SIL_B.Backlash14; } - /* End of Outputs for SubSystem: '/Enabled Subsystem12' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem12' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_c != 0) { cr929_SIL_X.Integrator_CSTATE_pl = cr929_SIL_B.LookupTableDynamic_g; @@ -34370,26 +34346,26 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_p = cr929_SIL_X.Integrator_CSTATE_pl; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash15' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_p < cr929_SIL_DW.PrevY_bz - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash15 = cr929_SIL_B.Integrator_p + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_p <= cr929_SIL_DW.PrevY_bz + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash15' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_p < cr929_SIL_DW.PrevY_bz - rtb_Gain_nv) { + cr929_SIL_B.Backlash15 = cr929_SIL_B.Integrator_p + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_p <= cr929_SIL_DW.PrevY_bz + rtb_Gain_nv) + { cr929_SIL_B.Backlash15 = cr929_SIL_DW.PrevY_bz; } else { - cr929_SIL_B.Backlash15 = cr929_SIL_B.Integrator_p - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash15 = cr929_SIL_B.Integrator_p - rtb_Gain_nv; } - /* End of Backlash: '/Backlash15' */ + /* End of Backlash: '/Backlash15' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT11' */ + /* Logic: '/NOT11' */ cr929_SIL_B.NOT11 = ((uint32_T)rtb_BitwiseAND11 == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem13' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem13' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT11) { @@ -34403,20 +34379,20 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem13' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem13' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem13' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem13' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem13_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_bj = cr929_SIL_B.Backlash15; } - /* End of Outputs for SubSystem: '/Enabled Subsystem13' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem13' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_d != 0) { cr929_SIL_X.Integrator_CSTATE_fn = cr929_SIL_B.LookupTableDynamic_in; @@ -34432,26 +34408,26 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_jj = cr929_SIL_X.Integrator_CSTATE_fn; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Backlash: '/Backlash16' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dsp / 2.0; - if (cr929_SIL_B.Integrator_jj < cr929_SIL_DW.PrevY_ko - rtb_table2D_Cm_df) { - cr929_SIL_B.Backlash16 = cr929_SIL_B.Integrator_jj + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_jj <= cr929_SIL_DW.PrevY_ko + - rtb_table2D_Cm_df) { + /* Backlash: '/Backlash16' */ + rtb_Gain_nv = cr929_SIL_P.deadband_dsp / 2.0; + if (cr929_SIL_B.Integrator_jj < cr929_SIL_DW.PrevY_ko - rtb_Gain_nv) { + cr929_SIL_B.Backlash16 = cr929_SIL_B.Integrator_jj + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_jj <= cr929_SIL_DW.PrevY_ko + rtb_Gain_nv) + { cr929_SIL_B.Backlash16 = cr929_SIL_DW.PrevY_ko; } else { - cr929_SIL_B.Backlash16 = cr929_SIL_B.Integrator_jj - rtb_table2D_Cm_df; + cr929_SIL_B.Backlash16 = cr929_SIL_B.Integrator_jj - rtb_Gain_nv; } - /* End of Backlash: '/Backlash16' */ + /* End of Backlash: '/Backlash16' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Logic: '/NOT15' */ + /* Logic: '/NOT15' */ cr929_SIL_B.NOT15 = ((uint32_T)rtb_BitwiseAND15 == 0U); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem16' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem16' incorporates: + * EnablePort: '/Enable' */ if (rtmIsMajorTimeStep(cr929_SIL_M)) { if (cr929_SIL_B.NOT15) { @@ -34465,18 +34441,18 @@ void cr929_SIL_step(void) } } - /* End of Outputs for SubSystem: '/Enabled Subsystem16' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem16' */ } - /* Outputs for Enabled SubSystem: '/Enabled Subsystem16' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem16' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_DW.EnabledSubsystem16_MODE) { - /* Inport: '/In1' */ + /* Inport: '/In1' */ cr929_SIL_B.In1_h = cr929_SIL_B.Backlash16; } - /* End of Outputs for SubSystem: '/Enabled Subsystem16' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem16' */ /* Product: '/product' incorporates: * Constant: '/value' @@ -34511,7 +34487,7 @@ void cr929_SIL_step(void) /* End of Saturate: '/saturation' */ - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_dj != 0) { cr929_SIL_X.Integrator_CSTATE_bd = cr929_SIL_B.LookupTableDynamic_d; @@ -34527,17 +34503,16 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_i = cr929_SIL_X.Integrator_CSTATE_bd; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ /* Backlash: '/Backlash5' */ - rtb_table2D_Cm_df = cr929_SIL_P.deadband_dht / 2.0; - if (cr929_SIL_B.Integrator_i < cr929_SIL_DW.PrevY_i - rtb_table2D_Cm_df) { - cr929_SIL_B.horizontal_tail = cr929_SIL_B.Integrator_i + rtb_table2D_Cm_df; - } else if (cr929_SIL_B.Integrator_i <= cr929_SIL_DW.PrevY_i + - rtb_table2D_Cm_df) { + rtb_Gain_nv = cr929_SIL_P.deadband_dht / 2.0; + if (cr929_SIL_B.Integrator_i < cr929_SIL_DW.PrevY_i - rtb_Gain_nv) { + cr929_SIL_B.horizontal_tail = cr929_SIL_B.Integrator_i + rtb_Gain_nv; + } else if (cr929_SIL_B.Integrator_i <= cr929_SIL_DW.PrevY_i + rtb_Gain_nv) { cr929_SIL_B.horizontal_tail = cr929_SIL_DW.PrevY_i; } else { - cr929_SIL_B.horizontal_tail = cr929_SIL_B.Integrator_i - rtb_table2D_Cm_df; + cr929_SIL_B.horizontal_tail = cr929_SIL_B.Integrator_i - rtb_Gain_nv; } /* End of Backlash: '/Backlash5' */ @@ -35047,7 +35022,7 @@ void cr929_SIL_step(void) cr929_SIL_B.Merge1 = cr929_SIL_B.add_m / cr929_SIL_B.add_aa; /* Trigonometry: '/Trigonometric Function2' */ - rtb_table2D_Cm_df = sin(cr929_SIL_B.Incidence); + rtb_Gain_nv = sin(cr929_SIL_B.Incidence); rtb_q1dot = cos(cr929_SIL_B.Incidence); /* Product: '/Product' incorporates: @@ -35060,7 +35035,7 @@ void cr929_SIL_step(void) * Inport: '/coeff_in' * Trigonometry: '/Trigonometric Function2' */ - cr929_SIL_B.Product1_az = cr929_SIL_B.add_m * rtb_table2D_Cm_df; + cr929_SIL_B.Product1_az = cr929_SIL_B.add_m * rtb_Gain_nv; /* Sum: '/Sum' */ cr929_SIL_B.CX = cr929_SIL_B.Product1_az - cr929_SIL_B.Product_h; @@ -35075,7 +35050,7 @@ void cr929_SIL_step(void) * Inport: '/coeff_in' * Trigonometry: '/Trigonometric Function2' */ - cr929_SIL_B.Product3_c = cr929_SIL_B.add_aa * rtb_table2D_Cm_df; + cr929_SIL_B.Product3_c = cr929_SIL_B.add_aa * rtb_Gain_nv; /* Sum: '/Sum1' */ cr929_SIL_B.CZ = (0.0 - cr929_SIL_B.Product2_cg) - cr929_SIL_B.Product3_c; @@ -35101,7 +35076,7 @@ void cr929_SIL_step(void) /* Trigonometry: '/Trigonometric Function2' incorporates: * Inport: '/coeff_in' */ - rtb_table2D_Cm_df = sin(cr929_SIL_B.Incidence); + rtb_Gain_nv = sin(cr929_SIL_B.Incidence); rtb_q1dot = cos(cr929_SIL_B.Incidence); /* Product: '/Product' incorporates: @@ -35112,7 +35087,7 @@ void cr929_SIL_step(void) /* Product: '/Product1' incorporates: * Trigonometry: '/Trigonometric Function2' */ - cr929_SIL_B.Product1_iq = cr929_SIL_B.Merge_h[0] * rtb_table2D_Cm_df; + cr929_SIL_B.Product1_iq = cr929_SIL_B.Merge_h[0] * rtb_Gain_nv; /* Sum: '/Sum' */ cr929_SIL_B.CL = cr929_SIL_B.Product_m2 - cr929_SIL_B.Product1_iq; @@ -35125,7 +35100,7 @@ void cr929_SIL_step(void) /* Product: '/Product3' incorporates: * Trigonometry: '/Trigonometric Function2' */ - cr929_SIL_B.Product3_d = cr929_SIL_B.Merge_h[2] * rtb_table2D_Cm_df; + cr929_SIL_B.Product3_d = cr929_SIL_B.Merge_h[2] * rtb_Gain_nv; /* Sum: '/Sum1' */ cr929_SIL_B.CD = cr929_SIL_B.Product2_g + cr929_SIL_B.Product3_d; @@ -35864,38 +35839,38 @@ void cr929_SIL_step(void) cr929_SIL_B.psi_t = rt_atan2d_snf(cr929_SIL_B.Ve[1], cr929_SIL_B.Ve[0]); if (rtmIsMajorTimeStep(cr929_SIL_M)) { /* Outputs for Atomic SubSystem: '/dummy_INS' */ - /* Chart: '/tick' incorporates: - * Constant: '/dt' + /* Chart: '/tick' incorporates: + * Constant: '/dt' */ cr929_SIL_tick(0.09693800000000001, &cr929_SIL_B.enabled_f, &cr929_SIL_DW.sf_tick_k); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_B.enabled_f) { - /* DataTypeConversion: '/Data Type Conversion2' */ + /* DataTypeConversion: '/Data Type Conversion2' */ cr929_SIL_B.DataTypeConversion2[0] = (real32_T)cr929_SIL_B.Ve[0]; cr929_SIL_B.DataTypeConversion2[1] = (real32_T)cr929_SIL_B.Ve[1]; cr929_SIL_B.DataTypeConversion2[2] = (real32_T)cr929_SIL_B.Ve[2]; - /* DataTypeConversion: '/Data Type Conversion3' */ + /* DataTypeConversion: '/Data Type Conversion3' */ cr929_SIL_B.DataTypeConversion3 = (real32_T)cr929_SIL_B.v_g; - /* DataTypeConversion: '/Data Type Conversion4' incorporates: - * Gain: '/Gain' + /* DataTypeConversion: '/Data Type Conversion4' incorporates: + * Gain: '/Gain' */ cr929_SIL_B.DataTypeConversion4 = (real32_T)(57.295779513082323 * cr929_SIL_B.psi_t); - /* Constant: '/Constant' */ + /* Constant: '/Constant' */ cr929_SIL_B.OutportBuffer_InsertedFor_gps_vel_status_at_inport_0 = 128U; } - /* End of Outputs for SubSystem: '/Enabled Subsystem' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem' */ - /* Chart: '/tick' incorporates: - * Constant: '/dt' + /* Chart: '/tick' incorporates: + * Constant: '/dt' */ if (cr929_SIL_DW.temporalCounter_i1_m < MAX_uint32_T) { cr929_SIL_DW.temporalCounter_i1_m++; @@ -35908,14 +35883,14 @@ void cr929_SIL_step(void) } else { switch (cr929_SIL_DW.is_c40_cr929_dummy_io) { case cr929_SIL_IN_arrrived_p: - cr929_SIL_DW.is_c40_cr929_dummy_io = cr929_SIL_IN_idle_f; + cr929_SIL_DW.is_c40_cr929_dummy_io = cr929_SIL_IN_idle_o; cr929_SIL_DW.temporalCounter_i1_m = 0U; cr929_SIL_B.enabled_p = false; break; case cr929_SIL_IN_delay_i: if (cr929_SIL_DW.temporalCounter_i1_m >= 6U) { - cr929_SIL_DW.is_c40_cr929_dummy_io = cr929_SIL_IN_idle_f; + cr929_SIL_DW.is_c40_cr929_dummy_io = cr929_SIL_IN_idle_o; cr929_SIL_DW.temporalCounter_i1_m = 0U; cr929_SIL_B.enabled_p = false; } @@ -35931,50 +35906,50 @@ void cr929_SIL_step(void) } } - /* End of Chart: '/tick' */ + /* End of Chart: '/tick' */ - /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_B.enabled_p) { - /* SignalConversion: '/Signal Copy' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + /* SignalConversion: '/Signal Copy' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ cr929_SIL_B.SignalCopy_b = (real32_T)cr929_SIL_B.Merge_b[0]; - /* Constant: '/Constant' */ + /* Constant: '/Constant' */ cr929_SIL_B.OutportBuffer_InsertedFor_gps_hdg_status_at_inport_0 = 0U; } - /* End of Outputs for SubSystem: '/Enabled Subsystem' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem' */ - /* Chart: '/tick' incorporates: - * Constant: '/dt' + /* Chart: '/tick' incorporates: + * Constant: '/dt' */ cr929_SIL_tick_c(0.09693800000000001, &cr929_SIL_B.enabled_hj, &cr929_SIL_DW.sf_tick_c); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_B.enabled_hj) { - /* SignalConversion: '/Signal Copy' */ + /* SignalConversion: '/Signal Copy' */ cr929_SIL_B.SignalCopy = cr929_SIL_B.UnitConversion[0]; - /* SignalConversion: '/Signal Copy1' */ + /* SignalConversion: '/Signal Copy1' */ cr929_SIL_B.SignalCopy1 = cr929_SIL_B.UnitConversion[1]; - /* SignalConversion: '/Signal Copy2' */ + /* SignalConversion: '/Signal Copy2' */ cr929_SIL_B.SignalCopy2 = cr929_SIL_B.Sum3; - /* Constant: '/Constant' */ + /* Constant: '/Constant' */ cr929_SIL_B.OutportBuffer_InsertedFor_gps_pos_status_at_inport_0 = 128U; - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - * Constant: '/Constant2' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant2' * Inport: '/fault' - * S-Function (sfix_bitop): '/Bitwise AND' + * S-Function (sfix_bitop): '/Bitwise AND' */ if ((cr929_SIL_U.fault & 32U) != 0U) { cr929_SIL_B.Switch = 1U; @@ -35982,15 +35957,15 @@ void cr929_SIL_step(void) cr929_SIL_B.Switch = 9U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of Outputs for SubSystem: '/Enabled Subsystem' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem' */ - /* DataTypeConversion: '/Data Type Conversion' */ + /* DataTypeConversion: '/Data Type Conversion' */ rtb_DataTypeConversion_a = (real32_T)cr929_SIL_B.SignalCopy; - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (rtb_DataTypeConversion_a > 89.9F) { rtb_DataTypeConversion_a = 89.9F; } else { @@ -35999,12 +35974,12 @@ void cr929_SIL_step(void) } } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_jf = 0.0174532924F * rtb_DataTypeConversion_a; - /* Chart: '/check_gps_valid' */ + /* Chart: '/check_gps_valid' */ if (cr929_SIL_DW.temporalCounter_i1_h < 1023U) { cr929_SIL_DW.temporalCounter_i1_h++; } @@ -36104,47 +36079,47 @@ void cr929_SIL_step(void) } } - /* End of Chart: '/check_gps_valid' */ + /* End of Chart: '/check_gps_valid' */ - /* Logic: '/Logical Operator' incorporates: - * Constant: '/Constant' - * RelationalOperator: '/Compare' - * S-Function (sfix_bitop): '/Bitwise AND' + /* Logic: '/Logical Operator' incorporates: + * Constant: '/Constant' + * RelationalOperator: '/Compare' + * S-Function (sfix_bitop): '/Bitwise AND' */ cr929_SIL_B.LogicalOperator = (cr929_SIL_B.valid_a && cr929_SIL_B.enabled_f && ((cr929_SIL_B.OutportBuffer_InsertedFor_gps_vel_status_at_inport_0 & 63U) == 0U)); - /* Gain: '/Gain' incorporates: - * Constant: '/Constant' + /* Gain: '/Gain' incorporates: + * Constant: '/Constant' */ rtb_DataTypeConversion_a = 3062.0F; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Product: '/Product' - * UnitDelay: '/Unit Delay' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Product: '/Product' + * UnitDelay: '/Unit Delay' */ - rtb_phi_c_c = floorf(rtb_DataTypeConversion_a * (real32_T) + rtb_phi_c_h = floorf(rtb_DataTypeConversion_a * (real32_T) cr929_SIL_DW.UnitDelay_DSTATE_kg); - if (rtIsNaNF(rtb_phi_c_c) || rtIsInfF(rtb_phi_c_c)) { - rtb_phi_c_c = 0.0F; + if (rtIsNaNF(rtb_phi_c_h) || rtIsInfF(rtb_phi_c_h)) { + rtb_phi_c_h = 0.0F; } else { - rtb_phi_c_c = fmodf(rtb_phi_c_c, 4.2949673E+9F); + rtb_phi_c_h = fmodf(rtb_phi_c_h, 4.2949673E+9F); } - rtb_DataTypeConversion1 = rtb_phi_c_c < 0.0F ? (uint32_T)-(int32_T) - (uint32_T)-rtb_phi_c_c : (uint32_T)rtb_phi_c_c; + rtb_DataTypeConversion1 = rtb_phi_c_h < 0.0F ? (uint32_T)-(int32_T) + (uint32_T)-rtb_phi_c_h : (uint32_T)rtb_phi_c_h; - /* End of DataTypeConversion: '/Data Type Conversion1' */ + /* End of DataTypeConversion: '/Data Type Conversion1' */ - /* Chart: '/tick' incorporates: - * Constant: '/dt' + /* Chart: '/tick' incorporates: + * Constant: '/dt' */ cr929_SIL_tick_e(0.046938, &cr929_SIL_B.enabled_b, &cr929_SIL_DW.sf_tick_cu); - /* Chart: '/status_mgr' */ + /* Chart: '/status_mgr' */ if (cr929_SIL_DW.is_active_c14_ins_lib == 0U) { cr929_SIL_DW.is_active_c14_ins_lib = 1U; cr929_SIL_DW.is_c14_ins_lib = cr929_SIL_IN_Step0; @@ -36201,53 +36176,53 @@ void cr929_SIL_step(void) } } - /* End of Chart: '/status_mgr' */ + /* End of Chart: '/status_mgr' */ - /* Fcn: '/Fcn11' */ + /* Fcn: '/Fcn11' */ rtb_VectorConcatenate_a[0] = 1; - /* Fcn: '/Fcn21' */ + /* Fcn: '/Fcn21' */ rtb_VectorConcatenate_a[1] = 0; - /* Fcn: '/Fcn31' */ + /* Fcn: '/Fcn31' */ rtb_VectorConcatenate_a[2] = 0; - /* Fcn: '/Fcn12' */ + /* Fcn: '/Fcn12' */ rtb_VectorConcatenate_a[3] = 0; - /* Fcn: '/Fcn22' */ + /* Fcn: '/Fcn22' */ rtb_VectorConcatenate_a[4] = 1; - /* Fcn: '/Fcn32' */ + /* Fcn: '/Fcn32' */ rtb_VectorConcatenate_a[5] = 0; - /* Fcn: '/Fcn13' */ + /* Fcn: '/Fcn13' */ rtb_VectorConcatenate_a[6] = 0; - /* Fcn: '/Fcn23' */ + /* Fcn: '/Fcn23' */ rtb_VectorConcatenate_a[7] = 0; - /* Fcn: '/Fcn33' */ + /* Fcn: '/Fcn33' */ rtb_VectorConcatenate_a[8] = 1; - /* Product: '/j x k' incorporates: - * Constant: '/wl_ins' - * Sum: '/Sum7' - * ZeroOrderHold: '/Zero-Order Hold' + /* Product: '/j x k' incorporates: + * Constant: '/wl_ins' + * Sum: '/Sum7' + * ZeroOrderHold: '/Zero-Order Hold' */ rtb_LookupTableDynamic_i = (0.0 - cr929_SIL_P.IMUloc[2]) * cr929_SIL_B.pqr[1]; - /* Sum: '/Sum' incorporates: - * Constant: '/wl_ins' - * Gain: '/Gain' - * Product: '/i x j' - * Product: '/k x i' - * Product: '/i x k' - * Product: '/j x i' - * Product: '/k x j' - * Sum: '/Sum7' - * ZeroOrderHold: '/Zero-Order Hold' + /* Sum: '/Sum' incorporates: + * Constant: '/wl_ins' + * Gain: '/Gain' + * Product: '/i x j' + * Product: '/k x i' + * Product: '/i x k' + * Product: '/j x i' + * Product: '/k x j' + * Sum: '/Sum7' + * ZeroOrderHold: '/Zero-Order Hold' */ rtb_ZeroOrderHold3[0] = rtb_LookupTableDynamic_i - -(0.0 - cr929_SIL_P.IMUloc[1]) * cr929_SIL_B.pqr[2]; @@ -36256,45 +36231,45 @@ void cr929_SIL_step(void) rtb_ZeroOrderHold3[2] = -(0.0 - cr929_SIL_P.IMUloc[1]) * cr929_SIL_B.pqr[0] - (0.0 - cr929_SIL_P.IMUloc[0]) * cr929_SIL_B.pqr[1]; - /* Product: '/i x j' incorporates: - * ZeroOrderHold: '/Zero-Order Hold' + /* Product: '/i x j' incorporates: + * ZeroOrderHold: '/Zero-Order Hold' */ rtb_LookupTableDynamic_i = cr929_SIL_B.pqr[0] * rtb_ZeroOrderHold3[1]; - /* Sum: '/Sum' incorporates: - * Product: '/j x i' - * ZeroOrderHold: '/Zero-Order Hold' + /* Sum: '/Sum' incorporates: + * Product: '/j x i' + * ZeroOrderHold: '/Zero-Order Hold' */ - rtb_table2D_Cm_df = rtb_LookupTableDynamic_i - cr929_SIL_B.pqr[1] * + rtb_Gain_nv = rtb_LookupTableDynamic_i - cr929_SIL_B.pqr[1] * rtb_ZeroOrderHold3[0]; - /* Product: '/i x j' incorporates: - * Constant: '/wl_ins' - * Gain: '/Gain' - * Sum: '/Sum7' - * ZeroOrderHold: '/Zero-Order Hold3' + /* Product: '/i x j' incorporates: + * Constant: '/wl_ins' + * Gain: '/Gain' + * Sum: '/Sum7' + * ZeroOrderHold: '/Zero-Order Hold3' */ rtb_LookupTableDynamic_i = -(0.0 - cr929_SIL_P.IMUloc[1]) * cr929_SIL_B.Reshape[0]; - /* Sum: '/Sum' incorporates: - * Constant: '/wl_ins' - * Gain: '/Gain' - * Product: '/j x k' - * Product: '/k x i' - * Product: '/i x k' - * Product: '/k x j' - * Product: '/j x k' - * Product: '/k x i' - * Product: '/i x k' - * Product: '/j x i' - * Product: '/k x j' - * Sum: '/Sum7' - * Sum: '/Sum' - * Sum: '/Sum' - * ZeroOrderHold: '/Zero-Order Hold' - * ZeroOrderHold: '/Zero-Order Hold1' - * ZeroOrderHold: '/Zero-Order Hold3' + /* Sum: '/Sum' incorporates: + * Constant: '/wl_ins' + * Gain: '/Gain' + * Product: '/j x k' + * Product: '/k x i' + * Product: '/i x k' + * Product: '/k x j' + * Product: '/j x k' + * Product: '/k x i' + * Product: '/i x k' + * Product: '/j x i' + * Product: '/k x j' + * Sum: '/Sum7' + * Sum: '/Sum' + * Sum: '/Sum' + * ZeroOrderHold: '/Zero-Order Hold' + * ZeroOrderHold: '/Zero-Order Hold1' + * ZeroOrderHold: '/Zero-Order Hold3' */ rtb_Product_mq[0] = ((cr929_SIL_B.pqr[1] * rtb_ZeroOrderHold3[2] - cr929_SIL_B.pqr[2] * rtb_ZeroOrderHold3[1]) + @@ -36307,13 +36282,12 @@ void cr929_SIL_step(void) * cr929_SIL_B.Reshape[2] - (0.0 - cr929_SIL_P.IMUloc[2]) * cr929_SIL_B.Reshape[0]); rtb_Product_mq[2] = (rtb_LookupTableDynamic_i - (0.0 - cr929_SIL_P.IMUloc - [0]) * cr929_SIL_B.Reshape[1]) + (cr929_SIL_B.Accels[2] + - rtb_table2D_Cm_df); + [0]) * cr929_SIL_B.Reshape[1]) + (cr929_SIL_B.Accels[2] + rtb_Gain_nv); - /* Sum: '/Sum4' incorporates: - * Constant: '/Measurement bias' - * Constant: '/Scale factors & Cross-coupling errors' - * Product: '/Product' + /* Sum: '/Sum4' incorporates: + * Constant: '/Measurement bias' + * Constant: '/Scale factors & Cross-coupling errors' + * Product: '/Product' */ for (i = 0; i < 3; i++) { rtb_Sum_hz[i] = ((cr929_SIL_P.AccelScaleMatrix[i + 3] * rtb_Product_mq[1] @@ -36322,41 +36296,41 @@ void cr929_SIL_step(void) [2]) + cr929_SIL_P.AccelBias[i]; } - /* End of Sum: '/Sum4' */ + /* End of Sum: '/Sum4' */ - /* Product: '/Divide5' incorporates: - * Constant: '/Damping' - * Constant: '/Natural Frequency' - * Gain: '/Gain' - * Product: '/Divide1' + /* Product: '/Divide5' incorporates: + * Constant: '/Damping' + * Constant: '/Natural Frequency' + * Gain: '/Gain' + * Product: '/Divide1' */ rtb_LookupTableDynamic_i = 175480.07838014368; - /* Product: '/Divide6' incorporates: - * Sum: '/Add' + /* Product: '/Divide6' incorporates: + * Sum: '/Add' */ - rtb_table2D_Cm_df = 36100.0 / ((36100.0 + rtb_LookupTableDynamic_i) + + rtb_Gain_nv = 36100.0 / ((36100.0 + rtb_LookupTableDynamic_i) + 426628.25874662586); - /* SignalConversion: '/TmpSignal ConversionAtDiscrete Transfer FcnInport2' incorporates: - * Gain: '/Gain1' - * Product: '/Divide6' + /* SignalConversion: '/TmpSignal ConversionAtDiscrete Transfer FcnInport2' incorporates: + * Gain: '/Gain1' + * Product: '/Divide6' */ cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport2[0] = - rtb_table2D_Cm_df; + rtb_Gain_nv; cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport2[1] = 2.0 * - rtb_table2D_Cm_df; + rtb_Gain_nv; cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport2[2] = - rtb_table2D_Cm_df; + rtb_Gain_nv; - /* SignalConversion: '/TmpSignal ConversionAtDiscrete Transfer FcnInport3' incorporates: - * Constant: '/a2' - * Gain: '/Gain2' - * Product: '/Divide7' - * Product: '/Divide8' - * Sum: '/Add' - * Sum: '/Add1' - * Sum: '/Add2' + /* SignalConversion: '/TmpSignal ConversionAtDiscrete Transfer FcnInport3' incorporates: + * Constant: '/a2' + * Gain: '/Gain2' + * Product: '/Divide7' + * Product: '/Divide8' + * Sum: '/Add' + * Sum: '/Add1' + * Sum: '/Add2' */ cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport3[0] = 1.0; cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport3[1] = @@ -36366,79 +36340,79 @@ void cr929_SIL_step(void) ((426628.25874662586 - rtb_LookupTableDynamic_i) + 36100.0) / ((36100.0 + rtb_LookupTableDynamic_i) + 426628.25874662586); for (rtb_BitwiseAND1 = 0; rtb_BitwiseAND1 < 3; rtb_BitwiseAND1++) { - /* DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* DiscreteTransferFcn: '/Discrete Transfer Fcn' */ rtb_BitwiseAND2 = rtb_BitwiseAND1 << 1; - rtb_table2D_Cm_df = - cr929_SIL_DW.DiscreteTransferFcn_states[rtb_BitwiseAND2 + 1]; + rtb_Gain_nv = cr929_SIL_DW.DiscreteTransferFcn_states[rtb_BitwiseAND2 + + 1]; cr929_SIL_DW.DiscreteTransferFcn_tmp[rtb_BitwiseAND1] = (rtb_Sum_hz[rtb_BitwiseAND1] - cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport3[1] * cr929_SIL_DW.DiscreteTransferFcn_states[rtb_BitwiseAND2]) - - rtb_table2D_Cm_df * + rtb_Gain_nv * cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport3[2]; - rtb_table2D_Cm_df = + rtb_Gain_nv = (cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport2[0] * cr929_SIL_DW.DiscreteTransferFcn_tmp[rtb_BitwiseAND1] + cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport2[1] * cr929_SIL_DW.DiscreteTransferFcn_states[rtb_BitwiseAND2]) + - rtb_table2D_Cm_df * + rtb_Gain_nv * cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport2[2]; - /* Saturate: '/Saturation' incorporates: - * DiscreteTransferFcn: '/Discrete Transfer Fcn' + /* Saturate: '/Saturation' incorporates: + * DiscreteTransferFcn: '/Discrete Transfer Fcn' */ - if (rtb_table2D_Cm_df > 80.0) { - rtb_table2D_Cm_df = 80.0; + if (rtb_Gain_nv > 80.0) { + rtb_Gain_nv = 80.0; } else { - if (rtb_table2D_Cm_df < -80.0) { - rtb_table2D_Cm_df = -80.0; + if (rtb_Gain_nv < -80.0) { + rtb_Gain_nv = -80.0; } } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Gain: '/gain' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* Gain: '/gain' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtb_subtract1_d = 0.101936802F * (real32_T)rtb_table2D_Cm_df; + rtb_add2 = 0.101936802F * (real32_T)rtb_Gain_nv; - /* RateLimiter: '/Rate Limiter' */ - rtb_Gain_cv = rtb_subtract1_d - cr929_SIL_DW.PrevY_pj[rtb_BitwiseAND1]; - if (rtb_Gain_cv > 0.97984F) { - rtb_subtract1_d = cr929_SIL_DW.PrevY_pj[rtb_BitwiseAND1] + 0.97984F; + /* RateLimiter: '/Rate Limiter' */ + rtb_da2dal_deg = rtb_add2 - cr929_SIL_DW.PrevY_pj[rtb_BitwiseAND1]; + if (rtb_da2dal_deg > 0.97984F) { + rtb_add2 = cr929_SIL_DW.PrevY_pj[rtb_BitwiseAND1] + 0.97984F; } else { - if (rtb_Gain_cv < -0.97984F) { - rtb_subtract1_d = cr929_SIL_DW.PrevY_pj[rtb_BitwiseAND1] + -0.97984F; + if (rtb_da2dal_deg < -0.97984F) { + rtb_add2 = cr929_SIL_DW.PrevY_pj[rtb_BitwiseAND1] + -0.97984F; } } - cr929_SIL_DW.PrevY_pj[rtb_BitwiseAND1] = rtb_subtract1_d; + cr929_SIL_DW.PrevY_pj[rtb_BitwiseAND1] = rtb_add2; - /* End of RateLimiter: '/Rate Limiter' */ + /* End of RateLimiter: '/Rate Limiter' */ - /* Gain: '/gain' */ - rtb_Product2_i[rtb_BitwiseAND1] = rtb_subtract1_d; + /* Gain: '/gain' */ + rtb_Product2_i[rtb_BitwiseAND1] = rtb_add2; } - /* Product: '/Divide5' incorporates: - * Constant: '/Damping' - * Constant: '/Natural Frequency' - * Gain: '/Gain' - * Product: '/Divide1' + /* Product: '/Divide5' incorporates: + * Constant: '/Damping' + * Constant: '/Natural Frequency' + * Gain: '/Gain' + * Product: '/Divide1' */ /* Unit Conversion - from: m/s^2 to: gn Expression: output = (0.101972*input) + (0) */ rtb_LookupTableDynamic_i = 175480.07838014368; - /* Product: '/Divide6' incorporates: - * Sum: '/Add' + /* Product: '/Divide6' incorporates: + * Sum: '/Add' */ rtb_Divide6 = 36100.0 / ((36100.0 + rtb_LookupTableDynamic_i) + 426628.25874662586); - /* SignalConversion: '/TmpSignal ConversionAtDiscrete Transfer FcnInport2' incorporates: - * Gain: '/Gain1' - * Product: '/Divide6' + /* SignalConversion: '/TmpSignal ConversionAtDiscrete Transfer FcnInport2' incorporates: + * Gain: '/Gain1' + * Product: '/Divide6' */ cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport2_m[0] = rtb_Divide6; @@ -36447,14 +36421,14 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport2_m[2] = rtb_Divide6; - /* SignalConversion: '/TmpSignal ConversionAtDiscrete Transfer FcnInport3' incorporates: - * Constant: '/a2' - * Gain: '/Gain2' - * Product: '/Divide7' - * Product: '/Divide8' - * Sum: '/Add' - * Sum: '/Add1' - * Sum: '/Add2' + /* SignalConversion: '/TmpSignal ConversionAtDiscrete Transfer FcnInport3' incorporates: + * Constant: '/a2' + * Gain: '/Gain2' + * Product: '/Divide7' + * Product: '/Divide8' + * Sum: '/Add' + * Sum: '/Add1' + * Sum: '/Add2' */ cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport3_b[0] = 1.0; cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport3_b[1] = @@ -36464,7 +36438,7 @@ void cr929_SIL_step(void) ((426628.25874662586 - rtb_LookupTableDynamic_i) + 36100.0) / ((36100.0 + rtb_LookupTableDynamic_i) + 426628.25874662586); for (i = 0; i < 3; i++) { - /* Product: '/Product' */ + /* Product: '/Product' */ cr929_SIL_B.accel[i] = 0.0F; cr929_SIL_B.accel[i] += (real32_T)rtb_VectorConcatenate_a[i] * rtb_Product2_i[0]; @@ -36473,19 +36447,19 @@ void cr929_SIL_step(void) cr929_SIL_B.accel[i] += (real32_T)rtb_VectorConcatenate_a[i + 6] * rtb_Product2_i[2]; - /* DiscreteTransferFcn: '/Discrete Transfer Fcn' incorporates: - * Constant: '/Measurement bias' - * Constant: '/Scale factors & Cross-coupling errors ' - * Constant: '/g-sensitive bias' - * Product: '/Product' - * Product: '/Product1' - * Sum: '/Sum4' - * UnitConversion: '/Unit Conversion' - * ZeroOrderHold: '/Zero-Order Hold' + /* DiscreteTransferFcn: '/Discrete Transfer Fcn' incorporates: + * Constant: '/Measurement bias' + * Constant: '/Scale factors & Cross-coupling errors ' + * Constant: '/g-sensitive bias' + * Product: '/Product' + * Product: '/Product1' + * Sum: '/Sum4' + * UnitConversion: '/Unit Conversion' + * ZeroOrderHold: '/Zero-Order Hold' */ rtb_BitwiseAND2 = i << 1; - rtb_table2D_Cm_df = - cr929_SIL_DW.DiscreteTransferFcn_states_a[rtb_BitwiseAND2 + 1]; + rtb_Gain_nv = cr929_SIL_DW.DiscreteTransferFcn_states_a[rtb_BitwiseAND2 + + 1]; cr929_SIL_DW.DiscreteTransferFcn_tmp_f[i] = (((((cr929_SIL_P.GyroScaleMatrix[i + 3] * cr929_SIL_B.pqr[1] + cr929_SIL_P.GyroScaleMatrix[i] * cr929_SIL_B.pqr[0]) + @@ -36494,91 +36468,91 @@ void cr929_SIL_step(void) cr929_SIL_B.Accels[i] * cr929_SIL_P.GyroGBias[i]) - cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport3_b[1] * cr929_SIL_DW.DiscreteTransferFcn_states_a[rtb_BitwiseAND2]) - - rtb_table2D_Cm_df * + rtb_Gain_nv * cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport3_b[2]; - rtb_table2D_Cm_df = + rtb_Gain_nv = (cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport2_m[0] * cr929_SIL_DW.DiscreteTransferFcn_tmp_f[i] + cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport2_m[1] * cr929_SIL_DW.DiscreteTransferFcn_states_a[rtb_BitwiseAND2]) + - rtb_table2D_Cm_df * + rtb_Gain_nv * cr929_SIL_B.TmpSignalConversionAtDiscreteTransferFcnInport2_m[2]; - /* UnitConversion: '/Unit Conversion' incorporates: - * DiscreteTransferFcn: '/Discrete Transfer Fcn' + /* UnitConversion: '/Unit Conversion' incorporates: + * DiscreteTransferFcn: '/Discrete Transfer Fcn' */ - rtb_Product_mq[i] = rtb_table2D_Cm_df; + rtb_Product_mq[i] = rtb_Gain_nv; - /* Saturate: '/Saturation' incorporates: - * DiscreteTransferFcn: '/Discrete Transfer Fcn' + /* Saturate: '/Saturation' incorporates: + * DiscreteTransferFcn: '/Discrete Transfer Fcn' */ - if (rtb_table2D_Cm_df > 7.0) { - /* UnitConversion: '/Unit Conversion' */ + if (rtb_Gain_nv > 7.0) { + /* UnitConversion: '/Unit Conversion' */ rtb_Product_mq[i] = 7.0; } else { - if (rtb_table2D_Cm_df < -7.0) { - /* UnitConversion: '/Unit Conversion' */ + if (rtb_Gain_nv < -7.0) { + /* UnitConversion: '/Unit Conversion' */ rtb_Product_mq[i] = -7.0; } } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ } - /* Gain: '/Gain' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + /* Gain: '/Gain' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtb_subtract1_d = 57.2957802F * (real32_T)rtb_Product_mq[0]; + rtb_add2 = 57.2957802F * (real32_T)rtb_Product_mq[0]; - /* RateLimiter: '/Rate Limiter1' */ - rtb_Gain_cv = rtb_subtract1_d - cr929_SIL_DW.PrevY_fn[0]; - if (rtb_Gain_cv > 6.124F) { - rtb_subtract1_d = cr929_SIL_DW.PrevY_fn[0] + 6.124F; + /* RateLimiter: '/Rate Limiter1' */ + rtb_da2dal_deg = rtb_add2 - cr929_SIL_DW.PrevY_fn[0]; + if (rtb_da2dal_deg > 6.124F) { + rtb_add2 = cr929_SIL_DW.PrevY_fn[0] + 6.124F; } else { - if (rtb_Gain_cv < -6.124F) { - rtb_subtract1_d = cr929_SIL_DW.PrevY_fn[0] + -6.124F; + if (rtb_da2dal_deg < -6.124F) { + rtb_add2 = cr929_SIL_DW.PrevY_fn[0] + -6.124F; } } - cr929_SIL_DW.PrevY_fn[0] = rtb_subtract1_d; + cr929_SIL_DW.PrevY_fn[0] = rtb_add2; - /* Gain: '/Gain' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + /* Gain: '/Gain' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtb_Product2_i[0] = rtb_subtract1_d; - rtb_subtract1_d = 57.2957802F * (real32_T)rtb_Product_mq[1]; + rtb_Product2_i[0] = rtb_add2; + rtb_add2 = 57.2957802F * (real32_T)rtb_Product_mq[1]; - /* RateLimiter: '/Rate Limiter1' */ - rtb_Gain_cv = rtb_subtract1_d - cr929_SIL_DW.PrevY_fn[1]; - if (rtb_Gain_cv > 6.124F) { - rtb_subtract1_d = cr929_SIL_DW.PrevY_fn[1] + 6.124F; + /* RateLimiter: '/Rate Limiter1' */ + rtb_da2dal_deg = rtb_add2 - cr929_SIL_DW.PrevY_fn[1]; + if (rtb_da2dal_deg > 6.124F) { + rtb_add2 = cr929_SIL_DW.PrevY_fn[1] + 6.124F; } else { - if (rtb_Gain_cv < -6.124F) { - rtb_subtract1_d = cr929_SIL_DW.PrevY_fn[1] + -6.124F; + if (rtb_da2dal_deg < -6.124F) { + rtb_add2 = cr929_SIL_DW.PrevY_fn[1] + -6.124F; } } - cr929_SIL_DW.PrevY_fn[1] = rtb_subtract1_d; + cr929_SIL_DW.PrevY_fn[1] = rtb_add2; - /* Gain: '/Gain' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + /* Gain: '/Gain' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtb_Product2_i[1] = rtb_subtract1_d; - rtb_subtract1_d = 57.2957802F * (real32_T)rtb_Product_mq[2]; + rtb_Product2_i[1] = rtb_add2; + rtb_add2 = 57.2957802F * (real32_T)rtb_Product_mq[2]; - /* RateLimiter: '/Rate Limiter1' */ - rtb_Gain_cv = rtb_subtract1_d - cr929_SIL_DW.PrevY_fn[2]; - if (rtb_Gain_cv > 6.124F) { - rtb_subtract1_d = cr929_SIL_DW.PrevY_fn[2] + 6.124F; + /* RateLimiter: '/Rate Limiter1' */ + rtb_da2dal_deg = rtb_add2 - cr929_SIL_DW.PrevY_fn[2]; + if (rtb_da2dal_deg > 6.124F) { + rtb_add2 = cr929_SIL_DW.PrevY_fn[2] + 6.124F; } else { - if (rtb_Gain_cv < -6.124F) { - rtb_subtract1_d = cr929_SIL_DW.PrevY_fn[2] + -6.124F; + if (rtb_da2dal_deg < -6.124F) { + rtb_add2 = cr929_SIL_DW.PrevY_fn[2] + -6.124F; } } - cr929_SIL_DW.PrevY_fn[2] = rtb_subtract1_d; + cr929_SIL_DW.PrevY_fn[2] = rtb_add2; - /* Product: '/Product1' */ + /* Product: '/Product1' */ for (i = 0; i < 3; i++) { cr929_SIL_B.Gain1_o2[i] = 0.0F; cr929_SIL_B.Gain1_o2[i] += (real32_T)rtb_VectorConcatenate_a[i] * @@ -36586,12 +36560,12 @@ void cr929_SIL_step(void) cr929_SIL_B.Gain1_o2[i] += (real32_T)rtb_VectorConcatenate_a[i + 3] * rtb_Product2_i[1]; cr929_SIL_B.Gain1_o2[i] += (real32_T)rtb_VectorConcatenate_a[i + 6] * - rtb_subtract1_d; + rtb_add2; } - /* End of Product: '/Product1' */ + /* End of Product: '/Product1' */ - /* Chart: '/IMU_bias_fix' */ + /* Chart: '/IMU_bias_fix' */ if (cr929_SIL_DW.is_active_c11_ins_lib == 0U) { cr929_SIL_DW.is_active_c11_ins_lib = 1U; cr929_SIL_DW.is_c11_ins_lib = cr929_SIL_IN_NoBias; @@ -36609,49 +36583,47 @@ void cr929_SIL_step(void) case cr929_SIL_IN_Init: if (cr929_SIL_B.stage != 0) { cr929_SIL_DW.is_c11_ins_lib = cr929_SIL_IN_GetBias; - rtb_subtract1_d = 1.29246971E-26F; + rtb_add2 = 1.29246971E-26F; cr929_SIL_DW.N0[0] /= cr929_SIL_DW.cnt_e; - rtb_Gain_cv = fabsf(cr929_SIL_DW.N0[0]); - if (rtb_Gain_cv > 1.29246971E-26F) { - rtb_uDLookupTable10 = 1.0F; - rtb_subtract1_d = rtb_Gain_cv; + rtb_da2dal_deg = fabsf(cr929_SIL_DW.N0[0]); + if (rtb_da2dal_deg > 1.29246971E-26F) { + rtb_add_k = 1.0F; + rtb_add2 = rtb_da2dal_deg; } else { - rtb_uDLookupTable12 = rtb_Gain_cv / 1.29246971E-26F; - rtb_uDLookupTable10 = rtb_uDLookupTable12 * rtb_uDLookupTable12; + rtb_da2dar_deg = rtb_da2dal_deg / 1.29246971E-26F; + rtb_add_k = rtb_da2dar_deg * rtb_da2dar_deg; } cr929_SIL_DW.pqr0[0] /= cr929_SIL_DW.cnt_e; cr929_SIL_B.Gain1_o2[0] -= cr929_SIL_DW.pqr0[0]; cr929_SIL_DW.N0[1] /= cr929_SIL_DW.cnt_e; - rtb_Gain_cv = fabsf(cr929_SIL_DW.N0[1]); - if (rtb_Gain_cv > rtb_subtract1_d) { - rtb_uDLookupTable12 = rtb_subtract1_d / rtb_Gain_cv; - rtb_uDLookupTable10 = rtb_uDLookupTable10 * rtb_uDLookupTable12 * - rtb_uDLookupTable12 + 1.0F; - rtb_subtract1_d = rtb_Gain_cv; + rtb_da2dal_deg = fabsf(cr929_SIL_DW.N0[1]); + if (rtb_da2dal_deg > rtb_add2) { + rtb_da2dar_deg = rtb_add2 / rtb_da2dal_deg; + rtb_add_k = rtb_add_k * rtb_da2dar_deg * rtb_da2dar_deg + 1.0F; + rtb_add2 = rtb_da2dal_deg; } else { - rtb_uDLookupTable12 = rtb_Gain_cv / rtb_subtract1_d; - rtb_uDLookupTable10 += rtb_uDLookupTable12 * rtb_uDLookupTable12; + rtb_da2dar_deg = rtb_da2dal_deg / rtb_add2; + rtb_add_k += rtb_da2dar_deg * rtb_da2dar_deg; } cr929_SIL_DW.pqr0[1] /= cr929_SIL_DW.cnt_e; cr929_SIL_B.Gain1_o2[1] -= cr929_SIL_DW.pqr0[1]; cr929_SIL_DW.N0[2] /= cr929_SIL_DW.cnt_e; - rtb_Gain_cv = fabsf(cr929_SIL_DW.N0[2]); - if (rtb_Gain_cv > rtb_subtract1_d) { - rtb_uDLookupTable12 = rtb_subtract1_d / rtb_Gain_cv; - rtb_uDLookupTable10 = rtb_uDLookupTable10 * rtb_uDLookupTable12 * - rtb_uDLookupTable12 + 1.0F; - rtb_subtract1_d = rtb_Gain_cv; + rtb_da2dal_deg = fabsf(cr929_SIL_DW.N0[2]); + if (rtb_da2dal_deg > rtb_add2) { + rtb_da2dar_deg = rtb_add2 / rtb_da2dal_deg; + rtb_add_k = rtb_add_k * rtb_da2dar_deg * rtb_da2dar_deg + 1.0F; + rtb_add2 = rtb_da2dal_deg; } else { - rtb_uDLookupTable12 = rtb_Gain_cv / rtb_subtract1_d; - rtb_uDLookupTable10 += rtb_uDLookupTable12 * rtb_uDLookupTable12; + rtb_da2dar_deg = rtb_da2dal_deg / rtb_add2; + rtb_add_k += rtb_da2dar_deg * rtb_da2dar_deg; } cr929_SIL_DW.pqr0[2] /= cr929_SIL_DW.cnt_e; cr929_SIL_B.Gain1_o2[2] -= cr929_SIL_DW.pqr0[2]; - rtb_uDLookupTable10 = rtb_subtract1_d * sqrtf(rtb_uDLookupTable10); - cr929_SIL_DW.scaleN = 1.0F / rtb_uDLookupTable10; + rtb_add_k = rtb_add2 * sqrtf(rtb_add_k); + cr929_SIL_DW.scaleN = 1.0F / rtb_add_k; cr929_SIL_B.accel[0] *= cr929_SIL_DW.scaleN; cr929_SIL_B.accel[1] *= cr929_SIL_DW.scaleN; cr929_SIL_B.accel[2] *= cr929_SIL_DW.scaleN; @@ -36668,47 +36640,47 @@ void cr929_SIL_step(void) } } - /* End of Chart: '/IMU_bias_fix' */ + /* End of Chart: '/IMU_bias_fix' */ - /* Product: '/Product3' incorporates: - * Constant: '/Constant12' + /* Product: '/Product3' incorporates: + * Constant: '/Constant12' */ cr929_SIL_B.accel[0] *= 9.80665F; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_o2[0] *= 0.0174532924F; - /* Product: '/Product3' incorporates: - * Constant: '/Constant12' + /* Product: '/Product3' incorporates: + * Constant: '/Constant12' */ cr929_SIL_B.accel[1] *= 9.80665F; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_o2[1] *= 0.0174532924F; - /* Product: '/Product3' incorporates: - * Constant: '/Constant12' + /* Product: '/Product3' incorporates: + * Constant: '/Constant12' */ cr929_SIL_B.accel[2] *= 9.80665F; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_o2[2] *= 0.0174532924F; - /* Chart: '/tick' incorporates: - * Constant: '/dt' + /* Chart: '/tick' incorporates: + * Constant: '/dt' */ cr929_SIL_tick_e(0.06360466666666667, &cr929_SIL_B.enabled_o, &cr929_SIL_DW.sf_tick_e); - /* Outputs for Enabled SubSystem: '/cal_mag_hdg' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/cal_mag_hdg' incorporates: + * EnablePort: '/Enable' */ - /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_B.enabled_o) { - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Product: '/Product' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Product: '/Product' */ for (i = 0; i < 3; i++) { cr929_SIL_B.DataTypeConversion1_h[i] = (real32_T) @@ -36716,9 +36688,9 @@ void cr929_SIL_step(void) 100.0) + cr929_SIL_B.Product4[i + 6] * 20.0); } - /* End of DataTypeConversion: '/Data Type Conversion1' */ + /* End of DataTypeConversion: '/Data Type Conversion1' */ - /* Product: '/Product2' */ + /* Product: '/Product2' */ for (i = 0; i < 3; i++) { rtb_Product2_i[i] = (real32_T)rtb_VectorConcatenate_a[i + 6] * cr929_SIL_B.DataTypeConversion1_h[2] + ((real32_T) @@ -36727,42 +36699,42 @@ void cr929_SIL_step(void) cr929_SIL_B.DataTypeConversion1_h[0]); } - /* End of Product: '/Product2' */ + /* End of Product: '/Product2' */ - /* Sum: '/Sum' incorporates: - * Gain: '/Gain' - * Trigonometry: '/Trigonometric Function' + /* Sum: '/Sum' incorporates: + * Gain: '/Gain' + * Trigonometry: '/Trigonometric Function' */ cr929_SIL_B.OutportBufferFormag_hdg = rt_atan2f_snf(-rtb_Product2_i[1], rtb_Product2_i[0]); - /* Chart: '/inpi' */ + /* Chart: '/inpi' */ if (cr929_SIL_B.OutportBufferFormag_hdg > 3.1415926535897931) { - /* SignalConversion: '/OutportBufferFormag_hdg' */ + /* SignalConversion: '/OutportBufferFormag_hdg' */ cr929_SIL_B.OutportBufferFormag_hdg -= 6.28318548F; } else { if (cr929_SIL_B.OutportBufferFormag_hdg < -3.1415926535897931) { - /* SignalConversion: '/OutportBufferFormag_hdg' */ + /* SignalConversion: '/OutportBufferFormag_hdg' */ cr929_SIL_B.OutportBufferFormag_hdg += 6.28318548F; } } - /* End of Chart: '/inpi' */ + /* End of Chart: '/inpi' */ } - /* End of Outputs for SubSystem: '/Enabled Subsystem' */ - /* End of Outputs for SubSystem: '/cal_mag_hdg' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem' */ + /* End of Outputs for SubSystem: '/cal_mag_hdg' */ - /* Logic: '/Logical Operator1' incorporates: - * Constant: '/Constant' - * RelationalOperator: '/Compare' - * S-Function (sfix_bitop): '/Bitwise AND1' + /* Logic: '/Logical Operator1' incorporates: + * Constant: '/Constant' + * RelationalOperator: '/Compare' + * S-Function (sfix_bitop): '/Bitwise AND1' */ cr929_SIL_B.hdg_ariv = (cr929_SIL_B.valid_a && cr929_SIL_B.enabled_p && ((cr929_SIL_B.OutportBuffer_InsertedFor_gps_hdg_status_at_inport_0 & 63U) == 0U)); - /* Chart: '/Chart' */ + /* Chart: '/Chart' */ if (cr929_SIL_DW.is_active_c10_ins_lib == 0U) { cr929_SIL_DW.is_active_c10_ins_lib = 1U; cr929_SIL_DW.is_c10_ins_lib = cr929_SIL_IN_useMag; @@ -36808,19 +36780,19 @@ void cr929_SIL_step(void) } } - /* End of Chart: '/Chart' */ + /* End of Chart: '/Chart' */ - /* DataTypeConversion: '/Data Type Conversion' */ + /* DataTypeConversion: '/Data Type Conversion' */ cr929_SIL_B.Attitude[0] = (real32_T)cr929_SIL_B.Merge_b[2]; cr929_SIL_B.Attitude[1] = (real32_T)cr929_SIL_B.Merge_b[1]; cr929_SIL_B.Attitude[2] = (real32_T)cr929_SIL_B.Merge_b[0]; - /* DataTypeConversion: '/Data Type Conversion1' */ + /* DataTypeConversion: '/Data Type Conversion1' */ cr929_SIL_B.V_ned[0] = (real32_T)cr929_SIL_B.Ve[0]; cr929_SIL_B.V_ned[1] = (real32_T)cr929_SIL_B.Ve[1]; cr929_SIL_B.V_ned[2] = (real32_T)cr929_SIL_B.Ve[2]; - /* Chart: '/EKF14s' */ + /* Chart: '/EKF14s' */ if (cr929_SIL_B.reset) { cr929_SIL_InitStates(); cr929_SIL_InitCovariance(); @@ -36854,22 +36826,22 @@ void cr929_SIL_step(void) } } - /* End of Chart: '/EKF14s' */ + /* End of Chart: '/EKF14s' */ - /* If: '/If' incorporates: - * Inport: '/LLA_in' - * Logic: '/Logical Operator2' - * UnitDelay: '/Unit Delay' + /* If: '/If' incorporates: + * Inport: '/LLA_in' + * Logic: '/Logical Operator2' + * UnitDelay: '/Unit Delay' */ s305_iter = cr929_SIL_DW.If_ActiveSubsystem_k; cr929_SIL_DW.If_ActiveSubsystem_k = (int8_T)((!cr929_SIL_B.valid_a) || (!cr929_SIL_B.enabled_hj)); switch (cr929_SIL_DW.If_ActiveSubsystem_k) { case 0: - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* UnitDelay: '/Unit Delay' */ + /* UnitDelay: '/Unit Delay' */ cr929_SIL_B.UnitDelay_p[0] = cr929_SIL_DW.UnitDelay_DSTATE_ev[0]; cr929_SIL_B.UnitDelay_p[1] = cr929_SIL_DW.UnitDelay_DSTATE_ev[1]; cr929_SIL_B.UnitDelay_p[2] = cr929_SIL_DW.UnitDelay_DSTATE_ev[2]; @@ -36877,85 +36849,85 @@ void cr929_SIL_step(void) cr929_SIL_DW.UnitDelay_DSTATE_ev[1] = cr929_SIL_B.SignalCopy1; cr929_SIL_DW.UnitDelay_DSTATE_ev[2] = cr929_SIL_B.SignalCopy2; - /* SignalConversion: '/OutportBufferForLLA_out' incorporates: - * Inport: '/LLA_in' - * UnitDelay: '/Unit Delay' + /* SignalConversion: '/OutportBufferForLLA_out' incorporates: + * Inport: '/LLA_in' + * UnitDelay: '/Unit Delay' */ rtb_Merge_ko_idx_0 = cr929_SIL_DW.UnitDelay_DSTATE_ev[0]; rtb_Merge_ko_idx_1 = cr929_SIL_DW.UnitDelay_DSTATE_ev[1]; rtb_Merge_ko_idx_2 = cr929_SIL_DW.UnitDelay_DSTATE_ev[2]; - /* End of Outputs for SubSystem: '/If Action Subsystem' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ break; case 1: if (cr929_SIL_DW.If_ActiveSubsystem_k != s305_iter) { - /* InitializeConditions for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* InitializeConditions for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - /* InitializeConditions for If: '/If' incorporates: - * UnitDelay: '/Unit Delay' + /* InitializeConditions for If: '/If' incorporates: + * UnitDelay: '/Unit Delay' */ - cr929_SIL_DW.UnitDelay_DSTATE_a[0] = 0.0; - cr929_SIL_DW.UnitDelay_DSTATE_a[1] = 0.0; - cr929_SIL_DW.UnitDelay_DSTATE_a[2] = 0.0; + cr929_SIL_DW.UnitDelay_DSTATE_ai[0] = 0.0; + cr929_SIL_DW.UnitDelay_DSTATE_ai[1] = 0.0; + cr929_SIL_DW.UnitDelay_DSTATE_ai[2] = 0.0; - /* End of InitializeConditions for SubSystem: '/If Action Subsystem1' */ + /* End of InitializeConditions for SubSystem: '/If Action Subsystem1' */ } - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/MATLAB Function' */ + /* MATLAB Function: '/MATLAB Function' */ rtb_Merge_ko_idx_1 = cr929_SIL_B.UnitDelay_p[0] * 3.1415926535897931 / 180.0; rtb_Merge_ko_idx_2 = sin(rtb_Merge_ko_idx_1); - /* SignalConversion: '/OutportBufferForLLA' incorporates: - * MATLAB Function: '/MATLAB Function' - * UnitDelay: '/Unit Delay' + /* SignalConversion: '/OutportBufferForLLA' incorporates: + * MATLAB Function: '/MATLAB Function' + * UnitDelay: '/Unit Delay' */ - rtb_Merge_ko_idx_0 = cr929_SIL_DW.UnitDelay_DSTATE_a[0] / + rtb_Merge_ko_idx_0 = cr929_SIL_DW.UnitDelay_DSTATE_ai[0] / (6.3354393272928195E+6 / rt_powd_snf(1.0 - rtb_Merge_ko_idx_2 * rtb_Merge_ko_idx_2 * 0.0066943799901413156, 1.5) + cr929_SIL_B.UnitDelay_p[2]) * 180.0 / 3.1415926535897931 + cr929_SIL_B.UnitDelay_p[0]; - rtb_Merge_ko_idx_1 = cr929_SIL_DW.UnitDelay_DSTATE_a[1] / cos + rtb_Merge_ko_idx_1 = cr929_SIL_DW.UnitDelay_DSTATE_ai[1] / cos (rtb_Merge_ko_idx_1) / (6.378137E+6 / sqrt(1.0 - rtb_Merge_ko_idx_2 * rtb_Merge_ko_idx_2 * 0.0066943799901413156) + cr929_SIL_B.UnitDelay_p [2]) * 180.0 / 3.1415926535897931 + cr929_SIL_B.UnitDelay_p[1]; rtb_Merge_ko_idx_2 = cr929_SIL_B.UnitDelay_p[2] - - cr929_SIL_DW.UnitDelay_DSTATE_a[2]; + cr929_SIL_DW.UnitDelay_DSTATE_ai[2]; - /* Sum: '/Sum' incorporates: - * Constant: '/Constant' - * Product: '/Product' - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant' + * Product: '/Product' + * UnitDelay: '/Unit Delay' */ - cr929_SIL_DW.UnitDelay_DSTATE_a[0] += cr929_SIL_B.velocity_NED[0] * + cr929_SIL_DW.UnitDelay_DSTATE_ai[0] += cr929_SIL_B.velocity_NED[0] * 0.003062F; - cr929_SIL_DW.UnitDelay_DSTATE_a[1] += cr929_SIL_B.velocity_NED[1] * + cr929_SIL_DW.UnitDelay_DSTATE_ai[1] += cr929_SIL_B.velocity_NED[1] * 0.003062F; - cr929_SIL_DW.UnitDelay_DSTATE_a[2] += cr929_SIL_B.velocity_NED[2] * + cr929_SIL_DW.UnitDelay_DSTATE_ai[2] += cr929_SIL_B.velocity_NED[2] * 0.003062F; - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ break; } - /* End of If: '/If' */ + /* End of If: '/If' */ - /* Outputs for Enabled SubSystem: '/ps_proc' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/ps_proc' incorporates: + * EnablePort: '/Enable' */ - /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_B.enabled_b) { - /* DataTypeConversion: '/Data Type Conversion1' */ + /* DataTypeConversion: '/Data Type Conversion1' */ cr929_SIL_B.DataTypeConversion1_i = (real32_T)cr929_SIL_B.Po; - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (cr929_SIL_B.DataTypeConversion1_i > 103000.0F) { cr929_SIL_B.Saturation = 103000.0F; } else if (cr929_SIL_B.DataTypeConversion1_i < 5474.9F) { @@ -36964,14 +36936,14 @@ void cr929_SIL_step(void) cr929_SIL_B.Saturation = cr929_SIL_B.DataTypeConversion1_i; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* DataTypeConversion: '/Data Type Conversion1' */ + /* DataTypeConversion: '/Data Type Conversion1' */ cr929_SIL_B.alt_pres = cr929_SIL_B.Saturation; - /* S-Function (saeropalt): '/S-Function' */ + /* S-Function (saeropalt): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ { real_T *temp_table = (real_T *) &cr929_SIL_DW.SFunction_temp_table[0]; real_T *pres_table = (real_T *) &cr929_SIL_DW.SFunction_pres_table[0]; @@ -36979,15 +36951,15 @@ void cr929_SIL_step(void) temp_table, pres_table, 1); } - /* DataTypeConversion: '/Data Type Conversion' */ + /* DataTypeConversion: '/Data Type Conversion' */ cr929_SIL_B.alt_pres_a = (real32_T)cr929_SIL_B.SFunction; } - /* End of Outputs for SubSystem: '/Enabled Subsystem' */ - /* End of Outputs for SubSystem: '/ps_proc' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem' */ + /* End of Outputs for SubSystem: '/ps_proc' */ - /* Chart: '/tick' incorporates: - * Constant: '/dt' + /* Chart: '/tick' incorporates: + * Constant: '/dt' */ if (cr929_SIL_DW.temporalCounter_i1 < MAX_uint32_T) { cr929_SIL_DW.temporalCounter_i1++; @@ -37000,14 +36972,14 @@ void cr929_SIL_step(void) } else { switch (cr929_SIL_DW.is_c48_cr929_dummy_io) { case cr929_SIL_IN_arrrived_p: - cr929_SIL_DW.is_c48_cr929_dummy_io = cr929_SIL_IN_idle_f; + cr929_SIL_DW.is_c48_cr929_dummy_io = cr929_SIL_IN_idle_o; cr929_SIL_DW.temporalCounter_i1 = 0U; cr929_SIL_B.enabled = false; break; case cr929_SIL_IN_delay_i: if (cr929_SIL_DW.temporalCounter_i1 >= 1U) { - cr929_SIL_DW.is_c48_cr929_dummy_io = cr929_SIL_IN_idle_f; + cr929_SIL_DW.is_c48_cr929_dummy_io = cr929_SIL_IN_idle_o; cr929_SIL_DW.temporalCounter_i1 = 0U; cr929_SIL_B.enabled = false; } @@ -37023,19 +36995,19 @@ void cr929_SIL_step(void) } } - /* End of Chart: '/tick' */ + /* End of Chart: '/tick' */ - /* Outputs for Enabled SubSystem: '/qbar_proc' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/qbar_proc' incorporates: + * EnablePort: '/Enable' */ - /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_B.enabled) { - /* DataTypeConversion: '/Data Type Conversion1' */ + /* DataTypeConversion: '/Data Type Conversion1' */ cr929_SIL_B.DataTypeConversion1 = (real32_T)cr929_SIL_B.u2rhoV2; - /* Chart: '/zero_set' */ + /* Chart: '/zero_set' */ if (cr929_SIL_DW.is_active_c13_ins_lib == 0U) { cr929_SIL_DW.is_active_c13_ins_lib = 1U; cr929_SIL_DW.is_c13_ins_lib = cr929_SIL_IN_Init_a; @@ -37067,9 +37039,9 @@ void cr929_SIL_step(void) } } - /* End of Chart: '/zero_set' */ + /* End of Chart: '/zero_set' */ - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (cr929_SIL_B.qbar_b > 103421.0F) { cr929_SIL_B.qbar = 103421.0F; } else if (cr929_SIL_B.qbar_b < 0.01F) { @@ -37078,60 +37050,60 @@ void cr929_SIL_step(void) cr929_SIL_B.qbar = cr929_SIL_B.qbar_b; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Sqrt: '/Sqrt' incorporates: - * Gain: '/Gain' + /* Sqrt: '/Sqrt' incorporates: + * Gain: '/Gain' */ cr929_SIL_B.IAS = sqrtf(1.63265312F * cr929_SIL_B.qbar); } - /* End of Outputs for SubSystem: '/Enabled Subsystem' */ - /* End of Outputs for SubSystem: '/qbar_proc' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem' */ + /* End of Outputs for SubSystem: '/qbar_proc' */ - /* Chart: '/tick' incorporates: - * Constant: '/dt' + /* Chart: '/tick' incorporates: + * Constant: '/dt' */ cr929_SIL_tick(0.09693800000000001, &cr929_SIL_B.enabled_fu, &cr929_SIL_DW.sf_tick); - /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Enabled Subsystem' incorporates: + * EnablePort: '/Enable' */ if (cr929_SIL_B.enabled_fu) { - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Sum: '/Sum1' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Sum: '/Sum1' */ cr929_SIL_B.DataTypeConversion1_hq = (real32_T)(cr929_SIL_B.Sideslip + cr929_SIL_B.Output_p); - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * Sum: '/Sum' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * Sum: '/Sum' */ cr929_SIL_B.DataTypeConversion2_d = (real32_T)(cr929_SIL_B.Incidence + cr929_SIL_B.Output); } - /* End of Outputs for SubSystem: '/Enabled Subsystem' */ + /* End of Outputs for SubSystem: '/Enabled Subsystem' */ - /* Chart: '/tick' incorporates: - * Constant: '/dt' + /* Chart: '/tick' incorporates: + * Constant: '/dt' */ cr929_SIL_tick_c(0.996938, &cr929_SIL_B.enabled_h, &cr929_SIL_DW.sf_tick_o); - /* Sum: '/Sum' incorporates: - * Constant: '/Constant2' - * UnitDelay: '/Unit Delay' + /* Sum: '/Sum' incorporates: + * Constant: '/Constant2' + * UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_kg++; /* End of Outputs for SubSystem: '/dummy_INS' */ - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' * Input0 Data Type: Floating Point real_T * Input1 Data Type: Floating Point real_T * Input2 Data Type: Floating Point real_T @@ -37145,11 +37117,11 @@ void cr929_SIL_step(void) &cr929_SIL_P.map_thr_lst[0], 11U); } - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' * Input0 Data Type: Floating Point real_T * Input1 Data Type: Floating Point real_T * Input2 Data Type: Floating Point real_T @@ -37161,11 +37133,11 @@ void cr929_SIL_step(void) &cr929_SIL_P.map_rpm_lst[0], cr929_SIL_B.throttle_l, &cr929_SIL_P.map_thr_lst[0], 11U); - /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' */ - /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' + /* Dynamic Look-Up Table Block: '/Lookup Table Dynamic' * Input0 Data Type: Floating Point real_T * Input1 Data Type: Floating Point real_T * Input2 Data Type: Floating Point real_T @@ -37204,7 +37176,7 @@ void cr929_SIL_step(void) if (cr929_SIL_DW.left > 0) { if (cr929_SIL_DW.cnt10 >= 7) { cr929_SIL_DW.cnt10 = 0U; - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_eegcy[0] = cr929_SIL_B.Merge_i.q_c; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_eegcy[1] = @@ -37240,7 +37212,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtBytePackInport4_f0[1] = cr929_SIL_B.BusAssignment_h.beta; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_o[0], &cr929_SIL_B.Merge_i.boot_time, 4); @@ -37271,13 +37243,13 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_k[76] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_k[0], - &cr929_SIL_ConstB.Width1_n3, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_n3, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_no, &rtCP_SFunction_P1_n, 1, 77); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_n3; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt11 >= 11) { cr929_SIL_DW.cnt11 = 0U; - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_eegc[0] = cr929_SIL_B.Merge_i.phi_c; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_eegc[1] = @@ -37309,7 +37281,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtBytePackInport5[1] = cr929_SIL_B.Merge_i.gs_c; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_ab[0], &cr929_SIL_B.Merge_i.boot_time, 4); @@ -37342,13 +37314,13 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_fg[72] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_fg[0], - &cr929_SIL_ConstB.Width1_nt, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_nt, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_on, &rtCP_SFunction_P1_an, 1, 73); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_nt; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt12 >= 23) { cr929_SIL_DW.cnt12 = 0U; - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport3[0] = cr929_SIL_B.BusAssignment_h.lat; cr929_SIL_B.TmpSignalConversionAtBytePackInport3[1] = @@ -37377,6 +37349,8 @@ void cr929_SIL_step(void) cr929_SIL_Y.traj.horiz_offset; cr929_SIL_B.TmpSignalConversionAtBytePackInport4[11] = cr929_SIL_Y.traj.vert_offset; + cr929_SIL_B.TmpSignalConversionAtBytePackInport4[12] = + cr929_SIL_B.Merge_i.mass_est; cr929_SIL_B.TmpSignalConversionAtBytePackInport5_g[0] = cr929_SIL_B.BusAssignment_h.load; cr929_SIL_B.TmpSignalConversionAtBytePackInport5_g[1] = @@ -37420,7 +37394,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtBytePackInport8[15] = (uint8_T) cr929_SIL_B.Merge_i.AT; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_j[0], &cr929_SIL_B.Merge_i.boot_time, 4); @@ -37432,22 +37406,22 @@ void cr929_SIL_step(void) 16); (void) memcpy(&cr929_SIL_B.BytePack_j[24], &cr929_SIL_B.TmpSignalConversionAtBytePackInport4[0], - 48); - (void) memcpy(&cr929_SIL_B.BytePack_j[72], + 52); + (void) memcpy(&cr929_SIL_B.BytePack_j[76], &cr929_SIL_B.TmpSignalConversionAtBytePackInport5_g [0], 6); - (void) memcpy(&cr929_SIL_B.BytePack_j[78], + (void) memcpy(&cr929_SIL_B.BytePack_j[82], &cr929_SIL_B.TmpSignalConversionAtBytePackInport6[0], 2); - (void) memcpy(&cr929_SIL_B.BytePack_j[80], + (void) memcpy(&cr929_SIL_B.BytePack_j[84], &cr929_SIL_B.Merge_i.WP_cur, 2); - (void) memcpy(&cr929_SIL_B.BytePack_j[82], + (void) memcpy(&cr929_SIL_B.BytePack_j[86], &cr929_SIL_B.TmpSignalConversionAtBytePackInport8[0], 16); mode = 0U; - for (i = 0; i < 98; i++) { + for (i = 0; i < 102; i++) { mode = (uint8_T)((uint32_T)mode + cr929_SIL_B.BytePack_j[i]); cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ly[i + 4] = cr929_SIL_B.BytePack_j[i]; @@ -37458,16 +37432,16 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ly[2] = 12U; cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ly[3] = cr929_SIL_ConstB.Width_d; - cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ly[102] = mode; + cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ly[106] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ly[0], - &cr929_SIL_ConstB.Width1_n, &cr929_SIL_B.seq_p, - &cr929_SIL_B.ErrCode_l, &rtCP_SFunction_P1_f, 1, 103); + &cr929_SIL_ConstB.Width1_n, &cr929_SIL_B.seq_a, + &cr929_SIL_B.ErrCode_l, &rtCP_SFunction_P1_f, 1, 107); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_n; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt13 >= 203) { cr929_SIL_DW.cnt13 = 0U; - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w[1] = @@ -37537,7 +37511,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtBytePackInport3_o[35] = cr929_SIL_B.BusAssignment_h.bear_state; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_ap[0], &cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w [0], @@ -37570,13 +37544,13 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_jf[232] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_jf[0], - &cr929_SIL_ConstB.Width1_gd, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_gd, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_o, &rtCP_SFunction_P1_al, 1, 233); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_gd; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt18 >= 29) { cr929_SIL_DW.cnt18 = 0U; - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_eeg[0] = cr929_SIL_Y.traj.v_g; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_eeg[1] = @@ -37618,7 +37592,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtBytePackInport2_eeg[19] = cr929_SIL_Y.traj.home_bearing; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_m[0], &cr929_SIL_B.Merge_i.boot_time, 4); @@ -37641,13 +37615,13 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_b[88] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_b[0], - &cr929_SIL_ConstB.Width1_j, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_j, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_h, &rtCP_SFunction_P1_m, 1, 89); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_j; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt19 >= 29) { cr929_SIL_DW.cnt19 = 0U; - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_ee[0] = cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.AILLeftLCMD_ACE_deg_d; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_ee[1] = @@ -37695,7 +37669,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtBytePackInport2_ee[22] = cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.RUDTrimCMD_ACE_degs_d; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_k[0], &cr929_SIL_B.Merge_i.boot_time, 4); @@ -37721,13 +37695,13 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_p[193] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_p[0], - &cr929_SIL_ConstB.Width1_c, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_c, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_p, &rtCP_SFunction_P1_p, 1, 194); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_c; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt20 >= 29) { cr929_SIL_DW.cnt20 = 0U; - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_e[0] = cr929_SIL_B.BusAssignment_d.u29_Bus.AirData.BaroAltitude_AD_ft; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_e[1] = @@ -37771,7 +37745,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtBytePackInport2_e[20] = cr929_SIL_B.BusAssignment_d.u29_Bus.Vane.AOS_Body_deg_d; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_i[0], &cr929_SIL_B.Merge_i.boot_time, 4); @@ -37794,13 +37768,95 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_h[176] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_h[0], - &cr929_SIL_ConstB.Width1_o, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_o, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_n, &rtCP_SFunction_P1_i1, 1, 177); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_o; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; + } else if (cr929_SIL_DW.cnt21 >= 29) { + cr929_SIL_DW.cnt21 = 0U; + cr929_SIL_B.seq_a++; + cr929_SIL_B.TmpSignalConversionAtBytePackInport2[0] = + cr929_SIL_B.BusAssignment_d.ANA_Bus.RollCmdCP_SSU_deg_d; + cr929_SIL_B.TmpSignalConversionAtBytePackInport2[1] = + cr929_SIL_B.BusAssignment_d.ANA_Bus.RollCmdFO_SSU_deg_d; + cr929_SIL_B.TmpSignalConversionAtBytePackInport2[2] = + cr929_SIL_B.BusAssignment_d.ANA_Bus.PitchCmdCP_SSU_deg_d; + cr929_SIL_B.TmpSignalConversionAtBytePackInport2[3] = + cr929_SIL_B.BusAssignment_d.ANA_Bus.PitchCmdFO_SSU_deg_d; + cr929_SIL_B.TmpSignalConversionAtBytePackInport2[4] = + cr929_SIL_B.BusAssignment_d.ANA_Bus.YawCmdCP_Pedal_deg_d; + cr929_SIL_B.TmpSignalConversionAtBytePackInport2[5] = + cr929_SIL_B.BusAssignment_d.ANA_Bus.YawCmdFO_Pedal_deg_d; + cr929_SIL_B.TmpSignalConversionAtBytePackInport2[6] = + cr929_SIL_B.BusAssignment_d.ANA_Bus.SBCmd_SBHandle_deg_d; + cr929_SIL_B.TmpSignalConversionAtBytePackInport2[7] = + cr929_SIL_B.BusAssignment_d.TestControlInputs_g.Mass_Test_lbs_d; + cr929_SIL_B.TmpSignalConversionAtBytePackInport2[8] = + cr929_SIL_B.BusAssignment_d.TestControlInputs_g.Xcg_Test_MAC_D; + cr929_SIL_B.TmpSignalConversionAtBytePackInport2[9] = + cr929_SIL_B.BusAssignment_d.AP_BUS.FPA_CMD_deg_d; + cr929_SIL_B.TmpSignalConversionAtBytePackInport2[10] = + cr929_SIL_B.BusAssignment_d.AP_BUS.HDG_CMD_deg_d; + cr929_SIL_B.TmpSignalConversionAtBytePackInport2[11] = + cr929_SIL_B.BusAssignment_d.AP_BUS.ALT_CMD_ft_d; + cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[0] = + cr929_SIL_B.BusAssignment_d.ANA_Bus.Arm_RUDTrimPanel_b; + cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[1] = + cr929_SIL_B.BusAssignment_d.ANA_Bus.NoseLeft_RUDTrimPanel_b; + cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[2] = + cr929_SIL_B.BusAssignment_d.ANA_Bus.NoseRight_RUDTrimPanel_b; + cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[3] = + cr929_SIL_B.BusAssignment_d.ANA_Bus.Reset_RUDTrimPanel_b; + cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[4] = + cr929_SIL_B.BusAssignment_d.ANA_Bus.PrioritySwitchFO_SSU_b; + cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[5] = + cr929_SIL_B.BusAssignment_d.ANA_Bus.PrioritySwitchCP_SSU_b; + cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[6] = + cr929_SIL_B.BusAssignment_d.TestControlInputs_g.InhibitAlphaPROT_Test_b; + cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[7] = + cr929_SIL_B.BusAssignment_d.TestControlInputs_g.RudTrimEnable_NM_Test_b; + cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[8] = + cr929_SIL_B.BusAssignment_d.TestControlInputs_g.InhibitMLA_Test_b; + cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[9] = + cr929_SIL_B.BusAssignment_d.AP_BUS.AP_Engage_b; + cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[10] = + cr929_SIL_B.BusAssignment_d.AP_BUS.AT_Engage_b; + cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[11] = + cr929_SIL_B.Merge_i.Switch_ControlLaw; + + /* Pack: /Byte Pack */ + (void) memcpy(&cr929_SIL_B.BytePack[0], + &cr929_SIL_B.Merge_i.boot_time, + 4); + (void) memcpy(&cr929_SIL_B.BytePack[4], + &cr929_SIL_B.TmpSignalConversionAtBytePackInport2[0], + 96); + (void) memcpy(&cr929_SIL_B.BytePack[100], + &cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd + [0], + 12); + mode = 0U; + for (i = 0; i < 112; i++) { + mode = (uint8_T)((uint32_T)mode + cr929_SIL_B.BytePack[i]); + cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_m[i + 4] = + cr929_SIL_B.BytePack[i]; + } + + cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_m[0] = 235U; + cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_m[1] = 144U; + cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_m[2] = 21U; + cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_m[3] = + cr929_SIL_ConstB.Width; + cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_m[116] = mode; + hal_uart_out_Outputs_wrapper + (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_m[0], + &cr929_SIL_ConstB.Width1, &cr929_SIL_B.seq_a, + &cr929_SIL_B.ErrCode, &rtCP_SFunction_P1_d4, 1, 117); + cr929_SIL_B.len = cr929_SIL_ConstB.Width1; + cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt14 >= 5) { cr929_SIL_DW.cnt14 = 0U; - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; hal_rec_Outputs_wrapper(&rtCP_Constant_Value_fz, &cr929_SIL_B.Merge_i.boot_time, &cr929_SIL_B.hal_rec_o1[0], &cr929_SIL_B.hal_rec_o2, 256); @@ -37820,19 +37876,19 @@ void cr929_SIL_step(void) rtb_DataTypeConversion1_ma + 5U); hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_l[0], - &cr929_SIL_B.Sum_pr, &cr929_SIL_B.seq_p, + &cr929_SIL_B.Sum_pr, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_ph, &rtCP_SFunction_P1_jo, 1, 260); cr929_SIL_B.len = cr929_SIL_B.Sum_pr; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_B.gps_utc_time_seq_h != cr929_SIL_DW.last_gps1_tim_seq) { - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2e[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2e[1] = cr929_SIL_B.time_stamp_h; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_fo[0], &cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2e [0], @@ -37871,20 +37927,20 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_kt[29] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_kt[0], - &cr929_SIL_ConstB.Width1_cn, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_cn, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_dr, &rtCP_SFunction_P1_j, 1, 30); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_cn; cr929_SIL_DW.last_gps1_tim_seq = cr929_SIL_B.gps_utc_time_seq_h; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_B.gps_hdt_seq != cr929_SIL_DW.last_gps1_hdt_seq) { - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2ea[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2ea[1] = cr929_SIL_B.time_stamp_dq; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_ob[0], &cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2ea [0], @@ -37921,20 +37977,20 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_pf[34] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_pf[0], - &cr929_SIL_ConstB.Width1_jv, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_jv, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_c, &rtCP_SFunction_P1_i, 1, 35); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_jv; cr929_SIL_DW.last_gps1_hdt_seq = cr929_SIL_B.gps_hdt_seq; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.last_gps1_vel_seq != cr929_SIL_B.gps_vel_seq_l) { - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eax[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eax[1] = cr929_SIL_B.time_stamp_kt; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_b[0], &cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eax [0], @@ -37965,20 +38021,20 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_n[44] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_n[0], - &cr929_SIL_ConstB.Width1_gy, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_gy, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_b0, &rtCP_SFunction_P1_h, 1, 45); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_gy; cr929_SIL_DW.last_gps1_vel_seq = cr929_SIL_B.gps_vel_seq_l; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.last_gps1_pos_seq != cr929_SIL_B.gps_pos_seq_n) { - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2[1] = cr929_SIL_B.time_stamp_ai; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_g[0], &cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2 [0], @@ -38012,7 +38068,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_a[59] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_a[0], - &cr929_SIL_ConstB.Width1_a, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_a, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_b, &rtCP_SFunction_P1_b, 1, 60); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_a; cr929_SIL_DW.last_gps1_pos_seq = cr929_SIL_B.gps_pos_seq_n; @@ -38022,13 +38078,13 @@ void cr929_SIL_step(void) cr929_SIL_DW.ins1_euler_cnt++; cr929_SIL_DW.last_ins1_euler_seq = cr929_SIL_B.euler_seq_j; if (cr929_SIL_DW.ins1_euler_cnt >= 4) { - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eaxk5[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eaxk5[1] = cr929_SIL_B.time_stamp_ac; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_jw[0], &cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eaxk5 [0], @@ -38062,7 +38118,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ov[64] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ov[0], - &cr929_SIL_ConstB.Width1_h, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_h, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_gf, &rtCP_SFunction_P1, 1, 65); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_h; cr929_SIL_DW.ins1_euler_cnt = 0U; @@ -38073,13 +38129,13 @@ void cr929_SIL_step(void) cr929_SIL_DW.ins1_nav_cnt++; cr929_SIL_DW.last_ins1_nav_seq = cr929_SIL_B.nav_seq_g; if (cr929_SIL_DW.ins1_nav_cnt >= 4) { - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eaxk[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eaxk[1] = cr929_SIL_B.time_stamp_gq; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_e[0], &cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eaxk [0], @@ -38110,7 +38166,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_c[72] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_c[0], - &cr929_SIL_ConstB.Width1_m, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_m, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_d2, &rtCP_SFunction_P1_a, 1, 73); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_m; cr929_SIL_DW.ins1_nav_cnt = 0U; @@ -38121,13 +38177,13 @@ void cr929_SIL_step(void) cr929_SIL_DW.ins2_euler_cnt++; cr929_SIL_DW.last_ins2_euler_seq = cr929_SIL_B.euler_seq; if (cr929_SIL_DW.ins2_euler_cnt >= 4) { - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5[1] = cr929_SIL_B.time_stamp_k; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_mw[0], &cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5 [0], @@ -38160,7 +38216,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_e[64] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_e[0], - &cr929_SIL_ConstB.Width1_c5, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_c5, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_m, &rtCP_SFunction_P1_d, 1, 65); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_c5; cr929_SIL_DW.ins2_euler_cnt = 0U; @@ -38170,13 +38226,13 @@ void cr929_SIL_step(void) cr929_SIL_DW.ins2_nav_cnt++; cr929_SIL_DW.last_ins2_nav_seq = cr929_SIL_B.nav_seq; if (cr929_SIL_DW.ins2_nav_cnt >= 4) { - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d[1] = cr929_SIL_B.time_stamp_ex; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_d[0], &cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d [0], @@ -38207,7 +38263,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_f[72] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_f[0], - &cr929_SIL_ConstB.Width1_c1, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_c1, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_d, &rtCP_SFunction_P1_bs, 1, 73); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_c1; cr929_SIL_DW.ins2_nav_cnt = 0U; @@ -38215,13 +38271,13 @@ void cr929_SIL_step(void) } } else if (cr929_SIL_B.gps_utc_time_seq != cr929_SIL_DW.last_gps2_tim_seq) { - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h[1] = cr929_SIL_B.time_stamp_d; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_f[0], &cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h [0], @@ -38260,20 +38316,20 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_hb[29] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_hb[0], - &cr929_SIL_ConstB.Width1_g, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_g, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_ps, &rtCP_SFunction_P1_g, 1, 30); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_g; cr929_SIL_DW.last_gps2_tim_seq = cr929_SIL_B.gps_utc_time_seq; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.last_gps2_vel_seq != cr929_SIL_B.gps_vel_seq) { - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4[1] = cr929_SIL_B.time_stamp_m; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_mc[0], &cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4[ 0], @@ -38303,20 +38359,20 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_j[44] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_j[0], - &cr929_SIL_ConstB.Width1_p, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_p, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_i, &rtCP_SFunction_P1_as, 1, 45); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_p; cr929_SIL_DW.last_gps2_vel_seq = cr929_SIL_B.gps_vel_seq; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.last_gps2_pos_seq != cr929_SIL_B.gps_pos_seq) { - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1[1] = cr929_SIL_B.time_stamp_a; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_a[0], &cr929_SIL_B.TmpSignalConversionAtBytePackInport1[0], 8); @@ -38348,16 +38404,16 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_o[59] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_o[0], - &cr929_SIL_ConstB.Width1_ce, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_ce, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_e, &rtCP_SFunction_P1_a1, 1, 60); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_ce; cr929_SIL_DW.last_gps2_pos_seq = cr929_SIL_B.gps_pos_seq; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt1 > 5) { cr929_SIL_DW.cnt1 = 0U; - cr929_SIL_B.seq_p++; + cr929_SIL_B.seq_a++; - /* Pack: /Byte Pack */ + /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_j4[0], &cr929_SIL_B.Merge_i.boot_time, 4); @@ -38379,7 +38435,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_g[18] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_g[0], - &cr929_SIL_ConstB.Width1_jh, &cr929_SIL_B.seq_p, + &cr929_SIL_ConstB.Width1_jh, &cr929_SIL_B.seq_a, &cr929_SIL_B.ErrCode_g, &rtCP_SFunction_P1_bz, 1, 19); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_jh; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; @@ -38451,14 +38507,15 @@ void cr929_SIL_step(void) * Bias: '/Bias1' * Constant: '/Constant' */ - rtb_Compare_p[i] = (fabs(rtb_VectorConcatenate_j[i]) > - 4.4408920985006262E-16); + rtb_Compare_bn[i] = (fabs(rtb_VectorConcatenate_j[i]) > + 4.4408920985006262E-16); } /* Logic: '/Logical Operator1' */ - rtb_Compare_i4 = rtb_Compare_p[0]; + rtb_ResetControlLaw_out = rtb_Compare_bn[0]; for (i = 0; i < 8; i++) { - rtb_Compare_i4 = (rtb_Compare_i4 || rtb_Compare_p[i + 1]); + rtb_ResetControlLaw_out = (rtb_ResetControlLaw_out || rtb_Compare_bn[i + + 1]); } /* If: '/If' incorporates: @@ -38493,7 +38550,7 @@ void cr929_SIL_step(void) /* End of Outputs for SubSystem: '/If Not Proper' */ } else { - if (rtb_Compare_i4) { + if (rtb_ResetControlLaw_out) { /* Outputs for IfAction SubSystem: '/Else If Not Orthogonal' incorporates: * ActionPort: '/Action Port' */ @@ -38516,14 +38573,14 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_ct; /* Trigonometry: '/sincos' */ - rtb_table2D_Cm_df = sin(cr929_SIL_B.Sum_o); + rtb_Gain_nv = sin(cr929_SIL_B.Sum_o); rtb_q1dot = cos(cr929_SIL_B.Sum_o); /* SignalConversion: '/ConcatBufferAtVector ConcatenateIn1' */ cr929_SIL_B.VectorConcatenate_b[0] = rtb_q1dot; /* SignalConversion: '/ConcatBufferAtVector ConcatenateIn2' */ - cr929_SIL_B.VectorConcatenate_b[1] = rtb_table2D_Cm_df; + cr929_SIL_B.VectorConcatenate_b[1] = rtb_Gain_nv; /* SignalConversion: '/ConcatBufferAtVector ConcatenateIn3' incorporates: * Constant: '/Zero' @@ -38531,7 +38588,7 @@ void cr929_SIL_step(void) cr929_SIL_B.VectorConcatenate_b[2] = 0.0; /* UnaryMinus: '/Unary Minus' */ - cr929_SIL_B.VectorConcatenate_b[3] = -rtb_table2D_Cm_df; + cr929_SIL_B.VectorConcatenate_b[3] = -rtb_Gain_nv; /* SignalConversion: '/ConcatBufferAtVector ConcatenateIn5' */ cr929_SIL_B.VectorConcatenate_b[4] = rtb_q1dot; @@ -38640,13 +38697,14 @@ void cr929_SIL_step(void) * Bias: '/Bias1' * Constant: '/Constant' */ - rtb_Compare_p[i] = (fabs(rtb_add_e4[i]) > 4.4408920985006262E-16); + rtb_Compare_bn[i] = (fabs(rtb_add_e4[i]) > 4.4408920985006262E-16); } /* Logic: '/Logical Operator1' */ - rtb_Compare_i4 = rtb_Compare_p[0]; + rtb_ResetControlLaw_out = rtb_Compare_bn[0]; for (i = 0; i < 8; i++) { - rtb_Compare_i4 = (rtb_Compare_i4 || rtb_Compare_p[i + 1]); + rtb_ResetControlLaw_out = (rtb_ResetControlLaw_out || rtb_Compare_bn[i + + 1]); } /* If: '/If' incorporates: @@ -38678,7 +38736,7 @@ void cr929_SIL_step(void) /* End of Outputs for SubSystem: '/If Not Proper' */ } else { - if (rtb_Compare_i4) { + if (rtb_ResetControlLaw_out) { /* Outputs for IfAction SubSystem: '/Else If Not Orthogonal' incorporates: * ActionPort: '/Action Port' */ @@ -38712,19 +38770,19 @@ void cr929_SIL_step(void) cr929_SIL_B.Product2_b5) + cr929_SIL_B.Product3_p; /* Sqrt: '/sqrt' */ - rtb_table2D_Cm_df = sqrt(cr929_SIL_B.Sum_c); + rtb_Gain_nv = sqrt(cr929_SIL_B.Sum_c); /* Product: '/Product' */ - cr929_SIL_B.Product_m = cr929_SIL_B.q[0] / rtb_table2D_Cm_df; + cr929_SIL_B.Product_m = cr929_SIL_B.q[0] / rtb_Gain_nv; /* Product: '/Product1' */ - cr929_SIL_B.Product1_p = cr929_SIL_B.q[1] / rtb_table2D_Cm_df; + cr929_SIL_B.Product1_p = cr929_SIL_B.q[1] / rtb_Gain_nv; /* Product: '/Product2' */ - cr929_SIL_B.Product2_ph = cr929_SIL_B.q[2] / rtb_table2D_Cm_df; + cr929_SIL_B.Product2_ph = cr929_SIL_B.q[2] / rtb_Gain_nv; /* Product: '/Product3' */ - cr929_SIL_B.Product3_h0 = cr929_SIL_B.q[3] / rtb_table2D_Cm_df; + cr929_SIL_B.Product3_h0 = cr929_SIL_B.q[3] / rtb_Gain_nv; /* Sum: '/Sum4' */ cr929_SIL_B.Sum4_p[0] = cr929_SIL_B.pqr[0] - cr929_SIL_B.Product3_nb[0]; @@ -39052,10 +39110,10 @@ void cr929_SIL_step(void) } if (rtmIsMajorTimeStep(cr929_SIL_M)) { - /* DataTypeConversion: '/Data Type Conversion' */ + /* DataTypeConversion: '/Data Type Conversion' */ rtb_DataTypeConversion_a = (real32_T)rtb_Merge_ko_idx_2; - /* DataTypeConversion: '/Data Type Conversion1' */ + /* DataTypeConversion: '/Data Type Conversion1' */ rtb_LugV1_e_idx_0 = floor(rtb_LookupTableDynamic_i); if (rtIsNaN(rtb_LugV1_e_idx_0) || rtIsInf(rtb_LugV1_e_idx_0)) { rtb_LugV1_e_idx_0 = 0.0; @@ -39067,10 +39125,10 @@ void cr929_SIL_step(void) (uint16_T)-(int16_T)(uint16_T)-rtb_LugV1_e_idx_0 : (int32_T)(uint16_T) rtb_LugV1_e_idx_0); - /* End of DataTypeConversion: '/Data Type Conversion1' */ + /* End of DataTypeConversion: '/Data Type Conversion1' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant4' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant4' * DataStoreWrite: '/Data Store Write' */ cr929_SIL_DW.sens = rtb_TmpHiddenBufferAtBusAssignmentInport1_m; @@ -39136,14 +39194,14 @@ void cr929_SIL_step(void) /* Sum: '/An' */ cr929_SIL_B.An = cr929_SIL_B.Product_j1 - cr929_SIL_B.Product1_hk; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_m = cr929_SIL_B.LookupTableDynamic_d - cr929_SIL_B.Integrator_i; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_n = 18.75 * cr929_SIL_B.Sum1_m; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE >= 2.0) { cr929_SIL_X.Integrator1_CSTATE = 2.0; @@ -39155,22 +39213,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1 = cr929_SIL_X.Integrator1_CSTATE; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_jd = cr929_SIL_B.Gain1_n - cr929_SIL_B.Integrator1; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_k = 48.0 * cr929_SIL_B.Sum_jd; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_ft = cr929_SIL_B.LookupTableDynamic_in - cr929_SIL_B.Integrator_jj; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_a = 18.75 * cr929_SIL_B.Sum1_ft; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_k >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_k = 2.0; @@ -39182,22 +39240,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_i = cr929_SIL_X.Integrator1_CSTATE_k; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_js = cr929_SIL_B.Gain1_a - cr929_SIL_B.Integrator1_i; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_p = 48.0 * cr929_SIL_B.Sum_js; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_k = cr929_SIL_B.LookupTableDynamic_g - cr929_SIL_B.Integrator_p; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_m = 18.75 * cr929_SIL_B.Sum1_k; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_e >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_e = 2.0; @@ -39209,22 +39267,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_h = cr929_SIL_X.Integrator1_CSTATE_e; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_kf = cr929_SIL_B.Gain1_m - cr929_SIL_B.Integrator1_h; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_d = 48.0 * cr929_SIL_B.Sum_kf; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_c = cr929_SIL_B.LookupTableDynamic_e - cr929_SIL_B.Integrator_eg; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_d = 18.75 * cr929_SIL_B.Sum1_c; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_d >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_d = 2.0; @@ -39236,22 +39294,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_j = cr929_SIL_X.Integrator1_CSTATE_d; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_b = cr929_SIL_B.Gain1_d - cr929_SIL_B.Integrator1_j; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_a = 48.0 * cr929_SIL_B.Sum_b; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_cx = cr929_SIL_B.LookupTableDynamic_p - cr929_SIL_B.Integrator_h; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_mr = 18.75 * cr929_SIL_B.Sum1_cx; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_j >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_j = 2.0; @@ -39263,22 +39321,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_jd = cr929_SIL_X.Integrator1_CSTATE_j; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_j2 = cr929_SIL_B.Gain1_mr - cr929_SIL_B.Integrator1_jd; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_b = 48.0 * cr929_SIL_B.Sum_j2; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_d = cr929_SIL_B.LookupTableDynamic_b - cr929_SIL_B.Integrator_dl; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_dg = 18.75 * cr929_SIL_B.Sum1_d; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_h >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_h = 2.0; @@ -39290,22 +39348,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_ie = cr929_SIL_X.Integrator1_CSTATE_h; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_e43 = cr929_SIL_B.Gain1_dg - cr929_SIL_B.Integrator1_ie; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_j = 48.0 * cr929_SIL_B.Sum_e43; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_ad = cr929_SIL_B.LookupTableDynamic_o45 - cr929_SIL_B.Integrator_l; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_mq = 18.75 * cr929_SIL_B.Sum1_ad; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_c >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_c = 2.0; @@ -39317,22 +39375,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_b = cr929_SIL_X.Integrator1_CSTATE_c; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_g = cr929_SIL_B.Gain1_mq - cr929_SIL_B.Integrator1_b; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_e = 48.0 * cr929_SIL_B.Sum_g; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_a2 = cr929_SIL_B.LookupTableDynamic_nw - cr929_SIL_B.Integrator_jc; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_g = 18.75 * cr929_SIL_B.Sum1_a2; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_cx >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_cx = 2.0; @@ -39344,22 +39402,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_e = cr929_SIL_X.Integrator1_CSTATE_cx; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_ee = cr929_SIL_B.Gain1_g - cr929_SIL_B.Integrator1_e; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_i = 48.0 * cr929_SIL_B.Sum_ee; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_fe = cr929_SIL_B.LookupTableDynamic_a - cr929_SIL_B.Integrator_j; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_b = 18.75 * cr929_SIL_B.Sum1_fe; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_n >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_n = 2.0; @@ -39371,22 +39429,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_n = cr929_SIL_X.Integrator1_CSTATE_n; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_hm = cr929_SIL_B.Gain1_b - cr929_SIL_B.Integrator1_n; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_jh = 48.0 * cr929_SIL_B.Sum_hm; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_ae = cr929_SIL_B.LookupTableDynamic_f - cr929_SIL_B.Integrator_e; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_f = 18.75 * cr929_SIL_B.Sum1_ae; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_o >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_o = 2.0; @@ -39398,22 +39456,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_h3 = cr929_SIL_X.Integrator1_CSTATE_o; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_jy = cr929_SIL_B.Gain1_f - cr929_SIL_B.Integrator1_h3; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_ay = 48.0 * cr929_SIL_B.Sum_jy; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_k5 = cr929_SIL_B.LookupTableDynamic_np - cr929_SIL_B.Integrator_no; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_j = 18.75 * cr929_SIL_B.Sum1_k5; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_g >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_g = 2.0; @@ -39425,22 +39483,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_a = cr929_SIL_X.Integrator1_CSTATE_g; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_eh = cr929_SIL_B.Gain1_j - cr929_SIL_B.Integrator1_a; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_h = 48.0 * cr929_SIL_B.Sum_eh; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_fd = cr929_SIL_B.LookupTableDynamic_n - cr929_SIL_B.Integrator_k; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_fy = 18.75 * cr929_SIL_B.Sum1_fd; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_ny >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_ny = 2.0; @@ -39452,22 +39510,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_o = cr929_SIL_X.Integrator1_CSTATE_ny; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_i3 = cr929_SIL_B.Gain1_fy - cr929_SIL_B.Integrator1_o; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_pw = 48.0 * cr929_SIL_B.Sum_i3; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_me = cr929_SIL_B.LookupTableDynamic_o4 - cr929_SIL_B.Integrator_nq; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_o = 18.75 * cr929_SIL_B.Sum1_me; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_k3 >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_k3 = 2.0; @@ -39479,22 +39537,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_ai = cr929_SIL_X.Integrator1_CSTATE_k3; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_a4 = cr929_SIL_B.Gain1_o - cr929_SIL_B.Integrator1_ai; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_f = 48.0 * cr929_SIL_B.Sum_a4; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_b = cr929_SIL_B.LookupTableDynamic_o - cr929_SIL_B.Integrator_g; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_p = 18.75 * cr929_SIL_B.Sum1_b; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_p >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_p = 2.0; @@ -39506,22 +39564,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_k = cr929_SIL_X.Integrator1_CSTATE_p; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_op = cr929_SIL_B.Gain1_p - cr929_SIL_B.Integrator1_k; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_ds = 48.0 * cr929_SIL_B.Sum_op; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_g = cr929_SIL_B.LookupTableDynamic_i - cr929_SIL_B.Integrator_mm; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_b2 = 18.75 * cr929_SIL_B.Sum1_g; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_k2 >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_k2 = 2.0; @@ -39533,22 +39591,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_in = cr929_SIL_X.Integrator1_CSTATE_k2; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_dq = cr929_SIL_B.Gain1_b2 - cr929_SIL_B.Integrator1_in; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_jy = 48.0 * cr929_SIL_B.Sum_dq; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_n = cr929_SIL_B.LookupTableDynamic_lb - cr929_SIL_B.Integrator_ml; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_mi = 18.75 * cr929_SIL_B.Sum1_n; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_i >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_i = 2.0; @@ -39560,22 +39618,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_m = cr929_SIL_X.Integrator1_CSTATE_i; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_gg = cr929_SIL_B.Gain1_mi - cr929_SIL_B.Integrator1_m; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_o = 48.0 * cr929_SIL_B.Sum_gg; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_gn = cr929_SIL_B.LookupTableDynamic_l - cr929_SIL_B.Integrator_n; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_e = 18.75 * cr929_SIL_B.Sum1_gn; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_ce >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_ce = 2.0; @@ -39587,22 +39645,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_jx = cr929_SIL_X.Integrator1_CSTATE_ce; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_dz = cr929_SIL_B.Gain1_e - cr929_SIL_B.Integrator1_jx; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_a0 = 48.0 * cr929_SIL_B.Sum_dz; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_h = cr929_SIL_B.LookupTableDynamic_m - cr929_SIL_B.Integrator_m; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_dq = 18.75 * cr929_SIL_B.Sum1_h; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_c5 >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_c5 = 2.0; @@ -39614,22 +39672,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_np = cr929_SIL_X.Integrator1_CSTATE_c5; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_pd = cr929_SIL_B.Gain1_dq - cr929_SIL_B.Integrator1_np; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_ho = 48.0 * cr929_SIL_B.Sum_pd; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_hi = cr929_SIL_B.LookupTableDynamic_k - cr929_SIL_B.Integrator_d; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_je = 18.75 * cr929_SIL_B.Sum1_hi; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_h4 >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_h4 = 2.0; @@ -39641,22 +39699,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_g = cr929_SIL_X.Integrator1_CSTATE_h4; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_ny = cr929_SIL_B.Gain1_je - cr929_SIL_B.Integrator1_g; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_jy0 = 48.0 * cr929_SIL_B.Sum_ny; - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_be = cr929_SIL_B.LookupTableDynamic - cr929_SIL_B.Integrator_c; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_dn = 18.75 * cr929_SIL_B.Sum1_be; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_pg >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_pg = 2.0; @@ -39668,16 +39726,22 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_hl = cr929_SIL_X.Integrator1_CSTATE_pg; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_i3b = cr929_SIL_B.Gain1_dn - cr929_SIL_B.Integrator1_hl; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_j3 = 48.0 * cr929_SIL_B.Sum_i3b; /* Outport: '/mass' */ cr929_SIL_Y.mass = cr929_SIL_B.Integrator; + + /* Outport: '/beta' */ + cr929_SIL_Y.beta = cr929_SIL_B.Sideslip; + + /* Outport: '/alpha' */ + cr929_SIL_Y.alpha = cr929_SIL_B.Incidence; if (rtmIsMajorTimeStep(cr929_SIL_M)) { /* Sum: '/Sum' incorporates: * UnitDelay: '/Unit Delay' @@ -39697,7 +39761,7 @@ void cr929_SIL_step(void) /* Sum: '/Sum' incorporates: * UnitDelay: '/Unit Delay' */ - cr929_SIL_DW.UnitDelay_DSTATE_c = rtb_UnitDelay_d; + cr929_SIL_DW.UnitDelay_DSTATE_c3 = rtb_UnitDelay_d; /* Sum: '/Sum' incorporates: * UnitDelay: '/Unit Delay' @@ -39720,7 +39784,7 @@ void cr929_SIL_step(void) /* Outport: '/de' */ cr929_SIL_Y.de = cr929_SIL_B.In1_bt; - /* Integrator: '/Integrator' */ + /* Integrator: '/Integrator' */ /* Limited Integrator */ if (cr929_SIL_DW.Integrator_IWORK_j4 != 0) { cr929_SIL_X.Integrator_CSTATE_a0 = 0.0; @@ -39736,15 +39800,15 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator_lx = cr929_SIL_X.Integrator_CSTATE_a0; - /* End of Integrator: '/Integrator' */ + /* End of Integrator: '/Integrator' */ - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ cr929_SIL_B.Sum1_ao = 0.0 - cr929_SIL_B.Integrator_lx; - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ cr929_SIL_B.Gain1_gy = 18.75 * cr929_SIL_B.Sum1_ao; - /* Integrator: '/Integrator1' */ + /* Integrator: '/Integrator1' */ /* Limited Integrator */ if (cr929_SIL_X.Integrator1_CSTATE_jv >= 2.0) { cr929_SIL_X.Integrator1_CSTATE_jv = 2.0; @@ -39756,12 +39820,12 @@ void cr929_SIL_step(void) cr929_SIL_B.Integrator1_npy = cr929_SIL_X.Integrator1_CSTATE_jv; - /* End of Integrator: '/Integrator1' */ + /* End of Integrator: '/Integrator1' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ cr929_SIL_B.Sum_i2 = cr929_SIL_B.Gain1_gy - cr929_SIL_B.Integrator1_npy; - /* Gain: '/Gain' */ + /* Gain: '/Gain' */ cr929_SIL_B.Gain_fp = 48.0 * cr929_SIL_B.Sum_i2; } @@ -39795,10 +39859,10 @@ void cr929_SIL_step(void) cr929_SIL_DW.q_IWORK = 0; /* Update for Enabled SubSystem: '/wind_model' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (cr929_SIL_DW.wind_model_MODE && rtmIsMajorTimeStep(cr929_SIL_M)) { - /* Update for RandomNumber: '/White Noise' */ + /* Update for RandomNumber: '/White Noise' */ cr929_SIL_DW.NextOutput[0] = rt_nrand_Upu32_Yd_f_pw_snf (&cr929_SIL_DW.RandSeed[0]); cr929_SIL_DW.NextOutput[1] = rt_nrand_Upu32_Yd_f_pw_snf @@ -39823,15 +39887,35 @@ void cr929_SIL_step(void) cr929_SIL_DW.UnitDelay_DSTATE_d = cr929_SIL_B.throttle_l; } - /* Update for Enabled SubSystem: '/throttle' */ - cr929_SIL_throttle_Update(cr929_SIL_M, &cr929_SIL_B.throttle, - &cr929_SIL_DW.throttle); + /* Update for Enabled SubSystem: '/throttle' incorporates: + * EnablePort: '/Enable' + */ + if (cr929_SIL_DW.throttle_MODE) { + if (rtmIsMajorTimeStep(cr929_SIL_M)) { + /* Update for Delay: '/Delay' */ + cr929_SIL_DW.icLoad_b = 0U; + cr929_SIL_DW.Delay_DSTATE_k = rtb_Sum_m; + } + + /* Update for Integrator: '/Integrator3' */ + cr929_SIL_DW.Integrator3_IWORK_n = 0; + } /* End of Update for SubSystem: '/throttle' */ - /* Update for Enabled SubSystem: '/throttle1' */ - cr929_SIL_throttle_Update(cr929_SIL_M, &cr929_SIL_B.throttle1, - &cr929_SIL_DW.throttle1); + /* Update for Enabled SubSystem: '/throttle1' incorporates: + * EnablePort: '/Enable' + */ + if (cr929_SIL_DW.throttle1_MODE) { + if (rtmIsMajorTimeStep(cr929_SIL_M)) { + /* Update for Delay: '/Delay' */ + cr929_SIL_DW.icLoad_h = 0U; + cr929_SIL_DW.Delay_DSTATE = rtb_Sum_b; + } + + /* Update for Integrator: '/Integrator3' */ + cr929_SIL_DW.Integrator3_IWORK = 0; + } /* End of Update for SubSystem: '/throttle1' */ @@ -39841,158 +39925,158 @@ void cr929_SIL_step(void) /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK = 0; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_j = 0; /* Update for Backlash: '/Backlash1' */ cr929_SIL_DW.PrevY = cr929_SIL_B.Backlash1; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_e = 0; /* Update for Backlash: '/Backlash8' */ cr929_SIL_DW.PrevY_e = cr929_SIL_B.Backlash8; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_jd = 0; /* Update for Backlash: '/Backlash2' */ cr929_SIL_DW.PrevY_c = cr929_SIL_B.Backlash2; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_f = 0; - /* Update for Backlash: '/Backlash6' */ + /* Update for Backlash: '/Backlash6' */ cr929_SIL_DW.PrevY_d = cr929_SIL_B.Backlash6; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_p = 0; - /* Update for Backlash: '/Backlash1' */ + /* Update for Backlash: '/Backlash1' */ cr929_SIL_DW.PrevY_b = cr929_SIL_B.Backlash1_g; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_a = 0; - /* Update for Backlash: '/Backlash2' */ + /* Update for Backlash: '/Backlash2' */ cr929_SIL_DW.PrevY_ex = cr929_SIL_B.Backlash2_e; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_g = 0; - /* Update for Backlash: '/Backlash3' */ + /* Update for Backlash: '/Backlash3' */ cr929_SIL_DW.PrevY_o = cr929_SIL_B.Backlash3; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_fo = 0; - /* Update for Backlash: '/Backlash4' */ + /* Update for Backlash: '/Backlash4' */ cr929_SIL_DW.PrevY_k = cr929_SIL_B.Backlash4; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_k = 0; - /* Update for Backlash: '/Backlash5' */ + /* Update for Backlash: '/Backlash5' */ cr929_SIL_DW.PrevY_j = cr929_SIL_B.Backlash5; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_go = 0; - /* Update for Backlash: '/Backlash7' */ + /* Update for Backlash: '/Backlash7' */ cr929_SIL_DW.PrevY_p = cr929_SIL_B.Backlash7; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_h = 0; - /* Update for Backlash: '/Backlash8' */ + /* Update for Backlash: '/Backlash8' */ cr929_SIL_DW.PrevY_f = cr929_SIL_B.Backlash8_d; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_m = 0; - /* Update for Backlash: '/Backlash9' */ + /* Update for Backlash: '/Backlash9' */ cr929_SIL_DW.PrevY_g = cr929_SIL_B.Backlash9; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_ea = 0; - /* Update for Backlash: '/Backlash10' */ + /* Update for Backlash: '/Backlash10' */ cr929_SIL_DW.PrevY_ja = cr929_SIL_B.Backlash10; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_g3 = 0; - /* Update for Backlash: '/Backlash12' */ + /* Update for Backlash: '/Backlash12' */ cr929_SIL_DW.PrevY_kb = cr929_SIL_B.Backlash12; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_i = 0; - /* Update for Backlash: '/Backlash11' */ + /* Update for Backlash: '/Backlash11' */ cr929_SIL_DW.PrevY_ox = cr929_SIL_B.Backlash11; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_hp = 0; - /* Update for Backlash: '/Backlash13' */ + /* Update for Backlash: '/Backlash13' */ cr929_SIL_DW.PrevY_h = cr929_SIL_B.Backlash13; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_o = 0; - /* Update for Backlash: '/Backlash14' */ + /* Update for Backlash: '/Backlash14' */ cr929_SIL_DW.PrevY_hp = cr929_SIL_B.Backlash14; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_c = 0; - /* Update for Backlash: '/Backlash15' */ + /* Update for Backlash: '/Backlash15' */ cr929_SIL_DW.PrevY_bz = cr929_SIL_B.Backlash15; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_d = 0; - /* Update for Backlash: '/Backlash16' */ + /* Update for Backlash: '/Backlash16' */ cr929_SIL_DW.PrevY_ko = cr929_SIL_B.Backlash16; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_dj = 0; /* Update for Backlash: '/Backlash5' */ cr929_SIL_DW.PrevY_i = cr929_SIL_B.horizontal_tail; if (rtmIsMajorTimeStep(cr929_SIL_M)) { /* Update for Atomic SubSystem: '/dummy_INS' */ - /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states[1] = cr929_SIL_DW.DiscreteTransferFcn_states[0]; cr929_SIL_DW.DiscreteTransferFcn_states[0] = cr929_SIL_DW.DiscreteTransferFcn_tmp[0]; - /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states_a[1] = cr929_SIL_DW.DiscreteTransferFcn_states_a[0]; cr929_SIL_DW.DiscreteTransferFcn_states_a[0] = cr929_SIL_DW.DiscreteTransferFcn_tmp_f[0]; - /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states[3] = cr929_SIL_DW.DiscreteTransferFcn_states[2]; cr929_SIL_DW.DiscreteTransferFcn_states[2] = cr929_SIL_DW.DiscreteTransferFcn_tmp[1]; - /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states_a[3] = cr929_SIL_DW.DiscreteTransferFcn_states_a[2]; cr929_SIL_DW.DiscreteTransferFcn_states_a[2] = cr929_SIL_DW.DiscreteTransferFcn_tmp_f[1]; - /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states[5] = cr929_SIL_DW.DiscreteTransferFcn_states[4]; cr929_SIL_DW.DiscreteTransferFcn_states[4] = cr929_SIL_DW.DiscreteTransferFcn_tmp[2]; - /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* Update for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states_a[5] = cr929_SIL_DW.DiscreteTransferFcn_states_a[4]; cr929_SIL_DW.DiscreteTransferFcn_states_a[4] = @@ -40004,7 +40088,7 @@ void cr929_SIL_step(void) /* Update for Integrator: '/p' */ cr929_SIL_DW.p_IWORK = 0; - /* Update for Integrator: '/Integrator' */ + /* Update for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_j4 = 0; } /* end MajorTimeStep */ @@ -40053,47 +40137,47 @@ void cr929_SIL_derivatives(void) /* Derivatives for Enabled SubSystem: '/wind_model' */ if (cr929_SIL_DW.wind_model_MODE) { - /* Derivatives for Enabled SubSystem: '/Distance into gust (x)' */ + /* Derivatives for Enabled SubSystem: '/Distance into gust (x)' */ cr929_SIL_Distanceintogustx_Deriv(cr929_SIL_B.Sqrt, &cr929_SIL_DW.Distanceintogustx, &cr929_SIL_X.Distanceintogustx, &_rtXdot->Distanceintogustx, 120.0); - /* End of Derivatives for SubSystem: '/Distance into gust (x)' */ + /* End of Derivatives for SubSystem: '/Distance into gust (x)' */ - /* Derivatives for Enabled SubSystem: '/Distance into gust (y)' */ + /* Derivatives for Enabled SubSystem: '/Distance into gust (y)' */ cr929_SIL_Distanceintogusty_Deriv(cr929_SIL_B.Sqrt, &cr929_SIL_DW.Distanceintogusty, &cr929_SIL_X.Distanceintogusty, &_rtXdot->Distanceintogusty, 120.0); - /* End of Derivatives for SubSystem: '/Distance into gust (y)' */ + /* End of Derivatives for SubSystem: '/Distance into gust (y)' */ - /* Derivatives for Enabled SubSystem: '/Distance into gust (z)' */ + /* Derivatives for Enabled SubSystem: '/Distance into gust (z)' */ cr929_SIL_Distanceintogusty_Deriv(cr929_SIL_B.Sqrt, &cr929_SIL_DW.Distanceintogustz, &cr929_SIL_X.Distanceintogustz, &_rtXdot->Distanceintogustz, 80.0); - /* End of Derivatives for SubSystem: '/Distance into gust (z)' */ + /* End of Derivatives for SubSystem: '/Distance into gust (z)' */ - /* Derivatives for Enabled SubSystem: '/Distance into gust (x)' */ + /* Derivatives for Enabled SubSystem: '/Distance into gust (x)' */ cr929_SIL_Distanceintogustx_Deriv(cr929_SIL_B.Sqrt, &cr929_SIL_DW.Distanceintogustx_d, &cr929_SIL_X.Distanceintogustx_d, &_rtXdot->Distanceintogustx_d, 120.0); - /* End of Derivatives for SubSystem: '/Distance into gust (x)' */ + /* End of Derivatives for SubSystem: '/Distance into gust (x)' */ - /* Derivatives for Enabled SubSystem: '/Distance into gust (y)' */ + /* Derivatives for Enabled SubSystem: '/Distance into gust (y)' */ cr929_SIL_Distanceintogusty_Deriv(cr929_SIL_B.Sqrt, &cr929_SIL_DW.Distanceintogusty_k, &cr929_SIL_X.Distanceintogusty_k, &_rtXdot->Distanceintogusty_k, 120.0); - /* End of Derivatives for SubSystem: '/Distance into gust (y)' */ + /* End of Derivatives for SubSystem: '/Distance into gust (y)' */ - /* Derivatives for Enabled SubSystem: '/Distance into gust (z)' */ + /* Derivatives for Enabled SubSystem: '/Distance into gust (z)' */ cr929_SIL_Distanceintogusty_Deriv(cr929_SIL_B.Sqrt, &cr929_SIL_DW.Distanceintogustz_a, &cr929_SIL_X.Distanceintogustz_a, &_rtXdot->Distanceintogustz_a, 80.0); - /* End of Derivatives for SubSystem: '/Distance into gust (z)' */ + /* End of Derivatives for SubSystem: '/Distance into gust (z)' */ } else { { real_T *dx; @@ -40109,14 +40193,22 @@ void cr929_SIL_derivatives(void) /* End of Derivatives for SubSystem: '/wind_model' */ /* Derivatives for Enabled SubSystem: '/throttle' */ - cr929_SIL_throttle_Deriv(&cr929_SIL_B.throttle, &cr929_SIL_DW.throttle, - &_rtXdot->throttle); + if (cr929_SIL_DW.throttle_MODE) { + /* Derivatives for Integrator: '/Integrator3' */ + _rtXdot->Integrator3_CSTATE_o = cr929_SIL_B.Gain3_e; + } else { + ((XDot_cr929_SIL_T *) cr929_SIL_M->derivs)->Integrator3_CSTATE_o = 0.0; + } /* End of Derivatives for SubSystem: '/throttle' */ /* Derivatives for Enabled SubSystem: '/throttle1' */ - cr929_SIL_throttle_Deriv(&cr929_SIL_B.throttle1, &cr929_SIL_DW.throttle1, - &_rtXdot->throttle1); + if (cr929_SIL_DW.throttle1_MODE) { + /* Derivatives for Integrator: '/Integrator3' */ + _rtXdot->Integrator3_CSTATE = cr929_SIL_B.Gain3; + } else { + ((XDot_cr929_SIL_T *) cr929_SIL_M->derivs)->Integrator3_CSTATE = 0.0; + } /* End of Derivatives for SubSystem: '/throttle1' */ @@ -40141,7 +40233,7 @@ void cr929_SIL_derivatives(void) /* Derivatives for Integrator: '/Integrator' */ _rtXdot->Integrator_CSTATE = cr929_SIL_B.Gain_l; - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_f <= -0.52356020942408377); usat = (cr929_SIL_X.Integrator_CSTATE_f >= 0.43630017452006981); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_hl > 0.0)) || @@ -40152,9 +40244,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_f = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_d <= -0.52356020942408377); usat = (cr929_SIL_X.Integrator_CSTATE_d >= 0.34904013961605584); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_g > 0.0)) || @@ -40165,9 +40257,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_d = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_b <= -0.61082024432809778); usat = (cr929_SIL_X.Integrator_CSTATE_b >= 0.61082024432809778); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_np > 0.0)) || @@ -40178,9 +40270,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_b = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_h <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_h >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_jx > 0.0)) || @@ -40191,9 +40283,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_h = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_g <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_g >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_m > 0.0)) || @@ -40204,9 +40296,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_g = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_p <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_p >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_in > 0.0)) || @@ -40217,9 +40309,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_p = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_a <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_a >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_k > 0.0)) || @@ -40230,9 +40322,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_a = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_hz <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_hz >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_ai > 0.0)) || @@ -40243,9 +40335,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_hz = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_ho <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_ho >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_o > 0.0)) || @@ -40256,9 +40348,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_ho = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_o <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_o >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_a > 0.0)) || @@ -40269,9 +40361,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_o = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_i <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_i >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_h3 > 0.0)) || @@ -40282,9 +40374,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_i = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_om <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_om >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_n > 0.0)) || @@ -40295,9 +40387,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_om = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_ha <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_ha >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_e > 0.0)) || @@ -40308,9 +40400,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_ha = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_l <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_l >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_b > 0.0)) || @@ -40321,9 +40413,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_l = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_bb <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_bb >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_ie > 0.0)) || @@ -40334,9 +40426,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_bb = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_ba <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_ba >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_jd > 0.0)) || @@ -40347,9 +40439,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_ba = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_hoh <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_hoh >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_j > 0.0)) || @@ -40360,9 +40452,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_hoh = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_pl <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_pl >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_h > 0.0)) || @@ -40373,9 +40465,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_pl = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_fn <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_fn >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_i > 0.0)) || @@ -40386,9 +40478,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_fn = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_bd <= -0.24432809773123909); usat = (cr929_SIL_X.Integrator_CSTATE_bd >= 0.052356020942408377); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1 > 0.0)) || (usat @@ -40399,7 +40491,7 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_bd = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ /* Derivatives for Integrator: '/Integrator' incorporates: * Constant: '/Constant1' @@ -40411,7 +40503,7 @@ void cr929_SIL_derivatives(void) _rtXdot->p_CSTATE[1] = cr929_SIL_B.Sum2_d[1]; _rtXdot->p_CSTATE[2] = cr929_SIL_B.Sum2_d[2]; - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_k > 0.0)) || (usat && @@ -40422,9 +40514,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_k <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_k >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_p > 0.0)) || (usat && @@ -40435,9 +40527,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_k = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_e <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_e >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_d > 0.0)) || (usat && @@ -40448,9 +40540,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_e = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_d <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_d >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_a > 0.0)) || (usat && @@ -40461,9 +40553,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_d = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_j <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_j >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_b > 0.0)) || (usat && @@ -40474,9 +40566,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_j = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_h <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_h >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_j > 0.0)) || (usat && @@ -40487,9 +40579,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_h = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_c <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_c >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_e > 0.0)) || (usat && @@ -40500,9 +40592,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_c = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_cx <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_cx >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_i > 0.0)) || (usat && @@ -40513,9 +40605,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_cx = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_n <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_n >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_jh > 0.0)) || (usat && @@ -40526,9 +40618,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_n = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_o <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_o >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_ay > 0.0)) || (usat && @@ -40539,9 +40631,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_o = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_g <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_g >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_h > 0.0)) || (usat && @@ -40552,9 +40644,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_g = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_ny <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_ny >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_pw > 0.0)) || (usat && @@ -40565,9 +40657,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_ny = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_k3 <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_k3 >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_f > 0.0)) || (usat && @@ -40578,9 +40670,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_k3 = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_p <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_p >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_ds > 0.0)) || (usat && @@ -40591,9 +40683,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_p = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_k2 <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_k2 >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_jy > 0.0)) || (usat && @@ -40604,9 +40696,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_k2 = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_i <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_i >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_o > 0.0)) || (usat && @@ -40617,9 +40709,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_i = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_ce <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_ce >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_a0 > 0.0)) || (usat && @@ -40630,9 +40722,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_ce = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_c5 <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_c5 >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_ho > 0.0)) || (usat && @@ -40643,9 +40735,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_c5 = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_h4 <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_h4 >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_jy0 > 0.0)) || (usat && @@ -40656,9 +40748,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_h4 = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_pg <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_pg >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_j3 > 0.0)) || (usat && @@ -40669,9 +40761,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_pg = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ - /* Derivatives for Integrator: '/Integrator' */ + /* Derivatives for Integrator: '/Integrator' */ lsat = (cr929_SIL_X.Integrator_CSTATE_a0 <= -0.87260034904013961); usat = (cr929_SIL_X.Integrator_CSTATE_a0 >= 0.20942408376963351); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Integrator1_npy > 0.0)) || @@ -40682,9 +40774,9 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator_CSTATE_a0 = 0.0; } - /* End of Derivatives for Integrator: '/Integrator' */ + /* End of Derivatives for Integrator: '/Integrator' */ - /* Derivatives for Integrator: '/Integrator1' */ + /* Derivatives for Integrator: '/Integrator1' */ lsat = (cr929_SIL_X.Integrator1_CSTATE_jv <= -2.0); usat = (cr929_SIL_X.Integrator1_CSTATE_jv >= 2.0); if (((!lsat) && (!usat)) || (lsat && (cr929_SIL_B.Gain_fp > 0.0)) || (usat && @@ -40695,7 +40787,7 @@ void cr929_SIL_derivatives(void) _rtXdot->Integrator1_CSTATE_jv = 0.0; } - /* End of Derivatives for Integrator: '/Integrator1' */ + /* End of Derivatives for Integrator: '/Integrator1' */ } /* Model initialize function */ @@ -40776,50 +40868,50 @@ void cr929_SIL_initialize(void) cr929_SIL_B.BusAssignment = cr929_SIL_rtZC2; cr929_SIL_B.BusAssignment_g = cr929_SIL_rtZC2; cr929_SIL_B.mode = ENUM_mode_MANUAL; - cr929_SIL_B.mode_n = ENUM_mode_MANUAL; - cr929_SIL_B.mode_c = ENUM_mode_MANUAL; cr929_SIL_B.mode_l = ENUM_mode_MANUAL; + cr929_SIL_B.mode_g = ENUM_mode_MANUAL; + cr929_SIL_B.mode_b = ENUM_mode_MANUAL; cr929_SIL_B.vtol_state = ENUM_VTOL_STATE_UNDEFINED; cr929_SIL_B.state = ENUM_SystemState_UNINIT; cr929_SIL_B.landed_state_out = ENUM_LANDED_STATE_UNDEFINED; - cr929_SIL_B.landed_state_out_f = ENUM_LANDED_STATE_UNDEFINED; + cr929_SIL_B.landed_state_out_a = ENUM_LANDED_STATE_UNDEFINED; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_UNDEFINED; - cr929_SIL_B.landed_state_p = ENUM_LANDED_STATE_UNDEFINED; - cr929_SIL_B.landed_state_out_k = ENUM_LANDED_STATE_UNDEFINED; + cr929_SIL_B.landed_state_f = ENUM_LANDED_STATE_UNDEFINED; + cr929_SIL_B.landed_state_out_i = ENUM_LANDED_STATE_UNDEFINED; cr929_SIL_B.CSAS_yaw_out = ENUM_CSAS_YAW_OFF; cr929_SIL_B.yaw_mode = ENUM_CSAS_YAW_OFF; cr929_SIL_B.yaw_mode_i = ENUM_CSAS_YAW_OFF; cr929_SIL_B.yaw_mode_p = ENUM_CSAS_YAW_OFF; - cr929_SIL_B.CSAS_yaw_out_i = ENUM_CSAS_YAW_OFF; + cr929_SIL_B.CSAS_yaw_out_m = ENUM_CSAS_YAW_OFF; cr929_SIL_B.CSAS_yaw = ENUM_CSAS_YAW_OFF; - cr929_SIL_B.CSAS_yaw_p = ENUM_CSAS_YAW_OFF; + cr929_SIL_B.CSAS_yaw_a = ENUM_CSAS_YAW_OFF; cr929_SIL_B.CSAS_roll_out = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.roll_mode = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.roll_mode_a = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.roll_mode_m = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.roll_mode_d = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.roll_mode_ac = ENUM_CSAS_ROLL_OFF; - cr929_SIL_B.CSAS_roll_out_o = ENUM_CSAS_ROLL_OFF; + cr929_SIL_B.CSAS_roll_out_j = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.CSAS_pitch_out = ENUM_CSAS_PITCH_OFF; cr929_SIL_B.pitch_mode = ENUM_CSAS_PITCH_OFF; - cr929_SIL_B.CSAS_pitch_out_m = ENUM_CSAS_PITCH_OFF; + cr929_SIL_B.CSAS_pitch_out_j = ENUM_CSAS_PITCH_OFF; cr929_SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_OFF; - cr929_SIL_B.CSAS_pitch_j = ENUM_CSAS_PITCH_OFF; + cr929_SIL_B.CSAS_pitch_e = ENUM_CSAS_PITCH_OFF; cr929_SIL_B.AT_out = ENUM_AT_OFF; cr929_SIL_B.AT = ENUM_AT_OFF; cr929_SIL_B.AT_l = ENUM_AT_OFF; - cr929_SIL_B.AT_out_h = ENUM_AT_OFF; - cr929_SIL_B.AT_j = ENUM_AT_OFF; + cr929_SIL_B.AT_out_g = ENUM_AT_OFF; + cr929_SIL_B.AT_c = ENUM_AT_OFF; cr929_SIL_B.AT_i = ENUM_AT_OFF; cr929_SIL_B.AFCS_VERT_out = ENUM_AFCS_VERT_OFF; cr929_SIL_B.vert_mode = ENUM_AFCS_VERT_OFF; cr929_SIL_B.vert_mode_m = ENUM_AFCS_VERT_OFF; cr929_SIL_B.vert_mode_a = ENUM_AFCS_VERT_OFF; - cr929_SIL_B.AFCS_VERT_out_m = ENUM_AFCS_VERT_OFF; + cr929_SIL_B.AFCS_VERT_out_h = ENUM_AFCS_VERT_OFF; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_OFF; - cr929_SIL_B.AFCS_VERT_f = ENUM_AFCS_VERT_OFF; + cr929_SIL_B.AFCS_VERT_n = ENUM_AFCS_VERT_OFF; cr929_SIL_B.AFCS_LAT_out = ENUM_AFCS_LAT_OFF; cr929_SIL_B.lat_mode = ENUM_AFCS_LAT_OFF; cr929_SIL_B.lat_mode_c = ENUM_AFCS_LAT_OFF; @@ -40828,7 +40920,7 @@ void cr929_SIL_initialize(void) cr929_SIL_B.lat_mode_a = ENUM_AFCS_LAT_OFF; cr929_SIL_B.AFCS_LAT_out_j = ENUM_AFCS_LAT_OFF; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_OFF; - cr929_SIL_B.AFCS_LAT_h = ENUM_AFCS_LAT_OFF; + cr929_SIL_B.AFCS_LAT_p = ENUM_AFCS_LAT_OFF; } /* custom signals */ @@ -40894,11 +40986,11 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.If_ActiveSubsystem = -1; /* Start for Enabled SubSystem: '/wind_model' */ - /* Start for If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ + /* Start for If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ cr929_SIL_DW.ifHeightMaxlowaltitudeelseifHeightMinisotropicaltitude_ActiveSu = -1; - /* Start for If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ + /* Start for If: '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ cr929_SIL_DW.ifHeightMaxlowaltitudeelseifHeightMinisotropicaltitude_Active_a = -1; @@ -40920,7 +41012,7 @@ void cr929_SIL_initialize(void) /* End of Start for SubSystem: '/atmosphere' */ /* Start for Atomic SubSystem: '/cr929_autopilot' */ - /* Start for EntityQueue: '/EntityQueue_InsertedFor_proc_queue_at_inport_0' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_proc_queue_at_inport_0' */ cr929_SIL_initQueue_k0qncuyo4n2((Queue_mavlink_message_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_proc_queue_at_inport_0_Queue_mavlink_me, MSG_FIFO_QUEUE, 2, (Msg_mavlink_message_t *) @@ -40962,79 +41054,92 @@ void cr929_SIL_initialize(void) /* End of Start for SubSystem: '/auto' */ /* End of Start for SubSystem: '/operational' */ - /* Start for Atomic SubSystem: '/update_nav_info' */ - /* Start for SwitchCase: '/Switch Case' */ + /* Start for Atomic SubSystem: '/update_nav_info' */ + /* Start for SwitchCase: '/Switch Case' */ cr929_SIL_DW.SwitchCase_ActiveSubsystem_me = -1; - /* End of Start for SubSystem: '/update_nav_info' */ + /* End of Start for SubSystem: '/update_nav_info' */ - /* Start for SwitchCase: '/Switch Case' */ + /* Start for SwitchCase: '/Switch Case' */ cr929_SIL_DW.SwitchCase_ActiveSubsystem_m = -1; - /* Start for IfAction SubSystem: '/gamma2tht' */ - /* Start for SwitchCase: '/Switch Case' */ + /* Start for IfAction SubSystem: '/gamma2tht' */ + /* Start for SwitchCase: '/Switch Case' */ cr929_SIL_DW.SwitchCase_ActiveSubsystem_l = -1; - /* Start for IfAction SubSystem: '/hdot' */ - /* Start for SwitchCase: '/Switch Case' */ + /* Start for IfAction SubSystem: '/hdot' */ + /* Start for SwitchCase: '/Switch Case' */ cr929_SIL_DW.SwitchCase_ActiveSubsystem_f = -1; - /* End of Start for SubSystem: '/hdot' */ - /* End of Start for SubSystem: '/gamma2tht' */ + /* End of Start for SubSystem: '/hdot' */ + /* End of Start for SubSystem: '/gamma2tht' */ - /* Start for SwitchCase: '/Switch Case' */ + /* Start for SwitchCase: '/Switch Case' */ cr929_SIL_DW.SwitchCase_ActiveSubsystem_g = -1; - /* Start for SwitchCase: '/Switch Case' */ + /* Start for SwitchCase: '/Switch Case' */ cr929_SIL_DW.SwitchCase_ActiveSubsystem_h = -1; /* Start for Atomic SubSystem: '/pitch' */ - /* Start for SwitchCase: '/Switch Case' */ + /* Start for SwitchCase: '/Switch Case' */ cr929_SIL_DW.SwitchCase_ActiveSubsystem_j = -1; /* End of Start for SubSystem: '/pitch' */ - /* Start for SwitchCase: '/Switch Case1' */ + /* Start for SwitchCase: '/Switch Case1' */ cr929_SIL_DW.SwitchCase1_ActiveSubsystem = -1; - /* Start for SwitchCase: '/Switch Case' */ + /* Start for SwitchCase: '/Switch Case' */ cr929_SIL_DW.SwitchCase_ActiveSubsystem_k = -1; - /* Start for If: '/If' */ + /* Start for If: '/If' */ cr929_SIL_DW.If_ActiveSubsystem_l = -1; - /* Start for Chart: '/proc_queue' incorporates: - * SubSystem: '/dec_and_proc_each' + /* Start for Chart: '/proc_queue' incorporates: + * SubSystem: '/dec_and_proc_each' */ - /* Start for IfAction SubSystem: '/param_req_get_dec' */ - /* Start for Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_param_req_read' + /* Start for IfAction SubSystem: '/param_req_get_dec' */ + /* Start for Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_param_req_read' */ - /* Start for Chart: '/Chart_proc_param_req_read' incorporates: - * SubSystem: '/find_idx' + /* Start for Chart: '/Chart_proc_param_req_read' incorporates: + * SubSystem: '/find_idx' */ - /* Start for S-Function (find_param_idx): '/find_idx_capi' */ + /* Start for S-Function (find_param_idx): '/find_idx_capi' */ - /* S-Function Block: /find_idx_capi */ + /* S-Function Block: /find_idx_capi */ find_param_idx_Start_wrapper(); - /* End of Start for SubSystem: '/param_req_get_dec' */ + /* End of Start for SubSystem: '/param_req_get_dec' */ - /* Start for IfAction SubSystem: '/param_set_dec' */ - /* Start for Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_param_set' + /* Start for IfAction SubSystem: '/param_set_dec' */ + /* Start for Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_param_set' */ - /* Start for Chart: '/Chart_proc_param_set' incorporates: - * SubSystem: '/set_val' + /* Start for Chart: '/Chart_proc_param_set' incorporates: + * SubSystem: '/set_val' */ - /* Start for S-Function (set_param_val): '/set_val_capi' */ + /* Start for S-Function (set_param_val): '/set_val_capi' */ - /* S-Function Block: /set_val_capi */ + /* S-Function Block: /set_val_capi */ set_param_val_Start_wrapper(); - /* End of Start for SubSystem: '/param_set_dec' */ + /* End of Start for SubSystem: '/param_set_dec' */ - /* Start for EntityQueue: '/EntityQueue_InsertedFor_req_cur_at_inport_0' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0' */ + cr929_SIL_initQueue_k0qnc((Queue_mavlink_mission_count_t *) + &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_Q, + MSG_FIFO_QUEUE, 1, (Msg_mavlink_mission_count_t *) + &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_M); + + /* Start for EntityQueue: '/EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1' */ + cr929_SIL_initQueue_k0qncu((Queue_mavlink_mission_item_int_t *) + &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_Q, + MSG_FIFO_QUEUE, 5, (Msg_mavlink_mission_item_int_t *) + &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_M + [0]); + + /* Start for EntityQueue: '/EntityQueue_InsertedFor_req_cur_at_inport_0' */ cr929_SIL_initQueue((Queue_uint16 *) &cr929_SIL_DW.EntityQueue_InsertedFor_req_cur_at_inport_0_Queue_uint16, MSG_FIFO_QUEUE, 1, (Msg_uint16 *) @@ -41047,19 +41152,6 @@ void cr929_SIL_initialize(void) &cr929_SIL_DW.EntityQueue_InsertedFor_proc_set_cur_at_inport_0_Msg_uint16 [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1' */ - cr929_SIL_initQueue_k0qncu((Queue_mavlink_mission_item_int_t *) - &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_Q, - MSG_FIFO_QUEUE, 5, (Msg_mavlink_mission_item_int_t *) - &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_M - [0]); - - /* Start for EntityQueue: '/EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0' */ - cr929_SIL_initQueue_k0qnc((Queue_mavlink_mission_count_t *) - &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_Q, - MSG_FIFO_QUEUE, 1, (Msg_mavlink_mission_count_t *) - &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_M); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_proc_cmd_at_inport_1' */ cr929_SIL_initQueue_k((Queue_CommandMsg *) &cr929_SIL_DW.EntityQueue_InsertedFor_proc_cmd_at_inport_1_Queue_CommandMsg, @@ -41079,137 +41171,137 @@ void cr929_SIL_initialize(void) /* S-Function Block: /cr929_FlightControlLaw */ cr929_FlightControlLaw_Start_wrapper(); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_Chart_send_ack_at_inport_0' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_Chart_send_ack_at_inport_0' */ cr929_SIL_initQueue_k0((Queue_CommandAck *) &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_send_ack_at_inport_0_Queue_Comman, MSG_FIFO_QUEUE, 10, (Msg_CommandAck *) &cr929_SIL_DW.EntityQueue_InsertedFor_Chart_send_ack_at_inport_0_Msg_CommandA [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_proc_param_value_at_inport_0' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_proc_param_value_at_inport_0' */ cr929_SIL_initQueue((Queue_uint16 *) &cr929_SIL_DW.EntityQueue_InsertedFor_proc_param_value_at_inport_0_Queue_uint, MSG_FIFO_QUEUE, 2, (Msg_uint16 *) &cr929_SIL_DW.EntityQueue_InsertedFor_proc_param_value_at_inport_0_Msg_uint16 [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_proc_param_value_at_inport_1' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_proc_param_value_at_inport_1' */ cr929_SIL_initQueue((Queue_uint16 *) &cr929_SIL_DW.EntityQueue_InsertedFor_proc_param_value_at_inport_1_Queue_uint, MSG_FIFO_QUEUE, 2, (Msg_uint16 *) &cr929_SIL_DW.EntityQueue_InsertedFor_proc_param_value_at_inport_1_Msg_uint16 [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_proc_param_value_at_inport_2' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_proc_param_value_at_inport_2' */ cr929_SIL_initQueue((Queue_uint16 *) &cr929_SIL_DW.EntityQueue_InsertedFor_proc_param_value_at_inport_2_Queue_uint, MSG_FIFO_QUEUE, 2, (Msg_uint16 *) &cr929_SIL_DW.EntityQueue_InsertedFor_proc_param_value_at_inport_2_Msg_uint16 [0]); - /* Start for Chart: '/proc_param_value' incorporates: - * SubSystem: '/find_val' + /* Start for Chart: '/proc_param_value' incorporates: + * SubSystem: '/find_val' */ cr929_SIL_find_val_Start(); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_2' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_2' */ cr929_SIL_initQueue_k0qn((Queue_mavlink_param_value_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_2_Queue_mavlink_, MSG_FIFO_QUEUE, 2, (Msg_mavlink_param_value_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_2_Msg_mavlink_pa [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_3' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_3' */ cr929_SIL_initQueue_k0qnc((Queue_mavlink_mission_count_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_3_Queue_mavlink_, MSG_FIFO_QUEUE, 2, (Msg_mavlink_mission_count_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_3_Msg_mavlink_mi [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_4' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_4' */ cr929_SIL_initQueue_k0qncu((Queue_mavlink_mission_item_int_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_4_Queue_mavlink_, MSG_FIFO_QUEUE, 2, (Msg_mavlink_mission_item_int_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_4_Msg_mavlink_mi [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_merge_ack_at_inport_0' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_merge_ack_at_inport_0' */ cr929_SIL_initQueue_k0qncuy((Queue_mavlink_mission_ack_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_merge_ack_at_inport_0_Queue_mavlink_mis, MSG_FIFO_QUEUE, 2, (Msg_mavlink_mission_ack_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_merge_ack_at_inport_0_Msg_mavlink_missi [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_merge_ack_at_inport_1' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_merge_ack_at_inport_1' */ cr929_SIL_initQueue_k0qncuy((Queue_mavlink_mission_ack_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_merge_ack_at_inport_1_Queue_mavlink_mis, MSG_FIFO_QUEUE, 2, (Msg_mavlink_mission_ack_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_merge_ack_at_inport_1_Msg_mavlink_missi [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_merge_ack_at_inport_2' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_merge_ack_at_inport_2' */ cr929_SIL_initQueue_k0qncuy((Queue_mavlink_mission_ack_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_merge_ack_at_inport_2_Queue_mavlink_mis, MSG_FIFO_QUEUE, 2, (Msg_mavlink_mission_ack_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_merge_ack_at_inport_2_Msg_mavlink_missi [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_5' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_5' */ cr929_SIL_initQueue_k0qncuy((Queue_mavlink_mission_ack_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_5_Queue_mavlink_, MSG_FIFO_QUEUE, 2, (Msg_mavlink_mission_ack_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_5_Msg_mavlink_mi [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_6' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_6' */ cr929_SIL_initQueue_k0qncuyo((Queue_mavlink_mission_current_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_6_Queue_mavlink_, MSG_FIFO_QUEUE, 2, (Msg_mavlink_mission_current_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_6_Msg_mavlink_mi [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_7' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_7' */ cr929_SIL_initQueue_k0qncuyo4((Queue_mavlink_mission_request_int_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_7_Queue_mavlink_, MSG_FIFO_QUEUE, 2, (Msg_mavlink_mission_request_int_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_7_Msg_mavlink_mi [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_8' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_8' */ cr929_SIL_initQueue_k0q((Queue_mavlink_command_ack_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_8_Queue_mavlink_, MSG_FIFO_QUEUE, 2, (Msg_mavlink_command_ack_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_8_Msg_mavlink_co [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_9' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_9' */ cr929_SIL_initQueue_k0qncuyo4n((Queue_mavlink_autopilot_version_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_9_Queue_mavlink_, MSG_FIFO_QUEUE, 2, (Msg_mavlink_autopilot_version_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_9_Msg_mavlink_au [0]); - /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_10' */ + /* Start for EntityQueue: '/EntityQueue_InsertedFor_traffic_ctrl_at_inport_10' */ cr929_SIL_initQueue_k0qncuyo4n2e((Queue_mavlink_serial_control_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_10_Queue_mavlink, MSG_FIFO_QUEUE, 5, (Msg_mavlink_serial_control_t *) &cr929_SIL_DW.EntityQueue_InsertedFor_traffic_ctrl_at_inport_10_Msg_mavlink_s [0]); - /* Start for Chart: '/traffic_ctrl' incorporates: - * SubSystem: '/loop_download' + /* Start for Chart: '/traffic_ctrl' incorporates: + * SubSystem: '/loop_download' */ - /* Start for IfAction SubSystem: '/rpm_enc' */ - /* Start for Width: '/Width' */ + /* Start for IfAction SubSystem: '/rpm_enc' */ + /* Start for Width: '/Width' */ cr929_SIL_B.width = 5.0; - /* End of Start for SubSystem: '/rpm_enc' */ + /* End of Start for SubSystem: '/rpm_enc' */ - /* Start for IfAction SubSystem: '/svo_out_raw_enc' */ - /* Start for Width: '/Width' */ + /* Start for IfAction SubSystem: '/svo_out_raw_enc' */ + /* Start for Width: '/Width' */ cr929_SIL_B.width_p = 79U; - /* End of Start for SubSystem: '/svo_out_raw_enc' */ + /* End of Start for SubSystem: '/svo_out_raw_enc' */ /* Start for DataStoreMemory: '/Data Store Memory' */ cr929_SIL_DW.CC = cr929_SIL_rtZC2; @@ -41258,6 +41350,7 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.CC.landed_state = ENUM_LANDED_STATE_ON_GROUND; cr929_SIL_DW.CC.landing_cmd = false; cr929_SIL_DW.CC.linked = false; + cr929_SIL_DW.CC.mass_est = 71.59F; cr929_SIL_DW.CC.max_da = 1.0F; cr929_SIL_DW.CC.max_de = 1.0F; cr929_SIL_DW.CC.max_df = 1.0F; @@ -41290,205 +41383,205 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.SwitchCase_ActiveSubsystem = -1; /* Start for Atomic SubSystem: '/dummy_INS' */ - /* Start for Enabled SubSystem: '/Enabled Subsystem' */ - /* Start for Constant: '/Constant' */ + /* Start for Enabled SubSystem: '/Enabled Subsystem' */ + /* Start for Constant: '/Constant' */ cr929_SIL_B.OutportBuffer_InsertedFor_gps_vel_status_at_inport_0 = 128U; + /* End of Start for SubSystem: '/Enabled Subsystem' */ + + /* Start for Enabled SubSystem: '/Enabled Subsystem' */ + /* Start for Constant: '/Constant' */ + cr929_SIL_B.OutportBuffer_InsertedFor_gps_hdg_status_at_inport_0 = 0U; + + /* End of Start for SubSystem: '/Enabled Subsystem' */ + + /* Start for Enabled SubSystem: '/Enabled Subsystem' */ + /* Start for Constant: '/Constant' */ + cr929_SIL_B.OutportBuffer_InsertedFor_gps_pos_status_at_inport_0 = 128U; + /* End of Start for SubSystem: '/Enabled Subsystem' */ - /* Start for Enabled SubSystem: '/Enabled Subsystem' */ - /* Start for Constant: '/Constant' */ - cr929_SIL_B.OutportBuffer_InsertedFor_gps_hdg_status_at_inport_0 = 0U; - - /* End of Start for SubSystem: '/Enabled Subsystem' */ - - /* Start for Enabled SubSystem: '/Enabled Subsystem' */ - /* Start for Constant: '/Constant' */ - cr929_SIL_B.OutportBuffer_InsertedFor_gps_pos_status_at_inport_0 = 128U; - - /* End of Start for SubSystem: '/Enabled Subsystem' */ - - /* Start for If: '/If' */ + /* Start for If: '/If' */ cr929_SIL_DW.If_ActiveSubsystem_k = -1; - /* Start for Enabled SubSystem: '/ps_proc' */ - /* Start for S-Function (saeropalt): '/S-Function' */ + /* Start for Enabled SubSystem: '/ps_proc' */ + /* Start for S-Function (saeropalt): '/S-Function' */ { real_T *temp_table = (real_T *) &cr929_SIL_DW.SFunction_temp_table[0]; real_T *pres_table = (real_T *) &cr929_SIL_DW.SFunction_pres_table[0]; InitCalcAtmosCOESA( temp_table, pres_table ); } - /* End of Start for SubSystem: '/ps_proc' */ + /* End of Start for SubSystem: '/ps_proc' */ /* End of Start for SubSystem: '/dummy_INS' */ /* Start for Enabled SubSystem: '/inner_recorder' */ /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/ins1_euler' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/ins1_nav' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_a, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/gps1_vel' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_h, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/gps1_hdt' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_i, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/gps1_tim' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_j, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/gps1_pos' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_b, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/rpm' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_bz, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/rec10' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_n, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/rec11' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_an, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/rec12' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_f, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/rec13' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_al, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/rec14' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_jo, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/ins2_euler' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_d, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/ins2_nav' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_bs, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/gps2_vel' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_as, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/gps2_tim' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_g, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/gps2_pos' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_a1, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/rec18' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_m, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/rec19' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_p, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/rec20' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_i1, 1); /* Start for Chart: '/record_traffic_ctrl' incorporates: * SubSystem: '/rec21' */ - /* Start for S-Function (hal_uart_out): '/S-Function' */ + /* Start for S-Function (hal_uart_out): '/S-Function' */ - /* S-Function Block: /S-Function */ + /* S-Function Block: /S-Function */ hal_uart_out_Start_wrapper(&rtCP_SFunction_P1_d4, 1); /* End of Start for SubSystem: '/inner_recorder' */ @@ -41524,7 +41617,7 @@ void cr929_SIL_initialize(void) 100U * sizeof(MavMission)); /* Start for DataStoreMemory: '/dummyMissionCount' */ - dummyMissionCount = 12U; + dummyMissionCount = 24U; /* Start for DataStoreMemory: '/dummyRally' */ memcpy(&dummyRally[0], &cr929_SIL_ConstP.dummyRally_InitialValue[0], sizeof @@ -41575,8 +41668,8 @@ void cr929_SIL_initialize(void) /* InitializeConditions for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK = 1; - /* InitializeConditions for Integrator: '/Integrator' incorporates: - * Integrator: '/Integrator' + /* InitializeConditions for Integrator: '/Integrator' incorporates: + * Integrator: '/Integrator' */ if (rtmIsFirstInitCond(cr929_SIL_M)) { cr929_SIL_X.Integrator_CSTATE_f = 0.0; @@ -41585,19 +41678,19 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.Integrator_IWORK_j = 1; - /* End of InitializeConditions for Integrator: '/Integrator' */ + /* End of InitializeConditions for Integrator: '/Integrator' */ /* InitializeConditions for Backlash: '/Backlash1' */ cr929_SIL_DW.PrevY = 0.0; - /* InitializeConditions for Integrator: '/Integrator' */ + /* InitializeConditions for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_e = 1; /* InitializeConditions for Backlash: '/Backlash8' */ cr929_SIL_DW.PrevY_e = 0.0; - /* InitializeConditions for Integrator: '/Integrator' incorporates: - * Integrator: '/Integrator' + /* InitializeConditions for Integrator: '/Integrator' incorporates: + * Integrator: '/Integrator' */ if (rtmIsFirstInitCond(cr929_SIL_M)) { cr929_SIL_X.Integrator_CSTATE_b = 0.0; @@ -41606,19 +41699,19 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.Integrator_IWORK_jd = 1; - /* End of InitializeConditions for Integrator: '/Integrator' */ + /* End of InitializeConditions for Integrator: '/Integrator' */ /* InitializeConditions for Backlash: '/Backlash2' */ cr929_SIL_DW.PrevY_c = 0.0; - /* InitializeConditions for Integrator: '/Integrator' */ + /* InitializeConditions for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_f = 1; - /* InitializeConditions for Backlash: '/Backlash6' */ + /* InitializeConditions for Backlash: '/Backlash6' */ cr929_SIL_DW.PrevY_d = 0.0; - /* InitializeConditions for Integrator: '/Integrator' incorporates: - * Integrator: '/Integrator' + /* InitializeConditions for Integrator: '/Integrator' incorporates: + * Integrator: '/Integrator' */ if (rtmIsFirstInitCond(cr929_SIL_M)) { cr929_SIL_X.Integrator_CSTATE_g = 0.0; @@ -41627,19 +41720,19 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.Integrator_IWORK_p = 1; - /* End of InitializeConditions for Integrator: '/Integrator' */ + /* End of InitializeConditions for Integrator: '/Integrator' */ - /* InitializeConditions for Backlash: '/Backlash1' */ + /* InitializeConditions for Backlash: '/Backlash1' */ cr929_SIL_DW.PrevY_b = 0.0; - /* InitializeConditions for Integrator: '/Integrator' */ + /* InitializeConditions for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_a = 1; - /* InitializeConditions for Backlash: '/Backlash2' */ + /* InitializeConditions for Backlash: '/Backlash2' */ cr929_SIL_DW.PrevY_ex = 0.0; - /* InitializeConditions for Integrator: '/Integrator' incorporates: - * Integrator: '/Integrator' + /* InitializeConditions for Integrator: '/Integrator' incorporates: + * Integrator: '/Integrator' */ if (rtmIsFirstInitCond(cr929_SIL_M)) { cr929_SIL_X.Integrator_CSTATE_a = 0.0; @@ -41648,19 +41741,19 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.Integrator_IWORK_g = 1; - /* End of InitializeConditions for Integrator: '/Integrator' */ + /* End of InitializeConditions for Integrator: '/Integrator' */ - /* InitializeConditions for Backlash: '/Backlash3' */ + /* InitializeConditions for Backlash: '/Backlash3' */ cr929_SIL_DW.PrevY_o = 0.0; - /* InitializeConditions for Integrator: '/Integrator' */ + /* InitializeConditions for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_fo = 1; - /* InitializeConditions for Backlash: '/Backlash4' */ + /* InitializeConditions for Backlash: '/Backlash4' */ cr929_SIL_DW.PrevY_k = 0.0; - /* InitializeConditions for Integrator: '/Integrator' incorporates: - * Integrator: '/Integrator' + /* InitializeConditions for Integrator: '/Integrator' incorporates: + * Integrator: '/Integrator' */ if (rtmIsFirstInitCond(cr929_SIL_M)) { cr929_SIL_X.Integrator_CSTATE_ho = 0.0; @@ -41669,19 +41762,19 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.Integrator_IWORK_k = 1; - /* End of InitializeConditions for Integrator: '/Integrator' */ + /* End of InitializeConditions for Integrator: '/Integrator' */ - /* InitializeConditions for Backlash: '/Backlash5' */ + /* InitializeConditions for Backlash: '/Backlash5' */ cr929_SIL_DW.PrevY_j = 0.0; - /* InitializeConditions for Integrator: '/Integrator' */ + /* InitializeConditions for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_go = 1; - /* InitializeConditions for Backlash: '/Backlash7' */ + /* InitializeConditions for Backlash: '/Backlash7' */ cr929_SIL_DW.PrevY_p = 0.0; - /* InitializeConditions for Integrator: '/Integrator' incorporates: - * Integrator: '/Integrator' + /* InitializeConditions for Integrator: '/Integrator' incorporates: + * Integrator: '/Integrator' */ if (rtmIsFirstInitCond(cr929_SIL_M)) { cr929_SIL_X.Integrator_CSTATE_i = 0.0; @@ -41690,19 +41783,19 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.Integrator_IWORK_h = 1; - /* End of InitializeConditions for Integrator: '/Integrator' */ + /* End of InitializeConditions for Integrator: '/Integrator' */ - /* InitializeConditions for Backlash: '/Backlash8' */ + /* InitializeConditions for Backlash: '/Backlash8' */ cr929_SIL_DW.PrevY_f = 0.0; - /* InitializeConditions for Integrator: '/Integrator' */ + /* InitializeConditions for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_m = 1; - /* InitializeConditions for Backlash: '/Backlash9' */ + /* InitializeConditions for Backlash: '/Backlash9' */ cr929_SIL_DW.PrevY_g = 0.0; - /* InitializeConditions for Integrator: '/Integrator' incorporates: - * Integrator: '/Integrator' + /* InitializeConditions for Integrator: '/Integrator' incorporates: + * Integrator: '/Integrator' */ if (rtmIsFirstInitCond(cr929_SIL_M)) { cr929_SIL_X.Integrator_CSTATE_ha = 0.0; @@ -41711,19 +41804,19 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.Integrator_IWORK_ea = 1; - /* End of InitializeConditions for Integrator: '/Integrator' */ + /* End of InitializeConditions for Integrator: '/Integrator' */ - /* InitializeConditions for Backlash: '/Backlash10' */ + /* InitializeConditions for Backlash: '/Backlash10' */ cr929_SIL_DW.PrevY_ja = 0.0; - /* InitializeConditions for Integrator: '/Integrator' */ + /* InitializeConditions for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_g3 = 1; - /* InitializeConditions for Backlash: '/Backlash12' */ + /* InitializeConditions for Backlash: '/Backlash12' */ cr929_SIL_DW.PrevY_kb = 0.0; - /* InitializeConditions for Integrator: '/Integrator' incorporates: - * Integrator: '/Integrator' + /* InitializeConditions for Integrator: '/Integrator' incorporates: + * Integrator: '/Integrator' */ if (rtmIsFirstInitCond(cr929_SIL_M)) { cr929_SIL_X.Integrator_CSTATE_bb = 0.0; @@ -41732,19 +41825,19 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.Integrator_IWORK_i = 1; - /* End of InitializeConditions for Integrator: '/Integrator' */ + /* End of InitializeConditions for Integrator: '/Integrator' */ - /* InitializeConditions for Backlash: '/Backlash11' */ + /* InitializeConditions for Backlash: '/Backlash11' */ cr929_SIL_DW.PrevY_ox = 0.0; - /* InitializeConditions for Integrator: '/Integrator' */ + /* InitializeConditions for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_hp = 1; - /* InitializeConditions for Backlash: '/Backlash13' */ + /* InitializeConditions for Backlash: '/Backlash13' */ cr929_SIL_DW.PrevY_h = 0.0; - /* InitializeConditions for Integrator: '/Integrator' incorporates: - * Integrator: '/Integrator' + /* InitializeConditions for Integrator: '/Integrator' incorporates: + * Integrator: '/Integrator' */ if (rtmIsFirstInitCond(cr929_SIL_M)) { cr929_SIL_X.Integrator_CSTATE_hoh = 0.0; @@ -41753,19 +41846,19 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.Integrator_IWORK_o = 1; - /* End of InitializeConditions for Integrator: '/Integrator' */ + /* End of InitializeConditions for Integrator: '/Integrator' */ - /* InitializeConditions for Backlash: '/Backlash14' */ + /* InitializeConditions for Backlash: '/Backlash14' */ cr929_SIL_DW.PrevY_hp = 0.0; - /* InitializeConditions for Integrator: '/Integrator' */ + /* InitializeConditions for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_c = 1; - /* InitializeConditions for Backlash: '/Backlash15' */ + /* InitializeConditions for Backlash: '/Backlash15' */ cr929_SIL_DW.PrevY_bz = 0.0; - /* InitializeConditions for Integrator: '/Integrator' incorporates: - * Integrator: '/Integrator' + /* InitializeConditions for Integrator: '/Integrator' incorporates: + * Integrator: '/Integrator' */ if (rtmIsFirstInitCond(cr929_SIL_M)) { cr929_SIL_X.Integrator_CSTATE_fn = 0.0; @@ -41774,12 +41867,12 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.Integrator_IWORK_d = 1; - /* End of InitializeConditions for Integrator: '/Integrator' */ + /* End of InitializeConditions for Integrator: '/Integrator' */ - /* InitializeConditions for Backlash: '/Backlash16' */ + /* InitializeConditions for Backlash: '/Backlash16' */ cr929_SIL_DW.PrevY_ko = 0.0; - /* InitializeConditions for Integrator: '/Integrator' */ + /* InitializeConditions for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_dj = 1; /* InitializeConditions for Backlash: '/Backlash5' */ @@ -41789,7 +41882,7 @@ void cr929_SIL_initialize(void) cr929_SIL_X.Integrator_CSTATE_gb = 0.0; /* InitializeConditions for Integrator: '/p' incorporates: - * Integrator: '/Integrator' + * Integrator: '/Integrator' */ if (rtmIsFirstInitCond(cr929_SIL_M)) { cr929_SIL_X.p_CSTATE[0] = 0.0; @@ -41802,77 +41895,77 @@ void cr929_SIL_initialize(void) /* End of InitializeConditions for Integrator: '/p' */ - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_k = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_e = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_d = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_j = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_h = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_c = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_cx = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_n = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_o = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_g = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_ny = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_k3 = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_p = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_k2 = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_i = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_ce = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_c5 = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_h4 = 0.0; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_pg = 0.0; - /* InitializeConditions for Integrator: '/Integrator' */ + /* InitializeConditions for Integrator: '/Integrator' */ cr929_SIL_DW.Integrator_IWORK_j4 = 1; - /* InitializeConditions for Integrator: '/Integrator1' */ + /* InitializeConditions for Integrator: '/Integrator1' */ cr929_SIL_X.Integrator1_CSTATE_jv = 0.0; /* SystemInitialize for Merge: '/Merge' */ cr929_SIL_B.Merge_g[0] = 1.0; /* SystemInitialize for Enabled SubSystem: '/wind_model' */ - /* InitializeConditions for RandomNumber: '/White Noise' */ + /* InitializeConditions for RandomNumber: '/White Noise' */ cr929_SIL_DW.RandSeed[0] = 1529675776U; cr929_SIL_DW.NextOutput[0] = rt_nrand_Upu32_Yd_f_pw_snf (&cr929_SIL_DW.RandSeed[0]); @@ -41883,7 +41976,7 @@ void cr929_SIL_initialize(void) cr929_SIL_B.Merge_g[1] = 0.0; /* SystemInitialize for Enabled SubSystem: '/wind_model' */ - /* InitializeConditions for RandomNumber: '/White Noise' */ + /* InitializeConditions for RandomNumber: '/White Noise' */ cr929_SIL_DW.RandSeed[1] = 1529741312U; cr929_SIL_DW.NextOutput[1] = rt_nrand_Upu32_Yd_f_pw_snf (&cr929_SIL_DW.RandSeed[1]); @@ -41894,7 +41987,7 @@ void cr929_SIL_initialize(void) cr929_SIL_B.Merge_g[2] = 0.0; /* SystemInitialize for Enabled SubSystem: '/wind_model' */ - /* InitializeConditions for RandomNumber: '/White Noise' */ + /* InitializeConditions for RandomNumber: '/White Noise' */ cr929_SIL_DW.RandSeed[2] = 1529806848U; cr929_SIL_DW.NextOutput[2] = rt_nrand_Upu32_Yd_f_pw_snf (&cr929_SIL_DW.RandSeed[2]); @@ -41905,126 +41998,126 @@ void cr929_SIL_initialize(void) cr929_SIL_B.Merge_g[3] = 0.0; /* SystemInitialize for Enabled SubSystem: '/wind_model' */ - /* InitializeConditions for RandomNumber: '/White Noise' */ + /* InitializeConditions for RandomNumber: '/White Noise' */ cr929_SIL_DW.RandSeed[3] = 1529872384U; cr929_SIL_DW.NextOutput[3] = rt_nrand_Upu32_Yd_f_pw_snf (&cr929_SIL_DW.RandSeed[3]); - /* SystemInitialize for Enabled SubSystem: '/Hpgw' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* SystemInitialize for Enabled SubSystem: '/Hpgw' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_g[0] = 0.0; - /* End of SystemInitialize for SubSystem: '/Hpgw' */ + /* End of SystemInitialize for SubSystem: '/Hpgw' */ - /* SystemInitialize for Enabled SubSystem: '/Hwgw(z)' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* SystemInitialize for Enabled SubSystem: '/Hwgw(z)' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_i[0] = 0.0; - /* End of SystemInitialize for SubSystem: '/Hwgw(z)' */ + /* End of SystemInitialize for SubSystem: '/Hwgw(z)' */ - /* SystemInitialize for Enabled SubSystem: '/Hqgw' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* SystemInitialize for Enabled SubSystem: '/Hqgw' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_m[0] = 0.0; - /* InitializeConditions for UnitDelay: '/Unit Delay1' */ + /* InitializeConditions for UnitDelay: '/Unit Delay1' */ cr929_SIL_DW.UnitDelay1_DSTATE_l[0] = 0.0; - /* End of SystemInitialize for SubSystem: '/Hqgw' */ + /* End of SystemInitialize for SubSystem: '/Hqgw' */ - /* SystemInitialize for Enabled SubSystem: '/Hvgw(z)' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* SystemInitialize for Enabled SubSystem: '/Hvgw(z)' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_e[0] = 0.0; - /* End of SystemInitialize for SubSystem: '/Hvgw(z)' */ + /* End of SystemInitialize for SubSystem: '/Hvgw(z)' */ - /* SystemInitialize for Enabled SubSystem: '/Hrgw' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* SystemInitialize for Enabled SubSystem: '/Hrgw' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_k[0] = 0.0; - /* InitializeConditions for UnitDelay: '/Unit Delay1' */ + /* InitializeConditions for UnitDelay: '/Unit Delay1' */ cr929_SIL_DW.UnitDelay1_DSTATE_c[0] = 0.0; - /* End of SystemInitialize for SubSystem: '/Hrgw' */ + /* End of SystemInitialize for SubSystem: '/Hrgw' */ - /* SystemInitialize for Enabled SubSystem: '/Hugw(z)' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* SystemInitialize for Enabled SubSystem: '/Hugw(z)' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_h[0] = 0.0; - /* End of SystemInitialize for SubSystem: '/Hugw(z)' */ + /* End of SystemInitialize for SubSystem: '/Hugw(z)' */ - /* SystemInitialize for Enabled SubSystem: '/Hpgw' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* SystemInitialize for Enabled SubSystem: '/Hpgw' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_g[1] = 0.0; - /* End of SystemInitialize for SubSystem: '/Hpgw' */ + /* End of SystemInitialize for SubSystem: '/Hpgw' */ - /* SystemInitialize for Enabled SubSystem: '/Hwgw(z)' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* SystemInitialize for Enabled SubSystem: '/Hwgw(z)' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_i[1] = 0.0; - /* End of SystemInitialize for SubSystem: '/Hwgw(z)' */ + /* End of SystemInitialize for SubSystem: '/Hwgw(z)' */ - /* SystemInitialize for Enabled SubSystem: '/Hqgw' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* SystemInitialize for Enabled SubSystem: '/Hqgw' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_m[1] = 0.0; - /* InitializeConditions for UnitDelay: '/Unit Delay1' */ + /* InitializeConditions for UnitDelay: '/Unit Delay1' */ cr929_SIL_DW.UnitDelay1_DSTATE_l[1] = 0.0; - /* End of SystemInitialize for SubSystem: '/Hqgw' */ + /* End of SystemInitialize for SubSystem: '/Hqgw' */ - /* SystemInitialize for Enabled SubSystem: '/Hvgw(z)' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* SystemInitialize for Enabled SubSystem: '/Hvgw(z)' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_e[1] = 0.0; - /* End of SystemInitialize for SubSystem: '/Hvgw(z)' */ + /* End of SystemInitialize for SubSystem: '/Hvgw(z)' */ - /* SystemInitialize for Enabled SubSystem: '/Hrgw' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* SystemInitialize for Enabled SubSystem: '/Hrgw' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_k[1] = 0.0; - /* InitializeConditions for UnitDelay: '/Unit Delay1' */ + /* InitializeConditions for UnitDelay: '/Unit Delay1' */ cr929_SIL_DW.UnitDelay1_DSTATE_c[1] = 0.0; - /* End of SystemInitialize for SubSystem: '/Hrgw' */ + /* End of SystemInitialize for SubSystem: '/Hrgw' */ - /* SystemInitialize for Enabled SubSystem: '/Hugw(z)' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* SystemInitialize for Enabled SubSystem: '/Hugw(z)' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_h[1] = 0.0; - /* End of SystemInitialize for SubSystem: '/Hugw(z)' */ + /* End of SystemInitialize for SubSystem: '/Hugw(z)' */ - /* SystemInitialize for Enabled SubSystem: '/Distance into gust (x)' */ + /* SystemInitialize for Enabled SubSystem: '/Distance into gust (x)' */ cr929_SIL_Distanceintogustx_Init(&cr929_SIL_X.Distanceintogustx); - /* End of SystemInitialize for SubSystem: '/Distance into gust (x)' */ + /* End of SystemInitialize for SubSystem: '/Distance into gust (x)' */ - /* SystemInitialize for Enabled SubSystem: '/Distance into gust (y)' */ + /* SystemInitialize for Enabled SubSystem: '/Distance into gust (y)' */ cr929_SIL_Distanceintogusty_Init(&cr929_SIL_X.Distanceintogusty); - /* End of SystemInitialize for SubSystem: '/Distance into gust (y)' */ + /* End of SystemInitialize for SubSystem: '/Distance into gust (y)' */ - /* SystemInitialize for Enabled SubSystem: '/Distance into gust (z)' */ + /* SystemInitialize for Enabled SubSystem: '/Distance into gust (z)' */ cr929_SIL_Distanceintogusty_Init(&cr929_SIL_X.Distanceintogustz); - /* End of SystemInitialize for SubSystem: '/Distance into gust (z)' */ + /* End of SystemInitialize for SubSystem: '/Distance into gust (z)' */ - /* SystemInitialize for Enabled SubSystem: '/Distance into gust (x)' */ + /* SystemInitialize for Enabled SubSystem: '/Distance into gust (x)' */ cr929_SIL_Distanceintogustx_Init(&cr929_SIL_X.Distanceintogustx_d); - /* End of SystemInitialize for SubSystem: '/Distance into gust (x)' */ + /* End of SystemInitialize for SubSystem: '/Distance into gust (x)' */ - /* SystemInitialize for Enabled SubSystem: '/Distance into gust (y)' */ + /* SystemInitialize for Enabled SubSystem: '/Distance into gust (y)' */ cr929_SIL_Distanceintogusty_Init(&cr929_SIL_X.Distanceintogusty_k); - /* End of SystemInitialize for SubSystem: '/Distance into gust (y)' */ + /* End of SystemInitialize for SubSystem: '/Distance into gust (y)' */ - /* SystemInitialize for Enabled SubSystem: '/Distance into gust (z)' */ + /* SystemInitialize for Enabled SubSystem: '/Distance into gust (z)' */ cr929_SIL_Distanceintogusty_Init(&cr929_SIL_X.Distanceintogustz_a); - /* End of SystemInitialize for SubSystem: '/Distance into gust (z)' */ + /* End of SystemInitialize for SubSystem: '/Distance into gust (z)' */ - /* SystemInitialize for Outport: '/NonStdAtmosBus_Outport_1' */ + /* SystemInitialize for Outport: '/NonStdAtmosBus_Outport_1' */ cr929_SIL_B.Sum2_db[0] = 0.0; cr929_SIL_B.MatrixMultiply[0] = 0.0; cr929_SIL_B.Sum2_db[1] = 0.0; @@ -42117,7 +42210,7 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.is_active_c54_update_rc_b = 0U; cr929_SIL_DW.is_c54_update_rc_n = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for MATLAB Function: '/stdatmo' */ + /* SystemInitialize for MATLAB Function: '/stdatmo' */ cr929_SIL_DW.R = 287.05287; cr929_SIL_DW.gamma = 1.4; cr929_SIL_DW.g0 = 9.80665; @@ -42125,53 +42218,53 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.Bs = 1.458E-6; cr929_SIL_DW.S = 110.4; - /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_ge = 0U; + /* SystemInitialize for Chart: '/Chart' */ + cr929_SIL_DW.temporalCounter_i1_e = 0U; cr929_SIL_DW.is_active_c48_cr929_autopilot = 0U; cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_n0 = 0U; + /* SystemInitialize for Chart: '/Chart' */ + cr929_SIL_DW.temporalCounter_i1_lx = 0U; cr929_SIL_DW.is_active_c59_cr929_autopilot = 0U; cr929_SIL_DW.is_c59_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_bp = 0U; + /* SystemInitialize for Chart: '/Chart' */ + cr929_SIL_DW.temporalCounter_i1_aq = 0U; cr929_SIL_DW.is_active_c64_cr929_autopilot = 0U; cr929_SIL_DW.is_c64_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_ld = 0U; + /* SystemInitialize for Chart: '/Chart' */ + cr929_SIL_DW.temporalCounter_i1_cc = 0U; cr929_SIL_DW.is_active_c65_cr929_autopilot = 0U; cr929_SIL_DW.is_c65_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_bz = 0U; + /* SystemInitialize for Chart: '/Chart' */ + cr929_SIL_DW.temporalCounter_i1_on = 0U; cr929_SIL_DW.is_active_c74_cr929_autopilot = 0U; cr929_SIL_DW.is_c74_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_j = 0U; + /* SystemInitialize for Chart: '/Chart' */ + cr929_SIL_DW.temporalCounter_i1_c = 0U; cr929_SIL_DW.is_active_c75_cr929_autopilot = 0U; cr929_SIL_DW.is_c75_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_iz = 0U; + /* SystemInitialize for Chart: '/Chart' */ + cr929_SIL_DW.temporalCounter_i1_k = 0U; cr929_SIL_DW.is_active_c77_cr929_autopilot = 0U; cr929_SIL_DW.is_c77_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_gk = 0U; + /* SystemInitialize for Chart: '/Chart' */ + cr929_SIL_DW.temporalCounter_i1_hq = 0U; cr929_SIL_DW.is_active_c49_cr929_autopilot = 0U; cr929_SIL_DW.is_c49_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_mt = 0U; + /* SystemInitialize for Chart: '/Chart' */ + cr929_SIL_DW.temporalCounter_i1_cr = 0U; cr929_SIL_DW.is_active_c50_cr929_autopilot = 0U; cr929_SIL_DW.is_c50_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_o = 0U; + /* SystemInitialize for Chart: '/Chart' */ + cr929_SIL_DW.temporalCounter_i1_hz = 0U; cr929_SIL_DW.is_active_c51_cr929_autopilot = 0U; cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42186,7 +42279,7 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.is_c54_update_rc = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_ny = 0U; + cr929_SIL_DW.temporalCounter_i1_kw = 0U; cr929_SIL_DW.is_active_c3_cr929_autopilot = 0U; cr929_SIL_DW.is_c3_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42194,11 +42287,6 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.is_active_c12_cr929_autopilot = 0U; cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/Chart_proc_mission_upload' */ - cr929_SIL_DW.temporalCounter_i1_f3 = 0U; - cr929_SIL_DW.is_active_c29_mavlink_utils = 0U; - cr929_SIL_DW.is_c29_mavlink_utils = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/proc_set_ cur' */ cr929_SIL_DW.is_active_c14_C2_proc_comm = 0U; cr929_SIL_DW.is_c14_C2_proc_comm = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42219,7 +42307,7 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.is_c69_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* SystemInitialize for Chart: '/manual_arm_disarm' */ - cr929_SIL_DW.temporalCounter_i1_k = 0U; + cr929_SIL_DW.temporalCounter_i1_j = 0U; cr929_SIL_DW.is_active_c43_cr929_autopilot = 0U; cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42252,7 +42340,7 @@ void cr929_SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/takeoff' */ /* SystemInitialize for Chart: '/takeoff_task' */ - cr929_SIL_DW.temporalCounter_i1_c = 0U; + cr929_SIL_DW.temporalCounter_i1_h3 = 0U; cr929_SIL_DW.is_active_c17_cr929_autopilot = 0U; cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42260,7 +42348,7 @@ void cr929_SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/landing' */ /* SystemInitialize for Chart: '/landing_task' */ - cr929_SIL_DW.temporalCounter_i1_e = 0U; + cr929_SIL_DW.temporalCounter_i1_fa = 0U; cr929_SIL_DW.is_active_c14_cr929_autopilot = 0U; cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42274,7 +42362,7 @@ void cr929_SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/taxi' */ /* SystemInitialize for Chart: '/waypoint_task' */ cr929_SIL_DW.is_Taxi = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - cr929_SIL_DW.temporalCounter_i1_bi = 0U; + cr929_SIL_DW.temporalCounter_i1_dg = 0U; cr929_SIL_DW.is_active_c20_cr929_autopilot = 0U; cr929_SIL_DW.is_c20_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42313,7 +42401,7 @@ void cr929_SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/steady_beta' */ /* SystemInitialize for Chart: '/steady_beta' */ - cr929_SIL_DW.temporalCounter_i1_ig = 0U; + cr929_SIL_DW.temporalCounter_i1_i = 0U; cr929_SIL_DW.is_active_c2_maneuver = 0U; cr929_SIL_DW.is_c2_maneuver = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42377,7 +42465,7 @@ void cr929_SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/rudder_stim' */ /* SystemInitialize for Chart: '/rudder_stim' */ - cr929_SIL_DW.temporalCounter_i1_l = 0U; + cr929_SIL_DW.temporalCounter_i1_ls = 0U; cr929_SIL_DW.is_active_c10_maneuver = 0U; cr929_SIL_DW.is_c10_maneuver = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42393,7 +42481,7 @@ void cr929_SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/waypoint' */ /* SystemInitialize for Chart: '/waypoint_task' */ - cr929_SIL_DW.temporalCounter_i1_gl = 0U; + cr929_SIL_DW.temporalCounter_i1_dw = 0U; cr929_SIL_DW.is_active_c19_cr929_autopilot = 0U; cr929_SIL_DW.is_c19_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42404,17 +42492,17 @@ void cr929_SIL_initialize(void) /* End of SystemInitialize for SubSystem: '/auto' */ /* End of SystemInitialize for SubSystem: '/operational' */ - /* SystemInitialize for Atomic SubSystem: '/update_nav_info' */ - /* SystemInitialize for IfAction SubSystem: '/case_corner' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* SystemInitialize for Atomic SubSystem: '/update_nav_info' */ + /* SystemInitialize for IfAction SubSystem: '/case_corner' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_lp = 0U; - /* SystemInitialize for MATLAB Function: '/nav_corner' */ + /* SystemInitialize for MATLAB Function: '/nav_corner' */ cr929_SIL_DW.stage_not_empty = false; - /* End of SystemInitialize for SubSystem: '/case_corner' */ + /* End of SystemInitialize for SubSystem: '/case_corner' */ - /* SystemInitialize for Merge: '/Merge2' */ + /* SystemInitialize for Merge: '/Merge2' */ cr929_SIL_B.rdot = 0.0F; cr929_SIL_B.dist = 0.0F; cr929_SIL_B.bearing_base = 0.0F; @@ -42427,245 +42515,268 @@ void cr929_SIL_initialize(void) cr929_SIL_B.horiz_offset = 0.0F; cr929_SIL_B.vert_offset = 0.0F; - /* End of SystemInitialize for SubSystem: '/update_nav_info' */ + /* End of SystemInitialize for SubSystem: '/update_nav_info' */ - /* SystemInitialize for IfAction SubSystem: '/gamma2tht' */ - /* InitializeConditions for Delay: '/Delay' */ + /* SystemInitialize for IfAction SubSystem: '/gamma2tht' */ + /* InitializeConditions for Delay: '/Delay' */ cr929_SIL_DW.icLoad_dd = 1U; - /* SystemInitialize for IfAction SubSystem: '/hdot' */ - /* SystemInitialize for IfAction SubSystem: '/vnav' */ - /* SystemInitialize for Atomic SubSystem: '/dH2hdot' */ - /* InitializeConditions for Delay: '/last_hdot_c' */ + /* SystemInitialize for IfAction SubSystem: '/hdot' */ + /* SystemInitialize for IfAction SubSystem: '/vnav' */ + /* SystemInitialize for Atomic SubSystem: '/dH2hdot' */ + /* InitializeConditions for Delay: '/last_hdot_c' */ cr929_SIL_DW.icLoad_n = 1U; - /* End of SystemInitialize for SubSystem: '/dH2hdot' */ - /* End of SystemInitialize for SubSystem: '/vnav' */ - /* End of SystemInitialize for SubSystem: '/hdot' */ - /* End of SystemInitialize for SubSystem: '/gamma2tht' */ + /* End of SystemInitialize for SubSystem: '/dH2hdot' */ + /* End of SystemInitialize for SubSystem: '/vnav' */ + /* End of SystemInitialize for SubSystem: '/hdot' */ + /* End of SystemInitialize for SubSystem: '/gamma2tht' */ - /* SystemInitialize for IfAction SubSystem: '/as2tht' */ - /* InitializeConditions for Delay: '/Delay' */ + /* SystemInitialize for IfAction SubSystem: '/as2tht' */ + /* InitializeConditions for Delay: '/Delay' */ cr929_SIL_DW.icLoad_a3 = 1U; - /* End of SystemInitialize for SubSystem: '/as2tht' */ + /* End of SystemInitialize for SubSystem: '/as2tht' */ - /* SystemInitialize for IfAction SubSystem: '/LNAV2PHI' */ - /* SystemInitialize for Chart: '/psi_err' */ + /* SystemInitialize for IfAction SubSystem: '/LNAV2PHI' */ + /* SystemInitialize for Chart: '/psi_err' */ cr929_SIL_psi_err_Init(&rtb_out_ic); - /* SystemInitialize for Chart: '/psi_err1' */ + /* SystemInitialize for Chart: '/psi_err1' */ cr929_SIL_psi_err_Init(&rtb_out_pj); - /* SystemInitialize for Chart: '/psi_err2' */ + /* SystemInitialize for Chart: '/psi_err2' */ cr929_SIL_psi_err_Init(&rtb_out_kz); - /* End of SystemInitialize for SubSystem: '/LNAV2PHI' */ + /* End of SystemInitialize for SubSystem: '/LNAV2PHI' */ - /* SystemInitialize for IfAction SubSystem: '/LNAV2PSIDOT' */ - /* SystemInitialize for Chart: '/psi_err2' */ + /* SystemInitialize for IfAction SubSystem: '/LNAV2PSIDOT' */ + /* SystemInitialize for Chart: '/psi_err2' */ cr929_SIL_psi_err_Init(&rtb_out_kk); - /* SystemInitialize for Chart: '/psi_err1' */ + /* SystemInitialize for Chart: '/psi_err1' */ cr929_SIL_psi_err_Init(&rtb_out_gh); - /* SystemInitialize for Chart: '/psi_err3' */ + /* SystemInitialize for Chart: '/psi_err3' */ cr929_SIL_psi_err_Init(&rtb_out_cy); - /* End of SystemInitialize for SubSystem: '/LNAV2PSIDOT' */ + /* End of SystemInitialize for SubSystem: '/LNAV2PSIDOT' */ - /* SystemInitialize for IfAction SubSystem: '/ROLL_CTRL' */ - /* InitializeConditions for Delay: '/Delay' */ + /* SystemInitialize for IfAction SubSystem: '/ROLL_CTRL' */ + /* InitializeConditions for Delay: '/Delay' */ cr929_SIL_DW.icLoad_d2 = 1U; - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_f = 0.0F; - /* SystemInitialize for Atomic SubSystem: '/theta1' */ + /* SystemInitialize for Atomic SubSystem: '/theta1' */ cr929_SIL_theta1_Init(&cr929_SIL_DW.theta1_d); - /* End of SystemInitialize for SubSystem: '/theta1' */ + /* End of SystemInitialize for SubSystem: '/theta1' */ - /* SystemInitialize for Atomic SubSystem: '/theta2' */ + /* SystemInitialize for Atomic SubSystem: '/theta2' */ cr929_SIL_theta2_Init(&cr929_SIL_DW.theta2_g); - /* End of SystemInitialize for SubSystem: '/theta2' */ + /* End of SystemInitialize for SubSystem: '/theta2' */ - /* SystemInitialize for Atomic SubSystem: '/theta3' */ + /* SystemInitialize for Atomic SubSystem: '/theta3' */ cr929_SIL_theta2_Init(&cr929_SIL_DW.theta3_b); - /* End of SystemInitialize for SubSystem: '/theta3' */ - /* End of SystemInitialize for SubSystem: '/ROLL_CTRL' */ + /* End of SystemInitialize for SubSystem: '/theta3' */ + /* End of SystemInitialize for SubSystem: '/ROLL_CTRL' */ /* SystemInitialize for Atomic SubSystem: '/pitch' */ - /* SystemInitialize for IfAction SubSystem: '/THT_Q_CTRL' */ - /* InitializeConditions for Delay: '/Delay' */ + /* SystemInitialize for IfAction SubSystem: '/THT_Q_CTRL' */ + /* InitializeConditions for Delay: '/Delay' */ cr929_SIL_DW.icLoad_o = 1U; - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ cr929_SIL_DW.UnitDelay_DSTATE_o = 0.0F; - /* SystemInitialize for Atomic SubSystem: '/theta1' */ + /* SystemInitialize for Atomic SubSystem: '/theta1' */ cr929_SIL_theta1_Init(&cr929_SIL_DW.theta1); - /* End of SystemInitialize for SubSystem: '/theta1' */ + /* End of SystemInitialize for SubSystem: '/theta1' */ - /* SystemInitialize for Atomic SubSystem: '/theta2' */ + /* SystemInitialize for Atomic SubSystem: '/theta2' */ cr929_SIL_theta2_Init(&cr929_SIL_DW.theta2); - /* End of SystemInitialize for SubSystem: '/theta2' */ + /* End of SystemInitialize for SubSystem: '/theta2' */ - /* SystemInitialize for Atomic SubSystem: '/theta3' */ + /* SystemInitialize for Atomic SubSystem: '/theta3' */ cr929_SIL_theta2_Init(&cr929_SIL_DW.theta3); - /* End of SystemInitialize for SubSystem: '/theta3' */ - /* End of SystemInitialize for SubSystem: '/THT_Q_CTRL' */ + /* End of SystemInitialize for SubSystem: '/theta3' */ + /* End of SystemInitialize for SubSystem: '/THT_Q_CTRL' */ /* End of SystemInitialize for SubSystem: '/pitch' */ - /* SystemInitialize for IfAction SubSystem: '/DAMPING' */ - /* InitializeConditions for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* SystemInitialize for IfAction SubSystem: '/DAMPING' */ + /* InitializeConditions for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states_p = 0.0F; - /* InitializeConditions for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* InitializeConditions for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states_bl[0] = 0.0F; cr929_SIL_DW.DiscreteTransferFcn_states_bl[1] = 0.0F; cr929_SIL_DW.DiscreteTransferFcn_states_bl[2] = 0.0F; - /* End of SystemInitialize for SubSystem: '/DAMPING' */ + /* End of SystemInitialize for SubSystem: '/DAMPING' */ - /* SystemInitialize for IfAction SubSystem: '/PSIDOT_CTRL' */ - /* InitializeConditions for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* SystemInitialize for IfAction SubSystem: '/PSIDOT_CTRL' */ + /* InitializeConditions for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states_b = 0.0F; - /* InitializeConditions for Delay: '/Delay' */ + /* InitializeConditions for Delay: '/Delay' */ cr929_SIL_DW.icLoad_bf = 1U; - /* SystemInitialize for IfAction SubSystem: '/ay_ctrl' */ - /* InitializeConditions for Delay: '/Delay' */ + /* SystemInitialize for IfAction SubSystem: '/ay_ctrl' */ + /* InitializeConditions for Delay: '/Delay' */ cr929_SIL_DW.icLoad_c = 1U; - /* End of SystemInitialize for SubSystem: '/ay_ctrl' */ + /* End of SystemInitialize for SubSystem: '/ay_ctrl' */ - /* SystemInitialize for Atomic SubSystem: '/theta1' */ + /* SystemInitialize for Atomic SubSystem: '/theta1' */ cr929_SIL_theta1_Init(&cr929_SIL_DW.theta1_k); - /* End of SystemInitialize for SubSystem: '/theta1' */ + /* End of SystemInitialize for SubSystem: '/theta1' */ - /* SystemInitialize for Atomic SubSystem: '/theta2' */ + /* SystemInitialize for Atomic SubSystem: '/theta2' */ cr929_SIL_theta2_Init(&cr929_SIL_DW.theta2_h); - /* End of SystemInitialize for SubSystem: '/theta2' */ + /* End of SystemInitialize for SubSystem: '/theta2' */ - /* SystemInitialize for Atomic SubSystem: '/theta3' */ + /* SystemInitialize for Atomic SubSystem: '/theta3' */ cr929_SIL_theta2_Init(&cr929_SIL_DW.theta3_j); - /* End of SystemInitialize for SubSystem: '/theta3' */ - /* End of SystemInitialize for SubSystem: '/PSIDOT_CTRL' */ + /* End of SystemInitialize for SubSystem: '/theta3' */ + /* End of SystemInitialize for SubSystem: '/PSIDOT_CTRL' */ - /* SystemInitialize for IfAction SubSystem: '/AS' */ - /* InitializeConditions for Delay: '/IntVal' */ + /* SystemInitialize for IfAction SubSystem: '/AS' */ + /* InitializeConditions for Delay: '/IntVal' */ cr929_SIL_DW.icLoad_a = 1U; - /* End of SystemInitialize for SubSystem: '/AS' */ + /* End of SystemInitialize for SubSystem: '/AS' */ - /* SystemInitialize for IfAction SubSystem: '/GS' */ - /* InitializeConditions for Delay: '/IntVal' */ + /* SystemInitialize for IfAction SubSystem: '/GS' */ + /* InitializeConditions for Delay: '/IntVal' */ cr929_SIL_DW.icLoad_cw = 1U; - /* End of SystemInitialize for SubSystem: '/GS' */ + /* End of SystemInitialize for SubSystem: '/GS' */ - /* SystemInitialize for IfAction SubSystem: '/use_mix' */ - /* InitializeConditions for Delay: '/Delay' */ + /* SystemInitialize for IfAction SubSystem: '/use_mix' */ + /* InitializeConditions for Delay: '/Delay' */ cr929_SIL_DW.icLoad_d = 1U; - /* InitializeConditions for Delay: '/Delay' */ - cr929_SIL_DW.icLoad_b = 1U; - /* InitializeConditions for Delay: '/Delay' */ - cr929_SIL_DW.icLoad_e = 1U; - - /* InitializeConditions for Delay: '/Delay' */ - cr929_SIL_DW.icLoad_j = 1U; + cr929_SIL_DW.icLoad_bg = 1U; /* InitializeConditions for Delay: '/Delay' */ + cr929_SIL_DW.icLoad_e = 1U; + + /* InitializeConditions for Delay: '/Delay' */ + cr929_SIL_DW.icLoad_j = 1U; + + /* InitializeConditions for Delay: '/Delay' */ cr929_SIL_DW.icLoad_ed = 1U; - /* SystemInitialize for Chart: '/pos_sel' */ - cr929_SIL_DW.temporalCounter_i1_f = 0U; + /* SystemInitialize for Chart: '/pos_sel' */ + cr929_SIL_DW.temporalCounter_i1_l = 0U; cr929_SIL_DW.is_active_c25_cr929_autopilot = 0U; cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* End of SystemInitialize for SubSystem: '/use_mix' */ + /* End of SystemInitialize for SubSystem: '/use_mix' */ - /* SystemInitialize for Chart: '/proc_queue' incorporates: - * SubSystem: '/dec_and_proc_each' + /* SystemInitialize for Chart: '/Chart_proc_mission_upload' */ + cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.is_active_c29_mavlink_utils = 0U; + cr929_SIL_DW.is_c29_mavlink_utils = cr929_SIL_IN_NO_ACTIVE_CHILD_n; + + /* SystemInitialize for Chart: '/proc_queue' incorporates: + * SubSystem: '/dec_and_proc_each' */ - /* SystemInitialize for IfAction SubSystem: '/rc_channels_override_dec' */ - /* SystemInitialize for Chart: '/parse_and_proc' incorporates: - * SubSystem: '/proc_rc_chs_ov' + /* SystemInitialize for IfAction SubSystem: '/rc_channels_override_dec' */ + /* SystemInitialize for Chart: '/parse_and_proc' incorporates: + * SubSystem: '/proc_rc_chs_ov' */ for (i = 0; i < 18; i++) { - /* SystemInitialize for SignalConversion: '/BusConversion_InsertedFor_rc_at_inport_0' */ + /* SystemInitialize for SignalConversion: '/BusConversion_InsertedFor_rc_at_inport_0' */ cr929_SIL_B.channels[i] = cr929_SIL_B.channels_e[i]; } - /* End of SystemInitialize for SubSystem: '/rc_channels_override_dec' */ + /* End of SystemInitialize for SubSystem: '/rc_channels_override_dec' */ - /* SystemInitialize for Chart: '/req_cur' */ + /* SystemInitialize for Chart: '/req_cur' */ cr929_SIL_DW.temporalCounter_i1_ip = 0U; cr929_SIL_DW.is_active_c30_mavlink_utils = 0U; - /* SystemInitialize for Chart: '/Chart_send_ack' */ + /* SystemInitialize for IfAction SubSystem: '/COMAC' */ + /* InitializeConditions for Delay: '/Delay' */ + cr929_SIL_DW.icLoad_dh = 1U; + + /* End of SystemInitialize for SubSystem: '/COMAC' */ + + /* SystemInitialize for Chart: '/Chart_send_ack' */ cr929_SIL_DW.is_active_c26_cr929_autopilot = 0U; - /* SystemInitialize for Chart: '/proc_param_value' */ + /* SystemInitialize for Chart: '/proc_param_value' */ cr929_SIL_DW.temporalCounter_i1_b0 = 0U; cr929_SIL_DW.is_active_c31_mavlink_utils = 0U; cr929_SIL_DW.is_c31_mavlink_utils = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/merge_ack' */ + /* SystemInitialize for Chart: '/merge_ack' */ cr929_SIL_DW.is_active_c22_mavlink_utils = 0U; /* SystemInitialize for Atomic SubSystem: '/proc_serial_echo' */ - /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_hq = 0U; + /* SystemInitialize for Chart: '/Chart' */ + cr929_SIL_DW.temporalCounter_i1_b5 = 0U; cr929_SIL_DW.is_active_c80_cr929_autopilot = 0U; cr929_SIL_DW.is_c80_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* End of SystemInitialize for SubSystem: '/proc_serial_echo' */ - cr929_SIL_DW.temporalCounter_i1_i = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_DW.is_active_c45_cr929_autopilot = 0U; cr929_SIL_DW.is_c45_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* InitializeConditions for Outport: '/seq' */ cr929_SIL_Y.seq = 0U; - /* SystemInitialize for Chart: '/traffic_ctrl' incorporates: - * SubSystem: '/loop_download' + /* SystemInitialize for Chart: '/traffic_ctrl' incorporates: + * SubSystem: '/loop_download' */ - /* SystemInitialize for IfAction SubSystem: '/gps_raw_int_enc' */ - /* SystemInitialize for Chart: '/Chart' incorporates: - * SubSystem: '/get_cog' + /* SystemInitialize for IfAction SubSystem: '/gps_raw_int_enc' */ + /* SystemInitialize for Chart: '/Chart' incorporates: + * SubSystem: '/get_cog' */ - /* SystemInitialize for Merge: '/Merge' */ + /* SystemInitialize for Merge: '/Merge' */ cr929_SIL_B.Merge_a = 0.0F; - /* End of SystemInitialize for SubSystem: '/gps_raw_int_enc' */ + /* End of SystemInitialize for SubSystem: '/gps_raw_int_enc' */ - /* SystemInitialize for IfAction SubSystem: '/svo_out_raw_enc' */ - /* SystemInitialize for Chart: '/Chart' */ + /* SystemInitialize for IfAction SubSystem: '/svo_out_raw_enc' */ + /* SystemInitialize for Chart: '/Chart' */ cr929_SIL_DW.port_num = 0U; - /* End of SystemInitialize for SubSystem: '/svo_out_raw_enc' */ + /* End of SystemInitialize for SubSystem: '/svo_out_raw_enc' */ - /* SystemInitialize for Merge: '/Merged_msg' */ + /* SystemInitialize for Merge: '/Merged_msg' */ cr929_SIL_B.Merged_msg = cr929_SIL_rtZmavlink_message_t; /* End of SystemInitialize for SubSystem: '/cr929_autopilot' */ /* SystemInitialize for Enabled SubSystem: '/throttle' */ - cr929_SIL_throttle_Init(cr929_SIL_M, &cr929_SIL_DW.throttle, - &cr929_SIL_X.throttle); + /* InitializeConditions for Delay: '/Delay' */ + cr929_SIL_DW.icLoad_b = 1U; + + /* InitializeConditions for Integrator: '/Integrator3' */ + if (rtmIsFirstInitCond(cr929_SIL_M)) { + cr929_SIL_X.Integrator3_CSTATE_o = 0.0; + } + + cr929_SIL_DW.Integrator3_IWORK_n = 1; + + /* End of InitializeConditions for Integrator: '/Integrator3' */ + + /* InitializeConditions for UnitDelay: '/Unit Delay' */ + cr929_SIL_DW.UnitDelay_DSTATE_c = 0.0; /* End of SystemInitialize for SubSystem: '/throttle' */ @@ -42675,8 +42786,20 @@ void cr929_SIL_initialize(void) /* End of SystemInitialize for SubSystem: '/Enabled Subsystem3' */ /* SystemInitialize for Enabled SubSystem: '/throttle1' */ - cr929_SIL_throttle_Init(cr929_SIL_M, &cr929_SIL_DW.throttle1, - &cr929_SIL_X.throttle1); + /* InitializeConditions for Delay: '/Delay' */ + cr929_SIL_DW.icLoad_h = 1U; + + /* InitializeConditions for Integrator: '/Integrator3' */ + if (rtmIsFirstInitCond(cr929_SIL_M)) { + cr929_SIL_X.Integrator3_CSTATE = 0.0; + } + + cr929_SIL_DW.Integrator3_IWORK = 1; + + /* End of InitializeConditions for Integrator: '/Integrator3' */ + + /* InitializeConditions for UnitDelay: '/Unit Delay' */ + cr929_SIL_DW.UnitDelay_DSTATE_a = 0.0; /* End of SystemInitialize for SubSystem: '/throttle1' */ @@ -42692,58 +42815,58 @@ void cr929_SIL_initialize(void) cr929_SIL_B.throttle_l = 0.0; /* SystemInitialize for Atomic SubSystem: '/dummy_INS' */ - /* InitializeConditions for RateLimiter: '/Rate Limiter' */ + /* InitializeConditions for RateLimiter: '/Rate Limiter' */ cr929_SIL_DW.PrevY_pj[0] = 0.0F; cr929_SIL_DW.PrevY_pj[1] = 0.0F; cr929_SIL_DW.PrevY_pj[2] = 0.0F; for (i = 0; i < 6; i++) { - /* InitializeConditions for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* InitializeConditions for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states[i] = 0.0; - /* InitializeConditions for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ + /* InitializeConditions for DiscreteTransferFcn: '/Discrete Transfer Fcn' */ cr929_SIL_DW.DiscreteTransferFcn_states_a[i] = 0.0; } - /* InitializeConditions for RateLimiter: '/Rate Limiter1' */ + /* InitializeConditions for RateLimiter: '/Rate Limiter1' */ cr929_SIL_DW.PrevY_fn[0] = 0.0F; cr929_SIL_DW.PrevY_fn[1] = 0.0F; cr929_SIL_DW.PrevY_fn[2] = 0.0F; - /* SystemInitialize for Chart: '/tick' */ + /* SystemInitialize for Chart: '/tick' */ cr929_SIL_tick_Init(&cr929_SIL_DW.sf_tick_k); - /* SystemInitialize for Chart: '/tick' */ + /* SystemInitialize for Chart: '/tick' */ cr929_SIL_DW.temporalCounter_i1_m = 0U; cr929_SIL_DW.is_active_c40_cr929_dummy_io = 0U; cr929_SIL_DW.is_c40_cr929_dummy_io = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/tick' */ + /* SystemInitialize for Chart: '/tick' */ cr929_SIL_tick_l_Init(&cr929_SIL_DW.sf_tick_c); - /* SystemInitialize for Chart: '/check_gps_valid' */ + /* SystemInitialize for Chart: '/check_gps_valid' */ cr929_SIL_DW.temporalCounter_i1_h = 0U; cr929_SIL_DW.is_active_c9_ins_lib = 0U; cr929_SIL_DW.is_c9_ins_lib = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/tick' */ + /* SystemInitialize for Chart: '/tick' */ cr929_SIL_tick_h_Init(&cr929_SIL_DW.sf_tick_cu); - /* SystemInitialize for Chart: '/status_mgr' */ + /* SystemInitialize for Chart: '/status_mgr' */ cr929_SIL_DW.is_active_c14_ins_lib = 0U; cr929_SIL_DW.is_c14_ins_lib = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/IMU_bias_fix' */ + /* SystemInitialize for Chart: '/IMU_bias_fix' */ cr929_SIL_DW.is_active_c11_ins_lib = 0U; cr929_SIL_DW.is_c11_ins_lib = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/tick' */ + /* SystemInitialize for Chart: '/tick' */ cr929_SIL_tick_h_Init(&cr929_SIL_DW.sf_tick_e); - /* SystemInitialize for Chart: '/Chart' */ + /* SystemInitialize for Chart: '/Chart' */ cr929_SIL_DW.is_active_c10_ins_lib = 0U; cr929_SIL_DW.is_c10_ins_lib = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Chart: '/EKF14s' */ + /* SystemInitialize for Chart: '/EKF14s' */ cr929_SIL_DW.Tbn_prev_not_empty = false; cr929_SIL_DW.gps_use_started = false; cr929_SIL_DW.vel_reset_cnt = 0U; @@ -42767,45 +42890,45 @@ void cr929_SIL_initialize(void) cr929_SIL_B.euler_variances[1] = 0.0F; cr929_SIL_B.euler_variances[2] = 0.0F; - /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem1' */ - /* InitializeConditions for UnitDelay: '/Unit Delay' */ - cr929_SIL_DW.UnitDelay_DSTATE_a[0] = 0.0; - cr929_SIL_DW.UnitDelay_DSTATE_a[1] = 0.0; - cr929_SIL_DW.UnitDelay_DSTATE_a[2] = 0.0; + /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem1' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ + cr929_SIL_DW.UnitDelay_DSTATE_ai[0] = 0.0; + cr929_SIL_DW.UnitDelay_DSTATE_ai[1] = 0.0; + cr929_SIL_DW.UnitDelay_DSTATE_ai[2] = 0.0; - /* End of SystemInitialize for SubSystem: '/If Action Subsystem1' */ + /* End of SystemInitialize for SubSystem: '/If Action Subsystem1' */ - /* SystemInitialize for Chart: '/tick' */ + /* SystemInitialize for Chart: '/tick' */ cr929_SIL_DW.temporalCounter_i1 = 0U; cr929_SIL_DW.is_active_c48_cr929_dummy_io = 0U; cr929_SIL_DW.is_c48_cr929_dummy_io = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* SystemInitialize for Enabled SubSystem: '/qbar_proc' */ - /* SystemInitialize for Chart: '/zero_set' */ + /* SystemInitialize for Enabled SubSystem: '/qbar_proc' */ + /* SystemInitialize for Chart: '/zero_set' */ cr929_SIL_DW.is_active_c13_ins_lib = 0U; cr929_SIL_DW.is_c13_ins_lib = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - /* End of SystemInitialize for SubSystem: '/qbar_proc' */ + /* End of SystemInitialize for SubSystem: '/qbar_proc' */ - /* SystemInitialize for Chart: '/tick' */ + /* SystemInitialize for Chart: '/tick' */ cr929_SIL_tick_Init(&cr929_SIL_DW.sf_tick); - /* SystemInitialize for Enabled SubSystem: '/Enabled Subsystem' */ - /* SystemInitialize for Enabled SubSystem: '/Enabled Subsystem' */ - /* InitializeConditions for RandomNumber: '/White Noise' */ + /* SystemInitialize for Enabled SubSystem: '/Enabled Subsystem' */ + /* SystemInitialize for Enabled SubSystem: '/Enabled Subsystem' */ + /* InitializeConditions for RandomNumber: '/White Noise' */ cr929_SIL_DW.RandSeed_h = 1529675776U; cr929_SIL_DW.NextOutput_o = rt_nrand_Upu32_Yd_f_pw_snf (&cr929_SIL_DW.RandSeed_h); - /* InitializeConditions for RandomNumber: '/White Noise' */ + /* InitializeConditions for RandomNumber: '/White Noise' */ cr929_SIL_DW.RandSeed_n = 1529675776U; cr929_SIL_DW.NextOutput_f = rt_nrand_Upu32_Yd_f_pw_snf (&cr929_SIL_DW.RandSeed_n); - /* End of SystemInitialize for SubSystem: '/Enabled Subsystem' */ - /* End of SystemInitialize for SubSystem: '/Enabled Subsystem' */ + /* End of SystemInitialize for SubSystem: '/Enabled Subsystem' */ + /* End of SystemInitialize for SubSystem: '/Enabled Subsystem' */ - /* SystemInitialize for Chart: '/tick' */ + /* SystemInitialize for Chart: '/tick' */ cr929_SIL_tick_l_Init(&cr929_SIL_DW.sf_tick_o); /* End of SystemInitialize for SubSystem: '/dummy_INS' */ @@ -42838,7 +42961,7 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.cnt19 = 1U; cr929_SIL_DW.cnt20 = 1U; cr929_SIL_DW.cnt21 = 1U; - cr929_SIL_B.seq_p = 0U; + cr929_SIL_B.seq_a = 0U; /* SystemInitialize for Merge: '/Merge' */ cr929_SIL_B.len = 0U; diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.h b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.h index 767b3e7..d8b15e1 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.h +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1344 + * Model version : 1.1390 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Sat Aug 21 08:51:18 2021 + * C/C++ source code generated on : Mon Aug 23 14:30:11 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -345,191 +345,158 @@ typedef struct { uint8_T is_c1_maneuver; /* '/doublet' */ } DW_doublet_cr929_SIL_T; -/* Block states (default storage) for system '/theta1' */ -typedef struct { - real32_T delay_DSTATE; /* '/delay' */ - uint8_T icLoad; /* '/delay' */ -} DW_theta1_cr929_SIL_T; - -/* Block states (default storage) for system '/theta2' */ +/* Block states (default storage) for system '/theta1' */ typedef struct { real32_T delay_DSTATE; /* '/delay' */ uint8_T icLoad; /* '/delay' */ -} DW_theta2_cr929_SIL_T; +} DW_theta1_cr929_SIL_T; -/* Block states (default storage) for system '/tick' */ +/* Block states (default storage) for system '/theta2' */ typedef struct { - uint32_T temporalCounter_i1; /* '/tick' */ - uint8_T is_active_c1_cr929_dummy_io; /* '/tick' */ - uint8_T is_c1_cr929_dummy_io; /* '/tick' */ -} DW_tick_cr929_SIL_T; + real32_T delay_DSTATE; /* '/delay' */ + uint8_T icLoad; /* '/delay' */ +} DW_theta2_cr929_SIL_T; /* Block states (default storage) for system '/tick' */ typedef struct { uint32_T temporalCounter_i1; /* '/tick' */ - uint8_T is_active_c42_cr929_dummy_io;/* '/tick' */ - uint8_T is_c42_cr929_dummy_io; /* '/tick' */ + uint8_T is_active_c1_cr929_dummy_io; /* '/tick' */ + uint8_T is_c1_cr929_dummy_io; /* '/tick' */ +} DW_tick_cr929_SIL_T; + +/* Block states (default storage) for system '/tick' */ +typedef struct { + uint32_T temporalCounter_i1; /* '/tick' */ + uint8_T is_active_c42_cr929_dummy_io;/* '/tick' */ + uint8_T is_c42_cr929_dummy_io; /* '/tick' */ } DW_tick_cr929_SIL_g_T; -/* Block states (default storage) for system '/tick' */ +/* Block states (default storage) for system '/tick' */ typedef struct { - uint32_T temporalCounter_i1; /* '/tick' */ - uint8_T is_active_c46_cr929_dummy_io;/* '/tick' */ - uint8_T is_c46_cr929_dummy_io; /* '/tick' */ + uint32_T temporalCounter_i1; /* '/tick' */ + uint8_T is_active_c46_cr929_dummy_io;/* '/tick' */ + uint8_T is_c46_cr929_dummy_io; /* '/tick' */ } DW_tick_cr929_SIL_e_T; /* Block states (default storage) for system '/Enabled Subsystem1' */ typedef struct { - real_T Delay_DSTATE; /* '/Delay' */ - uint8_T icLoad; /* '/Delay' */ + real_T Delay_DSTATE; /* '/Delay' */ + uint8_T icLoad; /* '/Delay' */ boolean_T EnabledSubsystem1_MODE; /* '/Enabled Subsystem1' */ } DW_EnabledSubsystem1_cr929_SIL_T; -/* Block signals for system '/throttle' */ +/* Block states (default storage) for system '/Distance into gust (x)' */ typedef struct { - real_T Delay; /* '/Delay' */ - real_T throttle; /* '/Integrator3' */ - real_T subtract2; /* '/subtract2' */ - real_T Gain3; /* '/Gain3' */ - real_T Sum_m; /* '/Sum' */ -} B_throttle_cr929_SIL_T; - -/* Block states (default storage) for system '/throttle' */ -typedef struct { - real_T Delay_DSTATE; /* '/Delay' */ - real_T UnitDelay_DSTATE; /* '/Unit Delay' */ - int_T Integrator3_IWORK; /* '/Integrator3' */ - uint8_T icLoad; /* '/Delay' */ - boolean_T throttle_MODE; /* '/throttle' */ -} DW_throttle_cr929_SIL_T; - -/* Continuous states for system '/throttle' */ -typedef struct { - real_T Integrator3_CSTATE; /* '/Integrator3' */ -} X_throttle_cr929_SIL_T; - -/* State derivatives for system '/throttle' */ -typedef struct { - real_T Integrator3_CSTATE; /* '/Integrator3' */ -} XDot_throttle_cr929_SIL_T; - -/* State Disabled for system '/throttle' */ -typedef struct { - boolean_T Integrator3_CSTATE; /* '/Integrator3' */ -} XDis_throttle_cr929_SIL_T; - -/* Block states (default storage) for system '/Distance into gust (x)' */ -typedef struct { - boolean_T Distanceintogustx_MODE; /* '/Distance into gust (x)' */ + boolean_T Distanceintogustx_MODE; /* '/Distance into gust (x)' */ } DW_Distanceintogustx_cr929_SIL_T; -/* Continuous states for system '/Distance into gust (x)' */ +/* Continuous states for system '/Distance into gust (x)' */ typedef struct { - real_T DistanceintoGustxLimitedtogustlengthd_CSTATE_b;/* '/Distance into Gust (x) (Limited to gust length d)' */ + real_T DistanceintoGustxLimitedtogustlengthd_CSTATE_b;/* '/Distance into Gust (x) (Limited to gust length d)' */ } X_Distanceintogustx_cr929_SIL_T; -/* State derivatives for system '/Distance into gust (x)' */ +/* State derivatives for system '/Distance into gust (x)' */ typedef struct { - real_T DistanceintoGustxLimitedtogustlengthd_CSTATE_b;/* '/Distance into Gust (x) (Limited to gust length d)' */ + real_T DistanceintoGustxLimitedtogustlengthd_CSTATE_b;/* '/Distance into Gust (x) (Limited to gust length d)' */ } XDot_Distanceintogustx_cr929_SIL_T; -/* State Disabled for system '/Distance into gust (x)' */ +/* State Disabled for system '/Distance into gust (x)' */ typedef struct { - boolean_T DistanceintoGustxLimitedtogustlengthd_CSTATE_b;/* '/Distance into Gust (x) (Limited to gust length d)' */ + boolean_T DistanceintoGustxLimitedtogustlengthd_CSTATE_b;/* '/Distance into Gust (x) (Limited to gust length d)' */ } XDis_Distanceintogustx_cr929_SIL_T; -/* Block states (default storage) for system '/Distance into gust (y)' */ +/* Block states (default storage) for system '/Distance into gust (y)' */ typedef struct { - boolean_T Distanceintogusty_MODE; /* '/Distance into gust (y)' */ + boolean_T Distanceintogusty_MODE; /* '/Distance into gust (y)' */ } DW_Distanceintogusty_cr929_SIL_T; -/* Continuous states for system '/Distance into gust (y)' */ +/* Continuous states for system '/Distance into gust (y)' */ typedef struct { - real_T DistanceintoGustxLimitedtogustlengthd_CSTATE;/* '/Distance into Gust (x) (Limited to gust length d) ' */ + real_T DistanceintoGustxLimitedtogustlengthd_CSTATE;/* '/Distance into Gust (x) (Limited to gust length d) ' */ } X_Distanceintogusty_cr929_SIL_T; -/* State derivatives for system '/Distance into gust (y)' */ +/* State derivatives for system '/Distance into gust (y)' */ typedef struct { - real_T DistanceintoGustxLimitedtogustlengthd_CSTATE;/* '/Distance into Gust (x) (Limited to gust length d) ' */ + real_T DistanceintoGustxLimitedtogustlengthd_CSTATE;/* '/Distance into Gust (x) (Limited to gust length d) ' */ } XDot_Distanceintogusty_cr929_SIL_T; -/* State Disabled for system '/Distance into gust (y)' */ +/* State Disabled for system '/Distance into gust (y)' */ typedef struct { - boolean_T DistanceintoGustxLimitedtogustlengthd_CSTATE;/* '/Distance into Gust (x) (Limited to gust length d) ' */ + boolean_T DistanceintoGustxLimitedtogustlengthd_CSTATE;/* '/Distance into Gust (x) (Limited to gust length d) ' */ } XDis_Distanceintogusty_cr929_SIL_T; /* Block signals (default storage) */ typedef struct { C2 Merge; /* '/Merge' */ - C2 Merge_l; /* '/Merge' */ - C2 Merge_i; /* '/Merge' */ + C2 Merge_l; /* '/Merge' */ + C2 Merge_i; /* '/Merge' */ C2 BusAssignment; /* '/Bus Assignment' */ C2 BusAssignment_g; /* '/Bus Assignment' */ - ExtU_FlightControlLaw_T BusAssignment_d;/* '/Bus Assignment' */ - mavlink_message_t Merged_msg; /* '/Merged_msg' */ - mavlink_message_t msg; /* '/proc_queue' */ - mavlink_message_t mav_message; /* '/mav_parser' */ - mavlink_message_t msgs; /* '/push2msgs' */ - Sensors BusAssignment_h; /* '/Bus Assignment' */ + ExtU_FlightControlLaw_T BusAssignment_d;/* '/Bus Assignment' */ + mavlink_message_t Merged_msg; /* '/Merged_msg' */ + mavlink_message_t msg; /* '/proc_queue' */ + mavlink_message_t mav_message; /* '/mav_parser' */ + mavlink_message_t msgs; /* '/push2msgs' */ + Sensors BusAssignment_h; /* '/Bus Assignment' */ ExtY_FlightControlLaw_T cr929_FlightControlLaw;/* '/cr929_FlightControlLaw' */ - mavlink_gps_rtcm_data_t mav_gps_rtcm_data;/* '/mav_gps_rtcm_data' */ - mavlink_ins2_t BusAssignment_b; /* '/Bus Assignment' */ - mavlink_ins1_t BusAssignment_o; /* '/Bus Assignment' */ + mavlink_gps_rtcm_data_t mav_gps_rtcm_data;/* '/mav_gps_rtcm_data' */ + mavlink_ins2_t BusAssignment_b; /* '/Bus Assignment' */ + mavlink_ins1_t BusAssignment_o; /* '/Bus Assignment' */ TrajGen UnitDelay; /* '/Unit Delay' */ - mavlink_serial_control_t send_echo; /* '/Chart_send_serial_control' */ - mavlink_serial_control_t mav_serial_control;/* '/mav_serial_control' */ - mavlink_serial_control_t ser_echo; /* '/traffic_ctrl' */ - mavlink_autopilot_version_t ap_ver; /* '/send_auto_hw' */ - mavlink_autopilot_version_t ap_ver_g;/* '/traffic_ctrl' */ - mavlink_gps_raw_int_t gps; /* '/Chart' */ - mavlink_battery_status_t bat; /* '/Chart' */ + mavlink_serial_control_t send_echo; /* '/Chart_send_serial_control' */ + mavlink_serial_control_t mav_serial_control;/* '/mav_serial_control' */ + mavlink_serial_control_t ser_echo; /* '/traffic_ctrl' */ + mavlink_autopilot_version_t ap_ver; /* '/send_auto_hw' */ + mavlink_autopilot_version_t ap_ver_g;/* '/traffic_ctrl' */ + mavlink_gps_raw_int_t gps; /* '/Chart' */ + mavlink_battery_status_t bat; /* '/Chart' */ TrajPlan home; /* '/takeoff_task' */ - mavlink_mission_item_int_t mav_mission_item_int;/* '/mav_mission_item_int' */ - mavlink_mission_item_int_t send_req; /* '/Chart' */ - mavlink_mission_item_int_t send_item;/* '/Chart_proc_mission_req' */ - mavlink_mission_item_int_t mission_item_int;/* '/traffic_ctrl' */ - mavlink_servo_output_raw_t servos; /* '/Chart' */ - mavlink_rc_channels_raw_t rc_channels;/* '/Chart' */ - mavlink_rc_channels_override_t mav_rc_channels_override;/* '/mav_rc_channels_override' */ - mavlink_command_long_t mav_command_long;/* '/mav_command_long' */ - mavlink_sys_status_t sys_status; /* '/Chart' */ - mavlink_param_value_t msg_j; /* '/proc_param_value' */ - mavlink_param_value_t param_val; /* '/traffic_ctrl' */ - mavlink_param_set_t mav_param_set; /* '/mav_param_set' */ - mavlink_nav_controller_output_t nav; /* '/Chart' */ - mavlink_global_position_int_t ins; /* '/Chart' */ - mavlink_emb_atmo_com_t atmos; /* '/Chart' */ - mavlink_attitude_t att; /* '/Chart' */ - CommandMsg msg_f; /* '/send_cmd' */ + mavlink_mission_item_int_t mav_mission_item_int;/* '/mav_mission_item_int' */ + mavlink_mission_item_int_t send_req; /* '/Chart' */ + mavlink_mission_item_int_t send_item;/* '/Chart_proc_mission_req' */ + mavlink_mission_item_int_t mission_item_int;/* '/traffic_ctrl' */ + mavlink_servo_output_raw_t servos; /* '/Chart' */ + mavlink_rc_channels_raw_t rc_channels;/* '/Chart' */ + mavlink_rc_channels_override_t mav_rc_channels_override;/* '/mav_rc_channels_override' */ + mavlink_command_long_t mav_command_long;/* '/mav_command_long' */ + mavlink_sys_status_t sys_status; /* '/Chart' */ + mavlink_param_value_t msg_j; /* '/proc_param_value' */ + mavlink_param_value_t param_val; /* '/traffic_ctrl' */ + mavlink_param_set_t mav_param_set; /* '/mav_param_set' */ + mavlink_nav_controller_output_t nav; /* '/Chart' */ + mavlink_global_position_int_t ins; /* '/Chart' */ + mavlink_emb_atmo_com_t atmos; /* '/Chart' */ + mavlink_attitude_t att; /* '/Chart' */ + CommandMsg msg_a; /* '/send_cmd' */ CommandMsg cmd; /* '/mission_proc' */ - mavlink_vfr_hud_t hud; /* '/Chart' */ - mavlink_status_t mav_status; /* '/mav_parser' */ - mavlink_rpm_t rpm; /* '/Chart' */ - mavlink_param_request_read_t mav_param_req_read;/* '/mav_param_req_read' */ - mavlink_scaled_pressure_t pres; /* '/Chart' */ - mavlink_heartbeat_t heartbeat; /* '/Chart' */ - mavlink_command_ack_t command_ack; /* '/traffic_ctrl' */ - mavlink_command_ack_t send_ack; /* '/Chart_send_ack' */ - mavlink_set_mode_t mav_set_mode; /* '/mav_set_mode' */ - mavlink_param_request_list_t mav_param_request_list;/* '/mav_param_request_list' */ - mavlink_mission_set_current_t mav_mission_set_current;/* '/mav_mission_set_current' */ - mavlink_mission_request_t mav_mission_request;/* '/mav_mission_request' */ - mavlink_mission_request_list_t mav_mission_request_list;/* '/mav_mission_request_list' */ - mavlink_mission_request_int_t mission_req_int;/* '/Chart_proc_mission_upload' */ - mavlink_mission_request_int_t mission_req_int_d;/* '/traffic_ctrl' */ - mavlink_mission_current_t cur; /* '/req_cur' */ - mavlink_mission_current_t mission_cur;/* '/traffic_ctrl' */ - mavlink_mission_count_t mav_mission_count;/* '/mav_mission_count' */ - mavlink_mission_count_t send_cnt; /* '/Chart' */ - mavlink_mission_count_t send_cnt_h; /* '/Chart_proc_mission_req_lst' */ - mavlink_mission_count_t mission_cnt; /* '/traffic_ctrl' */ - mavlink_mission_clear_all_t mav_mission_clear_all;/* '/mav_mission_clear_all' */ - mavlink_mission_ack_t mission_ack; /* '/Chart_proc_mission_upload' */ - mavlink_mission_ack_t ack; /* '/merge_ack' */ - mavlink_mission_ack_t send_ack_a; /* '/Chart_proc_mission_clr_all' */ - mavlink_mission_ack_t send_ack_l; /* '/Chart_proc_mission_req' */ - mavlink_mission_ack_t mission_ack_g; /* '/traffic_ctrl' */ - mavlink_extended_sys_state_t ext_sys_stat;/* '/Chart' */ + mavlink_vfr_hud_t hud; /* '/Chart' */ + mavlink_status_t mav_status; /* '/mav_parser' */ + mavlink_rpm_t rpm; /* '/Chart' */ + mavlink_param_request_read_t mav_param_req_read;/* '/mav_param_req_read' */ + mavlink_scaled_pressure_t pres; /* '/Chart' */ + mavlink_heartbeat_t heartbeat; /* '/Chart' */ + mavlink_command_ack_t command_ack; /* '/traffic_ctrl' */ + mavlink_command_ack_t send_ack; /* '/Chart_send_ack' */ + mavlink_set_mode_t mav_set_mode; /* '/mav_set_mode' */ + mavlink_param_request_list_t mav_param_request_list;/* '/mav_param_request_list' */ + mavlink_mission_set_current_t mav_mission_set_current;/* '/mav_mission_set_current' */ + mavlink_mission_request_t mav_mission_request;/* '/mav_mission_request' */ + mavlink_mission_request_list_t mav_mission_request_list;/* '/mav_mission_request_list' */ + mavlink_mission_request_int_t mission_req_int;/* '/Chart_proc_mission_upload' */ + mavlink_mission_request_int_t mission_req_int_e;/* '/traffic_ctrl' */ + mavlink_mission_current_t cur; /* '/req_cur' */ + mavlink_mission_current_t mission_cur;/* '/traffic_ctrl' */ + mavlink_mission_count_t mav_mission_count;/* '/mav_mission_count' */ + mavlink_mission_count_t send_cnt; /* '/Chart' */ + mavlink_mission_count_t send_cnt_h; /* '/Chart_proc_mission_req_lst' */ + mavlink_mission_count_t mission_cnt; /* '/traffic_ctrl' */ + mavlink_mission_clear_all_t mav_mission_clear_all;/* '/mav_mission_clear_all' */ + mavlink_mission_ack_t mission_ack; /* '/Chart_proc_mission_upload' */ + mavlink_mission_ack_t ack; /* '/merge_ack' */ + mavlink_mission_ack_t send_ack_a; /* '/Chart_proc_mission_clr_all' */ + mavlink_mission_ack_t send_ack_l; /* '/Chart_proc_mission_req' */ + mavlink_mission_ack_t mission_ack_h; /* '/traffic_ctrl' */ + mavlink_extended_sys_state_t ext_sys_stat;/* '/Chart' */ real_T Sum[3]; /* '/Sum' */ real_T p1[3]; /* '/p1' */ real_T Product2; /* '/Product2' */ @@ -594,27 +561,27 @@ typedef struct { real_T Product5; /* '/Product5' */ real_T Product6; /* '/Product6' */ real_T Sum3; /* '/Sum3' */ - real_T LookupTableDynamic; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_k; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_m; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_l; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_lb; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_i; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_o; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_o4; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_n; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_np; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_f; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_a; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_nw; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_o45; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_b; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_p; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_e; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_g; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_in; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_d; /* '/Lookup Table Dynamic' */ - real_T LookupTableDynamic_ov; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_k; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_m; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_l; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_lb; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_i; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_o; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_o4; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_n; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_np; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_f; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_a; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_nw; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_o45; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_b; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_p; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_e; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_g; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_in; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_d; /* '/Lookup Table Dynamic' */ + real_T LookupTableDynamic_ov; /* '/Lookup Table Dynamic' */ real_T UnitDelay1; /* '/Unit Delay1' */ real_T UnitDelay_l; /* '/Unit Delay' */ real_T throttle_r; /* '/Merge1' */ @@ -668,54 +635,54 @@ typedef struct { real_T saturation; /* '/saturation' */ real_T product_a; /* '/product' */ real_T saturation_m; /* '/saturation' */ - real_T Integrator_c; /* '/Integrator' */ + real_T Integrator_c; /* '/Integrator' */ real_T Backlash1; /* '/Backlash1' */ real_T product_l; /* '/product' */ real_T saturation_p; /* '/saturation' */ real_T product_b; /* '/product' */ - real_T Integrator_d; /* '/Integrator' */ + real_T Integrator_d; /* '/Integrator' */ real_T Backlash8; /* '/Backlash8' */ real_T product_b2; /* '/product' */ real_T saturation_n; /* '/saturation' */ - real_T Integrator_m; /* '/Integrator' */ + real_T Integrator_m; /* '/Integrator' */ real_T Backlash2; /* '/Backlash2' */ real_T product_j; /* '/product' */ real_T saturation_a; /* '/saturation' */ - real_T Integrator_n; /* '/Integrator' */ - real_T Backlash6; /* '/Backlash6' */ - real_T Integrator_ml; /* '/Integrator' */ - real_T Backlash1_g; /* '/Backlash1' */ - real_T Integrator_mm; /* '/Integrator' */ - real_T Backlash2_e; /* '/Backlash2' */ - real_T Integrator_g; /* '/Integrator' */ - real_T Backlash3; /* '/Backlash3' */ - real_T Integrator_nq; /* '/Integrator' */ - real_T Backlash4; /* '/Backlash4' */ - real_T Integrator_k; /* '/Integrator' */ - real_T Backlash5; /* '/Backlash5' */ - real_T Integrator_no; /* '/Integrator' */ - real_T Backlash7; /* '/Backlash7' */ - real_T Integrator_e; /* '/Integrator' */ - real_T Backlash8_d; /* '/Backlash8' */ - real_T Integrator_j; /* '/Integrator' */ - real_T Backlash9; /* '/Backlash9' */ - real_T Integrator_jc; /* '/Integrator' */ - real_T Backlash10; /* '/Backlash10' */ - real_T Integrator_l; /* '/Integrator' */ - real_T Backlash12; /* '/Backlash12' */ - real_T Integrator_dl; /* '/Integrator' */ - real_T Backlash11; /* '/Backlash11' */ - real_T Integrator_h; /* '/Integrator' */ - real_T Backlash13; /* '/Backlash13' */ - real_T Integrator_eg; /* '/Integrator' */ - real_T Backlash14; /* '/Backlash14' */ - real_T Integrator_p; /* '/Integrator' */ - real_T Backlash15; /* '/Backlash15' */ - real_T Integrator_jj; /* '/Integrator' */ - real_T Backlash16; /* '/Backlash16' */ + real_T Integrator_n; /* '/Integrator' */ + real_T Backlash6; /* '/Backlash6' */ + real_T Integrator_ml; /* '/Integrator' */ + real_T Backlash1_g; /* '/Backlash1' */ + real_T Integrator_mm; /* '/Integrator' */ + real_T Backlash2_e; /* '/Backlash2' */ + real_T Integrator_g; /* '/Integrator' */ + real_T Backlash3; /* '/Backlash3' */ + real_T Integrator_nq; /* '/Integrator' */ + real_T Backlash4; /* '/Backlash4' */ + real_T Integrator_k; /* '/Integrator' */ + real_T Backlash5; /* '/Backlash5' */ + real_T Integrator_no; /* '/Integrator' */ + real_T Backlash7; /* '/Backlash7' */ + real_T Integrator_e; /* '/Integrator' */ + real_T Backlash8_d; /* '/Backlash8' */ + real_T Integrator_j; /* '/Integrator' */ + real_T Backlash9; /* '/Backlash9' */ + real_T Integrator_jc; /* '/Integrator' */ + real_T Backlash10; /* '/Backlash10' */ + real_T Integrator_l; /* '/Integrator' */ + real_T Backlash12; /* '/Backlash12' */ + real_T Integrator_dl; /* '/Integrator' */ + real_T Backlash11; /* '/Backlash11' */ + real_T Integrator_h; /* '/Integrator' */ + real_T Backlash13; /* '/Backlash13' */ + real_T Integrator_eg; /* '/Integrator' */ + real_T Backlash14; /* '/Backlash14' */ + real_T Integrator_p; /* '/Integrator' */ + real_T Backlash15; /* '/Backlash15' */ + real_T Integrator_jj; /* '/Integrator' */ + real_T Backlash16; /* '/Backlash16' */ real_T product_l2[16]; /* '/product' */ real_T saturation_nz[16]; /* '/saturation' */ - real_T Integrator_i; /* '/Integrator' */ + real_T Integrator_i; /* '/Integrator' */ real_T horizontal_tail; /* '/Backlash5' */ real_T product_k; /* '/product' */ real_T saturation_d; /* '/saturation' */ @@ -857,161 +824,169 @@ typedef struct { real_T Product1_hk; /* '/Product1' */ real_T An; /* '/An' */ real_T Gain_l; /* '/Gain' */ - real_T Sum1_m; /* '/Sum1' */ - real_T Gain1_n; /* '/Gain1' */ - real_T Integrator1; /* '/Integrator1' */ - real_T Sum_jd; /* '/Sum' */ - real_T Gain_k; /* '/Gain' */ - real_T Sum1_ft; /* '/Sum1' */ - real_T Gain1_a; /* '/Gain1' */ - real_T Integrator1_i; /* '/Integrator1' */ - real_T Sum_js; /* '/Sum' */ - real_T Gain_p; /* '/Gain' */ - real_T Sum1_k; /* '/Sum1' */ - real_T Gain1_m; /* '/Gain1' */ - real_T Integrator1_h; /* '/Integrator1' */ - real_T Sum_kf; /* '/Sum' */ - real_T Gain_d; /* '/Gain' */ - real_T Sum1_c; /* '/Sum1' */ - real_T Gain1_d; /* '/Gain1' */ - real_T Integrator1_j; /* '/Integrator1' */ - real_T Sum_b; /* '/Sum' */ - real_T Gain_a; /* '/Gain' */ - real_T Sum1_cx; /* '/Sum1' */ - real_T Gain1_mr; /* '/Gain1' */ - real_T Integrator1_jd; /* '/Integrator1' */ - real_T Sum_j2; /* '/Sum' */ - real_T Gain_b; /* '/Gain' */ - real_T Sum1_d; /* '/Sum1' */ - real_T Gain1_dg; /* '/Gain1' */ - real_T Integrator1_ie; /* '/Integrator1' */ - real_T Sum_e43; /* '/Sum' */ - real_T Gain_j; /* '/Gain' */ - real_T Sum1_ad; /* '/Sum1' */ - real_T Gain1_mq; /* '/Gain1' */ - real_T Integrator1_b; /* '/Integrator1' */ - real_T Sum_g; /* '/Sum' */ - real_T Gain_e; /* '/Gain' */ - real_T Sum1_a2; /* '/Sum1' */ - real_T Gain1_g; /* '/Gain1' */ - real_T Integrator1_e; /* '/Integrator1' */ - real_T Sum_ee; /* '/Sum' */ - real_T Gain_i; /* '/Gain' */ - real_T Sum1_fe; /* '/Sum1' */ - real_T Gain1_b; /* '/Gain1' */ - real_T Integrator1_n; /* '/Integrator1' */ - real_T Sum_hm; /* '/Sum' */ - real_T Gain_jh; /* '/Gain' */ - real_T Sum1_ae; /* '/Sum1' */ - real_T Gain1_f; /* '/Gain1' */ - real_T Integrator1_h3; /* '/Integrator1' */ - real_T Sum_jy; /* '/Sum' */ - real_T Gain_ay; /* '/Gain' */ - real_T Sum1_k5; /* '/Sum1' */ - real_T Gain1_j; /* '/Gain1' */ - real_T Integrator1_a; /* '/Integrator1' */ - real_T Sum_eh; /* '/Sum' */ - real_T Gain_h; /* '/Gain' */ - real_T Sum1_fd; /* '/Sum1' */ - real_T Gain1_fy; /* '/Gain1' */ - real_T Integrator1_o; /* '/Integrator1' */ - real_T Sum_i3; /* '/Sum' */ - real_T Gain_pw; /* '/Gain' */ - real_T Sum1_me; /* '/Sum1' */ - real_T Gain1_o; /* '/Gain1' */ - real_T Integrator1_ai; /* '/Integrator1' */ - real_T Sum_a4; /* '/Sum' */ - real_T Gain_f; /* '/Gain' */ - real_T Sum1_b; /* '/Sum1' */ - real_T Gain1_p; /* '/Gain1' */ - real_T Integrator1_k; /* '/Integrator1' */ - real_T Sum_op; /* '/Sum' */ - real_T Gain_ds; /* '/Gain' */ - real_T Sum1_g; /* '/Sum1' */ - real_T Gain1_b2; /* '/Gain1' */ - real_T Integrator1_in; /* '/Integrator1' */ - real_T Sum_dq; /* '/Sum' */ - real_T Gain_jy; /* '/Gain' */ - real_T Sum1_n; /* '/Sum1' */ - real_T Gain1_mi; /* '/Gain1' */ - real_T Integrator1_m; /* '/Integrator1' */ - real_T Sum_gg; /* '/Sum' */ - real_T Gain_o; /* '/Gain' */ - real_T Sum1_gn; /* '/Sum1' */ - real_T Gain1_e; /* '/Gain1' */ - real_T Integrator1_jx; /* '/Integrator1' */ - real_T Sum_dz; /* '/Sum' */ - real_T Gain_a0; /* '/Gain' */ - real_T Sum1_h; /* '/Sum1' */ - real_T Gain1_dq; /* '/Gain1' */ - real_T Integrator1_np; /* '/Integrator1' */ - real_T Sum_pd; /* '/Sum' */ - real_T Gain_ho; /* '/Gain' */ - real_T Sum1_hi; /* '/Sum1' */ - real_T Gain1_je; /* '/Gain1' */ - real_T Integrator1_g; /* '/Integrator1' */ - real_T Sum_ny; /* '/Sum' */ - real_T Gain_jy0; /* '/Gain' */ - real_T Sum1_be; /* '/Sum1' */ - real_T Gain1_dn; /* '/Gain1' */ - real_T Integrator1_hl; /* '/Integrator1' */ - real_T Sum_i3b; /* '/Sum' */ - real_T Gain_j3; /* '/Gain' */ + real_T Sum1_m; /* '/Sum1' */ + real_T Gain1_n; /* '/Gain1' */ + real_T Integrator1; /* '/Integrator1' */ + real_T Sum_jd; /* '/Sum' */ + real_T Gain_k; /* '/Gain' */ + real_T Sum1_ft; /* '/Sum1' */ + real_T Gain1_a; /* '/Gain1' */ + real_T Integrator1_i; /* '/Integrator1' */ + real_T Sum_js; /* '/Sum' */ + real_T Gain_p; /* '/Gain' */ + real_T Sum1_k; /* '/Sum1' */ + real_T Gain1_m; /* '/Gain1' */ + real_T Integrator1_h; /* '/Integrator1' */ + real_T Sum_kf; /* '/Sum' */ + real_T Gain_d; /* '/Gain' */ + real_T Sum1_c; /* '/Sum1' */ + real_T Gain1_d; /* '/Gain1' */ + real_T Integrator1_j; /* '/Integrator1' */ + real_T Sum_b; /* '/Sum' */ + real_T Gain_a; /* '/Gain' */ + real_T Sum1_cx; /* '/Sum1' */ + real_T Gain1_mr; /* '/Gain1' */ + real_T Integrator1_jd; /* '/Integrator1' */ + real_T Sum_j2; /* '/Sum' */ + real_T Gain_b; /* '/Gain' */ + real_T Sum1_d; /* '/Sum1' */ + real_T Gain1_dg; /* '/Gain1' */ + real_T Integrator1_ie; /* '/Integrator1' */ + real_T Sum_e43; /* '/Sum' */ + real_T Gain_j; /* '/Gain' */ + real_T Sum1_ad; /* '/Sum1' */ + real_T Gain1_mq; /* '/Gain1' */ + real_T Integrator1_b; /* '/Integrator1' */ + real_T Sum_g; /* '/Sum' */ + real_T Gain_e; /* '/Gain' */ + real_T Sum1_a2; /* '/Sum1' */ + real_T Gain1_g; /* '/Gain1' */ + real_T Integrator1_e; /* '/Integrator1' */ + real_T Sum_ee; /* '/Sum' */ + real_T Gain_i; /* '/Gain' */ + real_T Sum1_fe; /* '/Sum1' */ + real_T Gain1_b; /* '/Gain1' */ + real_T Integrator1_n; /* '/Integrator1' */ + real_T Sum_hm; /* '/Sum' */ + real_T Gain_jh; /* '/Gain' */ + real_T Sum1_ae; /* '/Sum1' */ + real_T Gain1_f; /* '/Gain1' */ + real_T Integrator1_h3; /* '/Integrator1' */ + real_T Sum_jy; /* '/Sum' */ + real_T Gain_ay; /* '/Gain' */ + real_T Sum1_k5; /* '/Sum1' */ + real_T Gain1_j; /* '/Gain1' */ + real_T Integrator1_a; /* '/Integrator1' */ + real_T Sum_eh; /* '/Sum' */ + real_T Gain_h; /* '/Gain' */ + real_T Sum1_fd; /* '/Sum1' */ + real_T Gain1_fy; /* '/Gain1' */ + real_T Integrator1_o; /* '/Integrator1' */ + real_T Sum_i3; /* '/Sum' */ + real_T Gain_pw; /* '/Gain' */ + real_T Sum1_me; /* '/Sum1' */ + real_T Gain1_o; /* '/Gain1' */ + real_T Integrator1_ai; /* '/Integrator1' */ + real_T Sum_a4; /* '/Sum' */ + real_T Gain_f; /* '/Gain' */ + real_T Sum1_b; /* '/Sum1' */ + real_T Gain1_p; /* '/Gain1' */ + real_T Integrator1_k; /* '/Integrator1' */ + real_T Sum_op; /* '/Sum' */ + real_T Gain_ds; /* '/Gain' */ + real_T Sum1_g; /* '/Sum1' */ + real_T Gain1_b2; /* '/Gain1' */ + real_T Integrator1_in; /* '/Integrator1' */ + real_T Sum_dq; /* '/Sum' */ + real_T Gain_jy; /* '/Gain' */ + real_T Sum1_n; /* '/Sum1' */ + real_T Gain1_mi; /* '/Gain1' */ + real_T Integrator1_m; /* '/Integrator1' */ + real_T Sum_gg; /* '/Sum' */ + real_T Gain_o; /* '/Gain' */ + real_T Sum1_gn; /* '/Sum1' */ + real_T Gain1_e; /* '/Gain1' */ + real_T Integrator1_jx; /* '/Integrator1' */ + real_T Sum_dz; /* '/Sum' */ + real_T Gain_a0; /* '/Gain' */ + real_T Sum1_h; /* '/Sum1' */ + real_T Gain1_dq; /* '/Gain1' */ + real_T Integrator1_np; /* '/Integrator1' */ + real_T Sum_pd; /* '/Sum' */ + real_T Gain_ho; /* '/Gain' */ + real_T Sum1_hi; /* '/Sum1' */ + real_T Gain1_je; /* '/Gain1' */ + real_T Integrator1_g; /* '/Integrator1' */ + real_T Sum_ny; /* '/Sum' */ + real_T Gain_jy0; /* '/Gain' */ + real_T Sum1_be; /* '/Sum1' */ + real_T Gain1_dn; /* '/Gain1' */ + real_T Integrator1_hl; /* '/Integrator1' */ + real_T Sum_i3b; /* '/Sum' */ + real_T Gain_j3; /* '/Gain' */ real_T agl_m; /* '/Sum1' */ real_T Merge1; /* '/Merge1' */ - real_T Integrator_lx; /* '/Integrator' */ - real_T Sum1_ao; /* '/Sum1' */ - real_T Gain1_gy; /* '/Gain1' */ - real_T Integrator1_npy; /* '/Integrator1' */ - real_T Sum_i2; /* '/Sum' */ - real_T Gain_fp; /* '/Gain' */ - real_T Sqrt; /* '/Sqrt' */ - real_T MatrixMultiply[3]; /* '/MatrixMultiply' */ - real_T Sum2_db[3]; /* '/Sum2' */ - real_T Constant1; /* '/Constant1' */ - real_T Constant2; /* '/Constant2' */ - real_T Sum_gr[2]; /* '/Sum' */ - real_T Sum_kl[2]; /* '/Sum' */ - real_T Sum_fe[2]; /* '/Sum' */ - real_T Sum1_cq[2]; /* '/Sum1' */ - real_T Sum1_i[2]; /* '/Sum1' */ - real_T Sum_i3m[2]; /* '/Sum' */ + real_T Integrator_lx; /* '/Integrator' */ + real_T Sum1_ao; /* '/Sum1' */ + real_T Gain1_gy; /* '/Gain1' */ + real_T Integrator1_npy; /* '/Integrator1' */ + real_T Sum_i2; /* '/Sum' */ + real_T Gain_fp; /* '/Gain' */ + real_T Sqrt; /* '/Sqrt' */ + real_T MatrixMultiply[3]; /* '/MatrixMultiply' */ + real_T Sum2_db[3]; /* '/Sum2' */ + real_T Constant1; /* '/Constant1' */ + real_T Constant2; /* '/Constant2' */ + real_T Sum_gr[2]; /* '/Sum' */ + real_T Sum_kl[2]; /* '/Sum' */ + real_T Sum_fe[2]; /* '/Sum' */ + real_T Sum1_cq[2]; /* '/Sum1' */ + real_T Sum1_i[2]; /* '/Sum1' */ + real_T Sum_i3m[2]; /* '/Sum' */ real_T TmpSignalConversionAtBytePackInport2[12]; real_T TmpSignalConversionAtBytePackInport2_e[21]; real_T TmpSignalConversionAtBytePackInport2_ee[23]; real_T TmpSignalConversionAtBytePackInport3[2]; - real_T In1; /* '/In1' */ - real_T In1_f; /* '/In1' */ - real_T In1_m; /* '/In1' */ - real_T In1_d; /* '/In1' */ - real_T In1_b; /* '/In1' */ - real_T In1_fb; /* '/In1' */ - real_T In1_i; /* '/In1' */ - real_T In1_g; /* '/In1' */ - real_T In1_h; /* '/In1' */ - real_T In1_c; /* '/In1' */ - real_T In1_mx; /* '/In1' */ - real_T In1_bj; /* '/In1' */ - real_T In1_l; /* '/In1' */ - real_T In1_is; /* '/In1' */ - real_T In1_a; /* '/In1' */ - real_T In1_la; /* '/In1' */ - real_T In1_e; /* '/In1' */ - real_T In1_bt; /* '/In1' */ - real_T In1_n; /* '/In1' */ + real_T Delay; /* '/Delay' */ + real_T throttle; /* '/Integrator3' */ + real_T subtract2; /* '/subtract2' */ + real_T Gain3; /* '/Gain3' */ + real_T Delay_j; /* '/Delay' */ + real_T throttle_i; /* '/Integrator3' */ + real_T subtract2_c; /* '/subtract2' */ + real_T Gain3_e; /* '/Gain3' */ + real_T In1; /* '/In1' */ + real_T In1_f; /* '/In1' */ + real_T In1_m; /* '/In1' */ + real_T In1_d; /* '/In1' */ + real_T In1_b; /* '/In1' */ + real_T In1_fb; /* '/In1' */ + real_T In1_i; /* '/In1' */ + real_T In1_g; /* '/In1' */ + real_T In1_h; /* '/In1' */ + real_T In1_c; /* '/In1' */ + real_T In1_mx; /* '/In1' */ + real_T In1_bj; /* '/In1' */ + real_T In1_l; /* '/In1' */ + real_T In1_is; /* '/In1' */ + real_T In1_a; /* '/In1' */ + real_T In1_la; /* '/In1' */ + real_T In1_e; /* '/In1' */ + real_T In1_bt; /* '/In1' */ + real_T In1_n; /* '/In1' */ real_T TmpSignalConversionAtDiscreteTransferFcnInport2[3]; real_T TmpSignalConversionAtDiscreteTransferFcnInport3[3]; real_T TmpSignalConversionAtDiscreteTransferFcnInport2_m[3]; real_T TmpSignalConversionAtDiscreteTransferFcnInport3_b[3]; - real_T SignalCopy; /* '/Signal Copy' */ - real_T SignalCopy1; /* '/Signal Copy1' */ - real_T SignalCopy2; /* '/Signal Copy2' */ - real_T Output; /* '/Output' */ - real_T Output_p; /* '/Output' */ - real_T alt_pres; /* '/Data Type Conversion1' */ - real_T SFunction; /* '/S-Function' */ - real_T UnitDelay_p[3]; /* '/Unit Delay' */ - real_T width; /* '/Width' */ + real_T SignalCopy; /* '/Signal Copy' */ + real_T SignalCopy1; /* '/Signal Copy1' */ + real_T SignalCopy2; /* '/Signal Copy2' */ + real_T Output; /* '/Output' */ + real_T Output_p; /* '/Output' */ + real_T alt_pres; /* '/Data Type Conversion1' */ + real_T SFunction; /* '/S-Function' */ + real_T UnitDelay_p[3]; /* '/Unit Delay' */ + real_T width; /* '/Width' */ real_T LLA[3]; /* '/Byte Unpack' */ real_T LLA_b[3]; /* '/Byte Unpack' */ real_T LLA_i[3]; /* '/Byte Unpack' */ @@ -1058,7 +1033,7 @@ typedef struct { real_T Product2_cg; /* '/Product2' */ real_T Product3_c; /* '/Product3' */ real_T CZ; /* '/Sum1' */ - CommandAck ack_d; /* '/proc_cmd' */ + CommandAck ack_e; /* '/proc_cmd' */ uint32_T TmpSignalConversionAtBytePackInport1[2]; uint32_T TmpSignalConversionAtBytePackInport1_h[2]; uint32_T TmpSignalConversionAtBytePackInport1_h4[2]; @@ -1071,8 +1046,8 @@ typedef struct { uint32_T TmpSignalConversionAtBytePackInport1_h4d5w2eax[2]; uint32_T TmpSignalConversionAtBytePackInport1_h4d5w2eaxk[2]; uint32_T TmpSignalConversionAtBytePackInport1_h4d5w2eaxk5[2]; - uint32_T solution_status; /* '/status_mgr' */ - uint32_T SFunction_c; /* '/S-Function' */ + uint32_T solution_status; /* '/status_mgr' */ + uint32_T SFunction_c; /* '/S-Function' */ uint32_T solution_status_c; /* '/Merge' */ uint32_T time_stamp_d; /* '/Byte Unpack' */ uint32_T ns; /* '/Byte Unpack' */ @@ -1112,83 +1087,83 @@ typedef struct { uint32_T nav_seq_g; /* '/Unit Delay' */ uint32_T time_stamp_ac; /* '/Byte Unpack' */ uint32_T euler_seq_j; /* '/Unit Delay' */ - uint32_T OutportBuffer_InsertedFor_gps_vel_status_at_inport_0;/* '/Constant' */ - uint32_T OutportBuffer_InsertedFor_gps_pos_status_at_inport_0;/* '/Constant' */ + uint32_T OutportBuffer_InsertedFor_gps_vel_status_at_inport_0;/* '/Constant' */ + uint32_T OutportBuffer_InsertedFor_gps_pos_status_at_inport_0;/* '/Constant' */ real32_T TmpSignalConversionAtBytePackInport2_eeg[20]; real32_T TmpSignalConversionAtBytePackInport3_o[36]; - real32_T TmpSignalConversionAtBytePackInport4[12]; + real32_T TmpSignalConversionAtBytePackInport4[13]; real32_T TmpSignalConversionAtBytePackInport2_eegc[9]; real32_T TmpSignalConversionAtBytePackInport4_f[4]; real32_T TmpSignalConversionAtBytePackInport5[2]; real32_T TmpSignalConversionAtBytePackInport2_eegcy[9]; real32_T TmpSignalConversionAtBytePackInport3_os[6]; real32_T TmpSignalConversionAtBytePackInport4_f0[2]; - real32_T Gain1_jf; /* '/Gain1' */ - real32_T accel[3]; /* '/Product3' */ - real32_T Gain1_o2[3]; /* '/Gain1' */ - real32_T Attitude[3]; /* '/Data Type Conversion' */ - real32_T V_ned[3]; /* '/Data Type Conversion1' */ - real32_T DataTypeConversion1; /* '/Data Type Conversion1' */ - real32_T DataTypeConversion1_i; /* '/Data Type Conversion1' */ - real32_T DataTypeConversion1_h[3]; /* '/Data Type Conversion1' */ - real32_T DataTypeConversion2[3]; /* '/Data Type Conversion2' */ - real32_T DataTypeConversion3; /* '/Data Type Conversion3' */ - real32_T DataTypeConversion4; /* '/Data Type Conversion4' */ - real32_T SignalCopy_b; /* '/Signal Copy' */ - real32_T DataTypeConversion1_hq; /* '/Data Type Conversion1' */ - real32_T DataTypeConversion2_d; /* '/Data Type Conversion2' */ - real32_T qbar; /* '/Saturation' */ - real32_T IAS; /* '/Sqrt' */ - real32_T qbar_b; /* '/zero_set' */ - real32_T Saturation; /* '/Saturation' */ - real32_T alt_pres_a; /* '/Data Type Conversion' */ - real32_T OutportBufferFormag_hdg; /* '/inpi' */ - real32_T hdg; /* '/Chart' */ - real32_T euler_angles[3]; /* '/EKF14s' */ - real32_T velocity_NED[3]; /* '/EKF14s' */ - real32_T gyro_bias[3]; /* '/EKF14s' */ - real32_T accel_bias[3]; /* '/EKF14s' */ - real32_T hdg_bias; /* '/EKF14s' */ - real32_T state_variances[14]; /* '/EKF14s' */ - real32_T euler_variances[3]; /* '/EKF14s' */ - real32_T velInnov[3]; /* '/EKF14s' */ - real32_T velInnovVar[3]; /* '/EKF14s' */ - real32_T hdgInnov; /* '/EKF14s' */ - real32_T hdgInnovVar; /* '/EKF14s' */ - real32_T ByteUnpack; /* '/Byte Unpack' */ - real32_T param1; /* '/Chart_proc_mission_upload' */ - real32_T param2; /* '/Chart_proc_mission_upload' */ - real32_T param3; /* '/Chart_proc_mission_upload' */ - real32_T param4; /* '/Chart_proc_mission_upload' */ - real32_T z; /* '/Chart_proc_mission_upload' */ - real32_T param1_b; /* '/chat_get_mission_item' */ - real32_T param2_n; /* '/chat_get_mission_item' */ - real32_T param3_j; /* '/chat_get_mission_item' */ - real32_T param4_e; /* '/chat_get_mission_item' */ - real32_T z_l; /* '/chat_get_mission_item' */ - real32_T f; /* '/Chart_proc_param_set' */ - real32_T vn; /* '/Chart' */ - real32_T ve; /* '/Chart' */ - real32_T vn_d; /* '/Chart' */ - real32_T ve_l; /* '/Chart' */ - real32_T Merge_a; /* '/Merge' */ - real32_T Sqrt_i; /* '/Sqrt' */ - real32_T TmpSignalConversionAtSFunctionInport1[5];/* '/Chart' */ - real32_T rdot; /* '/Merge2' */ - real32_T dist; /* '/Merge2' */ - real32_T bearing_base; /* '/Merge2' */ - real32_T bearing; /* '/Merge2' */ - real32_T elevation_base; /* '/Merge2' */ - real32_T elevation; /* '/Merge2' */ - real32_T ht_diff; /* '/Merge2' */ - real32_T omega_des; /* '/Merge2' */ - real32_T dist_offset; /* '/Merge2' */ - real32_T horiz_offset; /* '/Merge2' */ - real32_T vert_offset; /* '/Merge2' */ - real32_T inner_spoiler; /* '/pos_sel' */ - real32_T outer_spoiler; /* '/pos_sel' */ - real32_T inner_flap; /* '/pos_sel' */ - real32_T outer_flap; /* '/pos_sel' */ + real32_T Gain1_jf; /* '/Gain1' */ + real32_T accel[3]; /* '/Product3' */ + real32_T Gain1_o2[3]; /* '/Gain1' */ + real32_T Attitude[3]; /* '/Data Type Conversion' */ + real32_T V_ned[3]; /* '/Data Type Conversion1' */ + real32_T DataTypeConversion1; /* '/Data Type Conversion1' */ + real32_T DataTypeConversion1_i; /* '/Data Type Conversion1' */ + real32_T DataTypeConversion1_h[3]; /* '/Data Type Conversion1' */ + real32_T DataTypeConversion2[3]; /* '/Data Type Conversion2' */ + real32_T DataTypeConversion3; /* '/Data Type Conversion3' */ + real32_T DataTypeConversion4; /* '/Data Type Conversion4' */ + real32_T SignalCopy_b; /* '/Signal Copy' */ + real32_T DataTypeConversion1_hq; /* '/Data Type Conversion1' */ + real32_T DataTypeConversion2_d; /* '/Data Type Conversion2' */ + real32_T qbar; /* '/Saturation' */ + real32_T IAS; /* '/Sqrt' */ + real32_T qbar_b; /* '/zero_set' */ + real32_T Saturation; /* '/Saturation' */ + real32_T alt_pres_a; /* '/Data Type Conversion' */ + real32_T OutportBufferFormag_hdg; /* '/inpi' */ + real32_T hdg; /* '/Chart' */ + real32_T euler_angles[3]; /* '/EKF14s' */ + real32_T velocity_NED[3]; /* '/EKF14s' */ + real32_T gyro_bias[3]; /* '/EKF14s' */ + real32_T accel_bias[3]; /* '/EKF14s' */ + real32_T hdg_bias; /* '/EKF14s' */ + real32_T state_variances[14]; /* '/EKF14s' */ + real32_T euler_variances[3]; /* '/EKF14s' */ + real32_T velInnov[3]; /* '/EKF14s' */ + real32_T velInnovVar[3]; /* '/EKF14s' */ + real32_T hdgInnov; /* '/EKF14s' */ + real32_T hdgInnovVar; /* '/EKF14s' */ + real32_T ByteUnpack; /* '/Byte Unpack' */ + real32_T param1; /* '/Chart_proc_mission_upload' */ + real32_T param2; /* '/Chart_proc_mission_upload' */ + real32_T param3; /* '/Chart_proc_mission_upload' */ + real32_T param4; /* '/Chart_proc_mission_upload' */ + real32_T z; /* '/Chart_proc_mission_upload' */ + real32_T param1_b; /* '/chat_get_mission_item' */ + real32_T param2_n; /* '/chat_get_mission_item' */ + real32_T param3_j; /* '/chat_get_mission_item' */ + real32_T param4_e; /* '/chat_get_mission_item' */ + real32_T z_l; /* '/chat_get_mission_item' */ + real32_T f; /* '/Chart_proc_param_set' */ + real32_T vn; /* '/Chart' */ + real32_T ve; /* '/Chart' */ + real32_T vn_g; /* '/Chart' */ + real32_T ve_k; /* '/Chart' */ + real32_T Merge_a; /* '/Merge' */ + real32_T Sqrt_i; /* '/Sqrt' */ + real32_T TmpSignalConversionAtSFunctionInport1[5];/* '/Chart' */ + real32_T rdot; /* '/Merge2' */ + real32_T dist; /* '/Merge2' */ + real32_T bearing_base; /* '/Merge2' */ + real32_T bearing; /* '/Merge2' */ + real32_T elevation_base; /* '/Merge2' */ + real32_T elevation; /* '/Merge2' */ + real32_T ht_diff; /* '/Merge2' */ + real32_T omega_des; /* '/Merge2' */ + real32_T dist_offset; /* '/Merge2' */ + real32_T horiz_offset; /* '/Merge2' */ + real32_T vert_offset; /* '/Merge2' */ + real32_T inner_spoiler; /* '/pos_sel' */ + real32_T outer_spoiler; /* '/pos_sel' */ + real32_T inner_flap; /* '/pos_sel' */ + real32_T outer_flap; /* '/pos_sel' */ real32_T params[7]; /* '/mav' */ real32_T params_k[6]; /* '/mode_switch_and_safety' */ real32_T thr_c; /* '/AC_test' */ @@ -1220,14 +1195,14 @@ typedef struct { real32_T hdot_c; /* '/landing_task' */ real32_T as_c; /* '/landing_task' */ real32_T gs_c_h; /* '/landing_task' */ - real32_T phi_c_c; /* '/landing_task' */ - real32_T throttle_c_out_m; /* '/takeoff_task' */ + real32_T phi_c_g; /* '/landing_task' */ + real32_T throttle_c_out_n; /* '/takeoff_task' */ real32_T tht_c; /* '/takeoff_task' */ - real32_T phi_c_ck; /* '/takeoff_task' */ - real32_T as_c_n; /* '/takeoff_task' */ - real32_T gs_c_e; /* '/takeoff_task' */ + real32_T phi_c_l; /* '/takeoff_task' */ + real32_T as_c_k; /* '/takeoff_task' */ + real32_T gs_c_hx; /* '/takeoff_task' */ real32_T de_c; /* '/takeoff_task' */ - real32_T params_kj[7]; /* '/proc_cmd' */ + real32_T params_f[7]; /* '/proc_cmd' */ real32_T Ps; /* '/Data Type Conversion' */ real32_T temp; /* '/Gain2' */ real32_T qbar_bl; /* '/add' */ @@ -1261,78 +1236,78 @@ typedef struct { real32_T Accels_f[3]; /* '/Byte Unpack' */ real32_T pqr_i[3]; /* '/Byte Unpack' */ real32_T imu_temp_j; /* '/Byte Unpack' */ - int32_T ErrCode; /* '/S-Function' */ - int32_T ErrCode_n; /* '/S-Function' */ - int32_T ErrCode_p; /* '/S-Function' */ - int32_T ErrCode_h; /* '/S-Function' */ - int32_T ErrCode_e; /* '/S-Function' */ - int32_T ErrCode_ps; /* '/S-Function' */ - int32_T ErrCode_i; /* '/S-Function' */ - int32_T ErrCode_d; /* '/S-Function' */ - int32_T ErrCode_m; /* '/S-Function' */ - int32_T ErrCode_ph; /* '/S-Function' */ - int32_T ErrCode_o; /* '/S-Function' */ - int32_T ErrCode_l; /* '/S-Function' */ - int32_T ErrCode_on; /* '/S-Function' */ - int32_T ErrCode_no; /* '/S-Function' */ - int32_T ErrCode_g; /* '/S-Function' */ - int32_T ErrCode_b; /* '/S-Function' */ - int32_T ErrCode_dr; /* '/S-Function' */ - int32_T ErrCode_c; /* '/S-Function' */ - int32_T ErrCode_b0; /* '/S-Function' */ - int32_T ErrCode_d2; /* '/S-Function' */ - int32_T ErrCode_gf; /* '/S-Function' */ - int32_T x; /* '/Chart_proc_mission_upload' */ - int32_T y; /* '/Chart_proc_mission_upload' */ - int32_T x_e; /* '/chat_get_mission_item' */ - int32_T y_k; /* '/chat_get_mission_item' */ + int32_T ErrCode; /* '/S-Function' */ + int32_T ErrCode_n; /* '/S-Function' */ + int32_T ErrCode_p; /* '/S-Function' */ + int32_T ErrCode_h; /* '/S-Function' */ + int32_T ErrCode_e; /* '/S-Function' */ + int32_T ErrCode_ps; /* '/S-Function' */ + int32_T ErrCode_i; /* '/S-Function' */ + int32_T ErrCode_d; /* '/S-Function' */ + int32_T ErrCode_m; /* '/S-Function' */ + int32_T ErrCode_ph; /* '/S-Function' */ + int32_T ErrCode_o; /* '/S-Function' */ + int32_T ErrCode_l; /* '/S-Function' */ + int32_T ErrCode_on; /* '/S-Function' */ + int32_T ErrCode_no; /* '/S-Function' */ + int32_T ErrCode_g; /* '/S-Function' */ + int32_T ErrCode_b; /* '/S-Function' */ + int32_T ErrCode_dr; /* '/S-Function' */ + int32_T ErrCode_c; /* '/S-Function' */ + int32_T ErrCode_b0; /* '/S-Function' */ + int32_T ErrCode_d2; /* '/S-Function' */ + int32_T ErrCode_gf; /* '/S-Function' */ + int32_T x; /* '/Chart_proc_mission_upload' */ + int32_T y; /* '/Chart_proc_mission_upload' */ + int32_T x_e; /* '/chat_get_mission_item' */ + int32_T y_k; /* '/chat_get_mission_item' */ int32_T Ps_a; /* '/Byte Unpack' */ int32_T Qbar; /* '/Byte Unpack' */ ENUM_mode mode; /* '/waypoint_task' */ - ENUM_mode mode_n; /* '/waypoint_task' */ - ENUM_mode mode_c; /* '/landing_task' */ - ENUM_mode mode_l; /* '/takeoff_task' */ + ENUM_mode mode_l; /* '/waypoint_task' */ + ENUM_mode mode_g; /* '/landing_task' */ + ENUM_mode mode_b; /* '/takeoff_task' */ ENUM_VTOL_STATE vtol_state; /* '/takeoff_task' */ ENUM_SystemState state; /* '/takeoff_task' */ ENUM_LANDED_STATE landed_state_out; /* '/waypoint_task' */ - ENUM_LANDED_STATE landed_state_out_f;/* '/waypoint_task' */ + ENUM_LANDED_STATE landed_state_out_a;/* '/waypoint_task' */ ENUM_LANDED_STATE landed_state; /* '/landing_task' */ - ENUM_LANDED_STATE landed_state_p; /* '/takeoff_task' */ - ENUM_LANDED_STATE landed_state_out_k;/* '/Chart' */ + ENUM_LANDED_STATE landed_state_f; /* '/takeoff_task' */ + ENUM_LANDED_STATE landed_state_out_i;/* '/Chart' */ ENUM_CSAS_YAW CSAS_yaw_out; /* '/waypoint_task' */ ENUM_CSAS_YAW yaw_mode; /* '/rudder_stim' */ ENUM_CSAS_YAW yaw_mode_i; /* '/doublet1' */ ENUM_CSAS_YAW yaw_mode_p; /* '/doublet1' */ - ENUM_CSAS_YAW CSAS_yaw_out_i; /* '/waypoint_task' */ + ENUM_CSAS_YAW CSAS_yaw_out_m; /* '/waypoint_task' */ ENUM_CSAS_YAW CSAS_yaw; /* '/landing_task' */ - ENUM_CSAS_YAW CSAS_yaw_p; /* '/takeoff_task' */ + ENUM_CSAS_YAW CSAS_yaw_a; /* '/takeoff_task' */ ENUM_CSAS_ROLL CSAS_roll_out; /* '/waypoint_task' */ ENUM_CSAS_ROLL roll_mode; /* '/AC_test' */ ENUM_CSAS_ROLL roll_mode_a; /* '/rudder_stim' */ ENUM_CSAS_ROLL roll_mode_m; /* '/turning_back' */ ENUM_CSAS_ROLL roll_mode_d; /* '/doublet1' */ ENUM_CSAS_ROLL roll_mode_ac; /* '/doublet1' */ - ENUM_CSAS_ROLL CSAS_roll_out_o; /* '/waypoint_task' */ + ENUM_CSAS_ROLL CSAS_roll_out_j; /* '/waypoint_task' */ ENUM_CSAS_ROLL CSAS_roll; /* '/landing_task' */ ENUM_CSAS_ROLL CSAS_roll_o; /* '/takeoff_task' */ ENUM_CSAS_PITCH CSAS_pitch_out; /* '/waypoint_task' */ ENUM_CSAS_PITCH pitch_mode; /* '/doublet1' */ - ENUM_CSAS_PITCH CSAS_pitch_out_m; /* '/waypoint_task' */ + ENUM_CSAS_PITCH CSAS_pitch_out_j; /* '/waypoint_task' */ ENUM_CSAS_PITCH CSAS_pitch; /* '/landing_task' */ - ENUM_CSAS_PITCH CSAS_pitch_j; /* '/takeoff_task' */ + ENUM_CSAS_PITCH CSAS_pitch_e; /* '/takeoff_task' */ ENUM_AT AT_out; /* '/waypoint_task' */ ENUM_AT AT; /* '/AC_test' */ ENUM_AT AT_l; /* '/AC_test' */ - ENUM_AT AT_out_h; /* '/waypoint_task' */ - ENUM_AT AT_j; /* '/landing_task' */ + ENUM_AT AT_out_g; /* '/waypoint_task' */ + ENUM_AT AT_c; /* '/landing_task' */ ENUM_AT AT_i; /* '/takeoff_task' */ ENUM_AFCS_VERT AFCS_VERT_out; /* '/waypoint_task' */ ENUM_AFCS_VERT vert_mode; /* '/AC_test' */ ENUM_AFCS_VERT vert_mode_m; /* '/doublet1' */ ENUM_AFCS_VERT vert_mode_a; /* '/AC_test' */ - ENUM_AFCS_VERT AFCS_VERT_out_m; /* '/waypoint_task' */ + ENUM_AFCS_VERT AFCS_VERT_out_h; /* '/waypoint_task' */ ENUM_AFCS_VERT AFCS_VERT; /* '/landing_task' */ - ENUM_AFCS_VERT AFCS_VERT_f; /* '/takeoff_task' */ + ENUM_AFCS_VERT AFCS_VERT_n; /* '/takeoff_task' */ ENUM_AFCS_LAT AFCS_LAT_out; /* '/waypoint_task' */ ENUM_AFCS_LAT lat_mode; /* '/AC_test' */ ENUM_AFCS_LAT lat_mode_c; /* '/rudder_stim' */ @@ -1341,14 +1316,14 @@ typedef struct { ENUM_AFCS_LAT lat_mode_a; /* '/doublet1' */ ENUM_AFCS_LAT AFCS_LAT_out_j; /* '/waypoint_task' */ ENUM_AFCS_LAT AFCS_LAT; /* '/landing_task' */ - ENUM_AFCS_LAT AFCS_LAT_h; /* '/takeoff_task' */ + ENUM_AFCS_LAT AFCS_LAT_p; /* '/takeoff_task' */ uint16_T UnitDelay_m; /* '/Unit Delay' */ uint16_T len; /* '/Merge' */ - uint16_T hal_rec_o2; /* '/hal_rec' */ - uint16_T Sum_pr; /* '/Sum' */ + uint16_T hal_rec_o2; /* '/hal_rec' */ + uint16_T Sum_pr; /* '/Sum' */ uint16_T INS_monitor_in[5]; uint16_T TmpSignalConversionAtBytePackInport5_g[3]; - uint16_T Subtract_p; /* '/Subtract' */ + uint16_T Subtract_p; /* '/Subtract' */ uint16_T DataTypeConversion[20]; /* '/Data Type Conversion' */ uint16_T DataTypeConversion1_p; /* '/Data Type Conversion1' */ uint16_T DataTypeConversion10; /* '/Data Type Conversion10' */ @@ -1359,32 +1334,32 @@ typedef struct { uint16_T DataTypeConversion7; /* '/Data Type Conversion7' */ uint16_T DataTypeConversion8; /* '/Data Type Conversion8' */ uint16_T DataTypeConversion9; /* '/Data Type Conversion9' */ - uint16_T idx; /* '/proc_param_value' */ - uint16_T param_cnt; /* '/find_val_capi' */ - uint16_T param_index; /* '/find_val_capi' */ - uint16_T set_cur; /* '/req_cur' */ - uint16_T seq; /* '/Chart_proc_mission_upload' */ - uint16_T command; /* '/Chart_proc_mission_upload' */ - uint16_T channels[18]; /* '/BusConversion_InsertedFor_rc_at_inport_0' */ - uint16_T channels_e[18]; /* '/BusConversion_InsertedFor_rc_at_inport_0' */ - uint16_T cnt; /* '/chat_get_mission_cnt' */ - uint16_T req_cur; /* '/Chart' */ - uint16_T seq_m; /* '/Chart_proc_mission_req' */ - uint16_T command_a; /* '/chat_get_mission_item' */ - uint16_T resp; /* '/Chart_proc_param_set' */ - uint16_T resp_g; /* '/Chart' */ - uint16_T resp_e; /* '/Chart_proc_param_req_read' */ - uint16_T width_p; /* '/Width' */ - uint16_T TmpSignalConversionAtSFunctionInport3[79];/* '/Chart' */ + uint16_T idx; /* '/proc_param_value' */ + uint16_T param_cnt; /* '/find_val_capi' */ + uint16_T param_index; /* '/find_val_capi' */ + uint16_T set_cur; /* '/req_cur' */ + uint16_T seq; /* '/Chart_proc_mission_upload' */ + uint16_T command; /* '/Chart_proc_mission_upload' */ + uint16_T channels[18]; /* '/BusConversion_InsertedFor_rc_at_inport_0' */ + uint16_T channels_e[18]; /* '/BusConversion_InsertedFor_rc_at_inport_0' */ + uint16_T cnt; /* '/chat_get_mission_cnt' */ + uint16_T req_cur; /* '/Chart' */ + uint16_T seq_m; /* '/Chart_proc_mission_req' */ + uint16_T command_a; /* '/chat_get_mission_item' */ + uint16_T resp; /* '/Chart_proc_param_set' */ + uint16_T resp_g; /* '/Chart' */ + uint16_T resp_e; /* '/Chart_proc_param_req_read' */ + uint16_T width_p; /* '/Width' */ + uint16_T TmpSignalConversionAtSFunctionInport3[79];/* '/Chart' */ uint16_T last_WP; /* '/mission_proc' */ uint16_T mission_mode; /* '/mission_proc' */ uint16_T cur_np; /* '/mission_proc' */ uint16_T command_j; /* '/mav' */ uint16_T WP_out; /* '/waypoint_task' */ - uint16_T WP_out_h; /* '/waypoint_task' */ - uint16_T WP_out_c; /* '/landing_task' */ - uint16_T WP_out_j; /* '/takeoff_task' */ - uint16_T WP_out_n; /* '/Chart' */ + uint16_T WP_out_j; /* '/waypoint_task' */ + uint16_T WP_out_o; /* '/landing_task' */ + uint16_T WP_out_a; /* '/takeoff_task' */ + uint16_T WP_out_l; /* '/Chart' */ uint16_T WP_cur; /* '/proc_set_ cur' */ uint16_T id; /* '/proc_cmd' */ uint16_T err_hdr; /* '/parser' */ @@ -1421,9 +1396,9 @@ typedef struct { uint16_T good_f; /* '/parser' */ uint16_T msg_len_g; /* '/parser' */ uint16_T steer_raw; /* '/Byte Unpack' */ - uint16_T OutportBuffer_InsertedFor_gps_hdg_status_at_inport_0;/* '/Constant' */ - int16_T param_idx; /* '/set_val_capi' */ - int16_T param_idx_b; /* '/find_idx_capi' */ + uint16_T OutportBuffer_InsertedFor_gps_hdg_status_at_inport_0;/* '/Constant' */ + int16_T param_idx; /* '/set_val_capi' */ + int16_T param_idx_b; /* '/find_idx_capi' */ int16_T sel; /* '/mode_switch_and_safety' */ int16_T cmd_out; /* '/AC_test' */ int16_T cmd_out_m; /* '/rudder_stim' */ @@ -1443,83 +1418,83 @@ typedef struct { int16_T Temp_qbar; /* '/Byte Unpack' */ int16_T ByteUnpack_o5[2]; /* '/Byte Unpack' */ uint8_T SumofElements_d; /* '/Sum of Elements' */ - uint8_T seq_p; /* '/record_traffic_ctrl' */ - uint8_T TmpSignalConversionAtBytePackInport3_osd[11]; - uint8_T BytePack[111]; /* '/Byte Pack' */ - uint8_T TmpSignalConversionAtSFunctionInport1_m[116]; - uint8_T BytePack_i[172]; /* '/Byte Pack' */ + uint8_T seq_a; /* '/record_traffic_ctrl' */ + uint8_T TmpSignalConversionAtBytePackInport3_osd[12]; + uint8_T BytePack[112]; /* '/Byte Pack' */ + uint8_T TmpSignalConversionAtSFunctionInport1_m[117]; + uint8_T BytePack_i[172]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_h[177]; - uint8_T BytePack_k[189]; /* '/Byte Pack' */ + uint8_T BytePack_k[189]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_p[194]; - uint8_T BytePack_m[84]; /* '/Byte Pack' */ + uint8_T BytePack_m[84]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_b[89]; - uint8_T BytePack_a[55]; /* '/Byte Pack' */ + uint8_T BytePack_a[55]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_o[60]; - uint8_T BytePack_f[25]; /* '/Byte Pack' */ + uint8_T BytePack_f[25]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_hb[30]; - uint8_T BytePack_mc[40]; /* '/Byte Pack' */ + uint8_T BytePack_mc[40]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_j[45]; - uint8_T BytePack_d[68]; /* '/Byte Pack' */ + uint8_T BytePack_d[68]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_f[73]; - uint8_T BytePack_mw[60]; /* '/Byte Pack' */ + uint8_T BytePack_mw[60]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_e[65]; - uint8_T hal_rec_o1[256]; /* '/hal_rec' */ + uint8_T hal_rec_o1[256]; /* '/hal_rec' */ uint8_T TmpSignalConversionAtSFunctionInport1_l[260]; - uint8_T BytePack_ap[228]; /* '/Byte Pack' */ + uint8_T BytePack_ap[228]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_jf[233]; uint8_T TmpSignalConversionAtBytePackInport6[2]; uint8_T TmpSignalConversionAtBytePackInport8[16]; - uint8_T BytePack_j[98]; /* '/Byte Pack' */ - uint8_T TmpSignalConversionAtSFunctionInport1_ly[103]; - uint8_T BytePack_ab[68]; /* '/Byte Pack' */ + uint8_T BytePack_j[102]; /* '/Byte Pack' */ + uint8_T TmpSignalConversionAtSFunctionInport1_ly[107]; + uint8_T BytePack_ab[68]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_fg[73]; - uint8_T BytePack_o[72]; /* '/Byte Pack' */ + uint8_T BytePack_o[72]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_k[77]; - uint8_T BytePack_j4[14]; /* '/Byte Pack' */ + uint8_T BytePack_j4[14]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_g[19]; - uint8_T BytePack_g[55]; /* '/Byte Pack' */ + uint8_T BytePack_g[55]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_a[60]; - uint8_T BytePack_fo[25]; /* '/Byte Pack' */ + uint8_T BytePack_fo[25]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_kt[30]; - uint8_T BytePack_ob[30]; /* '/Byte Pack' */ + uint8_T BytePack_ob[30]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_pf[35]; - uint8_T BytePack_b[40]; /* '/Byte Pack' */ + uint8_T BytePack_b[40]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_n[45]; - uint8_T BytePack_e[68]; /* '/Byte Pack' */ + uint8_T BytePack_e[68]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_c[73]; - uint8_T BytePack_jw[60]; /* '/Byte Pack' */ + uint8_T BytePack_jw[60]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_ov[65]; - uint8_T Switch; /* '/Switch' */ - uint8_T stage; /* '/status_mgr' */ + uint8_T Switch; /* '/Switch' */ + uint8_T stage; /* '/status_mgr' */ uint8_T DataTypeConversion_m; /* '/Data Type Conversion' */ - uint8_T SFunction1_o1[70]; /* '/S-Function1' */ - uint8_T SFunction1_o2; /* '/S-Function1' */ - uint8_T u[4]; /* '/proc_param_value' */ - uint8_T param_name[16]; /* '/find_val_capi' */ - uint8_T param_value[4]; /* '/find_val_capi' */ - uint8_T param_type; /* '/find_val_capi' */ - uint8_T mission_type; /* '/Chart_proc_mission_upload' */ - uint8_T frame; /* '/Chart_proc_mission_upload' */ - uint8_T autocontinue; /* '/Chart_proc_mission_upload' */ - uint8_T ack_e; /* '/chat_clear_mission' */ - uint8_T ack_g; /* '/chat_update_mission_item' */ - uint8_T id_h; /* '/Signal Copy' */ - uint8_T seq_j; /* '/Unit Delay' */ - uint8_T mission_type_i; /* '/Chart_proc_mission_clr_all' */ - uint8_T ack_dm; /* '/chat_clear_mission' */ - uint8_T type; /* '/Chart_proc_mission_req_lst' */ - uint8_T type_f; /* '/Chart_proc_mission_req' */ - uint8_T ack_f; /* '/chat_get_mission_item' */ - uint8_T frame_m; /* '/chat_get_mission_item' */ - uint8_T autocont; /* '/chat_get_mission_item' */ - uint8_T name[16]; /* '/Chart_proc_param_set' */ - uint8_T value[4]; /* '/Chart_proc_param_set' */ - uint8_T type_i; /* '/Chart_proc_param_set' */ - uint8_T BytePack_bv[4]; /* '/Byte Pack' */ - uint8_T name_h[16]; /* '/Chart_proc_param_req_read' */ - uint8_T mav_char_in; /* '/Selector' */ - uint8_T BitwiseOperator; /* '/Bitwise Operator' */ - uint8_T DataTypeConversion_c; /* '/Data Type Conversion' */ + uint8_T SFunction1_o1[70]; /* '/S-Function1' */ + uint8_T SFunction1_o2; /* '/S-Function1' */ + uint8_T u[4]; /* '/proc_param_value' */ + uint8_T param_name[16]; /* '/find_val_capi' */ + uint8_T param_value[4]; /* '/find_val_capi' */ + uint8_T param_type; /* '/find_val_capi' */ + uint8_T mission_type; /* '/Chart_proc_mission_upload' */ + uint8_T frame; /* '/Chart_proc_mission_upload' */ + uint8_T autocontinue; /* '/Chart_proc_mission_upload' */ + uint8_T ack_ej; /* '/chat_clear_mission' */ + uint8_T ack_g; /* '/chat_update_mission_item' */ + uint8_T id_h; /* '/Signal Copy' */ + uint8_T seq_j; /* '/Unit Delay' */ + uint8_T mission_type_i; /* '/Chart_proc_mission_clr_all' */ + uint8_T ack_d; /* '/chat_clear_mission' */ + uint8_T type; /* '/Chart_proc_mission_req_lst' */ + uint8_T type_f; /* '/Chart_proc_mission_req' */ + uint8_T ack_f; /* '/chat_get_mission_item' */ + uint8_T frame_m; /* '/chat_get_mission_item' */ + uint8_T autocont; /* '/chat_get_mission_item' */ + uint8_T name[16]; /* '/Chart_proc_param_set' */ + uint8_T value[4]; /* '/Chart_proc_param_set' */ + uint8_T type_i; /* '/Chart_proc_param_set' */ + uint8_T BytePack_bv[4]; /* '/Byte Pack' */ + uint8_T name_h[16]; /* '/Chart_proc_param_req_read' */ + uint8_T mav_char_in; /* '/Selector' */ + uint8_T BitwiseOperator; /* '/Bitwise Operator' */ + uint8_T DataTypeConversion_c; /* '/Data Type Conversion' */ uint8_T data[64]; /* '/parser' */ uint8_T msg_seq; /* '/parser' */ uint8_T data_o[96]; /* '/parser' */ @@ -1550,50 +1525,50 @@ typedef struct { boolean_T NOT1; /* '/NOT1' */ boolean_T NOT; /* '/NOT' */ boolean_T NOT2; /* '/NOT2' */ - boolean_T NOT_c; /* '/NOT' */ - boolean_T NOT1_h; /* '/NOT1' */ - boolean_T NOT2_a; /* '/NOT2' */ - boolean_T NOT3_h; /* '/NOT3' */ - boolean_T NOT4_m; /* '/NOT4' */ - boolean_T NOT5; /* '/NOT5' */ - boolean_T NOT6; /* '/NOT6' */ - boolean_T NOT7; /* '/NOT7' */ - boolean_T NOT8; /* '/NOT8' */ - boolean_T NOT9; /* '/NOT9' */ - boolean_T NOT10; /* '/NOT10' */ - boolean_T NOT12; /* '/NOT12' */ - boolean_T NOT13; /* '/NOT13' */ - boolean_T NOT14; /* '/NOT14' */ - boolean_T NOT11; /* '/NOT11' */ - boolean_T NOT15; /* '/NOT15' */ - boolean_T LogicalOperator2; /* '/Logical Operator2' */ - boolean_T HiddenBuf_InsertedFor_Distanceintogustx_at_inport_1;/* '/Logical Operator2' */ - boolean_T LogicalOperator1; /* '/Logical Operator1' */ - boolean_T HiddenBuf_InsertedFor_Distanceintogusty_at_inport_1;/* '/Logical Operator1' */ - boolean_T LogicalOperator3; /* '/Logical Operator3' */ - boolean_T HiddenBuf_InsertedFor_Distanceintogustz_at_inport_1;/* '/Logical Operator3' */ - boolean_T LogicalOperator2_m; /* '/Logical Operator2' */ - boolean_T HiddenBuf_InsertedFor_Distanceintogustx_at_inport_1_a;/* '/Logical Operator2' */ - boolean_T LogicalOperator1_h; /* '/Logical Operator1' */ - boolean_T HiddenBuf_InsertedFor_Distanceintogusty_at_inport_1_g;/* '/Logical Operator1' */ - boolean_T LogicalOperator3_l; /* '/Logical Operator3' */ - boolean_T HiddenBuf_InsertedFor_Distanceintogustz_at_inport_1_j;/* '/Logical Operator3' */ - boolean_T LogicalOperator; /* '/Logical Operator' */ - boolean_T enabled; /* '/tick' */ - boolean_T enabled_b; /* '/tick' */ - boolean_T enabled_o; /* '/tick' */ - boolean_T enabled_f; /* '/tick' */ - boolean_T enabled_h; /* '/tick' */ - boolean_T enabled_hj; /* '/tick' */ - boolean_T enabled_p; /* '/tick' */ - boolean_T enabled_fu; /* '/tick' */ - boolean_T reset; /* '/status_mgr' */ - boolean_T hdg_ariv; /* '/Chart' */ - boolean_T valid_a; /* '/check_gps_valid' */ - boolean_T enable_cnt; /* '/Chart_proc_mission_upload' */ - boolean_T enable_item; /* '/Chart_proc_mission_upload' */ - boolean_T valid_o; /* '/true' */ - boolean_T mav_found; /* '/mav_parser' */ + boolean_T NOT_c; /* '/NOT' */ + boolean_T NOT1_h; /* '/NOT1' */ + boolean_T NOT2_a; /* '/NOT2' */ + boolean_T NOT3_h; /* '/NOT3' */ + boolean_T NOT4_m; /* '/NOT4' */ + boolean_T NOT5; /* '/NOT5' */ + boolean_T NOT6; /* '/NOT6' */ + boolean_T NOT7; /* '/NOT7' */ + boolean_T NOT8; /* '/NOT8' */ + boolean_T NOT9; /* '/NOT9' */ + boolean_T NOT10; /* '/NOT10' */ + boolean_T NOT12; /* '/NOT12' */ + boolean_T NOT13; /* '/NOT13' */ + boolean_T NOT14; /* '/NOT14' */ + boolean_T NOT11; /* '/NOT11' */ + boolean_T NOT15; /* '/NOT15' */ + boolean_T LogicalOperator2; /* '/Logical Operator2' */ + boolean_T HiddenBuf_InsertedFor_Distanceintogustx_at_inport_1;/* '/Logical Operator2' */ + boolean_T LogicalOperator1; /* '/Logical Operator1' */ + boolean_T HiddenBuf_InsertedFor_Distanceintogusty_at_inport_1;/* '/Logical Operator1' */ + boolean_T LogicalOperator3; /* '/Logical Operator3' */ + boolean_T HiddenBuf_InsertedFor_Distanceintogustz_at_inport_1;/* '/Logical Operator3' */ + boolean_T LogicalOperator2_m; /* '/Logical Operator2' */ + boolean_T HiddenBuf_InsertedFor_Distanceintogustx_at_inport_1_a;/* '/Logical Operator2' */ + boolean_T LogicalOperator1_h; /* '/Logical Operator1' */ + boolean_T HiddenBuf_InsertedFor_Distanceintogusty_at_inport_1_g;/* '/Logical Operator1' */ + boolean_T LogicalOperator3_l; /* '/Logical Operator3' */ + boolean_T HiddenBuf_InsertedFor_Distanceintogustz_at_inport_1_j;/* '/Logical Operator3' */ + boolean_T LogicalOperator; /* '/Logical Operator' */ + boolean_T enabled; /* '/tick' */ + boolean_T enabled_b; /* '/tick' */ + boolean_T enabled_o; /* '/tick' */ + boolean_T enabled_f; /* '/tick' */ + boolean_T enabled_h; /* '/tick' */ + boolean_T enabled_hj; /* '/tick' */ + boolean_T enabled_p; /* '/tick' */ + boolean_T enabled_fu; /* '/tick' */ + boolean_T reset; /* '/status_mgr' */ + boolean_T hdg_ariv; /* '/Chart' */ + boolean_T valid_a; /* '/check_gps_valid' */ + boolean_T enable_cnt; /* '/Chart_proc_mission_upload' */ + boolean_T enable_item; /* '/Chart_proc_mission_upload' */ + boolean_T valid_o; /* '/true' */ + boolean_T mav_found; /* '/mav_parser' */ boolean_T valid_h; /* '/valid_checking' */ boolean_T ac; /* '/mission_proc' */ boolean_T Merge_a5; /* '/Merge' */ @@ -1603,28 +1578,26 @@ typedef struct { boolean_T brake_c_out; /* '/waypoint_task' */ boolean_T use_da2dsp_out; /* '/turning_back' */ boolean_T use_da2dsp_out_e; /* '/turning_limit' */ - boolean_T use_mission_traj_g; /* '/waypoint_task' */ - boolean_T brake_c_out_c; /* '/waypoint_task' */ - boolean_T use_mission_traj_a; /* '/landing_task' */ + boolean_T use_mission_traj_i; /* '/waypoint_task' */ + boolean_T brake_c_out_n; /* '/waypoint_task' */ + boolean_T use_mission_traj_m; /* '/landing_task' */ boolean_T gear_up_c_out; /* '/landing_task' */ boolean_T brake_c; /* '/landing_task' */ - boolean_T use_mission_traj_k; /* '/takeoff_task' */ + boolean_T use_mission_traj_c; /* '/takeoff_task' */ boolean_T brake_c_i; /* '/takeoff_task' */ boolean_T gear_up_c; /* '/takeoff_task' */ boolean_T takeoff_cmd_out; /* '/takeoff_task' */ boolean_T armed_out; /* '/manual_arm_disarm' */ boolean_T recovery; /* '/standby_emergency' */ - boolean_T standby_e; /* '/manual_arm_disarm' */ + boolean_T standby_p; /* '/manual_arm_disarm' */ boolean_T xbit_o; /* '/manual_arm_disarm' */ - boolean_T armed_out_p; /* '/manual_arm_disarm' */ + boolean_T armed_out_b; /* '/manual_arm_disarm' */ boolean_T valid_k; /* '/valid_checking' */ - boolean_T ack_n; /* '/proc_cmd' */ + boolean_T ack_e2; /* '/proc_cmd' */ boolean_T WOW[3]; boolean_T Compare; /* '/Compare' */ boolean_T Compare_i; /* '/Compare' */ boolean_T Compare_l; /* '/Compare' */ - B_throttle_cr929_SIL_T throttle1; /* '/throttle1' */ - B_throttle_cr929_SIL_T throttle; /* '/throttle' */ B_sbg_ecom_log_nav_data_frame_cr929_SIL_T sbg_ecom_log_nav_data_frame_g;/* '/sbg_ecom_log_nav_data_frame' */ B_sbg_ecom_log_euler_data_frame_cr929_SIL_T sbg_ecom_log_euler_data_frame_c;/* '/sbg_ecom_log_euler_data_frame' */ B_sbg_ecom_log_nav_data_frame_cr929_SIL_T sbg_ecom_log_nav_data_frame;/* '/sbg_ecom_log_nav_data_frame' */ @@ -1641,86 +1614,90 @@ typedef struct { /* Block states (default storage) for system '' */ typedef struct { C2 CC; /* '/Data Store Memory' */ - mavlink_message_t msgs_msgData; /* '/proc_queue' */ - mavlink_message_t msgs_msgData_l; /* '/push2msgs' */ + mavlink_message_t msgs_msgData; /* '/proc_queue' */ + mavlink_message_t msgs_msgData_l; /* '/push2msgs' */ Sensors sens; /* '/Data Store Memory' */ ExtY_FlightControlLaw_T UnitDelay_DSTATE;/* '/Unit Delay' */ - mavlink_serial_control_t send_echo_msgData;/* '/Chart_send_serial_control' */ - mavlink_serial_control_t serial_echoline_msgData;/* '/traffic_ctrl' */ - mavlink_autopilot_version_t ap_ver_msgData;/* '/send_auto_hw' */ - mavlink_autopilot_version_t ap_ver_queue_msgData;/* '/traffic_ctrl' */ - mavlink_mission_item_int_t mission_item_msgData;/* '/Chart_proc_mission_upload' */ - mavlink_mission_item_int_t send_req_msgData;/* '/Chart' */ - mavlink_mission_item_int_t send_item_msgData;/* '/Chart_proc_mission_req' */ - mavlink_mission_item_int_t mission_item_int_queue_msgData;/* '/traffic_ctrl' */ - MavMission m; /* '/chat_update_mission_item' */ - CommandMsg msg_msgData; /* '/send_cmd' */ + mavlink_serial_control_t send_echo_msgData;/* '/Chart_send_serial_control' */ + mavlink_serial_control_t serial_echoline_msgData;/* '/traffic_ctrl' */ + mavlink_autopilot_version_t ap_ver_msgData;/* '/send_auto_hw' */ + mavlink_autopilot_version_t ap_ver_queue_msgData;/* '/traffic_ctrl' */ + mavlink_mission_item_int_t mission_item_msgData;/* '/Chart_proc_mission_upload' */ + mavlink_mission_item_int_t send_req_msgData;/* '/Chart' */ + mavlink_mission_item_int_t send_item_msgData;/* '/Chart_proc_mission_req' */ + mavlink_mission_item_int_t mission_item_int_queue_msgData;/* '/traffic_ctrl' */ + MavMission m; /* '/chat_update_mission_item' */ + CommandMsg msg_msgData; /* '/send_cmd' */ CommandMsg cmd_msgData; /* '/mission_proc' */ CommandMsg cmd_msgData_k; /* '/proc_cmd' */ CommandMsg cmd2_msgData; /* '/proc_cmd' */ - mavlink_param_value_t msg_msgData_h; /* '/proc_param_value' */ - mavlink_param_value_t param_val_queue_msgData;/* '/traffic_ctrl' */ - mavlink_command_ack_t command_ack_queue_msgData;/* '/traffic_ctrl' */ - mavlink_command_ack_t send_ack_msgData;/* '/Chart_send_ack' */ - MavFence f; /* '/chat_update_mission_item' */ - MavRally r; /* '/chat_update_mission_item' */ + mavlink_param_value_t msg_msgData_h; /* '/proc_param_value' */ + mavlink_param_value_t param_val_queue_msgData;/* '/traffic_ctrl' */ + mavlink_command_ack_t command_ack_queue_msgData;/* '/traffic_ctrl' */ + mavlink_command_ack_t send_ack_msgData;/* '/Chart_send_ack' */ + MavFence f; /* '/chat_update_mission_item' */ + MavRally r; /* '/chat_update_mission_item' */ real_T UnitDelay2_1_DSTATE[3]; /* '/Unit Delay2' */ real_T UnitDelay2_4_DSTATE[9]; /* '/Unit Delay2' */ real_T UnitDelay2_11_DSTATE; /* '/Unit Delay2' */ real_T UnitDelay2_12_DSTATE; /* '/Unit Delay2' */ real_T UnitDelay1_DSTATE; /* '/Unit Delay1' */ real_T UnitDelay_DSTATE_d; /* '/Unit Delay' */ - real_T UnitDelay_DSTATE_i[2]; /* '/Unit Delay' */ - real_T UnitDelay_DSTATE_e[2]; /* '/Unit Delay' */ - real_T UnitDelay_DSTATE_h[2]; /* '/Unit Delay' */ - real_T UnitDelay_DSTATE_k[2]; /* '/Unit Delay' */ - real_T UnitDelay1_DSTATE_c[2]; /* '/Unit Delay1' */ - real_T UnitDelay_DSTATE_m[2]; /* '/Unit Delay' */ - real_T UnitDelay1_DSTATE_l[2]; /* '/Unit Delay1' */ - real_T UnitDelay_DSTATE_g[2]; /* '/Unit Delay' */ - real_T DiscreteTransferFcn_states[6];/* '/Discrete Transfer Fcn' */ - real_T DiscreteTransferFcn_states_a[6];/* '/Discrete Transfer Fcn' */ - real_T UnitDelay_DSTATE_a[3]; /* '/Unit Delay' */ - real_T UnitDelay_DSTATE_ev[3]; /* '/Unit Delay' */ + real_T UnitDelay_DSTATE_i[2]; /* '/Unit Delay' */ + real_T UnitDelay_DSTATE_e[2]; /* '/Unit Delay' */ + real_T UnitDelay_DSTATE_h[2]; /* '/Unit Delay' */ + real_T UnitDelay_DSTATE_k[2]; /* '/Unit Delay' */ + real_T UnitDelay1_DSTATE_c[2]; /* '/Unit Delay1' */ + real_T UnitDelay_DSTATE_m[2]; /* '/Unit Delay' */ + real_T UnitDelay1_DSTATE_l[2]; /* '/Unit Delay1' */ + real_T UnitDelay_DSTATE_g[2]; /* '/Unit Delay' */ + real_T Delay_DSTATE; /* '/Delay' */ + real_T UnitDelay_DSTATE_a; /* '/Unit Delay' */ + real_T Delay_DSTATE_k; /* '/Delay' */ + real_T UnitDelay_DSTATE_c; /* '/Unit Delay' */ + real_T DiscreteTransferFcn_states[6];/* '/Discrete Transfer Fcn' */ + real_T DiscreteTransferFcn_states_a[6];/* '/Discrete Transfer Fcn' */ + real_T UnitDelay_DSTATE_ai[3]; /* '/Unit Delay' */ + real_T UnitDelay_DSTATE_ev[3]; /* '/Unit Delay' */ real_T PrevY; /* '/Backlash1' */ real_T PrevY_e; /* '/Backlash8' */ real_T PrevY_c; /* '/Backlash2' */ - real_T PrevY_d; /* '/Backlash6' */ - real_T PrevY_b; /* '/Backlash1' */ - real_T PrevY_ex; /* '/Backlash2' */ - real_T PrevY_o; /* '/Backlash3' */ - real_T PrevY_k; /* '/Backlash4' */ - real_T PrevY_j; /* '/Backlash5' */ - real_T PrevY_p; /* '/Backlash7' */ - real_T PrevY_f; /* '/Backlash8' */ - real_T PrevY_g; /* '/Backlash9' */ - real_T PrevY_ja; /* '/Backlash10' */ - real_T PrevY_kb; /* '/Backlash12' */ - real_T PrevY_ox; /* '/Backlash11' */ - real_T PrevY_h; /* '/Backlash13' */ - real_T PrevY_hp; /* '/Backlash14' */ - real_T PrevY_bz; /* '/Backlash15' */ - real_T PrevY_ko; /* '/Backlash16' */ + real_T PrevY_d; /* '/Backlash6' */ + real_T PrevY_b; /* '/Backlash1' */ + real_T PrevY_ex; /* '/Backlash2' */ + real_T PrevY_o; /* '/Backlash3' */ + real_T PrevY_k; /* '/Backlash4' */ + real_T PrevY_j; /* '/Backlash5' */ + real_T PrevY_p; /* '/Backlash7' */ + real_T PrevY_f; /* '/Backlash8' */ + real_T PrevY_g; /* '/Backlash9' */ + real_T PrevY_ja; /* '/Backlash10' */ + real_T PrevY_kb; /* '/Backlash12' */ + real_T PrevY_ox; /* '/Backlash11' */ + real_T PrevY_h; /* '/Backlash13' */ + real_T PrevY_hp; /* '/Backlash14' */ + real_T PrevY_bz; /* '/Backlash15' */ + real_T PrevY_ko; /* '/Backlash16' */ real_T PrevY_i; /* '/Backlash5' */ real_T m_bpLambda[3]; /* '/table3D_Cl_b' */ real_T m_bpLambda_i[3]; /* '/table3D_Cl_df' */ real_T Product2_DWORK4[9]; /* '/Product2' */ - real_T NextOutput[4]; /* '/White Noise' */ - real_T DiscreteTransferFcn_tmp[3]; /* '/Discrete Transfer Fcn' */ - real_T DiscreteTransferFcn_tmp_f[3]; /* '/Discrete Transfer Fcn' */ - real_T NextOutput_o; /* '/White Noise' */ - real_T NextOutput_f; /* '/White Noise' */ - real_T qbar0; /* '/zero_set' */ - real_T SFunction_temp_table[8]; /* '/S-Function' */ - real_T SFunction_pres_table[8]; /* '/S-Function' */ - real_T R; /* '/stdatmo' */ - real_T gamma; /* '/stdatmo' */ - real_T g0; /* '/stdatmo' */ - real_T RE; /* '/stdatmo' */ - real_T Bs; /* '/stdatmo' */ - real_T S; /* '/stdatmo' */ - real_T last_lat1_in; /* '/nav_corner' */ - real_T last_lon1_in; /* '/nav_corner' */ + real_T NextOutput[4]; /* '/White Noise' */ + real_T DiscreteTransferFcn_tmp[3]; /* '/Discrete Transfer Fcn' */ + real_T DiscreteTransferFcn_tmp_f[3]; /* '/Discrete Transfer Fcn' */ + real_T NextOutput_o; /* '/White Noise' */ + real_T NextOutput_f; /* '/White Noise' */ + real_T qbar0; /* '/zero_set' */ + real_T SFunction_temp_table[8]; /* '/S-Function' */ + real_T SFunction_pres_table[8]; /* '/S-Function' */ + real_T R; /* '/stdatmo' */ + real_T gamma; /* '/stdatmo' */ + real_T g0; /* '/stdatmo' */ + real_T RE; /* '/stdatmo' */ + real_T Bs; /* '/stdatmo' */ + real_T S; /* '/stdatmo' */ + real_T last_lat1_in; /* '/nav_corner' */ + real_T last_lon1_in; /* '/nav_corner' */ real_T Memory_PreviousInput; /* '/Memory' */ real_T SFunction_temp_table_i[8]; /* '/S-Function' */ real_T SFunction_pres_table_n[8]; /* '/S-Function' */ @@ -1729,24 +1706,24 @@ typedef struct { real_T WGS84GravitySFunction_lambda; /* '/WGS84 Gravity S-Function' */ real_T WGS84GravitySFunction_gamma_h;/* '/WGS84 Gravity S-Function' */ real_T WGS84GravitySFunction_gamma_phi;/* '/WGS84 Gravity S-Function' */ - CommandAck ack_msgData; /* '/Chart_send_ack' */ - CommandAck ack_msgData_l; /* '/proc_cmd' */ - mavlink_mission_count_t mission_cnt_msgData;/* '/Chart_proc_mission_upload' */ - mavlink_mission_count_t send_cnt_msgData;/* '/Chart' */ - mavlink_mission_count_t send_cnt_msgData_p;/* '/Chart_proc_mission_req_lst' */ - mavlink_mission_count_t mission_cnt_queue_msgData;/* '/traffic_ctrl' */ - mavlink_mission_ack_t mission_ack_msgData;/* '/Chart_proc_mission_upload' */ - mavlink_mission_ack_t ack1_msgData; /* '/merge_ack' */ - mavlink_mission_ack_t ack2_msgData; /* '/merge_ack' */ - mavlink_mission_ack_t ack_msgData_b; /* '/merge_ack' */ - mavlink_mission_ack_t ack3_msgData; /* '/merge_ack' */ - mavlink_mission_ack_t send_ack_msgData_c;/* '/Chart_proc_mission_clr_all' */ - mavlink_mission_ack_t send_ack_msgData_l;/* '/Chart_proc_mission_req' */ - mavlink_mission_ack_t mission_ack_queue_msgData;/* '/traffic_ctrl' */ - mavlink_mission_current_t cur_msgData;/* '/req_cur' */ - mavlink_mission_current_t mission_cur_queue_msgData;/* '/traffic_ctrl' */ - mavlink_mission_request_int_t mission_req_int_msgData;/* '/Chart_proc_mission_upload' */ - mavlink_mission_request_int_t mission_req_int_queue_msgData;/* '/traffic_ctrl' */ + CommandAck ack_msgData; /* '/Chart_send_ack' */ + CommandAck ack_msgData_e; /* '/proc_cmd' */ + mavlink_mission_count_t mission_cnt_msgData;/* '/Chart_proc_mission_upload' */ + mavlink_mission_count_t send_cnt_msgData;/* '/Chart' */ + mavlink_mission_count_t send_cnt_msgData_p;/* '/Chart_proc_mission_req_lst' */ + mavlink_mission_count_t mission_cnt_queue_msgData;/* '/traffic_ctrl' */ + mavlink_mission_ack_t mission_ack_msgData;/* '/Chart_proc_mission_upload' */ + mavlink_mission_ack_t ack1_msgData; /* '/merge_ack' */ + mavlink_mission_ack_t ack2_msgData; /* '/merge_ack' */ + mavlink_mission_ack_t ack_msgData_b; /* '/merge_ack' */ + mavlink_mission_ack_t ack3_msgData; /* '/merge_ack' */ + mavlink_mission_ack_t send_ack_msgData_c;/* '/Chart_proc_mission_clr_all' */ + mavlink_mission_ack_t send_ack_msgData_l;/* '/Chart_proc_mission_req' */ + mavlink_mission_ack_t mission_ack_queue_msgData;/* '/traffic_ctrl' */ + mavlink_mission_current_t cur_msgData;/* '/req_cur' */ + mavlink_mission_current_t mission_cur_queue_msgData;/* '/traffic_ctrl' */ + mavlink_mission_request_int_t mission_req_int_msgData;/* '/Chart_proc_mission_upload' */ + mavlink_mission_request_int_t mission_req_int_queue_msgData;/* '/traffic_ctrl' */ Msg_uint16 EntityQueue_InsertedFor_req_cur_at_inport_0_Msg_uint16;/* synthesized block */ Msg_uint16 EntityQueue_InsertedFor_req_cur_at_inport_0_Out1_recvBuffer;/* synthesized block */ Msg_uint16 EntityQueue_InsertedFor_proc_set_cur_at_inport_0_Msg_uint16[10];/* synthesized block */ @@ -1871,146 +1848,147 @@ typedef struct { Queue_mavlink_serial_control_t EntityQueue_InsertedFor_traffic_ctrl_at_inport_10_Queue_mavlink;/* synthesized block */ MemPool_mavlink_serial_control_t slMsgMgr_MemPool_mavlink_serial_control_t;/* synthesized block */ - void* send_echo_msgInterface; /* '/Chart_send_serial_control' */ - void* msg_msgInterface; /* '/proc_param_value' */ - void* param_req_read_msgInterface; /* '/proc_param_value' */ - void* param_req_read_msgHandle; /* '/proc_param_value' */ - void* param_req_read_msgDataPtr; /* '/proc_param_value' */ - void* param_req_lst_msgInterface; /* '/proc_param_value' */ - void* param_req_lst_msgHandle; /* '/proc_param_value' */ - void* param_req_lst_msgDataPtr; /* '/proc_param_value' */ - void* param_set_msgInterface; /* '/proc_param_value' */ - void* param_set_msgHandle; /* '/proc_param_value' */ - void* param_set_msgDataPtr; /* '/proc_param_value' */ - void* req_cur_msgInterface; /* '/req_cur' */ - void* req_cur_msgHandle; /* '/req_cur' */ - void* req_cur_msgDataPtr; /* '/req_cur' */ - void* set_cur_msgInterface; /* '/req_cur' */ - void* cur_msgInterface; /* '/req_cur' */ - void* mission_cnt_msgInterface; /* '/Chart_proc_mission_upload' */ - void* mission_cnt_msgHandle; /* '/Chart_proc_mission_upload' */ - void* mission_cnt_msgDataPtr; /* '/Chart_proc_mission_upload' */ - void* mission_item_msgInterface; /* '/Chart_proc_mission_upload' */ - void* mission_item_msgHandle; /* '/Chart_proc_mission_upload' */ - void* mission_item_msgDataPtr; /* '/Chart_proc_mission_upload' */ - void* mission_req_int_msgInterface; /* '/Chart_proc_mission_upload' */ - void* mission_ack_msgInterface; /* '/Chart_proc_mission_upload' */ - void* ack1_msgInterface; /* '/merge_ack' */ - void* ack1_msgHandle; /* '/merge_ack' */ - void* ack1_msgDataPtr; /* '/merge_ack' */ - void* ack2_msgInterface; /* '/merge_ack' */ - void* ack2_msgHandle; /* '/merge_ack' */ - void* ack2_msgDataPtr; /* '/merge_ack' */ - void* ack_msgInterface; /* '/merge_ack' */ - void* ack3_msgInterface; /* '/merge_ack' */ - void* ack3_msgHandle; /* '/merge_ack' */ - void* ack3_msgDataPtr; /* '/merge_ack' */ - void* msgs_msgInterface; /* '/proc_queue' */ - void* msgs_msgHandle; /* '/proc_queue' */ - void* msgs_msgDataPtr; /* '/proc_queue' */ - void* msg_msgInterface_m; /* '/send_cmd' */ - void* ap_ver_msgInterface; /* '/send_auto_hw' */ - void* send_req_msgInterface; /* '/Chart' */ - void* send_ack_msgInterface; /* '/Chart_proc_mission_clr_all' */ - void* send_cnt_msgInterface; /* '/Chart' */ - void* send_cnt_msgInterface_o; /* '/Chart_proc_mission_req_lst' */ - void* req_cur_msgInterface_i; /* '/Chart' */ - void* send_item_msgInterface; /* '/Chart_proc_mission_req' */ - void* send_ack_msgInterface_a; /* '/Chart_proc_mission_req' */ - void* resp_msgInterface; /* '/Chart_proc_param_set' */ - void* resp_msgInterface_g; /* '/Chart' */ - void* resp_msgInterface_i; /* '/Chart_proc_param_req_read' */ - void* msgs_msgInterface_k; /* '/push2msgs' */ - void* param_val_queue_msgInterface; /* '/traffic_ctrl' */ - void* param_val_queue_msgHandle; /* '/traffic_ctrl' */ - void* param_val_queue_msgDataPtr; /* '/traffic_ctrl' */ - void* mission_cnt_queue_msgInterface;/* '/traffic_ctrl' */ - void* mission_cnt_queue_msgHandle; /* '/traffic_ctrl' */ - void* mission_cnt_queue_msgDataPtr; /* '/traffic_ctrl' */ - void* mission_req_int_queue_msgInterface;/* '/traffic_ctrl' */ - void* mission_req_int_queue_msgHandle;/* '/traffic_ctrl' */ - void* mission_req_int_queue_msgDataPtr;/* '/traffic_ctrl' */ - void* mission_item_int_queue_msgInterface;/* '/traffic_ctrl' */ - void* mission_item_int_queue_msgHandle;/* '/traffic_ctrl' */ - void* mission_item_int_queue_msgDataPtr;/* '/traffic_ctrl' */ - void* ap_ver_queue_msgInterface; /* '/traffic_ctrl' */ - void* ap_ver_queue_msgHandle; /* '/traffic_ctrl' */ - void* ap_ver_queue_msgDataPtr; /* '/traffic_ctrl' */ - void* mission_ack_queue_msgInterface;/* '/traffic_ctrl' */ - void* mission_ack_queue_msgHandle; /* '/traffic_ctrl' */ - void* mission_ack_queue_msgDataPtr; /* '/traffic_ctrl' */ - void* mission_cur_queue_msgInterface;/* '/traffic_ctrl' */ - void* mission_cur_queue_msgHandle; /* '/traffic_ctrl' */ - void* mission_cur_queue_msgDataPtr; /* '/traffic_ctrl' */ - void* command_ack_queue_msgInterface;/* '/traffic_ctrl' */ - void* command_ack_queue_msgHandle; /* '/traffic_ctrl' */ - void* command_ack_queue_msgDataPtr; /* '/traffic_ctrl' */ - void* serial_echoline_msgInterface; /* '/traffic_ctrl' */ - void* serial_echoline_msgHandle; /* '/traffic_ctrl' */ - void* serial_echoline_msgDataPtr; /* '/traffic_ctrl' */ - void* send_ack_msgInterface_p; /* '/Chart_send_ack' */ - void* ack_msgInterface_j; /* '/Chart_send_ack' */ - void* ack_msgHandle; /* '/Chart_send_ack' */ - void* ack_msgDataPtr; /* '/Chart_send_ack' */ + void* send_echo_msgInterface; /* '/Chart_send_serial_control' */ + void* msg_msgInterface; /* '/proc_param_value' */ + void* param_req_read_msgInterface; /* '/proc_param_value' */ + void* param_req_read_msgHandle; /* '/proc_param_value' */ + void* param_req_read_msgDataPtr; /* '/proc_param_value' */ + void* param_req_lst_msgInterface; /* '/proc_param_value' */ + void* param_req_lst_msgHandle; /* '/proc_param_value' */ + void* param_req_lst_msgDataPtr; /* '/proc_param_value' */ + void* param_set_msgInterface; /* '/proc_param_value' */ + void* param_set_msgHandle; /* '/proc_param_value' */ + void* param_set_msgDataPtr; /* '/proc_param_value' */ + void* req_cur_msgInterface; /* '/req_cur' */ + void* req_cur_msgHandle; /* '/req_cur' */ + void* req_cur_msgDataPtr; /* '/req_cur' */ + void* set_cur_msgInterface; /* '/req_cur' */ + void* cur_msgInterface; /* '/req_cur' */ + void* mission_cnt_msgInterface; /* '/Chart_proc_mission_upload' */ + void* mission_cnt_msgHandle; /* '/Chart_proc_mission_upload' */ + void* mission_cnt_msgDataPtr; /* '/Chart_proc_mission_upload' */ + void* mission_item_msgInterface; /* '/Chart_proc_mission_upload' */ + void* mission_item_msgHandle; /* '/Chart_proc_mission_upload' */ + void* mission_item_msgDataPtr; /* '/Chart_proc_mission_upload' */ + void* mission_req_int_msgInterface; /* '/Chart_proc_mission_upload' */ + void* mission_ack_msgInterface; /* '/Chart_proc_mission_upload' */ + void* ack1_msgInterface; /* '/merge_ack' */ + void* ack1_msgHandle; /* '/merge_ack' */ + void* ack1_msgDataPtr; /* '/merge_ack' */ + void* ack2_msgInterface; /* '/merge_ack' */ + void* ack2_msgHandle; /* '/merge_ack' */ + void* ack2_msgDataPtr; /* '/merge_ack' */ + void* ack_msgInterface; /* '/merge_ack' */ + void* ack3_msgInterface; /* '/merge_ack' */ + void* ack3_msgHandle; /* '/merge_ack' */ + void* ack3_msgDataPtr; /* '/merge_ack' */ + void* msgs_msgInterface; /* '/proc_queue' */ + void* msgs_msgHandle; /* '/proc_queue' */ + void* msgs_msgDataPtr; /* '/proc_queue' */ + void* msg_msgInterface_d; /* '/send_cmd' */ + void* ap_ver_msgInterface; /* '/send_auto_hw' */ + void* send_req_msgInterface; /* '/Chart' */ + void* send_ack_msgInterface; /* '/Chart_proc_mission_clr_all' */ + void* send_cnt_msgInterface; /* '/Chart' */ + void* send_cnt_msgInterface_o; /* '/Chart_proc_mission_req_lst' */ + void* req_cur_msgInterface_i; /* '/Chart' */ + void* send_item_msgInterface; /* '/Chart_proc_mission_req' */ + void* send_ack_msgInterface_a; /* '/Chart_proc_mission_req' */ + void* resp_msgInterface; /* '/Chart_proc_param_set' */ + void* resp_msgInterface_g; /* '/Chart' */ + void* resp_msgInterface_i; /* '/Chart_proc_param_req_read' */ + void* msgs_msgInterface_k; /* '/push2msgs' */ + void* param_val_queue_msgInterface; /* '/traffic_ctrl' */ + void* param_val_queue_msgHandle; /* '/traffic_ctrl' */ + void* param_val_queue_msgDataPtr; /* '/traffic_ctrl' */ + void* mission_cnt_queue_msgInterface;/* '/traffic_ctrl' */ + void* mission_cnt_queue_msgHandle; /* '/traffic_ctrl' */ + void* mission_cnt_queue_msgDataPtr; /* '/traffic_ctrl' */ + void* mission_req_int_queue_msgInterface;/* '/traffic_ctrl' */ + void* mission_req_int_queue_msgHandle;/* '/traffic_ctrl' */ + void* mission_req_int_queue_msgDataPtr;/* '/traffic_ctrl' */ + void* mission_item_int_queue_msgInterface;/* '/traffic_ctrl' */ + void* mission_item_int_queue_msgHandle;/* '/traffic_ctrl' */ + void* mission_item_int_queue_msgDataPtr;/* '/traffic_ctrl' */ + void* ap_ver_queue_msgInterface; /* '/traffic_ctrl' */ + void* ap_ver_queue_msgHandle; /* '/traffic_ctrl' */ + void* ap_ver_queue_msgDataPtr; /* '/traffic_ctrl' */ + void* mission_ack_queue_msgInterface;/* '/traffic_ctrl' */ + void* mission_ack_queue_msgHandle; /* '/traffic_ctrl' */ + void* mission_ack_queue_msgDataPtr; /* '/traffic_ctrl' */ + void* mission_cur_queue_msgInterface;/* '/traffic_ctrl' */ + void* mission_cur_queue_msgHandle; /* '/traffic_ctrl' */ + void* mission_cur_queue_msgDataPtr; /* '/traffic_ctrl' */ + void* command_ack_queue_msgInterface;/* '/traffic_ctrl' */ + void* command_ack_queue_msgHandle; /* '/traffic_ctrl' */ + void* command_ack_queue_msgDataPtr; /* '/traffic_ctrl' */ + void* serial_echoline_msgInterface; /* '/traffic_ctrl' */ + void* serial_echoline_msgHandle; /* '/traffic_ctrl' */ + void* serial_echoline_msgDataPtr; /* '/traffic_ctrl' */ + void* send_ack_msgInterface_h; /* '/Chart_send_ack' */ + void* ack_msgInterface_g; /* '/Chart_send_ack' */ + void* ack_msgHandle; /* '/Chart_send_ack' */ + void* ack_msgDataPtr; /* '/Chart_send_ack' */ void* cmd_msgInterface; /* '/mission_proc' */ void* set_cur_msgInterface_p; /* '/proc_set_ cur' */ void* set_cur_msgHandle; /* '/proc_set_ cur' */ void* set_cur_msgDataPtr; /* '/proc_set_ cur' */ - void* cmd_msgInterface_n; /* '/proc_cmd' */ + void* cmd_msgInterface_h; /* '/proc_cmd' */ void* cmd_msgHandle; /* '/proc_cmd' */ void* cmd_msgDataPtr; /* '/proc_cmd' */ void* cmd2_msgInterface; /* '/proc_cmd' */ void* cmd2_msgHandle; /* '/proc_cmd' */ void* cmd2_msgDataPtr; /* '/proc_cmd' */ - void* ack_msgInterface_c; /* '/proc_cmd' */ - real32_T Delay_DSTATE; /* '/Delay' */ - real32_T Delay_DSTATE_l; /* '/Delay' */ - real32_T Delay_DSTATE_i; /* '/Delay' */ - real32_T Delay_DSTATE_f; /* '/Delay' */ - real32_T Delay_DSTATE_j; /* '/Delay' */ - real32_T DiscreteTransferFcn_states_b;/* '/Discrete Transfer Fcn' */ - real32_T Delay_DSTATE_k; /* '/Delay' */ - real32_T UnitDelay_DSTATE_it; /* '/Unit Delay' */ - real32_T Delay_DSTATE_ik; /* '/Delay' */ - real32_T DiscreteTransferFcn_states_p;/* '/Discrete Transfer Fcn' */ - real32_T DiscreteTransferFcn_states_bl[3];/* '/Discrete Transfer Fcn' */ - real32_T Delay_DSTATE_e; /* '/Delay' */ - real32_T UnitDelay_DSTATE_f; /* '/Unit Delay' */ - real32_T Delay_DSTATE_e5; /* '/Delay' */ - real32_T UnitDelay_DSTATE_o; /* '/Unit Delay' */ - real32_T IntVal_DSTATE; /* '/IntVal' */ - real32_T IntVal_DSTATE_p; /* '/IntVal' */ - real32_T Delay_DSTATE_ey; /* '/Delay' */ - real32_T Delay_DSTATE_ku; /* '/Delay' */ - real32_T last_hdot_c_DSTATE; /* '/last_hdot_c' */ - uint32_T UnitDelay_DSTATE_kg; /* '/Unit Delay' */ + void* ack_msgInterface_o; /* '/proc_cmd' */ + real32_T Delay_DSTATE_kb; /* '/Delay' */ + real32_T Delay_DSTATE_l; /* '/Delay' */ + real32_T Delay_DSTATE_i; /* '/Delay' */ + real32_T Delay_DSTATE_f; /* '/Delay' */ + real32_T Delay_DSTATE_j; /* '/Delay' */ + real32_T Delay_DSTATE_a; /* '/Delay' */ + real32_T DiscreteTransferFcn_states_b;/* '/Discrete Transfer Fcn' */ + real32_T Delay_DSTATE_kc; /* '/Delay' */ + real32_T UnitDelay_DSTATE_it; /* '/Unit Delay' */ + real32_T Delay_DSTATE_ik; /* '/Delay' */ + real32_T DiscreteTransferFcn_states_p;/* '/Discrete Transfer Fcn' */ + real32_T DiscreteTransferFcn_states_bl[3];/* '/Discrete Transfer Fcn' */ + real32_T Delay_DSTATE_e; /* '/Delay' */ + real32_T UnitDelay_DSTATE_f; /* '/Unit Delay' */ + real32_T Delay_DSTATE_e5; /* '/Delay' */ + real32_T UnitDelay_DSTATE_o; /* '/Unit Delay' */ + real32_T IntVal_DSTATE; /* '/IntVal' */ + real32_T IntVal_DSTATE_p; /* '/IntVal' */ + real32_T Delay_DSTATE_ey; /* '/Delay' */ + real32_T Delay_DSTATE_ku; /* '/Delay' */ + real32_T last_hdot_c_DSTATE; /* '/last_hdot_c' */ + uint32_T UnitDelay_DSTATE_kg; /* '/Unit Delay' */ uint32_T UnitDelay_DSTATE_gc; /* '/Unit Delay' */ - uint32_T UnitDelay_DSTATE_lp; /* '/Unit Delay' */ - real32_T PrevY_pj[3]; /* '/Rate Limiter' */ - real32_T PrevY_fn[3]; /* '/Rate Limiter1' */ - real32_T cnt; /* '/zero_set' */ - real32_T qbar1; /* '/zero_set' */ - real32_T pqr0[3]; /* '/IMU_bias_fix' */ - real32_T cnt_e; /* '/IMU_bias_fix' */ - real32_T N0[3]; /* '/IMU_bias_fix' */ - real32_T scaleN; /* '/IMU_bias_fix' */ - real32_T states[14]; /* '/EKF14s' */ - real32_T P[196]; /* '/EKF14s' */ - real32_T Tbn_prev[9]; /* '/EKF14s' */ - real32_T last_az; /* '/nav_corner' */ - real32_T last_hdg; /* '/nav_corner' */ - real32_T DiscreteTransferFcn_tmp_i; /* '/Discrete Transfer Fcn' */ - real32_T DiscreteTransferFcn_tmp_g; /* '/Discrete Transfer Fcn' */ - real32_T DiscreteTransferFcn_tmp_ic; /* '/Discrete Transfer Fcn' */ + uint32_T UnitDelay_DSTATE_lp; /* '/Unit Delay' */ + real32_T PrevY_pj[3]; /* '/Rate Limiter' */ + real32_T PrevY_fn[3]; /* '/Rate Limiter1' */ + real32_T cnt; /* '/zero_set' */ + real32_T qbar1; /* '/zero_set' */ + real32_T pqr0[3]; /* '/IMU_bias_fix' */ + real32_T cnt_e; /* '/IMU_bias_fix' */ + real32_T N0[3]; /* '/IMU_bias_fix' */ + real32_T scaleN; /* '/IMU_bias_fix' */ + real32_T states[14]; /* '/EKF14s' */ + real32_T P[196]; /* '/EKF14s' */ + real32_T Tbn_prev[9]; /* '/EKF14s' */ + real32_T last_az; /* '/nav_corner' */ + real32_T last_hdg; /* '/nav_corner' */ + real32_T DiscreteTransferFcn_tmp_i; /* '/Discrete Transfer Fcn' */ + real32_T DiscreteTransferFcn_tmp_g; /* '/Discrete Transfer Fcn' */ + real32_T DiscreteTransferFcn_tmp_ic; /* '/Discrete Transfer Fcn' */ real32_T max_phi; /* '/AC_test' */ real32_T as0; /* '/AC_test' */ real32_T tht0; /* '/takeoff_task' */ int32_T counter; /* synthesized block */ uint32_T m_bpIndex[3]; /* '/table3D_Cl_b' */ uint32_T m_bpIndex_a[3]; /* '/table3D_Cl_df' */ - uint32_T RandSeed[4]; /* '/White Noise' */ - uint32_T PreLookUpIndexSearchaltitude_DWORK1;/* '/PreLook-Up Index Search (altitude)' */ - uint32_T PreLookUpIndexSearchprobofexceed_DWORK1;/* '/PreLook-Up Index Search (prob of exceed)' */ + uint32_T RandSeed[4]; /* '/White Noise' */ + uint32_T PreLookUpIndexSearchaltitude_DWORK1;/* '/PreLook-Up Index Search (altitude)' */ + uint32_T PreLookUpIndexSearchprobofexceed_DWORK1;/* '/PreLook-Up Index Search (prob of exceed)' */ uint32_T last_gps1_vel_seq; /* '/record_traffic_ctrl' */ uint32_T last_gps1_pos_seq; /* '/record_traffic_ctrl' */ uint32_T last_gps1_hdt_seq; /* '/record_traffic_ctrl' */ @@ -2022,33 +2000,35 @@ typedef struct { uint32_T last_gps2_vel_seq; /* '/record_traffic_ctrl' */ uint32_T last_gps2_pos_seq; /* '/record_traffic_ctrl' */ uint32_T last_gps2_tim_seq; /* '/record_traffic_ctrl' */ - uint32_T temporalCounter_i1; /* '/tick' */ - uint32_T temporalCounter_i1_m; /* '/tick' */ - uint32_T RandSeed_h; /* '/White Noise' */ - uint32_T RandSeed_n; /* '/White Noise' */ - uint32_T m_bpIndex_e; /* '/1-D Lookup Table' */ + uint32_T temporalCounter_i1; /* '/tick' */ + uint32_T temporalCounter_i1_m; /* '/tick' */ + uint32_T RandSeed_h; /* '/White Noise' */ + uint32_T RandSeed_n; /* '/White Noise' */ + uint32_T m_bpIndex_e; /* '/1-D Lookup Table6' */ uint32_T m_bpIndex_c; /* '/1-D Lookup Table1' */ uint32_T m_bpIndex_d; /* '/1-D Lookup Table2' */ + uint32_T m_bpIndex_k; /* '/1-D Lookup Table15' */ uint32_T m_bpIndex_p; /* '/1-D Lookup Table3' */ uint32_T m_bpIndex_dt; /* '/1-D Lookup Table4' */ - uint32_T m_bpIndex_am; /* '/1-D Lookup Table5' */ - uint32_T m_bpIndex_ex; /* '/1-D Lookup Table6' */ + uint32_T m_bpIndex_eo; /* '/1-D Lookup Table12' */ + uint32_T m_bpIndex_n; /* '/1-D Lookup Table17' */ uint32_T m_bpIndex_i; /* '/1-D Lookup Table7' */ uint32_T m_bpIndex_f; /* '/1-D Lookup Table8' */ uint32_T m_bpIndex_is; /* '/1-D Lookup Table9' */ uint32_T m_bpIndex_g; /* '/1-D Lookup Table10' */ uint32_T m_bpIndex_dp; /* '/1-D Lookup Table11' */ - uint32_T m_bpIndex_k; /* '/1-D Lookup Table13' */ - uint32_T m_bpIndex_ik; /* '/1-D Lookup Table14' */ - uint32_T m_bpIndex_ko; /* '/1-D Lookup Table15' */ uint32_T m_bpIndex_c3; /* '/1-D Lookup Table16' */ + uint32_T m_bpIndex_ek; /* '/1-D Lookup Table' */ + uint32_T m_bpIndex_am; /* '/1-D Lookup Table5' */ + uint32_T m_bpIndex_kk; /* '/1-D Lookup Table13' */ + uint32_T m_bpIndex_ik; /* '/1-D Lookup Table14' */ uint32_T m_bpIndex_iy; /* '/1-D Lookup Table' */ uint32_T m_bpIndex_c4; /* '/1-D Lookup Table' */ uint32_T m_bpIndex_l; /* '/1-D Lookup Table1' */ uint32_T m_bpIndex_j; /* '/1-D Lookup Table2' */ uint32_T m_bpIndex_kz; /* '/1-D Lookup Table3' */ uint32_T m_bpIndex_gi; /* '/1-D Lookup Table4' */ - uint32_T m_bpIndex_n; /* '/1-D Lookup Table5' */ + uint32_T m_bpIndex_ni; /* '/1-D Lookup Table5' */ uint32_T m_bpIndex_cz; /* '/1-D Lookup Table6' */ uint32_T m_bpIndex_cg; /* '/1-D Lookup Table7' */ uint32_T m_bpIndex_b; /* '/1-D Lookup Table8' */ @@ -2059,120 +2039,122 @@ typedef struct { uint32_T m_bpIndex_o; /* '/1-D Lookup Table14' */ uint32_T m_bpIndex_kb; /* '/1-D Lookup Table15' */ uint32_T m_bpIndex_ku; /* '/1-D Lookup Table11' */ - uint32_T m_bpIndex_gy; /* '/1-D Lookup Table1' */ - uint32_T m_bpIndex_g2; /* '/1-D Lookup Table2' */ - uint32_T m_bpIndex_la; /* '/1-D Lookup Table4' */ - uint32_T wait_time; /* '/traffic_ctrl' */ - uint32_T temporalCounter_i1_i; /* '/traffic_ctrl' */ - uint32_T temporalCounter_i1_f; /* '/pos_sel' */ - uint32_T m_bpIndex_f4; /* '/da2dal_deg' */ - uint32_T m_bpIndex_gym; /* '/da2dar_deg' */ - uint32_T m_bpIndex_ih; /* '/da2dal_deg' */ - uint32_T m_bpIndex_ok; /* '/da2dspr6_deg' */ - uint32_T m_bpIndex_bv; /* '/da2dspr7_deg' */ - uint32_T m_bpIndex_br; /* '/da2dspr8_deg' */ - uint32_T m_bpIndex_h; /* '/da2dar_deg' */ - uint32_T m_bpIndex_fx; /* '/da2dspl4_deg' */ - uint32_T m_bpIndex_i3; /* '/da2dspl5_deg' */ - uint32_T m_bpIndex_e5; /* '/da2dspl6_deg' */ - uint32_T m_bpIndex_di; /* '/da2dspl7_deg' */ - uint32_T m_bpIndex_eg; /* '/da2dspl8_deg' */ - uint32_T m_bpIndex_na; /* '/da2dspr4_deg' */ - uint32_T m_bpIndex_bx; /* '/da2dspr5_deg' */ - uint32_T m_bpIndex_by; /* '/1-D Lookup Table' */ + uint32_T m_bpIndex_gy; /* '/1-D Lookup Table1' */ + uint32_T m_bpIndex_g2; /* '/1-D Lookup Table2' */ + uint32_T m_bpIndex_la; /* '/1-D Lookup Table4' */ + uint32_T wait_time; /* '/traffic_ctrl' */ + uint32_T temporalCounter_i1_o; /* '/traffic_ctrl' */ + uint32_T temporalCounter_i1_l; /* '/pos_sel' */ + uint32_T m_bpIndex_f4; /* '/da2dal_deg' */ + uint32_T m_bpIndex_gym; /* '/da2dar_deg' */ + uint32_T m_bpIndex_ih; /* '/da2dal_deg' */ + uint32_T m_bpIndex_ok; /* '/da2dspr6_deg' */ + uint32_T m_bpIndex_bv; /* '/da2dspr7_deg' */ + uint32_T m_bpIndex_br; /* '/da2dspr8_deg' */ + uint32_T m_bpIndex_h; /* '/da2dar_deg' */ + uint32_T m_bpIndex_fx; /* '/da2dspl4_deg' */ + uint32_T m_bpIndex_i3; /* '/da2dspl5_deg' */ + uint32_T m_bpIndex_e5; /* '/da2dspl6_deg' */ + uint32_T m_bpIndex_di; /* '/da2dspl7_deg' */ + uint32_T m_bpIndex_eg; /* '/da2dspl8_deg' */ + uint32_T m_bpIndex_na; /* '/da2dspr4_deg' */ + uint32_T m_bpIndex_bx; /* '/da2dspr5_deg' */ + uint32_T m_bpIndex_by; /* '/1-D Lookup Table' */ uint32_T temporalCounter_i1_d; /* '/AC_test' */ - uint32_T temporalCounter_i1_l; /* '/rudder_stim' */ + uint32_T temporalCounter_i1_ls; /* '/rudder_stim' */ uint32_T temporalCounter_i1_a; /* '/doublet1' */ uint32_T temporalCounter_i1_g; /* '/doublet1' */ uint32_T temporalCounter_i1_gs; /* '/doublet1' */ uint32_T temporalCounter_i1_p; /* '/sweep' */ uint32_T temporalCounter_i1_b; /* '/handsoff' */ uint32_T temporalCounter_i1_n; /* '/AC_test' */ - uint32_T temporalCounter_i1_ig; /* '/steady_beta' */ + uint32_T temporalCounter_i1_i; /* '/steady_beta' */ uint32_T temporalCounter_i1_mp; /* '/turning_limit' */ uint32_T temporalCounter_i1_lm; /* '/check_conn' */ int_T p1_IWORK; /* '/p1' */ int_T q_IWORK; /* '/q' */ int_T pqr_IWORK; /* '/p,q,r ' */ int_T Integrator_IWORK; /* '/Integrator' */ - int_T Integrator_IWORK_j; /* '/Integrator' */ - int_T Integrator_IWORK_e; /* '/Integrator' */ - int_T Integrator_IWORK_jd; /* '/Integrator' */ - int_T Integrator_IWORK_f; /* '/Integrator' */ - int_T Integrator_IWORK_p; /* '/Integrator' */ - int_T Integrator_IWORK_a; /* '/Integrator' */ - int_T Integrator_IWORK_g; /* '/Integrator' */ - int_T Integrator_IWORK_fo; /* '/Integrator' */ - int_T Integrator_IWORK_k; /* '/Integrator' */ - int_T Integrator_IWORK_go; /* '/Integrator' */ - int_T Integrator_IWORK_h; /* '/Integrator' */ - int_T Integrator_IWORK_m; /* '/Integrator' */ - int_T Integrator_IWORK_ea; /* '/Integrator' */ - int_T Integrator_IWORK_g3; /* '/Integrator' */ - int_T Integrator_IWORK_i; /* '/Integrator' */ - int_T Integrator_IWORK_hp; /* '/Integrator' */ - int_T Integrator_IWORK_o; /* '/Integrator' */ - int_T Integrator_IWORK_c; /* '/Integrator' */ - int_T Integrator_IWORK_d; /* '/Integrator' */ - int_T Integrator_IWORK_dj; /* '/Integrator' */ + int_T Integrator_IWORK_j; /* '/Integrator' */ + int_T Integrator_IWORK_e; /* '/Integrator' */ + int_T Integrator_IWORK_jd; /* '/Integrator' */ + int_T Integrator_IWORK_f; /* '/Integrator' */ + int_T Integrator_IWORK_p; /* '/Integrator' */ + int_T Integrator_IWORK_a; /* '/Integrator' */ + int_T Integrator_IWORK_g; /* '/Integrator' */ + int_T Integrator_IWORK_fo; /* '/Integrator' */ + int_T Integrator_IWORK_k; /* '/Integrator' */ + int_T Integrator_IWORK_go; /* '/Integrator' */ + int_T Integrator_IWORK_h; /* '/Integrator' */ + int_T Integrator_IWORK_m; /* '/Integrator' */ + int_T Integrator_IWORK_ea; /* '/Integrator' */ + int_T Integrator_IWORK_g3; /* '/Integrator' */ + int_T Integrator_IWORK_i; /* '/Integrator' */ + int_T Integrator_IWORK_hp; /* '/Integrator' */ + int_T Integrator_IWORK_o; /* '/Integrator' */ + int_T Integrator_IWORK_c; /* '/Integrator' */ + int_T Integrator_IWORK_d; /* '/Integrator' */ + int_T Integrator_IWORK_dj; /* '/Integrator' */ int_T p_IWORK; /* '/p' */ - int_T Integrator_IWORK_j4; /* '/Integrator' */ + int_T Integrator_IWORK_j4; /* '/Integrator' */ + int_T Integrator3_IWORK; /* '/Integrator3' */ + int_T Integrator3_IWORK_n; /* '/Integrator3' */ uint16_T Delay_DSTATE_m[46]; /* '/Delay' */ uint16_T UnitDelay_DSTATE_hm; /* '/Unit Delay' */ - uint16_T UnitDelay_DSTATE_c; /* '/Unit Delay' */ + uint16_T UnitDelay_DSTATE_c3; /* '/Unit Delay' */ uint16_T UnitDelay_DSTATE_dq; /* '/Unit Delay' */ uint16_T UnitDelay_DSTATE_p; /* '/Unit Delay' */ uint16_T UnitDelay_DSTATE_cc; /* '/Unit Delay' */ uint16_T UnitDelay1_DSTATE_j; /* '/Unit Delay1' */ uint16_T UnitDelay2_1_DSTATE_h[18]; /* '/Unit Delay2' */ int16_T left; /* '/record_traffic_ctrl' */ - uint16_T temporalCounter_i1_h; /* '/check_gps_valid' */ - uint16_T last_seq; /* '/Chart' */ - uint16_T temporalCounter_i1_iz; /* '/Chart' */ - uint16_T last_seq_b; /* '/Chart' */ - uint16_T temporalCounter_i1_j; /* '/Chart' */ - uint16_T last_seq_j; /* '/Chart' */ - uint16_T temporalCounter_i1_bz; /* '/Chart' */ - uint16_T last_seq_h; /* '/Chart' */ - uint16_T temporalCounter_i1_ld; /* '/Chart' */ - uint16_T last_seq_o; /* '/Chart' */ - uint16_T temporalCounter_i1_bp; /* '/Chart' */ - uint16_T last_seq_k; /* '/Chart' */ - uint16_T temporalCounter_i1_n0; /* '/Chart' */ - uint16_T last_seq_d; /* '/Chart' */ - uint16_T temporalCounter_i1_o; /* '/Chart' */ - uint16_T last_seq_e; /* '/Chart' */ - uint16_T temporalCounter_i1_mt; /* '/Chart' */ - uint16_T last_seq_i; /* '/Chart' */ - uint16_T temporalCounter_i1_gk; /* '/Chart' */ - uint16_T last_seq_de; /* '/Chart' */ - uint16_T temporalCounter_i1_ge; /* '/Chart' */ - uint16_T param_req_read_msgData; /* '/proc_param_value' */ - uint16_T param_req_lst_msgData; /* '/proc_param_value' */ - uint16_T param_set_msgData; /* '/proc_param_value' */ - uint16_T temporalCounter_i1_ip; /* '/req_cur' */ - uint16_T req_cur_msgData; /* '/req_cur' */ - uint16_T set_cur_msgData; /* '/req_cur' */ - uint16_T count; /* '/Chart_proc_mission_upload' */ - uint16_T temporalCounter_i1_f3; /* '/Chart_proc_mission_upload' */ - uint16_T req_cur_msgData_o; /* '/Chart' */ - uint16_T resp_msgData; /* '/Chart_proc_param_set' */ - uint16_T resp_msgData_d; /* '/Chart' */ - uint16_T resp_msgData_g; /* '/Chart_proc_param_req_read' */ + uint16_T temporalCounter_i1_h; /* '/check_gps_valid' */ + uint16_T last_seq; /* '/Chart' */ + uint16_T temporalCounter_i1_k; /* '/Chart' */ + uint16_T last_seq_l; /* '/Chart' */ + uint16_T temporalCounter_i1_c; /* '/Chart' */ + uint16_T last_seq_d; /* '/Chart' */ + uint16_T temporalCounter_i1_on; /* '/Chart' */ + uint16_T last_seq_i; /* '/Chart' */ + uint16_T temporalCounter_i1_cc; /* '/Chart' */ + uint16_T last_seq_e; /* '/Chart' */ + uint16_T temporalCounter_i1_aq; /* '/Chart' */ + uint16_T last_seq_j; /* '/Chart' */ + uint16_T temporalCounter_i1_lx; /* '/Chart' */ + uint16_T last_seq_m; /* '/Chart' */ + uint16_T temporalCounter_i1_hz; /* '/Chart' */ + uint16_T last_seq_iq; /* '/Chart' */ + uint16_T temporalCounter_i1_cr; /* '/Chart' */ + uint16_T last_seq_f; /* '/Chart' */ + uint16_T temporalCounter_i1_hq; /* '/Chart' */ + uint16_T last_seq_ma; /* '/Chart' */ + uint16_T temporalCounter_i1_e; /* '/Chart' */ + uint16_T param_req_read_msgData; /* '/proc_param_value' */ + uint16_T param_req_lst_msgData; /* '/proc_param_value' */ + uint16_T param_set_msgData; /* '/proc_param_value' */ + uint16_T temporalCounter_i1_ip; /* '/req_cur' */ + uint16_T req_cur_msgData; /* '/req_cur' */ + uint16_T set_cur_msgData; /* '/req_cur' */ + uint16_T count; /* '/Chart_proc_mission_upload' */ + uint16_T temporalCounter_i1_f; /* '/Chart_proc_mission_upload' */ + uint16_T req_cur_msgData_o; /* '/Chart' */ + uint16_T resp_msgData; /* '/Chart_proc_param_set' */ + uint16_T resp_msgData_d; /* '/Chart' */ + uint16_T resp_msgData_g; /* '/Chart_proc_param_req_read' */ uint16_T temporalCounter_i1_de; /* '/valid_checking' */ - uint16_T temporalCounter_i1_gl; /* '/waypoint_task' */ + uint16_T temporalCounter_i1_dw; /* '/waypoint_task' */ uint16_T temporalCounter_i1_dm; /* '/turning_back' */ - uint16_T temporalCounter_i1_bi; /* '/waypoint_task' */ - uint16_T temporalCounter_i1_e; /* '/landing_task' */ - uint16_T temporalCounter_i1_c; /* '/takeoff_task' */ - uint16_T temporalCounter_i1_k; /* '/manual_arm_disarm' */ + uint16_T temporalCounter_i1_dg; /* '/waypoint_task' */ + uint16_T temporalCounter_i1_fa; /* '/landing_task' */ + uint16_T temporalCounter_i1_h3; /* '/takeoff_task' */ + uint16_T temporalCounter_i1_j; /* '/manual_arm_disarm' */ uint16_T set_cur_msgData_c; /* '/proc_set_ cur' */ uint16_T temporalCounter_i1_kj; /* '/valid_checking' */ uint16_T last_cnt; /* '/check_conn' */ uint8_T UnitDelay2_3_DSTATE; /* '/Unit Delay2' */ uint8_T UnitDelay2_2_DSTATE; /* '/Unit Delay2' */ - uint8_T UnitDelay_DSTATE_em; /* '/Unit Delay' */ - uint8_T UnitDelay_DSTATE_kr; /* '/Unit Delay' */ + uint8_T UnitDelay_DSTATE_em; /* '/Unit Delay' */ + uint8_T UnitDelay_DSTATE_kr; /* '/Unit Delay' */ boolean_T UnitDelay1_DSTATE_cb[3]; /* '/Unit Delay1' */ boolean_T UnitDelay2_4_DSTATE_b; /* '/Unit Delay2' */ int8_T If_ActiveSubsystem; /* '/If' */ @@ -2180,22 +2162,22 @@ typedef struct { int8_T SwitchCase_ActiveSubsystem; /* '/Switch Case' */ int8_T If1_ActiveSubsystem; /* '/If1' */ int8_T If1_ActiveSubsystem_l; /* '/If1' */ - int8_T ifHeightMaxlowaltitudeelseifHeightMinisotropicaltitude_ActiveSu;/* '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ - int8_T ifHeightMaxlowaltitudeelseifHeightMinisotropicaltitude_Active_a;/* '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ - int8_T If_ActiveSubsystem_k; /* '/If' */ + int8_T ifHeightMaxlowaltitudeelseifHeightMinisotropicaltitude_ActiveSu;/* '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ + int8_T ifHeightMaxlowaltitudeelseifHeightMinisotropicaltitude_Active_a;/* '/if Height < Max low altitude elseif Height > Min isotropic altitude ' */ + int8_T If_ActiveSubsystem_k; /* '/If' */ int8_T If1_ActiveSubsystem_m; /* '/If1' */ int8_T If1_ActiveSubsystem_d; /* '/If1' */ int8_T SwitchCase_ActiveSubsystem_i; /* '/Switch Case' */ - int8_T SwitchCase_ActiveSubsystem_m; /* '/Switch Case' */ - int8_T SwitchCase_ActiveSubsystem_g; /* '/Switch Case' */ - int8_T SwitchCase_ActiveSubsystem_h; /* '/Switch Case' */ - int8_T SwitchCase1_ActiveSubsystem; /* '/Switch Case1' */ - int8_T SwitchCase_ActiveSubsystem_k; /* '/Switch Case' */ - int8_T If_ActiveSubsystem_l; /* '/If' */ - int8_T SwitchCase_ActiveSubsystem_me;/* '/Switch Case' */ - int8_T SwitchCase_ActiveSubsystem_j; /* '/Switch Case' */ - int8_T SwitchCase_ActiveSubsystem_l; /* '/Switch Case' */ - int8_T SwitchCase_ActiveSubsystem_f; /* '/Switch Case' */ + int8_T SwitchCase_ActiveSubsystem_m; /* '/Switch Case' */ + int8_T SwitchCase_ActiveSubsystem_g; /* '/Switch Case' */ + int8_T SwitchCase_ActiveSubsystem_h; /* '/Switch Case' */ + int8_T SwitchCase1_ActiveSubsystem; /* '/Switch Case1' */ + int8_T SwitchCase_ActiveSubsystem_k; /* '/Switch Case' */ + int8_T If_ActiveSubsystem_l; /* '/If' */ + int8_T SwitchCase_ActiveSubsystem_me;/* '/Switch Case' */ + int8_T SwitchCase_ActiveSubsystem_j; /* '/Switch Case' */ + int8_T SwitchCase_ActiveSubsystem_l; /* '/Switch Case' */ + int8_T SwitchCase_ActiveSubsystem_f; /* '/Switch Case' */ int8_T SwitchCase_ActiveSubsystem_e; /* '/Switch Case' */ int8_T SwitchCase_ActiveSubsystem_m5;/* '/Switch Case' */ int8_T SwitchCase_ActiveSubsystem_hf;/* '/Switch Case' */ @@ -2216,75 +2198,78 @@ typedef struct { uint8_T cnt19; /* '/record_traffic_ctrl' */ uint8_T cnt20; /* '/record_traffic_ctrl' */ uint8_T cnt21; /* '/record_traffic_ctrl' */ - uint8_T is_active_c48_cr929_dummy_io;/* '/tick' */ - uint8_T is_c48_cr929_dummy_io; /* '/tick' */ - uint8_T is_active_c40_cr929_dummy_io;/* '/tick' */ - uint8_T is_c40_cr929_dummy_io; /* '/tick' */ - uint8_T is_active_c14_ins_lib; /* '/status_mgr' */ - uint8_T is_c14_ins_lib; /* '/status_mgr' */ - uint8_T is_active_c13_ins_lib; /* '/zero_set' */ - uint8_T is_c13_ins_lib; /* '/zero_set' */ - uint8_T is_active_c11_ins_lib; /* '/IMU_bias_fix' */ - uint8_T is_c11_ins_lib; /* '/IMU_bias_fix' */ - uint8_T is_active_c10_ins_lib; /* '/Chart' */ - uint8_T is_c10_ins_lib; /* '/Chart' */ - uint8_T is_active_c9_ins_lib; /* '/check_gps_valid' */ - uint8_T is_c9_ins_lib; /* '/check_gps_valid' */ - uint8_T cnt_c; /* '/check_gps_valid' */ - uint8_T vel_reset_cnt; /* '/EKF14s' */ - uint8_T hdg_reset_cnt; /* '/EKF14s' */ - uint8_T is_active_c77_cr929_autopilot;/* '/Chart' */ - uint8_T is_c77_cr929_autopilot; /* '/Chart' */ - uint8_T is_active_c75_cr929_autopilot;/* '/Chart' */ - uint8_T is_c75_cr929_autopilot; /* '/Chart' */ - uint8_T is_active_c74_cr929_autopilot;/* '/Chart' */ - uint8_T is_c74_cr929_autopilot; /* '/Chart' */ - uint8_T is_active_c65_cr929_autopilot;/* '/Chart' */ - uint8_T is_c65_cr929_autopilot; /* '/Chart' */ - uint8_T is_active_c64_cr929_autopilot;/* '/Chart' */ - uint8_T is_c64_cr929_autopilot; /* '/Chart' */ - uint8_T is_active_c59_cr929_autopilot;/* '/Chart' */ - uint8_T is_c59_cr929_autopilot; /* '/Chart' */ - uint8_T is_active_c51_cr929_autopilot;/* '/Chart' */ - uint8_T is_c51_cr929_autopilot; /* '/Chart' */ - uint8_T is_active_c50_cr929_autopilot;/* '/Chart' */ - uint8_T is_c50_cr929_autopilot; /* '/Chart' */ - uint8_T is_active_c49_cr929_autopilot;/* '/Chart' */ - uint8_T is_c49_cr929_autopilot; /* '/Chart' */ - uint8_T is_active_c48_cr929_autopilot;/* '/Chart' */ - uint8_T is_c48_cr929_autopilot; /* '/Chart' */ - uint8_T is_active_c80_cr929_autopilot;/* '/Chart' */ - uint8_T is_c80_cr929_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_hq; /* '/Chart' */ - uint8_T is_active_c31_mavlink_utils; /* '/proc_param_value' */ - uint8_T is_c31_mavlink_utils; /* '/proc_param_value' */ - uint8_T temporalCounter_i1_b0; /* '/proc_param_value' */ - uint8_T is_active_c30_mavlink_utils; /* '/req_cur' */ - uint8_T is_active_c29_mavlink_utils; /* '/Chart_proc_mission_upload' */ - uint8_T is_c29_mavlink_utils; /* '/Chart_proc_mission_upload' */ - uint8_T retry; /* '/Chart_proc_mission_upload' */ - uint8_T is_active_c22_mavlink_utils; /* '/merge_ack' */ - uint8_T is_active_c45_cr929_autopilot;/* '/traffic_ctrl' */ - uint8_T is_c45_cr929_autopilot; /* '/traffic_ctrl' */ - uint8_T port_num; /* '/Chart' */ - uint8_T is_active_c26_cr929_autopilot;/* '/Chart_send_ack' */ - uint8_T stage; /* '/nav_corner' */ - uint8_T icLoad_d; /* '/Delay' */ - uint8_T icLoad_b; /* '/Delay' */ - uint8_T icLoad_e; /* '/Delay' */ - uint8_T icLoad_j; /* '/Delay' */ - uint8_T icLoad_ed; /* '/Delay' */ - uint8_T is_active_c25_cr929_autopilot;/* '/pos_sel' */ - uint8_T is_c25_cr929_autopilot; /* '/pos_sel' */ - uint8_T icLoad_bf; /* '/Delay' */ - uint8_T icLoad_c; /* '/Delay' */ - uint8_T icLoad_d2; /* '/Delay' */ - uint8_T icLoad_o; /* '/Delay' */ - uint8_T icLoad_cw; /* '/IntVal' */ - uint8_T icLoad_a; /* '/IntVal' */ - uint8_T icLoad_a3; /* '/Delay' */ - uint8_T icLoad_dd; /* '/Delay' */ - uint8_T icLoad_n; /* '/last_hdot_c' */ + uint8_T icLoad_h; /* '/Delay' */ + uint8_T icLoad_b; /* '/Delay' */ + uint8_T is_active_c48_cr929_dummy_io;/* '/tick' */ + uint8_T is_c48_cr929_dummy_io; /* '/tick' */ + uint8_T is_active_c40_cr929_dummy_io;/* '/tick' */ + uint8_T is_c40_cr929_dummy_io; /* '/tick' */ + uint8_T is_active_c14_ins_lib; /* '/status_mgr' */ + uint8_T is_c14_ins_lib; /* '/status_mgr' */ + uint8_T is_active_c13_ins_lib; /* '/zero_set' */ + uint8_T is_c13_ins_lib; /* '/zero_set' */ + uint8_T is_active_c11_ins_lib; /* '/IMU_bias_fix' */ + uint8_T is_c11_ins_lib; /* '/IMU_bias_fix' */ + uint8_T is_active_c10_ins_lib; /* '/Chart' */ + uint8_T is_c10_ins_lib; /* '/Chart' */ + uint8_T is_active_c9_ins_lib; /* '/check_gps_valid' */ + uint8_T is_c9_ins_lib; /* '/check_gps_valid' */ + uint8_T cnt_c; /* '/check_gps_valid' */ + uint8_T vel_reset_cnt; /* '/EKF14s' */ + uint8_T hdg_reset_cnt; /* '/EKF14s' */ + uint8_T is_active_c77_cr929_autopilot;/* '/Chart' */ + uint8_T is_c77_cr929_autopilot; /* '/Chart' */ + uint8_T is_active_c75_cr929_autopilot;/* '/Chart' */ + uint8_T is_c75_cr929_autopilot; /* '/Chart' */ + uint8_T is_active_c74_cr929_autopilot;/* '/Chart' */ + uint8_T is_c74_cr929_autopilot; /* '/Chart' */ + uint8_T is_active_c65_cr929_autopilot;/* '/Chart' */ + uint8_T is_c65_cr929_autopilot; /* '/Chart' */ + uint8_T is_active_c64_cr929_autopilot;/* '/Chart' */ + uint8_T is_c64_cr929_autopilot; /* '/Chart' */ + uint8_T is_active_c59_cr929_autopilot;/* '/Chart' */ + uint8_T is_c59_cr929_autopilot; /* '/Chart' */ + uint8_T is_active_c51_cr929_autopilot;/* '/Chart' */ + uint8_T is_c51_cr929_autopilot; /* '/Chart' */ + uint8_T is_active_c50_cr929_autopilot;/* '/Chart' */ + uint8_T is_c50_cr929_autopilot; /* '/Chart' */ + uint8_T is_active_c49_cr929_autopilot;/* '/Chart' */ + uint8_T is_c49_cr929_autopilot; /* '/Chart' */ + uint8_T is_active_c48_cr929_autopilot;/* '/Chart' */ + uint8_T is_c48_cr929_autopilot; /* '/Chart' */ + uint8_T is_active_c80_cr929_autopilot;/* '/Chart' */ + uint8_T is_c80_cr929_autopilot; /* '/Chart' */ + uint8_T temporalCounter_i1_b5; /* '/Chart' */ + uint8_T is_active_c31_mavlink_utils; /* '/proc_param_value' */ + uint8_T is_c31_mavlink_utils; /* '/proc_param_value' */ + uint8_T temporalCounter_i1_b0; /* '/proc_param_value' */ + uint8_T is_active_c30_mavlink_utils; /* '/req_cur' */ + uint8_T is_active_c29_mavlink_utils; /* '/Chart_proc_mission_upload' */ + uint8_T is_c29_mavlink_utils; /* '/Chart_proc_mission_upload' */ + uint8_T retry; /* '/Chart_proc_mission_upload' */ + uint8_T is_active_c22_mavlink_utils; /* '/merge_ack' */ + uint8_T is_active_c45_cr929_autopilot;/* '/traffic_ctrl' */ + uint8_T is_c45_cr929_autopilot; /* '/traffic_ctrl' */ + uint8_T port_num; /* '/Chart' */ + uint8_T is_active_c26_cr929_autopilot;/* '/Chart_send_ack' */ + uint8_T stage; /* '/nav_corner' */ + uint8_T icLoad_d; /* '/Delay' */ + uint8_T icLoad_bg; /* '/Delay' */ + uint8_T icLoad_e; /* '/Delay' */ + uint8_T icLoad_j; /* '/Delay' */ + uint8_T icLoad_ed; /* '/Delay' */ + uint8_T is_active_c25_cr929_autopilot;/* '/pos_sel' */ + uint8_T is_c25_cr929_autopilot; /* '/pos_sel' */ + uint8_T icLoad_dh; /* '/Delay' */ + uint8_T icLoad_bf; /* '/Delay' */ + uint8_T icLoad_c; /* '/Delay' */ + uint8_T icLoad_d2; /* '/Delay' */ + uint8_T icLoad_o; /* '/Delay' */ + uint8_T icLoad_cw; /* '/IntVal' */ + uint8_T icLoad_a; /* '/IntVal' */ + uint8_T icLoad_a3; /* '/Delay' */ + uint8_T icLoad_dd; /* '/Delay' */ + uint8_T icLoad_n; /* '/last_hdot_c' */ uint8_T is_active_c54_update_rc; /* '/valid_checking' */ uint8_T is_c54_update_rc; /* '/valid_checking' */ uint8_T seq1; /* '/valid_checking' */ @@ -2347,7 +2332,7 @@ typedef struct { uint8_T is_c12_cr929_autopilot; /* '/proc_cmd' */ uint8_T is_active_c3_cr929_autopilot;/* '/Chart' */ uint8_T is_c3_cr929_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_ny; /* '/Chart' */ + uint8_T temporalCounter_i1_kw; /* '/Chart' */ uint8_T is_active_c8_pack_parser; /* '/parser' */ uint8_T is_c8_pack_parser; /* '/parser' */ uint8_T is_active_c1_sbg; /* '/parser' */ @@ -2358,19 +2343,19 @@ typedef struct { uint8_T is_c8_pack_parser_l; /* '/parser' */ uint8_T is_active_c8_pack_parser_b; /* '/parser' */ uint8_T is_c8_pack_parser_f; /* '/parser' */ - boolean_T gps_use_started; /* '/EKF14s' */ - boolean_T P_reset; /* '/EKF14s' */ - boolean_T Tbn_prev_not_empty; /* '/EKF14s' */ + boolean_T gps_use_started; /* '/EKF14s' */ + boolean_T P_reset; /* '/EKF14s' */ + boolean_T Tbn_prev_not_empty; /* '/EKF14s' */ boolean_T EntityQueue_InsertedFor_proc_queue_at_inport_0_Out1_RecvMsgStat;/* synthesized block */ boolean_T EntityQueue_InsertedFor_proc_queue_at_inport_0_Out1_RecvDataSta;/* synthesized block */ + boolean_T EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_i;/* synthesized block */ + boolean_T EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_e;/* synthesized block */ + boolean_T EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_e;/* synthesized block */ + boolean_T EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_l;/* synthesized block */ boolean_T EntityQueue_InsertedFor_req_cur_at_inport_0_Out1_RecvMsgStatus;/* synthesized block */ boolean_T EntityQueue_InsertedFor_req_cur_at_inport_0_Out1_RecvDataStatus;/* synthesized block */ boolean_T EntityQueue_InsertedFor_proc_set_cur_at_inport_0_Out1_RecvMsgSt;/* synthesized block */ boolean_T EntityQueue_InsertedFor_proc_set_cur_at_inport_0_Out1_RecvDataS;/* synthesized block */ - boolean_T EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_e;/* synthesized block */ - boolean_T EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_1_l;/* synthesized block */ - boolean_T EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_i;/* synthesized block */ - boolean_T EntityQueue_InsertedFor_Chart_proc_mission_upload_at_inport_0_e;/* synthesized block */ boolean_T EntityQueue_InsertedFor_proc_cmd_at_inport_1_Out1_RecvMsgStatus;/* synthesized block */ boolean_T EntityQueue_InsertedFor_proc_cmd_at_inport_1_Out1_RecvDataStatu;/* synthesized block */ boolean_T EntityQueue_InsertedFor_proc_cmd_at_inport_0_Out1_RecvMsgStatus;/* synthesized block */ @@ -2407,83 +2392,83 @@ typedef struct { boolean_T EntityQueue_InsertedFor_traffic_ctrl_at_inport_9_Out1_RecvDataS;/* synthesized block */ boolean_T EntityQueue_InsertedFor_traffic_ctrl_at_inport_10_Out1_RecvMsgS;/* synthesized block */ boolean_T EntityQueue_InsertedFor_traffic_ctrl_at_inport_10_Out1_RecvData;/* synthesized block */ - boolean_T forone; /* '/proc_param_value' */ - boolean_T param_req_read_isValid; /* '/proc_param_value' */ - boolean_T param_req_lst_isValid; /* '/proc_param_value' */ - boolean_T param_set_isValid; /* '/proc_param_value' */ - boolean_T req_cur_isValid; /* '/req_cur' */ - boolean_T mission_cnt_isValid; /* '/Chart_proc_mission_upload' */ - boolean_T mission_item_isValid; /* '/Chart_proc_mission_upload' */ - boolean_T ack1_isValid; /* '/merge_ack' */ - boolean_T ack2_isValid; /* '/merge_ack' */ - boolean_T ack3_isValid; /* '/merge_ack' */ - boolean_T msgs_isValid; /* '/proc_queue' */ - boolean_T param_val_queue_isValid; /* '/traffic_ctrl' */ - boolean_T mission_cnt_queue_isValid; /* '/traffic_ctrl' */ - boolean_T mission_item_int_queue_isValid;/* '/traffic_ctrl' */ - boolean_T mission_ack_queue_isValid; /* '/traffic_ctrl' */ - boolean_T mission_cur_queue_isValid; /* '/traffic_ctrl' */ - boolean_T mission_req_int_queue_isValid;/* '/traffic_ctrl' */ - boolean_T command_ack_queue_isValid; /* '/traffic_ctrl' */ - boolean_T ap_ver_queue_isValid; /* '/traffic_ctrl' */ - boolean_T serial_echoline_isValid; /* '/traffic_ctrl' */ - boolean_T ack_isValid; /* '/Chart_send_ack' */ - boolean_T stage_not_empty; /* '/nav_corner' */ + boolean_T forone; /* '/proc_param_value' */ + boolean_T param_req_read_isValid; /* '/proc_param_value' */ + boolean_T param_req_lst_isValid; /* '/proc_param_value' */ + boolean_T param_set_isValid; /* '/proc_param_value' */ + boolean_T req_cur_isValid; /* '/req_cur' */ + boolean_T mission_cnt_isValid; /* '/Chart_proc_mission_upload' */ + boolean_T mission_item_isValid; /* '/Chart_proc_mission_upload' */ + boolean_T ack1_isValid; /* '/merge_ack' */ + boolean_T ack2_isValid; /* '/merge_ack' */ + boolean_T ack3_isValid; /* '/merge_ack' */ + boolean_T msgs_isValid; /* '/proc_queue' */ + boolean_T param_val_queue_isValid; /* '/traffic_ctrl' */ + boolean_T mission_cnt_queue_isValid; /* '/traffic_ctrl' */ + boolean_T mission_item_int_queue_isValid;/* '/traffic_ctrl' */ + boolean_T mission_ack_queue_isValid; /* '/traffic_ctrl' */ + boolean_T mission_cur_queue_isValid; /* '/traffic_ctrl' */ + boolean_T mission_req_int_queue_isValid;/* '/traffic_ctrl' */ + boolean_T command_ack_queue_isValid; /* '/traffic_ctrl' */ + boolean_T ap_ver_queue_isValid; /* '/traffic_ctrl' */ + boolean_T serial_echoline_isValid; /* '/traffic_ctrl' */ + boolean_T ack_isValid; /* '/Chart_send_ack' */ + boolean_T stage_not_empty; /* '/nav_corner' */ boolean_T set_cur_isValid; /* '/proc_set_ cur' */ boolean_T cmd_isValid; /* '/proc_cmd' */ boolean_T cmd2_isValid; /* '/proc_cmd' */ boolean_T wind_model_MODE; /* '/wind_model' */ - boolean_T Hwgwz_MODE; /* '/Hwgw(z)' */ - boolean_T Hvgwz_MODE; /* '/Hvgw(z)' */ - boolean_T Hugwz_MODE; /* '/Hugw(z)' */ - boolean_T Hrgw_MODE; /* '/Hrgw' */ - boolean_T Hqgw_MODE; /* '/Hqgw' */ - boolean_T Hpgw_MODE; /* '/Hpgw' */ - boolean_T EnabledSubsystem9_MODE; /* '/Enabled Subsystem9' */ - boolean_T EnabledSubsystem8_MODE; /* '/Enabled Subsystem8' */ - boolean_T EnabledSubsystem7_MODE; /* '/Enabled Subsystem7' */ - boolean_T EnabledSubsystem6_MODE; /* '/Enabled Subsystem6' */ - boolean_T EnabledSubsystem5_MODE; /* '/Enabled Subsystem5' */ - boolean_T EnabledSubsystem4_MODE; /* '/Enabled Subsystem4' */ - boolean_T EnabledSubsystem3_MODE; /* '/Enabled Subsystem3' */ - boolean_T EnabledSubsystem2_MODE; /* '/Enabled Subsystem2' */ - boolean_T EnabledSubsystem16_MODE; /* '/Enabled Subsystem16' */ - boolean_T EnabledSubsystem15_MODE; /* '/Enabled Subsystem15' */ - boolean_T EnabledSubsystem14_MODE; /* '/Enabled Subsystem14' */ - boolean_T EnabledSubsystem13_MODE; /* '/Enabled Subsystem13' */ - boolean_T EnabledSubsystem12_MODE; /* '/Enabled Subsystem12' */ - boolean_T EnabledSubsystem11_MODE; /* '/Enabled Subsystem11' */ - boolean_T EnabledSubsystem10_MODE; /* '/Enabled Subsystem10' */ - boolean_T EnabledSubsystem1_MODE; /* '/Enabled Subsystem1' */ + boolean_T Hwgwz_MODE; /* '/Hwgw(z)' */ + boolean_T Hvgwz_MODE; /* '/Hvgw(z)' */ + boolean_T Hugwz_MODE; /* '/Hugw(z)' */ + boolean_T Hrgw_MODE; /* '/Hrgw' */ + boolean_T Hqgw_MODE; /* '/Hqgw' */ + boolean_T Hpgw_MODE; /* '/Hpgw' */ + boolean_T throttle1_MODE; /* '/throttle1' */ + boolean_T throttle_MODE; /* '/throttle' */ + boolean_T EnabledSubsystem9_MODE; /* '/Enabled Subsystem9' */ + boolean_T EnabledSubsystem8_MODE; /* '/Enabled Subsystem8' */ + boolean_T EnabledSubsystem7_MODE; /* '/Enabled Subsystem7' */ + boolean_T EnabledSubsystem6_MODE; /* '/Enabled Subsystem6' */ + boolean_T EnabledSubsystem5_MODE; /* '/Enabled Subsystem5' */ + boolean_T EnabledSubsystem4_MODE; /* '/Enabled Subsystem4' */ + boolean_T EnabledSubsystem3_MODE; /* '/Enabled Subsystem3' */ + boolean_T EnabledSubsystem2_MODE; /* '/Enabled Subsystem2' */ + boolean_T EnabledSubsystem16_MODE; /* '/Enabled Subsystem16' */ + boolean_T EnabledSubsystem15_MODE; /* '/Enabled Subsystem15' */ + boolean_T EnabledSubsystem14_MODE; /* '/Enabled Subsystem14' */ + boolean_T EnabledSubsystem13_MODE; /* '/Enabled Subsystem13' */ + boolean_T EnabledSubsystem12_MODE; /* '/Enabled Subsystem12' */ + boolean_T EnabledSubsystem11_MODE; /* '/Enabled Subsystem11' */ + boolean_T EnabledSubsystem10_MODE; /* '/Enabled Subsystem10' */ + boolean_T EnabledSubsystem1_MODE; /* '/Enabled Subsystem1' */ boolean_T EnabledSubsystem7_MODE_l; /* '/Enabled Subsystem7' */ boolean_T EnabledSubsystem6_MODE_d; /* '/Enabled Subsystem6' */ boolean_T EnabledSubsystem5_MODE_g; /* '/Enabled Subsystem5' */ boolean_T enable_gear_MODE; /* '/enable_gear' */ - DW_Distanceintogusty_cr929_SIL_T Distanceintogustz_a;/* '/Distance into gust (z)' */ - DW_Distanceintogusty_cr929_SIL_T Distanceintogusty_k;/* '/Distance into gust (y)' */ - DW_Distanceintogustx_cr929_SIL_T Distanceintogustx_d;/* '/Distance into gust (x)' */ - DW_Distanceintogusty_cr929_SIL_T Distanceintogustz;/* '/Distance into gust (z)' */ - DW_Distanceintogusty_cr929_SIL_T Distanceintogusty;/* '/Distance into gust (y)' */ - DW_Distanceintogustx_cr929_SIL_T Distanceintogustx;/* '/Distance into gust (x)' */ - DW_throttle_cr929_SIL_T throttle1; /* '/throttle1' */ - DW_throttle_cr929_SIL_T throttle; /* '/throttle' */ + DW_Distanceintogusty_cr929_SIL_T Distanceintogustz_a;/* '/Distance into gust (z)' */ + DW_Distanceintogusty_cr929_SIL_T Distanceintogusty_k;/* '/Distance into gust (y)' */ + DW_Distanceintogustx_cr929_SIL_T Distanceintogustx_d;/* '/Distance into gust (x)' */ + DW_Distanceintogusty_cr929_SIL_T Distanceintogustz;/* '/Distance into gust (z)' */ + DW_Distanceintogusty_cr929_SIL_T Distanceintogusty;/* '/Distance into gust (y)' */ + DW_Distanceintogustx_cr929_SIL_T Distanceintogustx;/* '/Distance into gust (x)' */ DW_EnabledSubsystem1_cr929_SIL_T EnabledSubsystem3;/* '/Enabled Subsystem3' */ DW_EnabledSubsystem1_cr929_SIL_T EnabledSubsystem1;/* '/Enabled Subsystem1' */ - DW_tick_cr929_SIL_e_T sf_tick_cu; /* '/tick' */ - DW_tick_cr929_SIL_e_T sf_tick_e; /* '/tick' */ - DW_tick_cr929_SIL_T sf_tick_k; /* '/tick' */ - DW_tick_cr929_SIL_g_T sf_tick_o; /* '/tick' */ - DW_tick_cr929_SIL_g_T sf_tick_c; /* '/tick' */ - DW_tick_cr929_SIL_T sf_tick; /* '/tick' */ - DW_theta2_cr929_SIL_T theta3_j; /* '/theta3' */ - DW_theta2_cr929_SIL_T theta2_h; /* '/theta2' */ - DW_theta1_cr929_SIL_T theta1_k; /* '/theta1' */ - DW_theta2_cr929_SIL_T theta3_b; /* '/theta3' */ - DW_theta2_cr929_SIL_T theta2_g; /* '/theta2' */ - DW_theta1_cr929_SIL_T theta1_d; /* '/theta1' */ - DW_theta2_cr929_SIL_T theta3; /* '/theta3' */ - DW_theta2_cr929_SIL_T theta2; /* '/theta2' */ - DW_theta1_cr929_SIL_T theta1; /* '/theta1' */ + DW_tick_cr929_SIL_e_T sf_tick_cu; /* '/tick' */ + DW_tick_cr929_SIL_e_T sf_tick_e; /* '/tick' */ + DW_tick_cr929_SIL_T sf_tick_k; /* '/tick' */ + DW_tick_cr929_SIL_g_T sf_tick_o; /* '/tick' */ + DW_tick_cr929_SIL_g_T sf_tick_c; /* '/tick' */ + DW_tick_cr929_SIL_T sf_tick; /* '/tick' */ + DW_theta2_cr929_SIL_T theta3_j; /* '/theta3' */ + DW_theta2_cr929_SIL_T theta2_h; /* '/theta2' */ + DW_theta1_cr929_SIL_T theta1_k; /* '/theta1' */ + DW_theta2_cr929_SIL_T theta3_b; /* '/theta3' */ + DW_theta2_cr929_SIL_T theta2_g; /* '/theta2' */ + DW_theta1_cr929_SIL_T theta1_d; /* '/theta1' */ + DW_theta2_cr929_SIL_T theta3; /* '/theta3' */ + DW_theta2_cr929_SIL_T theta2; /* '/theta2' */ + DW_theta1_cr929_SIL_T theta1; /* '/theta1' */ DW_doublet_cr929_SIL_T sf_doublet_f; /* '/doublet' */ DW_doublet_cr929_SIL_T sf_doublet_d; /* '/doublet' */ DW_doublet_cr929_SIL_T sf_doublet; /* '/doublet' */ @@ -2523,58 +2508,58 @@ typedef struct { real_T ubvbwb_CSTATE[3]; /* '/ub,vb,wb' */ real_T pqr_CSTATE[3]; /* '/p,q,r ' */ real_T Integrator_CSTATE; /* '/Integrator' */ - real_T Integrator_CSTATE_f; /* '/Integrator' */ - real_T Integrator_CSTATE_d; /* '/Integrator' */ - real_T Integrator_CSTATE_b; /* '/Integrator' */ - real_T Integrator_CSTATE_h; /* '/Integrator' */ - real_T Integrator_CSTATE_g; /* '/Integrator' */ - real_T Integrator_CSTATE_p; /* '/Integrator' */ - real_T Integrator_CSTATE_a; /* '/Integrator' */ - real_T Integrator_CSTATE_hz; /* '/Integrator' */ - real_T Integrator_CSTATE_ho; /* '/Integrator' */ - real_T Integrator_CSTATE_o; /* '/Integrator' */ - real_T Integrator_CSTATE_i; /* '/Integrator' */ - real_T Integrator_CSTATE_om; /* '/Integrator' */ - real_T Integrator_CSTATE_ha; /* '/Integrator' */ - real_T Integrator_CSTATE_l; /* '/Integrator' */ - real_T Integrator_CSTATE_bb; /* '/Integrator' */ - real_T Integrator_CSTATE_ba; /* '/Integrator' */ - real_T Integrator_CSTATE_hoh; /* '/Integrator' */ - real_T Integrator_CSTATE_pl; /* '/Integrator' */ - real_T Integrator_CSTATE_fn; /* '/Integrator' */ - real_T Integrator_CSTATE_bd; /* '/Integrator' */ + real_T Integrator_CSTATE_f; /* '/Integrator' */ + real_T Integrator_CSTATE_d; /* '/Integrator' */ + real_T Integrator_CSTATE_b; /* '/Integrator' */ + real_T Integrator_CSTATE_h; /* '/Integrator' */ + real_T Integrator_CSTATE_g; /* '/Integrator' */ + real_T Integrator_CSTATE_p; /* '/Integrator' */ + real_T Integrator_CSTATE_a; /* '/Integrator' */ + real_T Integrator_CSTATE_hz; /* '/Integrator' */ + real_T Integrator_CSTATE_ho; /* '/Integrator' */ + real_T Integrator_CSTATE_o; /* '/Integrator' */ + real_T Integrator_CSTATE_i; /* '/Integrator' */ + real_T Integrator_CSTATE_om; /* '/Integrator' */ + real_T Integrator_CSTATE_ha; /* '/Integrator' */ + real_T Integrator_CSTATE_l; /* '/Integrator' */ + real_T Integrator_CSTATE_bb; /* '/Integrator' */ + real_T Integrator_CSTATE_ba; /* '/Integrator' */ + real_T Integrator_CSTATE_hoh; /* '/Integrator' */ + real_T Integrator_CSTATE_pl; /* '/Integrator' */ + real_T Integrator_CSTATE_fn; /* '/Integrator' */ + real_T Integrator_CSTATE_bd; /* '/Integrator' */ real_T Integrator_CSTATE_gb; /* '/Integrator' */ real_T p_CSTATE[3]; /* '/p' */ - real_T Integrator1_CSTATE; /* '/Integrator1' */ - real_T Integrator1_CSTATE_k; /* '/Integrator1' */ - real_T Integrator1_CSTATE_e; /* '/Integrator1' */ - real_T Integrator1_CSTATE_d; /* '/Integrator1' */ - real_T Integrator1_CSTATE_j; /* '/Integrator1' */ - real_T Integrator1_CSTATE_h; /* '/Integrator1' */ - real_T Integrator1_CSTATE_c; /* '/Integrator1' */ - real_T Integrator1_CSTATE_cx; /* '/Integrator1' */ - real_T Integrator1_CSTATE_n; /* '/Integrator1' */ - real_T Integrator1_CSTATE_o; /* '/Integrator1' */ - real_T Integrator1_CSTATE_g; /* '/Integrator1' */ - real_T Integrator1_CSTATE_ny; /* '/Integrator1' */ - real_T Integrator1_CSTATE_k3; /* '/Integrator1' */ - real_T Integrator1_CSTATE_p; /* '/Integrator1' */ - real_T Integrator1_CSTATE_k2; /* '/Integrator1' */ - real_T Integrator1_CSTATE_i; /* '/Integrator1' */ - real_T Integrator1_CSTATE_ce; /* '/Integrator1' */ - real_T Integrator1_CSTATE_c5; /* '/Integrator1' */ - real_T Integrator1_CSTATE_h4; /* '/Integrator1' */ - real_T Integrator1_CSTATE_pg; /* '/Integrator1' */ - real_T Integrator_CSTATE_a0; /* '/Integrator' */ - real_T Integrator1_CSTATE_jv; /* '/Integrator1' */ - X_Distanceintogusty_cr929_SIL_T Distanceintogustz_a;/* '/Distance into gust (y)' */ - X_Distanceintogusty_cr929_SIL_T Distanceintogusty_k;/* '/Distance into gust (y)' */ - X_Distanceintogustx_cr929_SIL_T Distanceintogustx_d;/* '/Distance into gust (x)' */ - X_Distanceintogusty_cr929_SIL_T Distanceintogustz;/* '/Distance into gust (y)' */ - X_Distanceintogusty_cr929_SIL_T Distanceintogusty;/* '/Distance into gust (y)' */ - X_Distanceintogustx_cr929_SIL_T Distanceintogustx;/* '/Distance into gust (x)' */ - X_throttle_cr929_SIL_T throttle1; /* '/throttle' */ - X_throttle_cr929_SIL_T throttle; /* '/throttle' */ + real_T Integrator1_CSTATE; /* '/Integrator1' */ + real_T Integrator1_CSTATE_k; /* '/Integrator1' */ + real_T Integrator1_CSTATE_e; /* '/Integrator1' */ + real_T Integrator1_CSTATE_d; /* '/Integrator1' */ + real_T Integrator1_CSTATE_j; /* '/Integrator1' */ + real_T Integrator1_CSTATE_h; /* '/Integrator1' */ + real_T Integrator1_CSTATE_c; /* '/Integrator1' */ + real_T Integrator1_CSTATE_cx; /* '/Integrator1' */ + real_T Integrator1_CSTATE_n; /* '/Integrator1' */ + real_T Integrator1_CSTATE_o; /* '/Integrator1' */ + real_T Integrator1_CSTATE_g; /* '/Integrator1' */ + real_T Integrator1_CSTATE_ny; /* '/Integrator1' */ + real_T Integrator1_CSTATE_k3; /* '/Integrator1' */ + real_T Integrator1_CSTATE_p; /* '/Integrator1' */ + real_T Integrator1_CSTATE_k2; /* '/Integrator1' */ + real_T Integrator1_CSTATE_i; /* '/Integrator1' */ + real_T Integrator1_CSTATE_ce; /* '/Integrator1' */ + real_T Integrator1_CSTATE_c5; /* '/Integrator1' */ + real_T Integrator1_CSTATE_h4; /* '/Integrator1' */ + real_T Integrator1_CSTATE_pg; /* '/Integrator1' */ + real_T Integrator_CSTATE_a0; /* '/Integrator' */ + real_T Integrator1_CSTATE_jv; /* '/Integrator1' */ + X_Distanceintogusty_cr929_SIL_T Distanceintogustz_a;/* '/Distance into gust (y)' */ + X_Distanceintogusty_cr929_SIL_T Distanceintogusty_k;/* '/Distance into gust (y)' */ + X_Distanceintogustx_cr929_SIL_T Distanceintogustx_d;/* '/Distance into gust (x)' */ + X_Distanceintogusty_cr929_SIL_T Distanceintogustz;/* '/Distance into gust (y)' */ + X_Distanceintogusty_cr929_SIL_T Distanceintogusty;/* '/Distance into gust (y)' */ + X_Distanceintogustx_cr929_SIL_T Distanceintogustx;/* '/Distance into gust (x)' */ + real_T Integrator3_CSTATE; /* '/Integrator3' */ + real_T Integrator3_CSTATE_o; /* '/Integrator3' */ } X_cr929_SIL_T; /* State derivatives (default storage) */ @@ -2584,58 +2569,58 @@ typedef struct { real_T ubvbwb_CSTATE[3]; /* '/ub,vb,wb' */ real_T pqr_CSTATE[3]; /* '/p,q,r ' */ real_T Integrator_CSTATE; /* '/Integrator' */ - real_T Integrator_CSTATE_f; /* '/Integrator' */ - real_T Integrator_CSTATE_d; /* '/Integrator' */ - real_T Integrator_CSTATE_b; /* '/Integrator' */ - real_T Integrator_CSTATE_h; /* '/Integrator' */ - real_T Integrator_CSTATE_g; /* '/Integrator' */ - real_T Integrator_CSTATE_p; /* '/Integrator' */ - real_T Integrator_CSTATE_a; /* '/Integrator' */ - real_T Integrator_CSTATE_hz; /* '/Integrator' */ - real_T Integrator_CSTATE_ho; /* '/Integrator' */ - real_T Integrator_CSTATE_o; /* '/Integrator' */ - real_T Integrator_CSTATE_i; /* '/Integrator' */ - real_T Integrator_CSTATE_om; /* '/Integrator' */ - real_T Integrator_CSTATE_ha; /* '/Integrator' */ - real_T Integrator_CSTATE_l; /* '/Integrator' */ - real_T Integrator_CSTATE_bb; /* '/Integrator' */ - real_T Integrator_CSTATE_ba; /* '/Integrator' */ - real_T Integrator_CSTATE_hoh; /* '/Integrator' */ - real_T Integrator_CSTATE_pl; /* '/Integrator' */ - real_T Integrator_CSTATE_fn; /* '/Integrator' */ - real_T Integrator_CSTATE_bd; /* '/Integrator' */ + real_T Integrator_CSTATE_f; /* '/Integrator' */ + real_T Integrator_CSTATE_d; /* '/Integrator' */ + real_T Integrator_CSTATE_b; /* '/Integrator' */ + real_T Integrator_CSTATE_h; /* '/Integrator' */ + real_T Integrator_CSTATE_g; /* '/Integrator' */ + real_T Integrator_CSTATE_p; /* '/Integrator' */ + real_T Integrator_CSTATE_a; /* '/Integrator' */ + real_T Integrator_CSTATE_hz; /* '/Integrator' */ + real_T Integrator_CSTATE_ho; /* '/Integrator' */ + real_T Integrator_CSTATE_o; /* '/Integrator' */ + real_T Integrator_CSTATE_i; /* '/Integrator' */ + real_T Integrator_CSTATE_om; /* '/Integrator' */ + real_T Integrator_CSTATE_ha; /* '/Integrator' */ + real_T Integrator_CSTATE_l; /* '/Integrator' */ + real_T Integrator_CSTATE_bb; /* '/Integrator' */ + real_T Integrator_CSTATE_ba; /* '/Integrator' */ + real_T Integrator_CSTATE_hoh; /* '/Integrator' */ + real_T Integrator_CSTATE_pl; /* '/Integrator' */ + real_T Integrator_CSTATE_fn; /* '/Integrator' */ + real_T Integrator_CSTATE_bd; /* '/Integrator' */ real_T Integrator_CSTATE_gb; /* '/Integrator' */ real_T p_CSTATE[3]; /* '/p' */ - real_T Integrator1_CSTATE; /* '/Integrator1' */ - real_T Integrator1_CSTATE_k; /* '/Integrator1' */ - real_T Integrator1_CSTATE_e; /* '/Integrator1' */ - real_T Integrator1_CSTATE_d; /* '/Integrator1' */ - real_T Integrator1_CSTATE_j; /* '/Integrator1' */ - real_T Integrator1_CSTATE_h; /* '/Integrator1' */ - real_T Integrator1_CSTATE_c; /* '/Integrator1' */ - real_T Integrator1_CSTATE_cx; /* '/Integrator1' */ - real_T Integrator1_CSTATE_n; /* '/Integrator1' */ - real_T Integrator1_CSTATE_o; /* '/Integrator1' */ - real_T Integrator1_CSTATE_g; /* '/Integrator1' */ - real_T Integrator1_CSTATE_ny; /* '/Integrator1' */ - real_T Integrator1_CSTATE_k3; /* '/Integrator1' */ - real_T Integrator1_CSTATE_p; /* '/Integrator1' */ - real_T Integrator1_CSTATE_k2; /* '/Integrator1' */ - real_T Integrator1_CSTATE_i; /* '/Integrator1' */ - real_T Integrator1_CSTATE_ce; /* '/Integrator1' */ - real_T Integrator1_CSTATE_c5; /* '/Integrator1' */ - real_T Integrator1_CSTATE_h4; /* '/Integrator1' */ - real_T Integrator1_CSTATE_pg; /* '/Integrator1' */ - real_T Integrator_CSTATE_a0; /* '/Integrator' */ - real_T Integrator1_CSTATE_jv; /* '/Integrator1' */ - XDot_Distanceintogusty_cr929_SIL_T Distanceintogustz_a;/* '/Distance into gust (y)' */ - XDot_Distanceintogusty_cr929_SIL_T Distanceintogusty_k;/* '/Distance into gust (y)' */ - XDot_Distanceintogustx_cr929_SIL_T Distanceintogustx_d;/* '/Distance into gust (x)' */ - XDot_Distanceintogusty_cr929_SIL_T Distanceintogustz;/* '/Distance into gust (y)' */ - XDot_Distanceintogusty_cr929_SIL_T Distanceintogusty;/* '/Distance into gust (y)' */ - XDot_Distanceintogustx_cr929_SIL_T Distanceintogustx;/* '/Distance into gust (x)' */ - XDot_throttle_cr929_SIL_T throttle1; /* '/throttle' */ - XDot_throttle_cr929_SIL_T throttle; /* '/throttle' */ + real_T Integrator1_CSTATE; /* '/Integrator1' */ + real_T Integrator1_CSTATE_k; /* '/Integrator1' */ + real_T Integrator1_CSTATE_e; /* '/Integrator1' */ + real_T Integrator1_CSTATE_d; /* '/Integrator1' */ + real_T Integrator1_CSTATE_j; /* '/Integrator1' */ + real_T Integrator1_CSTATE_h; /* '/Integrator1' */ + real_T Integrator1_CSTATE_c; /* '/Integrator1' */ + real_T Integrator1_CSTATE_cx; /* '/Integrator1' */ + real_T Integrator1_CSTATE_n; /* '/Integrator1' */ + real_T Integrator1_CSTATE_o; /* '/Integrator1' */ + real_T Integrator1_CSTATE_g; /* '/Integrator1' */ + real_T Integrator1_CSTATE_ny; /* '/Integrator1' */ + real_T Integrator1_CSTATE_k3; /* '/Integrator1' */ + real_T Integrator1_CSTATE_p; /* '/Integrator1' */ + real_T Integrator1_CSTATE_k2; /* '/Integrator1' */ + real_T Integrator1_CSTATE_i; /* '/Integrator1' */ + real_T Integrator1_CSTATE_ce; /* '/Integrator1' */ + real_T Integrator1_CSTATE_c5; /* '/Integrator1' */ + real_T Integrator1_CSTATE_h4; /* '/Integrator1' */ + real_T Integrator1_CSTATE_pg; /* '/Integrator1' */ + real_T Integrator_CSTATE_a0; /* '/Integrator' */ + real_T Integrator1_CSTATE_jv; /* '/Integrator1' */ + XDot_Distanceintogusty_cr929_SIL_T Distanceintogustz_a;/* '/Distance into gust (y)' */ + XDot_Distanceintogusty_cr929_SIL_T Distanceintogusty_k;/* '/Distance into gust (y)' */ + XDot_Distanceintogustx_cr929_SIL_T Distanceintogustx_d;/* '/Distance into gust (x)' */ + XDot_Distanceintogusty_cr929_SIL_T Distanceintogustz;/* '/Distance into gust (y)' */ + XDot_Distanceintogusty_cr929_SIL_T Distanceintogusty;/* '/Distance into gust (y)' */ + XDot_Distanceintogustx_cr929_SIL_T Distanceintogustx;/* '/Distance into gust (x)' */ + real_T Integrator3_CSTATE; /* '/Integrator3' */ + real_T Integrator3_CSTATE_o; /* '/Integrator3' */ } XDot_cr929_SIL_T; /* State disabled */ @@ -2645,58 +2630,58 @@ typedef struct { boolean_T ubvbwb_CSTATE[3]; /* '/ub,vb,wb' */ boolean_T pqr_CSTATE[3]; /* '/p,q,r ' */ boolean_T Integrator_CSTATE; /* '/Integrator' */ - boolean_T Integrator_CSTATE_f; /* '/Integrator' */ - boolean_T Integrator_CSTATE_d; /* '/Integrator' */ - boolean_T Integrator_CSTATE_b; /* '/Integrator' */ - boolean_T Integrator_CSTATE_h; /* '/Integrator' */ - boolean_T Integrator_CSTATE_g; /* '/Integrator' */ - boolean_T Integrator_CSTATE_p; /* '/Integrator' */ - boolean_T Integrator_CSTATE_a; /* '/Integrator' */ - boolean_T Integrator_CSTATE_hz; /* '/Integrator' */ - boolean_T Integrator_CSTATE_ho; /* '/Integrator' */ - boolean_T Integrator_CSTATE_o; /* '/Integrator' */ - boolean_T Integrator_CSTATE_i; /* '/Integrator' */ - boolean_T Integrator_CSTATE_om; /* '/Integrator' */ - boolean_T Integrator_CSTATE_ha; /* '/Integrator' */ - boolean_T Integrator_CSTATE_l; /* '/Integrator' */ - boolean_T Integrator_CSTATE_bb; /* '/Integrator' */ - boolean_T Integrator_CSTATE_ba; /* '/Integrator' */ - boolean_T Integrator_CSTATE_hoh; /* '/Integrator' */ - boolean_T Integrator_CSTATE_pl; /* '/Integrator' */ - boolean_T Integrator_CSTATE_fn; /* '/Integrator' */ - boolean_T Integrator_CSTATE_bd; /* '/Integrator' */ + boolean_T Integrator_CSTATE_f; /* '/Integrator' */ + boolean_T Integrator_CSTATE_d; /* '/Integrator' */ + boolean_T Integrator_CSTATE_b; /* '/Integrator' */ + boolean_T Integrator_CSTATE_h; /* '/Integrator' */ + boolean_T Integrator_CSTATE_g; /* '/Integrator' */ + boolean_T Integrator_CSTATE_p; /* '/Integrator' */ + boolean_T Integrator_CSTATE_a; /* '/Integrator' */ + boolean_T Integrator_CSTATE_hz; /* '/Integrator' */ + boolean_T Integrator_CSTATE_ho; /* '/Integrator' */ + boolean_T Integrator_CSTATE_o; /* '/Integrator' */ + boolean_T Integrator_CSTATE_i; /* '/Integrator' */ + boolean_T Integrator_CSTATE_om; /* '/Integrator' */ + boolean_T Integrator_CSTATE_ha; /* '/Integrator' */ + boolean_T Integrator_CSTATE_l; /* '/Integrator' */ + boolean_T Integrator_CSTATE_bb; /* '/Integrator' */ + boolean_T Integrator_CSTATE_ba; /* '/Integrator' */ + boolean_T Integrator_CSTATE_hoh; /* '/Integrator' */ + boolean_T Integrator_CSTATE_pl; /* '/Integrator' */ + boolean_T Integrator_CSTATE_fn; /* '/Integrator' */ + boolean_T Integrator_CSTATE_bd; /* '/Integrator' */ boolean_T Integrator_CSTATE_gb; /* '/Integrator' */ boolean_T p_CSTATE[3]; /* '/p' */ - boolean_T Integrator1_CSTATE; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_k; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_e; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_d; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_j; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_h; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_c; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_cx; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_n; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_o; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_g; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_ny; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_k3; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_p; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_k2; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_i; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_ce; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_c5; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_h4; /* '/Integrator1' */ - boolean_T Integrator1_CSTATE_pg; /* '/Integrator1' */ - boolean_T Integrator_CSTATE_a0; /* '/Integrator' */ - boolean_T Integrator1_CSTATE_jv; /* '/Integrator1' */ - XDis_Distanceintogusty_cr929_SIL_T Distanceintogustz_a;/* '/Distance into gust (y)' */ - XDis_Distanceintogusty_cr929_SIL_T Distanceintogusty_k;/* '/Distance into gust (y)' */ - XDis_Distanceintogustx_cr929_SIL_T Distanceintogustx_d;/* '/Distance into gust (x)' */ - XDis_Distanceintogusty_cr929_SIL_T Distanceintogustz;/* '/Distance into gust (y)' */ - XDis_Distanceintogusty_cr929_SIL_T Distanceintogusty;/* '/Distance into gust (y)' */ - XDis_Distanceintogustx_cr929_SIL_T Distanceintogustx;/* '/Distance into gust (x)' */ - XDis_throttle_cr929_SIL_T throttle1; /* '/throttle' */ - XDis_throttle_cr929_SIL_T throttle; /* '/throttle' */ + boolean_T Integrator1_CSTATE; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_k; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_e; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_d; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_j; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_h; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_c; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_cx; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_n; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_o; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_g; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_ny; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_k3; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_p; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_k2; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_i; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_ce; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_c5; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_h4; /* '/Integrator1' */ + boolean_T Integrator1_CSTATE_pg; /* '/Integrator1' */ + boolean_T Integrator_CSTATE_a0; /* '/Integrator' */ + boolean_T Integrator1_CSTATE_jv; /* '/Integrator1' */ + XDis_Distanceintogusty_cr929_SIL_T Distanceintogustz_a;/* '/Distance into gust (y)' */ + XDis_Distanceintogusty_cr929_SIL_T Distanceintogusty_k;/* '/Distance into gust (y)' */ + XDis_Distanceintogustx_cr929_SIL_T Distanceintogustx_d;/* '/Distance into gust (x)' */ + XDis_Distanceintogusty_cr929_SIL_T Distanceintogustz;/* '/Distance into gust (y)' */ + XDis_Distanceintogusty_cr929_SIL_T Distanceintogusty;/* '/Distance into gust (y)' */ + XDis_Distanceintogustx_cr929_SIL_T Distanceintogustx;/* '/Distance into gust (x)' */ + boolean_T Integrator3_CSTATE; /* '/Integrator3' */ + boolean_T Integrator3_CSTATE_o; /* '/Integrator3' */ } XDis_cr929_SIL_T; /* Invariant block signals for system '/For_each_thrust1' */ @@ -2727,63 +2712,63 @@ typedef struct { const real_T Sum_d; /* '/Sum' */ const real_T UnitConversion; /* '/Unit Conversion' */ const real_T TmpSignalConversionAtForEachSubsystemInport2[3]; - const real_T Sqrt[4]; /* '/Sqrt' */ - const real_T Sqrt1; /* '/Sqrt1' */ - const real_T Divide[4]; /* '/Divide' */ - const real_T UnitConversion_e; /* '/Unit Conversion' */ - const real_T UnitConversion_m; /* '/Unit Conversion' */ - const real_T sigma_wg; /* '/sigma_wg ' */ - const real_T PreLookUpIndexSearchprobofexceed_o2;/* '/PreLook-Up Index Search (prob of exceed)' */ - const real_T UnitConversion_f; /* '/Unit Conversion' */ - const real_T UnitConversion_d; /* '/Unit Conversion' */ - const real_T Sum_h; /* '/Sum' */ - const real_T Sum_o; /* '/Sum' */ - const real_T dt1; /* '/dt1' */ - const real_T dt1_k; /* '/dt1' */ + const real_T Sqrt[4]; /* '/Sqrt' */ + const real_T Sqrt1; /* '/Sqrt1' */ + const real_T Divide[4]; /* '/Divide' */ + const real_T UnitConversion_e; /* '/Unit Conversion' */ + const real_T UnitConversion_m; /* '/Unit Conversion' */ + const real_T sigma_wg; /* '/sigma_wg ' */ + const real_T PreLookUpIndexSearchprobofexceed_o2;/* '/PreLook-Up Index Search (prob of exceed)' */ + const real_T UnitConversion_f; /* '/Unit Conversion' */ + const real_T UnitConversion_d; /* '/Unit Conversion' */ + const real_T Sum_h; /* '/Sum' */ + const real_T Sum_o; /* '/Sum' */ + const real_T dt1; /* '/dt1' */ + const real_T dt1_k; /* '/dt1' */ const real_T Selector[3]; /* '/Selector' */ const real_T Selector1[3]; /* '/Selector1' */ const real_T Selector2[3]; /* '/Selector2' */ - const uint32_T PreLookUpIndexSearchprobofexceed_o1;/* '/PreLook-Up Index Search (prob of exceed)' */ - const uint16_T Width1; /* '/Width1' */ - const uint16_T Width1_o; /* '/Width1' */ - const uint16_T Width1_c; /* '/Width1' */ - const uint16_T Width1_j; /* '/Width1' */ - const uint16_T Width1_ce; /* '/Width1' */ - const uint16_T Width1_g; /* '/Width1' */ - const uint16_T Width1_p; /* '/Width1' */ - const uint16_T Width1_c1; /* '/Width1' */ - const uint16_T Width1_c5; /* '/Width1' */ - const uint16_T Width1_gd; /* '/Width1' */ - const uint16_T Width1_n; /* '/Width1' */ - const uint16_T Width1_nt; /* '/Width1' */ - const uint16_T Width1_n3; /* '/Width1' */ - const uint16_T Width1_jh; /* '/Width1' */ - const uint16_T Width1_a; /* '/Width1' */ - const uint16_T Width1_cn; /* '/Width1' */ - const uint16_T Width1_jv; /* '/Width1' */ - const uint16_T Width1_gy; /* '/Width1' */ - const uint16_T Width1_m; /* '/Width1' */ - const uint16_T Width1_h; /* '/Width1' */ - const uint8_T Width; /* '/Width' */ - const uint8_T Width_i; /* '/Width' */ - const uint8_T Width_k; /* '/Width' */ - const uint8_T Width_n; /* '/Width' */ - const uint8_T Width_a; /* '/Width' */ - const uint8_T Width_j; /* '/Width' */ - const uint8_T Width_e; /* '/Width' */ - const uint8_T Width_eq; /* '/Width' */ - const uint8_T Width_is; /* '/Width' */ - const uint8_T Width_p; /* '/Width' */ - const uint8_T Width_d; /* '/Width' */ - const uint8_T Width_b; /* '/Width' */ - const uint8_T Width_g; /* '/Width' */ - const uint8_T Width_n5; /* '/Width' */ - const uint8_T Width_m; /* '/Width' */ - const uint8_T Width_py; /* '/Width' */ - const uint8_T Width_gv; /* '/Width' */ - const uint8_T Width_o; /* '/Width' */ - const uint8_T Width_jj; /* '/Width' */ - const uint8_T Width_if; /* '/Width' */ + const uint32_T PreLookUpIndexSearchprobofexceed_o1;/* '/PreLook-Up Index Search (prob of exceed)' */ + const uint16_T Width1; /* '/Width1' */ + const uint16_T Width1_o; /* '/Width1' */ + const uint16_T Width1_c; /* '/Width1' */ + const uint16_T Width1_j; /* '/Width1' */ + const uint16_T Width1_ce; /* '/Width1' */ + const uint16_T Width1_g; /* '/Width1' */ + const uint16_T Width1_p; /* '/Width1' */ + const uint16_T Width1_c1; /* '/Width1' */ + const uint16_T Width1_c5; /* '/Width1' */ + const uint16_T Width1_gd; /* '/Width1' */ + const uint16_T Width1_n; /* '/Width1' */ + const uint16_T Width1_nt; /* '/Width1' */ + const uint16_T Width1_n3; /* '/Width1' */ + const uint16_T Width1_jh; /* '/Width1' */ + const uint16_T Width1_a; /* '/Width1' */ + const uint16_T Width1_cn; /* '/Width1' */ + const uint16_T Width1_jv; /* '/Width1' */ + const uint16_T Width1_gy; /* '/Width1' */ + const uint16_T Width1_m; /* '/Width1' */ + const uint16_T Width1_h; /* '/Width1' */ + const uint8_T Width; /* '/Width' */ + const uint8_T Width_i; /* '/Width' */ + const uint8_T Width_k; /* '/Width' */ + const uint8_T Width_n; /* '/Width' */ + const uint8_T Width_a; /* '/Width' */ + const uint8_T Width_j; /* '/Width' */ + const uint8_T Width_e; /* '/Width' */ + const uint8_T Width_eq; /* '/Width' */ + const uint8_T Width_is; /* '/Width' */ + const uint8_T Width_p; /* '/Width' */ + const uint8_T Width_d; /* '/Width' */ + const uint8_T Width_b; /* '/Width' */ + const uint8_T Width_g; /* '/Width' */ + const uint8_T Width_n5; /* '/Width' */ + const uint8_T Width_m; /* '/Width' */ + const uint8_T Width_py; /* '/Width' */ + const uint8_T Width_gv; /* '/Width' */ + const uint8_T Width_o; /* '/Width' */ + const uint8_T Width_jj; /* '/Width' */ + const uint8_T Width_if; /* '/Width' */ const boolean_T Compare; /* '/Compare' */ ConstB_For_each_thrust1_cr929_SIL_T For_each_thrust1_g;/* '/For_each_thrust1' */ ConstB_For_each_thrust1_cr929_SIL_T For_each_thrust1;/* '/For_each_thrust1' */ @@ -2856,27 +2841,29 @@ typedef struct { real_T da; /* '/da' */ real_T de; /* '/de' */ real_T dr; /* '/dr' */ + real_T alpha; /* '/alpha' */ + real_T beta; /* '/beta' */ } ExtY_cr929_SIL_T; /* Parameters (default storage) */ struct P_cr929_SIL_T_ { real_T AccelBias[3]; /* Variable: AccelBias - * Referenced by: '/Measurement bias' + * Referenced by: '/Measurement bias' */ real_T AccelScaleMatrix[9]; /* Variable: AccelScaleMatrix - * Referenced by: '/Scale factors & Cross-coupling errors' + * Referenced by: '/Scale factors & Cross-coupling errors' */ real_T GyroBias[3]; /* Variable: GyroBias - * Referenced by: '/Measurement bias' + * Referenced by: '/Measurement bias' */ real_T GyroGBias[3]; /* Variable: GyroGBias - * Referenced by: '/g-sensitive bias' + * Referenced by: '/g-sensitive bias' */ real_T GyroScaleMatrix[9]; /* Variable: GyroScaleMatrix - * Referenced by: '/Scale factors & Cross-coupling errors ' + * Referenced by: '/Scale factors & Cross-coupling errors ' */ real_T IMUloc[3]; /* Variable: IMUloc - * Referenced by: '/wl_ins' + * Referenced by: '/wl_ins' */ real_T deadband_da; /* Variable: deadband_da * Referenced by: '/Backlash8' @@ -2892,82 +2879,85 @@ struct P_cr929_SIL_T_ { */ real_T deadband_dsp; /* Variable: deadband_dsp * Referenced by: - * '/Backlash1' - * '/Backlash10' - * '/Backlash11' - * '/Backlash12' - * '/Backlash13' - * '/Backlash14' - * '/Backlash15' - * '/Backlash16' - * '/Backlash2' - * '/Backlash3' - * '/Backlash4' - * '/Backlash5' - * '/Backlash6' - * '/Backlash7' - * '/Backlash8' - * '/Backlash9' + * '/Backlash1' + * '/Backlash10' + * '/Backlash11' + * '/Backlash12' + * '/Backlash13' + * '/Backlash14' + * '/Backlash15' + * '/Backlash16' + * '/Backlash2' + * '/Backlash3' + * '/Backlash4' + * '/Backlash5' + * '/Backlash6' + * '/Backlash7' + * '/Backlash8' + * '/Backlash9' */ real_T map_rpm_lst[12]; /* Variable: map_rpm_lst * Referenced by: - * '/Constant1' * '/Constant1' * '/Constant1' + * '/Constant1' */ real_T map_thr_lst[12]; /* Variable: map_thr_lst * Referenced by: - * '/Constant' * '/Constant' * '/Constant' + * '/Constant' */ real_T mass0; /* Variable: mass0 * Referenced by: '/Constant1' */ real_T throttle_k; /* Variable: throttle_k * Referenced by: - * '/Gain3' - * '/Gain3' + * '/Gain3' + * '/Gain3' */ real_T wind_east[2]; /* Variable: wind_east - * Referenced by: '/wind_East' + * Referenced by: '/wind_East' */ real_T wind_level[2]; /* Variable: wind_level * Referenced by: - * '/wind_East' - * '/wind_North' + * '/wind_East' + * '/wind_North' */ real_T wind_north[2]; /* Variable: wind_north - * Referenced by: '/wind_North' + * Referenced by: '/wind_North' */ real32_T CLa; /* Variable: CLa - * Referenced by: '/Constant Single1' + * Referenced by: '/Constant Single1' + */ + real32_T Cf_lst[12]; /* Variable: Cf_lst + * Referenced by: '/1-D Lookup Table' */ real32_T Cl_lst[15]; /* Variable: Cl_lst - * Referenced by: '/Constant1' + * Referenced by: '/Constant1' */ real32_T Clda; /* Variable: Clda - * Referenced by: '/Constant10' + * Referenced by: '/Constant10' */ real32_T Clda_mix; /* Variable: Clda_mix * Referenced by: - * '/Constant9' - * '/Constant' + * '/Constant9' + * '/Constant' */ real32_T Clp; /* Variable: Clp - * Referenced by: '/p2pdot' + * Referenced by: '/p2pdot' */ real32_T Cmde; /* Variable: Cmde - * Referenced by: '/de2qdot' + * Referenced by: '/de2qdot' */ real32_T Cmq; /* Variable: Cmq - * Referenced by: '/q2qdot' + * Referenced by: '/q2qdot' */ real32_T Cndr; /* Variable: Cndr - * Referenced by: '/dr2rdot' + * Referenced by: '/dr2rdot' */ real32_T Cnr; /* Variable: Cnr - * Referenced by: '/p2pdot1' + * Referenced by: '/p2pdot1' */ real32_T CruiseSpeed; /* Variable: CruiseSpeed * Referenced by: '/Constant Single25' @@ -2982,22 +2972,24 @@ struct P_cr929_SIL_T_ { * Referenced by: '/Constant Single58' */ real32_T Ixx; /* Variable: Ixx - * Referenced by: '/Constant6' + * Referenced by: '/Constant6' */ real32_T Iyy; /* Variable: Iyy - * Referenced by: '/Constant3' + * Referenced by: '/Constant3' */ real32_T Izz; /* Variable: Izz * Referenced by: - * '/Constant7' - * '/Gain2' + * '/Constant7' + * '/Gain2' */ real32_T K; /* Variable: K * Referenced by: - * '/Constant' - * '/Constant1' - * '/Constant1' - * '/Constant2' + * '/Constant2' + * '/Gain' + * '/Constant' + * '/Constant1' + * '/Constant1' + * '/Constant2' */ real32_T LandingSpeed; /* Variable: LandingSpeed * Referenced by: '/Constant Single41' @@ -3005,25 +2997,25 @@ struct P_cr929_SIL_T_ { real32_T RefArea; /* Variable: RefArea * Referenced by: * '/Constant Single50' - * '/Sc_Iyy' - * '/Sc_Iyy2' - * '/Sc_Iyy4' - * '/Constant Single2' + * '/Sc_Iyy' + * '/Sc_Iyy2' + * '/Sc_Iyy4' + * '/Constant Single2' */ real32_T RefLen; /* Variable: RefLen * Referenced by: - * '/Constant4' - * '/q2qdot' + * '/Constant4' + * '/q2qdot' */ real32_T RefSpan; /* Variable: RefSpan * Referenced by: - * '/Sc_Iyy1' - * '/Sc_Iyy3' - * '/p2pdot' - * '/p2pdot1' + * '/Sc_Iyy1' + * '/Sc_Iyy3' + * '/p2pdot' + * '/p2pdot1' */ real32_T STEER_POWER; /* Variable: STEER_POWER - * Referenced by: '/Gain2' + * Referenced by: '/Gain2' */ real32_T TakeOffAlt; /* Variable: TakeOffAlt * Referenced by: '/Constant Single60' @@ -3040,12 +3032,6 @@ struct P_cr929_SIL_T_ { real32_T V1; /* Variable: V1 * Referenced by: '/Constant Single27' */ - real32_T antistall_lock; /* Variable: antistall_lock - * Referenced by: '/Constant4' - */ - real32_T antistall_release; /* Variable: antistall_release - * Referenced by: '/Constant5' - */ real32_T auto_gear_updown; /* Variable: auto_gear_updown * Referenced by: '/Constant Single57' */ @@ -3056,36 +3042,36 @@ struct P_cr929_SIL_T_ { * Referenced by: '/Constant1' */ real32_T cg_lst[20]; /* Variable: cg_lst - * Referenced by: '/Constant1' + * Referenced by: '/Constant1' */ real32_T da_list[15]; /* Variable: da_list * Referenced by: - * '/da2dal_deg' - * '/da2dar_deg' - * '/da2dspl4_deg' - * '/da2dspl5_deg' - * '/da2dspl6_deg' - * '/da2dspl7_deg' - * '/da2dspl8_deg' - * '/da2dspr4_deg' - * '/da2dspr5_deg' - * '/da2dspr6_deg' - * '/da2dspr7_deg' - * '/da2dspr8_deg' + * '/da2dal_deg' + * '/da2dar_deg' + * '/da2dspl4_deg' + * '/da2dspl5_deg' + * '/da2dspl6_deg' + * '/da2dspl7_deg' + * '/da2dspl8_deg' + * '/da2dspr4_deg' + * '/da2dspr5_deg' + * '/da2dspr6_deg' + * '/da2dspr7_deg' + * '/da2dspr8_deg' */ real32_T da_list_unmix[3]; /* Variable: da_list_unmix * Referenced by: - * '/da2dal_deg' - * '/da2dar_deg' + * '/da2dal_deg' + * '/da2dar_deg' */ real32_T da_lst[15]; /* Variable: da_lst - * Referenced by: '/Constant2' + * Referenced by: '/Constant2' */ real32_T dal_list[15]; /* Variable: dal_list - * Referenced by: '/da2dal_deg' + * Referenced by: '/da2dal_deg' */ real32_T dal_list_unmix[3]; /* Variable: dal_list_unmix - * Referenced by: '/da2dal_deg' + * Referenced by: '/da2dal_deg' */ real32_T dal_pos[3]; /* Variable: dal_pos * Referenced by: '/1-D Lookup Table8' @@ -3094,23 +3080,19 @@ struct P_cr929_SIL_T_ { * Referenced by: '/1-D Lookup Table8' */ real32_T dar_list[15]; /* Variable: dar_list - * Referenced by: '/da2dar_deg' + * Referenced by: '/da2dar_deg' */ real32_T dar_list_unmix[3]; /* Variable: dar_list_unmix - * Referenced by: '/da2dar_deg' + * Referenced by: '/da2dar_deg' */ real32_T dar_pos[3]; /* Variable: dar_pos - * Referenced by: - * '/Constant1' - * '/1-D Lookup Table3' + * Referenced by: '/1-D Lookup Table3' */ real32_T dar_pwm[3]; /* Variable: dar_pwm - * Referenced by: - * '/Constant' - * '/1-D Lookup Table3' + * Referenced by: '/1-D Lookup Table3' */ real32_T ddf_c; /* Variable: ddf_c - * Referenced by: '/Constant6' + * Referenced by: '/Constant6' */ real32_T del_pos[3]; /* Variable: del_pos * Referenced by: '/1-D Lookup Table9' @@ -3120,17 +3102,17 @@ struct P_cr929_SIL_T_ { */ real32_T den_da2dr[2]; /* Variable: den_da2dr * Referenced by: - * '/Constant2' - * '/Constant2' + * '/Constant2' + * '/Constant2' */ real32_T der_pos[3]; /* Variable: der_pos * Referenced by: - * '/Constant1' + * '/Constant1' * '/1-D Lookup Table4' */ real32_T der_pwm[3]; /* Variable: der_pwm * Referenced by: - * '/Constant' + * '/Constant' * '/1-D Lookup Table4' */ real32_T det_time; /* Variable: det_time @@ -3138,8 +3120,8 @@ struct P_cr929_SIL_T_ { */ real32_T dflap_ratelim; /* Variable: dflap_ratelim * Referenced by: - * '/Constant2' - * '/Constant3' + * '/Constant2' + * '/Constant3' */ real32_T dflii_pos[5]; /* Variable: dflii_pos * Referenced by: '/1-D Lookup Table13' @@ -3147,6 +3129,12 @@ struct P_cr929_SIL_T_ { real32_T dflii_pwm[5]; /* Variable: dflii_pwm * Referenced by: '/1-D Lookup Table13' */ + real32_T dflio_pos[5]; /* Variable: dflio_pos + * Referenced by: '/1-D Lookup Table17' + */ + real32_T dflio_pwm[5]; /* Variable: dflio_pwm + * Referenced by: '/1-D Lookup Table17' + */ real32_T dflo2_pos[5]; /* Variable: dflo2_pos * Referenced by: '/1-D Lookup Table15' */ @@ -3183,24 +3171,26 @@ struct P_cr929_SIL_T_ { real32_T dfro_pwm[5]; /* Variable: dfro_pwm * Referenced by: '/1-D Lookup Table11' */ - real32_T dh_pos[3]; /* Variable: dh_pos - * Referenced by: - * '/Constant1' - * '/1-D Lookup Table5' + real32_T dhl_pos[4]; /* Variable: dhl_pos + * Referenced by: '/1-D Lookup Table12' */ - real32_T dh_pwm[3]; /* Variable: dh_pwm - * Referenced by: - * '/Constant' - * '/1-D Lookup Table5' + real32_T dhl_pwm[4]; /* Variable: dhl_pwm + * Referenced by: '/1-D Lookup Table12' + */ + real32_T dhr_pos[4]; /* Variable: dhr_pos + * Referenced by: '/1-D Lookup Table5' + */ + real32_T dhr_pwm[4]; /* Variable: dhr_pwm + * Referenced by: '/1-D Lookup Table5' */ real32_T dht_ratelim; /* Variable: dht_ratelim - * Referenced by: '/Constant4' + * Referenced by: '/Constant4' */ real32_T dr0_c; /* Variable: dr0_c - * Referenced by: '/Constant' + * Referenced by: '/Constant' */ real32_T dr_trim; /* Variable: dr_trim - * Referenced by: '/Constant7' + * Referenced by: '/Constant7' */ real32_T drd_pos[3]; /* Variable: drd_pos * Referenced by: '/1-D Lookup Table' @@ -3216,182 +3206,180 @@ struct P_cr929_SIL_T_ { */ real32_T dsp_ratelim; /* Variable: dsp_ratelim * Referenced by: - * '/Constant' - * '/Constant1' + * '/Constant' + * '/Constant1' */ real32_T dspl4_list[15]; /* Variable: dspl4_list - * Referenced by: '/da2dspl4_deg' + * Referenced by: '/da2dspl4_deg' */ real32_T dspl5_list[15]; /* Variable: dspl5_list - * Referenced by: '/da2dspl5_deg' + * Referenced by: '/da2dspl5_deg' */ real32_T dspl6_list[15]; /* Variable: dspl6_list - * Referenced by: '/da2dspl6_deg' + * Referenced by: '/da2dspl6_deg' */ real32_T dspl7_list[15]; /* Variable: dspl7_list - * Referenced by: '/da2dspl7_deg' + * Referenced by: '/da2dspl7_deg' */ real32_T dspl8_list[15]; /* Variable: dspl8_list - * Referenced by: '/da2dspl8_deg' + * Referenced by: '/da2dspl8_deg' */ - real32_T dspli1_pos[3]; /* Variable: dspli1_pos - * Referenced by: '/1-D Lookup Table' + real32_T dspli1_pos[6]; /* Variable: dspli1_pos + * Referenced by: + * '/1-D Lookup Table' + * '/Constant1' */ - real32_T dspli1_pwm[3]; /* Variable: dspli1_pwm - * Referenced by: '/1-D Lookup Table' + real32_T dspli1_pwm[6]; /* Variable: dspli1_pwm + * Referenced by: + * '/1-D Lookup Table' + * '/Constant' */ - real32_T dspli2_pos[3]; /* Variable: dspli2_pos + real32_T dspli2_pos[6]; /* Variable: dspli2_pos * Referenced by: '/1-D Lookup Table1' */ - real32_T dspli2_pwm[3]; /* Variable: dspli2_pwm + real32_T dspli2_pwm[6]; /* Variable: dspli2_pwm * Referenced by: '/1-D Lookup Table1' */ - real32_T dspli3_pos[3]; /* Variable: dspli3_pos + real32_T dspli3_pos[6]; /* Variable: dspli3_pos * Referenced by: '/1-D Lookup Table2' */ - real32_T dspli3_pwm[3]; /* Variable: dspli3_pwm + real32_T dspli3_pwm[6]; /* Variable: dspli3_pwm * Referenced by: '/1-D Lookup Table2' */ - real32_T dsplo1_pos[3]; /* Variable: dsplo1_pos + real32_T dsplo1_pos[6]; /* Variable: dsplo1_pos * Referenced by: '/1-D Lookup Table6' */ - real32_T dsplo1_pwm[3]; /* Variable: dsplo1_pwm + real32_T dsplo1_pwm[6]; /* Variable: dsplo1_pwm * Referenced by: '/1-D Lookup Table6' */ - real32_T dsplo2_pos[3]; /* Variable: dsplo2_pos + real32_T dsplo2_pos[6]; /* Variable: dsplo2_pos * Referenced by: * '/1-D Lookup Table7' - * '/Constant1' + * '/Constant1' */ - real32_T dsplo2_pwm[3]; /* Variable: dsplo2_pwm + real32_T dsplo2_pwm[6]; /* Variable: dsplo2_pwm * Referenced by: * '/1-D Lookup Table7' - * '/Constant' + * '/Constant' */ - real32_T dsplo3_pos[3]; /* Variable: dsplo3_pos + real32_T dsplo3_pos[6]; /* Variable: dsplo3_pos * Referenced by: '/1-D Lookup Table8' */ - real32_T dsplo3_pwm[3]; /* Variable: dsplo3_pwm + real32_T dsplo3_pwm[6]; /* Variable: dsplo3_pwm * Referenced by: '/1-D Lookup Table8' */ - real32_T dsplo4_pos[3]; /* Variable: dsplo4_pos + real32_T dsplo4_pos[6]; /* Variable: dsplo4_pos * Referenced by: '/1-D Lookup Table9' */ - real32_T dsplo4_pwm[3]; /* Variable: dsplo4_pwm + real32_T dsplo4_pwm[6]; /* Variable: dsplo4_pwm * Referenced by: '/1-D Lookup Table9' */ - real32_T dsplo5_pos[3]; /* Variable: dsplo5_pos + real32_T dsplo5_pos[6]; /* Variable: dsplo5_pos * Referenced by: * '/1-D Lookup Table10' - * '/Constant1' + * '/Constant1' */ - real32_T dsplo5_pwm[3]; /* Variable: dsplo5_pwm + real32_T dsplo5_pwm[6]; /* Variable: dsplo5_pwm * Referenced by: * '/1-D Lookup Table10' - * '/Constant' + * '/Constant' */ real32_T dspr4_list[15]; /* Variable: dspr4_list - * Referenced by: '/da2dspr4_deg' + * Referenced by: '/da2dspr4_deg' */ real32_T dspr5_list[15]; /* Variable: dspr5_list - * Referenced by: '/da2dspr5_deg' + * Referenced by: '/da2dspr5_deg' */ real32_T dspr6_list[15]; /* Variable: dspr6_list - * Referenced by: '/da2dspr6_deg' + * Referenced by: '/da2dspr6_deg' */ real32_T dspr7_list[15]; /* Variable: dspr7_list - * Referenced by: '/da2dspr7_deg' + * Referenced by: '/da2dspr7_deg' */ real32_T dspr8_list[15]; /* Variable: dspr8_list - * Referenced by: '/da2dspr8_deg' + * Referenced by: '/da2dspr8_deg' */ - real32_T dspri1_pos[3]; /* Variable: dspri1_pos - * Referenced by: - * '/1-D Lookup Table3' - * '/Constant1' + real32_T dspri1_pos[6]; /* Variable: dspri1_pos + * Referenced by: '/1-D Lookup Table3' */ - real32_T dspri1_pwm[3]; /* Variable: dspri1_pwm - * Referenced by: - * '/1-D Lookup Table3' - * '/Constant' + real32_T dspri1_pwm[6]; /* Variable: dspri1_pwm + * Referenced by: '/1-D Lookup Table3' */ - real32_T dspri2_pos[3]; /* Variable: dspri2_pos + real32_T dspri2_pos[6]; /* Variable: dspri2_pos * Referenced by: * '/1-D Lookup Table4' - * '/Constant1' - */ - real32_T dspri2_pwm[3]; /* Variable: dspri2_pwm - * Referenced by: - * '/1-D Lookup Table4' - * '/Constant' - */ - real32_T dspri3_pos[3]; /* Variable: dspri3_pos - * Referenced by: - * '/1-D Lookup Table5' * '/Constant1' */ - real32_T dspri3_pwm[3]; /* Variable: dspri3_pwm + real32_T dspri2_pwm[6]; /* Variable: dspri2_pwm * Referenced by: - * '/1-D Lookup Table5' + * '/1-D Lookup Table4' * '/Constant' */ - real32_T dspro1_pos[3]; /* Variable: dspro1_pos + real32_T dspri3_pos[6]; /* Variable: dspri3_pos * Referenced by: - * '/1-D Lookup Table12' - * '/Constant1' - */ - real32_T dspro1_pwm[3]; /* Variable: dspro1_pwm - * Referenced by: - * '/1-D Lookup Table12' - * '/Constant' - */ - real32_T dspro2_pos[3]; /* Variable: dspro2_pos - * Referenced by: '/1-D Lookup Table13' - */ - real32_T dspro2_pwm[3]; /* Variable: dspro2_pwm - * Referenced by: '/1-D Lookup Table13' - */ - real32_T dspro3_pos[3]; /* Variable: dspro3_pos - * Referenced by: - * '/1-D Lookup Table14' + * '/1-D Lookup Table5' * '/Constant1' */ - real32_T dspro3_pwm[3]; /* Variable: dspro3_pwm + real32_T dspri3_pwm[6]; /* Variable: dspri3_pwm * Referenced by: - * '/1-D Lookup Table14' + * '/1-D Lookup Table5' * '/Constant' */ - real32_T dspro4_pos[3]; /* Variable: dspro4_pos + real32_T dspro1_pos[6]; /* Variable: dspro1_pos + * Referenced by: + * '/1-D Lookup Table12' + * '/Constant1' + */ + real32_T dspro1_pwm[6]; /* Variable: dspro1_pwm + * Referenced by: + * '/1-D Lookup Table12' + * '/Constant' + */ + real32_T dspro2_pos[6]; /* Variable: dspro2_pos + * Referenced by: '/1-D Lookup Table13' + */ + real32_T dspro2_pwm[6]; /* Variable: dspro2_pwm + * Referenced by: '/1-D Lookup Table13' + */ + real32_T dspro3_pos[6]; /* Variable: dspro3_pos + * Referenced by: + * '/1-D Lookup Table14' + * '/Constant1' + */ + real32_T dspro3_pwm[6]; /* Variable: dspro3_pwm + * Referenced by: + * '/1-D Lookup Table14' + * '/Constant' + */ + real32_T dspro4_pos[6]; /* Variable: dspro4_pos * Referenced by: * '/1-D Lookup Table15' - * '/Constant1' + * '/Constant1' */ - real32_T dspro4_pwm[3]; /* Variable: dspro4_pwm + real32_T dspro4_pwm[6]; /* Variable: dspro4_pwm * Referenced by: * '/1-D Lookup Table15' - * '/Constant' + * '/Constant' */ - real32_T dspro5_pos[3]; /* Variable: dspro5_pos + real32_T dspro5_pos[6]; /* Variable: dspro5_pos * Referenced by: '/1-D Lookup Table11' */ - real32_T dspro5_pwm[3]; /* Variable: dspro5_pwm + real32_T dspro5_pwm[6]; /* Variable: dspro5_pwm * Referenced by: '/1-D Lookup Table11' */ real32_T flap_level; /* Variable: flap_level - * Referenced by: - * '/Constant2' - * '/Constant2' + * Referenced by: '/Constant2' */ real32_T force_thrl; /* Variable: force_thrl - * Referenced by: '/Constant' + * Referenced by: '/Constant' */ real32_T force_thrr; /* Variable: force_thrr - * Referenced by: '/Constant' + * Referenced by: '/Constant' */ real32_T k_da2dr; /* Variable: k_da2dr * Referenced by: - * '/Constant' - * '/Constant' + * '/Constant' + * '/Constant' */ real32_T k_p; /* Variable: k_p * Referenced by: '/Constant Single34' @@ -3412,18 +3400,18 @@ struct P_cr929_SIL_T_ { * Referenced by: '/Constant Single29' */ real32_T ksi_v2tht; /* Variable: ksi_v2tht - * Referenced by: '/Constant1' + * Referenced by: '/Constant1' */ real32_T kthr_r; /* Variable: kthr_r - * Referenced by: '/gain' + * Referenced by: '/gain' */ real32_T lever_time; /* Variable: lever_time - * Referenced by: '/Constant5' + * Referenced by: '/Constant5' */ real32_T m; /* Variable: m * Referenced by: * '/Constant Single4' - * '/Constant Single' + * '/Constant Single' */ real32_T margin_ay; /* Variable: margin_ay * Referenced by: '/Constant1' @@ -3432,7 +3420,7 @@ struct P_cr929_SIL_T_ { * Referenced by: '/Constant' */ real32_T mass_lst[20]; /* Variable: mass_lst - * Referenced by: '/Constant' + * Referenced by: '/Constant' */ real32_T max_AS; /* Variable: max_AS * Referenced by: '/Constant Single49' @@ -3446,7 +3434,7 @@ struct P_cr929_SIL_T_ { real32_T max_da; /* Variable: max_da * Referenced by: * '/Constant Single1' - * '/Constant8' + * '/Constant8' * '/gain1' * '/gain1' * '/gain1' @@ -3454,23 +3442,24 @@ struct P_cr929_SIL_T_ { real32_T max_de; /* Variable: max_de * Referenced by: * '/Constant Single2' - * '/Constant1' + * '/Constant1' */ real32_T max_dh; /* Variable: max_dh * Referenced by: + * '/Constant1' * '/gain7' * '/gain7' */ real32_T max_dr; /* Variable: max_dr * Referenced by: * '/Constant Single5' - * '/Constant2' + * '/Constant2' * '/gain2' * '/gain2' * '/gain2' */ real32_T max_dr_damping; /* Variable: max_dr_damping - * Referenced by: '/Constant' + * Referenced by: '/Constant' */ real32_T max_dsp; /* Variable: max_dsp * Referenced by: @@ -3496,7 +3485,7 @@ struct P_cr929_SIL_T_ { */ real32_T max_steer; /* Variable: max_steer * Referenced by: - * '/Constant' + * '/Constant' * '/gain3' * '/gain3' * '/gain3' @@ -3526,15 +3515,16 @@ struct P_cr929_SIL_T_ { * Referenced by: * '/Constant Single55' * '/Constant' - * '/Constant' + * '/Constant' */ real32_T min_de; /* Variable: min_de * Referenced by: * '/Constant Single3' - * '/Constant5' + * '/Constant5' */ real32_T min_dh; /* Variable: min_dh * Referenced by: + * '/Constant3' * '/gain8' * '/gain8' */ @@ -3554,8 +3544,8 @@ struct P_cr929_SIL_T_ { */ real32_T num_da2dr[2]; /* Variable: num_da2dr * Referenced by: - * '/Constant1' - * '/Constant1' + * '/Constant1' + * '/Constant1' */ real32_T parachute_lock; /* Variable: parachute_lock * Referenced by: '/Constant2' @@ -3564,30 +3554,33 @@ struct P_cr929_SIL_T_ { * Referenced by: '/Constant3' */ real32_T phic2dr; /* Variable: phic2dr - * Referenced by: '/gain2' + * Referenced by: '/gain2' */ real32_T steer_pos[3]; /* Variable: steer_pos * Referenced by: - * '/Constant1' + * '/Constant1' * '/1-D Lookup Table' */ real32_T steer_pwm[3]; /* Variable: steer_pwm * Referenced by: - * '/Constant' + * '/Constant' * '/1-D Lookup Table' */ real32_T taxi_de; /* Variable: taxi_de * Referenced by: '/Constant Single36' */ + real32_T thr_lst[12]; /* Variable: thr_lst + * Referenced by: '/1-D Lookup Table' + */ real32_T thr_pos[3]; /* Variable: thr_pos * Referenced by: - * '/Constant1' + * '/Constant1' * '/1-D Lookup Table1' * '/1-D Lookup Table2' */ real32_T thr_pwm[3]; /* Variable: thr_pwm * Referenced by: - * '/Constant' + * '/Constant' * '/1-D Lookup Table1' * '/1-D Lookup Table2' */ @@ -3607,7 +3600,7 @@ struct P_cr929_SIL_T_ { * Referenced by: '/Constant Single19' */ real32_T w_v2tht; /* Variable: w_v2tht - * Referenced by: '/Constant' + * Referenced by: '/Constant' */ real32_T w_x; /* Variable: w_x * Referenced by: '/Constant Single15' @@ -3636,18 +3629,18 @@ struct P_cr929_SIL_T_ { uint16_T system_id; /* Variable: system_id * Referenced by: * '/Constant' - * '/system_id' - * '/Chart_proc_mission_clr_all' - * '/Chart' - * '/Chart' - * '/Chart_proc_mission_req' - * '/Chart_proc_mission_req_lst' - * '/Chart' - * '/Chart' - * '/Chart_proc_param_req_read' - * '/Chart_proc_param_set' - * '/system_id' - * '/system_id' + * '/system_id' + * '/Chart_proc_mission_clr_all' + * '/Chart' + * '/Chart' + * '/Chart_proc_mission_req' + * '/Chart_proc_mission_req_lst' + * '/Chart' + * '/Chart' + * '/Chart_proc_param_req_read' + * '/Chart_proc_param_set' + * '/system_id' + * '/system_id' */ uint8_T map_pwm[20]; /* Variable: map_pwm * Referenced by: '/Constant7' @@ -3868,7 +3861,7 @@ extern real_T InertiaMoments_bias_kg_m2[9];/* Variable: InertiaMoments_bias_kg_m * Referenced by: '/Param_InertiaMoments_bias_kg_m2' */ extern real_T Ps_bias; /* Variable: Ps_bias - * Referenced by: '/Constant1' + * Referenced by: '/Constant1' * 静压偏差 */ extern real_T ThrustUncertGain; /* Variable: ThrustUncertGain @@ -3895,7 +3888,7 @@ extern real_T hground; /* Variable: hground * Referenced by: '/Constant1' */ extern real_T rho_bias; /* Variable: rho_bias - * Referenced by: '/Constant2' + * Referenced by: '/Constant2' * 大气密度偏差 */ extern real_T wind_able; /* Variable: wind_able @@ -3938,6 +3931,7 @@ extern RT_MODEL_cr929_SIL_T *const cr929_SIL_M; /*- * These blocks were eliminated from the model due to optimizations: * + * Block '/Data Type Conversion' : Unused code path elimination * Block '/Product3' : Unused code path elimination * Block '/Constant' : Unused code path elimination * Block '/Constant1' : Unused code path elimination @@ -4037,8 +4031,12 @@ extern RT_MODEL_cr929_SIL_T *const cr929_SIL_M; * Block '/Unit Delay' : Unused code path elimination * Block '/add1' : Unused code path elimination * Block '/add2' : Unused code path elimination + * Block '/Unit Delay' : Unused code path elimination * Block '/Constant1' : Unused code path elimination * Block '/Selector1' : Unused code path elimination + * Block '/Constant4' : Unused code path elimination + * Block '/Constant5' : Unused code path elimination + * Block '/Switch2' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination @@ -4053,124 +4051,131 @@ extern RT_MODEL_cr929_SIL_T *const cr929_SIL_M; * Block '/Data Type Propagation' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Gain1' : Unused code path elimination - * Block '/Product2' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Gain1' : Unused code path elimination + * Block '/Product2' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination - * Block '/LowerRelop1' : Unused code path elimination - * Block '/Switch' : Unused code path elimination - * Block '/Switch2' : Unused code path elimination - * Block '/UpperRelop' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Signal Conversion' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/LowerRelop1' : Unused code path elimination + * Block '/Switch' : Unused code path elimination + * Block '/Switch2' : Unused code path elimination + * Block '/UpperRelop' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Signal Conversion' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Conversion11' : Unused code path elimination - * Block '/Data Type Conversion7' : Unused code path elimination - * Block '/Data Type Conversion9' : Unused code path elimination - * Block '/gain1' : Unused code path elimination - * Block '/gain3' : Unused code path elimination - * Block '/gain5' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/1-D Lookup Table' : Unused code path elimination + * Block '/Data Type Conversion11' : Unused code path elimination + * Block '/Data Type Conversion7' : Unused code path elimination + * Block '/Data Type Conversion9' : Unused code path elimination + * Block '/Constant BP' : Unused code path elimination + * Block '/Gain' : Unused code path elimination + * Block '/Saturation' : Unused code path elimination + * Block '/subtract' : Unused code path elimination + * Block '/gain1' : Unused code path elimination + * Block '/gain3' : Unused code path elimination + * Block '/gain5' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Data Type Conversion' : Unused code path elimination - * Block '/Sum' : Unused code path elimination - * Block '/Unit Delay' : Unused code path elimination - * Block '/Gain' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Data Type Conversion' : Unused code path elimination + * Block '/Sum' : Unused code path elimination + * Block '/Unit Delay' : Unused code path elimination + * Block '/Gain' : Unused code path elimination * Block '/Constant Single16' : Unused code path elimination * Block '/Constant Single22' : Unused code path elimination * Block '/Constant Single24' : Unused code path elimination @@ -4183,44 +4188,44 @@ extern RT_MODEL_cr929_SIL_T *const cr929_SIL_M; * Block '/Constant Single56' : Unused code path elimination * Block '/Constant Single8' : Unused code path elimination * Block '/Constant Single85' : Unused code path elimination - * Block '/Constant Single5' : Unused code path elimination - * Block '/Constant Single6' : Unused code path elimination - * Block '/Constant Single7' : Unused code path elimination - * Block '/Constant Single8' : Unused code path elimination - * Block '/Constant2' : Unused code path elimination - * Block '/Constant3' : Unused code path elimination - * Block '/Constant4' : Unused code path elimination - * Block '/Constant5' : Unused code path elimination - * Block '/Constant6' : Unused code path elimination - * Block '/Constant7' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Constant1' : Unused code path elimination - * Block '/Constant2' : Unused code path elimination - * Block '/Constant3' : Unused code path elimination - * Block '/Constant4' : Unused code path elimination - * Block '/Constant5' : Unused code path elimination - * Block '/Constant6' : Unused code path elimination - * Block '/Constant7' : Unused code path elimination + * Block '/Constant Single5' : Unused code path elimination + * Block '/Constant Single6' : Unused code path elimination + * Block '/Constant Single7' : Unused code path elimination + * Block '/Constant Single8' : Unused code path elimination + * Block '/Constant2' : Unused code path elimination + * Block '/Constant3' : Unused code path elimination + * Block '/Constant4' : Unused code path elimination + * Block '/Constant5' : Unused code path elimination + * Block '/Constant6' : Unused code path elimination + * Block '/Constant7' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Constant1' : Unused code path elimination + * Block '/Constant2' : Unused code path elimination + * Block '/Constant3' : Unused code path elimination + * Block '/Constant4' : Unused code path elimination + * Block '/Constant5' : Unused code path elimination + * Block '/Constant6' : Unused code path elimination + * Block '/Constant7' : Unused code path elimination * Block '/Constant1' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination * Block '/Data Type Duplicate' : Unused code path elimination * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Constant3' : Unused code path elimination - * Block '/2' : Unused code path elimination - * Block '/Gust magnitude//2.0' : Unused code path elimination - * Block '/Sum1' : Unused code path elimination - * Block '/cos(pi*x//dm)' : Unused code path elimination - * Block '/pi//Gust length' : Unused code path elimination - * Block '/2' : Unused code path elimination - * Block '/Gust magnitude//2.0' : Unused code path elimination - * Block '/Sum1' : Unused code path elimination - * Block '/cos(pi*x//dm)' : Unused code path elimination - * Block '/pi//Gust length' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Constant3' : Unused code path elimination + * Block '/2' : Unused code path elimination + * Block '/Gust magnitude//2.0' : Unused code path elimination + * Block '/Sum1' : Unused code path elimination + * Block '/cos(pi*x//dm)' : Unused code path elimination + * Block '/pi//Gust length' : Unused code path elimination + * Block '/2' : Unused code path elimination + * Block '/Gust magnitude//2.0' : Unused code path elimination + * Block '/Sum1' : Unused code path elimination + * Block '/cos(pi*x//dm)' : Unused code path elimination + * Block '/pi//Gust length' : Unused code path elimination * Block '/Scope' : Unused code path elimination * Block '/Reshape' : Reshape block reduction * Block '/Reshape (9) to [3x3] column-major' : Reshape block reduction @@ -4264,52 +4269,55 @@ extern RT_MODEL_cr929_SIL_T *const cr929_SIL_M; * Block '/Switch' : Eliminated due to constant selection input * Block '/Switch' : Eliminated due to constant selection input * Block '/Switch' : Eliminated due to constant selection input - * Block '/Data Type Conversion7' : Eliminate redundant data type conversion - * Block '/Data Type Conversion4' : Eliminate redundant data type conversion - * Block '/Manual Switch' : Eliminated due to constant selection input - * Block '/Manual Switch1' : Eliminated due to constant selection input - * Block '/Manual Switch2' : Eliminated due to constant selection input - * Block '/Manual Switch3' : Eliminated due to constant selection input - * Block '/Manual Switch5' : Eliminated due to constant selection input - * Block '/Reshape (9) to [3x3] column-major' : Reshape block reduction - * Block '/Unit Conversion' : Eliminated nontunable gain of 1 - * Block '/Unit Conversion' : Eliminated nontunable gain of 1 - * Block '/Switch' : Eliminated due to constant selection input - * Block '/Reshape1' : Reshape block reduction - * Block '/Zero-Order Hold2' : Eliminated since input and output rates are identical - * Block '/Zero-Order Hold4' : Eliminated since input and output rates are identical - * Block '/Switch' : Eliminated due to constant selection input - * Block '/Zero-Order Hold1' : Eliminated since input and output rates are identical + * Block '/Manual Switch' : Eliminated due to constant selection input + * Block '/Data Type Conversion9' : Eliminate redundant data type conversion + * Block '/Data Type Conversion12' : Eliminate redundant data type conversion + * Block '/Data Type Conversion7' : Eliminate redundant data type conversion + * Block '/Data Type Conversion4' : Eliminate redundant data type conversion + * Block '/Manual Switch' : Eliminated due to constant selection input + * Block '/Manual Switch1' : Eliminated due to constant selection input + * Block '/Manual Switch2' : Eliminated due to constant selection input + * Block '/Manual Switch3' : Eliminated due to constant selection input + * Block '/Manual Switch5' : Eliminated due to constant selection input + * Block '/Reshape (9) to [3x3] column-major' : Reshape block reduction + * Block '/Unit Conversion' : Eliminated nontunable gain of 1 + * Block '/Unit Conversion' : Eliminated nontunable gain of 1 + * Block '/Switch' : Eliminated due to constant selection input + * Block '/Reshape1' : Reshape block reduction + * Block '/Zero-Order Hold2' : Eliminated since input and output rates are identical + * Block '/Zero-Order Hold4' : Eliminated since input and output rates are identical + * Block '/Switch' : Eliminated due to constant selection input + * Block '/Zero-Order Hold1' : Eliminated since input and output rates are identical * Block '/Data Type Conversion' : Eliminate redundant data type conversion * Block '/Data Type Conversion11' : Eliminate redundant data type conversion * Block '/Data Type Conversion4' : Eliminate redundant data type conversion * Block '/Data Type Conversion5' : Eliminate redundant data type conversion * Block '/Data Type Conversion7' : Eliminate redundant data type conversion - * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion10' : Eliminate redundant data type conversion - * Block '/Data Type Conversion11' : Eliminate redundant data type conversion - * Block '/Data Type Conversion12' : Eliminate redundant data type conversion - * Block '/Data Type Conversion13' : Eliminate redundant data type conversion - * Block '/Data Type Conversion14' : Eliminate redundant data type conversion - * Block '/Data Type Conversion15' : Eliminate redundant data type conversion - * Block '/Data Type Conversion16' : Eliminate redundant data type conversion - * Block '/Data Type Conversion2' : Eliminate redundant data type conversion - * Block '/Data Type Conversion3' : Eliminate redundant data type conversion - * Block '/Data Type Conversion4' : Eliminate redundant data type conversion - * Block '/Data Type Conversion5' : Eliminate redundant data type conversion - * Block '/Data Type Conversion6' : Eliminate redundant data type conversion - * Block '/Data Type Conversion7' : Eliminate redundant data type conversion - * Block '/Data Type Conversion8' : Eliminate redundant data type conversion - * Block '/Data Type Conversion9' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion10' : Eliminate redundant data type conversion + * Block '/Data Type Conversion11' : Eliminate redundant data type conversion + * Block '/Data Type Conversion12' : Eliminate redundant data type conversion + * Block '/Data Type Conversion13' : Eliminate redundant data type conversion + * Block '/Data Type Conversion14' : Eliminate redundant data type conversion + * Block '/Data Type Conversion15' : Eliminate redundant data type conversion + * Block '/Data Type Conversion16' : Eliminate redundant data type conversion + * Block '/Data Type Conversion2' : Eliminate redundant data type conversion + * Block '/Data Type Conversion3' : Eliminate redundant data type conversion + * Block '/Data Type Conversion4' : Eliminate redundant data type conversion + * Block '/Data Type Conversion5' : Eliminate redundant data type conversion + * Block '/Data Type Conversion6' : Eliminate redundant data type conversion + * Block '/Data Type Conversion7' : Eliminate redundant data type conversion + * Block '/Data Type Conversion8' : Eliminate redundant data type conversion + * Block '/Data Type Conversion9' : Eliminate redundant data type conversion * Block '/reshape' : Reshape block reduction - * Block '/Unit Conversion' : Eliminated nontunable gain of 1 - * Block '/Unit Conversion' : Eliminated nontunable gain of 1 - * Block '/Reshape' : Reshape block reduction - * Block '/Reshape1' : Reshape block reduction + * Block '/Unit Conversion' : Eliminated nontunable gain of 1 + * Block '/Unit Conversion' : Eliminated nontunable gain of 1 * Block '/Reshape' : Reshape block reduction - * Block '/Reshape' : Reshape block reduction - * Block '/Reshape1' : Reshape block reduction + * Block '/Reshape1' : Reshape block reduction + * Block '/Reshape' : Reshape block reduction * Block '/Reshape' : Reshape block reduction + * Block '/Reshape1' : Reshape block reduction + * Block '/Reshape' : Reshape block reduction * Block '/Constant3' : Unused code path elimination * Block '/Constant4' : Unused code path elimination * Block '/Constant' : Unused code path elimination @@ -4320,13 +4328,14 @@ extern RT_MODEL_cr929_SIL_T *const cr929_SIL_M; * Block '/Constant2' : Unused code path elimination * Block '/Constant' : Unused code path elimination * Block '/Constant2' : Unused code path elimination - * Block '/Constant15' : Unused code path elimination - * Block '/Constant17' : Unused code path elimination - * Block '/Constant18' : Unused code path elimination - * Block '/Constant21' : Unused code path elimination - * Block '/Constant27' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Constant' : Unused code path elimination + * Block '/Constant2' : Unused code path elimination + * Block '/Constant15' : Unused code path elimination + * Block '/Constant17' : Unused code path elimination + * Block '/Constant18' : Unused code path elimination + * Block '/Constant21' : Unused code path elimination + * Block '/Constant27' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Constant' : Unused code path elimination */ /*- @@ -4781,7 +4790,7 @@ extern RT_MODEL_cr929_SIL_T *const cr929_SIL_M; * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor' * '' : 'cr929_SIL/cr929_autopilot/cmd2pwm/ext_pwm_board' * '' : 'cr929_SIL/cr929_autopilot/cmd2pwm/landing_board' - * '' : 'cr929_SIL/cr929_autopilot/cmd2pwm/mainboard1' + * '' : 'cr929_SIL/cr929_autopilot/cmd2pwm/mainboard' * '' : 'cr929_SIL/cr929_autopilot/communiation_and_command/C2_pre_proc' * '' : 'cr929_SIL/cr929_autopilot/communiation_and_command/C2_proc' * '' : 'cr929_SIL/cr929_autopilot/communiation_and_command/system_automation' @@ -5046,858 +5055,860 @@ extern RT_MODEL_cr929_SIL_T *const cr929_SIL_M; * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem' * '' : 'cr929_SIL/cr929_autopilot/controller/arm_disarm' * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/OFF' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/Saturation Dynamic1' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/Saturation Dynamic2' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/dycmd2dpsicmd1' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/psi_err' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/psi_err1' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/psi_err2' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/dycmd2dpsicmd1/Saturation dpsi' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Subsystem/Switch Case Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Subsystem/Switch Case Action Subsystem2' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/Saturation Dynamic1' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/dycmd2dpsicmd1' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/psi_err1' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/psi_err2' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/psi_err3' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/dycmd2dpsicmd1/Saturation dpsi' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/as2tht' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/off' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/as2tht/ctrl_vt_by_tht' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/as2tht/ctrl_vt_by_tht/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/as2tht/ctrl_vt_by_tht/Saturation Dynamic1' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/ctrl_gamma_by_tht_afcs' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/gamma' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/stall_protect_for_wp' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/ctrl_gamma_by_tht_afcs/ctrl_gamma_by_tht' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/ctrl_gamma_by_tht_afcs/ctrl_gamma_by_tht/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/ctrl_gamma_by_tht_afcs/ctrl_gamma_by_tht/Saturation Dynamic1' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/hdot' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/AGL' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/H' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/VNAV' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/dH2hdot' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/dH2hdot/Saturation Hdot_c' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/dH2hdot/Saturation Hdot_c1' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/dH2hdot/Saturation k' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/stall_protect_for_wp/Compare To Constant' - * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/stall_protect_for_wp/Compare To Zero' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/AS' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/COMMAND' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/GS' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/OFF' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/AS/turbine_engine_as_ctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/AS/turbine_engine_as_ctrl/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/GS/turbine_engine_as_ctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/GS/turbine_engine_as_ctrl/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/COMMAND' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/DAMPING' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/OFF' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/COMMAND/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/DAMPING/pitch_daming' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/pass_q_c' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/tht_ctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/Saturation Dynamic1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Control Law' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/State Predictor' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/cal eta' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/f_tht' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/f_tht' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/f_tht' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/tht_ctrl/tht_ctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/tht_ctrl/tht_ctrl/sat q_c' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/COMMAND' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/OFF' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/COMMAND/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/pass_p_c' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/roll_ctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/Saturation Dynamic1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Control Law' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/State Predictor' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/cal eta' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/f_tht' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/f_tht' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/f_tht' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/roll_ctrl/phi_ctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/roll_ctrl/phi_ctrl/sat p_c' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/COMMAND' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/DAMPING' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/OFF' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/trim_dr' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/DAMPING/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/DAMPING/Saturation Dynamic1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/DAMPING/mix' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/DAMPING/yaw_daming' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/DAMPING/mix/Saturation Dynamic1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/ay_ctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/default' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/psidot_ctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/ay_ctrl/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/ay_ctrl/azctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/ay_ctrl/azctrl/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/default/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/psidot_ctrl/psidot_ctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/psidot_ctrl/psidot_ctrl/sat r_c' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/mix' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/mix/Saturation Dynamic1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/Saturation Dynamic1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/Saturation Dynamic2' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Control Law' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/State Predictor' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/cal eta' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/f_tht' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/f_tht' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/f_tht' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/trim_dr/Degrees to Radians' - * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/trim_dr/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC' - * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/NUAA' - * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion' - * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion1' - * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion2' - * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion3' - * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion4' - * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion5' - * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion6' - * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion7' - * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion8' - * '' : 'cr929_SIL/cr929_autopilot/controller/arm_disarm/armed' - * '' : 'cr929_SIL/cr929_autopilot/controller/arm_disarm/disarmed' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/ANA_Bus' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/AP_BUS' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/ResetControlLaw' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/TestControlInputs' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/ANA_Bus/Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/AP_BUS/Angle Conversion' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/AP_BUS/Angle Conversion1' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/AP_BUS/Length Conversion' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/ADB' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u64' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/ADB/DMRS' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/ADB/REU' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/AirData' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/RA' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/Vane' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/AirData/Length Conversion' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/AirData/Velocity Conversion' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/AirData/Velocity Conversion1' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/AirData/Velocity Conversion2' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angle Conversion' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angle Conversion1' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angle Conversion2' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angle Conversion3' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angular Velocity Conversion' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angular Velocity Conversion1' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angular Velocity Conversion2' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Velocity Conversion' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Velocity Conversion2' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/RA/Length Conversion' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/Vane/Angle Conversion1' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/Vane/Angle Conversion2' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u64/FADEC' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u64/LGCU' - * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/TestControlInputs/Mass Conversion' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/no_mix' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Degrees to Radians' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Degrees to Radians1' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation1' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation2' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation3' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation4' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/pos_sel' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Subsystem/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Subsystem/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Subsystem1/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Subsystem1/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/no_use' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/no_use/Degrees to Radians1' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/no_use/Degrees to Radians2' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/no_use/Radians to Degrees' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians1' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians10' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians11' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians12' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians2' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians3' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians4' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians5' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians6' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians7' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians8' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians9' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Radians to Degrees' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation1/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation2/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation3/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation4/Saturation Dynamic' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/alt' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/vel' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/alt/use_baro_alt' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/alt/use_gps_alt' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/case_circle' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/case_corner' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/case_line' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/home' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/case_circle/nav_circle' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/case_corner/nav_corner' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/case_line/nav_line' - * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/home/nav_point' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/ack_convert' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/get_cur' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_gps_rtcm_data' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_rc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_control' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_echo' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_set_mod' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/ack_convert/Chart_send_ack' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/ap_ver_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/cmd_ack_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/mission_ack_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/mission_cnt_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/mission_cur_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/mission_item_int_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/mission_req_int_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/param_val_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/ser_ctrl_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/traffic_ctrl' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/attitude_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/bat_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/emb_atmo_com_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/ext_sys_stat_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/glb_pos_int_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/heartbeat_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/ins1_state' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/ins2_state' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/nav_ctrl_out_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/rc_chan_raw_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/rpm_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/scal_pres_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/svo_out_raw_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/sys_stat_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/vfr_hud_enc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/attitude_enc/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/bat_enc/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/emb_atmo_com_enc/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/ext_sys_stat_enc/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/glb_pos_int_enc/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc/Chart/get_cog' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc/Chart/get_vel' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc/Chart/get_cog/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc/Chart/get_cog/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc/Chart/get_cog/Radians to Degrees' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/heartbeat_enc/heartbeat' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/heartbeat_enc/heartbeat/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/ins1_state/Radians to Degrees' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/ins2_state/Radians to Degrees' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/nav_ctrl_out_enc/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/rc_chan_raw_enc/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/rpm_enc/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/rpm_enc/Radians to Degrees' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/rpm_enc/Radians to Degrees1' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/scal_pres_enc/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/svo_out_raw_enc/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/sys_stat_enc/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/sys_stat_enc/cal_drop_perc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/vfr_hud_enc/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/parse_mav_msgs' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/cmd_long_dec' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/defaults' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/gps_rtcm_data' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/gps_rtcm_data1' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_clr_all_dec' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_cnt_dec' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_item_int_dec' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_req_dec' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_req_lst_dec' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_set_cur_dec' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_req_get_dec' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_req_lst_dec' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_set_dec' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/rc_channels_override_dec' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/set_mode_dec' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/cmd_long_dec/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/cmd_long_dec/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/gps_rtcm_data/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/gps_rtcm_data/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/gps_rtcm_data1/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/gps_rtcm_data1/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_clr_all_dec/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_clr_all_dec/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_cnt_dec/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_cnt_dec/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_item_int_dec/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_item_int_dec/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_req_dec/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_req_dec/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_req_lst_dec/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_req_lst_dec/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_set_cur_dec/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_set_cur_dec/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_req_get_dec/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_req_get_dec/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_req_lst_dec/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_req_lst_dec/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_set_dec/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_set_dec/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/rc_channels_override_dec/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/rc_channels_override_dec/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/set_mode_dec/Function-Call Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/set_mode_dec/parse_and_proc' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/parse_mav_msgs/parse_to_msg_queue' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/parse_mav_msgs/proc_queue' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/parse_mav_msgs/parse_to_msg_queue/process_new_message' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/parse_mav_msgs/parse_to_msg_queue/process_new_message/push2msgs' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command/proc_cmd_long' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command/proc_cmd_long/proc_by_id' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command/proc_cmd_long/proc_by_id/REQUEST_AUTOPILOT_CAPABILITIES' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command/proc_cmd_long/proc_by_id/default' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command/proc_cmd_long/proc_by_id/REQUEST_AUTOPILOT_CAPABILITIES/send_auto_hw' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command/proc_cmd_long/proc_by_id/default/send_cmd' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_gps_rtcm_data/proc_gps_rtcm_data' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/merge_ack' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_cnt' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_item' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_set_cur' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/req_cur' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all/Chart_proc_mission_clr_all' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all/dummy clear_mission' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all/dummy clear_mission/Variant Model' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all/dummy clear_mission/Variant Model/model' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all/dummy clear_mission/Variant Model/sim' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all/dummy clear_mission/Variant Model/model/chat_clear_mission' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_cnt/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_item/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req/Chart_proc_mission_req' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req/user-defined get_mission_item' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req/user-defined get_mission_item/Variant Model' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req/user-defined get_mission_item/Variant Model/model' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req/user-defined get_mission_item/Variant Model/sim' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req/user-defined get_mission_item/Variant Model/model/chat_get_mission_item' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst/Chart_proc_mission_req_lst' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst/user-defined get_mission_cnt' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst/user-defined get_mission_cnt/Variant Model' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst/user-defined get_mission_cnt/Variant Model/model' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst/user-defined get_mission_cnt/Variant Model/sim' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst/user-defined get_mission_cnt/Variant Model/model/chat_get_mission_cnt' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_set_cur/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/Chart_proc_mission_upload' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy clear_mission' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy update_mission_item' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy clear_mission/Variant Model' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy clear_mission/Variant Model/model' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy clear_mission/Variant Model/sim' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy clear_mission/Variant Model/model/chat_clear_mission' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy update_mission_item/Variant Model' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy update_mission_item/Variant Model/model' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy update_mission_item/Variant Model/sim' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy update_mission_item/Variant Model/model/chat_update_mission_item' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/find_val' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_lst' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_value' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/find_val/Variant Model' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/find_val/Variant Model/find_val_capi' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/find_val/Variant Model/find_val_sim' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/find_val/Variant Model/find_val_capi/find_val_capi' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_lst/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/Chart_proc_param_req_read' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model/find_idx_capi' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model/find_idx_sim' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model/find_idx_capi/find_idx_capi' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model/find_idx_sim/For Iterator Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model/find_idx_sim/For Iterator Subsystem/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model/find_idx_sim/For Iterator Subsystem/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/Chart_proc_param_set' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/Chart_proc_param_set/f2u' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_capi' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_sim' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_capi/set_val_capi' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_sim/For Iterator Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_sim/For Iterator Subsystem/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_sim/For Iterator Subsystem/If Action Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_sim/For Iterator Subsystem/If Action Subsystem/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_value/u2f' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_rc/proc_rc_chs_ov' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_rc/proc_rc_chs_ov/proc_by_id' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_control/proc_serial_control' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_control/proc_serial_control/Compare To Constant' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_control/proc_serial_control/Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_control/proc_serial_control/Subsystem/hal_serial_cmdline' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_echo/Chart' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_echo/Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_echo/Subsystem/If Action Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_echo/Subsystem/hal_serial_echoline' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_echo/Subsystem/If Action Subsystem/Chart_send_serial_control' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_set_mod/proc_set_mod' - * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_set_mod/proc_set_mod/proc_by_id' - * '' : 'cr929_SIL/cr929_autopilot/params/Calc_FW_Effic' - * '' : 'cr929_SIL/cr929_autopilot/params/Subsystem' - * '' : 'cr929_SIL/cr929_autopilot/params/Subsystem1' - * '' : 'cr929_SIL/cr929_autopilot/params/Calc_FW_Effic/Compare To Constant' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/AtmosComputer' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/gear_state' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/AtmosComputer/stdatmo' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor1' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor10' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor11' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor12' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor13' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor14' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor15' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor16' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor17' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor18' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor19' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor2' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor20' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor21' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor22' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor23_28' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor3' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor4' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor5' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor6' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor7' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor8' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor9' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor1/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor10/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor11/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor12/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor13/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor14/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor15/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor16/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor17/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor17/Compare To Constant' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor18/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor18/Compare To Constant' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor19/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor19/Compare To Constant' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor2/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor20/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor21/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor22/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor23_28/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor3/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor4/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor5/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor6/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor7/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor8/Chart' - * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor9/Chart' - * '' : 'cr929_SIL/dummy_INS/INS' - * '' : 'cr929_SIL/dummy_INS/plant2ins' - * '' : 'cr929_SIL/dummy_INS/INS/Compare To Constant1' - * '' : 'cr929_SIL/dummy_INS/INS/Compare To Constant2' - * '' : 'cr929_SIL/dummy_INS/INS/Degrees to Radians' - * '' : 'cr929_SIL/dummy_INS/INS/EKF' - * '' : 'cr929_SIL/dummy_INS/INS/Subsystem' - * '' : 'cr929_SIL/dummy_INS/INS/check_gps_valid' - * '' : 'cr929_SIL/dummy_INS/INS/hdt_sel' - * '' : 'cr929_SIL/dummy_INS/INS/imu_proc' - * '' : 'cr929_SIL/dummy_INS/INS/ps_proc' - * '' : 'cr929_SIL/dummy_INS/INS/qbar_proc' - * '' : 'cr929_SIL/dummy_INS/INS/status_mgr' - * '' : 'cr929_SIL/dummy_INS/INS/EKF/EKF14s' - * '' : 'cr929_SIL/dummy_INS/INS/Subsystem/If Action Subsystem' - * '' : 'cr929_SIL/dummy_INS/INS/Subsystem/If Action Subsystem1' - * '' : 'cr929_SIL/dummy_INS/INS/Subsystem/If Action Subsystem1/MATLAB Function' - * '' : 'cr929_SIL/dummy_INS/INS/hdt_sel/Chart' - * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/Degrees to Radians' - * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/IMU_bias_fix' - * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/install_fix' - * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/install_fix/Rotation Angles to Direction Cosine Matrix' - * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/install_fix/cal_mag_hdg' - * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/install_fix/Rotation Angles to Direction Cosine Matrix/Create 3x3 Matrix' - * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/install_fix/cal_mag_hdg/inpi' - * '' : 'cr929_SIL/dummy_INS/INS/ps_proc/Pressure Altitude' - * '' : 'cr929_SIL/dummy_INS/INS/ps_proc/Pressure Altitude/Length Conversion' - * '' : 'cr929_SIL/dummy_INS/INS/ps_proc/Pressure Altitude/Pressure Conversion' - * '' : 'cr929_SIL/dummy_INS/INS/qbar_proc/zero_set' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU' - * '' : 'cr929_SIL/dummy_INS/plant2ins/SDAS' - * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_hdg' - * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_pos' - * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_tim' - * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_vel' - * '' : 'cr929_SIL/dummy_INS/plant2ins/mag' - * '' : 'cr929_SIL/dummy_INS/plant2ins/ps' - * '' : 'cr929_SIL/dummy_INS/plant2ins/qbar' - * '' : 'cr929_SIL/dummy_INS/plant2ins/true_values' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Radians to Degrees' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Acceleration Conversion' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Gyroscope' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/Dynamics' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/wdot x d' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/Dynamics/No Dynamics' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/Dynamics/Second-order Dynamics' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)/w x (w x d)' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)/w x d' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)/w x (w x d)/Subsystem' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)/w x (w x d)/Subsystem1' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)/w x d/Subsystem' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)/w x d/Subsystem1' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/wdot x d/Subsystem' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/wdot x d/Subsystem1' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Gyroscope/Dynamics' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Gyroscope/Dynamics/No Dynamics' - * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Gyroscope/Dynamics/Second-order Dynamics' - * '' : 'cr929_SIL/dummy_INS/plant2ins/SDAS/Enabled Subsystem' - * '' : 'cr929_SIL/dummy_INS/plant2ins/SDAS/tick' - * '' : 'cr929_SIL/dummy_INS/plant2ins/SDAS/Enabled Subsystem/Enabled Subsystem' - * '' : 'cr929_SIL/dummy_INS/plant2ins/SDAS/Enabled Subsystem/Enabled Subsystem/Band-Limited White Noise' - * '' : 'cr929_SIL/dummy_INS/plant2ins/SDAS/Enabled Subsystem/Enabled Subsystem/Band-Limited White Noise1' - * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_hdg/Enabled Subsystem' - * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_hdg/tick' - * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_pos/Enabled Subsystem' - * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_pos/tick' - * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_tim/Enabled Subsystem' - * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_tim/tick' - * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_vel/Enabled Subsystem' - * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_vel/tick' - * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_vel/Enabled Subsystem/Radians to Degrees' - * '' : 'cr929_SIL/dummy_INS/plant2ins/mag/Enabled Subsystem' - * '' : 'cr929_SIL/dummy_INS/plant2ins/mag/tick' - * '' : 'cr929_SIL/dummy_INS/plant2ins/ps/Enabled Subsystem' - * '' : 'cr929_SIL/dummy_INS/plant2ins/ps/tick' - * '' : 'cr929_SIL/dummy_INS/plant2ins/qbar/Enabled Subsystem' - * '' : 'cr929_SIL/dummy_INS/plant2ins/qbar/tick' - * '' : 'cr929_SIL/dummy_input/ins2sens' - * '' : 'cr929_SIL/dummy_output/Enabled Subsystem1' - * '' : 'cr929_SIL/dummy_output/Enabled Subsystem3' - * '' : 'cr929_SIL/dummy_output/Enabled Subsystem5' - * '' : 'cr929_SIL/dummy_output/Enabled Subsystem6' - * '' : 'cr929_SIL/dummy_output/Enabled Subsystem7' - * '' : 'cr929_SIL/dummy_output/Subsystem' - * '' : 'cr929_SIL/dummy_output/Subsystem1' - * '' : 'cr929_SIL/dummy_output/Subsystem2' - * '' : 'cr929_SIL/dummy_output/Subsystem3' - * '' : 'cr929_SIL/dummy_output/Subsystem4' - * '' : 'cr929_SIL/dummy_output/Subsystem5' - * '' : 'cr929_SIL/dummy_output/Subsystem6' - * '' : 'cr929_SIL/dummy_output/Subsystem7' - * '' : 'cr929_SIL/dummy_output/Subsystem8' - * '' : 'cr929_SIL/dummy_output/Subsystem9' - * '' : 'cr929_SIL/dummy_output/da' - * '' : 'cr929_SIL/dummy_output/de' - * '' : 'cr929_SIL/dummy_output/dht' - * '' : 'cr929_SIL/dummy_output/dr' - * '' : 'cr929_SIL/dummy_output/dsp_mdl' - * '' : 'cr929_SIL/dummy_output/throttle' - * '' : 'cr929_SIL/dummy_output/throttle1' - * '' : 'cr929_SIL/dummy_output/Enabled Subsystem1/dynamic_rate_saturation' - * '' : 'cr929_SIL/dummy_output/Enabled Subsystem1/dynamic_rate_saturation/Saturation Dynamic' - * '' : 'cr929_SIL/dummy_output/Enabled Subsystem3/dynamic_rate_saturation' - * '' : 'cr929_SIL/dummy_output/Enabled Subsystem3/dynamic_rate_saturation/Saturation Dynamic' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem1' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem10' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem11' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem12' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem13' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem14' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem15' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem16' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem2' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem3' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem4' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem5' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem6' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem7' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem8' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem9' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem1' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem10' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem11' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem12' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem13' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem14' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem15' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem16' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem2' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem3' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem4' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem5' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem6' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem7' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem8' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem9' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspli1' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspli2' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspli3' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dsplo1' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dsplo2' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dsplo3' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dsplo4' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dsplo5' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspri1' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspri2' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspri3' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspro1' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspro2' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspro3' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspro4' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspro5' - * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspro6' - * '' : 'cr929_SIL/dummy_output/throttle/dynamic_rate_saturation' - * '' : 'cr929_SIL/dummy_output/throttle/falling' - * '' : 'cr929_SIL/dummy_output/throttle/rising' - * '' : 'cr929_SIL/dummy_output/throttle/dynamic_rate_saturation/Saturation Dynamic' - * '' : 'cr929_SIL/dummy_output/throttle1/dynamic_rate_saturation' - * '' : 'cr929_SIL/dummy_output/throttle1/falling' - * '' : 'cr929_SIL/dummy_output/throttle1/rising' - * '' : 'cr929_SIL/dummy_output/throttle1/dynamic_rate_saturation/Saturation Dynamic' - * '' : 'cr929_SIL/inner_recorder/gps1_hdt' - * '' : 'cr929_SIL/inner_recorder/gps1_pos' - * '' : 'cr929_SIL/inner_recorder/gps1_tim' - * '' : 'cr929_SIL/inner_recorder/gps1_vel' - * '' : 'cr929_SIL/inner_recorder/gps2_pos' - * '' : 'cr929_SIL/inner_recorder/gps2_tim' - * '' : 'cr929_SIL/inner_recorder/gps2_vel' - * '' : 'cr929_SIL/inner_recorder/ins1_euler' - * '' : 'cr929_SIL/inner_recorder/ins1_nav' - * '' : 'cr929_SIL/inner_recorder/ins2_euler' - * '' : 'cr929_SIL/inner_recorder/ins2_nav' - * '' : 'cr929_SIL/inner_recorder/rec10' - * '' : 'cr929_SIL/inner_recorder/rec11' - * '' : 'cr929_SIL/inner_recorder/rec12' - * '' : 'cr929_SIL/inner_recorder/rec13' - * '' : 'cr929_SIL/inner_recorder/rec14' - * '' : 'cr929_SIL/inner_recorder/rec18' - * '' : 'cr929_SIL/inner_recorder/rec19' - * '' : 'cr929_SIL/inner_recorder/rec20' - * '' : 'cr929_SIL/inner_recorder/rec21' - * '' : 'cr929_SIL/inner_recorder/record_traffic_ctrl' - * '' : 'cr929_SIL/inner_recorder/rpm' - * '' : 'cr929_SIL/inner_recorder/gps1_hdt/rec' - * '' : 'cr929_SIL/inner_recorder/gps1_hdt/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/gps1_hdt/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/gps1_pos/rec' - * '' : 'cr929_SIL/inner_recorder/gps1_pos/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/gps1_pos/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/gps1_tim/rec' - * '' : 'cr929_SIL/inner_recorder/gps1_tim/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/gps1_tim/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/gps1_vel/rec' - * '' : 'cr929_SIL/inner_recorder/gps1_vel/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/gps1_vel/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/gps2_pos/rec' - * '' : 'cr929_SIL/inner_recorder/gps2_pos/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/gps2_pos/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/gps2_tim/rec' - * '' : 'cr929_SIL/inner_recorder/gps2_tim/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/gps2_tim/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/gps2_vel/rec' - * '' : 'cr929_SIL/inner_recorder/gps2_vel/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/gps2_vel/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/ins1_euler/rec' - * '' : 'cr929_SIL/inner_recorder/ins1_euler/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/ins1_euler/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/ins1_nav/rec' - * '' : 'cr929_SIL/inner_recorder/ins1_nav/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/ins1_nav/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/ins2_euler/rec' - * '' : 'cr929_SIL/inner_recorder/ins2_euler/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/ins2_euler/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/ins2_nav/rec' - * '' : 'cr929_SIL/inner_recorder/ins2_nav/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/ins2_nav/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/rec10/rec' - * '' : 'cr929_SIL/inner_recorder/rec10/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/rec10/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/rec11/rec' - * '' : 'cr929_SIL/inner_recorder/rec11/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/rec11/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/rec12/rec' - * '' : 'cr929_SIL/inner_recorder/rec12/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/rec12/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/rec13/rec' - * '' : 'cr929_SIL/inner_recorder/rec13/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/rec13/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/rec14/Subsystem' - * '' : 'cr929_SIL/inner_recorder/rec14/rec' - * '' : 'cr929_SIL/inner_recorder/rec14/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/rec14/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/rec18/rec' - * '' : 'cr929_SIL/inner_recorder/rec18/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/rec18/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/rec19/rec' - * '' : 'cr929_SIL/inner_recorder/rec19/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/rec19/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/rec20/rec' - * '' : 'cr929_SIL/inner_recorder/rec20/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/rec20/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/rec21/rec' - * '' : 'cr929_SIL/inner_recorder/rec21/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/rec21/rec/STORE_PORT' - * '' : 'cr929_SIL/inner_recorder/rpm/rec' - * '' : 'cr929_SIL/inner_recorder/rpm/rec/RS422_5_TX' - * '' : 'cr929_SIL/inner_recorder/rpm/rec/STORE_PORT' - * '' : 'cr929_SIL/wind/wind_model' - * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model' - * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model1' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))' - * '' : 'cr929_SIL/wind/wind_model/WindBallon' - * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model/Distance into gust (x)' - * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model/Distance into gust (y)' - * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model/Distance into gust (z)' - * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model/Velocity Conversion' - * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model1/Distance into gust (x)' - * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model1/Distance into gust (y)' - * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model1/Distance into gust (z)' - * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model1/Velocity Conversion' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Angle Conversion' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Length Conversion' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Length Conversion1' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/RMS turbulence intensities' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Velocity Conversion' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Velocity Conversion2' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/White Noise' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates/Hpgw' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates/Hqgw' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates/Hrgw' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities/Hugw(z)' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities/Hvgw(z)' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities/Hwgw(z)' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/RMS turbulence intensities/High Altitude Intensity' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/RMS turbulence intensities/Low Altitude Intensity' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Interpolate rates' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Low altitude rates' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Medium//High altitude rates' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Merge Subsystems' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Interpolate rates/wind to body transformation' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Interpolate rates/wind to body transformation/convert to earth coords' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Low altitude rates/wind to body transformation' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Low altitude rates/wind to body transformation/convert to earth coords' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Interpolate velocities' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Low altitude velocities' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Medium//High altitude velocities' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Merge Subsystems' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Interpolate velocities/wind to body transformation' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Interpolate velocities/wind to body transformation/convert to earth coords' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Low altitude velocities/wind to body transformation' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Low altitude velocities/wind to body transformation/convert to earth coords' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths/Low altitude scale length' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths/Medium//High altitude scale length' - * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths/Medium//High altitude scale length/Length Conversion' + * '' : 'cr929_SIL/cr929_autopilot/controller/mass_est' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/OFF' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/Saturation Dynamic1' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/Saturation Dynamic2' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/dycmd2dpsicmd1' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/psi_err' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/psi_err1' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/psi_err2' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Lat Guide2/dycmd2dpsicmd1/Saturation dpsi' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Subsystem/Switch Case Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PHI/Subsystem/Switch Case Action Subsystem2' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/Saturation Dynamic1' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/dycmd2dpsicmd1' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/psi_err1' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/psi_err2' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/psi_err3' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_LAT/LNAV2PSIDOT/Dir Guide/dycmd2dpsicmd1/Saturation dpsi' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/as2tht' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/off' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/as2tht/ctrl_vt_by_tht' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/as2tht/ctrl_vt_by_tht/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/as2tht/ctrl_vt_by_tht/Saturation Dynamic1' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/ctrl_gamma_by_tht_afcs' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/gamma' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/stall_protect_for_wp' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/ctrl_gamma_by_tht_afcs/ctrl_gamma_by_tht' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/ctrl_gamma_by_tht_afcs/ctrl_gamma_by_tht/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/ctrl_gamma_by_tht_afcs/ctrl_gamma_by_tht/Saturation Dynamic1' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/hdot' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/AGL' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/H' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/VNAV' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/dH2hdot' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/dH2hdot/Saturation Hdot_c' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/dH2hdot/Saturation Hdot_c1' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/hdot/vnav/dH2hdot/Saturation k' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/stall_protect_for_wp/Compare To Constant' + * '' : 'cr929_SIL/cr929_autopilot/controller/AFCS/AFCS_vert/gamma2tht/stall_protect_for_wp/Compare To Zero' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/AS' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/COMMAND' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/GS' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/OFF' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/AS/turbine_engine_as_ctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/AS/turbine_engine_as_ctrl/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/GS/turbine_engine_as_ctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/AT/GS/turbine_engine_as_ctrl/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/COMMAND' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/DAMPING' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/OFF' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/COMMAND/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/DAMPING/pitch_daming' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/pass_q_c' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/tht_ctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/Saturation Dynamic1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Control Law' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/State Predictor' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/cal eta' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/f_tht' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/f_tht' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/q_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/f_tht' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/tht_ctrl/tht_ctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/pitch/THT_Q_CTRL/tht_ctrl/tht_ctrl/sat q_c' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/COMMAND' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/OFF' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/COMMAND/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/pass_p_c' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/roll_ctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/Saturation Dynamic1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Control Law' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/State Predictor' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/cal eta' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/f_tht' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/f_tht' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/p_ctrl/pctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/f_tht' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/roll_ctrl/phi_ctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/roll/ROLL_CTRL/roll_ctrl/phi_ctrl/sat p_c' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/COMMAND' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/DAMPING' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/OFF' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/trim_dr' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/DAMPING/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/DAMPING/Saturation Dynamic1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/DAMPING/mix' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/DAMPING/yaw_daming' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/DAMPING/mix/Saturation Dynamic1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/ay_ctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/default' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/psidot_ctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/ay_ctrl/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/ay_ctrl/azctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/ay_ctrl/azctrl/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/default/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/psidot_ctrl/psidot_ctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/psidot_ctrl/psidot_ctrl/sat r_c' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/mix' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/mix/Saturation Dynamic1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/Saturation Dynamic1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/Saturation Dynamic2' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Control Law' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/State Predictor' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/cal eta' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta1/f_tht' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta2/f_tht' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/PSIDOT_CTRL/r_ctrl/qctrl/L1AC/L1 ctrl2/Adaptation Laws/theta3/f_tht' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/trim_dr/Degrees to Radians' + * '' : 'cr929_SIL/cr929_autopilot/controller/CSAS/yaw/trim_dr/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC' + * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/NUAA' + * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion' + * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion1' + * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion2' + * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion3' + * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion4' + * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion5' + * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion6' + * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion7' + * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Angle Conversion8' + * '' : 'cr929_SIL/cr929_autopilot/controller/Subsystem/COMAC/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/arm_disarm/armed' + * '' : 'cr929_SIL/cr929_autopilot/controller/arm_disarm/disarmed' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/ANA_Bus' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/AP_BUS' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/ResetControlLaw' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/TestControlInputs' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/ANA_Bus/Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/AP_BUS/Angle Conversion' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/AP_BUS/Angle Conversion1' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/AP_BUS/Length Conversion' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/ADB' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u64' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/ADB/DMRS' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/ADB/REU' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/AirData' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/RA' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/Vane' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/AirData/Length Conversion' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/AirData/Velocity Conversion' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/AirData/Velocity Conversion1' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/AirData/Velocity Conversion2' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angle Conversion' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angle Conversion1' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angle Conversion2' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angle Conversion3' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angular Velocity Conversion' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angular Velocity Conversion1' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Angular Velocity Conversion2' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Velocity Conversion' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/IRU/Velocity Conversion2' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/RA/Length Conversion' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/Vane/Angle Conversion1' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u29/Vane/Angle Conversion2' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u64/FADEC' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/SEN_Bus/u64/LGCU' + * '' : 'cr929_SIL/cr929_autopilot/controller/generate_input/TestControlInputs/Mass Conversion' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/no_mix' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Degrees to Radians' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Degrees to Radians1' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation1' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation2' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation3' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation4' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/pos_sel' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Subsystem/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Subsystem/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Subsystem1/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/Subsystem1/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/no_use' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/no_use/Degrees to Radians1' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/no_use/Degrees to Radians2' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/no_use/Radians to Degrees' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians1' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians10' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians11' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians12' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians2' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians3' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians4' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians5' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians6' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians7' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians8' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Degrees to Radians9' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dac2dsp/use/Radians to Degrees' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation1/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation2/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation3/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/mix/use_mix/dynamic_rate_saturation4/Saturation Dynamic' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/alt' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/vel' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/alt/use_baro_alt' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/alt/use_gps_alt' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/case_circle' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/case_corner' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/case_line' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/home' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/case_circle/nav_circle' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/case_corner/nav_corner' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/case_line/nav_line' + * '' : 'cr929_SIL/cr929_autopilot/controller/trajectory_generation/update_nav_info/route_nav/home/nav_point' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/ack_convert' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/get_cur' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_gps_rtcm_data' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_rc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_control' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_echo' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_set_mod' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/ack_convert/Chart_send_ack' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/ap_ver_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/cmd_ack_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/mission_ack_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/mission_cnt_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/mission_cur_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/mission_item_int_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/mission_req_int_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/param_val_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/ser_ctrl_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/traffic_ctrl' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/attitude_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/bat_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/emb_atmo_com_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/ext_sys_stat_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/glb_pos_int_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/heartbeat_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/ins1_state' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/ins2_state' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/nav_ctrl_out_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/rc_chan_raw_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/rpm_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/scal_pres_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/svo_out_raw_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/sys_stat_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/vfr_hud_enc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/attitude_enc/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/bat_enc/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/emb_atmo_com_enc/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/ext_sys_stat_enc/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/glb_pos_int_enc/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc/Chart/get_cog' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc/Chart/get_vel' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc/Chart/get_cog/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc/Chart/get_cog/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/gps_raw_int_enc/Chart/get_cog/Radians to Degrees' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/heartbeat_enc/heartbeat' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/heartbeat_enc/heartbeat/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/ins1_state/Radians to Degrees' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/ins2_state/Radians to Degrees' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/nav_ctrl_out_enc/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/rc_chan_raw_enc/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/rpm_enc/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/rpm_enc/Radians to Degrees' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/rpm_enc/Radians to Degrees1' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/scal_pres_enc/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/svo_out_raw_enc/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/sys_stat_enc/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/sys_stat_enc/cal_drop_perc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_enc_and_send/loop_download/vfr_hud_enc/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/parse_mav_msgs' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/cmd_long_dec' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/defaults' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/gps_rtcm_data' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/gps_rtcm_data1' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_clr_all_dec' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_cnt_dec' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_item_int_dec' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_req_dec' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_req_lst_dec' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_set_cur_dec' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_req_get_dec' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_req_lst_dec' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_set_dec' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/rc_channels_override_dec' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/set_mode_dec' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/cmd_long_dec/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/cmd_long_dec/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/gps_rtcm_data/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/gps_rtcm_data/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/gps_rtcm_data1/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/gps_rtcm_data1/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_clr_all_dec/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_clr_all_dec/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_cnt_dec/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_cnt_dec/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_item_int_dec/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_item_int_dec/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_req_dec/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_req_dec/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_req_lst_dec/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_req_lst_dec/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_set_cur_dec/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/mission_set_cur_dec/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_req_get_dec/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_req_get_dec/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_req_lst_dec/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_req_lst_dec/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_set_dec/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/param_set_dec/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/rc_channels_override_dec/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/rc_channels_override_dec/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/set_mode_dec/Function-Call Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/dec_and_proc_each/set_mode_dec/parse_and_proc' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/parse_mav_msgs/parse_to_msg_queue' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/parse_mav_msgs/proc_queue' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/parse_mav_msgs/parse_to_msg_queue/process_new_message' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/mavlink_parse_and_proc/parse_mav_msgs/parse_to_msg_queue/process_new_message/push2msgs' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command/proc_cmd_long' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command/proc_cmd_long/proc_by_id' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command/proc_cmd_long/proc_by_id/REQUEST_AUTOPILOT_CAPABILITIES' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command/proc_cmd_long/proc_by_id/default' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command/proc_cmd_long/proc_by_id/REQUEST_AUTOPILOT_CAPABILITIES/send_auto_hw' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_command/proc_cmd_long/proc_by_id/default/send_cmd' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_gps_rtcm_data/proc_gps_rtcm_data' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/merge_ack' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_cnt' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_item' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_set_cur' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/req_cur' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all/Chart_proc_mission_clr_all' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all/dummy clear_mission' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all/dummy clear_mission/Variant Model' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all/dummy clear_mission/Variant Model/model' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all/dummy clear_mission/Variant Model/sim' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_clr_all/dummy clear_mission/Variant Model/model/chat_clear_mission' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_cnt/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_item/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req/Chart_proc_mission_req' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req/user-defined get_mission_item' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req/user-defined get_mission_item/Variant Model' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req/user-defined get_mission_item/Variant Model/model' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req/user-defined get_mission_item/Variant Model/sim' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req/user-defined get_mission_item/Variant Model/model/chat_get_mission_item' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst/Chart_proc_mission_req_lst' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst/user-defined get_mission_cnt' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst/user-defined get_mission_cnt/Variant Model' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst/user-defined get_mission_cnt/Variant Model/model' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst/user-defined get_mission_cnt/Variant Model/sim' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_req_lst/user-defined get_mission_cnt/Variant Model/model/chat_get_mission_cnt' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_set_cur/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/Chart_proc_mission_upload' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy clear_mission' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy update_mission_item' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy clear_mission/Variant Model' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy clear_mission/Variant Model/model' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy clear_mission/Variant Model/sim' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy clear_mission/Variant Model/model/chat_clear_mission' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy update_mission_item/Variant Model' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy update_mission_item/Variant Model/model' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy update_mission_item/Variant Model/sim' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_mission/proc_mission_upload/dummy update_mission_item/Variant Model/model/chat_update_mission_item' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/find_val' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_lst' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_value' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/find_val/Variant Model' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/find_val/Variant Model/find_val_capi' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/find_val/Variant Model/find_val_sim' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/find_val/Variant Model/find_val_capi/find_val_capi' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_lst/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/Chart_proc_param_req_read' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model/find_idx_capi' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model/find_idx_sim' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model/find_idx_capi/find_idx_capi' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model/find_idx_sim/For Iterator Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model/find_idx_sim/For Iterator Subsystem/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_req_read/find_idx/Variant Model/find_idx_sim/For Iterator Subsystem/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/Chart_proc_param_set' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/Chart_proc_param_set/f2u' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_capi' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_sim' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_capi/set_val_capi' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_sim/For Iterator Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_sim/For Iterator Subsystem/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_sim/For Iterator Subsystem/If Action Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_set/set_val/Variant Model/set_val_sim/For Iterator Subsystem/If Action Subsystem/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_params/proc_param_value/u2f' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_rc/proc_rc_chs_ov' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_rc/proc_rc_chs_ov/proc_by_id' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_control/proc_serial_control' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_control/proc_serial_control/Compare To Constant' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_control/proc_serial_control/Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_control/proc_serial_control/Subsystem/hal_serial_cmdline' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_echo/Chart' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_echo/Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_echo/Subsystem/If Action Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_echo/Subsystem/hal_serial_echoline' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_serial_echo/Subsystem/If Action Subsystem/Chart_send_serial_control' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_set_mod/proc_set_mod' + * '' : 'cr929_SIL/cr929_autopilot/mavlink_data_link/proc_set_mod/proc_set_mod/proc_by_id' + * '' : 'cr929_SIL/cr929_autopilot/params/Calc_FW_Effic' + * '' : 'cr929_SIL/cr929_autopilot/params/Subsystem' + * '' : 'cr929_SIL/cr929_autopilot/params/Subsystem1' + * '' : 'cr929_SIL/cr929_autopilot/params/Calc_FW_Effic/Compare To Constant' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/AtmosComputer' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/gear_state' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/AtmosComputer/stdatmo' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor1' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor10' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor11' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor12' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor13' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor14' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor15' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor16' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor17' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor18' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor19' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor2' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor20' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor21' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor22' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor23_28' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor3' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor4' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor5' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor6' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor7' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor8' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor9' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor1/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor10/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor11/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor12/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor13/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor14/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor15/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor16/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor17/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor17/Compare To Constant' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor18/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor18/Compare To Constant' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor19/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor19/Compare To Constant' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor2/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor20/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor21/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor22/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor23_28/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor3/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor4/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor5/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor6/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor7/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor8/Chart' + * '' : 'cr929_SIL/cr929_autopilot/sen_proc_monitor/health_monitor/monitor9/Chart' + * '' : 'cr929_SIL/dummy_INS/INS' + * '' : 'cr929_SIL/dummy_INS/plant2ins' + * '' : 'cr929_SIL/dummy_INS/INS/Compare To Constant1' + * '' : 'cr929_SIL/dummy_INS/INS/Compare To Constant2' + * '' : 'cr929_SIL/dummy_INS/INS/Degrees to Radians' + * '' : 'cr929_SIL/dummy_INS/INS/EKF' + * '' : 'cr929_SIL/dummy_INS/INS/Subsystem' + * '' : 'cr929_SIL/dummy_INS/INS/check_gps_valid' + * '' : 'cr929_SIL/dummy_INS/INS/hdt_sel' + * '' : 'cr929_SIL/dummy_INS/INS/imu_proc' + * '' : 'cr929_SIL/dummy_INS/INS/ps_proc' + * '' : 'cr929_SIL/dummy_INS/INS/qbar_proc' + * '' : 'cr929_SIL/dummy_INS/INS/status_mgr' + * '' : 'cr929_SIL/dummy_INS/INS/EKF/EKF14s' + * '' : 'cr929_SIL/dummy_INS/INS/Subsystem/If Action Subsystem' + * '' : 'cr929_SIL/dummy_INS/INS/Subsystem/If Action Subsystem1' + * '' : 'cr929_SIL/dummy_INS/INS/Subsystem/If Action Subsystem1/MATLAB Function' + * '' : 'cr929_SIL/dummy_INS/INS/hdt_sel/Chart' + * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/Degrees to Radians' + * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/IMU_bias_fix' + * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/install_fix' + * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/install_fix/Rotation Angles to Direction Cosine Matrix' + * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/install_fix/cal_mag_hdg' + * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/install_fix/Rotation Angles to Direction Cosine Matrix/Create 3x3 Matrix' + * '' : 'cr929_SIL/dummy_INS/INS/imu_proc/install_fix/cal_mag_hdg/inpi' + * '' : 'cr929_SIL/dummy_INS/INS/ps_proc/Pressure Altitude' + * '' : 'cr929_SIL/dummy_INS/INS/ps_proc/Pressure Altitude/Length Conversion' + * '' : 'cr929_SIL/dummy_INS/INS/ps_proc/Pressure Altitude/Pressure Conversion' + * '' : 'cr929_SIL/dummy_INS/INS/qbar_proc/zero_set' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU' + * '' : 'cr929_SIL/dummy_INS/plant2ins/SDAS' + * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_hdg' + * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_pos' + * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_tim' + * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_vel' + * '' : 'cr929_SIL/dummy_INS/plant2ins/mag' + * '' : 'cr929_SIL/dummy_INS/plant2ins/ps' + * '' : 'cr929_SIL/dummy_INS/plant2ins/qbar' + * '' : 'cr929_SIL/dummy_INS/plant2ins/true_values' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Radians to Degrees' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Acceleration Conversion' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Gyroscope' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/Dynamics' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/wdot x d' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/Dynamics/No Dynamics' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/Dynamics/Second-order Dynamics' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)/w x (w x d)' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)/w x d' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)/w x (w x d)/Subsystem' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)/w x (w x d)/Subsystem1' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)/w x d/Subsystem' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/w x (w x d)/w x d/Subsystem1' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/wdot x d/Subsystem' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Accelerometer/wdot x d/Subsystem1' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Gyroscope/Dynamics' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Gyroscope/Dynamics/No Dynamics' + * '' : 'cr929_SIL/dummy_INS/plant2ins/IMU/Three-axis Inertial Measurement Unit/Three-axis Gyroscope/Dynamics/Second-order Dynamics' + * '' : 'cr929_SIL/dummy_INS/plant2ins/SDAS/Enabled Subsystem' + * '' : 'cr929_SIL/dummy_INS/plant2ins/SDAS/tick' + * '' : 'cr929_SIL/dummy_INS/plant2ins/SDAS/Enabled Subsystem/Enabled Subsystem' + * '' : 'cr929_SIL/dummy_INS/plant2ins/SDAS/Enabled Subsystem/Enabled Subsystem/Band-Limited White Noise' + * '' : 'cr929_SIL/dummy_INS/plant2ins/SDAS/Enabled Subsystem/Enabled Subsystem/Band-Limited White Noise1' + * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_hdg/Enabled Subsystem' + * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_hdg/tick' + * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_pos/Enabled Subsystem' + * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_pos/tick' + * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_tim/Enabled Subsystem' + * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_tim/tick' + * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_vel/Enabled Subsystem' + * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_vel/tick' + * '' : 'cr929_SIL/dummy_INS/plant2ins/gnss_vel/Enabled Subsystem/Radians to Degrees' + * '' : 'cr929_SIL/dummy_INS/plant2ins/mag/Enabled Subsystem' + * '' : 'cr929_SIL/dummy_INS/plant2ins/mag/tick' + * '' : 'cr929_SIL/dummy_INS/plant2ins/ps/Enabled Subsystem' + * '' : 'cr929_SIL/dummy_INS/plant2ins/ps/tick' + * '' : 'cr929_SIL/dummy_INS/plant2ins/qbar/Enabled Subsystem' + * '' : 'cr929_SIL/dummy_INS/plant2ins/qbar/tick' + * '' : 'cr929_SIL/dummy_input/ins2sens' + * '' : 'cr929_SIL/dummy_output/Enabled Subsystem1' + * '' : 'cr929_SIL/dummy_output/Enabled Subsystem3' + * '' : 'cr929_SIL/dummy_output/Enabled Subsystem5' + * '' : 'cr929_SIL/dummy_output/Enabled Subsystem6' + * '' : 'cr929_SIL/dummy_output/Enabled Subsystem7' + * '' : 'cr929_SIL/dummy_output/Subsystem' + * '' : 'cr929_SIL/dummy_output/Subsystem1' + * '' : 'cr929_SIL/dummy_output/Subsystem2' + * '' : 'cr929_SIL/dummy_output/Subsystem3' + * '' : 'cr929_SIL/dummy_output/Subsystem4' + * '' : 'cr929_SIL/dummy_output/Subsystem5' + * '' : 'cr929_SIL/dummy_output/Subsystem6' + * '' : 'cr929_SIL/dummy_output/Subsystem7' + * '' : 'cr929_SIL/dummy_output/Subsystem8' + * '' : 'cr929_SIL/dummy_output/Subsystem9' + * '' : 'cr929_SIL/dummy_output/da' + * '' : 'cr929_SIL/dummy_output/de' + * '' : 'cr929_SIL/dummy_output/dht' + * '' : 'cr929_SIL/dummy_output/dr' + * '' : 'cr929_SIL/dummy_output/dsp_mdl' + * '' : 'cr929_SIL/dummy_output/throttle' + * '' : 'cr929_SIL/dummy_output/throttle1' + * '' : 'cr929_SIL/dummy_output/Enabled Subsystem1/dynamic_rate_saturation' + * '' : 'cr929_SIL/dummy_output/Enabled Subsystem1/dynamic_rate_saturation/Saturation Dynamic' + * '' : 'cr929_SIL/dummy_output/Enabled Subsystem3/dynamic_rate_saturation' + * '' : 'cr929_SIL/dummy_output/Enabled Subsystem3/dynamic_rate_saturation/Saturation Dynamic' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem1' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem10' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem11' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem12' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem13' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem14' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem15' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem16' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem2' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem3' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem4' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem5' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem6' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem7' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem8' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Enabled Subsystem9' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem1' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem10' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem11' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem12' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem13' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem14' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem15' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem16' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem2' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem3' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem4' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem5' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem6' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem7' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem8' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/Subsystem9' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspli1' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspli2' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspli3' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dsplo1' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dsplo2' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dsplo3' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dsplo4' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dsplo5' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspri1' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspri2' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspri3' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspro1' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspro2' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspro3' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspro4' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspro5' + * '' : 'cr929_SIL/dummy_output/dsp_mdl/dspro6' + * '' : 'cr929_SIL/dummy_output/throttle/dynamic_rate_saturation' + * '' : 'cr929_SIL/dummy_output/throttle/falling' + * '' : 'cr929_SIL/dummy_output/throttle/rising' + * '' : 'cr929_SIL/dummy_output/throttle/dynamic_rate_saturation/Saturation Dynamic' + * '' : 'cr929_SIL/dummy_output/throttle1/dynamic_rate_saturation' + * '' : 'cr929_SIL/dummy_output/throttle1/falling' + * '' : 'cr929_SIL/dummy_output/throttle1/rising' + * '' : 'cr929_SIL/dummy_output/throttle1/dynamic_rate_saturation/Saturation Dynamic' + * '' : 'cr929_SIL/inner_recorder/gps1_hdt' + * '' : 'cr929_SIL/inner_recorder/gps1_pos' + * '' : 'cr929_SIL/inner_recorder/gps1_tim' + * '' : 'cr929_SIL/inner_recorder/gps1_vel' + * '' : 'cr929_SIL/inner_recorder/gps2_pos' + * '' : 'cr929_SIL/inner_recorder/gps2_tim' + * '' : 'cr929_SIL/inner_recorder/gps2_vel' + * '' : 'cr929_SIL/inner_recorder/ins1_euler' + * '' : 'cr929_SIL/inner_recorder/ins1_nav' + * '' : 'cr929_SIL/inner_recorder/ins2_euler' + * '' : 'cr929_SIL/inner_recorder/ins2_nav' + * '' : 'cr929_SIL/inner_recorder/rec10' + * '' : 'cr929_SIL/inner_recorder/rec11' + * '' : 'cr929_SIL/inner_recorder/rec12' + * '' : 'cr929_SIL/inner_recorder/rec13' + * '' : 'cr929_SIL/inner_recorder/rec14' + * '' : 'cr929_SIL/inner_recorder/rec18' + * '' : 'cr929_SIL/inner_recorder/rec19' + * '' : 'cr929_SIL/inner_recorder/rec20' + * '' : 'cr929_SIL/inner_recorder/rec21' + * '' : 'cr929_SIL/inner_recorder/record_traffic_ctrl' + * '' : 'cr929_SIL/inner_recorder/rpm' + * '' : 'cr929_SIL/inner_recorder/gps1_hdt/rec' + * '' : 'cr929_SIL/inner_recorder/gps1_hdt/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/gps1_hdt/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/gps1_pos/rec' + * '' : 'cr929_SIL/inner_recorder/gps1_pos/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/gps1_pos/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/gps1_tim/rec' + * '' : 'cr929_SIL/inner_recorder/gps1_tim/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/gps1_tim/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/gps1_vel/rec' + * '' : 'cr929_SIL/inner_recorder/gps1_vel/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/gps1_vel/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/gps2_pos/rec' + * '' : 'cr929_SIL/inner_recorder/gps2_pos/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/gps2_pos/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/gps2_tim/rec' + * '' : 'cr929_SIL/inner_recorder/gps2_tim/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/gps2_tim/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/gps2_vel/rec' + * '' : 'cr929_SIL/inner_recorder/gps2_vel/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/gps2_vel/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/ins1_euler/rec' + * '' : 'cr929_SIL/inner_recorder/ins1_euler/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/ins1_euler/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/ins1_nav/rec' + * '' : 'cr929_SIL/inner_recorder/ins1_nav/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/ins1_nav/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/ins2_euler/rec' + * '' : 'cr929_SIL/inner_recorder/ins2_euler/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/ins2_euler/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/ins2_nav/rec' + * '' : 'cr929_SIL/inner_recorder/ins2_nav/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/ins2_nav/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/rec10/rec' + * '' : 'cr929_SIL/inner_recorder/rec10/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/rec10/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/rec11/rec' + * '' : 'cr929_SIL/inner_recorder/rec11/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/rec11/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/rec12/rec' + * '' : 'cr929_SIL/inner_recorder/rec12/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/rec12/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/rec13/rec' + * '' : 'cr929_SIL/inner_recorder/rec13/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/rec13/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/rec14/Subsystem' + * '' : 'cr929_SIL/inner_recorder/rec14/rec' + * '' : 'cr929_SIL/inner_recorder/rec14/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/rec14/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/rec18/rec' + * '' : 'cr929_SIL/inner_recorder/rec18/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/rec18/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/rec19/rec' + * '' : 'cr929_SIL/inner_recorder/rec19/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/rec19/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/rec20/rec' + * '' : 'cr929_SIL/inner_recorder/rec20/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/rec20/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/rec21/rec' + * '' : 'cr929_SIL/inner_recorder/rec21/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/rec21/rec/STORE_PORT' + * '' : 'cr929_SIL/inner_recorder/rpm/rec' + * '' : 'cr929_SIL/inner_recorder/rpm/rec/RS422_5_TX' + * '' : 'cr929_SIL/inner_recorder/rpm/rec/STORE_PORT' + * '' : 'cr929_SIL/wind/wind_model' + * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model' + * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model1' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))' + * '' : 'cr929_SIL/wind/wind_model/WindBallon' + * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model/Distance into gust (x)' + * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model/Distance into gust (y)' + * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model/Distance into gust (z)' + * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model/Velocity Conversion' + * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model1/Distance into gust (x)' + * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model1/Distance into gust (y)' + * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model1/Distance into gust (z)' + * '' : 'cr929_SIL/wind/wind_model/Discrete Wind Gust Model1/Velocity Conversion' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Angle Conversion' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Length Conversion' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Length Conversion1' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/RMS turbulence intensities' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Velocity Conversion' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Velocity Conversion2' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/White Noise' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates/Hpgw' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates/Hqgw' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on angular rates/Hrgw' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities/Hugw(z)' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities/Hvgw(z)' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Filters on velocities/Hwgw(z)' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/RMS turbulence intensities/High Altitude Intensity' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/RMS turbulence intensities/Low Altitude Intensity' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Interpolate rates' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Low altitude rates' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Medium//High altitude rates' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Merge Subsystems' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Interpolate rates/wind to body transformation' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Interpolate rates/wind to body transformation/convert to earth coords' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Low altitude rates/wind to body transformation' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select angular rates/Low altitude rates/wind to body transformation/convert to earth coords' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Interpolate velocities' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Low altitude velocities' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Medium//High altitude velocities' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Merge Subsystems' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Interpolate velocities/wind to body transformation' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Interpolate velocities/wind to body transformation/convert to earth coords' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Low altitude velocities/wind to body transformation' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Select velocities/Low altitude velocities/wind to body transformation/convert to earth coords' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths/Low altitude scale length' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths/Medium//High altitude scale length' + * '' : 'cr929_SIL/wind/wind_model/Dryden Wind Turbulence Model (Continuous (+q +r))/Turbulence scale lengths/Medium//High altitude scale length/Length Conversion' */ #endif /* RTW_HEADER_cr929_SIL_h_ */ diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.c b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.c index 067b853..40117c0 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.c +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1344 + * Model version : 1.1390 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Sat Aug 21 08:51:18 2021 + * C/C++ source code generated on : Mon Aug 23 14:30:11 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -90,453 +90,461 @@ static const rtwCAPI_ModelParameters rtModelParameters[] = { { 18, TARGET_STRING("CLa"), 1, 2, 0 }, - { 19, TARGET_STRING("Cl_lst"), 1, 5, 0 }, + { 19, TARGET_STRING("Cf_lst"), 1, 3, 0 }, - { 20, TARGET_STRING("Clda"), 1, 2, 0 }, + { 20, TARGET_STRING("Cl_lst"), 1, 5, 0 }, - { 21, TARGET_STRING("Clda_mix"), 1, 2, 0 }, + { 21, TARGET_STRING("Clda"), 1, 2, 0 }, - { 22, TARGET_STRING("Clp"), 1, 2, 0 }, + { 22, TARGET_STRING("Clda_mix"), 1, 2, 0 }, - { 23, TARGET_STRING("Cmde"), 1, 2, 0 }, + { 23, TARGET_STRING("Clp"), 1, 2, 0 }, - { 24, TARGET_STRING("Cmq"), 1, 2, 0 }, + { 24, TARGET_STRING("Cmde"), 1, 2, 0 }, - { 25, TARGET_STRING("Cndr"), 1, 2, 0 }, + { 25, TARGET_STRING("Cmq"), 1, 2, 0 }, - { 26, TARGET_STRING("Cnr"), 1, 2, 0 }, + { 26, TARGET_STRING("Cndr"), 1, 2, 0 }, - { 27, TARGET_STRING("CruiseSpeed"), 1, 2, 0 }, + { 27, TARGET_STRING("Cnr"), 1, 2, 0 }, - { 28, TARGET_STRING("Csb"), 1, 2, 0 }, + { 28, TARGET_STRING("CruiseSpeed"), 1, 2, 0 }, - { 29, TARGET_STRING("FlareAlt"), 1, 2, 0 }, + { 29, TARGET_STRING("Csb"), 1, 2, 0 }, - { 30, TARGET_STRING("GearDownSpeed"), 1, 2, 0 }, + { 30, TARGET_STRING("FlareAlt"), 1, 2, 0 }, - { 31, TARGET_STRING("Ixx"), 1, 2, 0 }, + { 31, TARGET_STRING("GearDownSpeed"), 1, 2, 0 }, - { 32, TARGET_STRING("Iyy"), 1, 2, 0 }, + { 32, TARGET_STRING("Ixx"), 1, 2, 0 }, - { 33, TARGET_STRING("Izz"), 1, 2, 0 }, + { 33, TARGET_STRING("Iyy"), 1, 2, 0 }, - { 34, TARGET_STRING("K"), 1, 2, 0 }, + { 34, TARGET_STRING("Izz"), 1, 2, 0 }, - { 35, TARGET_STRING("LandingSpeed"), 1, 2, 0 }, + { 35, TARGET_STRING("K"), 1, 2, 0 }, - { 36, TARGET_STRING("RefArea"), 1, 2, 0 }, + { 36, TARGET_STRING("LandingSpeed"), 1, 2, 0 }, - { 37, TARGET_STRING("RefLen"), 1, 2, 0 }, + { 37, TARGET_STRING("RefArea"), 1, 2, 0 }, - { 38, TARGET_STRING("RefSpan"), 1, 2, 0 }, + { 38, TARGET_STRING("RefLen"), 1, 2, 0 }, - { 39, TARGET_STRING("STEER_POWER"), 1, 2, 0 }, + { 39, TARGET_STRING("RefSpan"), 1, 2, 0 }, - { 40, TARGET_STRING("TakeOffAlt"), 1, 2, 0 }, + { 40, TARGET_STRING("STEER_POWER"), 1, 2, 0 }, - { 41, TARGET_STRING("TakeOffThrottle"), 1, 2, 0 }, + { 41, TARGET_STRING("TakeOffAlt"), 1, 2, 0 }, - { 42, TARGET_STRING("TaxiSpeed"), 1, 2, 0 }, + { 42, TARGET_STRING("TakeOffThrottle"), 1, 2, 0 }, - { 43, TARGET_STRING("ThrottleRate"), 1, 2, 0 }, + { 43, TARGET_STRING("TaxiSpeed"), 1, 2, 0 }, - { 44, TARGET_STRING("V1"), 1, 2, 0 }, + { 44, TARGET_STRING("ThrottleRate"), 1, 2, 0 }, - { 45, TARGET_STRING("antistall_lock"), 1, 2, 0 }, + { 45, TARGET_STRING("V1"), 1, 2, 0 }, - { 46, TARGET_STRING("antistall_release"), 1, 2, 0 }, + { 46, TARGET_STRING("auto_gear_updown"), 1, 2, 0 }, - { 47, TARGET_STRING("auto_gear_updown"), 1, 2, 0 }, + { 47, TARGET_STRING("brake_lock"), 1, 2, 0 }, - { 48, TARGET_STRING("brake_lock"), 1, 2, 0 }, + { 48, TARGET_STRING("brake_release"), 1, 2, 0 }, - { 49, TARGET_STRING("brake_release"), 1, 2, 0 }, + { 49, TARGET_STRING("cg_lst"), 1, 6, 0 }, - { 50, TARGET_STRING("cg_lst"), 1, 6, 0 }, + { 50, TARGET_STRING("da_list"), 1, 5, 0 }, - { 51, TARGET_STRING("da_list"), 1, 5, 0 }, + { 51, TARGET_STRING("da_list_unmix"), 1, 0, 0 }, - { 52, TARGET_STRING("da_list_unmix"), 1, 0, 0 }, + { 52, TARGET_STRING("da_lst"), 1, 5, 0 }, - { 53, TARGET_STRING("da_lst"), 1, 5, 0 }, + { 53, TARGET_STRING("dal_list"), 1, 5, 0 }, - { 54, TARGET_STRING("dal_list"), 1, 5, 0 }, + { 54, TARGET_STRING("dal_list_unmix"), 1, 0, 0 }, - { 55, TARGET_STRING("dal_list_unmix"), 1, 0, 0 }, + { 55, TARGET_STRING("dal_pos"), 1, 0, 0 }, - { 56, TARGET_STRING("dal_pos"), 1, 0, 0 }, + { 56, TARGET_STRING("dal_pwm"), 1, 0, 0 }, - { 57, TARGET_STRING("dal_pwm"), 1, 0, 0 }, + { 57, TARGET_STRING("dar_list"), 1, 5, 0 }, - { 58, TARGET_STRING("dar_list"), 1, 5, 0 }, + { 58, TARGET_STRING("dar_list_unmix"), 1, 0, 0 }, - { 59, TARGET_STRING("dar_list_unmix"), 1, 0, 0 }, + { 59, TARGET_STRING("dar_pos"), 1, 0, 0 }, - { 60, TARGET_STRING("dar_pos"), 1, 0, 0 }, + { 60, TARGET_STRING("dar_pwm"), 1, 0, 0 }, - { 61, TARGET_STRING("dar_pwm"), 1, 0, 0 }, + { 61, TARGET_STRING("ddf_c"), 1, 2, 0 }, - { 62, TARGET_STRING("ddf_c"), 1, 2, 0 }, + { 62, TARGET_STRING("del_pos"), 1, 0, 0 }, - { 63, TARGET_STRING("del_pos"), 1, 0, 0 }, + { 63, TARGET_STRING("del_pwm"), 1, 0, 0 }, - { 64, TARGET_STRING("del_pwm"), 1, 0, 0 }, + { 64, TARGET_STRING("den_da2dr"), 1, 4, 0 }, - { 65, TARGET_STRING("den_da2dr"), 1, 4, 0 }, + { 65, TARGET_STRING("der_pos"), 1, 0, 0 }, - { 66, TARGET_STRING("der_pos"), 1, 0, 0 }, + { 66, TARGET_STRING("der_pwm"), 1, 0, 0 }, - { 67, TARGET_STRING("der_pwm"), 1, 0, 0 }, + { 67, TARGET_STRING("det_time"), 1, 2, 0 }, - { 68, TARGET_STRING("det_time"), 1, 2, 0 }, + { 68, TARGET_STRING("dflap_ratelim"), 1, 2, 0 }, - { 69, TARGET_STRING("dflap_ratelim"), 1, 2, 0 }, + { 69, TARGET_STRING("dflii_pos"), 1, 7, 0 }, - { 70, TARGET_STRING("dflii_pos"), 1, 7, 0 }, + { 70, TARGET_STRING("dflii_pwm"), 1, 7, 0 }, - { 71, TARGET_STRING("dflii_pwm"), 1, 7, 0 }, + { 71, TARGET_STRING("dflio_pos"), 1, 7, 0 }, - { 72, TARGET_STRING("dflo2_pos"), 1, 7, 0 }, + { 72, TARGET_STRING("dflio_pwm"), 1, 7, 0 }, - { 73, TARGET_STRING("dflo2_pwm"), 1, 7, 0 }, + { 73, TARGET_STRING("dflo2_pos"), 1, 7, 0 }, - { 74, TARGET_STRING("dflo_pos"), 1, 7, 0 }, + { 74, TARGET_STRING("dflo2_pwm"), 1, 7, 0 }, - { 75, TARGET_STRING("dflo_pwm"), 1, 7, 0 }, + { 75, TARGET_STRING("dflo_pos"), 1, 7, 0 }, - { 76, TARGET_STRING("dfrii_pos"), 1, 7, 0 }, + { 76, TARGET_STRING("dflo_pwm"), 1, 7, 0 }, - { 77, TARGET_STRING("dfrii_pwm"), 1, 7, 0 }, + { 77, TARGET_STRING("dfrii_pos"), 1, 7, 0 }, - { 78, TARGET_STRING("dfrio_pos"), 1, 7, 0 }, + { 78, TARGET_STRING("dfrii_pwm"), 1, 7, 0 }, - { 79, TARGET_STRING("dfrio_pwm"), 1, 7, 0 }, + { 79, TARGET_STRING("dfrio_pos"), 1, 7, 0 }, - { 80, TARGET_STRING("dfro2_pos"), 1, 7, 0 }, + { 80, TARGET_STRING("dfrio_pwm"), 1, 7, 0 }, - { 81, TARGET_STRING("dfro2_pwm"), 1, 7, 0 }, + { 81, TARGET_STRING("dfro2_pos"), 1, 7, 0 }, - { 82, TARGET_STRING("dfro_pos"), 1, 7, 0 }, + { 82, TARGET_STRING("dfro2_pwm"), 1, 7, 0 }, - { 83, TARGET_STRING("dfro_pwm"), 1, 7, 0 }, + { 83, TARGET_STRING("dfro_pos"), 1, 7, 0 }, - { 84, TARGET_STRING("dh_pos"), 1, 0, 0 }, + { 84, TARGET_STRING("dfro_pwm"), 1, 7, 0 }, - { 85, TARGET_STRING("dh_pwm"), 1, 0, 0 }, + { 85, TARGET_STRING("dhl_pos"), 1, 8, 0 }, - { 86, TARGET_STRING("dht_ratelim"), 1, 2, 0 }, + { 86, TARGET_STRING("dhl_pwm"), 1, 8, 0 }, - { 87, TARGET_STRING("dr0_c"), 1, 2, 0 }, + { 87, TARGET_STRING("dhr_pos"), 1, 8, 0 }, - { 88, TARGET_STRING("dr_trim"), 1, 2, 0 }, + { 88, TARGET_STRING("dhr_pwm"), 1, 8, 0 }, - { 89, TARGET_STRING("drd_pos"), 1, 0, 0 }, + { 89, TARGET_STRING("dht_ratelim"), 1, 2, 0 }, - { 90, TARGET_STRING("drd_pwm"), 1, 0, 0 }, + { 90, TARGET_STRING("dr0_c"), 1, 2, 0 }, - { 91, TARGET_STRING("dru_pos"), 1, 0, 0 }, + { 91, TARGET_STRING("dr_trim"), 1, 2, 0 }, - { 92, TARGET_STRING("dru_pwm"), 1, 0, 0 }, + { 92, TARGET_STRING("drd_pos"), 1, 0, 0 }, - { 93, TARGET_STRING("dsp_ratelim"), 1, 2, 0 }, + { 93, TARGET_STRING("drd_pwm"), 1, 0, 0 }, - { 94, TARGET_STRING("dspl4_list"), 1, 5, 0 }, + { 94, TARGET_STRING("dru_pos"), 1, 0, 0 }, - { 95, TARGET_STRING("dspl5_list"), 1, 5, 0 }, + { 95, TARGET_STRING("dru_pwm"), 1, 0, 0 }, - { 96, TARGET_STRING("dspl6_list"), 1, 5, 0 }, + { 96, TARGET_STRING("dsp_ratelim"), 1, 2, 0 }, - { 97, TARGET_STRING("dspl7_list"), 1, 5, 0 }, + { 97, TARGET_STRING("dspl4_list"), 1, 5, 0 }, - { 98, TARGET_STRING("dspl8_list"), 1, 5, 0 }, + { 98, TARGET_STRING("dspl5_list"), 1, 5, 0 }, - { 99, TARGET_STRING("dspli1_pos"), 1, 0, 0 }, + { 99, TARGET_STRING("dspl6_list"), 1, 5, 0 }, - { 100, TARGET_STRING("dspli1_pwm"), 1, 0, 0 }, + { 100, TARGET_STRING("dspl7_list"), 1, 5, 0 }, - { 101, TARGET_STRING("dspli2_pos"), 1, 0, 0 }, + { 101, TARGET_STRING("dspl8_list"), 1, 5, 0 }, - { 102, TARGET_STRING("dspli2_pwm"), 1, 0, 0 }, + { 102, TARGET_STRING("dspli1_pos"), 1, 9, 0 }, - { 103, TARGET_STRING("dspli3_pos"), 1, 0, 0 }, + { 103, TARGET_STRING("dspli1_pwm"), 1, 9, 0 }, - { 104, TARGET_STRING("dspli3_pwm"), 1, 0, 0 }, + { 104, TARGET_STRING("dspli2_pos"), 1, 9, 0 }, - { 105, TARGET_STRING("dsplo1_pos"), 1, 0, 0 }, + { 105, TARGET_STRING("dspli2_pwm"), 1, 9, 0 }, - { 106, TARGET_STRING("dsplo1_pwm"), 1, 0, 0 }, + { 106, TARGET_STRING("dspli3_pos"), 1, 9, 0 }, - { 107, TARGET_STRING("dsplo2_pos"), 1, 0, 0 }, + { 107, TARGET_STRING("dspli3_pwm"), 1, 9, 0 }, - { 108, TARGET_STRING("dsplo2_pwm"), 1, 0, 0 }, + { 108, TARGET_STRING("dsplo1_pos"), 1, 9, 0 }, - { 109, TARGET_STRING("dsplo3_pos"), 1, 0, 0 }, + { 109, TARGET_STRING("dsplo1_pwm"), 1, 9, 0 }, - { 110, TARGET_STRING("dsplo3_pwm"), 1, 0, 0 }, + { 110, TARGET_STRING("dsplo2_pos"), 1, 9, 0 }, - { 111, TARGET_STRING("dsplo4_pos"), 1, 0, 0 }, + { 111, TARGET_STRING("dsplo2_pwm"), 1, 9, 0 }, - { 112, TARGET_STRING("dsplo4_pwm"), 1, 0, 0 }, + { 112, TARGET_STRING("dsplo3_pos"), 1, 9, 0 }, - { 113, TARGET_STRING("dsplo5_pos"), 1, 0, 0 }, + { 113, TARGET_STRING("dsplo3_pwm"), 1, 9, 0 }, - { 114, TARGET_STRING("dsplo5_pwm"), 1, 0, 0 }, + { 114, TARGET_STRING("dsplo4_pos"), 1, 9, 0 }, - { 115, TARGET_STRING("dspr4_list"), 1, 5, 0 }, + { 115, TARGET_STRING("dsplo4_pwm"), 1, 9, 0 }, - { 116, TARGET_STRING("dspr5_list"), 1, 5, 0 }, + { 116, TARGET_STRING("dsplo5_pos"), 1, 9, 0 }, - { 117, TARGET_STRING("dspr6_list"), 1, 5, 0 }, + { 117, TARGET_STRING("dsplo5_pwm"), 1, 9, 0 }, - { 118, TARGET_STRING("dspr7_list"), 1, 5, 0 }, + { 118, TARGET_STRING("dspr4_list"), 1, 5, 0 }, - { 119, TARGET_STRING("dspr8_list"), 1, 5, 0 }, + { 119, TARGET_STRING("dspr5_list"), 1, 5, 0 }, - { 120, TARGET_STRING("dspri1_pos"), 1, 0, 0 }, + { 120, TARGET_STRING("dspr6_list"), 1, 5, 0 }, - { 121, TARGET_STRING("dspri1_pwm"), 1, 0, 0 }, + { 121, TARGET_STRING("dspr7_list"), 1, 5, 0 }, - { 122, TARGET_STRING("dspri2_pos"), 1, 0, 0 }, + { 122, TARGET_STRING("dspr8_list"), 1, 5, 0 }, - { 123, TARGET_STRING("dspri2_pwm"), 1, 0, 0 }, + { 123, TARGET_STRING("dspri1_pos"), 1, 9, 0 }, - { 124, TARGET_STRING("dspri3_pos"), 1, 0, 0 }, + { 124, TARGET_STRING("dspri1_pwm"), 1, 9, 0 }, - { 125, TARGET_STRING("dspri3_pwm"), 1, 0, 0 }, + { 125, TARGET_STRING("dspri2_pos"), 1, 9, 0 }, - { 126, TARGET_STRING("dspro1_pos"), 1, 0, 0 }, + { 126, TARGET_STRING("dspri2_pwm"), 1, 9, 0 }, - { 127, TARGET_STRING("dspro1_pwm"), 1, 0, 0 }, + { 127, TARGET_STRING("dspri3_pos"), 1, 9, 0 }, - { 128, TARGET_STRING("dspro2_pos"), 1, 0, 0 }, + { 128, TARGET_STRING("dspri3_pwm"), 1, 9, 0 }, - { 129, TARGET_STRING("dspro2_pwm"), 1, 0, 0 }, + { 129, TARGET_STRING("dspro1_pos"), 1, 9, 0 }, - { 130, TARGET_STRING("dspro3_pos"), 1, 0, 0 }, + { 130, TARGET_STRING("dspro1_pwm"), 1, 9, 0 }, - { 131, TARGET_STRING("dspro3_pwm"), 1, 0, 0 }, + { 131, TARGET_STRING("dspro2_pos"), 1, 9, 0 }, - { 132, TARGET_STRING("dspro4_pos"), 1, 0, 0 }, + { 132, TARGET_STRING("dspro2_pwm"), 1, 9, 0 }, - { 133, TARGET_STRING("dspro4_pwm"), 1, 0, 0 }, + { 133, TARGET_STRING("dspro3_pos"), 1, 9, 0 }, - { 134, TARGET_STRING("dspro5_pos"), 1, 0, 0 }, + { 134, TARGET_STRING("dspro3_pwm"), 1, 9, 0 }, - { 135, TARGET_STRING("dspro5_pwm"), 1, 0, 0 }, + { 135, TARGET_STRING("dspro4_pos"), 1, 9, 0 }, - { 136, TARGET_STRING("flap_level"), 1, 2, 0 }, + { 136, TARGET_STRING("dspro4_pwm"), 1, 9, 0 }, - { 137, TARGET_STRING("force_thrl"), 1, 2, 0 }, + { 137, TARGET_STRING("dspro5_pos"), 1, 9, 0 }, - { 138, TARGET_STRING("force_thrr"), 1, 2, 0 }, + { 138, TARGET_STRING("dspro5_pwm"), 1, 9, 0 }, - { 139, TARGET_STRING("k_da2dr"), 1, 2, 0 }, + { 139, TARGET_STRING("flap_level"), 1, 2, 0 }, - { 140, TARGET_STRING("k_p"), 1, 2, 0 }, + { 140, TARGET_STRING("force_thrl"), 1, 2, 0 }, - { 141, TARGET_STRING("k_phi"), 1, 2, 0 }, + { 141, TARGET_STRING("force_thrr"), 1, 2, 0 }, - { 142, TARGET_STRING("k_psi"), 1, 2, 0 }, + { 142, TARGET_STRING("k_da2dr"), 1, 2, 0 }, - { 143, TARGET_STRING("k_q"), 1, 2, 0 }, + { 143, TARGET_STRING("k_p"), 1, 2, 0 }, - { 144, TARGET_STRING("k_r"), 1, 2, 0 }, + { 144, TARGET_STRING("k_phi"), 1, 2, 0 }, - { 145, TARGET_STRING("k_tht"), 1, 2, 0 }, + { 145, TARGET_STRING("k_psi"), 1, 2, 0 }, - { 146, TARGET_STRING("ksi_v2tht"), 1, 2, 0 }, + { 146, TARGET_STRING("k_q"), 1, 2, 0 }, - { 147, TARGET_STRING("kthr_r"), 1, 2, 0 }, + { 147, TARGET_STRING("k_r"), 1, 2, 0 }, - { 148, TARGET_STRING("lever_time"), 1, 2, 0 }, + { 148, TARGET_STRING("k_tht"), 1, 2, 0 }, - { 149, TARGET_STRING("m"), 1, 2, 0 }, + { 149, TARGET_STRING("ksi_v2tht"), 1, 2, 0 }, - { 150, TARGET_STRING("margin_ay"), 1, 2, 0 }, + { 150, TARGET_STRING("kthr_r"), 1, 2, 0 }, - { 151, TARGET_STRING("margin_beta"), 1, 2, 0 }, + { 151, TARGET_STRING("lever_time"), 1, 2, 0 }, - { 152, TARGET_STRING("mass_lst"), 1, 6, 0 }, + { 152, TARGET_STRING("m"), 1, 2, 0 }, - { 153, TARGET_STRING("max_AS"), 1, 2, 0 }, + { 153, TARGET_STRING("margin_ay"), 1, 2, 0 }, - { 154, TARGET_STRING("max_GS"), 1, 2, 0 }, + { 154, TARGET_STRING("margin_beta"), 1, 2, 0 }, - { 155, TARGET_STRING("max_az"), 1, 2, 0 }, + { 155, TARGET_STRING("mass_lst"), 1, 6, 0 }, - { 156, TARGET_STRING("max_da"), 1, 2, 0 }, + { 156, TARGET_STRING("max_AS"), 1, 2, 0 }, - { 157, TARGET_STRING("max_de"), 1, 2, 0 }, + { 157, TARGET_STRING("max_GS"), 1, 2, 0 }, - { 158, TARGET_STRING("max_dh"), 1, 2, 0 }, + { 158, TARGET_STRING("max_az"), 1, 2, 0 }, - { 159, TARGET_STRING("max_dr"), 1, 2, 0 }, + { 159, TARGET_STRING("max_da"), 1, 2, 0 }, - { 160, TARGET_STRING("max_dr_damping"), 1, 2, 0 }, + { 160, TARGET_STRING("max_de"), 1, 2, 0 }, - { 161, TARGET_STRING("max_dsp"), 1, 2, 0 }, + { 161, TARGET_STRING("max_dh"), 1, 2, 0 }, - { 162, TARGET_STRING("max_hdot"), 1, 2, 0 }, + { 162, TARGET_STRING("max_dr"), 1, 2, 0 }, - { 163, TARGET_STRING("max_p"), 1, 2, 0 }, + { 163, TARGET_STRING("max_dr_damping"), 1, 2, 0 }, - { 164, TARGET_STRING("max_phi"), 1, 2, 0 }, + { 164, TARGET_STRING("max_dsp"), 1, 2, 0 }, - { 165, TARGET_STRING("max_q"), 1, 2, 0 }, + { 165, TARGET_STRING("max_hdot"), 1, 2, 0 }, - { 166, TARGET_STRING("max_r"), 1, 2, 0 }, + { 166, TARGET_STRING("max_p"), 1, 2, 0 }, - { 167, TARGET_STRING("max_steer"), 1, 2, 0 }, + { 167, TARGET_STRING("max_phi"), 1, 2, 0 }, - { 168, TARGET_STRING("max_taxi"), 1, 2, 0 }, + { 168, TARGET_STRING("max_q"), 1, 2, 0 }, - { 169, TARGET_STRING("max_thr"), 1, 2, 0 }, + { 169, TARGET_STRING("max_r"), 1, 2, 0 }, - { 170, TARGET_STRING("max_thr_manual"), 1, 2, 0 }, + { 170, TARGET_STRING("max_steer"), 1, 2, 0 }, - { 171, TARGET_STRING("max_thrust"), 1, 2, 0 }, + { 171, TARGET_STRING("max_taxi"), 1, 2, 0 }, - { 172, TARGET_STRING("max_tht"), 1, 2, 0 }, + { 172, TARGET_STRING("max_thr"), 1, 2, 0 }, - { 173, TARGET_STRING("min_AS"), 1, 2, 0 }, + { 173, TARGET_STRING("max_thr_manual"), 1, 2, 0 }, - { 174, TARGET_STRING("min_de"), 1, 2, 0 }, + { 174, TARGET_STRING("max_thrust"), 1, 2, 0 }, - { 175, TARGET_STRING("min_dh"), 1, 2, 0 }, + { 175, TARGET_STRING("max_tht"), 1, 2, 0 }, - { 176, TARGET_STRING("min_dsp"), 1, 2, 0 }, + { 176, TARGET_STRING("min_AS"), 1, 2, 0 }, - { 177, TARGET_STRING("min_hdot"), 1, 2, 0 }, + { 177, TARGET_STRING("min_de"), 1, 2, 0 }, - { 178, TARGET_STRING("min_thr"), 1, 2, 0 }, + { 178, TARGET_STRING("min_dh"), 1, 2, 0 }, - { 179, TARGET_STRING("min_tht"), 1, 2, 0 }, + { 179, TARGET_STRING("min_dsp"), 1, 2, 0 }, - { 180, TARGET_STRING("num_da2dr"), 1, 4, 0 }, + { 180, TARGET_STRING("min_hdot"), 1, 2, 0 }, - { 181, TARGET_STRING("parachute_lock"), 1, 2, 0 }, + { 181, TARGET_STRING("min_thr"), 1, 2, 0 }, - { 182, TARGET_STRING("parachute_release"), 1, 2, 0 }, + { 182, TARGET_STRING("min_tht"), 1, 2, 0 }, - { 183, TARGET_STRING("phic2dr"), 1, 2, 0 }, + { 183, TARGET_STRING("num_da2dr"), 1, 4, 0 }, - { 184, TARGET_STRING("steer_pos"), 1, 0, 0 }, + { 184, TARGET_STRING("parachute_lock"), 1, 2, 0 }, - { 185, TARGET_STRING("steer_pwm"), 1, 0, 0 }, + { 185, TARGET_STRING("parachute_release"), 1, 2, 0 }, - { 186, TARGET_STRING("taxi_de"), 1, 2, 0 }, + { 186, TARGET_STRING("phic2dr"), 1, 2, 0 }, - { 187, TARGET_STRING("thr_pos"), 1, 0, 0 }, + { 187, TARGET_STRING("steer_pos"), 1, 0, 0 }, - { 188, TARGET_STRING("thr_pwm"), 1, 0, 0 }, + { 188, TARGET_STRING("steer_pwm"), 1, 0, 0 }, - { 189, TARGET_STRING("w_as"), 1, 2, 0 }, + { 189, TARGET_STRING("taxi_de"), 1, 2, 0 }, - { 190, TARGET_STRING("w_p"), 1, 2, 0 }, + { 190, TARGET_STRING("thr_lst"), 1, 3, 0 }, - { 191, TARGET_STRING("w_q"), 1, 2, 0 }, + { 191, TARGET_STRING("thr_pos"), 1, 0, 0 }, - { 192, TARGET_STRING("w_r"), 1, 2, 0 }, + { 192, TARGET_STRING("thr_pwm"), 1, 0, 0 }, - { 193, TARGET_STRING("w_v"), 1, 2, 0 }, + { 193, TARGET_STRING("w_as"), 1, 2, 0 }, - { 194, TARGET_STRING("w_v2tht"), 1, 2, 0 }, + { 194, TARGET_STRING("w_p"), 1, 2, 0 }, - { 195, TARGET_STRING("w_x"), 1, 2, 0 }, + { 195, TARGET_STRING("w_q"), 1, 2, 0 }, - { 196, TARGET_STRING("w_y"), 1, 2, 0 }, + { 196, TARGET_STRING("w_r"), 1, 2, 0 }, - { 197, TARGET_STRING("washout_r_den"), 1, 8, 0 }, + { 197, TARGET_STRING("w_v"), 1, 2, 0 }, - { 198, TARGET_STRING("washout_r_num"), 1, 8, 0 }, + { 198, TARGET_STRING("w_v2tht"), 1, 2, 0 }, - { 199, TARGET_STRING("yaw_damping"), 1, 2, 0 }, + { 199, TARGET_STRING("w_x"), 1, 2, 0 }, - { 200, TARGET_STRING("zeta_v"), 1, 2, 0 }, + { 200, TARGET_STRING("w_y"), 1, 2, 0 }, - { 201, TARGET_STRING("transrate"), 2, 2, 0 }, + { 201, TARGET_STRING("washout_r_den"), 1, 8, 0 }, - { 202, TARGET_STRING("actuator_trim"), 3, 9, 0 }, + { 202, TARGET_STRING("washout_r_num"), 1, 8, 0 }, - { 203, TARGET_STRING("system_id"), 3, 2, 0 }, + { 203, TARGET_STRING("yaw_damping"), 1, 2, 0 }, - { 204, TARGET_STRING("map_pwm"), 4, 6, 0 }, + { 204, TARGET_STRING("zeta_v"), 1, 2, 0 }, - { 205, TARGET_STRING("Att0"), 0, 0, 0 }, + { 205, TARGET_STRING("transrate"), 2, 2, 0 }, - { 206, TARGET_STRING("CD0UncertVal"), 0, 2, 0 }, + { 206, TARGET_STRING("actuator_trim"), 3, 10, 0 }, - { 207, TARGET_STRING("CG_bias_m"), 0, 0, 0 }, + { 207, TARGET_STRING("system_id"), 3, 2, 0 }, - { 208, TARGET_STRING("CL0UncertVal"), 0, 2, 0 }, + { 208, TARGET_STRING("map_pwm"), 4, 6, 0 }, - { 209, TARGET_STRING("CLaUncertGain"), 0, 2, 0 }, + { 209, TARGET_STRING("Att0"), 0, 0, 0 }, - { 210, TARGET_STRING("CLdeUncertGain"), 0, 2, 0 }, + { 210, TARGET_STRING("CD0UncertVal"), 0, 2, 0 }, - { 211, TARGET_STRING("CLqUncertGain"), 0, 2, 0 }, + { 211, TARGET_STRING("CG_bias_m"), 0, 0, 0 }, - { 212, TARGET_STRING("CY0UncertVal"), 0, 2, 0 }, + { 212, TARGET_STRING("CL0UncertVal"), 0, 2, 0 }, - { 213, TARGET_STRING("CYbUncertGain"), 0, 2, 0 }, + { 213, TARGET_STRING("CLaUncertGain"), 0, 2, 0 }, - { 214, TARGET_STRING("CYdrUncertGain"), 0, 2, 0 }, + { 214, TARGET_STRING("CLdeUncertGain"), 0, 2, 0 }, - { 215, TARGET_STRING("CYpUncertGain"), 0, 2, 0 }, + { 215, TARGET_STRING("CLqUncertGain"), 0, 2, 0 }, - { 216, TARGET_STRING("CYrUncertGain"), 0, 2, 0 }, + { 216, TARGET_STRING("CY0UncertVal"), 0, 2, 0 }, - { 217, TARGET_STRING("Cl0UncertVal"), 0, 2, 0 }, + { 217, TARGET_STRING("CYbUncertGain"), 0, 2, 0 }, - { 218, TARGET_STRING("ClbUncertGain"), 0, 2, 0 }, + { 218, TARGET_STRING("CYdrUncertGain"), 0, 2, 0 }, - { 219, TARGET_STRING("CldaUncertGain"), 0, 2, 0 }, + { 219, TARGET_STRING("CYpUncertGain"), 0, 2, 0 }, - { 220, TARGET_STRING("CldrUncertGain"), 0, 2, 0 }, + { 220, TARGET_STRING("CYrUncertGain"), 0, 2, 0 }, - { 221, TARGET_STRING("CldspUncertGain"), 0, 2, 0 }, + { 221, TARGET_STRING("Cl0UncertVal"), 0, 2, 0 }, - { 222, TARGET_STRING("ClpUncertGain"), 0, 2, 0 }, + { 222, TARGET_STRING("ClbUncertGain"), 0, 2, 0 }, - { 223, TARGET_STRING("ClrUncertGain"), 0, 2, 0 }, + { 223, TARGET_STRING("CldaUncertGain"), 0, 2, 0 }, - { 224, TARGET_STRING("Cm0UncertVal"), 0, 2, 0 }, + { 224, TARGET_STRING("CldrUncertGain"), 0, 2, 0 }, - { 225, TARGET_STRING("CmaUncertPct"), 0, 2, 0 }, + { 225, TARGET_STRING("CldspUncertGain"), 0, 2, 0 }, - { 226, TARGET_STRING("CmdeUncertGain"), 0, 2, 0 }, + { 226, TARGET_STRING("ClpUncertGain"), 0, 2, 0 }, - { 227, TARGET_STRING("CmqUncertGain"), 0, 2, 0 }, + { 227, TARGET_STRING("ClrUncertGain"), 0, 2, 0 }, - { 228, TARGET_STRING("Cn0UncertVal"), 0, 2, 0 }, + { 228, TARGET_STRING("Cm0UncertVal"), 0, 2, 0 }, - { 229, TARGET_STRING("CnbUncertGain"), 0, 2, 0 }, + { 229, TARGET_STRING("CmaUncertPct"), 0, 2, 0 }, - { 230, TARGET_STRING("CndaUncertGain"), 0, 2, 0 }, + { 230, TARGET_STRING("CmdeUncertGain"), 0, 2, 0 }, - { 231, TARGET_STRING("CndrUncertGain"), 0, 2, 0 }, + { 231, TARGET_STRING("CmqUncertGain"), 0, 2, 0 }, - { 232, TARGET_STRING("CnpUncertGain"), 0, 2, 0 }, + { 232, TARGET_STRING("Cn0UncertVal"), 0, 2, 0 }, - { 233, TARGET_STRING("CnrUncertGain"), 0, 2, 0 }, + { 233, TARGET_STRING("CnbUncertGain"), 0, 2, 0 }, - { 234, TARGET_STRING("InertiaMoments_bias_kg_m2"), 0, 1, 0 }, + { 234, TARGET_STRING("CndaUncertGain"), 0, 2, 0 }, - { 235, TARGET_STRING("Ps_bias"), 0, 2, 0 }, + { 235, TARGET_STRING("CndrUncertGain"), 0, 2, 0 }, - { 236, TARGET_STRING("ThrustUncertGain"), 0, 2, 0 }, + { 236, TARGET_STRING("CnpUncertGain"), 0, 2, 0 }, - { 237, TARGET_STRING("X0"), 0, 0, 0 }, + { 237, TARGET_STRING("CnrUncertGain"), 0, 2, 0 }, - { 238, TARGET_STRING("engine_att_rad"), 0, 10, 0 }, + { 238, TARGET_STRING("InertiaMoments_bias_kg_m2"), 0, 1, 0 }, - { 239, TARGET_STRING("engine_pos_m"), 0, 10, 0 }, + { 239, TARGET_STRING("Ps_bias"), 0, 2, 0 }, - { 240, TARGET_STRING("hground"), 0, 2, 0 }, + { 240, TARGET_STRING("ThrustUncertGain"), 0, 2, 0 }, - { 241, TARGET_STRING("rho_bias"), 0, 2, 0 }, + { 241, TARGET_STRING("X0"), 0, 0, 0 }, - { 242, TARGET_STRING("wind_able"), 0, 2, 0 }, + { 242, TARGET_STRING("engine_att_rad"), 0, 11, 0 }, + + { 243, TARGET_STRING("engine_pos_m"), 0, 11, 0 }, + + { 244, TARGET_STRING("hground"), 0, 2, 0 }, + + { 245, TARGET_STRING("rho_bias"), 0, 2, 0 }, + + { 246, TARGET_STRING("wind_able"), 0, 2, 0 }, { 0, (NULL), 0, 0, 0 } }; @@ -564,230 +572,234 @@ static void* rtDataAddrMap[] = { &cr929_SIL_P.wind_level[0], /* 16: Model Parameter */ &cr929_SIL_P.wind_north[0], /* 17: Model Parameter */ &cr929_SIL_P.CLa, /* 18: Model Parameter */ - &cr929_SIL_P.Cl_lst[0], /* 19: Model Parameter */ - &cr929_SIL_P.Clda, /* 20: Model Parameter */ - &cr929_SIL_P.Clda_mix, /* 21: Model Parameter */ - &cr929_SIL_P.Clp, /* 22: Model Parameter */ - &cr929_SIL_P.Cmde, /* 23: Model Parameter */ - &cr929_SIL_P.Cmq, /* 24: Model Parameter */ - &cr929_SIL_P.Cndr, /* 25: Model Parameter */ - &cr929_SIL_P.Cnr, /* 26: Model Parameter */ - &cr929_SIL_P.CruiseSpeed, /* 27: Model Parameter */ - &cr929_SIL_P.Csb, /* 28: Model Parameter */ - &cr929_SIL_P.FlareAlt, /* 29: Model Parameter */ - &cr929_SIL_P.GearDownSpeed, /* 30: Model Parameter */ - &cr929_SIL_P.Ixx, /* 31: Model Parameter */ - &cr929_SIL_P.Iyy, /* 32: Model Parameter */ - &cr929_SIL_P.Izz, /* 33: Model Parameter */ - &cr929_SIL_P.K, /* 34: Model Parameter */ - &cr929_SIL_P.LandingSpeed, /* 35: Model Parameter */ - &cr929_SIL_P.RefArea, /* 36: Model Parameter */ - &cr929_SIL_P.RefLen, /* 37: Model Parameter */ - &cr929_SIL_P.RefSpan, /* 38: Model Parameter */ - &cr929_SIL_P.STEER_POWER, /* 39: Model Parameter */ - &cr929_SIL_P.TakeOffAlt, /* 40: Model Parameter */ - &cr929_SIL_P.TakeOffThrottle, /* 41: Model Parameter */ - &cr929_SIL_P.TaxiSpeed, /* 42: Model Parameter */ - &cr929_SIL_P.ThrottleRate, /* 43: Model Parameter */ - &cr929_SIL_P.V1, /* 44: Model Parameter */ - &cr929_SIL_P.antistall_lock, /* 45: Model Parameter */ - &cr929_SIL_P.antistall_release, /* 46: Model Parameter */ - &cr929_SIL_P.auto_gear_updown, /* 47: Model Parameter */ - &cr929_SIL_P.brake_lock, /* 48: Model Parameter */ - &cr929_SIL_P.brake_release, /* 49: Model Parameter */ - &cr929_SIL_P.cg_lst[0], /* 50: Model Parameter */ - &cr929_SIL_P.da_list[0], /* 51: Model Parameter */ - &cr929_SIL_P.da_list_unmix[0], /* 52: Model Parameter */ - &cr929_SIL_P.da_lst[0], /* 53: Model Parameter */ - &cr929_SIL_P.dal_list[0], /* 54: Model Parameter */ - &cr929_SIL_P.dal_list_unmix[0], /* 55: Model Parameter */ - &cr929_SIL_P.dal_pos[0], /* 56: Model Parameter */ - &cr929_SIL_P.dal_pwm[0], /* 57: Model Parameter */ - &cr929_SIL_P.dar_list[0], /* 58: Model Parameter */ - &cr929_SIL_P.dar_list_unmix[0], /* 59: Model Parameter */ - &cr929_SIL_P.dar_pos[0], /* 60: Model Parameter */ - &cr929_SIL_P.dar_pwm[0], /* 61: Model Parameter */ - &cr929_SIL_P.ddf_c, /* 62: Model Parameter */ - &cr929_SIL_P.del_pos[0], /* 63: Model Parameter */ - &cr929_SIL_P.del_pwm[0], /* 64: Model Parameter */ - &cr929_SIL_P.den_da2dr[0], /* 65: Model Parameter */ - &cr929_SIL_P.der_pos[0], /* 66: Model Parameter */ - &cr929_SIL_P.der_pwm[0], /* 67: Model Parameter */ - &cr929_SIL_P.det_time, /* 68: Model Parameter */ - &cr929_SIL_P.dflap_ratelim, /* 69: Model Parameter */ - &cr929_SIL_P.dflii_pos[0], /* 70: Model Parameter */ - &cr929_SIL_P.dflii_pwm[0], /* 71: Model Parameter */ - &cr929_SIL_P.dflo2_pos[0], /* 72: Model Parameter */ - &cr929_SIL_P.dflo2_pwm[0], /* 73: Model Parameter */ - &cr929_SIL_P.dflo_pos[0], /* 74: Model Parameter */ - &cr929_SIL_P.dflo_pwm[0], /* 75: Model Parameter */ - &cr929_SIL_P.dfrii_pos[0], /* 76: Model Parameter */ - &cr929_SIL_P.dfrii_pwm[0], /* 77: Model Parameter */ - &cr929_SIL_P.dfrio_pos[0], /* 78: Model Parameter */ - &cr929_SIL_P.dfrio_pwm[0], /* 79: Model Parameter */ - &cr929_SIL_P.dfro2_pos[0], /* 80: Model Parameter */ - &cr929_SIL_P.dfro2_pwm[0], /* 81: Model Parameter */ - &cr929_SIL_P.dfro_pos[0], /* 82: Model Parameter */ - &cr929_SIL_P.dfro_pwm[0], /* 83: Model Parameter */ - &cr929_SIL_P.dh_pos[0], /* 84: Model Parameter */ - &cr929_SIL_P.dh_pwm[0], /* 85: Model Parameter */ - &cr929_SIL_P.dht_ratelim, /* 86: Model Parameter */ - &cr929_SIL_P.dr0_c, /* 87: Model Parameter */ - &cr929_SIL_P.dr_trim, /* 88: Model Parameter */ - &cr929_SIL_P.drd_pos[0], /* 89: Model Parameter */ - &cr929_SIL_P.drd_pwm[0], /* 90: Model Parameter */ - &cr929_SIL_P.dru_pos[0], /* 91: Model Parameter */ - &cr929_SIL_P.dru_pwm[0], /* 92: Model Parameter */ - &cr929_SIL_P.dsp_ratelim, /* 93: Model Parameter */ - &cr929_SIL_P.dspl4_list[0], /* 94: Model Parameter */ - &cr929_SIL_P.dspl5_list[0], /* 95: Model Parameter */ - &cr929_SIL_P.dspl6_list[0], /* 96: Model Parameter */ - &cr929_SIL_P.dspl7_list[0], /* 97: Model Parameter */ - &cr929_SIL_P.dspl8_list[0], /* 98: Model Parameter */ - &cr929_SIL_P.dspli1_pos[0], /* 99: Model Parameter */ - &cr929_SIL_P.dspli1_pwm[0], /* 100: Model Parameter */ - &cr929_SIL_P.dspli2_pos[0], /* 101: Model Parameter */ - &cr929_SIL_P.dspli2_pwm[0], /* 102: Model Parameter */ - &cr929_SIL_P.dspli3_pos[0], /* 103: Model Parameter */ - &cr929_SIL_P.dspli3_pwm[0], /* 104: Model Parameter */ - &cr929_SIL_P.dsplo1_pos[0], /* 105: Model Parameter */ - &cr929_SIL_P.dsplo1_pwm[0], /* 106: Model Parameter */ - &cr929_SIL_P.dsplo2_pos[0], /* 107: Model Parameter */ - &cr929_SIL_P.dsplo2_pwm[0], /* 108: Model Parameter */ - &cr929_SIL_P.dsplo3_pos[0], /* 109: Model Parameter */ - &cr929_SIL_P.dsplo3_pwm[0], /* 110: Model Parameter */ - &cr929_SIL_P.dsplo4_pos[0], /* 111: Model Parameter */ - &cr929_SIL_P.dsplo4_pwm[0], /* 112: Model Parameter */ - &cr929_SIL_P.dsplo5_pos[0], /* 113: Model Parameter */ - &cr929_SIL_P.dsplo5_pwm[0], /* 114: Model Parameter */ - &cr929_SIL_P.dspr4_list[0], /* 115: Model Parameter */ - &cr929_SIL_P.dspr5_list[0], /* 116: Model Parameter */ - &cr929_SIL_P.dspr6_list[0], /* 117: Model Parameter */ - &cr929_SIL_P.dspr7_list[0], /* 118: Model Parameter */ - &cr929_SIL_P.dspr8_list[0], /* 119: Model Parameter */ - &cr929_SIL_P.dspri1_pos[0], /* 120: Model Parameter */ - &cr929_SIL_P.dspri1_pwm[0], /* 121: Model Parameter */ - &cr929_SIL_P.dspri2_pos[0], /* 122: Model Parameter */ - &cr929_SIL_P.dspri2_pwm[0], /* 123: Model Parameter */ - &cr929_SIL_P.dspri3_pos[0], /* 124: Model Parameter */ - &cr929_SIL_P.dspri3_pwm[0], /* 125: Model Parameter */ - &cr929_SIL_P.dspro1_pos[0], /* 126: Model Parameter */ - &cr929_SIL_P.dspro1_pwm[0], /* 127: Model Parameter */ - &cr929_SIL_P.dspro2_pos[0], /* 128: Model Parameter */ - &cr929_SIL_P.dspro2_pwm[0], /* 129: Model Parameter */ - &cr929_SIL_P.dspro3_pos[0], /* 130: Model Parameter */ - &cr929_SIL_P.dspro3_pwm[0], /* 131: Model Parameter */ - &cr929_SIL_P.dspro4_pos[0], /* 132: Model Parameter */ - &cr929_SIL_P.dspro4_pwm[0], /* 133: Model Parameter */ - &cr929_SIL_P.dspro5_pos[0], /* 134: Model Parameter */ - &cr929_SIL_P.dspro5_pwm[0], /* 135: Model Parameter */ - &cr929_SIL_P.flap_level, /* 136: Model Parameter */ - &cr929_SIL_P.force_thrl, /* 137: Model Parameter */ - &cr929_SIL_P.force_thrr, /* 138: Model Parameter */ - &cr929_SIL_P.k_da2dr, /* 139: Model Parameter */ - &cr929_SIL_P.k_p, /* 140: Model Parameter */ - &cr929_SIL_P.k_phi, /* 141: Model Parameter */ - &cr929_SIL_P.k_psi, /* 142: Model Parameter */ - &cr929_SIL_P.k_q, /* 143: Model Parameter */ - &cr929_SIL_P.k_r, /* 144: Model Parameter */ - &cr929_SIL_P.k_tht, /* 145: Model Parameter */ - &cr929_SIL_P.ksi_v2tht, /* 146: Model Parameter */ - &cr929_SIL_P.kthr_r, /* 147: Model Parameter */ - &cr929_SIL_P.lever_time, /* 148: Model Parameter */ - &cr929_SIL_P.m, /* 149: Model Parameter */ - &cr929_SIL_P.margin_ay, /* 150: Model Parameter */ - &cr929_SIL_P.margin_beta, /* 151: Model Parameter */ - &cr929_SIL_P.mass_lst[0], /* 152: Model Parameter */ - &cr929_SIL_P.max_AS, /* 153: Model Parameter */ - &cr929_SIL_P.max_GS, /* 154: Model Parameter */ - &cr929_SIL_P.max_az, /* 155: Model Parameter */ - &cr929_SIL_P.max_da, /* 156: Model Parameter */ - &cr929_SIL_P.max_de, /* 157: Model Parameter */ - &cr929_SIL_P.max_dh, /* 158: Model Parameter */ - &cr929_SIL_P.max_dr, /* 159: Model Parameter */ - &cr929_SIL_P.max_dr_damping, /* 160: Model Parameter */ - &cr929_SIL_P.max_dsp, /* 161: Model Parameter */ - &cr929_SIL_P.max_hdot, /* 162: Model Parameter */ - &cr929_SIL_P.max_p, /* 163: Model Parameter */ - &cr929_SIL_P.max_phi, /* 164: Model Parameter */ - &cr929_SIL_P.max_q, /* 165: Model Parameter */ - &cr929_SIL_P.max_r, /* 166: Model Parameter */ - &cr929_SIL_P.max_steer, /* 167: Model Parameter */ - &cr929_SIL_P.max_taxi, /* 168: Model Parameter */ - &cr929_SIL_P.max_thr, /* 169: Model Parameter */ - &cr929_SIL_P.max_thr_manual, /* 170: Model Parameter */ - &cr929_SIL_P.max_thrust, /* 171: Model Parameter */ - &cr929_SIL_P.max_tht, /* 172: Model Parameter */ - &cr929_SIL_P.min_AS, /* 173: Model Parameter */ - &cr929_SIL_P.min_de, /* 174: Model Parameter */ - &cr929_SIL_P.min_dh, /* 175: Model Parameter */ - &cr929_SIL_P.min_dsp, /* 176: Model Parameter */ - &cr929_SIL_P.min_hdot, /* 177: Model Parameter */ - &cr929_SIL_P.min_thr, /* 178: Model Parameter */ - &cr929_SIL_P.min_tht, /* 179: Model Parameter */ - &cr929_SIL_P.num_da2dr[0], /* 180: Model Parameter */ - &cr929_SIL_P.parachute_lock, /* 181: Model Parameter */ - &cr929_SIL_P.parachute_release, /* 182: Model Parameter */ - &cr929_SIL_P.phic2dr, /* 183: Model Parameter */ - &cr929_SIL_P.steer_pos[0], /* 184: Model Parameter */ - &cr929_SIL_P.steer_pwm[0], /* 185: Model Parameter */ - &cr929_SIL_P.taxi_de, /* 186: Model Parameter */ - &cr929_SIL_P.thr_pos[0], /* 187: Model Parameter */ - &cr929_SIL_P.thr_pwm[0], /* 188: Model Parameter */ - &cr929_SIL_P.w_as, /* 189: Model Parameter */ - &cr929_SIL_P.w_p, /* 190: Model Parameter */ - &cr929_SIL_P.w_q, /* 191: Model Parameter */ - &cr929_SIL_P.w_r, /* 192: Model Parameter */ - &cr929_SIL_P.w_v, /* 193: Model Parameter */ - &cr929_SIL_P.w_v2tht, /* 194: Model Parameter */ - &cr929_SIL_P.w_x, /* 195: Model Parameter */ - &cr929_SIL_P.w_y, /* 196: Model Parameter */ - &cr929_SIL_P.washout_r_den[0], /* 197: Model Parameter */ - &cr929_SIL_P.washout_r_num[0], /* 198: Model Parameter */ - &cr929_SIL_P.yaw_damping, /* 199: Model Parameter */ - &cr929_SIL_P.zeta_v, /* 200: Model Parameter */ - &cr929_SIL_P.transrate, /* 201: Model Parameter */ - &cr929_SIL_P.actuator_trim[0], /* 202: Model Parameter */ - &cr929_SIL_P.system_id, /* 203: Model Parameter */ - &cr929_SIL_P.map_pwm[0], /* 204: Model Parameter */ - Att0, /* 205: Model Parameter */ - &CD0UncertVal, /* 206: Model Parameter */ - CG_bias_m, /* 207: Model Parameter */ - &CL0UncertVal, /* 208: Model Parameter */ - &CLaUncertGain, /* 209: Model Parameter */ - &CLdeUncertGain, /* 210: Model Parameter */ - &CLqUncertGain, /* 211: Model Parameter */ - &CY0UncertVal, /* 212: Model Parameter */ - &CYbUncertGain, /* 213: Model Parameter */ - &CYdrUncertGain, /* 214: Model Parameter */ - &CYpUncertGain, /* 215: Model Parameter */ - &CYrUncertGain, /* 216: Model Parameter */ - &Cl0UncertVal, /* 217: Model Parameter */ - &ClbUncertGain, /* 218: Model Parameter */ - &CldaUncertGain, /* 219: Model Parameter */ - &CldrUncertGain, /* 220: Model Parameter */ - &CldspUncertGain, /* 221: Model Parameter */ - &ClpUncertGain, /* 222: Model Parameter */ - &ClrUncertGain, /* 223: Model Parameter */ - &Cm0UncertVal, /* 224: Model Parameter */ - &CmaUncertPct, /* 225: Model Parameter */ - &CmdeUncertGain, /* 226: Model Parameter */ - &CmqUncertGain, /* 227: Model Parameter */ - &Cn0UncertVal, /* 228: Model Parameter */ - &CnbUncertGain, /* 229: Model Parameter */ - &CndaUncertGain, /* 230: Model Parameter */ - &CndrUncertGain, /* 231: Model Parameter */ - &CnpUncertGain, /* 232: Model Parameter */ - &CnrUncertGain, /* 233: Model Parameter */ - InertiaMoments_bias_kg_m2, /* 234: Model Parameter */ - &Ps_bias, /* 235: Model Parameter */ - &ThrustUncertGain, /* 236: Model Parameter */ - X0, /* 237: Model Parameter */ - engine_att_rad, /* 238: Model Parameter */ - engine_pos_m, /* 239: Model Parameter */ - &hground, /* 240: Model Parameter */ - &rho_bias, /* 241: Model Parameter */ - &wind_able, /* 242: Model Parameter */ + &cr929_SIL_P.Cf_lst[0], /* 19: Model Parameter */ + &cr929_SIL_P.Cl_lst[0], /* 20: Model Parameter */ + &cr929_SIL_P.Clda, /* 21: Model Parameter */ + &cr929_SIL_P.Clda_mix, /* 22: Model Parameter */ + &cr929_SIL_P.Clp, /* 23: Model Parameter */ + &cr929_SIL_P.Cmde, /* 24: Model Parameter */ + &cr929_SIL_P.Cmq, /* 25: Model Parameter */ + &cr929_SIL_P.Cndr, /* 26: Model Parameter */ + &cr929_SIL_P.Cnr, /* 27: Model Parameter */ + &cr929_SIL_P.CruiseSpeed, /* 28: Model Parameter */ + &cr929_SIL_P.Csb, /* 29: Model Parameter */ + &cr929_SIL_P.FlareAlt, /* 30: Model Parameter */ + &cr929_SIL_P.GearDownSpeed, /* 31: Model Parameter */ + &cr929_SIL_P.Ixx, /* 32: Model Parameter */ + &cr929_SIL_P.Iyy, /* 33: Model Parameter */ + &cr929_SIL_P.Izz, /* 34: Model Parameter */ + &cr929_SIL_P.K, /* 35: Model Parameter */ + &cr929_SIL_P.LandingSpeed, /* 36: Model Parameter */ + &cr929_SIL_P.RefArea, /* 37: Model Parameter */ + &cr929_SIL_P.RefLen, /* 38: Model Parameter */ + &cr929_SIL_P.RefSpan, /* 39: Model Parameter */ + &cr929_SIL_P.STEER_POWER, /* 40: Model Parameter */ + &cr929_SIL_P.TakeOffAlt, /* 41: Model Parameter */ + &cr929_SIL_P.TakeOffThrottle, /* 42: Model Parameter */ + &cr929_SIL_P.TaxiSpeed, /* 43: Model Parameter */ + &cr929_SIL_P.ThrottleRate, /* 44: Model Parameter */ + &cr929_SIL_P.V1, /* 45: Model Parameter */ + &cr929_SIL_P.auto_gear_updown, /* 46: Model Parameter */ + &cr929_SIL_P.brake_lock, /* 47: Model Parameter */ + &cr929_SIL_P.brake_release, /* 48: Model Parameter */ + &cr929_SIL_P.cg_lst[0], /* 49: Model Parameter */ + &cr929_SIL_P.da_list[0], /* 50: Model Parameter */ + &cr929_SIL_P.da_list_unmix[0], /* 51: Model Parameter */ + &cr929_SIL_P.da_lst[0], /* 52: Model Parameter */ + &cr929_SIL_P.dal_list[0], /* 53: Model Parameter */ + &cr929_SIL_P.dal_list_unmix[0], /* 54: Model Parameter */ + &cr929_SIL_P.dal_pos[0], /* 55: Model Parameter */ + &cr929_SIL_P.dal_pwm[0], /* 56: Model Parameter */ + &cr929_SIL_P.dar_list[0], /* 57: Model Parameter */ + &cr929_SIL_P.dar_list_unmix[0], /* 58: Model Parameter */ + &cr929_SIL_P.dar_pos[0], /* 59: Model Parameter */ + &cr929_SIL_P.dar_pwm[0], /* 60: Model Parameter */ + &cr929_SIL_P.ddf_c, /* 61: Model Parameter */ + &cr929_SIL_P.del_pos[0], /* 62: Model Parameter */ + &cr929_SIL_P.del_pwm[0], /* 63: Model Parameter */ + &cr929_SIL_P.den_da2dr[0], /* 64: Model Parameter */ + &cr929_SIL_P.der_pos[0], /* 65: Model Parameter */ + &cr929_SIL_P.der_pwm[0], /* 66: Model Parameter */ + &cr929_SIL_P.det_time, /* 67: Model Parameter */ + &cr929_SIL_P.dflap_ratelim, /* 68: Model Parameter */ + &cr929_SIL_P.dflii_pos[0], /* 69: Model Parameter */ + &cr929_SIL_P.dflii_pwm[0], /* 70: Model Parameter */ + &cr929_SIL_P.dflio_pos[0], /* 71: Model Parameter */ + &cr929_SIL_P.dflio_pwm[0], /* 72: Model Parameter */ + &cr929_SIL_P.dflo2_pos[0], /* 73: Model Parameter */ + &cr929_SIL_P.dflo2_pwm[0], /* 74: Model Parameter */ + &cr929_SIL_P.dflo_pos[0], /* 75: Model Parameter */ + &cr929_SIL_P.dflo_pwm[0], /* 76: Model Parameter */ + &cr929_SIL_P.dfrii_pos[0], /* 77: Model Parameter */ + &cr929_SIL_P.dfrii_pwm[0], /* 78: Model Parameter */ + &cr929_SIL_P.dfrio_pos[0], /* 79: Model Parameter */ + &cr929_SIL_P.dfrio_pwm[0], /* 80: Model Parameter */ + &cr929_SIL_P.dfro2_pos[0], /* 81: Model Parameter */ + &cr929_SIL_P.dfro2_pwm[0], /* 82: Model Parameter */ + &cr929_SIL_P.dfro_pos[0], /* 83: Model Parameter */ + &cr929_SIL_P.dfro_pwm[0], /* 84: Model Parameter */ + &cr929_SIL_P.dhl_pos[0], /* 85: Model Parameter */ + &cr929_SIL_P.dhl_pwm[0], /* 86: Model Parameter */ + &cr929_SIL_P.dhr_pos[0], /* 87: Model Parameter */ + &cr929_SIL_P.dhr_pwm[0], /* 88: Model Parameter */ + &cr929_SIL_P.dht_ratelim, /* 89: Model Parameter */ + &cr929_SIL_P.dr0_c, /* 90: Model Parameter */ + &cr929_SIL_P.dr_trim, /* 91: Model Parameter */ + &cr929_SIL_P.drd_pos[0], /* 92: Model Parameter */ + &cr929_SIL_P.drd_pwm[0], /* 93: Model Parameter */ + &cr929_SIL_P.dru_pos[0], /* 94: Model Parameter */ + &cr929_SIL_P.dru_pwm[0], /* 95: Model Parameter */ + &cr929_SIL_P.dsp_ratelim, /* 96: Model Parameter */ + &cr929_SIL_P.dspl4_list[0], /* 97: Model Parameter */ + &cr929_SIL_P.dspl5_list[0], /* 98: Model Parameter */ + &cr929_SIL_P.dspl6_list[0], /* 99: Model Parameter */ + &cr929_SIL_P.dspl7_list[0], /* 100: Model Parameter */ + &cr929_SIL_P.dspl8_list[0], /* 101: Model Parameter */ + &cr929_SIL_P.dspli1_pos[0], /* 102: Model Parameter */ + &cr929_SIL_P.dspli1_pwm[0], /* 103: Model Parameter */ + &cr929_SIL_P.dspli2_pos[0], /* 104: Model Parameter */ + &cr929_SIL_P.dspli2_pwm[0], /* 105: Model Parameter */ + &cr929_SIL_P.dspli3_pos[0], /* 106: Model Parameter */ + &cr929_SIL_P.dspli3_pwm[0], /* 107: Model Parameter */ + &cr929_SIL_P.dsplo1_pos[0], /* 108: Model Parameter */ + &cr929_SIL_P.dsplo1_pwm[0], /* 109: Model Parameter */ + &cr929_SIL_P.dsplo2_pos[0], /* 110: Model Parameter */ + &cr929_SIL_P.dsplo2_pwm[0], /* 111: Model Parameter */ + &cr929_SIL_P.dsplo3_pos[0], /* 112: Model Parameter */ + &cr929_SIL_P.dsplo3_pwm[0], /* 113: Model Parameter */ + &cr929_SIL_P.dsplo4_pos[0], /* 114: Model Parameter */ + &cr929_SIL_P.dsplo4_pwm[0], /* 115: Model Parameter */ + &cr929_SIL_P.dsplo5_pos[0], /* 116: Model Parameter */ + &cr929_SIL_P.dsplo5_pwm[0], /* 117: Model Parameter */ + &cr929_SIL_P.dspr4_list[0], /* 118: Model Parameter */ + &cr929_SIL_P.dspr5_list[0], /* 119: Model Parameter */ + &cr929_SIL_P.dspr6_list[0], /* 120: Model Parameter */ + &cr929_SIL_P.dspr7_list[0], /* 121: Model Parameter */ + &cr929_SIL_P.dspr8_list[0], /* 122: Model Parameter */ + &cr929_SIL_P.dspri1_pos[0], /* 123: Model Parameter */ + &cr929_SIL_P.dspri1_pwm[0], /* 124: Model Parameter */ + &cr929_SIL_P.dspri2_pos[0], /* 125: Model Parameter */ + &cr929_SIL_P.dspri2_pwm[0], /* 126: Model Parameter */ + &cr929_SIL_P.dspri3_pos[0], /* 127: Model Parameter */ + &cr929_SIL_P.dspri3_pwm[0], /* 128: Model Parameter */ + &cr929_SIL_P.dspro1_pos[0], /* 129: Model Parameter */ + &cr929_SIL_P.dspro1_pwm[0], /* 130: Model Parameter */ + &cr929_SIL_P.dspro2_pos[0], /* 131: Model Parameter */ + &cr929_SIL_P.dspro2_pwm[0], /* 132: Model Parameter */ + &cr929_SIL_P.dspro3_pos[0], /* 133: Model Parameter */ + &cr929_SIL_P.dspro3_pwm[0], /* 134: Model Parameter */ + &cr929_SIL_P.dspro4_pos[0], /* 135: Model Parameter */ + &cr929_SIL_P.dspro4_pwm[0], /* 136: Model Parameter */ + &cr929_SIL_P.dspro5_pos[0], /* 137: Model Parameter */ + &cr929_SIL_P.dspro5_pwm[0], /* 138: Model Parameter */ + &cr929_SIL_P.flap_level, /* 139: Model Parameter */ + &cr929_SIL_P.force_thrl, /* 140: Model Parameter */ + &cr929_SIL_P.force_thrr, /* 141: Model Parameter */ + &cr929_SIL_P.k_da2dr, /* 142: Model Parameter */ + &cr929_SIL_P.k_p, /* 143: Model Parameter */ + &cr929_SIL_P.k_phi, /* 144: Model Parameter */ + &cr929_SIL_P.k_psi, /* 145: Model Parameter */ + &cr929_SIL_P.k_q, /* 146: Model Parameter */ + &cr929_SIL_P.k_r, /* 147: Model Parameter */ + &cr929_SIL_P.k_tht, /* 148: Model Parameter */ + &cr929_SIL_P.ksi_v2tht, /* 149: Model Parameter */ + &cr929_SIL_P.kthr_r, /* 150: Model Parameter */ + &cr929_SIL_P.lever_time, /* 151: Model Parameter */ + &cr929_SIL_P.m, /* 152: Model Parameter */ + &cr929_SIL_P.margin_ay, /* 153: Model Parameter */ + &cr929_SIL_P.margin_beta, /* 154: Model Parameter */ + &cr929_SIL_P.mass_lst[0], /* 155: Model Parameter */ + &cr929_SIL_P.max_AS, /* 156: Model Parameter */ + &cr929_SIL_P.max_GS, /* 157: Model Parameter */ + &cr929_SIL_P.max_az, /* 158: Model Parameter */ + &cr929_SIL_P.max_da, /* 159: Model Parameter */ + &cr929_SIL_P.max_de, /* 160: Model Parameter */ + &cr929_SIL_P.max_dh, /* 161: Model Parameter */ + &cr929_SIL_P.max_dr, /* 162: Model Parameter */ + &cr929_SIL_P.max_dr_damping, /* 163: Model Parameter */ + &cr929_SIL_P.max_dsp, /* 164: Model Parameter */ + &cr929_SIL_P.max_hdot, /* 165: Model Parameter */ + &cr929_SIL_P.max_p, /* 166: Model Parameter */ + &cr929_SIL_P.max_phi, /* 167: Model Parameter */ + &cr929_SIL_P.max_q, /* 168: Model Parameter */ + &cr929_SIL_P.max_r, /* 169: Model Parameter */ + &cr929_SIL_P.max_steer, /* 170: Model Parameter */ + &cr929_SIL_P.max_taxi, /* 171: Model Parameter */ + &cr929_SIL_P.max_thr, /* 172: Model Parameter */ + &cr929_SIL_P.max_thr_manual, /* 173: Model Parameter */ + &cr929_SIL_P.max_thrust, /* 174: Model Parameter */ + &cr929_SIL_P.max_tht, /* 175: Model Parameter */ + &cr929_SIL_P.min_AS, /* 176: Model Parameter */ + &cr929_SIL_P.min_de, /* 177: Model Parameter */ + &cr929_SIL_P.min_dh, /* 178: Model Parameter */ + &cr929_SIL_P.min_dsp, /* 179: Model Parameter */ + &cr929_SIL_P.min_hdot, /* 180: Model Parameter */ + &cr929_SIL_P.min_thr, /* 181: Model Parameter */ + &cr929_SIL_P.min_tht, /* 182: Model Parameter */ + &cr929_SIL_P.num_da2dr[0], /* 183: Model Parameter */ + &cr929_SIL_P.parachute_lock, /* 184: Model Parameter */ + &cr929_SIL_P.parachute_release, /* 185: Model Parameter */ + &cr929_SIL_P.phic2dr, /* 186: Model Parameter */ + &cr929_SIL_P.steer_pos[0], /* 187: Model Parameter */ + &cr929_SIL_P.steer_pwm[0], /* 188: Model Parameter */ + &cr929_SIL_P.taxi_de, /* 189: Model Parameter */ + &cr929_SIL_P.thr_lst[0], /* 190: Model Parameter */ + &cr929_SIL_P.thr_pos[0], /* 191: Model Parameter */ + &cr929_SIL_P.thr_pwm[0], /* 192: Model Parameter */ + &cr929_SIL_P.w_as, /* 193: Model Parameter */ + &cr929_SIL_P.w_p, /* 194: Model Parameter */ + &cr929_SIL_P.w_q, /* 195: Model Parameter */ + &cr929_SIL_P.w_r, /* 196: Model Parameter */ + &cr929_SIL_P.w_v, /* 197: Model Parameter */ + &cr929_SIL_P.w_v2tht, /* 198: Model Parameter */ + &cr929_SIL_P.w_x, /* 199: Model Parameter */ + &cr929_SIL_P.w_y, /* 200: Model Parameter */ + &cr929_SIL_P.washout_r_den[0], /* 201: Model Parameter */ + &cr929_SIL_P.washout_r_num[0], /* 202: Model Parameter */ + &cr929_SIL_P.yaw_damping, /* 203: Model Parameter */ + &cr929_SIL_P.zeta_v, /* 204: Model Parameter */ + &cr929_SIL_P.transrate, /* 205: Model Parameter */ + &cr929_SIL_P.actuator_trim[0], /* 206: Model Parameter */ + &cr929_SIL_P.system_id, /* 207: Model Parameter */ + &cr929_SIL_P.map_pwm[0], /* 208: Model Parameter */ + Att0, /* 209: Model Parameter */ + &CD0UncertVal, /* 210: Model Parameter */ + CG_bias_m, /* 211: Model Parameter */ + &CL0UncertVal, /* 212: Model Parameter */ + &CLaUncertGain, /* 213: Model Parameter */ + &CLdeUncertGain, /* 214: Model Parameter */ + &CLqUncertGain, /* 215: Model Parameter */ + &CY0UncertVal, /* 216: Model Parameter */ + &CYbUncertGain, /* 217: Model Parameter */ + &CYdrUncertGain, /* 218: Model Parameter */ + &CYpUncertGain, /* 219: Model Parameter */ + &CYrUncertGain, /* 220: Model Parameter */ + &Cl0UncertVal, /* 221: Model Parameter */ + &ClbUncertGain, /* 222: Model Parameter */ + &CldaUncertGain, /* 223: Model Parameter */ + &CldrUncertGain, /* 224: Model Parameter */ + &CldspUncertGain, /* 225: Model Parameter */ + &ClpUncertGain, /* 226: Model Parameter */ + &ClrUncertGain, /* 227: Model Parameter */ + &Cm0UncertVal, /* 228: Model Parameter */ + &CmaUncertPct, /* 229: Model Parameter */ + &CmdeUncertGain, /* 230: Model Parameter */ + &CmqUncertGain, /* 231: Model Parameter */ + &Cn0UncertVal, /* 232: Model Parameter */ + &CnbUncertGain, /* 233: Model Parameter */ + &CndaUncertGain, /* 234: Model Parameter */ + &CndrUncertGain, /* 235: Model Parameter */ + &CnpUncertGain, /* 236: Model Parameter */ + &CnrUncertGain, /* 237: Model Parameter */ + InertiaMoments_bias_kg_m2, /* 238: Model Parameter */ + &Ps_bias, /* 239: Model Parameter */ + &ThrustUncertGain, /* 240: Model Parameter */ + X0, /* 241: Model Parameter */ + engine_att_rad, /* 242: Model Parameter */ + engine_pos_m, /* 243: Model Parameter */ + &hground, /* 244: Model Parameter */ + &rho_bias, /* 245: Model Parameter */ + &wind_able, /* 246: Model Parameter */ }; /* Declare Data Run-Time Dimension Buffer Addresses statically */ @@ -845,7 +857,9 @@ static const rtwCAPI_DimensionMap rtDimensionMap[] = { { rtwCAPI_VECTOR, 18, 2, 0 }, - { rtwCAPI_MATRIX_COL_MAJOR, 20, 2, 0 } + { rtwCAPI_VECTOR, 20, 2, 0 }, + + { rtwCAPI_MATRIX_COL_MAJOR, 22, 2, 0 } }; /* Dimension Array- use dimArrayIndex to access elements of this array */ @@ -869,9 +883,11 @@ static const uint_T rtDimensionArray[] = { 1, /* 16 */ 4, /* 17 */ 1, /* 18 */ - 23, /* 19 */ - 2, /* 20 */ - 3 /* 21 */ + 6, /* 19 */ + 1, /* 20 */ + 23, /* 21 */ + 2, /* 22 */ + 3 /* 23 */ }; /* Fixed Point Map */ @@ -904,7 +920,7 @@ static rtwCAPI_ModelMappingStaticInfo mmiStatic = { (NULL), 0 }, { rtBlockParameters, 0, - rtModelParameters, 243 }, + rtModelParameters, 247 }, { (NULL), 0 }, @@ -912,10 +928,10 @@ static rtwCAPI_ModelMappingStaticInfo mmiStatic = { rtElementMap, rtSampleTimeMap, rtDimensionArray }, "float", - { 4221403132U, - 3026962106U, - 1902836750U, - 1098764256U }, + { 1233663099U, + 2866312765U, + 4252454956U, + 2138402804U }, (NULL), 0, 0 }; diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.h b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.h index 001d009..9c40bd5 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.h +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1344 + * Model version : 1.1390 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Sat Aug 21 08:51:18 2021 + * C/C++ source code generated on : Mon Aug 23 14:30:11 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_data.c b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_data.c index 51403b8..116b108 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_data.c +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_data.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1344 + * Model version : 1.1390 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Sat Aug 21 08:51:18 2021 + * C/C++ source code generated on : Mon Aug 23 14:30:11 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -42,67 +42,67 @@ const ConstB_cr929_SIL_T cr929_SIL_ConstB = { { 0.0, 0.0, 0.0 }, /* synthesized block */ { 0.05533534132902769, 0.05533534132902769, 0.05533534132902769, - 0.05533534132902769 }, /* '/Sqrt' */ - 0.05533534132902769, /* '/Sqrt1' */ + 0.05533534132902769 }, /* '/Sqrt' */ + 0.05533534132902769, /* '/Sqrt1' */ - { 1.0, 1.0, 1.0, 1.0 }, /* '/Divide' */ - 0.0, /* '/Unit Conversion' */ - 0.0, /* '/Unit Conversion' */ - 0.0, /* '/sigma_wg ' */ - 0.0, /* '/PreLook-Up Index Search (prob of exceed)' */ - 22.309711286089236, /* '/Unit Conversion' */ - 1749.9999999999998, /* '/Unit Conversion' */ - 1000.0, /* '/Sum' */ - 1000.0, /* '/Sum' */ - 21.304204980804883, /* '/dt1' */ - 28.405606641073181, /* '/dt1' */ + { 1.0, 1.0, 1.0, 1.0 }, /* '/Divide' */ + 0.0, /* '/Unit Conversion' */ + 0.0, /* '/Unit Conversion' */ + 0.0, /* '/sigma_wg ' */ + 0.0, /* '/PreLook-Up Index Search (prob of exceed)' */ + 22.309711286089236, /* '/Unit Conversion' */ + 1749.9999999999998, /* '/Unit Conversion' */ + 1000.0, /* '/Sum' */ + 1000.0, /* '/Sum' */ + 21.304204980804883, /* '/dt1' */ + 28.405606641073181, /* '/dt1' */ { 1.50687, 0.0, 0.268 }, /* '/Selector' */ { -0.11937, -0.306, 0.268 }, /* '/Selector1' */ { -0.11937, 0.306, 0.268 }, /* '/Selector2' */ - 0U, /* '/PreLook-Up Index Search (prob of exceed)' */ - 116U, /* '/Width1' */ - 177U, /* '/Width1' */ - 194U, /* '/Width1' */ - 89U, /* '/Width1' */ - 60U, /* '/Width1' */ - 30U, /* '/Width1' */ - 45U, /* '/Width1' */ + 0U, /* '/PreLook-Up Index Search (prob of exceed)' */ + 117U, /* '/Width1' */ + 177U, /* '/Width1' */ + 194U, /* '/Width1' */ + 89U, /* '/Width1' */ + 60U, /* '/Width1' */ + 30U, /* '/Width1' */ + 45U, /* '/Width1' */ + 73U, /* '/Width1' */ + 65U, /* '/Width1' */ + 233U, /* '/Width1' */ + 107U, /* '/Width1' */ + 73U, /* '/Width1' */ + 77U, /* '/Width1' */ + 19U, /* '/Width1' */ + 60U, /* '/Width1' */ + 30U, /* '/Width1' */ + 35U, /* '/Width1' */ + 45U, /* '/Width1' */ 73U, /* '/Width1' */ 65U, /* '/Width1' */ - 233U, /* '/Width1' */ - 103U, /* '/Width1' */ - 73U, /* '/Width1' */ - 77U, /* '/Width1' */ - 19U, /* '/Width1' */ - 60U, /* '/Width1' */ - 30U, /* '/Width1' */ - 35U, /* '/Width1' */ - 45U, /* '/Width1' */ - 73U, /* '/Width1' */ - 65U, /* '/Width1' */ - 111U, /* '/Width' */ - 172U, /* '/Width' */ - 189U, /* '/Width' */ - 84U, /* '/Width' */ - 55U, /* '/Width' */ - 25U, /* '/Width' */ - 40U, /* '/Width' */ + 112U, /* '/Width' */ + 172U, /* '/Width' */ + 189U, /* '/Width' */ + 84U, /* '/Width' */ + 55U, /* '/Width' */ + 25U, /* '/Width' */ + 40U, /* '/Width' */ + 68U, /* '/Width' */ + 60U, /* '/Width' */ + 228U, /* '/Width' */ + 102U, /* '/Width' */ + 68U, /* '/Width' */ + 72U, /* '/Width' */ + 14U, /* '/Width' */ + 55U, /* '/Width' */ + 25U, /* '/Width' */ + 30U, /* '/Width' */ + 40U, /* '/Width' */ 68U, /* '/Width' */ 60U, /* '/Width' */ - 228U, /* '/Width' */ - 98U, /* '/Width' */ - 68U, /* '/Width' */ - 72U, /* '/Width' */ - 14U, /* '/Width' */ - 55U, /* '/Width' */ - 25U, /* '/Width' */ - 30U, /* '/Width' */ - 40U, /* '/Width' */ - 68U, /* '/Width' */ - 60U, /* '/Width' */ 1, /* '/Compare' */ /* Start of '/For_each_thrust1' */ @@ -123,32 +123,32 @@ const ConstB_cr929_SIL_T cr929_SIL_ConstB = { /* Block parameters (default storage) */ P_cr929_SIL_T cr929_SIL_P = { /* Variable: AccelBias - * Referenced by: '/Measurement bias' + * Referenced by: '/Measurement bias' */ { 0.0, 0.0, 0.0 }, /* Variable: AccelScaleMatrix - * Referenced by: '/Scale factors & Cross-coupling errors' + * Referenced by: '/Scale factors & Cross-coupling errors' */ { 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 }, /* Variable: GyroBias - * Referenced by: '/Measurement bias' + * Referenced by: '/Measurement bias' */ { 0.0, 0.0, 0.0 }, /* Variable: GyroGBias - * Referenced by: '/g-sensitive bias' + * Referenced by: '/g-sensitive bias' */ { 0.0, 0.0, 0.0 }, /* Variable: GyroScaleMatrix - * Referenced by: '/Scale factors & Cross-coupling errors ' + * Referenced by: '/Scale factors & Cross-coupling errors ' */ { 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 }, /* Variable: IMUloc - * Referenced by: '/wl_ins' + * Referenced by: '/wl_ins' */ { 0.0, 0.0, 0.0 }, @@ -174,39 +174,39 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: deadband_dsp * Referenced by: - * '/Backlash1' - * '/Backlash10' - * '/Backlash11' - * '/Backlash12' - * '/Backlash13' - * '/Backlash14' - * '/Backlash15' - * '/Backlash16' - * '/Backlash2' - * '/Backlash3' - * '/Backlash4' - * '/Backlash5' - * '/Backlash6' - * '/Backlash7' - * '/Backlash8' - * '/Backlash9' + * '/Backlash1' + * '/Backlash10' + * '/Backlash11' + * '/Backlash12' + * '/Backlash13' + * '/Backlash14' + * '/Backlash15' + * '/Backlash16' + * '/Backlash2' + * '/Backlash3' + * '/Backlash4' + * '/Backlash5' + * '/Backlash6' + * '/Backlash7' + * '/Backlash8' + * '/Backlash9' */ 0.0, /* Variable: map_rpm_lst * Referenced by: - * '/Constant1' * '/Constant1' * '/Constant1' + * '/Constant1' */ { 0.0, 20000.0, 26500.0, 33000.0, 39500.0, 44500.0, 49000.0, 52500.0, 54000.0, 56000.0, 57500.0, 62000.0 }, /* Variable: map_thr_lst * Referenced by: - * '/Constant' * '/Constant' * '/Constant' + * '/Constant' */ { -0.25, 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0 }, @@ -217,74 +217,80 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: throttle_k * Referenced by: - * '/Gain3' - * '/Gain3' + * '/Gain3' + * '/Gain3' */ 1.0, /* Variable: wind_east - * Referenced by: '/wind_East' + * Referenced by: '/wind_East' */ - { 0.0, 0.0 }, + { -3.0, -20.0 }, /* Variable: wind_level * Referenced by: - * '/wind_East' - * '/wind_North' + * '/wind_East' + * '/wind_North' */ - { 0.0, 300.0 }, + { 0.0, 600.0 }, /* Variable: wind_north - * Referenced by: '/wind_North' + * Referenced by: '/wind_North' */ - { -3.0, -7.0 }, + { 3.0, 20.0 }, /* Variable: CLa - * Referenced by: '/Constant Single1' + * Referenced by: '/Constant Single1' */ 3.5F, + /* Variable: Cf_lst + * Referenced by: '/1-D Lookup Table' + */ + { 0.0F, 0.0015F, 0.0030667F, 0.0041667F, 0.0050667F, 0.0059333F, 0.0068667F, + 0.0075667F, 0.0084667F, 0.009F, 0.0095333F, 0.010067F }, + /* Variable: Cl_lst - * Referenced by: '/Constant1' + * Referenced by: '/Constant1' */ { -0.052726F, -0.041769F, -0.030854F, -0.019996F, -0.013563F, -0.0098577F, -0.0030149F, 0.0F, 0.0030149F, 0.0098577F, 0.013563F, 0.019996F, 0.030854F, 0.041769F, 0.052726F }, /* Variable: Clda - * Referenced by: '/Constant10' + * Referenced by: '/Constant10' */ -0.06404F, /* Variable: Clda_mix * Referenced by: - * '/Constant9' - * '/Constant' + * '/Constant9' + * '/Constant' */ -0.1007F, /* Variable: Clp - * Referenced by: '/p2pdot' + * Referenced by: '/p2pdot' */ -0.2657F, /* Variable: Cmde - * Referenced by: '/de2qdot' + * Referenced by: '/de2qdot' */ -0.7347F, /* Variable: Cmq - * Referenced by: '/q2qdot' + * Referenced by: '/q2qdot' */ -13.4013F, /* Variable: Cndr - * Referenced by: '/dr2rdot' + * Referenced by: '/dr2rdot' */ -0.0624F, /* Variable: Cnr - * Referenced by: '/p2pdot1' + * Referenced by: '/p2pdot1' */ -0.34F, @@ -309,28 +315,30 @@ P_cr929_SIL_T cr929_SIL_P = { 20.0F, /* Variable: Ixx - * Referenced by: '/Constant6' + * Referenced by: '/Constant6' */ 13.4122F, /* Variable: Iyy - * Referenced by: '/Constant3' + * Referenced by: '/Constant3' */ 33.167F, /* Variable: Izz * Referenced by: - * '/Constant7' - * '/Gain2' + * '/Constant7' + * '/Gain2' */ 42.6268F, /* Variable: K * Referenced by: - * '/Constant' - * '/Constant1' - * '/Constant1' - * '/Constant2' + * '/Constant2' + * '/Gain' + * '/Constant' + * '/Constant1' + * '/Constant1' + * '/Constant2' */ 0.06F, @@ -342,31 +350,31 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: RefArea * Referenced by: * '/Constant Single50' - * '/Sc_Iyy' - * '/Sc_Iyy2' - * '/Sc_Iyy4' - * '/Constant Single2' + * '/Sc_Iyy' + * '/Sc_Iyy2' + * '/Sc_Iyy4' + * '/Constant Single2' */ 1.97876F, /* Variable: RefLen * Referenced by: - * '/Constant4' - * '/q2qdot' + * '/Constant4' + * '/q2qdot' */ 0.518F, /* Variable: RefSpan * Referenced by: - * '/Sc_Iyy1' - * '/Sc_Iyy3' - * '/p2pdot' - * '/p2pdot1' + * '/Sc_Iyy1' + * '/Sc_Iyy3' + * '/p2pdot' + * '/p2pdot1' */ 3.82F, /* Variable: STEER_POWER - * Referenced by: '/Gain2' + * Referenced by: '/Gain2' */ 80.0F, @@ -388,23 +396,13 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: ThrottleRate * Referenced by: '/Constant Single51' */ - 0.2F, + 0.25F, /* Variable: V1 * Referenced by: '/Constant Single27' */ 23.0F, - /* Variable: antistall_lock - * Referenced by: '/Constant4' - */ - 1500.0F, - - /* Variable: antistall_release - * Referenced by: '/Constant5' - */ - 1370.0F, - /* Variable: auto_gear_updown * Referenced by: '/Constant Single57' */ @@ -421,7 +419,7 @@ P_cr929_SIL_T cr929_SIL_P = { 1100.0F, /* Variable: cg_lst - * Referenced by: '/Constant1' + * Referenced by: '/Constant1' */ { 0.2254F, 0.2237F, 0.2173F, 0.2116F, 0.2062F, 0.201F, 0.1962F, 0.1915F, 0.1872F, 0.1826F, 0.1788F, 0.1739F, 0.1813F, 0.1922F, 0.2029F, 0.2134F, @@ -429,43 +427,43 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: da_list * Referenced by: - * '/da2dal_deg' - * '/da2dar_deg' - * '/da2dspl4_deg' - * '/da2dspl5_deg' - * '/da2dspl6_deg' - * '/da2dspl7_deg' - * '/da2dspl8_deg' - * '/da2dspr4_deg' - * '/da2dspr5_deg' - * '/da2dspr6_deg' - * '/da2dspr7_deg' - * '/da2dspr8_deg' + * '/da2dal_deg' + * '/da2dar_deg' + * '/da2dspl4_deg' + * '/da2dspl5_deg' + * '/da2dspl6_deg' + * '/da2dspl7_deg' + * '/da2dspl8_deg' + * '/da2dspr4_deg' + * '/da2dspr5_deg' + * '/da2dspr6_deg' + * '/da2dspr7_deg' + * '/da2dspr8_deg' */ { -30.0F, -24.0F, -18.0F, -15.0F, -12.0F, -6.0F, -3.0F, 0.0F, 3.0F, 6.0F, 12.0F, 15.0F, 18.0F, 24.0F, 30.0F }, /* Variable: da_list_unmix * Referenced by: - * '/da2dal_deg' - * '/da2dar_deg' + * '/da2dal_deg' + * '/da2dar_deg' */ { -30.0F, 0.0F, 30.0F }, /* Variable: da_lst - * Referenced by: '/Constant2' + * Referenced by: '/Constant2' */ { 0.5236F, 0.4188F, 0.3141F, 0.2094F, 0.1571F, 0.1309F, 0.0524F, 0.0F, -0.0524F, -0.1309F, -0.1571F, -0.2094F, -0.3141F, -0.4188F, -0.5236F }, /* Variable: dal_list - * Referenced by: '/da2dal_deg' + * Referenced by: '/da2dal_deg' */ { 20.0F, 16.8F, 13.6F, 12.0F, 10.4F, 7.2F, 3.8F, 0.0F, -5.7F, -10.8F, -15.6F, -18.0F, -20.4F, -25.2F, -30.0F }, /* Variable: dal_list_unmix - * Referenced by: '/da2dal_deg' + * Referenced by: '/da2dal_deg' */ { 20.0F, 0.0F, -30.0F }, @@ -477,68 +475,64 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: dal_pwm * Referenced by: '/1-D Lookup Table8' */ - { 1780.0F, 1528.0F, 1340.0F }, + { 1144.0F, 1548.0F, 1860.0F }, /* Variable: dar_list - * Referenced by: '/da2dar_deg' + * Referenced by: '/da2dar_deg' */ { -30.0F, -25.2F, -20.4F, -18.0F, -15.6F, -10.8F, -5.7F, 0.0F, 3.8F, 7.2F, 10.4F, 12.0F, 13.6F, 16.8F, 20.0F }, /* Variable: dar_list_unmix - * Referenced by: '/da2dar_deg' + * Referenced by: '/da2dar_deg' */ { -30.0F, 0.0F, 20.0F }, /* Variable: dar_pos - * Referenced by: - * '/Constant1' - * '/1-D Lookup Table3' + * Referenced by: '/1-D Lookup Table3' */ { -0.523599F, 0.0F, 0.349066287F }, /* Variable: dar_pwm - * Referenced by: - * '/Constant' - * '/1-D Lookup Table3' + * Referenced by: '/1-D Lookup Table3' */ - { 1210.0F, 1445.0F, 1633.0F }, + { 1808.0F, 1400.0F, 1096.0F }, /* Variable: ddf_c - * Referenced by: '/Constant6' + * Referenced by: '/Constant6' */ 0.0F, /* Variable: del_pos * Referenced by: '/1-D Lookup Table9' */ - { -0.53145349F, 0.0F, 0.443314254F }, + { -0.52356F, 0.0F, 0.436300188F }, /* Variable: del_pwm * Referenced by: '/1-D Lookup Table9' */ - { 1873.0F, 1500.0F, 1160.0F }, + { 1900.0F, 1532.0F, 1184.0F }, /* Variable: den_da2dr * Referenced by: - * '/Constant2' - * '/Constant2' + * '/Constant2' + * '/Constant2' */ { 1.0F, -0.993769467F }, /* Variable: der_pos * Referenced by: - * '/Constant1' + * '/Constant1' * '/1-D Lookup Table4' */ - { -0.534944F, 0.0F, 0.439823508F }, + { -0.52356F, 0.0F, 0.436300188F }, /* Variable: der_pwm * Referenced by: - * '/Constant' + * '/Constant' * '/1-D Lookup Table4' */ - { 1110.0F, 1500.0F, 1865.0F }, + { 1184.0F, 1564.0F, 1908.0F }, /* Variable: det_time * Referenced by: '/Constant' @@ -547,410 +541,424 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: dflap_ratelim * Referenced by: - * '/Constant2' - * '/Constant3' + * '/Constant2' + * '/Constant3' */ 0.1745F, /* Variable: dflii_pos * Referenced by: '/1-D Lookup Table13' */ - { 0.0F, 0.236474693F, 0.389179766F, 0.523560226F, 0.698080301F }, + { 0.0F, 0.226876095F, 0.383944213F, 0.523560226F, 0.698080301F }, /* Variable: dflii_pwm * Referenced by: '/1-D Lookup Table13' */ - { 1230.0F, 1448.0F, 1684.0F, 1815.0F, 2000.0F }, + { 1048.0F, 1400.0F, 1492.0F, 1640.0F, 1880.0F }, + + /* Variable: dflio_pos + * Referenced by: '/1-D Lookup Table17' + */ + { 0.0F, 0.226876095F, 0.383944213F, 0.523560226F, 0.698080301F }, + + /* Variable: dflio_pwm + * Referenced by: '/1-D Lookup Table17' + */ + { 1092.0F, 1228.0F, 1372.0F, 1524.0F, 1752.0F }, /* Variable: dflo2_pos * Referenced by: '/1-D Lookup Table15' */ - { 0.0F, 0.253926694F, 0.419720769F, 0.569808F, 0.760907531F }, + { 0.0F, 0.2481675F, 0.420069814F, 0.572774887F, 0.76369983F }, /* Variable: dflo2_pwm * Referenced by: '/1-D Lookup Table15' */ - { 1550.0F, 1645.0F, 1757.0F, 1895.0F, 2022.0F }, + { 1224.0F, 1336.0F, 1444.0F, 1548.0F, 1696.0F }, /* Variable: dflo_pos * Referenced by: '/1-D Lookup Table7' */ - { 0.0F, 0.253926694F, 0.419720769F, 0.569808F, 0.760907531F }, + { 0.0F, 0.2481675F, 0.420069814F, 0.572774887F, 0.76369983F }, /* Variable: dflo_pwm * Referenced by: '/1-D Lookup Table7' */ - { 1500.0F, 1315.0F, 1188.0F, 1110.0F, 872.0F }, + { 1804.0F, 1640.0F, 1528.0F, 1420.0F, 1268.0F }, /* Variable: dfrii_pos * Referenced by: '/1-D Lookup Table14' */ - { 0.0F, 0.233856887F, 0.392670155F, 0.534031391F, 0.703315854F }, + { 0.0F, 0.226876095F, 0.383944213F, 0.523560226F, 0.698080301F }, /* Variable: dfrii_pwm * Referenced by: '/1-D Lookup Table14' */ - { 2000.0F, 1800.0F, 1684.0F, 1420.0F, 1200.0F }, + { 1876.0F, 1612.0F, 1360.0F, 1192.0F, 1080.0F }, /* Variable: dfrio_pos * Referenced by: '/1-D Lookup Table10' */ - { 0.0F, 0.233856887F, 0.392670155F, 0.534031391F, 0.703315854F }, + { 0.0F, 0.226876095F, 0.383944213F, 0.523560226F, 0.698080301F }, /* Variable: dfrio_pwm * Referenced by: '/1-D Lookup Table10' */ - { 1875.0F, 1725.0F, 1575.0F, 1420.0F, 1050.0F }, + { 1956.0F, 1788.0F, 1652.0F, 1504.0F, 1284.0F }, /* Variable: dfro2_pos * Referenced by: '/1-D Lookup Table16' */ - { 0.0F, 0.248691097F, 0.418848157F, 0.573298454F, 0.767015696F }, + { 0.0F, 0.2481675F, 0.420069814F, 0.572774887F, 0.76369983F }, /* Variable: dfro2_pwm * Referenced by: '/1-D Lookup Table16' */ - { 1450.0F, 1284.0F, 1188.0F, 1085.0F, 893.0F }, + { 1772.0F, 1664.0F, 1500.0F, 1372.0F, 1228.0F }, /* Variable: dfro_pos * Referenced by: '/1-D Lookup Table11' */ - { 0.0F, 0.248691097F, 0.418848157F, 0.573298454F, 0.767015696F }, + { 0.0F, 0.2481675F, 0.420069814F, 0.572774887F, 0.76369983F }, /* Variable: dfro_pwm * Referenced by: '/1-D Lookup Table11' */ - { 1515.0F, 1628.0F, 1757.0F, 1870.0F, 2057.0F }, + { 1168.0F, 1324.0F, 1436.0F, 1528.0F, 1676.0F }, - /* Variable: dh_pos - * Referenced by: - * '/Constant1' - * '/1-D Lookup Table5' + /* Variable: dhl_pos + * Referenced by: '/1-D Lookup Table12' */ - { -0.244346425F, 0.0F, 0.050593F }, + { -0.24433F, 0.0F, 0.034904F, 0.052356F }, - /* Variable: dh_pwm - * Referenced by: - * '/Constant' - * '/1-D Lookup Table5' + /* Variable: dhl_pwm + * Referenced by: '/1-D Lookup Table12' */ - { 1088.0F, 1608.0F, 1768.0F }, + { 1964.0F, 1332.0F, 1220.0F, 1160.0F }, + + /* Variable: dhr_pos + * Referenced by: '/1-D Lookup Table5' + */ + { -0.24433F, 0.0F, 0.034904F, 0.052356F }, + + /* Variable: dhr_pwm + * Referenced by: '/1-D Lookup Table5' + */ + { 1036.0F, 1660.0F, 1780.0F, 1836.0F }, /* Variable: dht_ratelim - * Referenced by: '/Constant4' + * Referenced by: '/Constant4' */ 0.0175F, /* Variable: dr0_c - * Referenced by: '/Constant' + * Referenced by: '/Constant' */ 0.0F, /* Variable: dr_trim - * Referenced by: '/Constant7' + * Referenced by: '/Constant7' */ 0.0F, /* Variable: drd_pos * Referenced by: '/1-D Lookup Table' */ - { -0.610865355F, 0.0F, 0.610865355F }, + { -0.61082F, 0.0F, 0.610820174F }, /* Variable: drd_pwm * Referenced by: '/1-D Lookup Table' */ - { 1864.0F, 1492.0F, 1068.0F }, + { 1856.0F, 1504.0F, 1128.0F }, /* Variable: dru_pos * Referenced by: '/1-D Lookup Table6' */ - { -0.610865355F, 0.0F, 0.610865355F }, + { -0.61082F, 0.0F, 0.610820174F }, /* Variable: dru_pwm * Referenced by: '/1-D Lookup Table6' */ - { 1864.0F, 1475.0F, 1082.0F }, + { 1804.0F, 1496.0F, 1228.0F }, /* Variable: dsp_ratelim * Referenced by: - * '/Constant' - * '/Constant1' + * '/Constant' + * '/Constant1' */ 0.0582F, /* Variable: dspl4_list - * Referenced by: '/da2dspl4_deg' + * Referenced by: '/da2dspl4_deg' */ { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, -3.6F, -5.6F, -8.1F, -14.4F, -22.5F }, /* Variable: dspl5_list - * Referenced by: '/da2dspl5_deg' + * Referenced by: '/da2dspl5_deg' */ { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, -3.6F, -5.6F, -8.1F, -14.4F, -22.5F }, /* Variable: dspl6_list - * Referenced by: '/da2dspl6_deg' + * Referenced by: '/da2dspl6_deg' */ { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, -4.1F, -6.4F, -9.2F, -16.3F, -25.5F }, /* Variable: dspl7_list - * Referenced by: '/da2dspl7_deg' + * Referenced by: '/da2dspl7_deg' */ { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, -4.1F, -6.4F, -9.2F, -16.3F, -25.5F }, /* Variable: dspl8_list - * Referenced by: '/da2dspl8_deg' + * Referenced by: '/da2dspl8_deg' */ { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, -4.8F, -7.5F, -10.8F, -19.2F, -30.0F }, /* Variable: dspli1_pos - * Referenced by: '/1-D Lookup Table' + * Referenced by: + * '/1-D Lookup Table' + * '/Constant1' */ - { -0.87F, 0.0F, 0.19F }, + { -0.87F, 0.0F, 0.07F, 0.12F, 0.13F, 0.19F }, /* Variable: dspli1_pwm - * Referenced by: '/1-D Lookup Table' + * Referenced by: + * '/1-D Lookup Table' + * '/Constant' */ - { 1680.0F, 1240.0F, 1150.0F }, + { 1292.0F, 1728.0F, 1768.0F, 1784.0F, 1788.0F, 1800.0F }, /* Variable: dspli2_pos * Referenced by: '/1-D Lookup Table1' */ - { -0.87F, 0.0F, 0.19F }, + { -0.87F, 0.0F, 0.07F, 0.12F, 0.13F, 0.19F }, /* Variable: dspli2_pwm * Referenced by: '/1-D Lookup Table1' */ - { 1650.0F, 1263.0F, 1202.0F }, + { 1804.0F, 1356.0F, 1332.0F, 1312.0F, 1304.0F, 1280.0F }, /* Variable: dspli3_pos * Referenced by: '/1-D Lookup Table2' */ - { -0.87F, 0.0F, 0.19F }, + { -0.87F, 0.0F, 0.07F, 0.12F, 0.13F, 0.19F }, /* Variable: dspli3_pwm * Referenced by: '/1-D Lookup Table2' */ - { 1674.0F, 1253.0F, 1188.0F }, + { 1828.0F, 1356.0F, 1336.0F, 1312.0F, 1304.0F, 1288.0F }, /* Variable: dsplo1_pos * Referenced by: '/1-D Lookup Table6' */ - { -0.87F, 0.0F, 0.21F }, + { -0.87F, 0.0F, 0.08F, 0.13F, 0.15F, 0.21F }, /* Variable: dsplo1_pwm * Referenced by: '/1-D Lookup Table6' */ - { 1915.0F, 1355.0F, 1190.0F }, + { 1980.0F, 1440.0F, 1384.0F, 1344.0F, 1340.0F, 1304.0F }, /* Variable: dsplo2_pos * Referenced by: * '/1-D Lookup Table7' - * '/Constant1' + * '/Constant1' */ - { -0.87F, 0.0F, 0.21F }, + { -0.87F, 0.0F, 0.08F, 0.13F, 0.15F, 0.21F }, /* Variable: dsplo2_pwm * Referenced by: * '/1-D Lookup Table7' - * '/Constant' + * '/Constant' */ - { 1230.0F, 1690.0F, 1794.0F }, + { 1148.0F, 1632.0F, 1676.0F, 1704.0F, 1708.0F, 1736.0F }, /* Variable: dsplo3_pos * Referenced by: '/1-D Lookup Table8' */ - { -0.87F, 0.0F, 0.21F }, + { -0.87F, 0.0F, 0.08F, 0.13F, 0.15F, 0.21F }, /* Variable: dsplo3_pwm * Referenced by: '/1-D Lookup Table8' */ - { 1734.0F, 1300.0F, 1180.0F }, + { 1948.0F, 1464.0F, 1420.0F, 1396.0F, 1388.0F, 1356.0F }, /* Variable: dsplo4_pos * Referenced by: '/1-D Lookup Table9' */ - { -0.87F, 0.0F, 0.21F }, + { -0.87F, 0.0F, 0.08F, 0.13F, 0.15F, 0.21F }, /* Variable: dsplo4_pwm * Referenced by: '/1-D Lookup Table9' */ - { 1780.0F, 1264.0F, 1132.0F }, + { 1952.0F, 1448.0F, 1400.0F, 1372.0F, 1368.0F, 1324.0F }, /* Variable: dsplo5_pos * Referenced by: * '/1-D Lookup Table10' - * '/Constant1' + * '/Constant1' */ - { -0.87F, 0.0F, 0.21F }, + { -0.87F, 0.0F, 0.08F, 0.13F, 0.15F, 0.21F }, /* Variable: dsplo5_pwm * Referenced by: * '/1-D Lookup Table10' - * '/Constant' + * '/Constant' */ - { 1200.0F, 1798.0F, 1935.0F }, + { 1164.0F, 1696.0F, 1748.0F, 1784.0F, 1800.0F, 1832.0F }, /* Variable: dspr4_list - * Referenced by: '/da2dspr4_deg' + * Referenced by: '/da2dspr4_deg' */ { -22.5F, -14.4F, -8.1F, -5.625F, -3.6F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, /* Variable: dspr5_list - * Referenced by: '/da2dspr5_deg' + * Referenced by: '/da2dspr5_deg' */ { -22.5F, -14.4F, -8.1F, -5.625F, -3.6F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, /* Variable: dspr6_list - * Referenced by: '/da2dspr6_deg' + * Referenced by: '/da2dspr6_deg' */ { -25.5F, -16.32F, -9.18F, -6.375F, -4.08F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, /* Variable: dspr7_list - * Referenced by: '/da2dspr7_deg' + * Referenced by: '/da2dspr7_deg' */ { -25.5F, -16.32F, -9.18F, -6.375F, -4.08F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, /* Variable: dspr8_list - * Referenced by: '/da2dspr8_deg' + * Referenced by: '/da2dspr8_deg' */ { -30.0F, -19.2F, -10.8F, -7.5F, -4.8F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, /* Variable: dspri1_pos - * Referenced by: - * '/1-D Lookup Table3' - * '/Constant1' + * Referenced by: '/1-D Lookup Table3' */ - { -0.87F, 0.0F, 0.19F }, + { -0.87F, 0.0F, 0.07F, 0.12F, 0.13F, 0.19F }, /* Variable: dspri1_pwm - * Referenced by: - * '/1-D Lookup Table3' - * '/Constant' + * Referenced by: '/1-D Lookup Table3' */ - { 1276.0F, 1707.0F, 1797.0F }, + { 1780.0F, 1340.0F, 1316.0F, 1292.0F, 1280.0F, 1276.0F }, /* Variable: dspri2_pos * Referenced by: * '/1-D Lookup Table4' - * '/Constant1' + * '/Constant1' */ - { -0.87F, 0.0F, 0.19F }, + { -0.87F, 0.0F, 0.07F, 0.12F, 0.13F, 0.19F }, /* Variable: dspri2_pwm * Referenced by: * '/1-D Lookup Table4' - * '/Constant' + * '/Constant' */ - { 1316.0F, 1733.0F, 1829.0F }, + { 1308.0F, 1792.0F, 1820.0F, 1840.0F, 1844.0F, 1868.0F }, /* Variable: dspri3_pos * Referenced by: * '/1-D Lookup Table5' - * '/Constant1' + * '/Constant1' */ - { -0.87F, 0.0F, 0.19F }, + { -0.87F, 0.0F, 0.07F, 0.12F, 0.13F, 0.19F }, /* Variable: dspri3_pwm * Referenced by: * '/1-D Lookup Table5' - * '/Constant' + * '/Constant' */ - { 1350.0F, 1786.0F, 1890.0F }, + { 1304.0F, 1740.0F, 1760.0F, 1772.0F, 1776.0F, 1780.0F }, /* Variable: dspro1_pos * Referenced by: * '/1-D Lookup Table12' - * '/Constant1' + * '/Constant1' */ - { -0.87F, 0.0F, 0.21F }, + { -0.87F, 0.0F, 0.08F, 0.13F, 0.15F, 0.21F }, /* Variable: dspro1_pwm * Referenced by: * '/1-D Lookup Table12' - * '/Constant' + * '/Constant' */ - { 1315.0F, 1695.0F, 1821.0F }, + { 1164.0F, 1728.0F, 1792.0F, 1834.0F, 1852.0F, 1895.0F }, /* Variable: dspro2_pos * Referenced by: '/1-D Lookup Table13' */ - { -0.87F, 0.0F, 0.21F }, + { -0.87F, 0.0F, 0.08F, 0.13F, 0.15F, 0.21F }, /* Variable: dspro2_pwm * Referenced by: '/1-D Lookup Table13' */ - { 1806.0F, 1261.0F, 1080.0F }, + { 1848.0F, 1344.0F, 1304.0F, 1280.0F, 1272.0F, 1252.0F }, /* Variable: dspro3_pos * Referenced by: * '/1-D Lookup Table14' - * '/Constant1' + * '/Constant1' */ - { -0.87F, 0.0F, 0.21F }, + { -0.87F, 0.0F, 0.08F, 0.13F, 0.15F, 0.21F }, /* Variable: dspro3_pwm * Referenced by: * '/1-D Lookup Table14' - * '/Constant' + * '/Constant' */ - { 1165.0F, 1655.0F, 1770.0F }, + { 1132.0F, 1636.0F, 1684.0F, 1716.0F, 1724.0F, 1752.0F }, /* Variable: dspro4_pos * Referenced by: * '/1-D Lookup Table15' - * '/Constant1' + * '/Constant1' */ - { -0.87F, 0.0F, 0.21F }, + { -0.87F, 0.0F, 0.08F, 0.13F, 0.15F, 0.21F }, /* Variable: dspro4_pwm * Referenced by: * '/1-D Lookup Table15' - * '/Constant' + * '/Constant' */ - { 1195.0F, 1735.0F, 1862.0F }, + { 1112.0F, 1664.0F, 1708.0F, 1748.0F, 1764.0F, 1796.0F }, /* Variable: dspro5_pos * Referenced by: '/1-D Lookup Table11' */ - { -0.87F, 0.0F, 0.21F }, + { -0.87F, 0.0F, 0.08F, 0.13F, 0.15F, 0.21F }, /* Variable: dspro5_pwm * Referenced by: '/1-D Lookup Table11' */ - { 1853.0F, 1277.0F, 1135.0F }, + { 1860.0F, 1288.0F, 1236.0F, 1204.0F, 1192.0F, 1152.0F }, /* Variable: flap_level - * Referenced by: - * '/Constant2' - * '/Constant2' + * Referenced by: '/Constant2' */ 3.0F, /* Variable: force_thrl - * Referenced by: '/Constant' + * Referenced by: '/Constant' */ -1.0F, /* Variable: force_thrr - * Referenced by: '/Constant' + * Referenced by: '/Constant' */ -1.0F, /* Variable: k_da2dr * Referenced by: - * '/Constant' - * '/Constant' + * '/Constant' + * '/Constant' */ 0.2F, @@ -985,24 +993,24 @@ P_cr929_SIL_T cr929_SIL_P = { 1.5F, /* Variable: ksi_v2tht - * Referenced by: '/Constant1' + * Referenced by: '/Constant1' */ 0.8F, /* Variable: kthr_r - * Referenced by: '/gain' + * Referenced by: '/gain' */ 1.0F, /* Variable: lever_time - * Referenced by: '/Constant5' + * Referenced by: '/Constant5' */ 3.0F, /* Variable: m * Referenced by: * '/Constant Single4' - * '/Constant Single' + * '/Constant Single' */ 71.59F, @@ -1017,7 +1025,7 @@ P_cr929_SIL_T cr929_SIL_P = { 0.1745F, /* Variable: mass_lst - * Referenced by: '/Constant' + * Referenced by: '/Constant' */ { 52.69F, 53.64F, 54.66F, 55.66F, 56.66F, 57.66F, 58.66F, 59.66F, 60.66F, 61.66F, 62.65F, 63.67F, 64.67F, 65.66F, 66.67F, 67.68F, 68.67F, 69.69F, @@ -1041,7 +1049,7 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: max_da * Referenced by: * '/Constant Single1' - * '/Constant8' + * '/Constant8' * '/gain1' * '/gain1' * '/gain1' @@ -1051,12 +1059,13 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: max_de * Referenced by: * '/Constant Single2' - * '/Constant1' + * '/Constant1' */ 0.436300188F, /* Variable: max_dh * Referenced by: + * '/Constant1' * '/gain7' * '/gain7' */ @@ -1065,7 +1074,7 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: max_dr * Referenced by: * '/Constant Single5' - * '/Constant2' + * '/Constant2' * '/gain2' * '/gain2' * '/gain2' @@ -1073,7 +1082,7 @@ P_cr929_SIL_T cr929_SIL_P = { 0.5236F, /* Variable: max_dr_damping - * Referenced by: '/Constant' + * Referenced by: '/Constant' */ 0.1309F, @@ -1082,7 +1091,7 @@ P_cr929_SIL_T cr929_SIL_P = { * '/gain5' * '/gain5' */ - 0.0F, + 0.2F, /* Variable: max_hdot * Referenced by: '/Constant Single13' @@ -1113,7 +1122,7 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: max_steer * Referenced by: - * '/Constant' + * '/Constant' * '/gain3' * '/gain3' * '/gain3' @@ -1155,19 +1164,20 @@ P_cr929_SIL_T cr929_SIL_P = { * Referenced by: * '/Constant Single55' * '/Constant' - * '/Constant' + * '/Constant' */ 25.0F, /* Variable: min_de * Referenced by: * '/Constant Single3' - * '/Constant5' + * '/Constant5' */ -0.523560226F, /* Variable: min_dh * Referenced by: + * '/Constant3' * '/gain8' * '/gain8' */ @@ -1197,48 +1207,53 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: num_da2dr * Referenced by: - * '/Constant1' - * '/Constant1' + * '/Constant1' + * '/Constant1' */ { 0.0F, 0.00623050937F }, /* Variable: parachute_lock * Referenced by: '/Constant2' */ - 1500.0F, + 1560.0F, /* Variable: parachute_release * Referenced by: '/Constant3' */ - 1250.0F, + 1360.0F, /* Variable: phic2dr - * Referenced by: '/gain2' + * Referenced by: '/gain2' */ 0.0F, /* Variable: steer_pos * Referenced by: - * '/Constant1' + * '/Constant1' * '/1-D Lookup Table' */ { -0.35F, 0.0F, 0.35F }, /* Variable: steer_pwm * Referenced by: - * '/Constant' + * '/Constant' * '/1-D Lookup Table' */ - { 1280.0F, 1483.0F, 1764.0F }, + { 1152.0F, 1500.0F, 1884.0F }, /* Variable: taxi_de * Referenced by: '/Constant Single36' */ 0.1F, + /* Variable: thr_lst + * Referenced by: '/1-D Lookup Table' + */ + { -0.25F, 0.0F, 0.1F, 0.2F, 0.3F, 0.4F, 0.5F, 0.6F, 0.7F, 0.8F, 0.9F, 1.0F }, + /* Variable: thr_pos * Referenced by: - * '/Constant1' + * '/Constant1' * '/1-D Lookup Table1' * '/1-D Lookup Table2' */ @@ -1246,11 +1261,11 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: thr_pwm * Referenced by: - * '/Constant' + * '/Constant' * '/1-D Lookup Table1' * '/1-D Lookup Table2' */ - { 976.0F, 1224.0F, 1940.0F }, + { 976.0F, 1232.0F, 1940.0F }, /* Variable: w_as * Referenced by: '/Constant Single21' @@ -1278,7 +1293,7 @@ P_cr929_SIL_T cr929_SIL_P = { 0.25F, /* Variable: w_v2tht - * Referenced by: '/Constant' + * Referenced by: '/Constant' */ 0.4F, @@ -1327,18 +1342,18 @@ P_cr929_SIL_T cr929_SIL_P = { /* Variable: system_id * Referenced by: * '/Constant' - * '/system_id' - * '/Chart_proc_mission_clr_all' - * '/Chart' - * '/Chart' - * '/Chart_proc_mission_req' - * '/Chart_proc_mission_req_lst' - * '/Chart' - * '/Chart' - * '/Chart_proc_param_req_read' - * '/Chart_proc_param_set' - * '/system_id' - * '/system_id' + * '/system_id' + * '/Chart_proc_mission_clr_all' + * '/Chart' + * '/Chart' + * '/Chart_proc_mission_req' + * '/Chart_proc_mission_req_lst' + * '/Chart' + * '/Chart' + * '/Chart_proc_param_req_read' + * '/Chart_proc_param_set' + * '/system_id' + * '/system_id' */ 1U, @@ -1368,161 +1383,161 @@ const ConstP_cr929_SIL_T cr929_SIL_ConstP = { { 0.0F, 5.0F, 0.0F, 0.0F, 26.0F }, - { 407053922, 1102404071 } - }, { 3U, - 16U, - 1U, - - { 0.0F, 50.0F, 500.0F, 0.0F, 180.0F }, - - { 407188758, 1102214677 } + { 407053922, 1102403535 } }, { 3U, 16U, 1U, { 0.0F, 50.0F, 500.0F, 0.0F, 260.0F }, - { 407289165, 1102342767 } - }, { 3U, - 16U, - 1U, - - { 0.0F, 0.0F, 0.0F, 0.0F, 300.0F }, - - { 407209922, 1102455614 } + { 407218910, 1102170897 } }, { 3U, 16U, 1U, { 0.0F, 50.0F, 500.0F, 0.0F, 300.0F }, - { 406844079, 1102968530 } + { 407298444, 1102274364 } }, { 3U, 16U, 1U, - { 0.0F, 50.0F, 500.0F, 0.0F, 300.0F }, + { 0.0F, 0.0F, 0.0F, 0.0F, 500.0F }, - { 406737965, 1102839267 } + { 407155081, 1102478058 } }, { 3U, 16U, 1U, - { 0.0F, 50.0F, 500.0F, 0.0F, 300.0F }, + { 0.0F, 50.0F, 500.0F, 0.0F, 500.0F }, - { 407150439, 1102236710 } + { 407119987, 1102527913 } }, { 3U, 16U, 1U, - { 0.0F, 50.0F, 500.0F, 0.0F, 200.0F }, + { 0.0F, 50.0F, 500.0F, 0.0F, 500.0F }, - { 407303452, 1102424046 } + { 406957535, 1102322740 } }, { 3U, 16U, 1U, - { 0.0F, 50.0F, 500.0F, 0.0F, 50.0F }, + { 0.0F, 50.0F, 500.0F, 0.0F, 500.0F }, - { 407056010, 1102774456 } + { 407174253, 1102238179 } }, { 3U, 16U, 1U, - { 0.0F, 50.0F, 500.0F, 0.0F, 80.0F }, + { 0.0F, 50.0F, 500.0F, 0.0F, 500.0F }, - { 406923814, 1102592420 } + { 407119332, 1102528219 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 50.0F, 500.0F, 0.0F, 500.0F }, + + { 406957591, 1102322697 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 50.0F, 500.0F, 0.0F, 500.0F }, + + { 407181511, 1102235332 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 50.0F, 500.0F, 0.0F, 500.0F }, + + { 407258448, 1102331272 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 50.0F, 500.0F, 0.0F, 500.0F }, + + { 407113395, 1102537311 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 50.0F, 500.0F, 0.0F, 500.0F }, + + { 407023045, 1102421852 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 50.0F, 500.0F, 0.0F, 500.0F }, + + { 407171027, 1102222216 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 50.0F, 500.0F, 0.0F, 500.0F }, + + { 407254364, 1102326207 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 50.0F, 500.0F, 0.0F, 500.0F }, + + { 407104292, 1102542201 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 50.0F, 500.0F, 0.0F, 500.0F }, + + { 407017642, 1102428989 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 0.0F, 0.0F, 0.0F, 500.0F }, + + { 407069013, 1102360207 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 50.0F, 500.0F, 0.0F, 400.0F }, + + { 407195698, 1102188607 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 50.0F, 500.0F, 0.0F, 350.0F }, + + { 407285129, 1102304514 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 50.0F, 500.0F, 0.0F, 140.0F }, + + { 407034069, 1102659457 } + }, { 3U, + 16U, + 1U, + + { 0.0F, 50.0F, 500.0F, 0.0F, 70.0F }, + + { 406941507, 1102561626 } }, { 3U, 21U, 1U, { 15.0F, 0.0F, 0.0F, 0.0F, 0.0F }, - { 407043586, 1102418525 } - }, { 0U, - 0U, - 0U, - - { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, - - { 0, 0 } - }, { 0U, - 0U, - 0U, - - { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, - - { 0, 0 } - }, { 0U, - 0U, - 0U, - - { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, - - { 0, 0 } - }, { 0U, - 0U, - 0U, - - { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, - - { 0, 0 } - }, { 0U, - 0U, - 0U, - - { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, - - { 0, 0 } - }, { 0U, - 0U, - 0U, - - { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, - - { 0, 0 } - }, { 0U, - 0U, - 0U, - - { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, - - { 0, 0 } - }, { 0U, - 0U, - 0U, - - { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, - - { 0, 0 } - }, { 0U, - 0U, - 0U, - - { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, - - { 0, 0 } - }, { 0U, - 0U, - 0U, - - { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, - - { 0, 0 } - }, { 0U, - 0U, - 0U, - - { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, - - { 0, 0 } - }, { 0U, - 0U, - 0U, - - { 0.0F, 0.0F, 0.0F, 0.0F, 0.0F }, - - { 0, 0 } + { 407040588, 1102422539 } }, { 0U, 0U, 0U, diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_private.h b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_private.h index f70ccc6..5fb52d0 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_private.h +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_private.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1344 + * Model version : 1.1390 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Sat Aug 21 08:51:18 2021 + * C/C++ source code generated on : Mon Aug 23 14:30:11 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -209,9 +209,10 @@ extern const real_T rtCP_pooled_UvwuqQRWw9Dw[5]; extern const real_T rtCP_pooled_0fCYkHhbuGI9[5]; extern const real_T rtCP_pooled_Zywj2swThaim[45]; extern const real_T rtCP_pooled_NL31GtRzAVYK[6]; -extern const real_T rtCP_pooled_JfKJj6nnxcqs[12]; +extern const real_T rtCP_pooled_I8SX1eLdDjwL[12]; extern const real_T rtCP_pooled_ZX3KkxNJFhxv[12]; -extern const real_T rtCP_pooled_CQtxPd0XqXLJ[12]; +extern const real_T rtCP_pooled_qDmF6dtcrNa4[12]; +extern const real_T rtCP_pooled_9cN5WSKdIBCs[12]; extern const real_T rtCP_pooled_naFIDYb7Xb5a[23]; extern const real32_T rtCP_pooled_YWBHDIY0QDCr[3]; extern const real32_T rtCP_pooled_66xenhVBYvvw[3]; @@ -225,20 +226,22 @@ extern const real32_T rtCP_pooled_0BwgFckvyiIM[3]; extern const real32_T rtCP_pooled_vpZBO0efDb68[3]; extern const real32_T rtCP_pooled_1VJA2wyEDXXd[4]; extern const real32_T rtCP_pooled_0WDnDJ93CH0Q[4]; -extern const real32_T rtCP_pooled_AHqoT7GPKnWM[2]; -extern const real32_T rtCP_pooled_Z1Q1gQLg0UoS[2]; -extern const real32_T rtCP_pooled_624epNsmwKQi[3]; -extern const real32_T rtCP_pooled_iSTqwEAGtzfV[3]; -extern const real32_T rtCP_pooled_kLKq4FtUzD7N[3]; -extern const real32_T rtCP_pooled_jV6n29Q84TG0[3]; -extern const real32_T rtCP_pooled_1PPMDmLsqDxb[3]; -extern const real32_T rtCP_pooled_ZDneGvvw4afb[3]; -extern const real32_T rtCP_pooled_kOOll4uMqbLh[3]; -extern const real32_T rtCP_pooled_6dfekq9JrKtj[3]; -extern const real32_T rtCP_pooled_IC39YoX64FX2[3]; -extern const real32_T rtCP_pooled_g7rGnKyrV2o9[3]; -extern const real32_T rtCP_pooled_BqjeeNpsfvfO[3]; -extern const real32_T rtCP_pooled_2WU07mlIko7H[3]; +extern const real32_T rtCP_pooled_uQzioJKpBuGn[4]; +extern const real32_T rtCP_pooled_cQRpYPC1d9LW[4]; +extern const real32_T rtCP_pooled_7duMbVdalzaf[6]; +extern const real32_T rtCP_pooled_O03r7Rz5WVK1[6]; +extern const real32_T rtCP_pooled_7Izcocv9OPc8[6]; +extern const real32_T rtCP_pooled_Wr4VW5y4SM5V[6]; +extern const real32_T rtCP_pooled_E0aOZ8k6B0em[6]; +extern const real32_T rtCP_pooled_zfDJ0XRgmnCd[6]; +extern const real32_T rtCP_pooled_fUoWDoOYMOrz[6]; +extern const real32_T rtCP_pooled_72gxvpYzsJYj[6]; +extern const real32_T rtCP_pooled_tKJB3E1t694Z[6]; +extern const real32_T rtCP_pooled_WevH9zpym91w[6]; +extern const real32_T rtCP_pooled_j6BLsTdMk7qD[3]; +extern const real32_T rtCP_pooled_yWVMTaHackMS[3]; +extern const real32_T rtCP_pooled_rYM1L1wOm55A[3]; +extern const real32_T rtCP_pooled_H5asl5rOUZUB[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]; @@ -266,10 +269,10 @@ extern const uint8_T rtCP_pooled_mDbfc7f8L4g9; * Referenced by: '/Constant' */ #define rtCP_PreLookUpIndexSearchaltitude_BreakpointsData rtCP_pooled_8RBKE3gHchpO/* Expression: h_vec - * Referenced by: '/PreLook-Up Index Search (altitude)' + * Referenced by: '/PreLook-Up Index Search (altitude)' */ #define rtCP_MediumHighAltitudeIntensity_Table rtCP_pooled_xcOBkYu90x0b/* Expression: sigma_vec' - * Referenced by: '/Medium//High Altitude Intensity' + * Referenced by: '/Medium//High Altitude Intensity' */ #define rtCP_Gain1_Gain_my rtCP_pooled_bDcwUj8yZ6yU /* Expression: [1 1 -1] * Referenced by: '/Gain1' @@ -1441,25 +1444,25 @@ extern const uint8_T rtCP_pooled_mDbfc7f8L4g9; #define rtCP_table2D_Cndr_df_bp02Data rtCP_pooled_B7yC4XFkeXsv /* Expression: cr929_aerodynamics_mdl.indep_flap_lever * Referenced by: '/table2D_Cndr_df' */ -#define rtCP_table1D_thrust_kgf_tableData rtCP_pooled_JfKJj6nnxcqs/* Expression: cr929_propulsion_l_mdl.tab_thrust_kgf +#define rtCP_table1D_thrust_kgf_tableData rtCP_pooled_I8SX1eLdDjwL/* Expression: cr929_propulsion_l_mdl.tab_thrust_kgf * Referenced by: '/table1D_thrust_kgf' */ #define rtCP_table1D_thrust_kgf_bp01Data rtCP_pooled_ZX3KkxNJFhxv/* Expression: cr929_propulsion_l_mdl.indep_throttle * Referenced by: '/table1D_thrust_kgf' */ -#define rtCP_table1D_fuelrate_tableData rtCP_pooled_CQtxPd0XqXLJ /* Expression: cr929_propulsion_l_mdl.tab_fuelrate +#define rtCP_table1D_fuelrate_tableData rtCP_pooled_qDmF6dtcrNa4 /* Expression: cr929_propulsion_l_mdl.tab_fuelrate * Referenced by: '/table1D_fuelrate' */ #define rtCP_table1D_fuelrate_bp01Data rtCP_pooled_ZX3KkxNJFhxv /* Expression: cr929_propulsion_l_mdl.indep_throttle * Referenced by: '/table1D_fuelrate' */ -#define rtCP_table1D_thrust_kgf_tableData_n rtCP_pooled_JfKJj6nnxcqs/* Expression: cr929_propulsion_r_mdl.tab_thrust_kgf +#define rtCP_table1D_thrust_kgf_tableData_n rtCP_pooled_9cN5WSKdIBCs/* Expression: cr929_propulsion_r_mdl.tab_thrust_kgf * Referenced by: '/table1D_thrust_kgf' */ #define rtCP_table1D_thrust_kgf_bp01Data_n rtCP_pooled_ZX3KkxNJFhxv/* Expression: cr929_propulsion_r_mdl.indep_throttle * Referenced by: '/table1D_thrust_kgf' */ -#define rtCP_table1D_fuelrate_tableData_g rtCP_pooled_CQtxPd0XqXLJ/* Expression: cr929_propulsion_r_mdl.tab_fuelrate +#define rtCP_table1D_fuelrate_tableData_g rtCP_pooled_qDmF6dtcrNa4/* Expression: cr929_propulsion_r_mdl.tab_fuelrate * Referenced by: '/table1D_fuelrate' */ #define rtCP_table1D_fuelrate_bp01Data_c rtCP_pooled_ZX3KkxNJFhxv/* Expression: cr929_propulsion_r_mdl.indep_throttle @@ -1487,97 +1490,103 @@ extern const uint8_T rtCP_pooled_mDbfc7f8L4g9; * Referenced by: '/1-D Lookup Table' */ #define rtCP_uDLookupTable_tableData_f rtCP_pooled_azjKpWdkfSvW /* Computed Parameter: rtCP_uDLookupTable_tableData_f - * Referenced by: '/1-D Lookup Table' + * Referenced by: '/1-D Lookup Table' */ #define rtCP_uDLookupTable_bp01Data_m rtCP_pooled_FZlVOXiDrkG5 /* Computed Parameter: rtCP_uDLookupTable_bp01Data_m - * Referenced by: '/1-D Lookup Table' + * Referenced by: '/1-D Lookup Table' */ #define rtCP_uDLookupTable1_tableData rtCP_pooled_HF8NWw8ahBZB /* Computed Parameter: rtCP_uDLookupTable1_tableData - * Referenced by: '/1-D Lookup Table1' + * Referenced by: '/1-D Lookup Table1' */ #define rtCP_uDLookupTable1_bp01Data rtCP_pooled_NsfoROSYwB8n /* Computed Parameter: rtCP_uDLookupTable1_bp01Data - * Referenced by: '/1-D Lookup Table1' + * Referenced by: '/1-D Lookup Table1' */ #define rtCP_uDLookupTable2_tableData rtCP_pooled_8WXHatNAaNXU /* Computed Parameter: rtCP_uDLookupTable2_tableData - * Referenced by: '/1-D Lookup Table2' + * Referenced by: '/1-D Lookup Table2' */ #define rtCP_uDLookupTable2_bp01Data rtCP_pooled_3U8YQv20XtcC /* Computed Parameter: rtCP_uDLookupTable2_bp01Data - * Referenced by: '/1-D Lookup Table2' + * Referenced by: '/1-D Lookup Table2' */ #define rtCP_uDLookupTable4_tableData rtCP_pooled_0BwgFckvyiIM /* Computed Parameter: rtCP_uDLookupTable4_tableData - * Referenced by: '/1-D Lookup Table4' + * Referenced by: '/1-D Lookup Table4' */ #define rtCP_uDLookupTable4_bp01Data rtCP_pooled_vpZBO0efDb68 /* Computed Parameter: rtCP_uDLookupTable4_bp01Data - * Referenced by: '/1-D Lookup Table4' + * Referenced by: '/1-D Lookup Table4' */ #define rtCP_uDLookupTable3_tableData rtCP_pooled_1VJA2wyEDXXd /* Computed Parameter: rtCP_uDLookupTable3_tableData - * Referenced by: '/1-D Lookup Table3' + * Referenced by: '/1-D Lookup Table3' */ #define rtCP_uDLookupTable3_bp01Data rtCP_pooled_0WDnDJ93CH0Q /* Computed Parameter: rtCP_uDLookupTable3_bp01Data - * Referenced by: '/1-D Lookup Table3' + * Referenced by: '/1-D Lookup Table3' */ -#define rtCP_uDLookupTable_tableData_m rtCP_pooled_AHqoT7GPKnWM /* Computed Parameter: rtCP_uDLookupTable_tableData_m - * Referenced by: '/1-D Lookup Table' +#define rtCP_Constant_Value_pl rtCP_pooled_uQzioJKpBuGn /* Expression: flip(dhl_pwm) + * Referenced by: '/Constant' */ -#define rtCP_uDLookupTable_bp01Data_o rtCP_pooled_Z1Q1gQLg0UoS /* Computed Parameter: rtCP_uDLookupTable_bp01Data_o - * Referenced by: '/1-D Lookup Table' +#define rtCP_Constant1_Value_ke rtCP_pooled_cQRpYPC1d9LW /* Expression: flip(dhl_pos) + * Referenced by: '/Constant1' */ -#define rtCP_Constant_Value_gw rtCP_pooled_624epNsmwKQi /* Expression: flip(dspro5_pwm) - * Referenced by: '/Constant' +#define rtCP_Constant_Value_gw rtCP_pooled_7duMbVdalzaf /* Expression: flip(dspro5_pwm) + * Referenced by: '/Constant' */ -#define rtCP_Constant1_Value_ft rtCP_pooled_iSTqwEAGtzfV /* Expression: flip(dspro5_pos) - * Referenced by: '/Constant1' +#define rtCP_Constant1_Value_ft rtCP_pooled_O03r7Rz5WVK1 /* Expression: flip(dspro5_pos) + * Referenced by: '/Constant1' */ -#define rtCP_Constant_Value_gwr rtCP_pooled_kLKq4FtUzD7N /* Expression: flip(dspro2_pwm) - * Referenced by: '/Constant' +#define rtCP_Constant_Value_gwr rtCP_pooled_7Izcocv9OPc8 /* Expression: flip(dspro2_pwm) + * Referenced by: '/Constant' */ -#define rtCP_Constant1_Value_jx rtCP_pooled_iSTqwEAGtzfV /* Expression: flip(dspro2_pos) - * Referenced by: '/Constant1' +#define rtCP_Constant1_Value_jx rtCP_pooled_O03r7Rz5WVK1 /* Expression: flip(dspro2_pos) + * Referenced by: '/Constant1' */ -#define rtCP_Constant_Value_nf rtCP_pooled_jV6n29Q84TG0 /* Expression: flip(dspli1_pwm) +#define rtCP_Constant_Value_dpr rtCP_pooled_Wr4VW5y4SM5V /* Expression: flip(dspri1_pwm) + * Referenced by: '/Constant' + */ +#define rtCP_Constant1_Value_k5 rtCP_pooled_E0aOZ8k6B0em /* Expression: flip(dspri1_pos) + * Referenced by: '/Constant1' + */ +#define rtCP_Constant_Value_ek rtCP_pooled_zfDJ0XRgmnCd /* Expression: flip(dspli2_pwm) + * Referenced by: '/Constant' + */ +#define rtCP_Constant1_Value_n0 rtCP_pooled_E0aOZ8k6B0em /* Expression: flip(dspli2_pos) + * Referenced by: '/Constant1' + */ +#define rtCP_Constant_Value_hy rtCP_pooled_fUoWDoOYMOrz /* Expression: flip(dspli3_pwm) * Referenced by: '/Constant' */ -#define rtCP_Constant1_Value_jxv rtCP_pooled_1PPMDmLsqDxb /* Expression: flip(dspli1_pos) +#define rtCP_Constant1_Value_in rtCP_pooled_E0aOZ8k6B0em /* Expression: flip(dspli3_pos) * Referenced by: '/Constant1' */ -#define rtCP_Constant_Value_ek rtCP_pooled_ZDneGvvw4afb /* Expression: flip(dspli2_pwm) +#define rtCP_Constant_Value_gc rtCP_pooled_72gxvpYzsJYj /* Expression: flip(dsplo1_pwm) * Referenced by: '/Constant' */ -#define rtCP_Constant1_Value_n0 rtCP_pooled_1PPMDmLsqDxb /* Expression: flip(dspli2_pos) +#define rtCP_Constant1_Value_e3 rtCP_pooled_O03r7Rz5WVK1 /* Expression: flip(dsplo1_pos) * Referenced by: '/Constant1' */ -#define rtCP_Constant_Value_hy rtCP_pooled_kOOll4uMqbLh /* Expression: flip(dspli3_pwm) - * Referenced by: '/Constant' +#define rtCP_Constant_Value_aq rtCP_pooled_tKJB3E1t694Z /* Expression: flip(dsplo3_pwm) + * Referenced by: '/Constant' */ -#define rtCP_Constant1_Value_in rtCP_pooled_1PPMDmLsqDxb /* Expression: flip(dspli3_pos) - * Referenced by: '/Constant1' +#define rtCP_Constant1_Value_i5 rtCP_pooled_O03r7Rz5WVK1 /* Expression: flip(dsplo3_pos) + * Referenced by: '/Constant1' */ -#define rtCP_Constant_Value_gc rtCP_pooled_6dfekq9JrKtj /* Expression: flip(dsplo1_pwm) - * Referenced by: '/Constant' +#define rtCP_Constant_Value_le0 rtCP_pooled_WevH9zpym91w /* Expression: flip(dsplo4_pwm) + * Referenced by: '/Constant' */ -#define rtCP_Constant1_Value_e3 rtCP_pooled_iSTqwEAGtzfV /* Expression: flip(dsplo1_pos) - * Referenced by: '/Constant1' +#define rtCP_Constant1_Value_mt rtCP_pooled_O03r7Rz5WVK1 /* Expression: flip(dsplo4_pos) + * Referenced by: '/Constant1' */ -#define rtCP_Constant_Value_aq rtCP_pooled_IC39YoX64FX2 /* Expression: flip(dsplo3_pwm) - * Referenced by: '/Constant' +#define rtCP_Constant_Value_pf rtCP_pooled_j6BLsTdMk7qD /* Expression: flip(dru_pwm) + * Referenced by: '/Constant' */ -#define rtCP_Constant1_Value_i5 rtCP_pooled_iSTqwEAGtzfV /* Expression: flip(dsplo3_pos) - * Referenced by: '/Constant1' +#define rtCP_Constant1_Value_bh rtCP_pooled_yWVMTaHackMS /* Expression: flip(dru_pos) + * Referenced by: '/Constant1' */ -#define rtCP_Constant_Value_le0 rtCP_pooled_g7rGnKyrV2o9 /* Expression: flip(dsplo4_pwm) - * Referenced by: '/Constant' +#define rtCP_Constant_Value_oj rtCP_pooled_rYM1L1wOm55A /* Expression: flip(dar_pwm) + * Referenced by: '/Constant' */ -#define rtCP_Constant1_Value_mt rtCP_pooled_iSTqwEAGtzfV /* Expression: flip(dsplo4_pos) - * Referenced by: '/Constant1' - */ -#define rtCP_Constant_Value_pf2 rtCP_pooled_BqjeeNpsfvfO /* Expression: flip(drd_pwm) - * Referenced by: '/Constant' - */ -#define rtCP_Constant1_Value_bh rtCP_pooled_2WU07mlIko7H /* Expression: flip(drd_pos) - * Referenced by: '/Constant1' +#define rtCP_Constant1_Value_mr rtCP_pooled_H5asl5rOUZUB /* Expression: flip(dar_pos) + * Referenced by: '/Constant1' */ #define rtCP_MediumHighAltitudeIntensity_maxIndex rtCP_pooled_BWTVQM0GuqkK/* Computed Parameter: rtCP_MediumHighAltitudeIntensity_maxIndex - * Referenced by: '/Medium//High Altitude Intensity' + * Referenced by: '/Medium//High Altitude Intensity' */ #define rtCP_table2D_CL_lat_maxIndex rtCP_pooled_52mPzBGwtz3T /* Computed Parameter: rtCP_table2D_CL_lat_maxIndex * Referenced by: '/table2D_CL_lat' @@ -1946,7 +1955,7 @@ extern const uint8_T rtCP_pooled_mDbfc7f8L4g9; * Referenced by: '/Constant' */ #define rtCP_mav_parser_P1 rtCP_pooled_e6HU8n7YauPz /* Expression: Channel - * Referenced by: '/mav_parser' + * Referenced by: '/mav_parser' */ #define rtCP_ConstantBP_Value_ce rtCP_pooled_mhMab4fllVU3 /* Computed Parameter: rtCP_ConstantBP_Value_ce * Referenced by: '/Constant BP' @@ -1955,70 +1964,70 @@ extern const uint8_T rtCP_pooled_mDbfc7f8L4g9; * Referenced by: '/Constant BP1' */ #define rtCP_SFunction_P1 rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_a rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_h rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_i rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_j rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_b rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_bz rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_n rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_an rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_f rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_al rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_Constant_Value_fz rtCP_pooled_mhMab4fllVU3 /* Computed Parameter: rtCP_Constant_Value_fz - * Referenced by: '/Constant' + * Referenced by: '/Constant' */ #define rtCP_SFunction_P1_jo rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_d rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_bs rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_as rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_g rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_a1 rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_m rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_p rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_i1 rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #define rtCP_SFunction_P1_d4 rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id - * Referenced by: '/S-Function' + * Referenced by: '/S-Function' */ #ifdef __cplusplus @@ -2961,6 +2970,14 @@ extern Msg_CommandMsg *cr929_SIL_proc_cmd_In2_RecvMsg(void); extern void cr929_SIL_freeMemPool(MemPool_CommandMsg *memPool, CommandMsg *dataPtr); extern void cr929_SIL_destroyMsg(const Msg_CommandMsg *msg); +extern int32_T cr929_SIL_pop(Queue_uint16 *q, Msg_uint16 *elementOut); +extern Msg_uint16 *cr929_SIL_proc_set_cur_RecvMsg(void); +extern int32_T cr929_SIL_emplace_n2(Queue_CommandAck *q, const CommandAck + *dataIn); +extern int32_T cr929_SIL_Chart_send_ack_SendData(const CommandAck *data_toSend); +extern CommandMsg *cr929_SIL_allocMemPool(MemPool_CommandMsg *memPool); +extern int32_T cr929_SIL_emplace_n(Queue_CommandMsg *q, const CommandMsg *dataIn); +extern int32_T cr929_SIL_proc_cmd_In2_SendData(const CommandMsg *data_toSend); extern int32_T cr929_SIL_pop_c02u1i(Queue_mavlink_mission_item_int_t *q, Msg_mavlink_mission_item_int_t *elementOut); extern Msg_mavlink_mission_item_int_t @@ -2980,14 +2997,6 @@ extern Msg_mavlink_mission_count_t extern void cr929_SIL_freeMemPool_bvx(MemPool_mavlink_mission_item_int_t *memPool, mavlink_mission_item_int_t *dataPtr); extern void cr929_SIL_destroyMsg_ecw(const Msg_mavlink_mission_item_int_t *msg); -extern int32_T cr929_SIL_pop(Queue_uint16 *q, Msg_uint16 *elementOut); -extern Msg_uint16 *cr929_SIL_proc_set_cur_RecvMsg(void); -extern int32_T cr929_SIL_emplace_n2(Queue_CommandAck *q, const CommandAck - *dataIn); -extern int32_T cr929_SIL_Chart_send_ack_SendData(const CommandAck *data_toSend); -extern CommandMsg *cr929_SIL_allocMemPool(MemPool_CommandMsg *memPool); -extern int32_T cr929_SIL_emplace_n(Queue_CommandMsg *q, const CommandMsg *dataIn); -extern int32_T cr929_SIL_proc_cmd_In2_SendData(const CommandMsg *data_toSend); extern int32_T cr929_SIL_pop_c02u1irtbrb(Queue_mavlink_message_t *q, Msg_mavlink_message_t *elementOut); extern Msg_mavlink_message_t *cr929_SIL_proc_queue_RecvMsg(void); @@ -3107,12 +3116,12 @@ extern int32_T cr929_SIL_proc_queue_SendData(const mavlink_message_t *data_toSend); extern void cr929_SIL_initQueue_k0qncuyo4n2(Queue_mavlink_message_t *q, QueuePolicy_T policy, int32_T capacity, Msg_mavlink_message_t *qPool); -extern void cr929_SIL_initQueue(Queue_uint16 *q, QueuePolicy_T policy, int32_T - capacity, Msg_uint16 *qPool); -extern void cr929_SIL_initQueue_k0qncu(Queue_mavlink_mission_item_int_t *q, - QueuePolicy_T policy, int32_T capacity, Msg_mavlink_mission_item_int_t *qPool); extern void cr929_SIL_initQueue_k0qnc(Queue_mavlink_mission_count_t *q, QueuePolicy_T policy, int32_T capacity, Msg_mavlink_mission_count_t *qPool); +extern void cr929_SIL_initQueue_k0qncu(Queue_mavlink_mission_item_int_t *q, + QueuePolicy_T policy, int32_T capacity, Msg_mavlink_mission_item_int_t *qPool); +extern void cr929_SIL_initQueue(Queue_uint16 *q, QueuePolicy_T policy, int32_T + capacity, Msg_uint16 *qPool); extern void cr929_SIL_initQueue_k(Queue_CommandMsg *q, QueuePolicy_T policy, int32_T capacity, Msg_CommandMsg *qPool); extern void cr929_SIL_initQueue_k0(Queue_CommandAck *q, QueuePolicy_T policy, @@ -3147,23 +3156,23 @@ extern int32_T cr929_SIL_push_bdbzo4tvrju(Queue_mavlink_message_t *q, const extern int32_T cr929_SIL_proc_queue_SendMsg(const Msg_mavlink_message_t *msg_toSend); extern int32_T cr929_SIL_proc_queue_RecvData(mavlink_message_t *data_received); -extern int32_T cr929_SIL_push(Queue_uint16 *q, const Msg_uint16 *element); -extern int32_T cr929_SIL_req_cur_In1_SendMsg(const Msg_uint16 *msg_toSend); -extern int32_T cr929_SIL_req_cur_In1_RecvData(uint16_T *data_received); -extern int32_T cr929_SIL_proc_set_cur_SendMsg(const Msg_uint16 *msg_toSend); -extern int32_T cr929_SIL_proc_set_cur_RecvData(uint16_T *data_received); -extern int32_T cr929_SIL_push_bdbzo4(Queue_mavlink_mission_item_int_t *q, const - Msg_mavlink_mission_item_int_t *element); -extern int32_T cr929_SIL_Chart_proc_mission_upload_In2_SendMsg(const - Msg_mavlink_mission_item_int_t *msg_toSend); -extern int32_T cr929_SIL_Chart_proc_mission_upload_In2_RecvData - (mavlink_mission_item_int_t *data_received); extern int32_T cr929_SIL_push_bdbzo(Queue_mavlink_mission_count_t *q, const Msg_mavlink_mission_count_t *element); extern int32_T cr929_SIL_Chart_proc_mission_upload_In1_SendMsg(const Msg_mavlink_mission_count_t *msg_toSend); extern int32_T cr929_SIL_Chart_proc_mission_upload_In1_RecvData (mavlink_mission_count_t *data_received); +extern int32_T cr929_SIL_push_bdbzo4(Queue_mavlink_mission_item_int_t *q, const + Msg_mavlink_mission_item_int_t *element); +extern int32_T cr929_SIL_Chart_proc_mission_upload_In2_SendMsg(const + Msg_mavlink_mission_item_int_t *msg_toSend); +extern int32_T cr929_SIL_Chart_proc_mission_upload_In2_RecvData + (mavlink_mission_item_int_t *data_received); +extern int32_T cr929_SIL_push(Queue_uint16 *q, const Msg_uint16 *element); +extern int32_T cr929_SIL_req_cur_In1_SendMsg(const Msg_uint16 *msg_toSend); +extern int32_T cr929_SIL_req_cur_In1_RecvData(uint16_T *data_received); +extern int32_T cr929_SIL_proc_set_cur_SendMsg(const Msg_uint16 *msg_toSend); +extern int32_T cr929_SIL_proc_set_cur_RecvData(uint16_T *data_received); extern int32_T cr929_SIL_push_b(Queue_CommandMsg *q, const Msg_CommandMsg *element); extern int32_T cr929_SIL_proc_cmd_In2_SendMsg(const Msg_CommandMsg *msg_toSend); @@ -3398,19 +3407,6 @@ extern void cr929_SIL_EnabledSubsystem1_Disable(DW_EnabledSubsystem1_cr929_SIL_T extern void cr929_SIL_EnabledSubsystem1(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, uint32_T rtu_Enable, real_T rtu_In1, real_T *rty_Out1, DW_EnabledSubsystem1_cr929_SIL_T *localDW); -extern void cr929_SIL_throttle_Init(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, - DW_throttle_cr929_SIL_T *localDW, X_throttle_cr929_SIL_T *localX); -extern void cr929_SIL_throttle_Reset(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, - DW_throttle_cr929_SIL_T *localDW, X_throttle_cr929_SIL_T *localX); -extern void cr929_SIL_throttle_Deriv(B_throttle_cr929_SIL_T *localB, - DW_throttle_cr929_SIL_T *localDW, XDot_throttle_cr929_SIL_T *localXdot); -extern void cr929_SIL_throttle_Disable(DW_throttle_cr929_SIL_T *localDW); -extern void cr929_SIL_throttle_Update(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, - B_throttle_cr929_SIL_T *localB, DW_throttle_cr929_SIL_T *localDW); -extern void cr929_SIL_throttle(RT_MODEL_cr929_SIL_T * const cr929_SIL_M, - boolean_T rtu_Enable, real_T rtu_thr_c, real_T rtu_In1, real_T *rty_thr, - B_throttle_cr929_SIL_T *localB, DW_throttle_cr929_SIL_T *localDW, - X_throttle_cr929_SIL_T *localX); extern void cr929_SIL_Distanceintogustx_Init(X_Distanceintogustx_cr929_SIL_T *localX); extern void cr929_SIL_Distanceintogustx_Reset(X_Distanceintogustx_cr929_SIL_T diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_types.h b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_types.h index 89806b9..5c6a3ac 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_types.h +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_types.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1344 + * Model version : 1.1390 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Sat Aug 21 08:51:18 2021 + * C/C++ source code generated on : Mon Aug 23 14:30:11 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -747,6 +747,9 @@ typedef struct { /* 侧向加速度指令 */ real32_T ay_c; + /* 质量估计 */ + real32_T mass_est; + /* 控制律选择;0是南航,1是商飞 */ boolean_T Switch_ControlLaw; @@ -896,6 +899,9 @@ typedef struct { /* 右外翼扰流板 */ real32_T dspro_c[5]; + + /* 平尾指令 */ + real32_T dh_c; } CmdOut; #endif @@ -2967,8 +2973,8 @@ typedef struct { #endif -#ifndef DEFINED_TYPEDEF_FOR_struct_Z6W9MGUMzqRg3OxWuLsfNF_ -#define DEFINED_TYPEDEF_FOR_struct_Z6W9MGUMzqRg3OxWuLsfNF_ +#ifndef DEFINED_TYPEDEF_FOR_struct_zbDuerJiypr5acipRrywLG_ +#define DEFINED_TYPEDEF_FOR_struct_zbDuerJiypr5acipRrywLG_ typedef struct { real_T gear_up; @@ -3032,15 +3038,16 @@ typedef struct { real_T da_stimulus; real_T dr_stimulus; real_T dh_stimulus; + real_T mass_est; boolean_T Switch_ControlLaw; boolean_T comac_ResetControlLaw; boolean_T comac_Arm_RUDTrimPanel; -} struct_Z6W9MGUMzqRg3OxWuLsfNF; +} struct_zbDuerJiypr5acipRrywLG; #endif -#ifndef DEFINED_TYPEDEF_FOR_struct_mkbGnissCFjtFe0Xt20b5B_ -#define DEFINED_TYPEDEF_FOR_struct_mkbGnissCFjtFe0Xt20b5B_ +#ifndef DEFINED_TYPEDEF_FOR_struct_1Vf5zv0YnPo0RauDCWLb5B_ +#define DEFINED_TYPEDEF_FOR_struct_1Vf5zv0YnPo0RauDCWLb5B_ typedef struct { boolean_T gear_up; @@ -3104,10 +3111,11 @@ typedef struct { real32_T da_stimulus; real32_T dr_stimulus; real32_T dh_stimulus; + real32_T mass_est; boolean_T Switch_ControlLaw; boolean_T comac_ResetControlLaw; boolean_T comac_Arm_RUDTrimPanel; -} struct_mkbGnissCFjtFe0Xt20b5B; +} struct_1Vf5zv0YnPo0RauDCWLb5B; #endif diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/rtmodel.h b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/rtmodel.h index 1400e96..3b08ead 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/rtmodel.h +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/rtmodel.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1344 + * Model version : 1.1390 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Sat Aug 21 08:51:18 2021 + * C/C++ source code generated on : Mon Aug 23 14:30:11 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) diff --git a/cr929_SIL/work/slprj/ert_shrlib/_sharedutils/const_params.c b/cr929_SIL/work/slprj/ert_shrlib/_sharedutils/const_params.c index d7ddda0..badbe69 100644 --- a/cr929_SIL/work/slprj/ert_shrlib/_sharedutils/const_params.c +++ b/cr929_SIL/work/slprj/ert_shrlib/_sharedutils/const_params.c @@ -3,9 +3,9 @@ * * Code generation for model "cr929_SIL". * - * Model version : 1.1344 + * Model version : 1.1388 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C source code generated on : Sat Aug 21 08:51:18 2021 + * C source code generated on : Mon Aug 23 13:17:05 2021 */ #include "rtwtypes.h" @@ -97,6 +97,18 @@ const real32_T rtCP_pooled_66xenhVBYvvw[3] = { -1.0F, 0.0F, 1.0F } ; extern const real32_T rtCP_pooled_6dfekq9JrKtj[3]; const real32_T rtCP_pooled_6dfekq9JrKtj[3] = { 1190.0F, 1355.0F, 1915.0F } ; +extern const real32_T rtCP_pooled_72gxvpYzsJYj[6]; +const real32_T rtCP_pooled_72gxvpYzsJYj[6] = { 1304.0F, 1340.0F, 1344.0F, + 1384.0F, 1440.0F, 1980.0F } ; + +extern const real32_T rtCP_pooled_7Izcocv9OPc8[6]; +const real32_T rtCP_pooled_7Izcocv9OPc8[6] = { 1252.0F, 1272.0F, 1280.0F, + 1304.0F, 1344.0F, 1848.0F } ; + +extern const real32_T rtCP_pooled_7duMbVdalzaf[6]; +const real32_T rtCP_pooled_7duMbVdalzaf[6] = { 1152.0F, 1192.0F, 1204.0F, + 1236.0F, 1288.0F, 1860.0F } ; + extern const real_T rtCP_pooled_7qGNhEq2dqc9[8]; const real_T rtCP_pooled_7qGNhEq2dqc9[8] = { 0.014912, 0.016544, 0.015405, 0.006811, 0.0, 0.0, 0.0, 0.0 } ; @@ -135,6 +147,10 @@ const real_T rtCP_pooled_9XuOkoVKMZ3I[45] = { -0.008203, -0.006952, -0.006766, -0.008203, -0.006952, -0.006766, -0.006466, -0.00639, -0.006747, -0.005759, -0.002721, -0.014412 } ; +extern const real_T rtCP_pooled_9cN5WSKdIBCs[12]; +const real_T rtCP_pooled_9cN5WSKdIBCs[12] = { 0.0, 0.7, 3.1, 5.1, 7.3, 9.5, 11.5, + 13.5, 15.2, 16.8, 18.2, 19.6 } ; + extern const real_T rtCP_pooled_A36Ik4mQxfhR[440]; const real_T rtCP_pooled_A36Ik4mQxfhR[440] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, @@ -297,6 +313,10 @@ extern const real_T rtCP_pooled_DOGm2IjJsB79[8]; const real_T rtCP_pooled_DOGm2IjJsB79[8] = { 0.001435, 0.002941, 0.003257, 0.002697, 0.0, 0.0, 0.0, 0.0 } ; +extern const real32_T rtCP_pooled_E0aOZ8k6B0em[6]; +const real32_T rtCP_pooled_E0aOZ8k6B0em[6] = { 0.19F, 0.13F, 0.12F, 0.07F, 0.0F, + -0.87F } ; + extern const real_T rtCP_pooled_EKLaGai6EOKc[15]; const real_T rtCP_pooled_EKLaGai6EOKc[15] = { 0.008832, 0.009851, 0.009495, 0.006677, -0.001345, 0.0, 0.0, 0.0, 0.0, 0.0, -0.006311, -0.009065, -0.007814, @@ -334,6 +354,9 @@ extern const real_T rtCP_pooled_GoV82cbx7SqY[5]; const real_T rtCP_pooled_GoV82cbx7SqY[5] = { -0.240332, -0.306727, -0.279779, -0.149839, -0.010799 } ; +extern const real32_T rtCP_pooled_H5asl5rOUZUB[3]; +const real32_T rtCP_pooled_H5asl5rOUZUB[3] = { 0.349066287F, 0.0F, -0.523599F } ; + extern const real32_T rtCP_pooled_HF8NWw8ahBZB[3]; const real32_T rtCP_pooled_HF8NWw8ahBZB[3] = { 0.1F, 0.5F, 1.0F } ; @@ -346,6 +369,10 @@ const real_T rtCP_pooled_HexeG21NOHU8[48] = { 0.067182, 0.067099, 0.06806, 0.063159, 0.062039, 0.060306, 0.058372, 0.05482, 0.051393, 0.048112, 0.044781, 0.040921, 0.037163, 0.008748, -0.01945, -0.045632 } ; +extern const real_T rtCP_pooled_I8SX1eLdDjwL[12]; +const real_T rtCP_pooled_I8SX1eLdDjwL[12] = { 0.0, 0.9, 4.1, 6.9, 9.6, 12.0, + 14.2, 16.0, 17.7, 19.2, 20.5, 22.5 } ; + extern const real32_T rtCP_pooled_IC39YoX64FX2[3]; const real32_T rtCP_pooled_IC39YoX64FX2[3] = { 1180.0F, 1300.0F, 1734.0F } ; @@ -399,6 +426,10 @@ const real_T rtCP_pooled_Nme0quVnQ8Lp[4] = { 0.0, 3.0, 6.0, 9.0 } ; extern const real32_T rtCP_pooled_NsfoROSYwB8n[3]; const real32_T rtCP_pooled_NsfoROSYwB8n[3] = { 5.0F, 10.0F, 15.0F } ; +extern const real32_T rtCP_pooled_O03r7Rz5WVK1[6]; +const real32_T rtCP_pooled_O03r7Rz5WVK1[6] = { 0.21F, 0.15F, 0.13F, 0.08F, 0.0F, + -0.87F } ; + extern const real_T rtCP_pooled_O2dfO2CFgfpB[8]; const real_T rtCP_pooled_O2dfO2CFgfpB[8] = { 0.001399, 0.000258, -0.001076, -0.001234, 0.0, 0.0, -0.0, -0.0 } ; @@ -511,6 +542,14 @@ const real_T rtCP_pooled_W8BwPXLbIlPf[5] = { -0.069387, -0.078778, 0.030454, extern const real_T rtCP_pooled_WZ9Kwd0tGYXg[2]; const real_T rtCP_pooled_WZ9Kwd0tGYXg[2] = { 0.0, 0.007182 } ; +extern const real32_T rtCP_pooled_WevH9zpym91w[6]; +const real32_T rtCP_pooled_WevH9zpym91w[6] = { 1324.0F, 1368.0F, 1372.0F, + 1400.0F, 1448.0F, 1952.0F } ; + +extern const real32_T rtCP_pooled_Wr4VW5y4SM5V[6]; +const real32_T rtCP_pooled_Wr4VW5y4SM5V[6] = { 1276.0F, 1280.0F, 1292.0F, + 1316.0F, 1340.0F, 1780.0F } ; + extern const real_T rtCP_pooled_X218iwbyGUoS[8]; const real_T rtCP_pooled_X218iwbyGUoS[8] = { -0.013161, -0.012989, -0.012782, -0.011948, -0.012822, -0.01301, -0.013066, -0.01285 } ; @@ -589,6 +628,10 @@ const real_T rtCP_pooled_cCtPnRbETOIg[45] = { 0.005257, 0.005311, 0.005608, 0.00135, 0.001463, 0.001577, 0.001766, 0.004357, 0.005257, 0.005311, 0.005608, 0.00569, 0.006003, 0.006494, 0.007154, 0.008497, 0.013256 } ; +extern const real32_T rtCP_pooled_cQRpYPC1d9LW[4]; +const real32_T rtCP_pooled_cQRpYPC1d9LW[4] = { 0.052356F, 0.034904F, 0.0F, + -0.24433F } ; + extern const real_T rtCP_pooled_cslznS59fVSX[15]; const real_T rtCP_pooled_cslznS59fVSX[15] = { -0.045562, -0.04425, -0.042564, -0.043218, -0.057743, 0.0, 0.0, 0.0, 0.0, 0.0, 0.045562, 0.04425, 0.042564, @@ -622,6 +665,10 @@ const real_T rtCP_pooled_f1HM3qsxVH0J[60] = { 0.020937, 0.021497, 0.021493, extern const uint32_T rtCP_pooled_fRSYqmPNR2lC[2]; const uint32_T rtCP_pooled_fRSYqmPNR2lC[2] = { 3U, 1U } ; +extern const real32_T rtCP_pooled_fUoWDoOYMOrz[6]; +const real32_T rtCP_pooled_fUoWDoOYMOrz[6] = { 1288.0F, 1304.0F, 1312.0F, + 1336.0F, 1356.0F, 1828.0F } ; + extern const real_T rtCP_pooled_ftKRscMHpmK6[10]; const real_T rtCP_pooled_ftKRscMHpmK6[10] = { -4.0, -2.0, 0.0, 2.0, 4.0, 6.0, 8.0, 9.0, 10.0, 12.0 } ; @@ -643,6 +690,9 @@ const real_T rtCP_pooled_hl38N3Xx3z6z[8] = { 0.000689, -0.000839, -0.001693, extern const real32_T rtCP_pooled_iSTqwEAGtzfV[3]; const real32_T rtCP_pooled_iSTqwEAGtzfV[3] = { 0.21F, 0.0F, -0.87F } ; +extern const real32_T rtCP_pooled_j6BLsTdMk7qD[3]; +const real32_T rtCP_pooled_j6BLsTdMk7qD[3] = { 1228.0F, 1496.0F, 1804.0F } ; + extern const real_T rtCP_pooled_jNg7oKxWxx4z[15]; const real_T rtCP_pooled_jNg7oKxWxx4z[15] = { 0.014192, 0.014262, 0.014128, 0.014049, 0.014174, 0.0, 0.0, 0.0, 0.0, 0.0, -0.014192, -0.014262, -0.014128, @@ -722,6 +772,10 @@ extern const real_T rtCP_pooled_psIVcsc1YbmR[8]; const real_T rtCP_pooled_psIVcsc1YbmR[8] = { -0.031901, -0.034333, -0.038558, -0.033608, -0.0, -0.0, -0.0, -0.0 } ; +extern const real_T rtCP_pooled_qDmF6dtcrNa4[12]; +const real_T rtCP_pooled_qDmF6dtcrNa4[12] = { 0.0, 0.0015, 0.003067, 0.004167, + 0.005067, 0.005933, 0.006867, 0.007567, 0.008467, 0.009, 0.009533, 0.010067 } ; + extern const real_T rtCP_pooled_rDmYbGk0dXY4[220]; const real_T rtCP_pooled_rDmYbGk0dXY4[220] = { 0.02649, 0.027022, 0.027555, 0.028087, 0.028616, 0.029148, 0.029681, 0.030213, 0.030746, 0.031275, 0.031807, @@ -753,6 +807,9 @@ const real_T rtCP_pooled_rDmYbGk0dXY4[220] = { 0.02649, 0.027022, 0.027555, -0.029681, -0.030213, -0.030746, -0.031275, -0.031807, -0.03234, -0.032868, -0.033376, -0.033818, -0.034257, -0.034696, -0.035139, -0.035581, -0.03602 } ; +extern const real32_T rtCP_pooled_rYM1L1wOm55A[3]; +const real32_T rtCP_pooled_rYM1L1wOm55A[3] = { 1096.0F, 1400.0F, 1808.0F } ; + extern const real_T rtCP_pooled_rnzXCjvQlWUv[45]; const real_T rtCP_pooled_rnzXCjvQlWUv[45] = { 0.016949, 0.015597, 0.013632, 0.01176, 0.010322, 0.008149, 0.003768, -0.009189, -0.021113, 0.004643, @@ -764,10 +821,17 @@ const real_T rtCP_pooled_rnzXCjvQlWUv[45] = { 0.016949, 0.015597, 0.013632, extern const uint32_T rtCP_pooled_sFqFEOyqD1B6[3]; const uint32_T rtCP_pooled_sFqFEOyqD1B6[3] = { 1U, 20U, 220U } ; +extern const real32_T rtCP_pooled_sOAf1IN02ri7[3]; +const real32_T rtCP_pooled_sOAf1IN02ri7[3] = { 1128.0F, 1504.0F, 1856.0F } ; + extern const real_T rtCP_pooled_tEMgQLmcwasw[8]; const real_T rtCP_pooled_tEMgQLmcwasw[8] = { -0.000689, 0.000839, 0.001693, 0.001506, -0.0, 0.0, 0.0, 0.0 } ; +extern const real32_T rtCP_pooled_tKJB3E1t694Z[6]; +const real32_T rtCP_pooled_tKJB3E1t694Z[6] = { 1356.0F, 1388.0F, 1396.0F, + 1420.0F, 1464.0F, 1948.0F } ; + extern const real_T rtCP_pooled_tLZ1hVlzv2wK[20]; const real_T rtCP_pooled_tLZ1hVlzv2wK[20] = { 52.62, 53.62, 54.62, 55.62, 56.62, 57.62, 58.62, 59.62, 60.62, 61.62, 62.62, 63.62, 64.62, 65.62, 66.62, 67.62, @@ -791,6 +855,10 @@ extern const real_T rtCP_pooled_uABU1cJRdwpy[8]; const real_T rtCP_pooled_uABU1cJRdwpy[8] = { -0.019598, -0.021363, -0.020588, -0.009634, -0.0, -0.0, -0.0, -0.0 } ; +extern const real32_T rtCP_pooled_uQzioJKpBuGn[4]; +const real32_T rtCP_pooled_uQzioJKpBuGn[4] = { 1160.0F, 1220.0F, 1332.0F, + 1964.0F } ; + extern const real_T rtCP_pooled_uqsuPDWrNqQD[15]; const real_T rtCP_pooled_uqsuPDWrNqQD[15] = { -0.000213, 0.000325, 0.000616, 0.001154, 0.002241, 0.0, 0.0, 0.0, 0.0, 0.0, 0.00081, 0.000469, 0.000273, @@ -823,6 +891,9 @@ extern const real_T rtCP_pooled_y4alZx0pfHqZ[8]; const real_T rtCP_pooled_y4alZx0pfHqZ[8] = { 0.017833, 0.020446, 0.018794, 0.009219, 0.0, 0.0, 0.0, 0.0 } ; +extern const real32_T rtCP_pooled_yWVMTaHackMS[3]; +const real32_T rtCP_pooled_yWVMTaHackMS[3] = { 0.610820174F, 0.0F, -0.61082F } ; + extern const real_T rtCP_pooled_yqQZ1b4hXfLI[8]; const real_T rtCP_pooled_yqQZ1b4hXfLI[8] = { -0.012683, -0.013989, -0.013673, -0.005976, -0.0, -0.0, -0.0, -0.0 } ; @@ -834,6 +905,10 @@ const real_T rtCP_pooled_yw1Rs9OSK842[8] = { 0.000696, 0.001292, 0.001579, extern const real_T rtCP_pooled_yygrMkc1NFAx[3]; const real_T rtCP_pooled_yygrMkc1NFAx[3] = { -5.0, 0.0, 5.0 } ; +extern const real32_T rtCP_pooled_zfDJ0XRgmnCd[6]; +const real32_T rtCP_pooled_zfDJ0XRgmnCd[6] = { 1280.0F, 1304.0F, 1312.0F, + 1332.0F, 1356.0F, 1804.0F } ; + extern const real_T rtCP_pooled_zulEGXv6cLvc[130]; const real_T rtCP_pooled_zulEGXv6cLvc[130] = { -0.02, -0.02, -0.02, -0.020333, -0.020667, -0.021, -0.023667, -0.025, -0.025, -0.025, -0.02, -0.02, -0.02,