diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL.c b/SIL/work/SIL_ert_shrlib_rtw/SIL.c index 5fe4a4d..ff84675 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL.c +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL.c @@ -5,7 +5,7 @@ * * Model version : 1.473 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Fri Nov 13 06:18:31 2020 + * C/C++ source code generated on : Tue Nov 17 14:07:12 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -107,26 +107,29 @@ /* Named constants for Chart: '/Chart' */ #define SIL_IN_Idle1 ((uint8_T)2U) #define SIL_IN_Idle2 ((uint8_T)3U) -#define SIL_IN_Idle_p ((uint8_T)1U) +#define SIL_IN_Idle_e ((uint8_T)1U) #define SIL_IN_balloon ((uint8_T)4U) #define SIL_IN_cover ((uint8_T)5U) #define SIL_IN_cut ((uint8_T)6U) #define SIL_IN_five ((uint8_T)1U) #define SIL_IN_four ((uint8_T)2U) #define SIL_IN_one ((uint8_T)1U) -#define SIL_IN_one_p ((uint8_T)3U) +#define SIL_IN_one_g ((uint8_T)3U) #define SIL_IN_parachute ((uint8_T)7U) #define SIL_IN_six ((uint8_T)4U) #define SIL_IN_three ((uint8_T)2U) -#define SIL_IN_three_h ((uint8_T)5U) +#define SIL_IN_three_b ((uint8_T)5U) #define SIL_IN_two ((uint8_T)3U) -#define SIL_IN_two_l ((uint8_T)6U) +#define SIL_IN_two_c ((uint8_T)6U) /* Named constants for Chart: '/TopLevelSwitch' */ #define SIL_IN_operational ((uint8_T)1U) #define SIL_IN_standby ((uint8_T)2U) #define SIL_IN_xbit ((uint8_T)3U) +/* Named constants for Chart: '/sweep_generator' */ +#define SIL_IN_sweep ((uint8_T)2U) + /* Named constants for Chart: '/takeoff_task' */ #define SIL_IN_Active ((uint8_T)1U) #define SIL_IN_Done ((uint8_T)2U) @@ -205,8 +208,10 @@ const C2 SIL_rtZC2 = { 0.0F, /* roll_cmd */ 0.0F, /* yaw_cmd */ 0.0F, /* throttle_cmd */ - 0.0F, /* ele_cmd */ - 0.0F, /* flap */ + + { + 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U } + , /* chan_raw */ 0U, /* auto_mode */ 0U, /* aux_mode */ 0U, /* id */ @@ -271,7 +276,12 @@ const C2 SIL_rtZC2 = { , /* SDAS_MOS */ 0.0F, /* trim_aoa */ 0.0F, /* trim_aos */ - ENUM_BIT_MODE_IDLE /* BIT_MODE */ + ENUM_BIT_MODE_IDLE, /* BIT_MODE */ + 0U, /* act_sw_chan */ + 0.0F, /* act_sw_amp */ + 0.0F, /* act_sw_freq0 */ + 0.0F, /* act_sw_freq1 */ + 0.0F /* act_sw_k */ } ; /* C2 ground */ const MavMission SIL_rtZMavMission = { @@ -2189,47 +2199,47 @@ void SIL_tick_m(real_T rtu_dt, boolean_T *rty_enabled, DW_tick_SIL_f_T *localDW) /* * Output and update for action system: - * '/Subsystem1' - * '/Subsystem1' + * '/Subsystem1' + * '/Subsystem1' */ void SIL_Subsystem1(const C2 *rtu_C2_in, C2 *rty_C2_out, uint8_T *rty_ack) { - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ *rty_ack = 1U; - /* Inport: '/C2_in' */ + /* Inport: '/C2_in' */ *rty_C2_out = *rtu_C2_in; } /* * Output and update for action system: - * '/If Action Subsystem1' - * '/If Action Subsystem1' * '/If Action Subsystem1' + * '/If Action Subsystem1' + * '/If Action Subsystem1' */ void SIL_IfActionSubsystem1(const C2 *rtu_In1, C2 *rty_Out1, uint8_T *rty_ack) { - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ *rty_ack = 1U; - /* Inport: '/In1' */ + /* Inport: '/In1' */ *rty_Out1 = *rtu_In1; } /* * Output and update for atomic system: - * '/auto_sw' - * '/aux_sw' - * '/auto_sw' - * '/aux_sw' + * '/auto_sw' + * '/aux_sw' + * '/auto_sw' + * '/aux_sw' */ void SIL_auto_sw(uint16_T rtu_in, uint8_T *rty_out) { - /* Chart: '/auto_sw' */ + /* Chart: '/auto_sw' */ if (rtu_in < 1250) { *rty_out = 0U; } else if (rtu_in < 1750) { @@ -2238,19 +2248,19 @@ void SIL_auto_sw(uint16_T rtu_in, uint8_T *rty_out) *rty_out = 2U; } - /* End of Chart: '/auto_sw' */ + /* End of Chart: '/auto_sw' */ } /* * Output and update for atomic system: - * '/brake_sw' - * '/gear_sw' - * '/brake_sw' - * '/gear_sw' + * '/brake_sw' + * '/gear_sw' + * '/brake_sw' + * '/gear_sw' */ void SIL_brake_sw(uint16_T rtu_in, boolean_T *rty_out) { - /* Chart: '/brake_sw' */ + /* Chart: '/brake_sw' */ *rty_out = (rtu_in >= 1500); } @@ -2262,68 +2272,55 @@ void SIL_brake_sw(uint16_T rtu_in, boolean_T *rty_out) void SIL_valid(const C2 *rtu_C2_in, uint8_T rtu_id, const uint16_T rtu_channels [18], C2 *rty_C2_out) { - int16_T rtb_Sum_jvo; - boolean_T rtb_out_bb; - boolean_T rtb_out_fl; - uint8_T rtb_out_io; - uint8_T rtb_out_i4; + int16_T rtb_Sum_bp; + uint8_T rtb_out_br; + uint8_T rtb_out_al; + boolean_T rtb_out_et; + boolean_T rtb_out_cvu; + int32_T i; real32_T u0; real32_T u0_0; real32_T u0_1; real32_T u0_2; - real32_T u0_3; - real32_T u0_4; /* Sum: '/Sum' */ - rtb_Sum_jvo = (int16_T)((int16_T)rtu_channels[0] - 1500); + rtb_Sum_bp = (int16_T)((int16_T)rtu_channels[0] - 1500); /* Gain: '/Gain' */ - u0 = 0.0025F * (real32_T)rtb_Sum_jvo; + u0 = 0.0025F * (real32_T)rtb_Sum_bp; /* Sum: '/Sum' */ - rtb_Sum_jvo = (int16_T)((int16_T)rtu_channels[1] - 1500); + rtb_Sum_bp = (int16_T)((int16_T)rtu_channels[1] - 1500); /* Gain: '/Gain' */ - u0_0 = 0.0025F * (real32_T)rtb_Sum_jvo; + u0_0 = 0.0025F * (real32_T)rtb_Sum_bp; /* Sum: '/Sum' */ - rtb_Sum_jvo = (int16_T)((int16_T)rtu_channels[2] - 1100); + rtb_Sum_bp = (int16_T)((int16_T)rtu_channels[2] - 1100); /* Gain: '/Gain' */ - u0_1 = 0.00125F * (real32_T)rtb_Sum_jvo; + u0_1 = 0.00125F * (real32_T)rtb_Sum_bp; /* Sum: '/Sum' */ - rtb_Sum_jvo = (int16_T)((int16_T)rtu_channels[3] - 1500); + rtb_Sum_bp = (int16_T)((int16_T)rtu_channels[3] - 1500); /* Gain: '/Gain' */ - u0_2 = 0.0025F * (real32_T)rtb_Sum_jvo; + u0_2 = 0.0025F * (real32_T)rtb_Sum_bp; - /* Chart: '/gear_sw' */ - SIL_brake_sw(rtu_channels[4], &rtb_out_bb); + /* Chart: '/auto_sw' */ + SIL_auto_sw(rtu_channels[4], &rtb_out_br); - /* Chart: '/brake_sw' */ - SIL_brake_sw(rtu_channels[5], &rtb_out_fl); + /* Chart: '/aux_sw' */ + SIL_auto_sw(rtu_channels[5], &rtb_out_al); - /* Sum: '/Sum' */ - rtb_Sum_jvo = (int16_T)((int16_T)rtu_channels[6] - 1100); + /* Chart: '/brake_sw' */ + SIL_brake_sw(rtu_channels[6], &rtb_out_et); - /* Gain: '/Gain' */ - u0_3 = 0.00125F * (real32_T)rtb_Sum_jvo; + /* Chart: '/gear_sw' */ + SIL_brake_sw(rtu_channels[7], &rtb_out_cvu); - /* Chart: '/auto_sw' */ - SIL_auto_sw(rtu_channels[7], &rtb_out_io); - - /* Chart: '/aux_sw' */ - SIL_auto_sw(rtu_channels[8], &rtb_out_i4); - - /* Sum: '/Sum' */ - rtb_Sum_jvo = (int16_T)((int16_T)rtu_channels[9] - 1100); - - /* Gain: '/Gain' */ - u0_4 = 0.00125F * (real32_T)rtb_Sum_jvo; - - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant' */ *rty_C2_out = *rtu_C2_in; rty_C2_out->rc.id = rtu_id; @@ -2331,13 +2328,13 @@ void SIL_valid(const C2 *rtu_C2_in, uint8_T rtu_id, const uint16_T rtu_channels /* Saturate: '/Saturation1' */ if (u0 > 1.0F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rty_C2_out->rc.roll_cmd = 1.0F; } else if (u0 < -1.0F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rty_C2_out->rc.roll_cmd = -1.0F; } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rty_C2_out->rc.roll_cmd = u0; } @@ -2345,13 +2342,13 @@ void SIL_valid(const C2 *rtu_C2_in, uint8_T rtu_id, const uint16_T rtu_channels /* Saturate: '/Saturation1' */ if (u0_0 > 1.0F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rty_C2_out->rc.pitch_cmd = 1.0F; } else if (u0_0 < -1.0F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rty_C2_out->rc.pitch_cmd = -1.0F; } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rty_C2_out->rc.pitch_cmd = u0_0; } @@ -2359,13 +2356,13 @@ void SIL_valid(const C2 *rtu_C2_in, uint8_T rtu_id, const uint16_T rtu_channels /* Saturate: '/Saturation1' */ if (u0_1 > 1.0F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rty_C2_out->rc.throttle_cmd = 1.0F; } else if (u0_1 < -0.25F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rty_C2_out->rc.throttle_cmd = -0.25F; } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rty_C2_out->rc.throttle_cmd = u0_1; } @@ -2373,53 +2370,26 @@ void SIL_valid(const C2 *rtu_C2_in, uint8_T rtu_id, const uint16_T rtu_channels /* Saturate: '/Saturation1' */ if (u0_2 > 1.0F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rty_C2_out->rc.yaw_cmd = 1.0F; } else if (u0_2 < -1.0F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rty_C2_out->rc.yaw_cmd = -1.0F; } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rty_C2_out->rc.yaw_cmd = u0_2; } /* End of Saturate: '/Saturation1' */ - /* BusAssignment: '/Bus Assignment' */ - rty_C2_out->rc.gear_up = rtb_out_bb; - rty_C2_out->rc.brake = rtb_out_fl; - - /* Saturate: '/Saturation1' */ - if (u0_3 > 1.0F) { - /* BusAssignment: '/Bus Assignment' */ - rty_C2_out->rc.flap = 1.0F; - } else if (u0_3 < 0.0F) { - /* BusAssignment: '/Bus Assignment' */ - rty_C2_out->rc.flap = 0.0F; - } else { - /* BusAssignment: '/Bus Assignment' */ - rty_C2_out->rc.flap = u0_3; + /* BusAssignment: '/Bus Assignment' */ + rty_C2_out->rc.auto_mode = rtb_out_br; + rty_C2_out->rc.aux_mode = rtb_out_al; + rty_C2_out->rc.gear_up = rtb_out_et; + rty_C2_out->rc.brake = rtb_out_cvu; + for (i = 0; i < 18; i++) { + rty_C2_out->rc.chan_raw[i] = rtu_channels[i]; } - - /* End of Saturate: '/Saturation1' */ - - /* BusAssignment: '/Bus Assignment' */ - rty_C2_out->rc.auto_mode = rtb_out_io; - rty_C2_out->rc.aux_mode = rtb_out_i4; - - /* Saturate: '/Saturation1' */ - if (u0_4 > 1.0F) { - /* BusAssignment: '/Bus Assignment' */ - rty_C2_out->rc.ele_cmd = 1.0F; - } else if (u0_4 < 0.0F) { - /* BusAssignment: '/Bus Assignment' */ - rty_C2_out->rc.ele_cmd = 0.0F; - } else { - /* BusAssignment: '/Bus Assignment' */ - rty_C2_out->rc.ele_cmd = u0_4; - } - - /* End of Saturate: '/Saturation1' */ } /* @@ -5947,7 +5917,7 @@ int32_T SIL_Chart_send_ack_SendData(const CommandAck *data_toSend) /* Function for Chart: '/proc_cmd' */ static void SIL_sf_msg_send_ack(void) { - SIL_Chart_send_ack_SendData(&SIL_DW.ack_msgData_i); + SIL_Chart_send_ack_SendData(&SIL_DW.ack_msgData_l); } CommandMsg *SIL_allocMemPool(MemPool_CommandMsg *memPool) @@ -6039,17 +6009,17 @@ static void SIL_parachute(void) SIL_DW.is_c59_kb3_autopilot = SIL_IN_cover; SIL_DW.temporalCounter_i2 = 0U; SIL_B.recovery_out = 3U; - SIL_DW.is_cover = SIL_IN_one_p; - SIL_DW.temporalCounter_i1_m3 = 0U; + SIL_DW.is_cover = SIL_IN_one_g; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 5U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; } else { switch (SIL_DW.is_parachute) { case SIL_IN_one: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { + if (SIL_DW.temporalCounter_i1_es >= 30U) { SIL_DW.is_parachute = SIL_IN_two; - SIL_DW.temporalCounter_i1_m3 = 0U; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 3U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -6067,7 +6037,7 @@ static void SIL_parachute(void) break; default: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { + if (SIL_DW.temporalCounter_i1_es >= 30U) { SIL_DW.is_parachute = SIL_IN_three; SIL_B.ch_out = 3U; SIL_B.peroid_out = 50U; @@ -6090,7 +6060,7 @@ static void SIL_Idle(void) SIL_DW.temporalCounter_i2 = 0U; SIL_B.recovery_out = 1U; SIL_DW.is_parachute = SIL_IN_one; - SIL_DW.temporalCounter_i1_m3 = 0U; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 3U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -9126,8 +9096,7 @@ void SIL_step(void) real32_T rtb_Merge_h_rc_roll_cmd; real32_T rtb_Merge_h_rc_yaw_cmd; real32_T rtb_Merge_h_rc_throttle_cmd; - real32_T rtb_Merge_h_rc_ele_cmd; - real32_T rtb_Merge_h_rc_flap; + uint16_T rtb_Merge_h_rc_chan_raw[18]; uint8_T rtb_Merge_h_rc_auto_mode; uint8_T rtb_Merge_h_rc_aux_mode; uint8_T rtb_Merge_h_rc_id; @@ -9183,6 +9152,11 @@ void SIL_step(void) real32_T rtb_Merge_h_trim_aoa; real32_T rtb_Merge_h_trim_aos; ENUM_BIT_MODE rtb_Merge_h_BIT_MODE; + uint8_T rtb_Merge_h_act_sw_chan; + real32_T rtb_Merge_h_act_sw_amp; + real32_T rtb_Merge_h_act_sw_freq0; + real32_T rtb_Merge_h_act_sw_freq1; + real32_T rtb_Merge_h_act_sw_k; real32_T rtb_Sum1_oz; real32_T rtb_posv_g; real32_T rtb_Product1_d; @@ -9220,8 +9194,7 @@ void SIL_step(void) real32_T rtb_Merge_nh_rc_roll_cmd; real32_T rtb_Merge_nh_rc_yaw_cmd; real32_T rtb_Merge_nh_rc_throttle_cmd; - real32_T rtb_Merge_nh_rc_ele_cmd; - real32_T rtb_Merge_nh_rc_flap; + uint16_T rtb_Merge_nh_rc_chan_raw[18]; uint8_T rtb_Merge_nh_rc_auto_mode; uint8_T rtb_Merge_nh_rc_aux_mode; uint8_T rtb_Merge_nh_rc_id; @@ -9277,6 +9250,11 @@ void SIL_step(void) real32_T rtb_Merge_nh_trim_aoa; real32_T rtb_Merge_nh_trim_aos; ENUM_BIT_MODE rtb_Merge_nh_BIT_MODE; + uint8_T rtb_Merge_nh_act_sw_chan; + real32_T rtb_Merge_nh_act_sw_amp; + real32_T rtb_Merge_nh_act_sw_freq0; + real32_T rtb_Merge_nh_act_sw_freq1; + real32_T rtb_Merge_nh_act_sw_k; real32_T rtb_Merge_m_dr_c; real32_T rtb_Merge_m_del_c; real32_T rtb_Merge_m_der_c; @@ -9310,8 +9288,7 @@ void SIL_step(void) real32_T rtb_Merge_m_rc_roll_cmd; real32_T rtb_Merge_m_rc_yaw_cmd; real32_T rtb_Merge_m_rc_throttle_cmd; - real32_T rtb_Merge_m_rc_ele_cmd; - real32_T rtb_Merge_m_rc_flap; + uint16_T rtb_Merge_m_rc_chan_raw[18]; uint8_T rtb_Merge_m_rc_auto_mode; uint8_T rtb_Merge_m_rc_aux_mode; uint8_T rtb_Merge_m_rc_id; @@ -9368,6 +9345,11 @@ void SIL_step(void) real32_T rtb_Merge_m_trim_aoa; real32_T rtb_Merge_m_trim_aos; ENUM_BIT_MODE rtb_Merge_m_BIT_MODE; + uint8_T rtb_Merge_m_act_sw_chan; + real32_T rtb_Merge_m_act_sw_amp; + real32_T rtb_Merge_m_act_sw_freq0; + real32_T rtb_Merge_m_act_sw_freq1; + real32_T rtb_Merge_m_act_sw_k; real32_T rtb_Merge_f_dr_c; real32_T rtb_Merge_f_da_c; real32_T rtb_Merge_f_del_c; @@ -9402,8 +9384,7 @@ void SIL_step(void) real32_T rtb_Merge_f_rc_roll_cmd; real32_T rtb_Merge_f_rc_yaw_cmd; real32_T rtb_Merge_f_rc_throttle_cmd; - real32_T rtb_Merge_f_rc_ele_cmd; - real32_T rtb_Merge_f_rc_flap; + uint16_T rtb_Merge_f_rc_chan_raw[18]; uint8_T rtb_Merge_f_rc_auto_mode; uint8_T rtb_Merge_f_rc_aux_mode; uint8_T rtb_Merge_f_rc_id; @@ -9461,6 +9442,11 @@ void SIL_step(void) real32_T rtb_Merge_f_trim_aoa; real32_T rtb_Merge_f_trim_aos; ENUM_BIT_MODE rtb_Merge_f_BIT_MODE; + uint8_T rtb_Merge_f_act_sw_chan; + real32_T rtb_Merge_f_act_sw_amp; + real32_T rtb_Merge_f_act_sw_freq0; + real32_T rtb_Merge_f_act_sw_freq1; + real32_T rtb_Merge_f_act_sw_k; real32_T rtb_Merge_h0_dr_c; real32_T rtb_Merge_h0_de_c; real32_T rtb_Merge_h0_da_c; @@ -9496,8 +9482,7 @@ void SIL_step(void) real32_T rtb_Merge_h0_rc_roll_cmd; real32_T rtb_Merge_h0_rc_yaw_cmd; real32_T rtb_Merge_h0_rc_throttle_cmd; - real32_T rtb_Merge_h0_rc_ele_cmd; - real32_T rtb_Merge_h0_rc_flap; + uint16_T rtb_Merge_h0_rc_chan_raw[18]; uint8_T rtb_Merge_h0_rc_auto_mode; uint8_T rtb_Merge_h0_rc_aux_mode; uint8_T rtb_Merge_h0_rc_id; @@ -9555,7 +9540,12 @@ void SIL_step(void) real32_T rtb_Merge_h0_trim_aoa; real32_T rtb_Merge_h0_trim_aos; ENUM_BIT_MODE rtb_Merge_h0_BIT_MODE; - uint32_T rtb_out_pn; + uint8_T rtb_Merge_h0_act_sw_chan; + real32_T rtb_Merge_h0_act_sw_amp; + real32_T rtb_Merge_h0_act_sw_freq0; + real32_T rtb_Merge_h0_act_sw_freq1; + real32_T rtb_Merge_h0_act_sw_k; + uint32_T rtb_out_kt; ENUM_BIT_MODE rtb_MultiportSwitch; real32_T rtb_Switch_fp; real32_T rtb_Gain1_o0[5]; @@ -12925,14 +12915,14 @@ void SIL_step(void) if (SIL_DW.is_active_c8_ins_lib == 0U) { SIL_DW.is_active_c8_ins_lib = 1U; SIL_DW.is_c8_ins_lib = SIL_IN_Invalid; - SIL_B.valid_a = false; + SIL_B.valid_ae = false; SIL_DW.cnt_f = 0U; } else { guard1 = false; guard2 = false; switch (SIL_DW.is_c8_ins_lib) { case SIL_IN_Invalid: - SIL_B.valid_a = false; + SIL_B.valid_ae = false; if (SIL_B.enabled_d) { if ((SIL_B.OutportBuffer_InsertedFor_satnum_used_at_inport_0 > 6) && ((SIL_B.OutportBuffer_InsertedFor_gps_pos_status_at_inport_0 & @@ -12940,7 +12930,7 @@ void SIL_step(void) if (SIL_DW.cnt_f > 10) { SIL_DW.is_c8_ins_lib = SIL_IN_Valid; SIL_DW.temporalCounter_i1_m = 0U; - SIL_B.valid_a = true; + SIL_B.valid_ae = true; } else { SIL_DW.is_c8_ins_lib = SIL_IN_Testing; SIL_DW.temporalCounter_i1_m = 0U; @@ -12948,7 +12938,7 @@ void SIL_step(void) } } else { SIL_DW.is_c8_ins_lib = SIL_IN_Invalid; - SIL_B.valid_a = false; + SIL_B.valid_ae = false; SIL_DW.cnt_f = 0U; } } @@ -12962,7 +12952,7 @@ void SIL_step(void) if (SIL_DW.cnt_f > 10) { SIL_DW.is_c8_ins_lib = SIL_IN_Valid; SIL_DW.temporalCounter_i1_m = 0U; - SIL_B.valid_a = true; + SIL_B.valid_ae = true; } else { SIL_DW.is_c8_ins_lib = SIL_IN_Testing; SIL_DW.temporalCounter_i1_m = 0U; @@ -12979,7 +12969,7 @@ void SIL_step(void) break; default: - SIL_B.valid_a = true; + SIL_B.valid_ae = true; if (SIL_B.enabled_d) { if ((SIL_B.OutportBuffer_InsertedFor_satnum_used_at_inport_0 > 6) && ((SIL_B.OutportBuffer_InsertedFor_gps_pos_status_at_inport_0 & @@ -12987,7 +12977,7 @@ void SIL_step(void) if (SIL_DW.cnt_f > 10) { SIL_DW.is_c8_ins_lib = SIL_IN_Valid; SIL_DW.temporalCounter_i1_m = 0U; - SIL_B.valid_a = true; + SIL_B.valid_ae = true; } else { SIL_DW.is_c8_ins_lib = SIL_IN_Testing; SIL_DW.temporalCounter_i1_m = 0U; @@ -13006,13 +12996,13 @@ void SIL_step(void) if (guard2) { SIL_DW.is_c8_ins_lib = SIL_IN_Invalid; - SIL_B.valid_a = false; + SIL_B.valid_ae = false; SIL_DW.cnt_f = 0U; } if (guard1) { SIL_DW.is_c8_ins_lib = SIL_IN_Invalid; - SIL_B.valid_a = false; + SIL_B.valid_ae = false; SIL_DW.cnt_f = 0U; } } @@ -13024,7 +13014,7 @@ void SIL_step(void) * RelationalOperator: '/Compare' * S-Function (sfix_bitop): '/Bitwise AND' */ - SIL_B.LogicalOperator = (SIL_B.valid_a && SIL_B.enabled_l && + SIL_B.LogicalOperator = (SIL_B.valid_ae && SIL_B.enabled_l && ((SIL_B.OutportBuffer_InsertedFor_gps_vel_status_at_inport_0 & 63U) == 0U)); @@ -13579,7 +13569,7 @@ void SIL_step(void) * RelationalOperator: '/Compare' * S-Function (sfix_bitop): '/Bitwise AND1' */ - SIL_B.hdg_ariv = (SIL_B.valid_a && SIL_B.enabled_m && + SIL_B.hdg_ariv = (SIL_B.valid_ae && SIL_B.enabled_m && ((SIL_B.OutportBuffer_InsertedFor_gps_hdg_status_at_inport_0 & 63U) == 0U)); @@ -13674,7 +13664,7 @@ void SIL_step(void) */ s285_iter = SIL_DW.If_ActiveSubsystem_i; if (rtmIsMajorTimeStep(SIL_M)) { - SIL_DW.If_ActiveSubsystem_i = (int8_T)((!SIL_B.valid_a) || + SIL_DW.If_ActiveSubsystem_i = (int8_T)((!SIL_B.valid_ae) || (!SIL_B.enabled_d)); } @@ -14136,32 +14126,32 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * Constant: '/Constant3' */ - if (SIL_DW.temporalCounter_i1_c < 255U) { - SIL_DW.temporalCounter_i1_c++; + if (SIL_DW.temporalCounter_i1_kg < 255U) { + SIL_DW.temporalCounter_i1_kg++; } if (SIL_DW.is_active_c39_kb3_autopilot == 0U) { SIL_DW.is_active_c39_kb3_autopilot = 1U; SIL_DW.is_c39_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_d = SIL_B.good_n; + SIL_DW.last_seq_h = SIL_B.good_n; idx = 0; } else if (SIL_DW.is_c39_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_d != SIL_B.good_n) { + if (SIL_DW.last_seq_h != SIL_B.good_n) { SIL_DW.is_c39_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_c = 0U; + SIL_DW.temporalCounter_i1_kg = 0U; idx = 1; - SIL_DW.last_seq_d = SIL_B.good_n; + SIL_DW.last_seq_h = SIL_B.good_n; } else { idx = 0; } - } else if (SIL_DW.last_seq_d != SIL_B.good_n) { + } else if (SIL_DW.last_seq_h != SIL_B.good_n) { SIL_DW.is_c39_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_c = 0U; + SIL_DW.temporalCounter_i1_kg = 0U; idx = 1; - SIL_DW.last_seq_d = SIL_B.good_n; - } else if (SIL_DW.temporalCounter_i1_c >= 200U) { + SIL_DW.last_seq_h = SIL_B.good_n; + } else if (SIL_DW.temporalCounter_i1_kg >= 200U) { SIL_DW.is_c39_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_d = SIL_B.good_n; + SIL_DW.last_seq_h = SIL_B.good_n; idx = 0; } else { idx = 1; @@ -14170,29 +14160,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_di < 255U) { - SIL_DW.temporalCounter_i1_di++; + if (SIL_DW.temporalCounter_i1_i < 255U) { + SIL_DW.temporalCounter_i1_i++; } if (SIL_DW.is_active_c41_kb3_autopilot == 0U) { SIL_DW.is_active_c41_kb3_autopilot = 1U; SIL_DW.is_c41_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_m0 = SIL_B.good_h; + SIL_DW.last_seq_l = SIL_B.good_h; } else if (SIL_DW.is_c41_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_m0 != SIL_B.good_h) { + if (SIL_DW.last_seq_l != SIL_B.good_h) { SIL_DW.is_c41_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_di = 0U; + SIL_DW.temporalCounter_i1_i = 0U; idx |= 2U; - SIL_DW.last_seq_m0 = SIL_B.good_h; + SIL_DW.last_seq_l = SIL_B.good_h; } - } else if (SIL_DW.last_seq_m0 != SIL_B.good_h) { + } else if (SIL_DW.last_seq_l != SIL_B.good_h) { SIL_DW.is_c41_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_di = 0U; + SIL_DW.temporalCounter_i1_i = 0U; idx |= 2U; - SIL_DW.last_seq_m0 = SIL_B.good_h; - } else if (SIL_DW.temporalCounter_i1_di >= 200U) { + SIL_DW.last_seq_l = SIL_B.good_h; + } else if (SIL_DW.temporalCounter_i1_i >= 200U) { SIL_DW.is_c41_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_m0 = SIL_B.good_h; + SIL_DW.last_seq_l = SIL_B.good_h; } else { idx |= 2U; } @@ -14200,29 +14190,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_d < 255U) { - SIL_DW.temporalCounter_i1_d++; + if (SIL_DW.temporalCounter_i1_eh < 255U) { + SIL_DW.temporalCounter_i1_eh++; } if (SIL_DW.is_active_c42_kb3_autopilot == 0U) { SIL_DW.is_active_c42_kb3_autopilot = 1U; SIL_DW.is_c42_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_c = SIL_B.good_d; + SIL_DW.last_seq_g = SIL_B.good_d; } else if (SIL_DW.is_c42_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_c != SIL_B.good_d) { + if (SIL_DW.last_seq_g != SIL_B.good_d) { SIL_DW.is_c42_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_d = 0U; + SIL_DW.temporalCounter_i1_eh = 0U; idx |= 4U; - SIL_DW.last_seq_c = SIL_B.good_d; + SIL_DW.last_seq_g = SIL_B.good_d; } - } else if (SIL_DW.last_seq_c != SIL_B.good_d) { + } else if (SIL_DW.last_seq_g != SIL_B.good_d) { SIL_DW.is_c42_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_d = 0U; + SIL_DW.temporalCounter_i1_eh = 0U; idx |= 4U; - SIL_DW.last_seq_c = SIL_B.good_d; - } else if (SIL_DW.temporalCounter_i1_d >= 200U) { + SIL_DW.last_seq_g = SIL_B.good_d; + } else if (SIL_DW.temporalCounter_i1_eh >= 200U) { SIL_DW.is_c42_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_c = SIL_B.good_d; + SIL_DW.last_seq_g = SIL_B.good_d; } else { idx |= 4U; } @@ -14230,29 +14220,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_mr < 255U) { - SIL_DW.temporalCounter_i1_mr++; + if (SIL_DW.temporalCounter_i1_b < 255U) { + SIL_DW.temporalCounter_i1_b++; } if (SIL_DW.is_active_c44_kb3_autopilot == 0U) { SIL_DW.is_active_c44_kb3_autopilot = 1U; SIL_DW.is_c44_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_hi = SIL_B.good_l; + SIL_DW.last_seq_b = SIL_B.good_l; } else if (SIL_DW.is_c44_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_hi != SIL_B.good_l) { + if (SIL_DW.last_seq_b != SIL_B.good_l) { SIL_DW.is_c44_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_mr = 0U; + SIL_DW.temporalCounter_i1_b = 0U; idx |= 8U; - SIL_DW.last_seq_hi = SIL_B.good_l; + SIL_DW.last_seq_b = SIL_B.good_l; } - } else if (SIL_DW.last_seq_hi != SIL_B.good_l) { + } else if (SIL_DW.last_seq_b != SIL_B.good_l) { SIL_DW.is_c44_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_mr = 0U; + SIL_DW.temporalCounter_i1_b = 0U; idx |= 8U; - SIL_DW.last_seq_hi = SIL_B.good_l; - } else if (SIL_DW.temporalCounter_i1_mr >= 200U) { + SIL_DW.last_seq_b = SIL_B.good_l; + } else if (SIL_DW.temporalCounter_i1_b >= 200U) { SIL_DW.is_c44_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_hi = SIL_B.good_l; + SIL_DW.last_seq_b = SIL_B.good_l; } else { idx |= 8U; } @@ -14260,29 +14250,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_k < 255U) { - SIL_DW.temporalCounter_i1_k++; + if (SIL_DW.temporalCounter_i1_jr < 255U) { + SIL_DW.temporalCounter_i1_jr++; } if (SIL_DW.is_active_c48_kb3_autopilot == 0U) { SIL_DW.is_active_c48_kb3_autopilot = 1U; SIL_DW.is_c48_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_hx = SIL_B.good_g; + SIL_DW.last_seq_p = SIL_B.good_g; } else if (SIL_DW.is_c48_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_hx != SIL_B.good_g) { + if (SIL_DW.last_seq_p != SIL_B.good_g) { SIL_DW.is_c48_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_k = 0U; + SIL_DW.temporalCounter_i1_jr = 0U; idx |= 16U; - SIL_DW.last_seq_hx = SIL_B.good_g; + SIL_DW.last_seq_p = SIL_B.good_g; } - } else if (SIL_DW.last_seq_hx != SIL_B.good_g) { + } else if (SIL_DW.last_seq_p != SIL_B.good_g) { SIL_DW.is_c48_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_k = 0U; + SIL_DW.temporalCounter_i1_jr = 0U; idx |= 16U; - SIL_DW.last_seq_hx = SIL_B.good_g; - } else if (SIL_DW.temporalCounter_i1_k >= 200U) { + SIL_DW.last_seq_p = SIL_B.good_g; + } else if (SIL_DW.temporalCounter_i1_jr >= 200U) { SIL_DW.is_c48_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_hx = SIL_B.good_g; + SIL_DW.last_seq_p = SIL_B.good_g; } else { idx |= 16U; } @@ -14290,29 +14280,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_mq < 255U) { - SIL_DW.temporalCounter_i1_mq++; + if (SIL_DW.temporalCounter_i1_k < 255U) { + SIL_DW.temporalCounter_i1_k++; } if (SIL_DW.is_active_c49_kb3_autopilot == 0U) { SIL_DW.is_active_c49_kb3_autopilot = 1U; SIL_DW.is_c49_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_m = SIL_B.good_he; + SIL_DW.last_seq_o = SIL_B.good_he; } else if (SIL_DW.is_c49_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_m != SIL_B.good_he) { + if (SIL_DW.last_seq_o != SIL_B.good_he) { SIL_DW.is_c49_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_mq = 0U; + SIL_DW.temporalCounter_i1_k = 0U; idx |= 32U; - SIL_DW.last_seq_m = SIL_B.good_he; + SIL_DW.last_seq_o = SIL_B.good_he; } - } else if (SIL_DW.last_seq_m != SIL_B.good_he) { + } else if (SIL_DW.last_seq_o != SIL_B.good_he) { SIL_DW.is_c49_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_mq = 0U; + SIL_DW.temporalCounter_i1_k = 0U; idx |= 32U; - SIL_DW.last_seq_m = SIL_B.good_he; - } else if (SIL_DW.temporalCounter_i1_mq >= 200U) { + SIL_DW.last_seq_o = SIL_B.good_he; + } else if (SIL_DW.temporalCounter_i1_k >= 200U) { SIL_DW.is_c49_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_m = SIL_B.good_he; + SIL_DW.last_seq_o = SIL_B.good_he; } else { idx |= 32U; } @@ -14322,29 +14312,29 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_il < 255U) { - SIL_DW.temporalCounter_i1_il++; + if (SIL_DW.temporalCounter_i1_j < 255U) { + SIL_DW.temporalCounter_i1_j++; } if (SIL_DW.is_active_c50_kb3_autopilot == 0U) { SIL_DW.is_active_c50_kb3_autopilot = 1U; SIL_DW.is_c50_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_h = SIL_DW.UnitDelay_DSTATE_h; + SIL_DW.last_seq_n = SIL_DW.UnitDelay_DSTATE_h; } else if (SIL_DW.is_c50_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_h != SIL_DW.UnitDelay_DSTATE_h) { + if (SIL_DW.last_seq_n != SIL_DW.UnitDelay_DSTATE_h) { SIL_DW.is_c50_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_il = 0U; + SIL_DW.temporalCounter_i1_j = 0U; idx |= 64U; - SIL_DW.last_seq_h = SIL_DW.UnitDelay_DSTATE_h; + SIL_DW.last_seq_n = SIL_DW.UnitDelay_DSTATE_h; } - } else if (SIL_DW.last_seq_h != SIL_DW.UnitDelay_DSTATE_h) { + } else if (SIL_DW.last_seq_n != SIL_DW.UnitDelay_DSTATE_h) { SIL_DW.is_c50_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_il = 0U; + SIL_DW.temporalCounter_i1_j = 0U; idx |= 64U; - SIL_DW.last_seq_h = SIL_DW.UnitDelay_DSTATE_h; - } else if (SIL_DW.temporalCounter_i1_il >= 200U) { + SIL_DW.last_seq_n = SIL_DW.UnitDelay_DSTATE_h; + } else if (SIL_DW.temporalCounter_i1_j >= 200U) { SIL_DW.is_c50_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_h = SIL_DW.UnitDelay_DSTATE_h; + SIL_DW.last_seq_n = SIL_DW.UnitDelay_DSTATE_h; } else { idx |= 64U; } @@ -14354,29 +14344,29 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_em < 255U) { - SIL_DW.temporalCounter_i1_em++; + if (SIL_DW.temporalCounter_i1_ek < 255U) { + SIL_DW.temporalCounter_i1_ek++; } if (SIL_DW.is_active_c60_kb3_autopilot == 0U) { SIL_DW.is_active_c60_kb3_autopilot = 1U; SIL_DW.is_c60_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_e = SIL_DW.UnitDelay_DSTATE_c3; + SIL_DW.last_seq_m = SIL_DW.UnitDelay_DSTATE_c3; } else if (SIL_DW.is_c60_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_e != SIL_DW.UnitDelay_DSTATE_c3) { + if (SIL_DW.last_seq_m != SIL_DW.UnitDelay_DSTATE_c3) { SIL_DW.is_c60_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_em = 0U; + SIL_DW.temporalCounter_i1_ek = 0U; idx |= 128U; - SIL_DW.last_seq_e = SIL_DW.UnitDelay_DSTATE_c3; + SIL_DW.last_seq_m = SIL_DW.UnitDelay_DSTATE_c3; } - } else if (SIL_DW.last_seq_e != SIL_DW.UnitDelay_DSTATE_c3) { + } else if (SIL_DW.last_seq_m != SIL_DW.UnitDelay_DSTATE_c3) { SIL_DW.is_c60_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_em = 0U; + SIL_DW.temporalCounter_i1_ek = 0U; idx |= 128U; - SIL_DW.last_seq_e = SIL_DW.UnitDelay_DSTATE_c3; - } else if (SIL_DW.temporalCounter_i1_em >= 200U) { + SIL_DW.last_seq_m = SIL_DW.UnitDelay_DSTATE_c3; + } else if (SIL_DW.temporalCounter_i1_ek >= 200U) { SIL_DW.is_c60_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_e = SIL_DW.UnitDelay_DSTATE_c3; + SIL_DW.last_seq_m = SIL_DW.UnitDelay_DSTATE_c3; } else { idx |= 128U; } @@ -14386,8 +14376,8 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_ii < 255U) { - SIL_DW.temporalCounter_i1_ii++; + if (SIL_DW.temporalCounter_i1_af < 255U) { + SIL_DW.temporalCounter_i1_af++; } if (SIL_DW.is_active_c62_kb3_autopilot == 0U) { @@ -14397,16 +14387,16 @@ void SIL_step(void) } else if (SIL_DW.is_c62_kb3_autopilot == SIL_IN_bad) { if (SIL_DW.last_seq != SIL_DW.UnitDelay_DSTATE_b) { SIL_DW.is_c62_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_ii = 0U; + SIL_DW.temporalCounter_i1_af = 0U; idx |= 256U; SIL_DW.last_seq = SIL_DW.UnitDelay_DSTATE_b; } } else if (SIL_DW.last_seq != SIL_DW.UnitDelay_DSTATE_b) { SIL_DW.is_c62_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_ii = 0U; + SIL_DW.temporalCounter_i1_af = 0U; idx |= 256U; SIL_DW.last_seq = SIL_DW.UnitDelay_DSTATE_b; - } else if (SIL_DW.temporalCounter_i1_ii >= 200U) { + } else if (SIL_DW.temporalCounter_i1_af >= 200U) { SIL_DW.is_c62_kb3_autopilot = SIL_IN_bad; SIL_DW.last_seq = SIL_DW.UnitDelay_DSTATE_b; } else { @@ -14418,29 +14408,29 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_ix < 255U) { - SIL_DW.temporalCounter_i1_ix++; + if (SIL_DW.temporalCounter_i1_di < 255U) { + SIL_DW.temporalCounter_i1_di++; } if (SIL_DW.is_active_c45_kb3_autopilot == 0U) { SIL_DW.is_active_c45_kb3_autopilot = 1U; SIL_DW.is_c45_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_a = SIL_DW.UnitDelay_DSTATE_oi; + SIL_DW.last_seq_gg = SIL_DW.UnitDelay_DSTATE_oi; } else if (SIL_DW.is_c45_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_a != SIL_DW.UnitDelay_DSTATE_oi) { + if (SIL_DW.last_seq_gg != SIL_DW.UnitDelay_DSTATE_oi) { SIL_DW.is_c45_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_ix = 0U; + SIL_DW.temporalCounter_i1_di = 0U; idx |= 512U; - SIL_DW.last_seq_a = SIL_DW.UnitDelay_DSTATE_oi; + SIL_DW.last_seq_gg = SIL_DW.UnitDelay_DSTATE_oi; } - } else if (SIL_DW.last_seq_a != SIL_DW.UnitDelay_DSTATE_oi) { + } else if (SIL_DW.last_seq_gg != SIL_DW.UnitDelay_DSTATE_oi) { SIL_DW.is_c45_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_ix = 0U; + SIL_DW.temporalCounter_i1_di = 0U; idx |= 512U; - SIL_DW.last_seq_a = SIL_DW.UnitDelay_DSTATE_oi; - } else if (SIL_DW.temporalCounter_i1_ix >= 200U) { + SIL_DW.last_seq_gg = SIL_DW.UnitDelay_DSTATE_oi; + } else if (SIL_DW.temporalCounter_i1_di >= 200U) { SIL_DW.is_c45_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_a = SIL_DW.UnitDelay_DSTATE_oi; + SIL_DW.last_seq_gg = SIL_DW.UnitDelay_DSTATE_oi; } else { idx |= 512U; } @@ -14450,29 +14440,29 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_dt < 255U) { - SIL_DW.temporalCounter_i1_dt++; + if (SIL_DW.temporalCounter_i1_bq < 255U) { + SIL_DW.temporalCounter_i1_bq++; } if (SIL_DW.is_active_c46_kb3_autopilot == 0U) { SIL_DW.is_active_c46_kb3_autopilot = 1U; SIL_DW.is_c46_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_o = SIL_DW.UnitDelay_DSTATE_e; + SIL_DW.last_seq_ok = SIL_DW.UnitDelay_DSTATE_e; } else if (SIL_DW.is_c46_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_o != SIL_DW.UnitDelay_DSTATE_e) { + if (SIL_DW.last_seq_ok != SIL_DW.UnitDelay_DSTATE_e) { SIL_DW.is_c46_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_dt = 0U; + SIL_DW.temporalCounter_i1_bq = 0U; idx |= 1024U; - SIL_DW.last_seq_o = SIL_DW.UnitDelay_DSTATE_e; + SIL_DW.last_seq_ok = SIL_DW.UnitDelay_DSTATE_e; } - } else if (SIL_DW.last_seq_o != SIL_DW.UnitDelay_DSTATE_e) { + } else if (SIL_DW.last_seq_ok != SIL_DW.UnitDelay_DSTATE_e) { SIL_DW.is_c46_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_dt = 0U; + SIL_DW.temporalCounter_i1_bq = 0U; idx |= 1024U; - SIL_DW.last_seq_o = SIL_DW.UnitDelay_DSTATE_e; - } else if (SIL_DW.temporalCounter_i1_dt >= 200U) { + SIL_DW.last_seq_ok = SIL_DW.UnitDelay_DSTATE_e; + } else if (SIL_DW.temporalCounter_i1_bq >= 200U) { SIL_DW.is_c46_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_o = SIL_DW.UnitDelay_DSTATE_e; + SIL_DW.last_seq_ok = SIL_DW.UnitDelay_DSTATE_e; } else { idx |= 1024U; } @@ -14482,29 +14472,29 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_j < 255U) { - SIL_DW.temporalCounter_i1_j++; + if (SIL_DW.temporalCounter_i1_mm < 255U) { + SIL_DW.temporalCounter_i1_mm++; } if (SIL_DW.is_active_c47_kb3_autopilot == 0U) { SIL_DW.is_active_c47_kb3_autopilot = 1U; SIL_DW.is_c47_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_i = SIL_DW.UnitDelay_DSTATE_ci; + SIL_DW.last_seq_lc = SIL_DW.UnitDelay_DSTATE_ci; } else if (SIL_DW.is_c47_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_i != SIL_DW.UnitDelay_DSTATE_ci) { + if (SIL_DW.last_seq_lc != SIL_DW.UnitDelay_DSTATE_ci) { SIL_DW.is_c47_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_j = 0U; + SIL_DW.temporalCounter_i1_mm = 0U; idx |= 2048U; - SIL_DW.last_seq_i = SIL_DW.UnitDelay_DSTATE_ci; + SIL_DW.last_seq_lc = SIL_DW.UnitDelay_DSTATE_ci; } - } else if (SIL_DW.last_seq_i != SIL_DW.UnitDelay_DSTATE_ci) { + } else if (SIL_DW.last_seq_lc != SIL_DW.UnitDelay_DSTATE_ci) { SIL_DW.is_c47_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_j = 0U; + SIL_DW.temporalCounter_i1_mm = 0U; idx |= 2048U; - SIL_DW.last_seq_i = SIL_DW.UnitDelay_DSTATE_ci; - } else if (SIL_DW.temporalCounter_i1_j >= 200U) { + SIL_DW.last_seq_lc = SIL_DW.UnitDelay_DSTATE_ci; + } else if (SIL_DW.temporalCounter_i1_mm >= 200U) { SIL_DW.is_c47_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_i = SIL_DW.UnitDelay_DSTATE_ci; + SIL_DW.last_seq_lc = SIL_DW.UnitDelay_DSTATE_ci; } else { idx |= 2048U; } @@ -14514,29 +14504,29 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_fp < 255U) { - SIL_DW.temporalCounter_i1_fp++; + if (SIL_DW.temporalCounter_i1_bg < 255U) { + SIL_DW.temporalCounter_i1_bg++; } if (SIL_DW.is_active_c54_kb3_autopilot == 0U) { SIL_DW.is_active_c54_kb3_autopilot = 1U; SIL_DW.is_c54_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_om = SIL_B.UnitDelay_f[0]; + SIL_DW.last_seq_e = SIL_B.UnitDelay_f[0]; } else if (SIL_DW.is_c54_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_om != SIL_B.UnitDelay_f[0]) { + if (SIL_DW.last_seq_e != SIL_B.UnitDelay_f[0]) { SIL_DW.is_c54_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_fp = 0U; + SIL_DW.temporalCounter_i1_bg = 0U; idx |= 8192U; - SIL_DW.last_seq_om = SIL_B.UnitDelay_f[0]; + SIL_DW.last_seq_e = SIL_B.UnitDelay_f[0]; } - } else if (SIL_DW.last_seq_om != SIL_B.UnitDelay_f[0]) { + } else if (SIL_DW.last_seq_e != SIL_B.UnitDelay_f[0]) { SIL_DW.is_c54_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_fp = 0U; + SIL_DW.temporalCounter_i1_bg = 0U; idx |= 8192U; - SIL_DW.last_seq_om = SIL_B.UnitDelay_f[0]; - } else if (SIL_DW.temporalCounter_i1_fp >= 200U) { + SIL_DW.last_seq_e = SIL_B.UnitDelay_f[0]; + } else if (SIL_DW.temporalCounter_i1_bg >= 200U) { SIL_DW.is_c54_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_om = SIL_B.UnitDelay_f[0]; + SIL_DW.last_seq_e = SIL_B.UnitDelay_f[0]; } else { idx |= 8192U; } @@ -14544,29 +14534,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_od < 255U) { - SIL_DW.temporalCounter_i1_od++; + if (SIL_DW.temporalCounter_i1_n < 255U) { + SIL_DW.temporalCounter_i1_n++; } if (SIL_DW.is_active_c55_kb3_autopilot == 0U) { SIL_DW.is_active_c55_kb3_autopilot = 1U; SIL_DW.is_c55_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_cb = SIL_B.UnitDelay_f[1]; + SIL_DW.last_seq_mk = SIL_B.UnitDelay_f[1]; } else if (SIL_DW.is_c55_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_cb != SIL_B.UnitDelay_f[1]) { + if (SIL_DW.last_seq_mk != SIL_B.UnitDelay_f[1]) { SIL_DW.is_c55_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_od = 0U; + SIL_DW.temporalCounter_i1_n = 0U; idx |= 16384U; - SIL_DW.last_seq_cb = SIL_B.UnitDelay_f[1]; + SIL_DW.last_seq_mk = SIL_B.UnitDelay_f[1]; } - } else if (SIL_DW.last_seq_cb != SIL_B.UnitDelay_f[1]) { + } else if (SIL_DW.last_seq_mk != SIL_B.UnitDelay_f[1]) { SIL_DW.is_c55_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_od = 0U; + SIL_DW.temporalCounter_i1_n = 0U; idx |= 16384U; - SIL_DW.last_seq_cb = SIL_B.UnitDelay_f[1]; - } else if (SIL_DW.temporalCounter_i1_od >= 200U) { + SIL_DW.last_seq_mk = SIL_B.UnitDelay_f[1]; + } else if (SIL_DW.temporalCounter_i1_n >= 200U) { SIL_DW.is_c55_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_cb = SIL_B.UnitDelay_f[1]; + SIL_DW.last_seq_mk = SIL_B.UnitDelay_f[1]; } else { idx |= 16384U; } @@ -14574,29 +14564,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_dj < 255U) { - SIL_DW.temporalCounter_i1_dj++; + if (SIL_DW.temporalCounter_i1_hi < 255U) { + SIL_DW.temporalCounter_i1_hi++; } if (SIL_DW.is_active_c56_kb3_autopilot == 0U) { SIL_DW.is_active_c56_kb3_autopilot = 1U; SIL_DW.is_c56_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_g = SIL_B.UnitDelay_f[2]; + SIL_DW.last_seq_o3 = SIL_B.UnitDelay_f[2]; } else if (SIL_DW.is_c56_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_g != SIL_B.UnitDelay_f[2]) { + if (SIL_DW.last_seq_o3 != SIL_B.UnitDelay_f[2]) { SIL_DW.is_c56_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_dj = 0U; + SIL_DW.temporalCounter_i1_hi = 0U; idx |= 32768U; - SIL_DW.last_seq_g = SIL_B.UnitDelay_f[2]; + SIL_DW.last_seq_o3 = SIL_B.UnitDelay_f[2]; } - } else if (SIL_DW.last_seq_g != SIL_B.UnitDelay_f[2]) { + } else if (SIL_DW.last_seq_o3 != SIL_B.UnitDelay_f[2]) { SIL_DW.is_c56_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_dj = 0U; + SIL_DW.temporalCounter_i1_hi = 0U; idx |= 32768U; - SIL_DW.last_seq_g = SIL_B.UnitDelay_f[2]; - } else if (SIL_DW.temporalCounter_i1_dj >= 200U) { + SIL_DW.last_seq_o3 = SIL_B.UnitDelay_f[2]; + } else if (SIL_DW.temporalCounter_i1_hi >= 200U) { SIL_DW.is_c56_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_g = SIL_B.UnitDelay_f[2]; + SIL_DW.last_seq_o3 = SIL_B.UnitDelay_f[2]; } else { idx |= 32768U; } @@ -14604,65 +14594,65 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_pa < 255U) { - SIL_DW.temporalCounter_i1_pa++; + if (SIL_DW.temporalCounter_i1_anr < 255U) { + SIL_DW.temporalCounter_i1_anr++; } if (SIL_DW.is_active_c57_kb3_autopilot == 0U) { SIL_DW.is_active_c57_kb3_autopilot = 1U; SIL_DW.is_c57_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_oy = SIL_B.UnitDelay_f[3]; - rtb_out_pn = (uint32_T)idx; + SIL_DW.last_seq_bp = SIL_B.UnitDelay_f[3]; + rtb_out_kt = (uint32_T)idx; } else if (SIL_DW.is_c57_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_oy != SIL_B.UnitDelay_f[3]) { + if (SIL_DW.last_seq_bp != SIL_B.UnitDelay_f[3]) { SIL_DW.is_c57_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_pa = 0U; - rtb_out_pn = idx | 65536U; - SIL_DW.last_seq_oy = SIL_B.UnitDelay_f[3]; + SIL_DW.temporalCounter_i1_anr = 0U; + rtb_out_kt = idx | 65536U; + SIL_DW.last_seq_bp = SIL_B.UnitDelay_f[3]; } else { - rtb_out_pn = (uint32_T)idx; + rtb_out_kt = (uint32_T)idx; } - } else if (SIL_DW.last_seq_oy != SIL_B.UnitDelay_f[3]) { + } else if (SIL_DW.last_seq_bp != SIL_B.UnitDelay_f[3]) { SIL_DW.is_c57_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_pa = 0U; - rtb_out_pn = idx | 65536U; - SIL_DW.last_seq_oy = SIL_B.UnitDelay_f[3]; - } else if (SIL_DW.temporalCounter_i1_pa >= 200U) { + SIL_DW.temporalCounter_i1_anr = 0U; + rtb_out_kt = idx | 65536U; + SIL_DW.last_seq_bp = SIL_B.UnitDelay_f[3]; + } else if (SIL_DW.temporalCounter_i1_anr >= 200U) { SIL_DW.is_c57_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_oy = SIL_B.UnitDelay_f[3]; - rtb_out_pn = (uint32_T)idx; + SIL_DW.last_seq_bp = SIL_B.UnitDelay_f[3]; + rtb_out_kt = (uint32_T)idx; } else { - rtb_out_pn = idx | 65536U; + rtb_out_kt = idx | 65536U; } /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_dq < 255U) { - SIL_DW.temporalCounter_i1_dq++; + if (SIL_DW.temporalCounter_i1_jl < 255U) { + SIL_DW.temporalCounter_i1_jl++; } if (SIL_DW.is_active_c58_kb3_autopilot == 0U) { SIL_DW.is_active_c58_kb3_autopilot = 1U; SIL_DW.is_c58_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_ce = SIL_B.UnitDelay_f[4]; + SIL_DW.last_seq_a = SIL_B.UnitDelay_f[4]; } else if (SIL_DW.is_c58_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_ce != SIL_B.UnitDelay_f[4]) { + if (SIL_DW.last_seq_a != SIL_B.UnitDelay_f[4]) { SIL_DW.is_c58_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_dq = 0U; - rtb_out_pn |= 131072U; - SIL_DW.last_seq_ce = SIL_B.UnitDelay_f[4]; + SIL_DW.temporalCounter_i1_jl = 0U; + rtb_out_kt |= 131072U; + SIL_DW.last_seq_a = SIL_B.UnitDelay_f[4]; } - } else if (SIL_DW.last_seq_ce != SIL_B.UnitDelay_f[4]) { + } else if (SIL_DW.last_seq_a != SIL_B.UnitDelay_f[4]) { SIL_DW.is_c58_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_dq = 0U; - rtb_out_pn |= 131072U; - SIL_DW.last_seq_ce = SIL_B.UnitDelay_f[4]; - } else if (SIL_DW.temporalCounter_i1_dq >= 200U) { + SIL_DW.temporalCounter_i1_jl = 0U; + rtb_out_kt |= 131072U; + SIL_DW.last_seq_a = SIL_B.UnitDelay_f[4]; + } else if (SIL_DW.temporalCounter_i1_jl >= 200U) { SIL_DW.is_c58_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_ce = SIL_B.UnitDelay_f[4]; + SIL_DW.last_seq_a = SIL_B.UnitDelay_f[4]; } else { - rtb_out_pn |= 131072U; + rtb_out_kt |= 131072U; } /* End of Chart: '/Chart' */ @@ -14671,35 +14661,35 @@ void SIL_step(void) * Chart: '/Chart' * DataStoreRead: '/Data Store Read' */ - rtb_out_pn = (uint32_T)(SIL_DW.CC.recovery & 15) << 18 | rtb_out_pn | + rtb_out_kt = (uint32_T)(SIL_DW.CC.recovery & 15) << 18 | rtb_out_kt | (uint32_T)(SIL_B.stats & 63) << 22; /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_fu < 255U) { - SIL_DW.temporalCounter_i1_fu++; + if (SIL_DW.temporalCounter_i1_h < 255U) { + SIL_DW.temporalCounter_i1_h++; } if (SIL_DW.is_active_c30_kb3_autopilot == 0U) { SIL_DW.is_active_c30_kb3_autopilot = 1U; SIL_DW.is_c30_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_b = SIL_B.good; + SIL_DW.last_seq_d = SIL_B.good; } else if (SIL_DW.is_c30_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_b != SIL_B.good) { + if (SIL_DW.last_seq_d != SIL_B.good) { SIL_DW.is_c30_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_fu = 0U; - rtb_out_pn |= 268435456U; - SIL_DW.last_seq_b = SIL_B.good; + SIL_DW.temporalCounter_i1_h = 0U; + rtb_out_kt |= 268435456U; + SIL_DW.last_seq_d = SIL_B.good; } - } else if (SIL_DW.last_seq_b != SIL_B.good) { + } else if (SIL_DW.last_seq_d != SIL_B.good) { SIL_DW.is_c30_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_fu = 0U; - rtb_out_pn |= 268435456U; - SIL_DW.last_seq_b = SIL_B.good; - } else if (SIL_DW.temporalCounter_i1_fu >= 200U) { + SIL_DW.temporalCounter_i1_h = 0U; + rtb_out_kt |= 268435456U; + SIL_DW.last_seq_d = SIL_B.good; + } else if (SIL_DW.temporalCounter_i1_h >= 200U) { SIL_DW.is_c30_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_b = SIL_B.good; + SIL_DW.last_seq_d = SIL_B.good; } else { - rtb_out_pn |= 268435456U; + rtb_out_kt |= 268435456U; } /* End of Chart: '/Chart' */ @@ -14707,8 +14697,8 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_a < 255U) { - SIL_DW.temporalCounter_i1_a++; + if (SIL_DW.temporalCounter_i1_an < 255U) { + SIL_DW.temporalCounter_i1_an++; } if (SIL_DW.is_active_c43_kb3_autopilot == 0U) { @@ -14719,37 +14709,37 @@ void SIL_step(void) /* BusAssignment: '/Bus Assignment' incorporates: * UnitDelay: '/Unit Delay' */ - SIL_B.BusAssignment_j.sensors_health = rtb_out_pn; + SIL_B.BusAssignment_j.sensors_health = rtb_out_kt; } else if (SIL_DW.is_c43_kb3_autopilot == SIL_IN_bad) { if (SIL_DW.last_seq_f != SIL_DW.UnitDelay_DSTATE_l5) { SIL_DW.is_c43_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_a = 0U; + SIL_DW.temporalCounter_i1_an = 0U; /* BusAssignment: '/Bus Assignment' */ - SIL_B.BusAssignment_j.sensors_health = rtb_out_pn | 536870912U; + SIL_B.BusAssignment_j.sensors_health = rtb_out_kt | 536870912U; SIL_DW.last_seq_f = SIL_DW.UnitDelay_DSTATE_l5; } else { /* BusAssignment: '/Bus Assignment' */ - SIL_B.BusAssignment_j.sensors_health = rtb_out_pn; + SIL_B.BusAssignment_j.sensors_health = rtb_out_kt; } } else if (SIL_DW.last_seq_f != SIL_DW.UnitDelay_DSTATE_l5) { SIL_DW.is_c43_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_a = 0U; + SIL_DW.temporalCounter_i1_an = 0U; /* BusAssignment: '/Bus Assignment' */ - SIL_B.BusAssignment_j.sensors_health = rtb_out_pn | 536870912U; + SIL_B.BusAssignment_j.sensors_health = rtb_out_kt | 536870912U; SIL_DW.last_seq_f = SIL_DW.UnitDelay_DSTATE_l5; - } else if (SIL_DW.temporalCounter_i1_a >= 200U) { + } else if (SIL_DW.temporalCounter_i1_an >= 200U) { SIL_DW.is_c43_kb3_autopilot = SIL_IN_bad; SIL_DW.last_seq_f = SIL_DW.UnitDelay_DSTATE_l5; /* BusAssignment: '/Bus Assignment' incorporates: * UnitDelay: '/Unit Delay' */ - SIL_B.BusAssignment_j.sensors_health = rtb_out_pn; + SIL_B.BusAssignment_j.sensors_health = rtb_out_kt; } else { /* BusAssignment: '/Bus Assignment' */ - SIL_B.BusAssignment_j.sensors_health = rtb_out_pn | 536870912U; + SIL_B.BusAssignment_j.sensors_health = rtb_out_kt | 536870912U; } /* End of Chart: '/Chart' */ @@ -14764,8 +14754,8 @@ void SIL_step(void) /* Chart: '/check_conn' incorporates: * UnitDelay: '/Unit Delay1' */ - if (SIL_DW.temporalCounter_i1_ff < 1023U) { - SIL_DW.temporalCounter_i1_ff++; + if (SIL_DW.temporalCounter_i1_f < 1023U) { + SIL_DW.temporalCounter_i1_f++; } if (SIL_DW.is_active_c13_C2_proc_comm == 0U) { @@ -14777,16 +14767,16 @@ void SIL_step(void) rtb_Compare_fv = false; if (SIL_DW.UnitDelay1_DSTATE != SIL_DW.last_cnt) { SIL_DW.is_c13_C2_proc_comm = SIL_IN_Linked_e; - SIL_DW.temporalCounter_i1_ff = 0U; + SIL_DW.temporalCounter_i1_f = 0U; rtb_Compare_fv = true; SIL_DW.last_cnt = SIL_DW.UnitDelay1_DSTATE; } } else { rtb_Compare_fv = true; - if (SIL_DW.temporalCounter_i1_ff >= 600U) { + if (SIL_DW.temporalCounter_i1_f >= 600U) { if (SIL_DW.UnitDelay1_DSTATE != SIL_DW.last_cnt) { SIL_DW.is_c13_C2_proc_comm = SIL_IN_Linked_e; - SIL_DW.temporalCounter_i1_ff = 0U; + SIL_DW.temporalCounter_i1_f = 0U; SIL_DW.last_cnt = SIL_DW.UnitDelay1_DSTATE; } else { SIL_DW.is_c13_C2_proc_comm = SIL_IN_LinkLoss; @@ -14818,47 +14808,47 @@ void SIL_step(void) /* Chart: '/valid_checking' incorporates: * Inport: '/sbus_in' */ - if (SIL_DW.temporalCounter_i1_cs < 255U) { - SIL_DW.temporalCounter_i1_cs++; + if (SIL_DW.temporalCounter_i1_d2 < 255U) { + SIL_DW.temporalCounter_i1_d2++; } - if (SIL_DW.is_active_c26_update_rc == 0U) { - SIL_DW.is_active_c26_update_rc = 1U; - SIL_DW.is_c26_update_rc = SIL_IN_disconnected; + if (SIL_DW.is_active_c43_update_rc == 0U) { + SIL_DW.is_active_c43_update_rc = 1U; + SIL_DW.is_c43_update_rc = SIL_IN_disconnected; SIL_DW.seq1 = SIL_U.sbus_in.seq; - SIL_B.valid_d = false; - SIL_DW.cnt_g = 0U; - } else if (SIL_DW.is_c26_update_rc == SIL_IN_connected) { + SIL_B.valid_l = false; + SIL_DW.cnt_e = 0U; + } else if (SIL_DW.is_c43_update_rc == SIL_IN_connected) { if ((SIL_DW.id1 == SIL_U.sbus_in.id) && (SIL_DW.seq1 != SIL_U.sbus_in.seq)) { - if (SIL_DW.cnt_g > 3) { - SIL_B.valid_d = SIL_U.sbus_in.valid; + if (SIL_DW.cnt_e > 3) { + SIL_B.valid_l = SIL_U.sbus_in.valid; } else { - idx = (int32_T)(SIL_DW.cnt_g + 1U); + idx = (int32_T)(SIL_DW.cnt_e + 1U); if ((uint32_T)idx > 255U) { idx = 255; } - SIL_DW.cnt_g = (uint8_T)idx; + SIL_DW.cnt_e = (uint8_T)idx; } - SIL_DW.is_c26_update_rc = SIL_IN_connected; - SIL_DW.temporalCounter_i1_cs = 0U; + SIL_DW.is_c43_update_rc = SIL_IN_connected; + SIL_DW.temporalCounter_i1_d2 = 0U; SIL_DW.id1 = SIL_U.sbus_in.id; SIL_DW.seq1 = SIL_U.sbus_in.seq; } else { - if (SIL_DW.temporalCounter_i1_cs >= 200U) { - SIL_DW.is_c26_update_rc = SIL_IN_disconnected; + if (SIL_DW.temporalCounter_i1_d2 >= 200U) { + SIL_DW.is_c43_update_rc = SIL_IN_disconnected; SIL_DW.seq1 = SIL_U.sbus_in.seq; - SIL_B.valid_d = false; - SIL_DW.cnt_g = 0U; + SIL_B.valid_l = false; + SIL_DW.cnt_e = 0U; } } } else { if ((!rtb_BusAssignment.rc.connected) && (SIL_DW.seq1 != SIL_U.sbus_in.seq)) { - SIL_DW.is_c26_update_rc = SIL_IN_connected; - SIL_DW.temporalCounter_i1_cs = 0U; + SIL_DW.is_c43_update_rc = SIL_IN_connected; + SIL_DW.temporalCounter_i1_d2 = 0U; SIL_DW.id1 = SIL_U.sbus_in.id; SIL_DW.seq1 = SIL_U.sbus_in.seq; } @@ -14868,13 +14858,13 @@ void SIL_step(void) /* If: '/If1' incorporates: * Inport: '/sbus_in' - * Inport: '/In1' + * Inport: '/In1' */ - SIL_DW.If1_ActiveSubsystem_j = (int8_T)!SIL_B.valid_d; + SIL_DW.If1_ActiveSubsystem_j = (int8_T)!SIL_B.valid_l; switch (SIL_DW.If1_ActiveSubsystem_j) { case 0: /* Outputs for IfAction SubSystem: '/valid' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ SIL_valid(&rtb_BusAssignment, SIL_U.sbus_in.id, SIL_U.sbus_in.channels, &rtb_Merge1); @@ -14884,7 +14874,7 @@ void SIL_step(void) case 1: /* Outputs for IfAction SubSystem: '/invalid' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ rtb_Merge1 = rtb_BusAssignment; @@ -14895,14 +14885,14 @@ void SIL_step(void) /* End of If: '/If1' */ /* If: '/If' incorporates: - * Inport: '/In1' + * Inport: '/In1' */ if (rtb_Compare_fv) { /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant' */ rtb_Merge = rtb_Merge1; rtb_Merge.linked = true; @@ -14910,7 +14900,7 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ rtb_Merge = rtb_Merge1; @@ -15137,13 +15127,13 @@ void SIL_step(void) } else { switch (SIL_DW.is_c15_kb3_autopilot) { case SIL_IN_Linked: - SIL_B.ack_b = true; + SIL_B.ack_l = true; SIL_DW.is_c15_kb3_autopilot = SIL_IN_idle_g; SIL_B.id = 0U; break; case SIL_IN_Linked2: - SIL_B.ack_b = false; + SIL_B.ack_l = false; SIL_DW.is_c15_kb3_autopilot = SIL_IN_idle_g; SIL_B.id = 0U; break; @@ -15153,21 +15143,21 @@ void SIL_step(void) SIL_DW.is_c15_kb3_autopilot = SIL_IN_Linked; SIL_B.id = ((CommandMsg *)SIL_DW.cmd_msgDataPtr)->id; for (idx = 0; idx < 7; idx++) { - SIL_B.params_f[idx] = ((CommandMsg *)SIL_DW.cmd_msgDataPtr) + SIL_B.params_c[idx] = ((CommandMsg *)SIL_DW.cmd_msgDataPtr) ->params[idx]; } - SIL_B.ack_b = true; + SIL_B.ack_l = true; } else { if (SIL_sf_msg_pop_cmd2()) { SIL_DW.is_c15_kb3_autopilot = SIL_IN_Linked2; SIL_B.id = ((CommandMsg *)SIL_DW.cmd2_msgDataPtr)->id; for (idx = 0; idx < 7; idx++) { - SIL_B.params_f[idx] = ((CommandMsg *)SIL_DW.cmd2_msgDataPtr) + SIL_B.params_c[idx] = ((CommandMsg *)SIL_DW.cmd2_msgDataPtr) ->params[idx]; } - SIL_B.ack_b = false; + SIL_B.ack_l = false; } } break; @@ -15180,15 +15170,15 @@ void SIL_step(void) /* End of Chart: '/proc_cmd' */ /* Chart: '/Chart_proc_mission_upload' */ - if (SIL_DW.temporalCounter_i1_n < 255U) { - SIL_DW.temporalCounter_i1_n++; + if (SIL_DW.temporalCounter_i1_n3 < 255U) { + SIL_DW.temporalCounter_i1_n3++; } SIL_DW.mission_cnt_isValid = false; SIL_DW.mission_item_isValid = false; if (SIL_DW.is_active_c29_mavlink_utils == 0U) { SIL_DW.is_active_c29_mavlink_utils = 1U; - SIL_DW.is_c29_mavlink_utils = SIL_IN_Idle_p; + SIL_DW.is_c29_mavlink_utils = SIL_IN_Idle_e; SIL_B.enable_cnt = true; SIL_B.enable_item = false; } else { @@ -15196,7 +15186,7 @@ void SIL_step(void) guard2 = false; guard3 = false; guard4 = false; - if (SIL_DW.is_c29_mavlink_utils == SIL_IN_Idle_p) { + if (SIL_DW.is_c29_mavlink_utils == SIL_IN_Idle_e) { if (SIL_sf_msg_pop_mission_cnt()) { SIL_B.mission_type = ((mavlink_mission_count_t *) SIL_DW.mission_cnt_msgDataPtr)->mission_type; @@ -15213,7 +15203,7 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/dummy clear_mission' */ if (SIL_DW.count > 0) { SIL_DW.is_c29_mavlink_utils = SIL_IN_Uploading; - SIL_DW.temporalCounter_i1_n = 0U; + SIL_DW.temporalCounter_i1_n3 = 0U; SIL_DW.mission_req_int_msgData.seq = SIL_B.seq; SIL_DW.mission_req_int_msgData.mission_type = SIL_B.mission_type; SIL_sf_msg_send_mission_req_int(); @@ -15268,44 +15258,44 @@ void SIL_step(void) switch (SIL_B.mission_type) { case 1: if (SIL_B.seq < SIL_fence_default_len) { - SIL_B.ack_ip = 0U; + SIL_B.ack_i = 0U; SIL_DW.f.command = SIL_B.command; SIL_DW.f.param = SIL_B.param1; SIL_DW.f.latlon[0] = SIL_B.x; SIL_DW.f.latlon[1] = SIL_B.y; - rtb_out_pn = SIL_B.seq + 1U; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + rtb_out_kt = SIL_B.seq + 1U; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } - dummyFenceCount = (uint16_T)rtb_out_pn; + dummyFenceCount = (uint16_T)rtb_out_kt; dummyFence[dummyFenceCount - 1] = SIL_DW.f; } else { - SIL_B.ack_ip = 1U; + SIL_B.ack_i = 1U; } break; case 2: if (SIL_B.seq < SIL_rally_default_len) { - SIL_B.ack_ip = 0U; + SIL_B.ack_i = 0U; SIL_DW.r.latlon[0] = SIL_B.x; SIL_DW.r.latlon[1] = SIL_B.y; SIL_DW.r.alt = SIL_B.z; - rtb_out_pn = SIL_B.seq + 1U; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + rtb_out_kt = SIL_B.seq + 1U; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } - dummyRallyCount = (uint16_T)rtb_out_pn; + dummyRallyCount = (uint16_T)rtb_out_kt; dummyRally[dummyRallyCount - 1] = SIL_DW.r; } else { - SIL_B.ack_ip = 1U; + SIL_B.ack_i = 1U; } break; default: if (SIL_B.seq < SIL_mission_default_len) { - SIL_B.ack_ip = 0U; + SIL_B.ack_i = 0U; SIL_DW.m.frame = SIL_B.frame; SIL_DW.m.command = SIL_B.command; SIL_DW.m.autocont = SIL_B.autocontinue; @@ -15316,22 +15306,22 @@ void SIL_step(void) SIL_DW.m.latlon[0] = SIL_B.x; SIL_DW.m.latlon[1] = SIL_B.y; SIL_DW.m.params[4] = SIL_B.z; - rtb_out_pn = SIL_B.seq + 1U; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + rtb_out_kt = SIL_B.seq + 1U; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } - dummyMissionCount = (uint16_T)rtb_out_pn; + dummyMissionCount = (uint16_T)rtb_out_kt; dummyMission[dummyMissionCount - 1] = SIL_DW.m; } else { - SIL_B.ack_ip = 1U; + SIL_B.ack_i = 1U; } break; } /* End of Chart: '/chat_update_mission_item' */ /* End of Outputs for SubSystem: '/dummy update_mission_item' */ - if (SIL_B.ack_ip == 0) { + if (SIL_B.ack_i == 0) { SIL_B.seq++; SIL_DW.retry = 3U; if (SIL_B.seq >= SIL_DW.count) { @@ -15346,7 +15336,7 @@ void SIL_step(void) guard4 = true; } } else { - if (SIL_DW.temporalCounter_i1_n >= 200U) { + if (SIL_DW.temporalCounter_i1_n3 >= 200U) { guard4 = true; } } @@ -15364,14 +15354,14 @@ void SIL_step(void) } if (guard3) { - SIL_DW.is_c29_mavlink_utils = SIL_IN_Idle_p; + SIL_DW.is_c29_mavlink_utils = SIL_IN_Idle_e; SIL_B.enable_cnt = true; SIL_B.enable_item = false; } if (guard2) { SIL_DW.is_c29_mavlink_utils = SIL_IN_Uploading; - SIL_DW.temporalCounter_i1_n = 0U; + SIL_DW.temporalCounter_i1_n3 = 0U; SIL_DW.mission_req_int_msgData.seq = SIL_B.seq; SIL_DW.mission_req_int_msgData.mission_type = SIL_B.mission_type; SIL_sf_msg_send_mission_req_int(); @@ -15379,7 +15369,7 @@ void SIL_step(void) } if (guard1) { - SIL_DW.is_c29_mavlink_utils = SIL_IN_Idle_p; + SIL_DW.is_c29_mavlink_utils = SIL_IN_Idle_e; SIL_B.enable_cnt = true; SIL_B.enable_item = false; } @@ -15399,12 +15389,12 @@ void SIL_step(void) } else if (SIL_DW.is_c14_C2_proc_comm == SIL_IN_idle_py) { if (SIL_sf_msg_pop_set_cur()) { SIL_DW.is_c14_C2_proc_comm = SIL_IN_process_set_cur; - rtb_out_pn = *(uint16_T *)SIL_DW.set_cur_msgDataPtr + 1U; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + rtb_out_kt = *(uint16_T *)SIL_DW.set_cur_msgDataPtr + 1U; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } - SIL_B.WP_cur = (uint16_T)rtb_out_pn; + SIL_B.WP_cur = (uint16_T)rtb_out_kt; } } else { SIL_DW.is_c14_C2_proc_comm = SIL_IN_idle_py; @@ -15451,60 +15441,60 @@ void SIL_step(void) switch (SIL_B.id) { case 889: /* Outputs for IfAction SubSystem: '/base_asl' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ rtb_Merge1_h = 0U; - /* If: '/If' */ - if (SIL_B.params_f[0] > 1.5F) { - /* Outputs for IfAction SubSystem: '/set_base_alt' incorporates: - * ActionPort: '/Action Port' - */ - /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.base_asl = SIL_B.params_f[1]; - - /* End of Outputs for SubSystem: '/set_base_alt' */ - } else if (SIL_B.params_f[0] > 0.5F) { - /* Outputs for IfAction SubSystem: '/set_base_alt_baro' incorporates: - * ActionPort: '/Action Port' - */ - /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.base_asl_baro = SIL_B.params_f[1]; - - /* End of Outputs for SubSystem: '/set_base_alt_baro' */ - } else { - /* Outputs for IfAction SubSystem: '/set_cur_base_alt' incorporates: + /* If: '/If' */ + if (SIL_B.params_c[0] > 1.5F) { + /* Outputs for IfAction SubSystem: '/set_base_alt' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; + rtb_Merge_b.base_asl = SIL_B.params_c[1]; + + /* End of Outputs for SubSystem: '/set_base_alt' */ + } else if (SIL_B.params_c[0] > 0.5F) { + /* Outputs for IfAction SubSystem: '/set_base_alt_baro' incorporates: + * ActionPort: '/Action Port' + */ + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_b = rtb_Merge_k; + rtb_Merge_b.base_asl_baro = SIL_B.params_c[1]; + + /* End of Outputs for SubSystem: '/set_base_alt_baro' */ + } else { + /* Outputs for IfAction SubSystem: '/set_cur_base_alt' incorporates: + * ActionPort: '/Action Port' + */ + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_b = rtb_Merge_k; rtb_Merge_b.base_asl = SIL_B.BusAssignment_j.msl; rtb_Merge_b.base_asl_baro = SIL_B.BusAssignment_j.asl_baro; - /* End of Outputs for SubSystem: '/set_cur_base_alt' */ + /* End of Outputs for SubSystem: '/set_cur_base_alt' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ /* End of Outputs for SubSystem: '/base_asl' */ break; case 22: /* Outputs for IfAction SubSystem: '/takeoff_tht' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Gain: '/Gain1' + /* BusAssignment: '/Bus Assignment' incorporates: + * Gain: '/Gain1' */ rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.takeoff_tht = 0.0174532924F * SIL_B.params_f[0]; + rtb_Merge_b.takeoff_tht = 0.0174532924F * SIL_B.params_c[0]; - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ rtb_Merge1_h = 0U; @@ -15513,118 +15503,118 @@ void SIL_step(void) case 16: /* Outputs for IfAction SubSystem: '/dist_trans' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ rtb_Merge1_h = 0U; - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.dist_trans = SIL_B.params_f[1]; + rtb_Merge_b.dist_trans = SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/dist_trans' */ break; case 400: /* Outputs for IfAction SubSystem: '/armed_dissarmed' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* If: '/If' incorporates: - * If: '/If' + /* If: '/If' incorporates: + * If: '/If' */ - if (SIL_B.params_f[0] > 0.5F) { - /* Outputs for IfAction SubSystem: '/arm' incorporates: - * ActionPort: '/Action Port' + if (SIL_B.params_c[0] > 0.5F) { + /* Outputs for IfAction SubSystem: '/arm' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If' */ + /* If: '/If' */ if (rtb_Merge_k.rc.throttle_cmd < 0.1F) { - /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant1' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant1' */ rtb_Merge_b = rtb_Merge_k; rtb_Merge_b.armed = true; - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ rtb_Merge1_h = 0U; - /* End of Outputs for SubSystem: '/Subsystem' */ + /* End of Outputs for SubSystem: '/Subsystem' */ } else { - /* Outputs for IfAction SubSystem: '/Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Subsystem1' incorporates: + * ActionPort: '/Action Port' */ SIL_Subsystem1(&rtb_Merge_k, &rtb_Merge_b, &rtb_Merge1_h); - /* End of Outputs for SubSystem: '/Subsystem1' */ + /* End of Outputs for SubSystem: '/Subsystem1' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/arm' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/arm' */ } else { - /* Outputs for IfAction SubSystem: '/disarm' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/disarm' incorporates: + * ActionPort: '/Action Port' */ if (rtb_Merge_k.rc.throttle_cmd < 0.1F) { - /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If' incorporates: - * BusAssignment: '/Bus Assignment' - * Constant: '/Constant' - * Constant: '/Constant1' - * SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' + /* If: '/If' incorporates: + * BusAssignment: '/Bus Assignment' + * Constant: '/Constant' + * Constant: '/Constant1' + * SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' */ rtb_Merge_b = rtb_Merge_k; rtb_Merge_b.armed = false; rtb_Merge1_h = 0U; - /* End of Outputs for SubSystem: '/Subsystem' */ + /* End of Outputs for SubSystem: '/Subsystem' */ } else { - /* Outputs for IfAction SubSystem: '/Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If' */ + /* If: '/If' */ SIL_Subsystem1(&rtb_Merge_k, &rtb_Merge_b, &rtb_Merge1_h); - /* End of Outputs for SubSystem: '/Subsystem1' */ + /* End of Outputs for SubSystem: '/Subsystem1' */ } - /* End of Outputs for SubSystem: '/disarm' */ + /* End of Outputs for SubSystem: '/disarm' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ /* End of Outputs for SubSystem: '/armed_dissarmed' */ break; case 20001: /* Outputs for IfAction SubSystem: '/way_point' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; - /* DataTypeConversion: '/Data Type Conversion' */ - radius = floorf(SIL_B.params_f[0]); + /* DataTypeConversion: '/Data Type Conversion' */ + radius = floorf(SIL_B.params_c[0]); if (rtIsNaNF(radius) || rtIsInfF(radius)) { radius = 0.0F; } else { radius = fmodf(radius, 65536.0F); } - /* BusAssignment: '/Bus Assignment' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_b.WP_cur = (uint16_T)(radius < 0.0F ? (int32_T)(uint16_T) -(int16_T)(uint16_T)-radius : (int32_T)(uint16_T)radius); - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ rtb_Merge1_h = 0U; @@ -15633,34 +15623,21 @@ void SIL_step(void) case 20003: /* Outputs for IfAction SubSystem: '/toplevel_sw' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* If: '/If' */ + /* If: '/If' */ if (!rtb_Merge_k.armed) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ rtb_Merge1_h = 0U; - /* If: '/If' */ - if (SIL_B.params_f[0] > 1.5F) { - /* Outputs for IfAction SubSystem: '/operation' incorporates: - * ActionPort: '/Action Port' - */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant1' - * Constant: '/Constant2' - */ - rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.xbit_cmd = false; - rtb_Merge_b.standby_cmd = false; - - /* End of Outputs for SubSystem: '/operation' */ - } else if (SIL_B.params_f[0] > 0.5F) { - /* Outputs for IfAction SubSystem: '/xbit' incorporates: + /* If: '/If' */ + if (SIL_B.params_c[0] > 1.5F) { + /* Outputs for IfAction SubSystem: '/operation' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' incorporates: @@ -15668,55 +15645,68 @@ void SIL_step(void) * Constant: '/Constant2' */ rtb_Merge_b = rtb_Merge_k; + rtb_Merge_b.xbit_cmd = false; + rtb_Merge_b.standby_cmd = false; + + /* End of Outputs for SubSystem: '/operation' */ + } else if (SIL_B.params_c[0] > 0.5F) { + /* Outputs for IfAction SubSystem: '/xbit' incorporates: + * ActionPort: '/Action Port' + */ + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant2' + */ + rtb_Merge_b = rtb_Merge_k; rtb_Merge_b.xbit_cmd = true; rtb_Merge_b.standby_cmd = true; - /* End of Outputs for SubSystem: '/xbit' */ + /* End of Outputs for SubSystem: '/xbit' */ } else { - /* Outputs for IfAction SubSystem: '/standby' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/standby' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant1' - * Constant: '/Constant2' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant2' */ rtb_Merge_b = rtb_Merge_k; rtb_Merge_b.xbit_cmd = false; rtb_Merge_b.standby_cmd = true; - /* End of Outputs for SubSystem: '/standby' */ + /* End of Outputs for SubSystem: '/standby' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/If Action Subsystem' */ + /* End of If: '/If' */ + /* 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' */ SIL_IfActionSubsystem1(&rtb_Merge_k, &rtb_Merge_b, &rtb_Merge1_h); - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ /* End of Outputs for SubSystem: '/toplevel_sw' */ break; case 178: /* Outputs for IfAction SubSystem: '/change_speed' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* Outputs for Atomic SubSystem: '/set_speed' */ - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_gain_l = fabsf(SIL_B.params_f[0]); + /* Outputs for Atomic SubSystem: '/set_speed' */ + /* DataTypeConversion: '/Data Type Conversion' */ + rtb_gain_l = fabsf(SIL_B.params_c[0]); if (rtb_gain_l < 8.388608E+6F) { if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[0] + 0.5F); + radius = floorf(SIL_B.params_c[0] + 0.5F); } else { - radius = SIL_B.params_f[0] * 0.0F; + radius = SIL_B.params_c[0] * 0.0F; } } else { - radius = SIL_B.params_f[0]; + radius = SIL_B.params_c[0]; } if (rtIsNaNF(radius) || rtIsInfF(radius)) { @@ -15725,89 +15715,31 @@ void SIL_step(void) radius = fmodf(radius, 256.0F); } - /* SwitchCase: '/Switch Case' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Inport: '/In1' + /* SwitchCase: '/Switch Case' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Inport: '/In1' */ switch (radius < 0.0F ? (int32_T)(uint8_T)-(int8_T)(uint8_T)-radius : (int32_T)(uint8_T)radius) { case 0: - /* Outputs for IfAction SubSystem: '/set_as' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/set_as' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If' incorporates: - * Inport: '/In1' - */ - if (SIL_B.params_f[1] > 0.0F) { - /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: - * ActionPort: '/Action Port' - */ - /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.as_c = SIL_B.params_f[1]; - - /* End of Outputs for SubSystem: '/Subsystem' */ - } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' - */ - rtb_Merge_b = rtb_Merge_k; - - /* End of Outputs for SubSystem: '/If Action Subsystem' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/set_as' */ - break; - - case 1: - /* Outputs for IfAction SubSystem: '/set_gs' incorporates: - * ActionPort: '/Action Port' - */ - /* If: '/If' incorporates: + /* If: '/If' incorporates: * Inport: '/In1' */ - if (SIL_B.params_f[1] > 0.0F) { - /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: + if (SIL_B.params_c[1] > 0.0F) { + /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.gs_c = SIL_B.params_f[1]; - - /* End of Outputs for SubSystem: '/Subsystem' */ - } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' - */ - rtb_Merge_b = rtb_Merge_k; - - /* End of Outputs for SubSystem: '/If Action Subsystem' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/set_gs' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/set_hdot' incorporates: - * ActionPort: '/Action Port' - */ - /* If: '/If' incorporates: - * Inport: '/In1' - */ - if ((SIL_B.params_f[1] > -10.0F) && (SIL_B.params_f[1] < 10.0F)) { - /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: - * ActionPort: '/Action Port' - */ - /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.hdot_c = SIL_B.params_f[1]; + rtb_Merge_b.as_c = SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/Subsystem' */ } else { /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ rtb_Merge_b = rtb_Merge_k; @@ -15815,37 +15747,95 @@ void SIL_step(void) } /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/set_hdot' */ + /* End of Outputs for SubSystem: '/set_as' */ + break; + + case 1: + /* Outputs for IfAction SubSystem: '/set_gs' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If' incorporates: + * Inport: '/In1' + */ + if (SIL_B.params_c[1] > 0.0F) { + /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_b = rtb_Merge_k; + rtb_Merge_b.gs_c = SIL_B.params_c[1]; + + /* End of Outputs for SubSystem: '/Subsystem' */ + } else { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + rtb_Merge_b = rtb_Merge_k; + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/set_gs' */ + break; + + case 2: + /* Outputs for IfAction SubSystem: '/set_hdot' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If' incorporates: + * Inport: '/In1' + */ + if ((SIL_B.params_c[1] > -10.0F) && (SIL_B.params_c[1] < 10.0F)) { + /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_b = rtb_Merge_k; + rtb_Merge_b.hdot_c = SIL_B.params_c[1]; + + /* End of Outputs for SubSystem: '/Subsystem' */ + } else { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + rtb_Merge_b = rtb_Merge_k; + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/set_hdot' */ break; default: - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ rtb_Merge_b = rtb_Merge_k; - /* End of Outputs for SubSystem: '/If Action Subsystem' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ break; } - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/set_speed' */ + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/set_speed' */ - /* If: '/If' */ - if (SIL_B.params_f[2] > -0.9F) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* If: '/If' */ + if (SIL_B.params_c[2] > -0.9F) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_b.throttle_c = SIL_B.params_f[2]; + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_b.throttle_c = SIL_B.params_c[2]; - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ rtb_Merge1_h = 0U; @@ -15854,18 +15844,18 @@ void SIL_step(void) case 180: /* Outputs for IfAction SubSystem: '/set_parameter' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_gain_l = fabsf(SIL_B.params_f[0]); + /* DataTypeConversion: '/Data Type Conversion' */ + rtb_gain_l = fabsf(SIL_B.params_c[0]); if (rtb_gain_l < 8.388608E+6F) { if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[0] + 0.5F); + radius = floorf(SIL_B.params_c[0] + 0.5F); } else { - radius = SIL_B.params_f[0] * 0.0F; + radius = SIL_B.params_c[0] * 0.0F; } } else { - radius = SIL_B.params_f[0]; + radius = SIL_B.params_c[0]; } if (rtIsNaNF(radius) || rtIsInfF(radius)) { @@ -15874,109 +15864,109 @@ void SIL_step(void) radius = fmodf(radius, 256.0F); } - /* SwitchCase: '/Switch Case' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Inport: '/In1' - * Inport: '/C2_in' + /* SwitchCase: '/Switch Case' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Inport: '/In1' + * Inport: '/C2_in' */ switch (radius < 0.0F ? (int32_T)(uint8_T)-(int8_T)(uint8_T)-radius : (int32_T)(uint8_T)radius) { case 1: - /* Outputs for IfAction SubSystem: '/AFCS_vert' incorporates: - * ActionPort: '/Action Port' - */ - /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_b = rtb_Merge_k; - - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_gain_l = fabsf(SIL_B.params_f[1]); - if (rtb_gain_l < 8.388608E+6F) { - if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[1] + 0.5F); - } else { - radius = SIL_B.params_f[1] * 0.0F; - } - } else { - radius = SIL_B.params_f[1]; - } - - if (rtIsNaNF(radius) || rtIsInfF(radius)) { - radius = 0.0F; - } else { - radius = fmodf(radius, 4.2949673E+9F); - } - - /* BusAssignment: '/Bus Assignment' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - */ - rtb_Merge_b.AFCS_VERT = (ENUM_AFCS_VERT)(radius < 0.0F ? -(int32_T) - (uint32_T)-radius : (int32_T)(uint32_T)radius); - - /* End of Outputs for SubSystem: '/AFCS_vert' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/AS_SEL' incorporates: - * ActionPort: '/Action Port' - */ - /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_b = rtb_Merge_k; - - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_gain_l = fabsf(SIL_B.params_f[1]); - if (rtb_gain_l < 8.388608E+6F) { - if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[1] + 0.5F); - } else { - radius = SIL_B.params_f[1] * 0.0F; - } - } else { - radius = SIL_B.params_f[1]; - } - - if (rtIsNaNF(radius) || rtIsInfF(radius)) { - radius = 0.0F; - } else { - radius = fmodf(radius, 4.2949673E+9F); - } - - /* BusAssignment: '/Bus Assignment' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - */ - rtb_Merge_b.AS_SEL = (ENUM_AS_SEL)(radius < 0.0F ? -(int32_T) - (uint32_T)-radius : (int32_T)(uint32_T)radius); - - /* End of Outputs for SubSystem: '/AS_SEL' */ - break; - - case 101: - /* Outputs for IfAction SubSystem: '/afterburning' incorporates: - * ActionPort: '/Action Port' - */ - rtb_Merge_b = rtb_Merge_k; - - /* End of Outputs for SubSystem: '/afterburning' */ - break; - - case 102: - /* Outputs for IfAction SubSystem: '/BMU' incorporates: + /* Outputs for IfAction SubSystem: '/AFCS_vert' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_gain_l = fabsf(SIL_B.params_f[1]); + rtb_gain_l = fabsf(SIL_B.params_c[1]); if (rtb_gain_l < 8.388608E+6F) { if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[1] + 0.5F); + radius = floorf(SIL_B.params_c[1] + 0.5F); } else { - radius = SIL_B.params_f[1] * 0.0F; + radius = SIL_B.params_c[1] * 0.0F; } } else { - radius = SIL_B.params_f[1]; + radius = SIL_B.params_c[1]; + } + + if (rtIsNaNF(radius) || rtIsInfF(radius)) { + radius = 0.0F; + } else { + radius = fmodf(radius, 4.2949673E+9F); + } + + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + */ + rtb_Merge_b.AFCS_VERT = (ENUM_AFCS_VERT)(radius < 0.0F ? -(int32_T) + (uint32_T)-radius : (int32_T)(uint32_T)radius); + + /* End of Outputs for SubSystem: '/AFCS_vert' */ + break; + + case 2: + /* Outputs for IfAction SubSystem: '/AS_SEL' incorporates: + * ActionPort: '/Action Port' + */ + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_b = rtb_Merge_k; + + /* DataTypeConversion: '/Data Type Conversion' */ + rtb_gain_l = fabsf(SIL_B.params_c[1]); + if (rtb_gain_l < 8.388608E+6F) { + if (rtb_gain_l >= 0.5F) { + radius = floorf(SIL_B.params_c[1] + 0.5F); + } else { + radius = SIL_B.params_c[1] * 0.0F; + } + } else { + radius = SIL_B.params_c[1]; + } + + if (rtIsNaNF(radius) || rtIsInfF(radius)) { + radius = 0.0F; + } else { + radius = fmodf(radius, 4.2949673E+9F); + } + + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + */ + rtb_Merge_b.AS_SEL = (ENUM_AS_SEL)(radius < 0.0F ? -(int32_T) + (uint32_T)-radius : (int32_T)(uint32_T)radius); + + /* End of Outputs for SubSystem: '/AS_SEL' */ + break; + + case 101: + /* Outputs for IfAction SubSystem: '/afterburning' incorporates: + * ActionPort: '/Action Port' + */ + rtb_Merge_b = rtb_Merge_k; + + /* End of Outputs for SubSystem: '/afterburning' */ + break; + + case 102: + /* Outputs for IfAction SubSystem: '/BMU' incorporates: + * ActionPort: '/Action Port' + */ + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_b = rtb_Merge_k; + + /* DataTypeConversion: '/Data Type Conversion' */ + rtb_gain_l = fabsf(SIL_B.params_c[1]); + if (rtb_gain_l < 8.388608E+6F) { + if (rtb_gain_l >= 0.5F) { + radius = floorf(SIL_B.params_c[1] + 0.5F); + } else { + radius = SIL_B.params_c[1] * 0.0F; + } + } else { + radius = SIL_B.params_c[1]; } if (rtIsNaNF(radius) || rtIsInfF(radius)) { @@ -15985,29 +15975,29 @@ void SIL_step(void) radius = fmodf(radius, 256.0F); } - /* BusAssignment: '/Bus Assignment' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_b.p500w_enable = (uint8_T)(radius < 0.0F ? (int32_T) (uint8_T)-(int8_T)(uint8_T)-radius : (int32_T)(uint8_T)radius); - /* End of Outputs for SubSystem: '/BMU' */ + /* End of Outputs for SubSystem: '/BMU' */ break; case 103: - /* Outputs for IfAction SubSystem: '/ECU' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/ECU' incorporates: + * ActionPort: '/Action Port' */ - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_gain_l = fabsf(SIL_B.params_f[1]); + /* DataTypeConversion: '/Data Type Conversion' */ + rtb_gain_l = fabsf(SIL_B.params_c[1]); if (rtb_gain_l < 8.388608E+6F) { if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[1] + 0.5F); + radius = floorf(SIL_B.params_c[1] + 0.5F); } else { - radius = SIL_B.params_f[1] * 0.0F; + radius = SIL_B.params_c[1] * 0.0F; } } else { - radius = SIL_B.params_f[1]; + radius = SIL_B.params_c[1]; } if (radius < 256.0F) { @@ -16020,150 +16010,150 @@ void SIL_step(void) rtb_recovery = MAX_uint8_T; } - /* BusAssignment: '/Bus Assignment' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_b = rtb_Merge_k; rtb_Merge_b.ECU_CMD = rtb_recovery; - /* DataTypeConversion: '/Data Type Conversion1' */ - rtb_gain_l = fabsf(SIL_B.params_f[2]); + /* DataTypeConversion: '/Data Type Conversion1' */ + rtb_gain_l = fabsf(SIL_B.params_c[2]); if (rtb_gain_l < 8.388608E+6F) { if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[2] + 0.5F); + radius = floorf(SIL_B.params_c[2] + 0.5F); } else { - radius = SIL_B.params_f[2] * 0.0F; + radius = SIL_B.params_c[2] * 0.0F; } } else { - radius = SIL_B.params_f[2]; + radius = SIL_B.params_c[2]; } if (radius < 65536.0F) { if (radius >= 0.0F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b.ECU_RPM = (uint16_T)radius; } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b.ECU_RPM = 0U; } } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b.ECU_RPM = MAX_uint16_T; } - /* End of DataTypeConversion: '/Data Type Conversion1' */ + /* End of DataTypeConversion: '/Data Type Conversion1' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Chart: '/Chart' - * DataTypeConversion: '/Data Type Conversion' + /* BusAssignment: '/Bus Assignment' incorporates: + * Chart: '/Chart' + * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_b.armed = ((rtb_recovery != 115) && rtb_Merge_k.armed); - /* End of Outputs for SubSystem: '/ECU' */ + /* End of Outputs for SubSystem: '/ECU' */ break; case 104: - /* Outputs for IfAction SubSystem: '/CCM' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/CCM' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; - /* DataTypeConversion: '/Data Type Conversion1' */ - rtb_gain_l = fabsf(SIL_B.params_f[1]); + /* DataTypeConversion: '/Data Type Conversion1' */ + rtb_gain_l = fabsf(SIL_B.params_c[1]); if (rtb_gain_l < 8.388608E+6F) { if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[1] + 0.5F); + radius = floorf(SIL_B.params_c[1] + 0.5F); } else { - radius = SIL_B.params_f[1] * 0.0F; + radius = SIL_B.params_c[1] * 0.0F; } } else { - radius = SIL_B.params_f[1]; + radius = SIL_B.params_c[1]; } if (radius < 256.0F) { if (radius >= 0.0F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b.ccm_ch = (uint8_T)radius; } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b.ccm_ch = 0U; } } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b.ccm_ch = MAX_uint8_T; } - /* End of DataTypeConversion: '/Data Type Conversion1' */ + /* End of DataTypeConversion: '/Data Type Conversion1' */ - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_gain_l = fabsf(SIL_B.params_f[2]); + /* DataTypeConversion: '/Data Type Conversion' */ + rtb_gain_l = fabsf(SIL_B.params_c[2]); if (rtb_gain_l < 8.388608E+6F) { if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[2] + 0.5F); + radius = floorf(SIL_B.params_c[2] + 0.5F); } else { - radius = SIL_B.params_f[2] * 0.0F; + radius = SIL_B.params_c[2] * 0.0F; } } else { - radius = SIL_B.params_f[2]; + radius = SIL_B.params_c[2]; } if (radius < 256.0F) { if (radius >= 0.0F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b.ccm_sw = (uint8_T)radius; } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b.ccm_sw = 0U; } } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b.ccm_sw = MAX_uint8_T; } - /* End of DataTypeConversion: '/Data Type Conversion' */ + /* End of DataTypeConversion: '/Data Type Conversion' */ - /* DataTypeConversion: '/Data Type Conversion2' */ - rtb_gain_l = fabsf(SIL_B.params_f[3]); + /* DataTypeConversion: '/Data Type Conversion2' */ + rtb_gain_l = fabsf(SIL_B.params_c[3]); if (rtb_gain_l < 8.388608E+6F) { if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[3] + 0.5F); + radius = floorf(SIL_B.params_c[3] + 0.5F); } else { - radius = SIL_B.params_f[3] * 0.0F; + radius = SIL_B.params_c[3] * 0.0F; } } else { - radius = SIL_B.params_f[3]; + radius = SIL_B.params_c[3]; } if (radius < 65536.0F) { if (radius >= 0.0F) { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b.ccm_period = (uint16_T)radius; } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b.ccm_period = 0U; } } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b.ccm_period = MAX_uint16_T; } - /* End of DataTypeConversion: '/Data Type Conversion2' */ - /* End of Outputs for SubSystem: '/CCM' */ + /* End of DataTypeConversion: '/Data Type Conversion2' */ + /* End of Outputs for SubSystem: '/CCM' */ break; case 106: - /* Outputs for IfAction SubSystem: '/actuators' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/actuators' incorporates: + * ActionPort: '/Action Port' */ - /* Gain: '/Gain1' */ + /* Gain: '/Gain1' */ for (idx = 0; idx < 5; idx++) { - rtb_Gain1_o0[idx] = SIL_B.params_f[idx + 1] * 0.0174532924F; + rtb_Gain1_o0[idx] = SIL_B.params_c[idx + 1] * 0.0174532924F; } - /* End of Gain: '/Gain1' */ + /* End of Gain: '/Gain1' */ - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; rtb_Merge_b.dar_c = rtb_Gain1_o0[0]; rtb_Merge_b.der_c = rtb_Gain1_o0[1]; @@ -16171,94 +16161,94 @@ void SIL_step(void) rtb_Merge_b.dal_c = rtb_Gain1_o0[3]; rtb_Merge_b.del_c = rtb_Gain1_o0[4]; - /* End of Outputs for SubSystem: '/actuators' */ + /* End of Outputs for SubSystem: '/actuators' */ break; case 107: - /* Outputs for IfAction SubSystem: '/recovery' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/recovery' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If' incorporates: - * Constant: '/Constant' - * Constant: '/Constant' - * Inport: '/In1' - * RelationalOperator: '/Compare' - * RelationalOperator: '/Compare' + /* If: '/If' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Inport: '/In1' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' */ - if ((SIL_B.params_f[1] == 107.0F) || (SIL_B.BusAssignment_j.IAS < + if ((SIL_B.params_c[1] == 107.0F) || (SIL_B.BusAssignment_j.IAS < SIL_P.recovery_ias)) { - /* Outputs for IfAction SubSystem: '/recovery' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/recovery' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * S-Function (sfix_bitop): '/Bitwise OR' + /* BusAssignment: '/Bus Assignment' incorporates: + * S-Function (sfix_bitop): '/Bitwise OR' */ rtb_Merge_b = rtb_Merge_k; rtb_Merge_b.recovery = (uint8_T)(rtb_Merge_k.recovery | 1); - /* End of Outputs for SubSystem: '/recovery' */ + /* End of Outputs for SubSystem: '/recovery' */ } else { - /* Outputs for IfAction SubSystem: '/pass_through' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/pass_through' incorporates: + * ActionPort: '/Action Port' */ rtb_Merge_b = rtb_Merge_k; - /* End of Outputs for SubSystem: '/pass_through' */ + /* End of Outputs for SubSystem: '/pass_through' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/recovery' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/recovery' */ break; case 108: - /* Outputs for IfAction SubSystem: '/cut' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/cut' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If' incorporates: - * Constant: '/Constant' - * Constant: '/Constant' - * Inport: '/In1' - * RelationalOperator: '/Compare' - * RelationalOperator: '/Compare' + /* If: '/If' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Inport: '/In1' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' */ - if ((SIL_B.params_f[1] == 108.0F) && (rtb_Merge_k.recovery == 7)) { - /* Outputs for IfAction SubSystem: '/recovery' incorporates: - * ActionPort: '/Action Port' + if ((SIL_B.params_c[1] == 108.0F) && (rtb_Merge_k.recovery == 7)) { + /* Outputs for IfAction SubSystem: '/recovery' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * S-Function (sfix_bitop): '/Bitwise OR' + /* BusAssignment: '/Bus Assignment' incorporates: + * S-Function (sfix_bitop): '/Bitwise OR' */ rtb_Merge_b = rtb_Merge_k; rtb_Merge_b.recovery = (uint8_T)(rtb_Merge_k.recovery | 8); - /* End of Outputs for SubSystem: '/recovery' */ + /* End of Outputs for SubSystem: '/recovery' */ } else { - /* Outputs for IfAction SubSystem: '/pass_through' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/pass_through' incorporates: + * ActionPort: '/Action Port' */ rtb_Merge_b = rtb_Merge_k; - /* End of Outputs for SubSystem: '/pass_through' */ + /* End of Outputs for SubSystem: '/pass_through' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/cut' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/cut' */ break; default: - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ rtb_Merge_b = rtb_Merge_k; - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ rtb_Merge1_h = 0U; @@ -16267,68 +16257,68 @@ void SIL_step(void) case 20004: /* Outputs for IfAction SubSystem: '/actuator_cmd' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* If: '/If' */ + /* If: '/If' */ if (!rtb_Merge_k.armed) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; - /* DataTypeConversion: '/Data Type Conversion' */ - radius = floorf(SIL_B.params_f[0]); + /* DataTypeConversion: '/Data Type Conversion' */ + radius = floorf(SIL_B.params_c[0]); if (rtIsNaNF(radius) || rtIsInfF(radius)) { radius = 0.0F; } else { radius = fmodf(radius, 256.0F); } - /* BusAssignment: '/Bus Assignment' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_b.actuator_startup = (uint8_T)(radius < 0.0F ? (int32_T) (uint8_T)-(int8_T)(uint8_T)-radius : (int32_T)(uint8_T)radius); - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ rtb_Merge1_h = 0U; - /* 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' */ SIL_IfActionSubsystem1(&rtb_Merge_k, &rtb_Merge_b, &rtb_Merge1_h); - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ /* End of Outputs for SubSystem: '/actuator_cmd' */ break; case 20005: /* Outputs for IfAction SubSystem: '/sdas_cmd' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * SignalConversion: '/TmpHiddenBufferAtBus AssignmentInport1' + /* BusAssignment: '/Bus Assignment' incorporates: + * SignalConversion: '/TmpHiddenBufferAtBus AssignmentInport1' */ rtb_Merge_b = rtb_Merge_k; - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_gain_l = fabsf(SIL_B.params_f[0]); + /* DataTypeConversion: '/Data Type Conversion' */ + rtb_gain_l = fabsf(SIL_B.params_c[0]); if (rtb_gain_l < 8.388608E+6F) { if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[0] + 0.5F); + radius = floorf(SIL_B.params_c[0] + 0.5F); } else { - radius = SIL_B.params_f[0] * 0.0F; + radius = SIL_B.params_c[0] * 0.0F; } } else { - radius = SIL_B.params_f[0]; + radius = SIL_B.params_c[0]; } if (rtIsNaNF(radius) || rtIsInfF(radius)) { @@ -16337,22 +16327,22 @@ void SIL_step(void) radius = fmodf(radius, 256.0F); } - /* BusAssignment: '/Bus Assignment' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_b.SDAS_MOS[0] = (uint8_T)(radius < 0.0F ? (int32_T)(uint8_T) -(int8_T)(uint8_T)-radius : (int32_T)(uint8_T)radius); - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_gain_l = fabsf(SIL_B.params_f[1]); + /* DataTypeConversion: '/Data Type Conversion' */ + rtb_gain_l = fabsf(SIL_B.params_c[1]); if (rtb_gain_l < 8.388608E+6F) { if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[1] + 0.5F); + radius = floorf(SIL_B.params_c[1] + 0.5F); } else { - radius = SIL_B.params_f[1] * 0.0F; + radius = SIL_B.params_c[1] * 0.0F; } } else { - radius = SIL_B.params_f[1]; + radius = SIL_B.params_c[1]; } if (rtIsNaNF(radius) || rtIsInfF(radius)) { @@ -16361,22 +16351,22 @@ void SIL_step(void) radius = fmodf(radius, 256.0F); } - /* BusAssignment: '/Bus Assignment' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_b.SDAS_MOS[1] = (uint8_T)(radius < 0.0F ? (int32_T)(uint8_T) -(int8_T)(uint8_T)-radius : (int32_T)(uint8_T)radius); - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_gain_l = fabsf(SIL_B.params_f[2]); + /* DataTypeConversion: '/Data Type Conversion' */ + rtb_gain_l = fabsf(SIL_B.params_c[2]); if (rtb_gain_l < 8.388608E+6F) { if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[2] + 0.5F); + radius = floorf(SIL_B.params_c[2] + 0.5F); } else { - radius = SIL_B.params_f[2] * 0.0F; + radius = SIL_B.params_c[2] * 0.0F; } } else { - radius = SIL_B.params_f[2]; + radius = SIL_B.params_c[2]; } if (rtIsNaNF(radius) || rtIsInfF(radius)) { @@ -16385,22 +16375,22 @@ void SIL_step(void) radius = fmodf(radius, 256.0F); } - /* BusAssignment: '/Bus Assignment' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_b.SDAS_MOS[2] = (uint8_T)(radius < 0.0F ? (int32_T)(uint8_T) -(int8_T)(uint8_T)-radius : (int32_T)(uint8_T)radius); - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_gain_l = fabsf(SIL_B.params_f[3]); + /* DataTypeConversion: '/Data Type Conversion' */ + rtb_gain_l = fabsf(SIL_B.params_c[3]); if (rtb_gain_l < 8.388608E+6F) { if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[3] + 0.5F); + radius = floorf(SIL_B.params_c[3] + 0.5F); } else { - radius = SIL_B.params_f[3] * 0.0F; + radius = SIL_B.params_c[3] * 0.0F; } } else { - radius = SIL_B.params_f[3]; + radius = SIL_B.params_c[3]; } if (rtIsNaNF(radius) || rtIsInfF(radius)) { @@ -16409,14 +16399,14 @@ void SIL_step(void) radius = fmodf(radius, 256.0F); } - /* BusAssignment: '/Bus Assignment' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_b.SDAS_MOS[3] = (uint8_T)(radius < 0.0F ? (int32_T)(uint8_T) -(int8_T)(uint8_T)-radius : (int32_T)(uint8_T)radius); - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ rtb_Merge1_h = 0U; @@ -16425,116 +16415,116 @@ void SIL_step(void) case 20006: /* Outputs for IfAction SubSystem: '/trim_alpha' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* If: '/If' incorporates: - * Constant: '/Constant' - * RelationalOperator: '/Compare' + /* If: '/If' incorporates: + * Constant: '/Constant' + * RelationalOperator: '/Compare' */ if (rtb_Merge_k.level1_lgx == standby) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* Sum: '/Sum' */ + /* Sum: '/Sum' */ rtb_gain_l = rtb_Merge_k.trim_aoa + SIL_B.BusAssignment_j.alpha; - /* Switch: '/Switch' incorporates: - * Constant: '/Constant BP' - * Constant: '/Constant' - * RelationalOperator: '/Compare' - * Sum: '/Sum' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant BP' + * Constant: '/Constant' + * RelationalOperator: '/Compare' + * Sum: '/Sum' */ if (rtb_gain_l > 3.14159274F) { rtb_gain_l -= 6.28318548F; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ rtb_Sum1_cv = rtb_Merge_k.trim_aos + SIL_B.BusAssignment_j.beta; - /* Switch: '/Switch' incorporates: - * Constant: '/Constant BP' - * Constant: '/Constant' - * RelationalOperator: '/Compare' - * Sum: '/Sum' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant BP' + * Constant: '/Constant' + * RelationalOperator: '/Compare' + * Sum: '/Sum' */ if (rtb_Sum1_cv > 3.14159274F) { rtb_Sum1_cv -= 6.28318548F; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant' - * RelationalOperator: '/Compare' - */ - if (rtb_gain_l < -3.14159274F) { - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant BP' - * Sum: '/Sum1' - */ - rtb_Merge_b.trim_aoa = 6.28318548F + rtb_gain_l; - } else { - /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_b.trim_aoa = rtb_gain_l; - } - - /* End of Switch: '/Switch1' */ - - /* Switch: '/Switch1' incorporates: + /* Switch: '/Switch1' incorporates: * Constant: '/Constant' * RelationalOperator: '/Compare' */ + if (rtb_gain_l < -3.14159274F) { + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant BP' + * Sum: '/Sum1' + */ + rtb_Merge_b.trim_aoa = 6.28318548F + rtb_gain_l; + } else { + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_b.trim_aoa = rtb_gain_l; + } + + /* End of Switch: '/Switch1' */ + + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' + * RelationalOperator: '/Compare' + */ if (rtb_Sum1_cv < -3.14159274F) { - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant BP' - * Sum: '/Sum1' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant BP' + * Sum: '/Sum1' */ rtb_Merge_b.trim_aos = 6.28318548F + rtb_Sum1_cv; } else { - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b.trim_aos = rtb_Sum1_cv; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ rtb_Merge1_h = 0U; - /* 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' */ SIL_IfActionSubsystem1(&rtb_Merge_k, &rtb_Merge_b, &rtb_Merge1_h); - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ /* End of Outputs for SubSystem: '/trim_alpha' */ break; case 20007: /* Outputs for IfAction SubSystem: '/bit_mode' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_gain_l = fabsf(SIL_B.params_f[0]); + /* DataTypeConversion: '/Data Type Conversion' */ + rtb_gain_l = fabsf(SIL_B.params_c[0]); if (rtb_gain_l < 8.388608E+6F) { if (rtb_gain_l >= 0.5F) { - radius = floorf(SIL_B.params_f[0] + 0.5F); + radius = floorf(SIL_B.params_c[0] + 0.5F); } else { - radius = SIL_B.params_f[0] * 0.0F; + radius = SIL_B.params_c[0] * 0.0F; } } else { - radius = SIL_B.params_f[0]; + radius = SIL_B.params_c[0]; } if (rtIsNaNF(radius) || rtIsInfF(radius)) { @@ -16543,11 +16533,12 @@ void SIL_step(void) radius = fmodf(radius, 256.0F); } - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant1' - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataTypeConversion: '/Data Type Conversion' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion' */ switch (radius < 0.0F ? (int32_T)(uint8_T)-(int8_T)(uint8_T)-radius : (int32_T)(uint8_T)radius) { @@ -16559,25 +16550,76 @@ void SIL_step(void) rtb_MultiportSwitch = ENUM_BIT_MODE_MANUAL; break; + case 3: + rtb_MultiportSwitch = ENUM_BIT_MODE_ACT_SWEEP; + break; + default: rtb_MultiportSwitch = ENUM_BIT_MODE_IDLE; break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ - /* BusAssignment: '/Bus Assignment' */ + /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; rtb_Merge_b.BIT_MODE = rtb_MultiportSwitch; - /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: - * Constant: '/Constant' + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' */ rtb_Merge1_h = 0U; /* End of Outputs for SubSystem: '/bit_mode' */ break; + case 20008: + /* Outputs for IfAction SubSystem: '/act_sweep' incorporates: + * ActionPort: '/Action Port' + */ + /* BusAssignment: '/Bus Assignment' */ + rtb_Merge_b = rtb_Merge_k; + + /* DataTypeConversion: '/Data Type Conversion' */ + rtb_gain_l = fabsf(SIL_B.params_c[0]); + if (rtb_gain_l < 8.388608E+6F) { + if (rtb_gain_l >= 0.5F) { + radius = floorf(SIL_B.params_c[0] + 0.5F); + } else { + radius = SIL_B.params_c[0] * 0.0F; + } + } else { + radius = SIL_B.params_c[0]; + } + + if (rtIsNaNF(radius) || rtIsInfF(radius)) { + radius = 0.0F; + } else { + radius = fmodf(radius, 256.0F); + } + + /* BusAssignment: '/Bus Assignment' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + * Gain: '/Gain2' + * Gain: '/Gain1' + */ + rtb_Merge_b.act_sw_chan = (uint8_T)(radius < 0.0F ? (int32_T)(uint8_T) + -(int8_T)(uint8_T)-radius : (int32_T)(uint8_T)radius); + rtb_Merge_b.act_sw_amp = 0.0174532924F * SIL_B.params_c[1]; + rtb_Merge_b.act_sw_freq0 = 6.28318548F * SIL_B.params_c[2]; + rtb_Merge_b.act_sw_freq1 = 6.28318548F * SIL_B.params_c[3]; + rtb_Merge_b.act_sw_k = 6.28318548F * SIL_B.params_c[4]; + + /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: + * Constant: '/Constant' + */ + rtb_Merge1_h = 0U; + + /* End of Outputs for SubSystem: '/act_sweep' */ + break; + default: /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: * ActionPort: '/Action Port' @@ -16595,9 +16637,9 @@ void SIL_step(void) /* End of SwitchCase: '/Switch Case' */ /* Chart: '/proc_cmd' */ - if (SIL_B.ack_b) { - SIL_DW.ack_msgData_i.id = SIL_B.id; - SIL_DW.ack_msgData_i.rslt = rtb_Merge1_h; + if (SIL_B.ack_l) { + SIL_DW.ack_msgData_l.id = SIL_B.id; + SIL_DW.ack_msgData_l.rslt = rtb_Merge1_h; SIL_sf_msg_send_ack(); } @@ -16617,63 +16659,63 @@ void SIL_step(void) /* Chart: '/valid_checking' incorporates: * UnitDelay: '/Unit Delay2' */ - if (SIL_DW.temporalCounter_i1_l < 255U) { - SIL_DW.temporalCounter_i1_l++; + if (SIL_DW.temporalCounter_i1_h2 < 255U) { + SIL_DW.temporalCounter_i1_h2++; } - if (SIL_DW.is_active_c26_update_rc_d == 0U) { - SIL_DW.is_active_c26_update_rc_d = 1U; - SIL_DW.is_c26_update_rc_j = SIL_IN_disconnected; - SIL_DW.seq1_i = SIL_DW.UnitDelay2_2_DSTATE; - SIL_B.valid_db = false; - SIL_DW.cnt_h = 0U; - } else if (SIL_DW.is_c26_update_rc_j == SIL_IN_connected) { - if ((SIL_DW.id1_h == SIL_DW.UnitDelay2_3_DSTATE) && (SIL_DW.seq1_i != + if (SIL_DW.is_active_c43_update_rc_l == 0U) { + SIL_DW.is_active_c43_update_rc_l = 1U; + SIL_DW.is_c43_update_rc_m = SIL_IN_disconnected; + SIL_DW.seq1_g = SIL_DW.UnitDelay2_2_DSTATE; + SIL_B.valid_a = false; + SIL_DW.cnt_a = 0U; + } else if (SIL_DW.is_c43_update_rc_m == SIL_IN_connected) { + if ((SIL_DW.id1_p == SIL_DW.UnitDelay2_3_DSTATE) && (SIL_DW.seq1_g != SIL_DW.UnitDelay2_2_DSTATE)) { - if (SIL_DW.cnt_h > 3) { - SIL_B.valid_db = SIL_DW.UnitDelay2_4_DSTATE; + if (SIL_DW.cnt_a > 3) { + SIL_B.valid_a = SIL_DW.UnitDelay2_4_DSTATE; } else { - idx = (int32_T)(SIL_DW.cnt_h + 1U); + idx = (int32_T)(SIL_DW.cnt_a + 1U); if ((uint32_T)idx > 255U) { idx = 255; } - SIL_DW.cnt_h = (uint8_T)idx; + SIL_DW.cnt_a = (uint8_T)idx; } - SIL_DW.is_c26_update_rc_j = SIL_IN_connected; - SIL_DW.temporalCounter_i1_l = 0U; - SIL_DW.id1_h = SIL_DW.UnitDelay2_3_DSTATE; - SIL_DW.seq1_i = SIL_DW.UnitDelay2_2_DSTATE; + SIL_DW.is_c43_update_rc_m = SIL_IN_connected; + SIL_DW.temporalCounter_i1_h2 = 0U; + SIL_DW.id1_p = SIL_DW.UnitDelay2_3_DSTATE; + SIL_DW.seq1_g = SIL_DW.UnitDelay2_2_DSTATE; } else { - if (SIL_DW.temporalCounter_i1_l >= 200U) { - SIL_DW.is_c26_update_rc_j = SIL_IN_disconnected; - SIL_DW.seq1_i = SIL_DW.UnitDelay2_2_DSTATE; - SIL_B.valid_db = false; - SIL_DW.cnt_h = 0U; + if (SIL_DW.temporalCounter_i1_h2 >= 200U) { + SIL_DW.is_c43_update_rc_m = SIL_IN_disconnected; + SIL_DW.seq1_g = SIL_DW.UnitDelay2_2_DSTATE; + SIL_B.valid_a = false; + SIL_DW.cnt_a = 0U; } } } else { - if ((!rtb_Merge_b.rc.connected) && (SIL_DW.seq1_i != + if ((!rtb_Merge_b.rc.connected) && (SIL_DW.seq1_g != SIL_DW.UnitDelay2_2_DSTATE)) { - SIL_DW.is_c26_update_rc_j = SIL_IN_connected; - SIL_DW.temporalCounter_i1_l = 0U; - SIL_DW.id1_h = SIL_DW.UnitDelay2_3_DSTATE; - SIL_DW.seq1_i = SIL_DW.UnitDelay2_2_DSTATE; + SIL_DW.is_c43_update_rc_m = SIL_IN_connected; + SIL_DW.temporalCounter_i1_h2 = 0U; + SIL_DW.id1_p = SIL_DW.UnitDelay2_3_DSTATE; + SIL_DW.seq1_g = SIL_DW.UnitDelay2_2_DSTATE; } } /* End of Chart: '/valid_checking' */ /* If: '/If1' incorporates: - * Inport: '/In1' + * Inport: '/In1' * UnitDelay: '/Unit Delay2' */ - SIL_DW.If1_ActiveSubsystem_i = (int8_T)!SIL_B.valid_db; + SIL_DW.If1_ActiveSubsystem_i = (int8_T)!SIL_B.valid_a; switch (SIL_DW.If1_ActiveSubsystem_i) { case 0: /* Outputs for IfAction SubSystem: '/valid' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ SIL_valid(&rtb_Merge_b, SIL_DW.UnitDelay2_3_DSTATE, SIL_DW.UnitDelay2_1_DSTATE, &rtb_Merge1_b); @@ -16683,7 +16725,7 @@ void SIL_step(void) case 1: /* Outputs for IfAction SubSystem: '/invalid' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ rtb_Merge1_b = rtb_Merge_b; @@ -16830,21 +16872,21 @@ void SIL_step(void) switch (rtb_Merge.BIT_MODE) { case ENUM_BIT_MODE_STAB: /* Outputs for IfAction SubSystem: '/stab' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant10' - * Constant: '/Constant12' - * Constant: '/Constant13' - * Constant: '/Constant14' - * Constant: '/Constant15' - * Constant: '/Constant16' - * Constant: '/Constant17' - * Constant: '/Constant18' - * Constant: '/Constant19' - * Constant: '/Constant2' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant10' + * Constant: '/Constant12' + * Constant: '/Constant13' + * Constant: '/Constant14' + * Constant: '/Constant15' + * Constant: '/Constant16' + * Constant: '/Constant17' + * Constant: '/Constant18' + * Constant: '/Constant19' + * Constant: '/Constant2' */ SIL_B.merged = rtb_Merge; SIL_B.merged.mode = ENUM_mode_STABILIZED; @@ -16868,24 +16910,24 @@ void SIL_step(void) case ENUM_BIT_MODE_MANUAL: /* Outputs for IfAction SubSystem: '/manual' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant10' - * Constant: '/Constant12' - * Constant: '/Constant13' - * Constant: '/Constant14' - * Constant: '/Constant15' - * Constant: '/Constant16' - * Constant: '/Constant17' - * Constant: '/Constant18' - * Constant: '/Constant19' - * Constant: '/Constant2' - * Gain: '/gain' - * Gain: '/gain1' - * Gain: '/gain2' + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant10' + * Constant: '/Constant12' + * Constant: '/Constant13' + * Constant: '/Constant14' + * Constant: '/Constant15' + * Constant: '/Constant16' + * Constant: '/Constant17' + * Constant: '/Constant18' + * Constant: '/Constant19' + * Constant: '/Constant2' + * Gain: '/gain' + * Gain: '/gain1' + * Gain: '/gain2' */ SIL_B.merged = rtb_Merge; SIL_B.merged.mode = ENUM_mode_MANUAL; @@ -16908,12 +16950,60 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/manual' */ break; - default: - /* Outputs for IfAction SubSystem: '/idle' incorporates: + case ENUM_BIT_MODE_ACT_SWEEP: + /* Outputs for IfAction SubSystem: '/act_sweep' incorporates: * ActionPort: '/Action Port' */ + /* Chart: '/sweep_generator' incorporates: + * Constant: '/Constant4' + */ + if (SIL_DW.is_active_c64_kb3_autopilot == 0U) { + SIL_DW.is_active_c64_kb3_autopilot = 1U; + SIL_DW.is_c64_kb3_autopilot = SIL_IN_idle_py; + for (idx = 0; idx < 5; idx++) { + SIL_B.acts[idx] = 0.0F; + } + } else if (SIL_DW.is_c64_kb3_autopilot == SIL_IN_idle_py) { + if (rtb_Merge.act_sw_chan != 0) { + SIL_DW.is_c64_kb3_autopilot = SIL_IN_sweep; + for (idx = 0; idx < 5; idx++) { + SIL_B.acts[idx] = 0.0F; + } + + SIL_B.chan_out = rtb_Merge.act_sw_chan; + SIL_DW.freq = rtb_Merge.act_sw_freq0; + SIL_DW.t = 0.0F; + } + } else { + guard1 = false; + if (SIL_DW.freq > rtb_Merge.act_sw_freq1) { + SIL_B.chan_out = 0U; + guard1 = true; + } else if (SIL_B.chan_out == 0) { + guard1 = true; + } else { + for (idx = 0; idx < 5; idx++) { + SIL_B.acts[idx] = 0.0F; + } + + SIL_DW.t += 0.005F; + SIL_DW.freq += rtb_Merge.act_sw_k * SIL_DW.t; + SIL_B.acts[rtb_Merge.act_sw_chan - 1] = sinf(SIL_DW.freq * + SIL_DW.t) * rtb_Merge.act_sw_amp; + } + + if (guard1) { + SIL_DW.is_c64_kb3_autopilot = SIL_IN_idle_py; + for (idx = 0; idx < 5; idx++) { + SIL_B.acts[idx] = 0.0F; + } + } + } + + /* End of Chart: '/sweep_generator' */ + /* BusAssignment: '/Bus Assignment' incorporates: - * Constant: '/Constant BP' + * Constant: '/Constant' * Constant: '/Constant1' * Constant: '/Constant10' * Constant: '/Constant12' @@ -16927,6 +17017,47 @@ void SIL_step(void) * Constant: '/Constant2' */ SIL_B.merged = rtb_Merge; + SIL_B.merged.mode = ENUM_mode_MANUAL; + SIL_B.merged.state = ENUM_SystemState_UNINIT; + SIL_B.merged.landed_state = ENUM_LANDED_STATE_ON_GROUND; + SIL_B.merged.vtol_state = ENUM_VTOL_STATE_FW; + SIL_B.merged.use_mission_traj = true; + SIL_B.merged.CSAS_pitch = ENUM_CSAS_PITCH_COMMAND; + SIL_B.merged.CSAS_roll = ENUM_CSAS_ROLL_COMMAND; + SIL_B.merged.CSAS_yaw = ENUM_CSAS_YAW_COMMAND; + SIL_B.merged.AT = ENUM_AT_COMMAND; + SIL_B.merged.AFCS_LAT = ENUM_AFCS_LAT_OFF; + SIL_B.merged.AFCS_VERT = ENUM_AFCS_VERT_OFF; + SIL_B.merged.use_mix = false; + SIL_B.merged.dar_c = SIL_B.acts[0]; + SIL_B.merged.der_c = SIL_B.acts[1]; + SIL_B.merged.dr_c = SIL_B.acts[2]; + SIL_B.merged.dal_c = SIL_B.acts[3]; + SIL_B.merged.del_c = SIL_B.acts[4]; + SIL_B.merged.act_sw_chan = SIL_B.chan_out; + + /* End of Outputs for SubSystem: '/act_sweep' */ + break; + + default: + /* Outputs for IfAction SubSystem: '/idle' incorporates: + * ActionPort: '/Action Port' + */ + /* BusAssignment: '/Bus Assignment' incorporates: + * Constant: '/Constant BP' + * Constant: '/Constant1' + * Constant: '/Constant10' + * Constant: '/Constant12' + * Constant: '/Constant13' + * Constant: '/Constant14' + * Constant: '/Constant15' + * Constant: '/Constant16' + * Constant: '/Constant17' + * Constant: '/Constant18' + * Constant: '/Constant19' + * Constant: '/Constant2' + */ + SIL_B.merged = rtb_Merge; SIL_B.merged.mode = ENUM_mode_BIT; SIL_B.merged.state = ENUM_SystemState_UNINIT; SIL_B.merged.landed_state = ENUM_LANDED_STATE_ON_GROUND; @@ -17124,12 +17255,12 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/get_WP' */ while (SIL_B.is_mission) { - rtb_out_pn = SIL_B.cur_np + 1U; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + rtb_out_kt = SIL_B.cur_np + 1U; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } - SIL_B.cur_np = (uint16_T)rtb_out_pn; + SIL_B.cur_np = (uint16_T)rtb_out_kt; /* Outputs for Function Call SubSystem: '/get_WP' */ SIL_get_WP(SIL_B.cur_np, &SIL_B.is_mission, &SIL_B.command_j, @@ -17148,11 +17279,11 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/valid_test' */ if (SIL_B.Merge_p) { SIL_B.last_WP = SIL_B.cur_np; - SIL_DW.is_c48_mission_proc = SIL_IN_Idle_p; + SIL_DW.is_c48_mission_proc = SIL_IN_Idle_e; } else { SIL_DW.is_c48_mission_proc = SIL_IN_wait; } - } else if (SIL_DW.is_c48_mission_proc == SIL_IN_Idle_p) { + } else if (SIL_DW.is_c48_mission_proc == SIL_IN_Idle_e) { SIL_B.mission_mode = SIL_B.command_j; SIL_DW.cmd_msgData.id = SIL_B.command_j; for (idx = 0; idx < 7; idx++) { @@ -17160,12 +17291,12 @@ void SIL_step(void) } SIL_sf_msg_send_cmd(); - rtb_out_pn = SIL_B.cur_np + 1U; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + rtb_out_kt = SIL_B.cur_np + 1U; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } - SIL_B.cur_np = (uint16_T)rtb_out_pn; + SIL_B.cur_np = (uint16_T)rtb_out_kt; /* Outputs for Function Call SubSystem: '/get_WP' */ SIL_get_WP(SIL_B.cur_np, &SIL_B.is_mission, &SIL_B.command_j, @@ -17179,12 +17310,12 @@ void SIL_step(void) } SIL_sf_msg_send_cmd(); - rtb_out_pn = SIL_B.cur_np + 1U; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + rtb_out_kt = SIL_B.cur_np + 1U; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } - SIL_B.cur_np = (uint16_T)rtb_out_pn; + SIL_B.cur_np = (uint16_T)rtb_out_kt; /* Outputs for Function Call SubSystem: '/get_WP' */ SIL_get_WP(SIL_B.cur_np, &SIL_B.is_mission, &SIL_B.command_j, @@ -17204,12 +17335,12 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/get_WP' */ while (SIL_B.is_mission) { - rtb_out_pn = SIL_B.cur_np + 1U; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + rtb_out_kt = SIL_B.cur_np + 1U; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } - SIL_B.cur_np = (uint16_T)rtb_out_pn; + SIL_B.cur_np = (uint16_T)rtb_out_kt; /* Outputs for Function Call SubSystem: '/get_WP' */ SIL_get_WP(SIL_B.cur_np, &SIL_B.is_mission, &SIL_B.command_j, @@ -17228,7 +17359,7 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/valid_test' */ if (SIL_B.Merge_p) { SIL_B.last_WP = SIL_B.cur_np; - SIL_DW.is_c48_mission_proc = SIL_IN_Idle_p; + SIL_DW.is_c48_mission_proc = SIL_IN_Idle_e; } else { SIL_DW.is_c48_mission_proc = SIL_IN_wait; } @@ -17277,7 +17408,7 @@ void SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/takeoff_task' */ - SIL_DW.temporalCounter_i1_i = 0U; + SIL_DW.temporalCounter_i1_d = 0U; SIL_DW.is_active_c28_kb3_autopilot = 0U; SIL_DW.is_c28_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -17290,86 +17421,86 @@ void SIL_step(void) /* Chart: '/takeoff_task' incorporates: * Constant: '/Constant1' */ - if (SIL_DW.temporalCounter_i1_i < 1023U) { - SIL_DW.temporalCounter_i1_i++; + if (SIL_DW.temporalCounter_i1_d < 1023U) { + SIL_DW.temporalCounter_i1_d++; } if (SIL_DW.is_active_c28_kb3_autopilot == 0U) { SIL_DW.is_active_c28_kb3_autopilot = 1U; SIL_DW.is_c28_kb3_autopilot = SIL_IN_WaitForLaunch; - SIL_B.mode_e = ENUM_mode_AUTO; - SIL_B.WP_out_e = SIL_B.BusAssignment_g.WP_cur; + SIL_B.mode_l = ENUM_mode_AUTO; + SIL_B.WP_out_k4 = SIL_B.BusAssignment_g.WP_cur; SIL_B.landed_state_out_d = ENUM_LANDED_STATE_ON_GROUND; - SIL_B.AFCS_VERT_j = ENUM_AFCS_VERT_OFF; - SIL_B.AFCS_LNAV_h = ENUM_AFCS_LAT_OFF; + SIL_B.AFCS_VERT_g = ENUM_AFCS_VERT_OFF; + SIL_B.AFCS_LNAV_a = ENUM_AFCS_LAT_OFF; SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_COMMAND; - SIL_B.CSAS_roll_m = ENUM_CSAS_ROLL_OFF; - SIL_B.CSAS_yaw_n = ENUM_CSAS_YAW_OFF; - SIL_B.AT_j = ENUM_AT_COMMAND; + SIL_B.CSAS_roll_p = ENUM_CSAS_ROLL_OFF; + SIL_B.CSAS_yaw_d = ENUM_CSAS_YAW_OFF; + SIL_B.AT_h = ENUM_AT_COMMAND; SIL_B.de_c = 0.0F; SIL_B.thr_c = SIL_P.max_thr; } else { switch (SIL_DW.is_c28_kb3_autopilot) { case SIL_IN_Active: - SIL_B.CSAS_roll_m = ENUM_CSAS_ROLL_ROLL_CTRL; + SIL_B.CSAS_roll_p = ENUM_CSAS_ROLL_ROLL_CTRL; SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; - SIL_B.CSAS_yaw_n = ENUM_CSAS_YAW_DAMPING; - SIL_B.phi_c_d = 0.0F; - if ((SIL_DW.temporalCounter_i1_i >= 1000U) && + SIL_B.CSAS_yaw_d = ENUM_CSAS_YAW_DAMPING; + SIL_B.phi_c_e = 0.0F; + if ((SIL_DW.temporalCounter_i1_d >= 1000U) && (SIL_B.BusAssignment_j.satnum > 6)) { SIL_DW.is_c28_kb3_autopilot = SIL_IN_LatGuide; - SIL_B.AFCS_LNAV_h = ENUM_AFCS_LAT_LNAV2PHI; + SIL_B.AFCS_LNAV_a = ENUM_AFCS_LAT_LNAV2PHI; } break; case SIL_IN_Done: - SIL_B.mode_e = ENUM_mode_AUTO; + SIL_B.mode_l = ENUM_mode_AUTO; SIL_B.landed_state_out_d = ENUM_LANDED_STATE_IN_AIR; break; case SIL_IN_LatGuide: - SIL_B.AFCS_LNAV_h = ENUM_AFCS_LAT_LNAV2PHI; + SIL_B.AFCS_LNAV_a = ENUM_AFCS_LAT_LNAV2PHI; if (SIL_B.BusAssignment_j.TAS >= rtb_uDLookupTable) { SIL_DW.is_c28_kb3_autopilot = SIL_IN_Done; - SIL_B.mode_e = ENUM_mode_AUTO; - rtb_out_pn = SIL_B.WP_out_e + 1U; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + SIL_B.mode_l = ENUM_mode_AUTO; + rtb_out_kt = SIL_B.WP_out_k4 + 1U; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } - SIL_B.WP_out_e = (uint16_T)rtb_out_pn; + SIL_B.WP_out_k4 = (uint16_T)rtb_out_kt; SIL_B.landed_state_out_d = ENUM_LANDED_STATE_IN_AIR; } break; case SIL_IN_Launched: - SIL_B.mode_e = ENUM_mode_AUTO_TAKEOFF; + SIL_B.mode_l = ENUM_mode_AUTO_TAKEOFF; SIL_B.landed_state_out_d = ENUM_LANDED_STATE_TAKEOFF; - if (SIL_DW.temporalCounter_i1_i >= 200U) { + if (SIL_DW.temporalCounter_i1_d >= 200U) { SIL_DW.is_c28_kb3_autopilot = SIL_IN_Active; - SIL_DW.temporalCounter_i1_i = 0U; - SIL_B.CSAS_roll_m = ENUM_CSAS_ROLL_ROLL_CTRL; + SIL_DW.temporalCounter_i1_d = 0U; + SIL_B.CSAS_roll_p = ENUM_CSAS_ROLL_ROLL_CTRL; SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; - SIL_B.CSAS_yaw_n = ENUM_CSAS_YAW_DAMPING; - SIL_B.phi_c_d = 0.0F; - SIL_B.tht_c_h = SIL_B.BusAssignment_g.takeoff_tht; + SIL_B.CSAS_yaw_d = ENUM_CSAS_YAW_DAMPING; + SIL_B.phi_c_e = 0.0F; + SIL_B.tht_c_f = SIL_B.BusAssignment_g.takeoff_tht; } break; default: - SIL_B.mode_e = ENUM_mode_AUTO; + SIL_B.mode_l = ENUM_mode_AUTO; SIL_B.landed_state_out_d = ENUM_LANDED_STATE_ON_GROUND; - SIL_B.AFCS_VERT_j = ENUM_AFCS_VERT_OFF; - SIL_B.AFCS_LNAV_h = ENUM_AFCS_LAT_OFF; + SIL_B.AFCS_VERT_g = ENUM_AFCS_VERT_OFF; + SIL_B.AFCS_LNAV_a = ENUM_AFCS_LAT_OFF; SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_COMMAND; - SIL_B.CSAS_roll_m = ENUM_CSAS_ROLL_OFF; - SIL_B.CSAS_yaw_n = ENUM_CSAS_YAW_OFF; - SIL_B.AT_j = ENUM_AT_COMMAND; + SIL_B.CSAS_roll_p = ENUM_CSAS_ROLL_OFF; + SIL_B.CSAS_yaw_d = ENUM_CSAS_YAW_OFF; + SIL_B.AT_h = ENUM_AT_COMMAND; SIL_B.de_c = 0.0F; if (SIL_B.BusAssignment_j.ax > 30.0F) { SIL_DW.is_c28_kb3_autopilot = SIL_IN_Launched; - SIL_DW.temporalCounter_i1_i = 0U; - SIL_B.mode_e = ENUM_mode_AUTO_TAKEOFF; + SIL_DW.temporalCounter_i1_d = 0U; + SIL_B.mode_l = ENUM_mode_AUTO_TAKEOFF; SIL_B.landed_state_out_d = ENUM_LANDED_STATE_TAKEOFF; } break; @@ -17380,18 +17511,18 @@ void SIL_step(void) /* BusAssignment: '/Bus Assignment' */ SIL_B.merged = SIL_B.BusAssignment_g; - SIL_B.merged.mode = SIL_B.mode_e; - SIL_B.merged.AFCS_LAT = SIL_B.AFCS_LNAV_h; - SIL_B.merged.AFCS_VERT = SIL_B.AFCS_VERT_j; - SIL_B.merged.CSAS_roll = SIL_B.CSAS_roll_m; + SIL_B.merged.mode = SIL_B.mode_l; + SIL_B.merged.AFCS_LAT = SIL_B.AFCS_LNAV_a; + SIL_B.merged.AFCS_VERT = SIL_B.AFCS_VERT_g; + SIL_B.merged.CSAS_roll = SIL_B.CSAS_roll_p; SIL_B.merged.CSAS_pitch = SIL_B.CSAS_pitch; - SIL_B.merged.CSAS_yaw = SIL_B.CSAS_yaw_n; - SIL_B.merged.AT = SIL_B.AT_j; + SIL_B.merged.CSAS_yaw = SIL_B.CSAS_yaw_d; + SIL_B.merged.AT = SIL_B.AT_h; SIL_B.merged.landed_state = SIL_B.landed_state_out_d; SIL_B.merged.throttle_c = SIL_B.thr_c; - SIL_B.merged.phi_c = SIL_B.phi_c_d; - SIL_B.merged.tht_c = SIL_B.tht_c_h; - SIL_B.merged.WP_cur = SIL_B.WP_out_e; + SIL_B.merged.phi_c = SIL_B.phi_c_e; + SIL_B.merged.tht_c = SIL_B.tht_c_f; + SIL_B.merged.WP_cur = SIL_B.WP_out_k4; SIL_B.merged.de_c = SIL_B.de_c; /* End of Outputs for SubSystem: '/takeoff' */ @@ -17405,7 +17536,7 @@ void SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/landing_task' */ - SIL_DW.temporalCounter_i1_f = 0U; + SIL_DW.temporalCounter_i1_a = 0U; SIL_DW.is_active_c18_kb3_autopilot = 0U; SIL_DW.is_c18_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -17418,20 +17549,20 @@ void SIL_step(void) /* Chart: '/landing_task' incorporates: * Constant: '/Constant' */ - if (SIL_DW.temporalCounter_i1_f < 2047U) { - SIL_DW.temporalCounter_i1_f++; + if (SIL_DW.temporalCounter_i1_a < 2047U) { + SIL_DW.temporalCounter_i1_a++; } if (SIL_DW.is_active_c18_kb3_autopilot == 0U) { SIL_DW.is_active_c18_kb3_autopilot = 1U; SIL_DW.is_c18_kb3_autopilot = SIL_IN_ShutdownEngine; - SIL_B.mode_l = ENUM_mode_AUTO_LAND; - SIL_B.WP_out_o = SIL_B.BusAssignment_g.WP_cur; + SIL_B.mode_c = ENUM_mode_AUTO_LAND; + SIL_B.WP_out_k = SIL_B.BusAssignment_g.WP_cur; rtb_ECU_CMD = 67U; SIL_B.armed = false; SIL_B.landed_state_out = ENUM_LANDED_STATE_LANDING; SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; - SIL_B.AFCS_LNAV_g = ENUM_AFCS_LAT_OFF; + SIL_B.AFCS_LNAV_h = ENUM_AFCS_LAT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; SIL_B.CSAS_yaw = ENUM_CSAS_YAW_DAMPING; @@ -17452,7 +17583,7 @@ void SIL_step(void) case SIL_IN_Recovery: SIL_B.AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; - if (SIL_DW.temporalCounter_i1_f >= 2000U) { + if (SIL_DW.temporalCounter_i1_a >= 2000U) { SIL_DW.is_c18_kb3_autopilot = SIL_IN_Landing; rtb_CSAS_pitch = ENUM_CSAS_PITCH_OFF; SIL_B.CSAS_roll = ENUM_CSAS_ROLL_OFF; @@ -17466,11 +17597,11 @@ void SIL_step(void) break; default: - SIL_B.mode_l = ENUM_mode_AUTO_LAND; + SIL_B.mode_c = ENUM_mode_AUTO_LAND; SIL_B.armed = false; SIL_B.landed_state_out = ENUM_LANDED_STATE_LANDING; SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; - SIL_B.AFCS_LNAV_g = ENUM_AFCS_LAT_OFF; + SIL_B.AFCS_LNAV_h = ENUM_AFCS_LAT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; SIL_B.CSAS_yaw = ENUM_CSAS_YAW_DAMPING; @@ -17479,7 +17610,7 @@ void SIL_step(void) SIL_B.hdot_c = 0.0F; if (SIL_B.BusAssignment_j.IAS <= SIL_P.recovery_ias) { SIL_DW.is_c18_kb3_autopilot = SIL_IN_Recovery; - SIL_DW.temporalCounter_i1_f = 0U; + SIL_DW.temporalCounter_i1_a = 0U; SIL_B.AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; rtb_ECU_CMD = SIL_B.BusAssignment_g.ECU_CMD; @@ -17497,8 +17628,8 @@ void SIL_step(void) /* BusAssignment: '/Bus Assignment' */ SIL_B.merged = SIL_B.BusAssignment_g; - SIL_B.merged.mode = SIL_B.mode_l; - SIL_B.merged.AFCS_LAT = SIL_B.AFCS_LNAV_g; + SIL_B.merged.mode = SIL_B.mode_c; + SIL_B.merged.AFCS_LAT = SIL_B.AFCS_LNAV_h; SIL_B.merged.AFCS_VERT = SIL_B.AFCS_VERT; SIL_B.merged.CSAS_roll = SIL_B.CSAS_roll; SIL_B.merged.CSAS_pitch = rtb_CSAS_pitch; @@ -17508,7 +17639,7 @@ void SIL_step(void) SIL_B.merged.hdot_c = SIL_B.hdot_c; SIL_B.merged.phi_c = SIL_B.phi_c; SIL_B.merged.tht_c = SIL_B.tht_c; - SIL_B.merged.WP_cur = SIL_B.WP_out_o; + SIL_B.merged.WP_cur = SIL_B.WP_out_k; SIL_B.merged.recovery = rtb_recovery; SIL_B.merged.armed = SIL_B.armed; SIL_B.merged.ECU_CMD = rtb_ECU_CMD; @@ -17524,7 +17655,7 @@ void SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_b = 0U; + SIL_DW.temporalCounter_i1_ew = 0U; SIL_DW.is_active_c29_kb3_autopilot = 0U; SIL_DW.is_c29_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -17537,14 +17668,14 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_b < 255U) { - SIL_DW.temporalCounter_i1_b++; + if (SIL_DW.temporalCounter_i1_ew < 255U) { + SIL_DW.temporalCounter_i1_ew++; } if (SIL_DW.is_active_c29_kb3_autopilot == 0U) { SIL_DW.is_active_c29_kb3_autopilot = 1U; SIL_DW.is_c29_kb3_autopilot = SIL_IN_WP; - SIL_DW.temporalCounter_i1_b = 0U; + SIL_DW.temporalCounter_i1_ew = 0U; SIL_B.mode = ENUM_mode_AUTO_MISSION; SIL_B.WP_out = SIL_B.BusAssignment_g.WP_cur; SIL_B.AFCS_LNAV = ENUM_AFCS_LAT_LNAV2PHI; @@ -17552,7 +17683,7 @@ void SIL_step(void) (SIL_B.BusAssignment_g.AFCS_VERT); } else if (SIL_DW.is_c29_kb3_autopilot == SIL_IN_NextWP) { SIL_DW.is_c29_kb3_autopilot = SIL_IN_WP; - SIL_DW.temporalCounter_i1_b = 0U; + SIL_DW.temporalCounter_i1_ew = 0U; SIL_B.mode = ENUM_mode_AUTO_MISSION; SIL_B.WP_out = SIL_B.BusAssignment_g.WP_cur; SIL_B.AFCS_LNAV = ENUM_AFCS_LAT_LNAV2PHI; @@ -17561,17 +17692,17 @@ void SIL_step(void) } else { SIL_B.mode = ENUM_mode_AUTO_MISSION; SIL_B.AFCS_LNAV = ENUM_AFCS_LAT_LNAV2PHI; - if ((SIL_DW.temporalCounter_i1_b >= 200U) && + if ((SIL_DW.temporalCounter_i1_ew >= 200U) && SIL_B.BusAssignment_g.autocont && (SIL_DW.UnitDelay_DSTATE.dist_offset < SIL_B.BusAssignment_g.dist_trans)) { SIL_DW.is_c29_kb3_autopilot = SIL_IN_NextWP; - rtb_out_pn = SIL_B.WP_out + 1U; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + rtb_out_kt = SIL_B.WP_out + 1U; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } - SIL_B.WP_out = (uint16_T)rtb_out_pn; + SIL_B.WP_out = (uint16_T)rtb_out_kt; } else { SIL_B.AFCS_VERT_out = SIL_update_vert (SIL_B.BusAssignment_g.AFCS_VERT); @@ -17618,8 +17749,8 @@ void SIL_step(void) /* End of SwitchCase: '/Switch Case' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_m3 < 31U) { - SIL_DW.temporalCounter_i1_m3++; + if (SIL_DW.temporalCounter_i1_es < 31U) { + SIL_DW.temporalCounter_i1_es++; } if (SIL_DW.temporalCounter_i2 < 4095U) { @@ -17628,14 +17759,14 @@ void SIL_step(void) if (SIL_DW.is_active_c59_kb3_autopilot == 0U) { SIL_DW.is_active_c59_kb3_autopilot = 1U; - SIL_DW.is_c59_kb3_autopilot = SIL_IN_Idle_p; + SIL_DW.is_c59_kb3_autopilot = SIL_IN_Idle_e; SIL_B.recovery_out = SIL_B.merged.recovery; SIL_B.ch_out = SIL_B.merged.ccm_ch; SIL_B.peroid_out = SIL_B.merged.ccm_period; SIL_B.sw_out = SIL_B.merged.ccm_sw; } else { switch (SIL_DW.is_c59_kb3_autopilot) { - case SIL_IN_Idle_p: + case SIL_IN_Idle_e: SIL_Idle(); break; @@ -17645,7 +17776,7 @@ void SIL_step(void) SIL_DW.temporalCounter_i2 = 0U; SIL_B.recovery_out = 15U; SIL_DW.is_cut = SIL_IN_one; - SIL_DW.temporalCounter_i1_m3 = 0U; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 4U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -17675,7 +17806,7 @@ void SIL_step(void) } else { switch (SIL_DW.is_balloon) { case SIL_IN_five: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { + if (SIL_DW.temporalCounter_i1_es >= 30U) { SIL_DW.is_balloon = SIL_IN_six; SIL_B.ch_out = 10U; SIL_B.peroid_out = 20000U; @@ -17688,9 +17819,9 @@ void SIL_step(void) break; case SIL_IN_four: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { + if (SIL_DW.temporalCounter_i1_es >= 30U) { SIL_DW.is_balloon = SIL_IN_five; - SIL_DW.temporalCounter_i1_m3 = 0U; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 9U; SIL_B.peroid_out = 20000U; SIL_B.sw_out = 1U; @@ -17701,10 +17832,10 @@ void SIL_step(void) } break; - case SIL_IN_one_p: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { - SIL_DW.is_balloon = SIL_IN_two_l; - SIL_DW.temporalCounter_i1_m3 = 0U; + case SIL_IN_one_g: + if (SIL_DW.temporalCounter_i1_es >= 30U) { + SIL_DW.is_balloon = SIL_IN_two_c; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 10U; SIL_B.peroid_out = 20000U; SIL_B.sw_out = 1U; @@ -17721,10 +17852,10 @@ void SIL_step(void) SIL_B.sw_out = 0U; break; - case SIL_IN_three_h: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { + case SIL_IN_three_b: + if (SIL_DW.temporalCounter_i1_es >= 30U) { SIL_DW.is_balloon = SIL_IN_four; - SIL_DW.temporalCounter_i1_m3 = 0U; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 10U; SIL_B.peroid_out = 20000U; SIL_B.sw_out = 1U; @@ -17736,9 +17867,9 @@ void SIL_step(void) break; default: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { - SIL_DW.is_balloon = SIL_IN_three_h; - SIL_DW.temporalCounter_i1_m3 = 0U; + if (SIL_DW.temporalCounter_i1_es >= 30U) { + SIL_DW.is_balloon = SIL_IN_three_b; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 9U; SIL_B.peroid_out = 20000U; SIL_B.sw_out = 1U; @@ -17758,15 +17889,15 @@ void SIL_step(void) SIL_DW.is_c59_kb3_autopilot = SIL_IN_balloon; SIL_DW.temporalCounter_i2 = 0U; SIL_B.recovery_out = 7U; - SIL_DW.is_balloon = SIL_IN_one_p; - SIL_DW.temporalCounter_i1_m3 = 0U; + SIL_DW.is_balloon = SIL_IN_one_g; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 9U; SIL_B.peroid_out = 20000U; SIL_B.sw_out = 1U; } else { switch (SIL_DW.is_cover) { case SIL_IN_five: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { + if (SIL_DW.temporalCounter_i1_es >= 30U) { SIL_DW.is_cover = SIL_IN_six; SIL_B.ch_out = 6U; SIL_B.peroid_out = 50U; @@ -17779,9 +17910,9 @@ void SIL_step(void) break; case SIL_IN_four: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { + if (SIL_DW.temporalCounter_i1_es >= 30U) { SIL_DW.is_cover = SIL_IN_five; - SIL_DW.temporalCounter_i1_m3 = 0U; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 5U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -17792,10 +17923,10 @@ void SIL_step(void) } break; - case SIL_IN_one_p: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { - SIL_DW.is_cover = SIL_IN_two_l; - SIL_DW.temporalCounter_i1_m3 = 0U; + case SIL_IN_one_g: + if (SIL_DW.temporalCounter_i1_es >= 30U) { + SIL_DW.is_cover = SIL_IN_two_c; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 6U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -17812,10 +17943,10 @@ void SIL_step(void) SIL_B.sw_out = 0U; break; - case SIL_IN_three_h: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { + case SIL_IN_three_b: + if (SIL_DW.temporalCounter_i1_es >= 30U) { SIL_DW.is_cover = SIL_IN_four; - SIL_DW.temporalCounter_i1_m3 = 0U; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 6U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -17827,9 +17958,9 @@ void SIL_step(void) break; default: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { - SIL_DW.is_cover = SIL_IN_three_h; - SIL_DW.temporalCounter_i1_m3 = 0U; + if (SIL_DW.temporalCounter_i1_es >= 30U) { + SIL_DW.is_cover = SIL_IN_three_b; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 5U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -17854,9 +17985,9 @@ void SIL_step(void) } else { switch (SIL_DW.is_cut) { case SIL_IN_one: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { + if (SIL_DW.temporalCounter_i1_es >= 30U) { SIL_DW.is_cut = SIL_IN_two; - SIL_DW.temporalCounter_i1_m3 = 0U; + SIL_DW.temporalCounter_i1_es = 0U; SIL_B.ch_out = 4U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -17874,7 +18005,7 @@ void SIL_step(void) break; default: - if (SIL_DW.temporalCounter_i1_m3 >= 30U) { + if (SIL_DW.temporalCounter_i1_es >= 30U) { SIL_DW.is_cut = SIL_IN_three; SIL_B.ch_out = 4U; SIL_B.peroid_out = 50U; @@ -17907,9 +18038,9 @@ void SIL_step(void) /* If: '/If' */ if (rtb_Merge_n.use_mission_traj) { /* Outputs for IfAction SubSystem: '/update_mission_traj' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/mav' */ + /* MATLAB Function: '/mav' */ rtb_recovery = 0U; rtb_Divide6 = 0.0; rtb_sincos_o1_b2_idx_1 = 0.0; @@ -18068,8 +18199,8 @@ void SIL_step(void) } } - /* BusAssignment: '/Bus Assignment' incorporates: - * MATLAB Function: '/mav' + /* BusAssignment: '/Bus Assignment' incorporates: + * MATLAB Function: '/mav' */ rtb_Merge_n.traj.lat1 = rtb_Divide6; rtb_Merge_n.traj.lon1 = rtb_sincos_o1_b2_idx_1; @@ -19048,8 +19179,10 @@ void SIL_step(void) rtb_Merge_h_rc_roll_cmd = rtb_Merge_n.rc.roll_cmd; rtb_Merge_h_rc_yaw_cmd = rtb_Merge_n.rc.yaw_cmd; rtb_Merge_h_rc_throttle_cmd = rtb_Merge_n.rc.throttle_cmd; - rtb_Merge_h_rc_ele_cmd = rtb_Merge_n.rc.ele_cmd; - rtb_Merge_h_rc_flap = rtb_Merge_n.rc.flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_h_rc_chan_raw[idx] = rtb_Merge_n.rc.chan_raw[idx]; + } + rtb_Merge_h_rc_auto_mode = rtb_Merge_n.rc.auto_mode; rtb_Merge_h_rc_aux_mode = rtb_Merge_n.rc.aux_mode; rtb_Merge_h_rc_id = rtb_Merge_n.rc.id; @@ -19111,8 +19244,15 @@ void SIL_step(void) rtb_Merge_h_trim_aoa = rtb_Merge_n.trim_aoa; rtb_Merge_h_trim_aos = rtb_Merge_n.trim_aos; rtb_Merge_h_BIT_MODE = rtb_Merge_n.BIT_MODE; + rtb_Merge_h_act_sw_chan = rtb_Merge_n.act_sw_chan; + rtb_Merge_h_act_sw_amp = rtb_Merge_n.act_sw_amp; + rtb_Merge_h_act_sw_freq0 = rtb_Merge_n.act_sw_freq0; + rtb_Merge_h_act_sw_freq1 = rtb_Merge_n.act_sw_freq1; + rtb_Merge_h_act_sw_k = rtb_Merge_n.act_sw_k; rtb_Merge_h_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; + /* End of BusAssignment: '/Bus Assignment' */ + /* Update for Delay: '/Delay' incorporates: * Sum: '/Sum3' */ @@ -19248,8 +19388,10 @@ void SIL_step(void) rtb_Merge_h_rc_roll_cmd = rtb_Merge_n.rc.roll_cmd; rtb_Merge_h_rc_yaw_cmd = rtb_Merge_n.rc.yaw_cmd; rtb_Merge_h_rc_throttle_cmd = rtb_Merge_n.rc.throttle_cmd; - rtb_Merge_h_rc_ele_cmd = rtb_Merge_n.rc.ele_cmd; - rtb_Merge_h_rc_flap = rtb_Merge_n.rc.flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_h_rc_chan_raw[idx] = rtb_Merge_n.rc.chan_raw[idx]; + } + rtb_Merge_h_rc_auto_mode = rtb_Merge_n.rc.auto_mode; rtb_Merge_h_rc_aux_mode = rtb_Merge_n.rc.aux_mode; rtb_Merge_h_rc_id = rtb_Merge_n.rc.id; @@ -19312,8 +19454,15 @@ void SIL_step(void) rtb_Merge_h_trim_aoa = rtb_Merge_n.trim_aoa; rtb_Merge_h_trim_aos = rtb_Merge_n.trim_aos; rtb_Merge_h_BIT_MODE = rtb_Merge_n.BIT_MODE; + rtb_Merge_h_act_sw_chan = rtb_Merge_n.act_sw_chan; + rtb_Merge_h_act_sw_amp = rtb_Merge_n.act_sw_amp; + rtb_Merge_h_act_sw_freq0 = rtb_Merge_n.act_sw_freq0; + rtb_Merge_h_act_sw_freq1 = rtb_Merge_n.act_sw_freq1; + rtb_Merge_h_act_sw_k = rtb_Merge_n.act_sw_k; rtb_Merge_h_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; + /* End of BusAssignment: '/Bus Assignment' */ + /* Update for Delay: '/Delay' incorporates: * Sum: '/Sum3' */ @@ -19364,8 +19513,10 @@ void SIL_step(void) rtb_Merge_h_rc_roll_cmd = rtb_Merge_n.rc.roll_cmd; rtb_Merge_h_rc_yaw_cmd = rtb_Merge_n.rc.yaw_cmd; rtb_Merge_h_rc_throttle_cmd = rtb_Merge_n.rc.throttle_cmd; - rtb_Merge_h_rc_ele_cmd = rtb_Merge_n.rc.ele_cmd; - rtb_Merge_h_rc_flap = rtb_Merge_n.rc.flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_h_rc_chan_raw[idx] = rtb_Merge_n.rc.chan_raw[idx]; + } + rtb_Merge_h_rc_auto_mode = rtb_Merge_n.rc.auto_mode; rtb_Merge_h_rc_aux_mode = rtb_Merge_n.rc.aux_mode; rtb_Merge_h_rc_id = rtb_Merge_n.rc.id; @@ -19429,6 +19580,11 @@ void SIL_step(void) rtb_Merge_h_trim_aoa = rtb_Merge_n.trim_aoa; rtb_Merge_h_trim_aos = rtb_Merge_n.trim_aos; rtb_Merge_h_BIT_MODE = rtb_Merge_n.BIT_MODE; + rtb_Merge_h_act_sw_chan = rtb_Merge_n.act_sw_chan; + rtb_Merge_h_act_sw_amp = rtb_Merge_n.act_sw_amp; + rtb_Merge_h_act_sw_freq0 = rtb_Merge_n.act_sw_freq0; + rtb_Merge_h_act_sw_freq1 = rtb_Merge_n.act_sw_freq1; + rtb_Merge_h_act_sw_k = rtb_Merge_n.act_sw_k; /* End of Outputs for SubSystem: '/off' */ break; @@ -19675,8 +19831,10 @@ void SIL_step(void) rtb_Merge_nh_rc_roll_cmd = rtb_Merge_h_rc_roll_cmd; rtb_Merge_nh_rc_yaw_cmd = rtb_Merge_h_rc_yaw_cmd; rtb_Merge_nh_rc_throttle_cmd = rtb_Merge_h_rc_throttle_cmd; - rtb_Merge_nh_rc_ele_cmd = rtb_Merge_h_rc_ele_cmd; - rtb_Merge_nh_rc_flap = rtb_Merge_h_rc_flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_nh_rc_chan_raw[idx] = rtb_Merge_h_rc_chan_raw[idx]; + } + rtb_Merge_nh_rc_auto_mode = rtb_Merge_h_rc_auto_mode; rtb_Merge_nh_rc_aux_mode = rtb_Merge_h_rc_aux_mode; rtb_Merge_nh_rc_id = rtb_Merge_h_rc_id; @@ -19739,9 +19897,16 @@ void SIL_step(void) rtb_Merge_nh_trim_aoa = rtb_Merge_h_trim_aoa; rtb_Merge_nh_trim_aos = rtb_Merge_h_trim_aos; rtb_Merge_nh_BIT_MODE = rtb_Merge_h_BIT_MODE; + rtb_Merge_nh_act_sw_chan = rtb_Merge_h_act_sw_chan; + rtb_Merge_nh_act_sw_amp = rtb_Merge_h_act_sw_amp; + rtb_Merge_nh_act_sw_freq0 = rtb_Merge_h_act_sw_freq0; + rtb_Merge_nh_act_sw_freq1 = rtb_Merge_h_act_sw_freq1; + rtb_Merge_nh_act_sw_k = rtb_Merge_h_act_sw_k; rtb_Merge_nh_CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; rtb_Merge_nh_CSAS_yaw = ENUM_CSAS_YAW_DAMPING; + /* End of BusAssignment: '/Bus Assignment' */ + /* Sum: '/err_psi1' incorporates: * UnitDelay: '/Unit Delay' */ @@ -19797,8 +19962,10 @@ void SIL_step(void) rtb_Merge_nh_rc_roll_cmd = rtb_Merge_h_rc_roll_cmd; rtb_Merge_nh_rc_yaw_cmd = rtb_Merge_h_rc_yaw_cmd; rtb_Merge_nh_rc_throttle_cmd = rtb_Merge_h_rc_throttle_cmd; - rtb_Merge_nh_rc_ele_cmd = rtb_Merge_h_rc_ele_cmd; - rtb_Merge_nh_rc_flap = rtb_Merge_h_rc_flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_nh_rc_chan_raw[idx] = rtb_Merge_h_rc_chan_raw[idx]; + } + rtb_Merge_nh_rc_auto_mode = rtb_Merge_h_rc_auto_mode; rtb_Merge_nh_rc_aux_mode = rtb_Merge_h_rc_aux_mode; rtb_Merge_nh_rc_id = rtb_Merge_h_rc_id; @@ -19862,6 +20029,11 @@ void SIL_step(void) rtb_Merge_nh_trim_aoa = rtb_Merge_h_trim_aoa; rtb_Merge_nh_trim_aos = rtb_Merge_h_trim_aos; rtb_Merge_nh_BIT_MODE = rtb_Merge_h_BIT_MODE; + rtb_Merge_nh_act_sw_chan = rtb_Merge_h_act_sw_chan; + rtb_Merge_nh_act_sw_amp = rtb_Merge_h_act_sw_amp; + rtb_Merge_nh_act_sw_freq0 = rtb_Merge_h_act_sw_freq0; + rtb_Merge_nh_act_sw_freq1 = rtb_Merge_h_act_sw_freq1; + rtb_Merge_nh_act_sw_k = rtb_Merge_h_act_sw_k; /* End of Outputs for SubSystem: '/OFF' */ break; @@ -20221,8 +20393,10 @@ void SIL_step(void) rtb_Merge_m_rc_roll_cmd = rtb_Merge_nh_rc_roll_cmd; rtb_Merge_m_rc_yaw_cmd = rtb_Merge_nh_rc_yaw_cmd; rtb_Merge_m_rc_throttle_cmd = rtb_Merge_nh_rc_throttle_cmd; - rtb_Merge_m_rc_ele_cmd = rtb_Merge_nh_rc_ele_cmd; - rtb_Merge_m_rc_flap = rtb_Merge_nh_rc_flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_m_rc_chan_raw[idx] = rtb_Merge_nh_rc_chan_raw[idx]; + } + rtb_Merge_m_rc_auto_mode = rtb_Merge_nh_rc_auto_mode; rtb_Merge_m_rc_aux_mode = rtb_Merge_nh_rc_aux_mode; rtb_Merge_m_rc_id = rtb_Merge_nh_rc_id; @@ -20285,8 +20459,15 @@ void SIL_step(void) rtb_Merge_m_trim_aoa = rtb_Merge_nh_trim_aoa; rtb_Merge_m_trim_aos = rtb_Merge_nh_trim_aos; rtb_Merge_m_BIT_MODE = rtb_Merge_nh_BIT_MODE; + rtb_Merge_m_act_sw_chan = rtb_Merge_nh_act_sw_chan; + rtb_Merge_m_act_sw_amp = rtb_Merge_nh_act_sw_amp; + rtb_Merge_m_act_sw_freq0 = rtb_Merge_nh_act_sw_freq0; + rtb_Merge_m_act_sw_freq1 = rtb_Merge_nh_act_sw_freq1; + rtb_Merge_m_act_sw_k = rtb_Merge_nh_act_sw_k; rtb_Merge_m_p_c = rtb_Switch_lt; + /* End of BusAssignment: '/Bus Assignment' */ + /* Sum: '/Sum5' incorporates: * Gain: '/dt' * Product: '/Product' @@ -20353,8 +20534,10 @@ void SIL_step(void) rtb_Merge_m_rc_roll_cmd = rtb_Merge_nh_rc_roll_cmd; rtb_Merge_m_rc_yaw_cmd = rtb_Merge_nh_rc_yaw_cmd; rtb_Merge_m_rc_throttle_cmd = rtb_Merge_nh_rc_throttle_cmd; - rtb_Merge_m_rc_ele_cmd = rtb_Merge_nh_rc_ele_cmd; - rtb_Merge_m_rc_flap = rtb_Merge_nh_rc_flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_m_rc_chan_raw[idx] = rtb_Merge_nh_rc_chan_raw[idx]; + } + rtb_Merge_m_rc_auto_mode = rtb_Merge_nh_rc_auto_mode; rtb_Merge_m_rc_aux_mode = rtb_Merge_nh_rc_aux_mode; rtb_Merge_m_rc_id = rtb_Merge_nh_rc_id; @@ -20418,6 +20601,11 @@ void SIL_step(void) rtb_Merge_m_trim_aoa = rtb_Merge_nh_trim_aoa; rtb_Merge_m_trim_aos = rtb_Merge_nh_trim_aos; rtb_Merge_m_BIT_MODE = rtb_Merge_nh_BIT_MODE; + rtb_Merge_m_act_sw_chan = rtb_Merge_nh_act_sw_chan; + rtb_Merge_m_act_sw_amp = rtb_Merge_nh_act_sw_amp; + rtb_Merge_m_act_sw_freq0 = rtb_Merge_nh_act_sw_freq0; + rtb_Merge_m_act_sw_freq1 = rtb_Merge_nh_act_sw_freq1; + rtb_Merge_m_act_sw_k = rtb_Merge_nh_act_sw_k; /* End of Outputs for SubSystem: '/COMMAND' */ break; @@ -20465,8 +20653,10 @@ void SIL_step(void) rtb_Merge_m_rc_roll_cmd = rtb_Merge_nh_rc_roll_cmd; rtb_Merge_m_rc_yaw_cmd = rtb_Merge_nh_rc_yaw_cmd; rtb_Merge_m_rc_throttle_cmd = rtb_Merge_nh_rc_throttle_cmd; - rtb_Merge_m_rc_ele_cmd = rtb_Merge_nh_rc_ele_cmd; - rtb_Merge_m_rc_flap = rtb_Merge_nh_rc_flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_m_rc_chan_raw[idx] = rtb_Merge_nh_rc_chan_raw[idx]; + } + rtb_Merge_m_rc_auto_mode = rtb_Merge_nh_rc_auto_mode; rtb_Merge_m_rc_aux_mode = rtb_Merge_nh_rc_aux_mode; rtb_Merge_m_rc_id = rtb_Merge_nh_rc_id; @@ -20530,8 +20720,14 @@ void SIL_step(void) rtb_Merge_m_trim_aoa = rtb_Merge_nh_trim_aoa; rtb_Merge_m_trim_aos = rtb_Merge_nh_trim_aos; rtb_Merge_m_BIT_MODE = rtb_Merge_nh_BIT_MODE; + rtb_Merge_m_act_sw_chan = rtb_Merge_nh_act_sw_chan; + rtb_Merge_m_act_sw_amp = rtb_Merge_nh_act_sw_amp; + rtb_Merge_m_act_sw_freq0 = rtb_Merge_nh_act_sw_freq0; + rtb_Merge_m_act_sw_freq1 = rtb_Merge_nh_act_sw_freq1; + rtb_Merge_m_act_sw_k = rtb_Merge_nh_act_sw_k; rtb_Sum_fo = 0.0F; + /* End of BusAssignment: '/Bus Assignment' */ /* End of Outputs for SubSystem: '/OFF' */ break; } @@ -20881,8 +21077,10 @@ void SIL_step(void) rtb_Merge_f_rc_roll_cmd = rtb_Merge_m_rc_roll_cmd; rtb_Merge_f_rc_yaw_cmd = rtb_Merge_m_rc_yaw_cmd; rtb_Merge_f_rc_throttle_cmd = rtb_Merge_m_rc_throttle_cmd; - rtb_Merge_f_rc_ele_cmd = rtb_Merge_m_rc_ele_cmd; - rtb_Merge_f_rc_flap = rtb_Merge_m_rc_flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_f_rc_chan_raw[idx] = rtb_Merge_m_rc_chan_raw[idx]; + } + rtb_Merge_f_rc_auto_mode = rtb_Merge_m_rc_auto_mode; rtb_Merge_f_rc_aux_mode = rtb_Merge_m_rc_aux_mode; rtb_Merge_f_rc_id = rtb_Merge_m_rc_id; @@ -20945,8 +21143,15 @@ void SIL_step(void) rtb_Merge_f_trim_aoa = rtb_Merge_m_trim_aoa; rtb_Merge_f_trim_aos = rtb_Merge_m_trim_aos; rtb_Merge_f_BIT_MODE = rtb_Merge_m_BIT_MODE; + rtb_Merge_f_act_sw_chan = rtb_Merge_m_act_sw_chan; + rtb_Merge_f_act_sw_amp = rtb_Merge_m_act_sw_amp; + rtb_Merge_f_act_sw_freq0 = rtb_Merge_m_act_sw_freq0; + rtb_Merge_f_act_sw_freq1 = rtb_Merge_m_act_sw_freq1; + rtb_Merge_f_act_sw_k = rtb_Merge_m_act_sw_k; rtb_Merge_f_q_c = rtb_Switch_f5; + /* End of BusAssignment: '/Bus Assignment' */ + /* Sum: '/Sum5' incorporates: * Gain: '/dt' * Product: '/Product' @@ -21013,8 +21218,10 @@ void SIL_step(void) rtb_Merge_f_rc_roll_cmd = rtb_Merge_m_rc_roll_cmd; rtb_Merge_f_rc_yaw_cmd = rtb_Merge_m_rc_yaw_cmd; rtb_Merge_f_rc_throttle_cmd = rtb_Merge_m_rc_throttle_cmd; - rtb_Merge_f_rc_ele_cmd = rtb_Merge_m_rc_ele_cmd; - rtb_Merge_f_rc_flap = rtb_Merge_m_rc_flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_f_rc_chan_raw[idx] = rtb_Merge_m_rc_chan_raw[idx]; + } + rtb_Merge_f_rc_auto_mode = rtb_Merge_m_rc_auto_mode; rtb_Merge_f_rc_aux_mode = rtb_Merge_m_rc_aux_mode; rtb_Merge_f_rc_id = rtb_Merge_m_rc_id; @@ -21078,6 +21285,11 @@ void SIL_step(void) rtb_Merge_f_trim_aoa = rtb_Merge_m_trim_aoa; rtb_Merge_f_trim_aos = rtb_Merge_m_trim_aos; rtb_Merge_f_BIT_MODE = rtb_Merge_m_BIT_MODE; + rtb_Merge_f_act_sw_chan = rtb_Merge_m_act_sw_chan; + rtb_Merge_f_act_sw_amp = rtb_Merge_m_act_sw_amp; + rtb_Merge_f_act_sw_freq0 = rtb_Merge_m_act_sw_freq0; + rtb_Merge_f_act_sw_freq1 = rtb_Merge_m_act_sw_freq1; + rtb_Merge_f_act_sw_k = rtb_Merge_m_act_sw_k; /* End of Outputs for SubSystem: '/COMMAND' */ break; @@ -21125,8 +21337,10 @@ void SIL_step(void) rtb_Merge_f_rc_roll_cmd = rtb_Merge_m_rc_roll_cmd; rtb_Merge_f_rc_yaw_cmd = rtb_Merge_m_rc_yaw_cmd; rtb_Merge_f_rc_throttle_cmd = rtb_Merge_m_rc_throttle_cmd; - rtb_Merge_f_rc_ele_cmd = rtb_Merge_m_rc_ele_cmd; - rtb_Merge_f_rc_flap = rtb_Merge_m_rc_flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_f_rc_chan_raw[idx] = rtb_Merge_m_rc_chan_raw[idx]; + } + rtb_Merge_f_rc_auto_mode = rtb_Merge_m_rc_auto_mode; rtb_Merge_f_rc_aux_mode = rtb_Merge_m_rc_aux_mode; rtb_Merge_f_rc_id = rtb_Merge_m_rc_id; @@ -21190,8 +21404,14 @@ void SIL_step(void) rtb_Merge_f_trim_aoa = rtb_Merge_m_trim_aoa; rtb_Merge_f_trim_aos = rtb_Merge_m_trim_aos; rtb_Merge_f_BIT_MODE = rtb_Merge_m_BIT_MODE; + rtb_Merge_f_act_sw_chan = rtb_Merge_m_act_sw_chan; + rtb_Merge_f_act_sw_amp = rtb_Merge_m_act_sw_amp; + rtb_Merge_f_act_sw_freq0 = rtb_Merge_m_act_sw_freq0; + rtb_Merge_f_act_sw_freq1 = rtb_Merge_m_act_sw_freq1; + rtb_Merge_f_act_sw_k = rtb_Merge_m_act_sw_k; rtb_Divide = 0.0F; + /* End of BusAssignment: '/Bus Assignment' */ /* End of Outputs for SubSystem: '/OFF' */ break; } @@ -21275,8 +21495,10 @@ void SIL_step(void) rtb_Merge_h0_rc_roll_cmd = rtb_Merge_f_rc_roll_cmd; rtb_Merge_h0_rc_yaw_cmd = rtb_Merge_f_rc_yaw_cmd; rtb_Merge_h0_rc_throttle_cmd = rtb_Merge_f_rc_throttle_cmd; - rtb_Merge_h0_rc_ele_cmd = rtb_Merge_f_rc_ele_cmd; - rtb_Merge_h0_rc_flap = rtb_Merge_f_rc_flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_h0_rc_chan_raw[idx] = rtb_Merge_f_rc_chan_raw[idx]; + } + rtb_Merge_h0_rc_auto_mode = rtb_Merge_f_rc_auto_mode; rtb_Merge_h0_rc_aux_mode = rtb_Merge_f_rc_aux_mode; rtb_Merge_h0_rc_id = rtb_Merge_f_rc_id; @@ -21340,10 +21562,17 @@ void SIL_step(void) rtb_Merge_h0_trim_aoa = rtb_Merge_f_trim_aoa; rtb_Merge_h0_trim_aos = rtb_Merge_f_trim_aos; rtb_Merge_h0_BIT_MODE = rtb_Merge_f_BIT_MODE; + rtb_Merge_h0_act_sw_chan = rtb_Merge_f_act_sw_chan; + rtb_Merge_h0_act_sw_amp = rtb_Merge_f_act_sw_amp; + rtb_Merge_h0_act_sw_freq0 = rtb_Merge_f_act_sw_freq0; + rtb_Merge_h0_act_sw_freq1 = rtb_Merge_f_act_sw_freq1; + rtb_Merge_h0_act_sw_k = rtb_Merge_f_act_sw_k; rtb_Merge_h0_dr_c = SIL_P.washout_r_num[0] * SIL_DW.DiscreteTransferFcn_states_m[0] + SIL_P.washout_r_num[1] * SIL_DW.DiscreteTransferFcn_states_m[1]; + /* End of BusAssignment: '/Bus Assignment' */ + /* Product: '/Product' incorporates: * Constant: '/Constant2' */ @@ -21403,8 +21632,10 @@ void SIL_step(void) rtb_Merge_h0_rc_roll_cmd = rtb_Merge_f_rc_roll_cmd; rtb_Merge_h0_rc_yaw_cmd = rtb_Merge_f_rc_yaw_cmd; rtb_Merge_h0_rc_throttle_cmd = rtb_Merge_f_rc_throttle_cmd; - rtb_Merge_h0_rc_ele_cmd = rtb_Merge_f_rc_ele_cmd; - rtb_Merge_h0_rc_flap = rtb_Merge_f_rc_flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_h0_rc_chan_raw[idx] = rtb_Merge_f_rc_chan_raw[idx]; + } + rtb_Merge_h0_rc_auto_mode = rtb_Merge_f_rc_auto_mode; rtb_Merge_h0_rc_aux_mode = rtb_Merge_f_rc_aux_mode; rtb_Merge_h0_rc_id = rtb_Merge_f_rc_id; @@ -21468,6 +21699,11 @@ void SIL_step(void) rtb_Merge_h0_trim_aoa = rtb_Merge_f_trim_aoa; rtb_Merge_h0_trim_aos = rtb_Merge_f_trim_aos; rtb_Merge_h0_BIT_MODE = rtb_Merge_f_BIT_MODE; + rtb_Merge_h0_act_sw_chan = rtb_Merge_f_act_sw_chan; + rtb_Merge_h0_act_sw_amp = rtb_Merge_f_act_sw_amp; + rtb_Merge_h0_act_sw_freq0 = rtb_Merge_f_act_sw_freq0; + rtb_Merge_h0_act_sw_freq1 = rtb_Merge_f_act_sw_freq1; + rtb_Merge_h0_act_sw_k = rtb_Merge_f_act_sw_k; /* End of Outputs for SubSystem: '/COMMAND' */ break; @@ -21515,8 +21751,10 @@ void SIL_step(void) rtb_Merge_h0_rc_roll_cmd = rtb_Merge_f_rc_roll_cmd; rtb_Merge_h0_rc_yaw_cmd = rtb_Merge_f_rc_yaw_cmd; rtb_Merge_h0_rc_throttle_cmd = rtb_Merge_f_rc_throttle_cmd; - rtb_Merge_h0_rc_ele_cmd = rtb_Merge_f_rc_ele_cmd; - rtb_Merge_h0_rc_flap = rtb_Merge_f_rc_flap; + for (idx = 0; idx < 18; idx++) { + rtb_Merge_h0_rc_chan_raw[idx] = rtb_Merge_f_rc_chan_raw[idx]; + } + rtb_Merge_h0_rc_auto_mode = rtb_Merge_f_rc_auto_mode; rtb_Merge_h0_rc_aux_mode = rtb_Merge_f_rc_aux_mode; rtb_Merge_h0_rc_id = rtb_Merge_f_rc_id; @@ -21580,8 +21818,14 @@ void SIL_step(void) rtb_Merge_h0_trim_aoa = rtb_Merge_f_trim_aoa; rtb_Merge_h0_trim_aos = rtb_Merge_f_trim_aos; rtb_Merge_h0_BIT_MODE = rtb_Merge_f_BIT_MODE; + rtb_Merge_h0_act_sw_chan = rtb_Merge_f_act_sw_chan; + rtb_Merge_h0_act_sw_amp = rtb_Merge_f_act_sw_amp; + rtb_Merge_h0_act_sw_freq0 = rtb_Merge_f_act_sw_freq0; + rtb_Merge_h0_act_sw_freq1 = rtb_Merge_f_act_sw_freq1; + rtb_Merge_h0_act_sw_k = rtb_Merge_f_act_sw_k; rtb_Merge_h0_dr_c = 0.0F; + /* End of BusAssignment: '/Bus Assignment' */ /* End of Outputs for SubSystem: '/OFF' */ break; } @@ -21789,8 +22033,10 @@ void SIL_step(void) SIL_B.Merge.rc.roll_cmd = rtb_Merge_h0_rc_roll_cmd; SIL_B.Merge.rc.yaw_cmd = rtb_Merge_h0_rc_yaw_cmd; SIL_B.Merge.rc.throttle_cmd = rtb_Merge_h0_rc_throttle_cmd; - SIL_B.Merge.rc.ele_cmd = rtb_Merge_h0_rc_ele_cmd; - SIL_B.Merge.rc.flap = rtb_Merge_h0_rc_flap; + for (idx = 0; idx < 18; idx++) { + SIL_B.Merge.rc.chan_raw[idx] = rtb_Merge_h0_rc_chan_raw[idx]; + } + SIL_B.Merge.rc.auto_mode = rtb_Merge_h0_rc_auto_mode; SIL_B.Merge.rc.aux_mode = rtb_Merge_h0_rc_aux_mode; SIL_B.Merge.rc.id = rtb_Merge_h0_rc_id; @@ -21854,11 +22100,17 @@ void SIL_step(void) SIL_B.Merge.trim_aoa = rtb_Merge_h0_trim_aoa; SIL_B.Merge.trim_aos = rtb_Merge_h0_trim_aos; SIL_B.Merge.BIT_MODE = rtb_Merge_h0_BIT_MODE; + SIL_B.Merge.act_sw_chan = rtb_Merge_h0_act_sw_chan; + SIL_B.Merge.act_sw_amp = rtb_Merge_h0_act_sw_amp; + SIL_B.Merge.act_sw_freq0 = rtb_Merge_h0_act_sw_freq0; + SIL_B.Merge.act_sw_freq1 = rtb_Merge_h0_act_sw_freq1; + SIL_B.Merge.act_sw_k = rtb_Merge_h0_act_sw_k; SIL_B.Merge.del_c = rtb_Merge_h0_de_c; SIL_B.Merge.der_c = rtb_Merge_h0_de_c; SIL_B.Merge.dal_c = -rtb_Merge_h0_da_c; SIL_B.Merge.dar_c = rtb_Merge_h0_da_c; + /* End of BusAssignment: '/Bus Assignment' */ /* End of Outputs for SubSystem: '/mix' */ } else { /* Outputs for IfAction SubSystem: '/no_mix' incorporates: @@ -21901,8 +22153,10 @@ void SIL_step(void) SIL_B.Merge.rc.roll_cmd = rtb_Merge_h0_rc_roll_cmd; SIL_B.Merge.rc.yaw_cmd = rtb_Merge_h0_rc_yaw_cmd; SIL_B.Merge.rc.throttle_cmd = rtb_Merge_h0_rc_throttle_cmd; - SIL_B.Merge.rc.ele_cmd = rtb_Merge_h0_rc_ele_cmd; - SIL_B.Merge.rc.flap = rtb_Merge_h0_rc_flap; + for (idx = 0; idx < 18; idx++) { + SIL_B.Merge.rc.chan_raw[idx] = rtb_Merge_h0_rc_chan_raw[idx]; + } + SIL_B.Merge.rc.auto_mode = rtb_Merge_h0_rc_auto_mode; SIL_B.Merge.rc.aux_mode = rtb_Merge_h0_rc_aux_mode; SIL_B.Merge.rc.id = rtb_Merge_h0_rc_id; @@ -21966,6 +22220,11 @@ void SIL_step(void) SIL_B.Merge.trim_aoa = rtb_Merge_h0_trim_aoa; SIL_B.Merge.trim_aos = rtb_Merge_h0_trim_aos; SIL_B.Merge.BIT_MODE = rtb_Merge_h0_BIT_MODE; + SIL_B.Merge.act_sw_chan = rtb_Merge_h0_act_sw_chan; + SIL_B.Merge.act_sw_amp = rtb_Merge_h0_act_sw_amp; + SIL_B.Merge.act_sw_freq0 = rtb_Merge_h0_act_sw_freq0; + SIL_B.Merge.act_sw_freq1 = rtb_Merge_h0_act_sw_freq1; + SIL_B.Merge.act_sw_k = rtb_Merge_h0_act_sw_k; /* End of Outputs for SubSystem: '/no_mix' */ } @@ -22130,12 +22389,12 @@ void SIL_step(void) case 1: if (SIL_B.seq_e < dummyFenceCount) { SIL_B.ack_iw = 0U; - rtb_out_pn = SIL_B.seq_e + 1U; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + rtb_out_kt = SIL_B.seq_e + 1U; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } - expl_temp_0 = &dummyFence[(int32_T)rtb_out_pn - 1]; + expl_temp_0 = &dummyFence[(int32_T)rtb_out_kt - 1]; SIL_B.frame_l = 5U; SIL_B.command_p = expl_temp_0->command; SIL_B.autocont = 0U; @@ -22150,12 +22409,12 @@ void SIL_step(void) case 2: if (SIL_B.seq_e < dummyRallyCount) { SIL_B.ack_iw = 0U; - rtb_out_pn = SIL_B.seq_e + 1U; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + rtb_out_kt = SIL_B.seq_e + 1U; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } - expl_temp_1 = &dummyRally[(int32_T)rtb_out_pn - 1]; + expl_temp_1 = &dummyRally[(int32_T)rtb_out_kt - 1]; SIL_B.command_p = 5100U; SIL_B.x_k = expl_temp_1->latlon[0]; SIL_B.y_m = expl_temp_1->latlon[1]; @@ -22168,12 +22427,12 @@ void SIL_step(void) default: if (SIL_B.seq_e < dummyMissionCount) { SIL_B.ack_iw = 0U; - rtb_out_pn = SIL_B.seq_e + 1U; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + rtb_out_kt = SIL_B.seq_e + 1U; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } - expl_temp = &dummyMission[(int32_T)rtb_out_pn - 1]; + expl_temp = &dummyMission[(int32_T)rtb_out_kt - 1]; SIL_B.frame_l = expl_temp->frame; SIL_B.command_p = expl_temp->command; SIL_B.autocont = expl_temp->autocont; @@ -22732,8 +22991,8 @@ void SIL_step(void) SIL_DW.param_set_isValid = false; if (SIL_DW.is_active_c31_mavlink_utils == 0U) { SIL_DW.is_active_c31_mavlink_utils = 1U; - SIL_DW.is_c31_mavlink_utils = SIL_IN_Idle_p; - } else if (SIL_DW.is_c31_mavlink_utils == SIL_IN_Idle_p) { + SIL_DW.is_c31_mavlink_utils = SIL_IN_Idle_e; + } else if (SIL_DW.is_c31_mavlink_utils == SIL_IN_Idle_e) { guard1 = false; if (SIL_sf_msg_pop_param_set()) { SIL_B.idx = *(uint16_T *)SIL_DW.param_set_msgDataPtr; @@ -22780,7 +23039,7 @@ void SIL_step(void) SIL_sf_msg_send_msg_d(); } } else if (SIL_DW.forone) { - SIL_DW.is_c31_mavlink_utils = SIL_IN_Idle_p; + SIL_DW.is_c31_mavlink_utils = SIL_IN_Idle_e; } else { if (SIL_DW.temporalCounter_i1_ia >= 40U) { SIL_B.idx++; @@ -22812,7 +23071,7 @@ void SIL_step(void) SIL_DW.msg_msgData_e.param_count = SIL_B.param_cnt; SIL_sf_msg_send_msg_d(); } else { - SIL_DW.is_c31_mavlink_utils = SIL_IN_Idle_p; + SIL_DW.is_c31_mavlink_utils = SIL_IN_Idle_e; } } } @@ -22866,8 +23125,8 @@ void SIL_step(void) SIL_DW.ap_ver_queue_isValid = false; if (SIL_DW.is_active_c36_kb3_autopilot == 0U) { SIL_DW.is_active_c36_kb3_autopilot = 1U; - SIL_DW.is_c36_kb3_autopilot = SIL_IN_Idle_p; - } else if (SIL_DW.is_c36_kb3_autopilot == SIL_IN_Idle_p) { + SIL_DW.is_c36_kb3_autopilot = SIL_IN_Idle_e; + } else if (SIL_DW.is_c36_kb3_autopilot == SIL_IN_Idle_e) { if (SIL_sf_msg_pop_command_ack_queue()) { SIL_B.command_ack = *(mavlink_command_ack_t *) SIL_DW.command_ack_queue_msgDataPtr; @@ -22925,7 +23184,7 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/mission_item_int_enc' */ } else if (SIL_sf_msg_pop_mission_ack_queue()) { - SIL_B.mission_ack_j = *(mavlink_mission_ack_t *) + SIL_B.mission_ack_o = *(mavlink_mission_ack_t *) SIL_DW.mission_ack_queue_msgDataPtr; /* Outputs for Function Call SubSystem: '/mission_ack_enc' */ @@ -22933,13 +23192,13 @@ void SIL_step(void) * Constant: '/Constant BP' * Constant: '/Constant BP1' */ - mav_mission_ack_encode_Outputs_wrapper(&SIL_B.mission_ack_j, + mav_mission_ack_encode_Outputs_wrapper(&SIL_B.mission_ack_o, &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/mission_ack_enc' */ } else if (SIL_sf_msg_pop_mission_req_int_queue()) { - SIL_B.mission_req_int_g = *(mavlink_mission_request_int_t *) + SIL_B.mission_req_int_a = *(mavlink_mission_request_int_t *) SIL_DW.mission_req_int_queue_msgDataPtr; /* Outputs for Function Call SubSystem: '/mission_req_int_enc' */ @@ -22948,7 +23207,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_mission_request_int_encode_Outputs_wrapper - (&SIL_B.mission_req_int_g, &SIL_B.DataTypeConversion, + (&SIL_B.mission_req_int_a, &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); @@ -22968,7 +23227,7 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/param_val_enc' */ } else if (SIL_sf_msg_pop_ap_ver_queue()) { - SIL_B.ap_ver_c = *(mavlink_autopilot_version_t *) + SIL_B.ap_ver_l = *(mavlink_autopilot_version_t *) SIL_DW.ap_ver_queue_msgDataPtr; /* Outputs for Function Call SubSystem: '/ap_ver_enc' */ @@ -22976,7 +23235,7 @@ void SIL_step(void) * Constant: '/Constant BP' * Constant: '/Constant BP1' */ - mav_autopilot_version_encode_Outputs_wrapper(&SIL_B.ap_ver_c, + mav_autopilot_version_encode_Outputs_wrapper(&SIL_B.ap_ver_l, &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); @@ -23121,8 +23380,8 @@ void SIL_step(void) */ SIL_B.Sqrt = sqrtf(SIL_B.vn * SIL_B.vn + SIL_B.ve * SIL_B.ve); SIL_B.gps.vel = (uint16_T)roundf(SIL_B.Sqrt * 100.0F); - SIL_B.vn_f = SIL_B.BusAssignment_j.v_n; - SIL_B.ve_o = SIL_B.BusAssignment_j.v_e; + SIL_B.vn_k = SIL_B.BusAssignment_j.v_n; + SIL_B.ve_g = SIL_B.BusAssignment_j.v_e; /* Chart: '/Chart' incorporates: * SubSystem: '/get_cog' @@ -23130,7 +23389,7 @@ void SIL_step(void) /* Gain: '/Gain' incorporates: * Trigonometry: '/Trigonometric Function' */ - SIL_B.Merge_f = 57.2957802F * rt_atan2f_snf(SIL_B.ve_o, SIL_B.vn_f); + SIL_B.Merge_f = 57.2957802F * rt_atan2f_snf(SIL_B.ve_g, SIL_B.vn_k); /* If: '/If' */ if (SIL_B.Merge_f < 0.0F) { @@ -23355,9 +23614,9 @@ void SIL_step(void) /* Product: '/Divide' incorporates: * Constant: '/Constant' */ - rtb_out_pn = 1000U * SIL_B.mav_status.packet_rx_drop_count; - if (rtb_out_pn > 65535U) { - rtb_out_pn = 65535U; + rtb_out_kt = 1000U * SIL_B.mav_status.packet_rx_drop_count; + if (rtb_out_kt > 65535U) { + rtb_out_kt = 65535U; } /* Chart: '/Chart' incorporates: @@ -23365,7 +23624,7 @@ void SIL_step(void) * Product: '/Divide' * Sum: '/Sum' */ - SIL_B.sys_status.drop_rate_comm = (uint16_T)(rtb_out_pn / + SIL_B.sys_status.drop_rate_comm = (uint16_T)(rtb_out_kt / (((uint32_T)SIL_B.mav_status.packet_rx_drop_count + SIL_B.mav_status.packet_rx_success_count) + 1U)); SIL_B.sys_status.errors_comm = SIL_B.mav_status.packet_rx_drop_count; @@ -23751,7 +24010,7 @@ void SIL_step(void) &SIL_B.mav_msg2buff_o2, 256); /* End of Outputs for SubSystem: '/Function-Call Subsystem' */ - SIL_B.seq_d++; + SIL_B.seq_m++; rtb_Merge_h_boot_time = SIL_B.mav_msg2buff_o2 * 1000000U; if (transrate == 0U) { if (rtb_Merge_h_boot_time == 0U) { @@ -23770,7 +24029,7 @@ void SIL_step(void) } else { if ((uint32_T)((int32_T)SIL_DW.temporalCounter_i1 * 5000) >= SIL_DW.wait_time) { - SIL_DW.is_c36_kb3_autopilot = SIL_IN_Idle_p; + SIL_DW.is_c36_kb3_autopilot = SIL_IN_Idle_e; } } @@ -24462,7 +24721,7 @@ void SIL_step(void) if (rtmIsMajorTimeStep(SIL_M) && SIL_M->Timing.TaskCounters.TID[2] == 0) { /* Outport: '/seq' */ - SIL_Y.seq = SIL_B.seq_d; + SIL_Y.seq = SIL_B.seq_m; /* Outport: '/buff_len' */ SIL_Y.buff_len = SIL_B.mav_msg2buff_o2; @@ -24968,23 +25227,23 @@ void SIL_initialize(void) SIL_B.BusAssignment = SIL_rtZC2; SIL_B.BusAssignment_g = SIL_rtZC2; SIL_B.mode = ENUM_mode_MANUAL; + SIL_B.mode_c = ENUM_mode_MANUAL; SIL_B.mode_l = ENUM_mode_MANUAL; - SIL_B.mode_e = ENUM_mode_MANUAL; SIL_B.landed_state_out = ENUM_LANDED_STATE_UNDEFINED; SIL_B.landed_state_out_d = ENUM_LANDED_STATE_UNDEFINED; SIL_B.CSAS_yaw = ENUM_CSAS_YAW_OFF; - SIL_B.CSAS_yaw_n = ENUM_CSAS_YAW_OFF; + SIL_B.CSAS_yaw_d = ENUM_CSAS_YAW_OFF; SIL_B.CSAS_roll = ENUM_CSAS_ROLL_OFF; - SIL_B.CSAS_roll_m = ENUM_CSAS_ROLL_OFF; + SIL_B.CSAS_roll_p = ENUM_CSAS_ROLL_OFF; SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_OFF; SIL_B.AT = ENUM_AT_OFF; - SIL_B.AT_j = ENUM_AT_OFF; + SIL_B.AT_h = ENUM_AT_OFF; SIL_B.AFCS_VERT_out = ENUM_AFCS_VERT_OFF; SIL_B.AFCS_VERT = ENUM_AFCS_VERT_OFF; - SIL_B.AFCS_VERT_j = ENUM_AFCS_VERT_OFF; + SIL_B.AFCS_VERT_g = ENUM_AFCS_VERT_OFF; SIL_B.AFCS_LNAV = ENUM_AFCS_LAT_OFF; - SIL_B.AFCS_LNAV_g = ENUM_AFCS_LAT_OFF; SIL_B.AFCS_LNAV_h = ENUM_AFCS_LAT_OFF; + SIL_B.AFCS_LNAV_a = ENUM_AFCS_LAT_OFF; } /* custom signals */ @@ -25819,116 +26078,116 @@ void SIL_initialize(void) SIL_DW.S = 110.4; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_c = 0U; + SIL_DW.temporalCounter_i1_kg = 0U; SIL_DW.is_active_c39_kb3_autopilot = 0U; SIL_DW.is_c39_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_di = 0U; + SIL_DW.temporalCounter_i1_i = 0U; SIL_DW.is_active_c41_kb3_autopilot = 0U; SIL_DW.is_c41_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_d = 0U; + SIL_DW.temporalCounter_i1_eh = 0U; SIL_DW.is_active_c42_kb3_autopilot = 0U; SIL_DW.is_c42_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_mr = 0U; + SIL_DW.temporalCounter_i1_b = 0U; SIL_DW.is_active_c44_kb3_autopilot = 0U; SIL_DW.is_c44_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_k = 0U; + SIL_DW.temporalCounter_i1_jr = 0U; SIL_DW.is_active_c48_kb3_autopilot = 0U; SIL_DW.is_c48_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_mq = 0U; + SIL_DW.temporalCounter_i1_k = 0U; SIL_DW.is_active_c49_kb3_autopilot = 0U; SIL_DW.is_c49_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_il = 0U; + SIL_DW.temporalCounter_i1_j = 0U; SIL_DW.is_active_c50_kb3_autopilot = 0U; SIL_DW.is_c50_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_em = 0U; + SIL_DW.temporalCounter_i1_ek = 0U; SIL_DW.is_active_c60_kb3_autopilot = 0U; SIL_DW.is_c60_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_ii = 0U; + SIL_DW.temporalCounter_i1_af = 0U; SIL_DW.is_active_c62_kb3_autopilot = 0U; SIL_DW.is_c62_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_ix = 0U; + SIL_DW.temporalCounter_i1_di = 0U; SIL_DW.is_active_c45_kb3_autopilot = 0U; SIL_DW.is_c45_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_dt = 0U; + SIL_DW.temporalCounter_i1_bq = 0U; SIL_DW.is_active_c46_kb3_autopilot = 0U; SIL_DW.is_c46_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_j = 0U; + SIL_DW.temporalCounter_i1_mm = 0U; SIL_DW.is_active_c47_kb3_autopilot = 0U; SIL_DW.is_c47_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_fp = 0U; + SIL_DW.temporalCounter_i1_bg = 0U; SIL_DW.is_active_c54_kb3_autopilot = 0U; SIL_DW.is_c54_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_od = 0U; + SIL_DW.temporalCounter_i1_n = 0U; SIL_DW.is_active_c55_kb3_autopilot = 0U; SIL_DW.is_c55_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_dj = 0U; + SIL_DW.temporalCounter_i1_hi = 0U; SIL_DW.is_active_c56_kb3_autopilot = 0U; SIL_DW.is_c56_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_pa = 0U; + SIL_DW.temporalCounter_i1_anr = 0U; SIL_DW.is_active_c57_kb3_autopilot = 0U; SIL_DW.is_c57_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_dq = 0U; + SIL_DW.temporalCounter_i1_jl = 0U; SIL_DW.is_active_c58_kb3_autopilot = 0U; SIL_DW.is_c58_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_fu = 0U; + SIL_DW.temporalCounter_i1_h = 0U; SIL_DW.is_active_c30_kb3_autopilot = 0U; SIL_DW.is_c30_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_a = 0U; + SIL_DW.temporalCounter_i1_an = 0U; SIL_DW.is_active_c43_kb3_autopilot = 0U; SIL_DW.is_c43_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/check_conn' */ - SIL_DW.temporalCounter_i1_ff = 0U; + SIL_DW.temporalCounter_i1_f = 0U; SIL_DW.is_active_c13_C2_proc_comm = 0U; SIL_DW.is_c13_C2_proc_comm = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/valid_checking' */ - SIL_DW.temporalCounter_i1_cs = 0U; - SIL_DW.is_active_c26_update_rc = 0U; - SIL_DW.is_c26_update_rc = SIL_IN_NO_ACTIVE_CHILD_l; + SIL_DW.temporalCounter_i1_d2 = 0U; + SIL_DW.is_active_c43_update_rc = 0U; + SIL_DW.is_c43_update_rc = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/proc_cmd' */ SIL_DW.is_active_c15_kb3_autopilot = 0U; SIL_DW.is_c15_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart_proc_mission_upload' */ - SIL_DW.temporalCounter_i1_n = 0U; + SIL_DW.temporalCounter_i1_n3 = 0U; SIL_DW.is_active_c29_mavlink_utils = 0U; SIL_DW.is_c29_mavlink_utils = SIL_IN_NO_ACTIVE_CHILD_l; @@ -25937,14 +26196,23 @@ void SIL_initialize(void) SIL_DW.is_c14_C2_proc_comm = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/valid_checking' */ - SIL_DW.temporalCounter_i1_l = 0U; - SIL_DW.is_active_c26_update_rc_d = 0U; - SIL_DW.is_c26_update_rc_j = SIL_IN_NO_ACTIVE_CHILD_l; + SIL_DW.temporalCounter_i1_h2 = 0U; + SIL_DW.is_active_c43_update_rc_l = 0U; + SIL_DW.is_c43_update_rc_m = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/TopLevelSwitch' */ SIL_DW.is_active_c24_kb3_autopilot = 0U; SIL_DW.is_c24_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; + /* SystemInitialize for IfAction SubSystem: '/xbit' */ + /* SystemInitialize for IfAction SubSystem: '/act_sweep' */ + /* SystemInitialize for Chart: '/sweep_generator' */ + SIL_DW.is_active_c64_kb3_autopilot = 0U; + SIL_DW.is_c64_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; + + /* End of SystemInitialize for SubSystem: '/act_sweep' */ + /* End of SystemInitialize for SubSystem: '/xbit' */ + /* SystemInitialize for IfAction SubSystem: '/operational' */ /* SystemInitialize for IfAction SubSystem: '/auto' */ /* SystemInitialize for IfAction SubSystem: '/mission' */ @@ -25960,7 +26228,7 @@ void SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/takeoff' */ /* SystemInitialize for Chart: '/takeoff_task' */ - SIL_DW.temporalCounter_i1_i = 0U; + SIL_DW.temporalCounter_i1_d = 0U; SIL_DW.is_active_c28_kb3_autopilot = 0U; SIL_DW.is_c28_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -25968,7 +26236,7 @@ void SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/landing' */ /* SystemInitialize for Chart: '/landing_task' */ - SIL_DW.temporalCounter_i1_f = 0U; + SIL_DW.temporalCounter_i1_a = 0U; SIL_DW.is_active_c18_kb3_autopilot = 0U; SIL_DW.is_c18_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -25976,7 +26244,7 @@ void SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/waypoint' */ /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_b = 0U; + SIL_DW.temporalCounter_i1_ew = 0U; SIL_DW.is_active_c29_kb3_autopilot = 0U; SIL_DW.is_c29_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -25991,7 +26259,7 @@ void SIL_initialize(void) SIL_DW.is_cut = SIL_IN_NO_ACTIVE_CHILD_l; SIL_DW.is_parachute = SIL_IN_NO_ACTIVE_CHILD_l; SIL_DW.temporalCounter_i2 = 0U; - SIL_DW.temporalCounter_i1_m3 = 0U; + SIL_DW.temporalCounter_i1_es = 0U; SIL_DW.is_active_c59_kb3_autopilot = 0U; SIL_DW.is_c59_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -26139,7 +26407,7 @@ void SIL_initialize(void) SIL_DW.temporalCounter_i1 = 0U; SIL_DW.is_active_c36_kb3_autopilot = 0U; SIL_DW.is_c36_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; - SIL_B.seq_d = 0U; + SIL_B.seq_m = 0U; /* SystemInitialize for Chart: '/traffic_ctrl' incorporates: * SubSystem: '/loop_download' diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL.h b/SIL/work/SIL_ert_shrlib_rtw/SIL.h index 0f26587..b50a4e7 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL.h +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL.h @@ -5,7 +5,7 @@ * * Model version : 1.473 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Fri Nov 13 06:18:31 2020 + * C/C++ source code generated on : Tue Nov 17 14:07:12 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -326,7 +326,7 @@ typedef struct { mavlink_ins1_t BusAssignment_i; /* '/Bus Assignment' */ mavlink_bmustate_t BusConversion_InsertedFor_SFunction_at_inport_0_BusCreator1; mavlink_autopilot_version_t ap_ver; /* '/send_auto_hw' */ - mavlink_autopilot_version_t ap_ver_c;/* '/traffic_ctrl' */ + mavlink_autopilot_version_t ap_ver_l;/* '/traffic_ctrl' */ mavlink_gps_raw_int_t gps; /* '/Chart' */ mavlink_mission_item_int_t mav_mission_item_int;/* '/mav_mission_item_int' */ mavlink_mission_item_int_t send_req; /* '/Chart' */ @@ -346,7 +346,7 @@ typedef struct { mavlink_ccmstate_t BusConversion_InsertedFor_SFunction_at_inport_0_BusCreator1_h; mavlink_attitude_t att; /* '/Chart' */ - CommandMsg msg_e; /* '/send_cmd' */ + CommandMsg msg_l; /* '/send_cmd' */ CommandMsg cmd; /* '/mission_proc' */ mavlink_vfr_hud_t hud; /* '/Chart' */ mavlink_status_t mav_status; /* '/mav_parser' */ @@ -361,7 +361,7 @@ typedef struct { 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_g;/* '/traffic_ctrl' */ + mavlink_mission_request_int_t mission_req_int_a;/* '/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' */ @@ -373,7 +373,7 @@ typedef struct { mavlink_mission_ack_t ack; /* '/merge_ack' */ mavlink_mission_ack_t send_ack_h; /* '/Chart_proc_mission_clr_all' */ mavlink_mission_ack_t send_ack_d; /* '/Chart_proc_mission_req' */ - mavlink_mission_ack_t mission_ack_j; /* '/traffic_ctrl' */ + mavlink_mission_ack_t mission_ack_o; /* '/traffic_ctrl' */ mavlink_extended_sys_state_t ext_sys_stat;/* '/Chart' */ real_T Sum[3]; /* '/Sum' */ real_T p1[3]; /* '/p1' */ @@ -718,7 +718,7 @@ typedef struct { real_T Product2_cg; /* '/Product2' */ real_T Product3_c; /* '/Product3' */ real_T CZ; /* '/Sum1' */ - CommandAck ack_i; /* '/proc_cmd' */ + CommandAck ack_a; /* '/proc_cmd' */ uint32_T solution_status; /* '/status_mgr' */ uint32_T solution_status_c; /* '/Merge' */ uint32_T time_stamp; /* '/Byte Unpack' */ @@ -778,8 +778,8 @@ typedef struct { real32_T f; /* '/Chart_proc_param_set' */ real32_T vn; /* '/Chart' */ real32_T ve; /* '/Chart' */ - real32_T vn_f; /* '/Chart' */ - real32_T ve_o; /* '/Chart' */ + real32_T vn_k; /* '/Chart' */ + real32_T ve_g; /* '/Chart' */ real32_T Merge_f; /* '/Merge' */ real32_T Sqrt; /* '/Sqrt' */ real32_T rdot; /* '/Merge2' */ @@ -799,10 +799,11 @@ typedef struct { real32_T phi_c; /* '/landing_task' */ real32_T tht_c; /* '/landing_task' */ real32_T thr_c; /* '/takeoff_task' */ - real32_T phi_c_d; /* '/takeoff_task' */ - real32_T tht_c_h; /* '/takeoff_task' */ + real32_T phi_c_e; /* '/takeoff_task' */ + real32_T tht_c_f; /* '/takeoff_task' */ real32_T de_c; /* '/takeoff_task' */ - real32_T params_f[7]; /* '/proc_cmd' */ + real32_T acts[5]; /* '/sweep_generator' */ + real32_T params_c[7]; /* '/proc_cmd' */ real32_T Gain1_dw; /* '/Gain1' */ real32_T accel[3]; /* '/Product3' */ real32_T Gain1_a[3]; /* '/Gain1' */ @@ -890,23 +891,23 @@ typedef struct { int32_T y_m; /* '/chat_get_mission_item' */ int32_T ByteUnpack_o1[2]; /* '/Byte Unpack' */ ENUM_mode mode; /* '/Chart' */ - ENUM_mode mode_l; /* '/landing_task' */ - ENUM_mode mode_e; /* '/takeoff_task' */ + ENUM_mode mode_c; /* '/landing_task' */ + ENUM_mode mode_l; /* '/takeoff_task' */ ENUM_LANDED_STATE landed_state_out; /* '/landing_task' */ ENUM_LANDED_STATE landed_state_out_d;/* '/takeoff_task' */ ENUM_CSAS_YAW CSAS_yaw; /* '/landing_task' */ - ENUM_CSAS_YAW CSAS_yaw_n; /* '/takeoff_task' */ + ENUM_CSAS_YAW CSAS_yaw_d; /* '/takeoff_task' */ ENUM_CSAS_ROLL CSAS_roll; /* '/landing_task' */ - ENUM_CSAS_ROLL CSAS_roll_m; /* '/takeoff_task' */ + ENUM_CSAS_ROLL CSAS_roll_p; /* '/takeoff_task' */ ENUM_CSAS_PITCH CSAS_pitch; /* '/takeoff_task' */ ENUM_AT AT; /* '/landing_task' */ - ENUM_AT AT_j; /* '/takeoff_task' */ + ENUM_AT AT_h; /* '/takeoff_task' */ ENUM_AFCS_VERT AFCS_VERT_out; /* '/Chart' */ ENUM_AFCS_VERT AFCS_VERT; /* '/landing_task' */ - ENUM_AFCS_VERT AFCS_VERT_j; /* '/takeoff_task' */ + ENUM_AFCS_VERT AFCS_VERT_g; /* '/takeoff_task' */ ENUM_AFCS_LAT AFCS_LNAV; /* '/Chart' */ - ENUM_AFCS_LAT AFCS_LNAV_g; /* '/landing_task' */ - ENUM_AFCS_LAT AFCS_LNAV_h; /* '/takeoff_task' */ + ENUM_AFCS_LAT AFCS_LNAV_h; /* '/landing_task' */ + ENUM_AFCS_LAT AFCS_LNAV_a; /* '/takeoff_task' */ uint16_T Subtract_m; /* '/Subtract' */ uint16_T Sum_lp; /* '/Sum' */ uint16_T DataTypeConversion1_c; /* '/Data Type Conversion1' */ @@ -936,8 +937,8 @@ typedef struct { uint16_T cur_np; /* '/mission_proc' */ uint16_T command_j; /* '/mav' */ uint16_T WP_out; /* '/Chart' */ - uint16_T WP_out_o; /* '/landing_task' */ - uint16_T WP_out_e; /* '/takeoff_task' */ + uint16_T WP_out_k; /* '/landing_task' */ + uint16_T WP_out_k4; /* '/takeoff_task' */ uint16_T peroid_out; /* '/Chart' */ uint16_T WP_cur; /* '/proc_set_ cur' */ uint16_T id; /* '/proc_cmd' */ @@ -1024,7 +1025,7 @@ typedef struct { uint8_T frame; /* '/Chart_proc_mission_upload' */ uint8_T autocontinue; /* '/Chart_proc_mission_upload' */ uint8_T ack_d; /* '/chat_clear_mission' */ - uint8_T ack_ip; /* '/chat_update_mission_item' */ + uint8_T ack_i; /* '/chat_update_mission_item' */ uint8_T id_g; /* '/Signal Copy' */ uint8_T seq_g; /* '/Unit Delay' */ uint8_T mission_type_g; /* '/Chart_proc_mission_clr_all' */ @@ -1040,10 +1041,11 @@ typedef struct { uint8_T BytePack[4]; /* '/Byte Pack' */ uint8_T name_g[16]; /* '/Chart_proc_param_req_read' */ uint8_T mav_char_in; /* '/Selector' */ - uint8_T seq_d; /* '/traffic_ctrl' */ + uint8_T seq_m; /* '/traffic_ctrl' */ uint8_T BitwiseOperator; /* '/Bitwise Operator' */ uint8_T DataTypeConversion_d; /* '/Data Type Conversion' */ uint8_T mav_msg2buff_o1[256]; /* '/mav_msg2buff' */ + uint8_T chan_out; /* '/sweep_generator' */ uint8_T recovery_out; /* '/Chart' */ uint8_T ch_out; /* '/Chart' */ uint8_T sw_out; /* '/Chart' */ @@ -1086,14 +1088,14 @@ typedef struct { boolean_T enable_item; /* '/Chart_proc_mission_upload' */ boolean_T valid_o; /* '/true' */ boolean_T mav_found; /* '/mav_parser' */ - boolean_T valid_d; /* '/valid_checking' */ + boolean_T valid_l; /* '/valid_checking' */ boolean_T ac; /* '/mission_proc' */ boolean_T Merge_p; /* '/Merge' */ boolean_T DataTypeConversion_b; /* '/Data Type Conversion' */ boolean_T is_mission; /* '/mav' */ boolean_T armed; /* '/landing_task' */ - boolean_T valid_db; /* '/valid_checking' */ - boolean_T ack_b; /* '/proc_cmd' */ + boolean_T valid_a; /* '/valid_checking' */ + boolean_T ack_l; /* '/proc_cmd' */ boolean_T LogicalOperator; /* '/Logical Operator' */ boolean_T enabled; /* '/tick' */ boolean_T enabled_k; /* '/tick' */ @@ -1104,7 +1106,7 @@ typedef struct { boolean_T enabled_m; /* '/tick' */ boolean_T reset; /* '/status_mgr' */ boolean_T hdg_ariv; /* '/Chart' */ - boolean_T valid_a; /* '/check_gps_valid' */ + boolean_T valid_ae; /* '/check_gps_valid' */ boolean_T Compare; /* '/Compare' */ boolean_T Compare_a; /* '/Compare' */ boolean_T Compare_i; /* '/Compare' */ @@ -1129,7 +1131,7 @@ typedef struct { MavMission m; /* '/chat_update_mission_item' */ CommandMsg msg_msgData; /* '/send_cmd' */ CommandMsg cmd_msgData; /* '/mission_proc' */ - CommandMsg cmd_msgData_d; /* '/proc_cmd' */ + CommandMsg cmd_msgData_a; /* '/proc_cmd' */ CommandMsg cmd2_msgData; /* '/proc_cmd' */ mavlink_param_value_t msg_msgData_e; /* '/proc_param_value' */ mavlink_param_value_t param_val_queue_msgData;/* '/traffic_ctrl' */ @@ -1193,7 +1195,7 @@ typedef struct { real_T Product_DWORK4[9]; /* '/Product' */ real_T Product_DWORK4_h[9]; /* '/Product' */ CommandAck ack_msgData; /* '/Chart_send_ack' */ - CommandAck ack_msgData_i; /* '/proc_cmd' */ + 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_d;/* '/Chart_proc_mission_req_lst' */ @@ -1363,7 +1365,7 @@ typedef struct { void* msgs_msgInterface; /* '/proc_queue' */ void* msgs_msgHandle; /* '/proc_queue' */ void* msgs_msgDataPtr; /* '/proc_queue' */ - void* msg_msgInterface_o; /* '/send_cmd' */ + void* msg_msgInterface_h; /* '/send_cmd' */ void* ap_ver_msgInterface; /* '/send_auto_hw' */ void* send_req_msgInterface; /* '/Chart' */ void* send_ack_msgInterface; /* '/Chart_proc_mission_clr_all' */ @@ -1400,21 +1402,21 @@ typedef struct { void* command_ack_queue_msgInterface;/* '/traffic_ctrl' */ void* command_ack_queue_msgHandle; /* '/traffic_ctrl' */ void* command_ack_queue_msgDataPtr; /* '/traffic_ctrl' */ - void* send_ack_msgInterface_j; /* '/Chart_send_ack' */ - void* ack_msgInterface_n; /* '/Chart_send_ack' */ + void* send_ack_msgInterface_p; /* '/Chart_send_ack' */ + void* ack_msgInterface_c; /* '/Chart_send_ack' */ void* ack_msgHandle; /* '/Chart_send_ack' */ void* ack_msgDataPtr; /* '/Chart_send_ack' */ void* cmd_msgInterface; /* '/mission_proc' */ void* set_cur_msgInterface_b; /* '/proc_set_ cur' */ void* set_cur_msgHandle; /* '/proc_set_ cur' */ void* set_cur_msgDataPtr; /* '/proc_set_ cur' */ - void* cmd_msgInterface_c; /* '/proc_cmd' */ + void* cmd_msgInterface_j; /* '/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_e; /* '/proc_cmd' */ + void* ack_msgInterface_cb; /* '/proc_cmd' */ void* Assertion_slioAccessor; /* '/Assertion' */ void* Assertion_slioAccessor_a; /* '/Assertion' */ real32_T DiscreteTransferFcn_states_m[2];/* '/Discrete Transfer Fcn' */ @@ -1430,6 +1432,8 @@ typedef struct { uint32_T UnitDelay_DSTATE_o; /* '/Unit Delay' */ real32_T last_az; /* '/nav_corner' */ real32_T last_hdg; /* '/nav_corner' */ + real32_T t; /* '/sweep_generator' */ + real32_T freq; /* '/sweep_generator' */ real32_T PrevY[3]; /* '/Rate Limiter' */ real32_T PrevY_k[3]; /* '/Rate Limiter1' */ real32_T cnt; /* '/zero_set' */ @@ -1497,19 +1501,19 @@ typedef struct { uint16_T UnitDelay1_DSTATE; /* '/Unit Delay1' */ uint16_T UnitDelay2_1_DSTATE[18]; /* '/Unit Delay2' */ uint16_T last_seq; /* '/Chart' */ - uint16_T last_seq_e; /* '/Chart' */ - uint16_T last_seq_h; /* '/Chart' */ - uint16_T last_seq_m; /* '/Chart' */ - uint16_T last_seq_hx; /* '/Chart' */ - uint16_T last_seq_hi; /* '/Chart' */ + uint16_T last_seq_m; /* '/Chart' */ + uint16_T last_seq_n; /* '/Chart' */ + uint16_T last_seq_o; /* '/Chart' */ + uint16_T last_seq_p; /* '/Chart' */ + uint16_T last_seq_b; /* '/Chart' */ uint16_T last_seq_f; /* '/Chart' */ - uint16_T last_seq_c; /* '/Chart' */ - uint16_T last_seq_b; /* '/Chart' */ - uint16_T last_seq_m0; /* '/Chart' */ - uint16_T last_seq_i; /* '/Chart' */ - uint16_T last_seq_o; /* '/Chart' */ - uint16_T last_seq_a; /* '/Chart' */ - uint16_T last_seq_d; /* '/Chart' */ + uint16_T last_seq_g; /* '/Chart' */ + uint16_T last_seq_d; /* '/Chart' */ + uint16_T last_seq_l; /* '/Chart' */ + uint16_T last_seq_lc; /* '/Chart' */ + uint16_T last_seq_ok; /* '/Chart' */ + uint16_T last_seq_gg; /* '/Chart' */ + uint16_T last_seq_h; /* '/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' */ @@ -1521,12 +1525,12 @@ typedef struct { uint16_T resp_msgData; /* '/Chart_proc_param_set' */ uint16_T resp_msgData_f; /* '/Chart' */ uint16_T resp_msgData_n; /* '/Chart_proc_param_req_read' */ - uint16_T temporalCounter_i1_f; /* '/landing_task' */ - uint16_T temporalCounter_i1_i; /* '/takeoff_task' */ + uint16_T temporalCounter_i1_a; /* '/landing_task' */ + uint16_T temporalCounter_i1_d; /* '/takeoff_task' */ uint16_T temporalCounter_i2; /* '/Chart' */ uint16_T set_cur_msgData_e; /* '/proc_set_ cur' */ uint16_T last_cnt; /* '/check_conn' */ - uint16_T temporalCounter_i1_ff; /* '/check_conn' */ + uint16_T temporalCounter_i1_f; /* '/check_conn' */ uint16_T temporalCounter_i1_m; /* '/check_gps_valid' */ uint8_T UnitDelay_DSTATE_hx[5]; /* '/Unit Delay' */ uint8_T UnitDelay2_3_DSTATE; /* '/Unit Delay2' */ @@ -1556,66 +1560,66 @@ typedef struct { int8_T If_ActiveSubsystem_i; /* '/If' */ uint8_T is_active_c62_kb3_autopilot; /* '/Chart' */ uint8_T is_c62_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_ii; /* '/Chart' */ + uint8_T temporalCounter_i1_af; /* '/Chart' */ uint8_T is_active_c60_kb3_autopilot; /* '/Chart' */ uint8_T is_c60_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_em; /* '/Chart' */ + uint8_T temporalCounter_i1_ek; /* '/Chart' */ uint8_T is_active_c50_kb3_autopilot; /* '/Chart' */ uint8_T is_c50_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_il; /* '/Chart' */ + uint8_T temporalCounter_i1_j; /* '/Chart' */ uint8_T is_active_c49_kb3_autopilot; /* '/Chart' */ uint8_T is_c49_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_mq; /* '/Chart' */ + uint8_T temporalCounter_i1_k; /* '/Chart' */ uint8_T is_active_c48_kb3_autopilot; /* '/Chart' */ uint8_T is_c48_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_k; /* '/Chart' */ + uint8_T temporalCounter_i1_jr; /* '/Chart' */ uint8_T is_active_c44_kb3_autopilot; /* '/Chart' */ uint8_T is_c44_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_mr; /* '/Chart' */ + uint8_T temporalCounter_i1_b; /* '/Chart' */ uint8_T is_active_c43_kb3_autopilot; /* '/Chart' */ uint8_T is_c43_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_a; /* '/Chart' */ + uint8_T temporalCounter_i1_an; /* '/Chart' */ uint8_T is_active_c42_kb3_autopilot; /* '/Chart' */ uint8_T is_c42_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_d; /* '/Chart' */ + uint8_T temporalCounter_i1_eh; /* '/Chart' */ uint8_T is_active_c30_kb3_autopilot; /* '/Chart' */ uint8_T is_c30_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_fu; /* '/Chart' */ + uint8_T temporalCounter_i1_h; /* '/Chart' */ uint8_T is_active_c41_kb3_autopilot; /* '/Chart' */ uint8_T is_c41_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_di; /* '/Chart' */ + uint8_T temporalCounter_i1_i; /* '/Chart' */ uint8_T is_active_c58_kb3_autopilot; /* '/Chart' */ uint8_T is_c58_kb3_autopilot; /* '/Chart' */ - uint8_T last_seq_ce; /* '/Chart' */ - uint8_T temporalCounter_i1_dq; /* '/Chart' */ + uint8_T last_seq_a; /* '/Chart' */ + uint8_T temporalCounter_i1_jl; /* '/Chart' */ uint8_T is_active_c57_kb3_autopilot; /* '/Chart' */ uint8_T is_c57_kb3_autopilot; /* '/Chart' */ - uint8_T last_seq_oy; /* '/Chart' */ - uint8_T temporalCounter_i1_pa; /* '/Chart' */ + uint8_T last_seq_bp; /* '/Chart' */ + uint8_T temporalCounter_i1_anr; /* '/Chart' */ uint8_T is_active_c56_kb3_autopilot; /* '/Chart' */ uint8_T is_c56_kb3_autopilot; /* '/Chart' */ - uint8_T last_seq_g; /* '/Chart' */ - uint8_T temporalCounter_i1_dj; /* '/Chart' */ + uint8_T last_seq_o3; /* '/Chart' */ + uint8_T temporalCounter_i1_hi; /* '/Chart' */ uint8_T is_active_c55_kb3_autopilot; /* '/Chart' */ uint8_T is_c55_kb3_autopilot; /* '/Chart' */ - uint8_T last_seq_cb; /* '/Chart' */ - uint8_T temporalCounter_i1_od; /* '/Chart' */ + uint8_T last_seq_mk; /* '/Chart' */ + uint8_T temporalCounter_i1_n; /* '/Chart' */ uint8_T is_active_c54_kb3_autopilot; /* '/Chart' */ uint8_T is_c54_kb3_autopilot; /* '/Chart' */ - uint8_T last_seq_om; /* '/Chart' */ - uint8_T temporalCounter_i1_fp; /* '/Chart' */ + uint8_T last_seq_e; /* '/Chart' */ + uint8_T temporalCounter_i1_bg; /* '/Chart' */ uint8_T is_active_c47_kb3_autopilot; /* '/Chart' */ uint8_T is_c47_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_j; /* '/Chart' */ + uint8_T temporalCounter_i1_mm; /* '/Chart' */ uint8_T is_active_c46_kb3_autopilot; /* '/Chart' */ uint8_T is_c46_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_dt; /* '/Chart' */ + uint8_T temporalCounter_i1_bq; /* '/Chart' */ uint8_T is_active_c45_kb3_autopilot; /* '/Chart' */ uint8_T is_c45_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_ix; /* '/Chart' */ + uint8_T temporalCounter_i1_di; /* '/Chart' */ uint8_T is_active_c39_kb3_autopilot; /* '/Chart' */ uint8_T is_c39_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_c; /* '/Chart' */ + uint8_T temporalCounter_i1_kg; /* '/Chart' */ uint8_T is_active_c31_mavlink_utils; /* '/proc_param_value' */ uint8_T is_c31_mavlink_utils; /* '/proc_param_value' */ uint8_T temporalCounter_i1_ia; /* '/proc_param_value' */ @@ -1623,7 +1627,7 @@ typedef struct { 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 temporalCounter_i1_n; /* '/Chart_proc_mission_upload' */ + uint8_T temporalCounter_i1_n3; /* '/Chart_proc_mission_upload' */ uint8_T is_active_c22_mavlink_utils; /* '/merge_ack' */ uint8_T is_active_c36_kb3_autopilot; /* '/traffic_ctrl' */ uint8_T is_c36_kb3_autopilot; /* '/traffic_ctrl' */ @@ -1635,21 +1639,23 @@ typedef struct { uint8_T icLoad_e; /* '/Delay' */ uint8_T icLoad_e4; /* '/Delay' */ uint8_T icLoad_k; /* '/last_hdot_c' */ - uint8_T is_active_c26_update_rc; /* '/valid_checking' */ - uint8_T is_c26_update_rc; /* '/valid_checking' */ + uint8_T is_active_c43_update_rc; /* '/valid_checking' */ + uint8_T is_c43_update_rc; /* '/valid_checking' */ uint8_T seq1; /* '/valid_checking' */ uint8_T id1; /* '/valid_checking' */ - uint8_T cnt_g; /* '/valid_checking' */ - uint8_T temporalCounter_i1_cs; /* '/valid_checking' */ + uint8_T cnt_e; /* '/valid_checking' */ + uint8_T temporalCounter_i1_d2; /* '/valid_checking' */ uint8_T is_active_c48_mission_proc; /* '/mission_proc' */ uint8_T is_c48_mission_proc; /* '/mission_proc' */ uint8_T is_active_c29_kb3_autopilot; /* '/Chart' */ uint8_T is_c29_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_b; /* '/Chart' */ + uint8_T temporalCounter_i1_ew; /* '/Chart' */ uint8_T is_active_c18_kb3_autopilot; /* '/landing_task' */ uint8_T is_c18_kb3_autopilot; /* '/landing_task' */ uint8_T is_active_c28_kb3_autopilot; /* '/takeoff_task' */ uint8_T is_c28_kb3_autopilot; /* '/takeoff_task' */ + uint8_T is_active_c64_kb3_autopilot; /* '/sweep_generator' */ + uint8_T is_c64_kb3_autopilot; /* '/sweep_generator' */ uint8_T is_active_c24_kb3_autopilot; /* '/TopLevelSwitch' */ uint8_T is_c24_kb3_autopilot; /* '/TopLevelSwitch' */ uint8_T is_active_c59_kb3_autopilot; /* '/Chart' */ @@ -1658,15 +1664,15 @@ typedef struct { uint8_T is_cover; /* '/Chart' */ uint8_T is_balloon; /* '/Chart' */ uint8_T is_cut; /* '/Chart' */ - uint8_T temporalCounter_i1_m3; /* '/Chart' */ + uint8_T temporalCounter_i1_es; /* '/Chart' */ uint8_T is_active_c14_C2_proc_comm; /* '/proc_set_ cur' */ uint8_T is_c14_C2_proc_comm; /* '/proc_set_ cur' */ - uint8_T is_active_c26_update_rc_d; /* '/valid_checking' */ - uint8_T is_c26_update_rc_j; /* '/valid_checking' */ - uint8_T seq1_i; /* '/valid_checking' */ - uint8_T id1_h; /* '/valid_checking' */ - uint8_T cnt_h; /* '/valid_checking' */ - uint8_T temporalCounter_i1_l; /* '/valid_checking' */ + uint8_T is_active_c43_update_rc_l; /* '/valid_checking' */ + uint8_T is_c43_update_rc_m; /* '/valid_checking' */ + uint8_T seq1_g; /* '/valid_checking' */ + uint8_T id1_p; /* '/valid_checking' */ + uint8_T cnt_a; /* '/valid_checking' */ + uint8_T temporalCounter_i1_h2; /* '/valid_checking' */ uint8_T is_active_c13_C2_proc_comm; /* '/check_conn' */ uint8_T is_c13_C2_proc_comm; /* '/check_conn' */ uint8_T is_active_c15_kb3_autopilot; /* '/proc_cmd' */ @@ -2184,7 +2190,7 @@ struct P_SIL_T_ { real32_T max_da; /* Variable: max_da * Referenced by: * '/Constant1' - * '/gain1' + * '/gain1' * '/gain1' * '/gain1' * '/gain1' @@ -2193,7 +2199,7 @@ struct P_SIL_T_ { real32_T max_de; /* Variable: max_de * Referenced by: * '/Constant1' - * '/gain' + * '/gain' * '/gain' * '/gain' * '/gain' @@ -2201,7 +2207,7 @@ struct P_SIL_T_ { */ real32_T max_dr; /* Variable: max_dr * Referenced by: - * '/gain2' + * '/gain2' * '/gain2' * '/gain2' * '/gain2' @@ -2247,7 +2253,7 @@ struct P_SIL_T_ { */ real32_T recovery_ias; /* Variable: recovery_ias * Referenced by: - * '/Constant' + * '/Constant' * '/Constant' */ real32_T w_as; /* Variable: w_as @@ -3288,91 +3294,91 @@ extern RT_MODEL_SIL_T *const SIL_M; * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_cmd' * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params' * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/If Action Subsystem1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/actuator_cmd' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/base_asl' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/bit_mode' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/dist_trans' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/proc_cmd' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/sdas_cmd' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/takeoff_tht' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/toplevel_sw' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/way_point' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/actuator_cmd/If Action Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/actuator_cmd/If Action Subsystem1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed/arm' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed/disarm' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed/arm/Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed/arm/Subsystem1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed/disarm/Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed/disarm/Subsystem1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/base_asl/set_base_alt' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/base_asl/set_base_alt_baro' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/base_asl/set_cur_base_alt' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set throttle' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set throttle/If Action Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set throttle/If Action Subsystem1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/If Action Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_as' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_gs' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_hdot' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_as/If Action Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_as/Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_gs/If Action Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_gs/Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_hdot/If Action Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_hdot/Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/AFCS_vert' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/AS_SEL' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/BMU' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/CCM' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/ECU' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/If Action Subsystem1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/actuators' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/afterburning' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/cut' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/recovery' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/ECU/Chart' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/actuators/Degrees to Radians' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/cut/Compare To Constant' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/cut/Compare To Constant1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/cut/pass_through' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/cut/recovery' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/recovery/Compare To Constant' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/recovery/Compare To Constant1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/recovery/pass_through' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/recovery/recovery' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/takeoff_tht/Degrees to Radians' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/toplevel_sw/If Action Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/toplevel_sw/If Action Subsystem1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/toplevel_sw/If Action Subsystem/operation' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/toplevel_sw/If Action Subsystem/standby' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/toplevel_sw/If Action Subsystem/xbit' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/Compare To Constant' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem/range_pi' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem/range_pi1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem/range_pi/Compare To Constant' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem/range_pi/Compare To Constant1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem/range_pi1/Compare To Constant' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem/range_pi1/Compare To Constant1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_conn/If Action Subsystem' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_conn/If Action Subsystem1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_conn/check_conn' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/invalid' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid_checking' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid/auto_sw' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid/aux_sw' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid/brake_sw' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid/gear_sw' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid/rescale1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid/rescale4' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/act_sweep' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/actuator_cmd' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/base_asl' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/bit_mode' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/dist_trans' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/proc_cmd' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/sdas_cmd' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/takeoff_tht' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/toplevel_sw' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/way_point' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/act_sweep/Degrees to Radians' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/actuator_cmd/If Action Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/actuator_cmd/If Action Subsystem1' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed/arm' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed/disarm' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed/arm/Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed/arm/Subsystem1' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed/disarm/Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/armed_dissarmed/disarm/Subsystem1' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/base_asl/set_base_alt' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/base_asl/set_base_alt_baro' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/base_asl/set_cur_base_alt' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set throttle' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set throttle/If Action Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set throttle/If Action Subsystem1' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/If Action Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_as' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_gs' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_hdot' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_as/If Action Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_as/Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_gs/If Action Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_gs/Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_hdot/If Action Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/change_speed/set_speed/set_hdot/Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/AFCS_vert' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/AS_SEL' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/BMU' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/CCM' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/ECU' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/If Action Subsystem1' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/actuators' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/afterburning' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/cut' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/recovery' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/ECU/Chart' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/actuators/Degrees to Radians' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/cut/Compare To Constant' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/cut/Compare To Constant1' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/cut/pass_through' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/cut/recovery' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/recovery/Compare To Constant' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/recovery/Compare To Constant1' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/recovery/pass_through' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/set_parameter/recovery/recovery' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/takeoff_tht/Degrees to Radians' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/toplevel_sw/If Action Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/toplevel_sw/If Action Subsystem1' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/toplevel_sw/If Action Subsystem/operation' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/toplevel_sw/If Action Subsystem/standby' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/toplevel_sw/If Action Subsystem/xbit' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/Compare To Constant' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem1' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem/range_pi' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem/range_pi1' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem/range_pi/Compare To Constant' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem/range_pi/Compare To Constant1' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem/range_pi1/Compare To Constant' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_cmd/proc_params/trim_alpha/If Action Subsystem/range_pi1/Compare To Constant1' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_conn/If Action Subsystem' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_conn/If Action Subsystem1' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_conn/check_conn' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/invalid' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid_checking' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid/auto_sw' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid/aux_sw' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid/brake_sw' + * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid/gear_sw' * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid/rescale6' * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid/rescale7' * '' : 'SIL/kb3_autopilot/communiation_and_command/C2_proc/update_rc/valid/rescale8' @@ -3419,21 +3425,21 @@ extern RT_MODEL_SIL_T *const SIL_M; * '' : 'SIL/kb3_autopilot/communiation_and_command/system_automation/SubRouting/operational/SubRouting/auto/SubRouting/mission/mission_sel/valid_test/landing/Compare To Constant' * '' : 'SIL/kb3_autopilot/communiation_and_command/system_automation/SubRouting/operational/SubRouting/auto/SubRouting/mission/mission_sel/valid_test/takeoff/Compare To Constant' * '' : 'SIL/kb3_autopilot/communiation_and_command/system_automation/SubRouting/operational/SubRouting/auto/SubRouting/mission/mission_sel/valid_test/wp/Compare To Constant' - * '' : 'SIL/kb3_autopilot/communiation_and_command/system_automation/SubRouting/xbit/idle' - * '' : 'SIL/kb3_autopilot/communiation_and_command/system_automation/SubRouting/xbit/manual' - * '' : 'SIL/kb3_autopilot/communiation_and_command/system_automation/SubRouting/xbit/stab' - * '' : 'SIL/kb3_autopilot/communiation_and_command/trajectory_plan/no_updates' - * '' : 'SIL/kb3_autopilot/communiation_and_command/trajectory_plan/update_mission_traj' - * '' : 'SIL/kb3_autopilot/communiation_and_command/trajectory_plan/update_mission_traj/mav' - * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/invalid' - * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid' - * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid_checking' - * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid/auto_sw' - * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid/aux_sw' - * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid/brake_sw' - * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid/gear_sw' - * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid/rescale1' - * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid/rescale4' + * '' : 'SIL/kb3_autopilot/communiation_and_command/system_automation/SubRouting/xbit/act_sweep' + * '' : 'SIL/kb3_autopilot/communiation_and_command/system_automation/SubRouting/xbit/idle' + * '' : 'SIL/kb3_autopilot/communiation_and_command/system_automation/SubRouting/xbit/manual' + * '' : 'SIL/kb3_autopilot/communiation_and_command/system_automation/SubRouting/xbit/stab' + * '' : 'SIL/kb3_autopilot/communiation_and_command/system_automation/SubRouting/xbit/act_sweep/sweep_generator' + * '' : 'SIL/kb3_autopilot/communiation_and_command/trajectory_plan/no_updates' + * '' : 'SIL/kb3_autopilot/communiation_and_command/trajectory_plan/update_mission_traj' + * '' : 'SIL/kb3_autopilot/communiation_and_command/trajectory_plan/update_mission_traj/mav' + * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/invalid' + * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid' + * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid_checking' + * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid/auto_sw' + * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid/aux_sw' + * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid/brake_sw' + * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid/gear_sw' * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid/rescale6' * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid/rescale7' * '' : 'SIL/kb3_autopilot/communiation_and_command/update_rc/valid/rescale8' diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.c b/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.c index 30042b6..4aebe35 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.c +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.c @@ -5,7 +5,7 @@ * * Model version : 1.473 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Fri Nov 13 06:18:31 2020 + * C/C++ source code generated on : Tue Nov 17 14:07:12 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -442,10 +442,10 @@ static rtwCAPI_ModelMappingStaticInfo mmiStatic = { rtElementMap, rtSampleTimeMap, rtDimensionArray }, "float", - { 2705174784U, - 75527174U, - 4116828136U, - 1947562345U }, + { 2879783035U, + 2623697158U, + 2934221762U, + 1138774184U }, (NULL), 0, 0 }; diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.h b/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.h index b6b09c7..0a97175 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.h +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.h @@ -5,7 +5,7 @@ * * Model version : 1.473 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Fri Nov 13 06:18:31 2020 + * C/C++ source code generated on : Tue Nov 17 14:07:12 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL_data.c b/SIL/work/SIL_ert_shrlib_rtw/SIL_data.c index ff1d2f3..763f292 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL_data.c +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL_data.c @@ -5,7 +5,7 @@ * * Model version : 1.473 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Fri Nov 13 06:18:31 2020 + * C/C++ source code generated on : Tue Nov 17 14:07:12 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -436,7 +436,7 @@ P_SIL_T SIL_P = { /* Variable: max_da * Referenced by: * '/Constant1' - * '/gain1' + * '/gain1' * '/gain1' * '/gain1' * '/gain1' @@ -447,7 +447,7 @@ P_SIL_T SIL_P = { /* Variable: max_de * Referenced by: * '/Constant1' - * '/gain' + * '/gain' * '/gain' * '/gain' * '/gain' @@ -457,7 +457,7 @@ P_SIL_T SIL_P = { /* Variable: max_dr * Referenced by: - * '/gain2' + * '/gain2' * '/gain2' * '/gain2' * '/gain2' @@ -527,7 +527,7 @@ P_SIL_T SIL_P = { /* Variable: recovery_ias * Referenced by: - * '/Constant' + * '/Constant' * '/Constant' */ 85.0F, diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL_private.h b/SIL/work/SIL_ert_shrlib_rtw/SIL_private.h index 99ac0a6..7fa912d 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL_private.h +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL_private.h @@ -5,7 +5,7 @@ * * Model version : 1.473 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Fri Nov 13 06:18:31 2020 + * C/C++ source code generated on : Tue Nov 17 14:07:12 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL_types.h b/SIL/work/SIL_ert_shrlib_rtw/SIL_types.h index 6076848..8911822 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL_types.h +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL_types.h @@ -5,7 +5,7 @@ * * Model version : 1.473 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Fri Nov 13 06:18:31 2020 + * C/C++ source code generated on : Tue Nov 17 14:07:12 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -508,11 +508,8 @@ typedef struct { /* 油门指令 */ real32_T throttle_cmd; - /* 推力矢量俯仰角指令 */ - real32_T ele_cmd; - - /* 襟翼放下位置 */ - real32_T flap; + /* 原始指令 */ + uint16_T chan_raw[18]; /* 遥控器主模式,三段开关,1100手动,1500升降速率,1900自主 */ uint8_T auto_mode; @@ -577,7 +574,8 @@ typedef enum { typedef enum { ENUM_BIT_MODE_IDLE = 0, /* Default value */ ENUM_BIT_MODE_MANUAL, - ENUM_BIT_MODE_STAB + ENUM_BIT_MODE_STAB, + ENUM_BIT_MODE_ACT_SWEEP } ENUM_BIT_MODE; #endif @@ -786,6 +784,21 @@ typedef struct { /* BIT模式 */ ENUM_BIT_MODE BIT_MODE; + + /* 激励通道 */ + uint8_T act_sw_chan; + + /* 激励幅值 */ + real32_T act_sw_amp; + + /* 初始频率 */ + real32_T act_sw_freq0; + + /* 终止频率 */ + real32_T act_sw_freq1; + + /* 频率变化速率 */ + real32_T act_sw_k; } C2; #endif diff --git a/SIL/work/SIL_ert_shrlib_rtw/buildInfo.mat b/SIL/work/SIL_ert_shrlib_rtw/buildInfo.mat index 828d215..3539a69 100644 Binary files a/SIL/work/SIL_ert_shrlib_rtw/buildInfo.mat and b/SIL/work/SIL_ert_shrlib_rtw/buildInfo.mat differ diff --git a/SIL/work/SIL_ert_shrlib_rtw/rtmodel.h b/SIL/work/SIL_ert_shrlib_rtw/rtmodel.h index 2a16dab..1006386 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/rtmodel.h +++ b/SIL/work/SIL_ert_shrlib_rtw/rtmodel.h @@ -5,7 +5,7 @@ * * Model version : 1.473 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Fri Nov 13 06:18:31 2020 + * C/C++ source code generated on : Tue Nov 17 14:07:12 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) diff --git a/SIL/work/SIL_win64.dll b/SIL/work/SIL_win64.dll index dbb3c0e..556b9d6 100644 Binary files a/SIL/work/SIL_win64.dll and b/SIL/work/SIL_win64.dll differ