diff --git a/cr929_SIL/otherFiles/app_config.h b/cr929_SIL/otherFiles/app_config.h index 1c464de..8bdc5a5 100644 --- a/cr929_SIL/otherFiles/app_config.h +++ b/cr929_SIL/otherFiles/app_config.h @@ -5,7 +5,7 @@ #endif #ifndef PARAM_PROPS_MAXLEN -#define PARAM_PROPS_MAXLEN (640) +#define PARAM_PROPS_MAXLEN (1024) #endif #ifndef PWM_CHANEL_NUM diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/buildInfo.mat b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/buildInfo.mat index 00afd79..934901a 100644 Binary files a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/buildInfo.mat and b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/buildInfo.mat differ diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.c b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.c index 95e055f..7bcacc5 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.c +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1401 + * Model version : 1.1410 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Aug 24 19:16:31 2021 + * C/C++ source code generated on : Fri Aug 27 09:43:15 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -91,7 +91,7 @@ /* Named constants for Chart: '/proc_cmd' */ #define cr929_SIL_IN_Linked ((uint8_T)1U) #define cr929_SIL_IN_Linked2 ((uint8_T)2U) -#define cr929_SIL_IN_idle_f ((uint8_T)3U) +#define cr929_SIL_IN_idle_h ((uint8_T)3U) /* Named constants for Chart: '/check_conn' */ #define cr929_SIL_IN_LinkLoss ((uint8_T)1U) @@ -111,10 +111,10 @@ #define cr929_SIL_IN_xbit ((uint8_T)3U) /* Named constants for Chart: '/manual_arm_disarm' */ -#define cr929_SIL_IN_check_armed_o ((uint8_T)1U) -#define cr929_SIL_IN_check_disarmed_d ((uint8_T)2U) -#define cr929_SIL_IN_operational_d ((uint8_T)4U) -#define cr929_SIL_IN_xbit_o ((uint8_T)5U) +#define cr929_SIL_IN_check_armed_f ((uint8_T)1U) +#define cr929_SIL_IN_check_disarmed_p ((uint8_T)2U) +#define cr929_SIL_IN_operational_n ((uint8_T)4U) +#define cr929_SIL_IN_xbit_b ((uint8_T)5U) /* Named constants for Chart: '/standby_emergency' */ #define cr929_SIL_IN_Emergency ((uint8_T)1U) @@ -142,20 +142,20 @@ #define cr929_SIL_IN_Flare_high ((uint8_T)2U) #define cr929_SIL_IN_Flare_low ((uint8_T)3U) #define cr929_SIL_IN_GearDown ((uint8_T)4U) -#define cr929_SIL_IN_Stop_p ((uint8_T)5U) +#define cr929_SIL_IN_Stop_e ((uint8_T)5U) #define cr929_SIL_IN_Taxi_Brake ((uint8_T)6U) #define cr929_SIL_IN_ThreeWheel ((uint8_T)7U) #define cr929_SIL_IN_TwoWheel ((uint8_T)8U) #define cr929_SIL_IN_WaveOff ((uint8_T)9U) /* Named constants for Chart: '/waypoint_task' */ -#define cr929_SIL_IN_Taxi_c ((uint8_T)1U) +#define cr929_SIL_IN_Taxi_p ((uint8_T)1U) #define cr929_SIL_IN_WayPoint ((uint8_T)2U) /* Named constants for Chart: '/waypoint_task' */ #define cr929_SIL_IN_Brake ((uint8_T)1U) #define cr929_SIL_IN_NextWP ((uint8_T)1U) -#define cr929_SIL_IN_Taxi_e ((uint8_T)2U) +#define cr929_SIL_IN_Taxi_f ((uint8_T)2U) #define cr929_SIL_IN_WP ((uint8_T)3U) /* Named constants for Chart: '/turning_limit' */ @@ -201,7 +201,7 @@ /* Named constants for Chart: '/waypoint_task' */ #define cr929_SIL_IN_Cruise ((uint8_T)1U) -#define cr929_SIL_IN_NextWP_d ((uint8_T)2U) +#define cr929_SIL_IN_NextWP_g ((uint8_T)2U) /* Named constants for Chart: '/mode_switch_and_safety' */ #define cr929_SIL_IN_WP_j ((uint8_T)1U) @@ -3080,7 +3080,7 @@ void cr929_SIL_valid(const C2 *rtu_C2_in, uint8_T rtu_id, const uint16_T uint8_T rtb_out_ah; uint8_T rtb_out_lp; boolean_T rtb_out_e2; - boolean_T rtb_out_ki; + boolean_T rtb_out_n; int32_T i; real32_T u0; real32_T u0_0; @@ -3121,7 +3121,7 @@ void cr929_SIL_valid(const C2 *rtu_C2_in, uint8_T rtu_id, const uint16_T cr929_SIL_brake_sw(rtu_channels[6], &rtb_out_e2); /* Chart: '/brake_sw' */ - cr929_SIL_brake_sw(rtu_channels[7], &rtb_out_ki); + cr929_SIL_brake_sw(rtu_channels[7], &rtb_out_n); /* BusAssignment: '/Bus Assignment' incorporates: * Constant: '/Constant' @@ -3190,7 +3190,7 @@ void cr929_SIL_valid(const C2 *rtu_C2_in, uint8_T rtu_id, const uint16_T rty_C2_out->rc.auto_mode = rtb_out_ah; rty_C2_out->rc.aux_mode = rtb_out_lp; rty_C2_out->rc.gear_up = rtb_out_e2; - rty_C2_out->rc.brake = rtb_out_ki; + rty_C2_out->rc.brake = rtb_out_n; for (i = 0; i < 18; i++) { rty_C2_out->rc.chan_raw[i] = rtu_channels[i]; } @@ -4723,7 +4723,7 @@ int32_T cr929_SIL_Chart_send_ack_SendData(const CommandAck *data_toSend) /* Function for Chart: '/proc_cmd' */ static void cr929_SIL_sf_msg_send_ack(void) { - cr929_SIL_Chart_send_ack_SendData(&cr929_SIL_DW.ack_msgData_g); + cr929_SIL_Chart_send_ack_SendData(&cr929_SIL_DW.ack_msgData_b); } CommandMsg *cr929_SIL_allocMemPool(MemPool_CommandMsg *memPool) @@ -4792,40 +4792,40 @@ static void cr929_SIL_sf_msg_send_cmd(void) /* Function for Chart: '/takeoff_task' */ static void cr929_SIL_enter_atomic_StateBy(void) { - cr929_SIL_B.mode_g = ENUM_mode_AUTO_READY; + cr929_SIL_B.mode_p = ENUM_mode_AUTO_READY; cr929_SIL_B.state = ENUM_SystemState_STANDBY; - cr929_SIL_B.landed_state_l = ENUM_LANDED_STATE_ON_GROUND; + cr929_SIL_B.landed_state_d = ENUM_LANDED_STATE_ON_GROUND; cr929_SIL_B.vtol_state = ENUM_VTOL_STATE_FW; - cr929_SIL_B.WP_out_g = cr929_SIL_B.BusAssignment_g.WP_cur; - cr929_SIL_B.use_mission_traj_m = true; + cr929_SIL_B.WP_out_a = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.use_mission_traj_c = true; cr929_SIL_B.home.lon1 = cr929_SIL_B.BusAssignment_h.lon; cr929_SIL_B.home.lat1 = cr929_SIL_B.BusAssignment_h.lat; cr929_SIL_B.home.h1 = cr929_SIL_B.BusAssignment_h.msl; - cr929_SIL_B.AFCS_VERT_b = ENUM_AFCS_VERT_OFF; - cr929_SIL_B.AFCS_LAT_m = ENUM_AFCS_LAT_OFF; - cr929_SIL_B.CSAS_roll_h = ENUM_CSAS_ROLL_OFF; - cr929_SIL_B.CSAS_pitch_b = ENUM_CSAS_PITCH_COMMAND; - cr929_SIL_B.CSAS_yaw_m = ENUM_CSAS_YAW_OFF; - cr929_SIL_B.AT_h = ENUM_AT_OFF; - cr929_SIL_B.throttle_c_out_m = 0.0F; + cr929_SIL_B.AFCS_VERT_p = ENUM_AFCS_VERT_OFF; + cr929_SIL_B.AFCS_LAT_f = ENUM_AFCS_LAT_OFF; + cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_OFF; + cr929_SIL_B.CSAS_pitch_p = ENUM_CSAS_PITCH_COMMAND; + cr929_SIL_B.CSAS_yaw_o = ENUM_CSAS_YAW_OFF; + cr929_SIL_B.AT_f = ENUM_AT_OFF; + cr929_SIL_B.throttle_c_out_c = 0.0F; cr929_SIL_B.tht_c = 0.0F; - cr929_SIL_B.phi_c_g = 0.0F; + cr929_SIL_B.phi_c_o = 0.0F; /* Constant: '/Constant Single27' */ - cr929_SIL_B.as_c_m = cr929_SIL_P.V1; - cr929_SIL_B.gs_c_k = cr929_SIL_P.V1; + cr929_SIL_B.as_c_g = cr929_SIL_P.V1; + cr929_SIL_B.gs_c_g = cr929_SIL_P.V1; cr929_SIL_B.gear_up_c = false; /* Constant: '/Constant Single36' */ cr929_SIL_B.de_c = cr929_SIL_P.taxi_de; - cr929_SIL_B.brake_c_k = true; + cr929_SIL_B.brake_c_c = true; cr929_SIL_B.takeoff_cmd_out = false; } /* Function for Chart: '/landing_task' */ static void cr929_SIL_enter_atomic_WaveOff(void) { - cr929_SIL_B.mode_h = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.mode_f = ENUM_mode_AUTO_MISSION; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_IN_AIR; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PHI; @@ -10809,7 +10809,7 @@ void cr929_SIL_step(void) real32_T rtb_Sum4_p; real32_T rtb_out_cy; real32_T rtb_out_kk; - real32_T rtb_out_gh; + real32_T rtb_out_ghq; real32_T rtb_Sum_ht; real32_T rtb_err_psi; real32_T rtb_err_psi1; @@ -10829,7 +10829,7 @@ void cr929_SIL_step(void) uint16_T rtb_select[23]; uint16_T rtb_Delay_a[23]; uint8_T rtb_pos_out; - uint8_T rtb_pos_out_l; + uint8_T rtb_pos_out_m; uint8_T rtb_Merge1_a; /* local scratch DWork variables */ @@ -11077,13 +11077,13 @@ void cr929_SIL_step(void) real32_T rtb_de2qdot; real32_T rtb_dr2rdot; real32_T rtb_Saturation_fs; - ENUM_mode rtb_mode_g; + ENUM_mode rtb_mode_n; ENUM_LANDED_STATE rtb_landed_state_out; ENUM_AFCS_VERT rtb_AFCS_VERT; ENUM_CSAS_ROLL rtb_CSAS_roll; ENUM_CSAS_PITCH rtb_CSAS_pitch; ENUM_AT rtb_AT; - real32_T rtb_phi_c_j; + real32_T rtb_phi_c_o; ENUM_operational_level2 rtb_level2_lgx; real32_T rtb_uDLookupTable3; boolean_T rtb_Merge_o_gear_up; @@ -11684,8 +11684,8 @@ void cr929_SIL_step(void) real32_T rtb_Sum4_m; real32_T rtb_Delay_n; real32_T rtb_add2; - boolean_T rtb_out_lm; - uint32_T rtb_out_me; + boolean_T rtb_out_mz; + uint32_T rtb_out_de; ENUM_auto_level3 rtb_level3_lgx; real32_T rtb_Merge_dm; real32_T rtb_Switch2_ki; @@ -14642,32 +14642,32 @@ void cr929_SIL_step(void) /* Chart: '/Chart' incorporates: * Constant: '/Constant3' */ - if (cr929_SIL_DW.temporalCounter_i1_nc < 511U) { - cr929_SIL_DW.temporalCounter_i1_nc++; + if (cr929_SIL_DW.temporalCounter_i1_dz < 511U) { + cr929_SIL_DW.temporalCounter_i1_dz++; } if (cr929_SIL_DW.is_active_c48_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c48_cr929_autopilot = 1U; cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_it = cr929_SIL_B.good_n; + cr929_SIL_DW.last_seq_a5 = cr929_SIL_B.good_n; i = 0; } else if (cr929_SIL_DW.is_c48_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_it != cr929_SIL_B.good_n) { + if (cr929_SIL_DW.last_seq_a5 != cr929_SIL_B.good_n) { cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_nc = 0U; + cr929_SIL_DW.temporalCounter_i1_dz = 0U; i = 1; - cr929_SIL_DW.last_seq_it = cr929_SIL_B.good_n; + cr929_SIL_DW.last_seq_a5 = cr929_SIL_B.good_n; } else { i = 0; } - } else if (cr929_SIL_DW.last_seq_it != cr929_SIL_B.good_n) { + } else if (cr929_SIL_DW.last_seq_a5 != cr929_SIL_B.good_n) { cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_nc = 0U; + cr929_SIL_DW.temporalCounter_i1_dz = 0U; i = 1; - cr929_SIL_DW.last_seq_it = cr929_SIL_B.good_n; - } else if (cr929_SIL_DW.temporalCounter_i1_nc >= 327U) { + cr929_SIL_DW.last_seq_a5 = cr929_SIL_B.good_n; + } else if (cr929_SIL_DW.temporalCounter_i1_dz >= 327U) { cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_it = cr929_SIL_B.good_n; + cr929_SIL_DW.last_seq_a5 = cr929_SIL_B.good_n; i = 0; } else { i = 1; @@ -14676,29 +14676,29 @@ void cr929_SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (cr929_SIL_DW.temporalCounter_i1_f < 511U) { - cr929_SIL_DW.temporalCounter_i1_f++; + if (cr929_SIL_DW.temporalCounter_i1_goe < 511U) { + cr929_SIL_DW.temporalCounter_i1_goe++; } if (cr929_SIL_DW.is_active_c59_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c59_cr929_autopilot = 1U; cr929_SIL_DW.is_c59_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_k = cr929_SIL_B.good_h; + cr929_SIL_DW.last_seq_c = cr929_SIL_B.good_h; } else if (cr929_SIL_DW.is_c59_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_k != cr929_SIL_B.good_h) { + if (cr929_SIL_DW.last_seq_c != cr929_SIL_B.good_h) { cr929_SIL_DW.is_c59_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_goe = 0U; i |= 2U; - cr929_SIL_DW.last_seq_k = cr929_SIL_B.good_h; + cr929_SIL_DW.last_seq_c = cr929_SIL_B.good_h; } - } else if (cr929_SIL_DW.last_seq_k != cr929_SIL_B.good_h) { + } else if (cr929_SIL_DW.last_seq_c != cr929_SIL_B.good_h) { cr929_SIL_DW.is_c59_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_goe = 0U; i |= 2U; - cr929_SIL_DW.last_seq_k = cr929_SIL_B.good_h; - } else if (cr929_SIL_DW.temporalCounter_i1_f >= 327U) { + cr929_SIL_DW.last_seq_c = cr929_SIL_B.good_h; + } else if (cr929_SIL_DW.temporalCounter_i1_goe >= 327U) { cr929_SIL_DW.is_c59_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_k = cr929_SIL_B.good_h; + cr929_SIL_DW.last_seq_c = cr929_SIL_B.good_h; } else { i |= 2U; } @@ -14706,29 +14706,29 @@ void cr929_SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (cr929_SIL_DW.temporalCounter_i1_gm < 511U) { - cr929_SIL_DW.temporalCounter_i1_gm++; + if (cr929_SIL_DW.temporalCounter_i1_eq < 511U) { + cr929_SIL_DW.temporalCounter_i1_eq++; } if (cr929_SIL_DW.is_active_c64_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c64_cr929_autopilot = 1U; cr929_SIL_DW.is_c64_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_d = cr929_SIL_B.UnitDelay_m; + cr929_SIL_DW.last_seq_o = cr929_SIL_B.UnitDelay_m; } else if (cr929_SIL_DW.is_c64_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_d != cr929_SIL_B.UnitDelay_m) { + if (cr929_SIL_DW.last_seq_o != cr929_SIL_B.UnitDelay_m) { cr929_SIL_DW.is_c64_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_gm = 0U; + cr929_SIL_DW.temporalCounter_i1_eq = 0U; i |= 4U; - cr929_SIL_DW.last_seq_d = cr929_SIL_B.UnitDelay_m; + cr929_SIL_DW.last_seq_o = cr929_SIL_B.UnitDelay_m; } - } else if (cr929_SIL_DW.last_seq_d != cr929_SIL_B.UnitDelay_m) { + } else if (cr929_SIL_DW.last_seq_o != cr929_SIL_B.UnitDelay_m) { cr929_SIL_DW.is_c64_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_gm = 0U; + cr929_SIL_DW.temporalCounter_i1_eq = 0U; i |= 4U; - cr929_SIL_DW.last_seq_d = cr929_SIL_B.UnitDelay_m; - } else if (cr929_SIL_DW.temporalCounter_i1_gm >= 327U) { + cr929_SIL_DW.last_seq_o = cr929_SIL_B.UnitDelay_m; + } else if (cr929_SIL_DW.temporalCounter_i1_eq >= 327U) { cr929_SIL_DW.is_c64_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_d = cr929_SIL_B.UnitDelay_m; + cr929_SIL_DW.last_seq_o = cr929_SIL_B.UnitDelay_m; } else { i |= 4U; } @@ -14738,29 +14738,29 @@ void cr929_SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (cr929_SIL_DW.temporalCounter_i1_gx < 511U) { - cr929_SIL_DW.temporalCounter_i1_gx++; + if (cr929_SIL_DW.temporalCounter_i1_fq < 511U) { + cr929_SIL_DW.temporalCounter_i1_fq++; } if (cr929_SIL_DW.is_active_c65_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c65_cr929_autopilot = 1U; cr929_SIL_DW.is_c65_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_e = cr929_SIL_DW.UnitDelay_DSTATE_c3; + cr929_SIL_DW.last_seq_l = cr929_SIL_DW.UnitDelay_DSTATE_c3; } else if (cr929_SIL_DW.is_c65_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_e != cr929_SIL_DW.UnitDelay_DSTATE_c3) { + if (cr929_SIL_DW.last_seq_l != cr929_SIL_DW.UnitDelay_DSTATE_c3) { cr929_SIL_DW.is_c65_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_gx = 0U; + cr929_SIL_DW.temporalCounter_i1_fq = 0U; i |= 8U; - cr929_SIL_DW.last_seq_e = cr929_SIL_DW.UnitDelay_DSTATE_c3; + cr929_SIL_DW.last_seq_l = cr929_SIL_DW.UnitDelay_DSTATE_c3; } - } else if (cr929_SIL_DW.last_seq_e != cr929_SIL_DW.UnitDelay_DSTATE_c3) { + } else if (cr929_SIL_DW.last_seq_l != cr929_SIL_DW.UnitDelay_DSTATE_c3) { cr929_SIL_DW.is_c65_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_gx = 0U; + cr929_SIL_DW.temporalCounter_i1_fq = 0U; i |= 8U; - cr929_SIL_DW.last_seq_e = cr929_SIL_DW.UnitDelay_DSTATE_c3; - } else if (cr929_SIL_DW.temporalCounter_i1_gx >= 327U) { + cr929_SIL_DW.last_seq_l = cr929_SIL_DW.UnitDelay_DSTATE_c3; + } else if (cr929_SIL_DW.temporalCounter_i1_fq >= 327U) { cr929_SIL_DW.is_c65_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_e = cr929_SIL_DW.UnitDelay_DSTATE_c3; + cr929_SIL_DW.last_seq_l = cr929_SIL_DW.UnitDelay_DSTATE_c3; } else { i |= 8U; } @@ -14770,29 +14770,29 @@ void cr929_SIL_step(void) /* Chart: '/Chart' incorporates: * Chart: '/Chart' */ - if (cr929_SIL_DW.temporalCounter_i1_k < 511U) { - cr929_SIL_DW.temporalCounter_i1_k++; + if (cr929_SIL_DW.temporalCounter_i1_go < 511U) { + cr929_SIL_DW.temporalCounter_i1_go++; } if (cr929_SIL_DW.is_active_c74_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c74_cr929_autopilot = 1U; cr929_SIL_DW.is_c74_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_o = cr929_SIL_B.good_f; + cr929_SIL_DW.last_seq_e = cr929_SIL_B.good_f; } else if (cr929_SIL_DW.is_c74_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_o != cr929_SIL_B.good_f) { + if (cr929_SIL_DW.last_seq_e != cr929_SIL_B.good_f) { cr929_SIL_DW.is_c74_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_k = 0U; + cr929_SIL_DW.temporalCounter_i1_go = 0U; i |= 32U; - cr929_SIL_DW.last_seq_o = cr929_SIL_B.good_f; + cr929_SIL_DW.last_seq_e = cr929_SIL_B.good_f; } - } else if (cr929_SIL_DW.last_seq_o != cr929_SIL_B.good_f) { + } else if (cr929_SIL_DW.last_seq_e != cr929_SIL_B.good_f) { cr929_SIL_DW.is_c74_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_k = 0U; + cr929_SIL_DW.temporalCounter_i1_go = 0U; i |= 32U; - cr929_SIL_DW.last_seq_o = cr929_SIL_B.good_f; - } else if (cr929_SIL_DW.temporalCounter_i1_k >= 327U) { + cr929_SIL_DW.last_seq_e = cr929_SIL_B.good_f; + } else if (cr929_SIL_DW.temporalCounter_i1_go >= 327U) { cr929_SIL_DW.is_c74_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_o = cr929_SIL_B.good_f; + cr929_SIL_DW.last_seq_e = cr929_SIL_B.good_f; } else { i |= 32U; } @@ -14802,29 +14802,29 @@ void cr929_SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (cr929_SIL_DW.temporalCounter_i1_hb < 511U) { - cr929_SIL_DW.temporalCounter_i1_hb++; + if (cr929_SIL_DW.temporalCounter_i1_f < 511U) { + cr929_SIL_DW.temporalCounter_i1_f++; } if (cr929_SIL_DW.is_active_c75_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c75_cr929_autopilot = 1U; cr929_SIL_DW.is_c75_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_i = cr929_SIL_DW.UnitDelay_DSTATE_dq; + cr929_SIL_DW.last_seq_p = cr929_SIL_DW.UnitDelay_DSTATE_dq; } else if (cr929_SIL_DW.is_c75_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_i != cr929_SIL_DW.UnitDelay_DSTATE_dq) { + if (cr929_SIL_DW.last_seq_p != cr929_SIL_DW.UnitDelay_DSTATE_dq) { cr929_SIL_DW.is_c75_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_hb = 0U; + cr929_SIL_DW.temporalCounter_i1_f = 0U; i |= 64U; - cr929_SIL_DW.last_seq_i = cr929_SIL_DW.UnitDelay_DSTATE_dq; + cr929_SIL_DW.last_seq_p = cr929_SIL_DW.UnitDelay_DSTATE_dq; } - } else if (cr929_SIL_DW.last_seq_i != cr929_SIL_DW.UnitDelay_DSTATE_dq) { + } else if (cr929_SIL_DW.last_seq_p != cr929_SIL_DW.UnitDelay_DSTATE_dq) { cr929_SIL_DW.is_c75_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_hb = 0U; + cr929_SIL_DW.temporalCounter_i1_f = 0U; i |= 64U; - cr929_SIL_DW.last_seq_i = cr929_SIL_DW.UnitDelay_DSTATE_dq; - } else if (cr929_SIL_DW.temporalCounter_i1_hb >= 327U) { + cr929_SIL_DW.last_seq_p = cr929_SIL_DW.UnitDelay_DSTATE_dq; + } else if (cr929_SIL_DW.temporalCounter_i1_f >= 327U) { cr929_SIL_DW.is_c75_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_i = cr929_SIL_DW.UnitDelay_DSTATE_dq; + cr929_SIL_DW.last_seq_p = cr929_SIL_DW.UnitDelay_DSTATE_dq; } else { i |= 64U; } @@ -14841,8 +14841,8 @@ void cr929_SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (cr929_SIL_DW.temporalCounter_i1_ib < 511U) { - cr929_SIL_DW.temporalCounter_i1_ib++; + if (cr929_SIL_DW.temporalCounter_i1_e < 511U) { + cr929_SIL_DW.temporalCounter_i1_e++; } if (cr929_SIL_DW.is_active_c77_cr929_autopilot == 0U) { @@ -14852,16 +14852,16 @@ void cr929_SIL_step(void) } else if (cr929_SIL_DW.is_c77_cr929_autopilot == cr929_SIL_IN_bad) { if (cr929_SIL_DW.last_seq != cr929_SIL_B.good) { cr929_SIL_DW.is_c77_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_ib = 0U; + cr929_SIL_DW.temporalCounter_i1_e = 0U; i |= 256U; cr929_SIL_DW.last_seq = cr929_SIL_B.good; } } else if (cr929_SIL_DW.last_seq != cr929_SIL_B.good) { cr929_SIL_DW.is_c77_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_ib = 0U; + cr929_SIL_DW.temporalCounter_i1_e = 0U; i |= 256U; cr929_SIL_DW.last_seq = cr929_SIL_B.good; - } else if (cr929_SIL_DW.temporalCounter_i1_ib >= 327U) { + } else if (cr929_SIL_DW.temporalCounter_i1_e >= 327U) { cr929_SIL_DW.is_c77_cr929_autopilot = cr929_SIL_IN_bad; cr929_SIL_DW.last_seq = cr929_SIL_B.good; } else { @@ -14873,29 +14873,29 @@ void cr929_SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (cr929_SIL_DW.temporalCounter_i1_e < 511U) { - cr929_SIL_DW.temporalCounter_i1_e++; + if (cr929_SIL_DW.temporalCounter_i1_mr < 511U) { + cr929_SIL_DW.temporalCounter_i1_mr++; } if (cr929_SIL_DW.is_active_c49_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c49_cr929_autopilot = 1U; cr929_SIL_DW.is_c49_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_kb = cr929_SIL_DW.UnitDelay_DSTATE_p; + cr929_SIL_DW.last_seq_a = cr929_SIL_DW.UnitDelay_DSTATE_p; } else if (cr929_SIL_DW.is_c49_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_kb != cr929_SIL_DW.UnitDelay_DSTATE_p) { + if (cr929_SIL_DW.last_seq_a != cr929_SIL_DW.UnitDelay_DSTATE_p) { cr929_SIL_DW.is_c49_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_e = 0U; + cr929_SIL_DW.temporalCounter_i1_mr = 0U; i |= 512U; - cr929_SIL_DW.last_seq_kb = cr929_SIL_DW.UnitDelay_DSTATE_p; + cr929_SIL_DW.last_seq_a = cr929_SIL_DW.UnitDelay_DSTATE_p; } - } else if (cr929_SIL_DW.last_seq_kb != cr929_SIL_DW.UnitDelay_DSTATE_p) { + } else if (cr929_SIL_DW.last_seq_a != cr929_SIL_DW.UnitDelay_DSTATE_p) { cr929_SIL_DW.is_c49_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_e = 0U; + cr929_SIL_DW.temporalCounter_i1_mr = 0U; i |= 512U; - cr929_SIL_DW.last_seq_kb = cr929_SIL_DW.UnitDelay_DSTATE_p; - } else if (cr929_SIL_DW.temporalCounter_i1_e >= 327U) { + cr929_SIL_DW.last_seq_a = cr929_SIL_DW.UnitDelay_DSTATE_p; + } else if (cr929_SIL_DW.temporalCounter_i1_mr >= 327U) { cr929_SIL_DW.is_c49_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_kb = cr929_SIL_DW.UnitDelay_DSTATE_p; + cr929_SIL_DW.last_seq_a = cr929_SIL_DW.UnitDelay_DSTATE_p; } else { i |= 512U; } @@ -14903,29 +14903,29 @@ void cr929_SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (cr929_SIL_DW.temporalCounter_i1_ks < 511U) { - cr929_SIL_DW.temporalCounter_i1_ks++; + if (cr929_SIL_DW.temporalCounter_i1_k < 511U) { + cr929_SIL_DW.temporalCounter_i1_k++; } if (cr929_SIL_DW.is_active_c50_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c50_cr929_autopilot = 1U; cr929_SIL_DW.is_c50_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_e3 = cr929_SIL_B.good_e; + cr929_SIL_DW.last_seq_pf = cr929_SIL_B.good_e; } else if (cr929_SIL_DW.is_c50_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_e3 != cr929_SIL_B.good_e) { + if (cr929_SIL_DW.last_seq_pf != cr929_SIL_B.good_e) { cr929_SIL_DW.is_c50_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_ks = 0U; + cr929_SIL_DW.temporalCounter_i1_k = 0U; i |= 1024U; - cr929_SIL_DW.last_seq_e3 = cr929_SIL_B.good_e; + cr929_SIL_DW.last_seq_pf = cr929_SIL_B.good_e; } - } else if (cr929_SIL_DW.last_seq_e3 != cr929_SIL_B.good_e) { + } else if (cr929_SIL_DW.last_seq_pf != cr929_SIL_B.good_e) { cr929_SIL_DW.is_c50_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_ks = 0U; + cr929_SIL_DW.temporalCounter_i1_k = 0U; i |= 1024U; - cr929_SIL_DW.last_seq_e3 = cr929_SIL_B.good_e; - } else if (cr929_SIL_DW.temporalCounter_i1_ks >= 327U) { + cr929_SIL_DW.last_seq_pf = cr929_SIL_B.good_e; + } else if (cr929_SIL_DW.temporalCounter_i1_k >= 327U) { cr929_SIL_DW.is_c50_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_e3 = cr929_SIL_B.good_e; + cr929_SIL_DW.last_seq_pf = cr929_SIL_B.good_e; } else { i |= 1024U; } @@ -14935,29 +14935,29 @@ void cr929_SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (cr929_SIL_DW.temporalCounter_i1_c < 511U) { - cr929_SIL_DW.temporalCounter_i1_c++; + if (cr929_SIL_DW.temporalCounter_i1_ea < 511U) { + cr929_SIL_DW.temporalCounter_i1_ea++; } if (cr929_SIL_DW.is_active_c51_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c51_cr929_autopilot = 1U; cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_c = cr929_SIL_DW.UnitDelay_DSTATE_cc; + cr929_SIL_DW.last_seq_g = cr929_SIL_DW.UnitDelay_DSTATE_cc; } else if (cr929_SIL_DW.is_c51_cr929_autopilot == cr929_SIL_IN_bad) { - if (cr929_SIL_DW.last_seq_c != cr929_SIL_DW.UnitDelay_DSTATE_cc) { + if (cr929_SIL_DW.last_seq_g != cr929_SIL_DW.UnitDelay_DSTATE_cc) { cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_c = 0U; + cr929_SIL_DW.temporalCounter_i1_ea = 0U; i |= 2048U; - cr929_SIL_DW.last_seq_c = cr929_SIL_DW.UnitDelay_DSTATE_cc; + cr929_SIL_DW.last_seq_g = cr929_SIL_DW.UnitDelay_DSTATE_cc; } - } else if (cr929_SIL_DW.last_seq_c != cr929_SIL_DW.UnitDelay_DSTATE_cc) { + } else if (cr929_SIL_DW.last_seq_g != cr929_SIL_DW.UnitDelay_DSTATE_cc) { cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_good; - cr929_SIL_DW.temporalCounter_i1_c = 0U; + cr929_SIL_DW.temporalCounter_i1_ea = 0U; i |= 2048U; - cr929_SIL_DW.last_seq_c = cr929_SIL_DW.UnitDelay_DSTATE_cc; - } else if (cr929_SIL_DW.temporalCounter_i1_c >= 327U) { + cr929_SIL_DW.last_seq_g = cr929_SIL_DW.UnitDelay_DSTATE_cc; + } else if (cr929_SIL_DW.temporalCounter_i1_ea >= 327U) { cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_bad; - cr929_SIL_DW.last_seq_c = cr929_SIL_DW.UnitDelay_DSTATE_cc; + cr929_SIL_DW.last_seq_g = cr929_SIL_DW.UnitDelay_DSTATE_cc; } else { i |= 2048U; } @@ -15005,9 +15005,9 @@ void cr929_SIL_step(void) * RelationalOperator: '/Compare' */ if (cr929_SIL_B.gear_state == 109) { - rtb_out_me = i | 65536U; + rtb_out_de = i | 65536U; } else { - rtb_out_me = (uint32_T)i; + rtb_out_de = (uint32_T)i; } /* End of Chart: '/Chart' */ @@ -15017,7 +15017,7 @@ void cr929_SIL_step(void) * RelationalOperator: '/Compare' */ if (cr929_SIL_B.gear_state == 146) { - rtb_out_me |= 131072U; + rtb_out_de |= 131072U; } /* End of Chart: '/Chart' */ @@ -15027,7 +15027,7 @@ void cr929_SIL_step(void) * RelationalOperator: '/Compare' */ if (cr929_SIL_B.rps > 1) { - rtb_out_me |= 262144U; + rtb_out_de |= 262144U; } /* End of Chart: '/Chart' */ @@ -15036,7 +15036,7 @@ void cr929_SIL_step(void) * S-Function (sfix_bitop): '/Bitwise AND' */ if ((cr929_SIL_B.SumofElements_d & 1U) != 0U) { - rtb_out_me |= 524288U; + rtb_out_de |= 524288U; } /* End of Chart: '/Chart' */ @@ -15045,7 +15045,7 @@ void cr929_SIL_step(void) * S-Function (sfix_bitop): '/Bitwise AND' */ if ((cr929_SIL_B.SumofElements_d & 2U) != 0U) { - rtb_out_me |= 1048576U; + rtb_out_de |= 1048576U; } /* End of Chart: '/Chart' */ @@ -15063,7 +15063,7 @@ void cr929_SIL_step(void) * S-Function (sfix_bitop): '/Bitwise AND' */ if ((cr929_SIL_B.SumofElements_d & 4U) != 0U) { - rtb_out_me |= 2097152U; + rtb_out_de |= 2097152U; } /* End of Chart: '/Chart' */ @@ -15072,7 +15072,7 @@ void cr929_SIL_step(void) * Chart: '/Chart' */ rtb_TmpHiddenBufferAtBusAssignmentInport1_m.sensors_health = (uint32_T) - (cr929_SIL_B.stats & 19) << 22 | rtb_out_me; + (cr929_SIL_B.stats & 19) << 22 | rtb_out_de; /* BusAssignment: '/Bus Assignment' */ cr929_SIL_B.BusAssignment_h = rtb_TmpHiddenBufferAtBusAssignmentInport1_m; @@ -15221,8 +15221,8 @@ void cr929_SIL_step(void) /* Chart: '/Chart' incorporates: * DataStoreRead: '/Data Store Read' */ - if (cr929_SIL_DW.temporalCounter_i1_mr < 127U) { - cr929_SIL_DW.temporalCounter_i1_mr++; + if (cr929_SIL_DW.temporalCounter_i1_gsp < 127U) { + cr929_SIL_DW.temporalCounter_i1_gsp++; } if (cr929_SIL_DW.is_active_c3_cr929_autopilot == 0U) { @@ -15230,7 +15230,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c3_cr929_autopilot = cr929_SIL_IN_UnReset; rtb_ResetControlLaw_out = false; } else if (cr929_SIL_DW.is_c3_cr929_autopilot == cr929_SIL_IN_Reset) { - if (cr929_SIL_DW.temporalCounter_i1_mr >= 98U) { + if (cr929_SIL_DW.temporalCounter_i1_gsp >= 98U) { cr929_SIL_DW.is_c3_cr929_autopilot = cr929_SIL_IN_UnReset; rtb_ResetControlLaw_out = false; } else { @@ -15238,7 +15238,7 @@ void cr929_SIL_step(void) } } else if (cr929_SIL_DW.CC.comac_ResetControlLaw) { cr929_SIL_DW.is_c3_cr929_autopilot = cr929_SIL_IN_Reset; - cr929_SIL_DW.temporalCounter_i1_mr = 0U; + cr929_SIL_DW.temporalCounter_i1_gsp = 0U; rtb_ResetControlLaw_out = true; } else { rtb_ResetControlLaw_out = false; @@ -15333,9 +15333,9 @@ void cr929_SIL_step(void) /* Saturate: '/Saturation2' */ if (cr929_SIL_B.BusAssignment_h.qbar <= 382.8125F) { - rtb_phi_c_j = 382.8125F; + rtb_phi_c_o = 382.8125F; } else { - rtb_phi_c_j = cr929_SIL_B.BusAssignment_h.qbar; + rtb_phi_c_o = cr929_SIL_B.BusAssignment_h.qbar; } /* End of Saturate: '/Saturation2' */ @@ -15354,7 +15354,7 @@ void cr929_SIL_step(void) * Constant: '/Constant Single1' * Constant: '/Constant Single2' */ - rtb_qbarSc = rtb_phi_c_j * cr929_SIL_P.RefArea * cr929_SIL_P.CLa / + rtb_qbarSc = rtb_phi_c_o * cr929_SIL_P.RefArea * cr929_SIL_P.CLa / cr929_SIL_P.m / dy; /* Outputs for Atomic SubSystem: '/Calc_FW_Effic' */ @@ -15441,15 +15441,15 @@ void cr929_SIL_step(void) * DataStoreRead: '/Data Store Read' */ if (cr929_SIL_DW.CC.use_da2dsp) { - rtb_phi_c_j = cr929_SIL_P.Clda_mix; + rtb_phi_c_o = cr929_SIL_P.Clda_mix; } else { - rtb_phi_c_j = cr929_SIL_P.Clda; + rtb_phi_c_o = cr929_SIL_P.Clda; } /* End of Switch: '/Switch' */ /* Product: '/Product5' */ - rtb_Product5 = rtb_phi_c_j * rtb_uDLookupTable2; + rtb_Product5 = rtb_phi_c_o * rtb_uDLookupTable2; /* Saturate: '/Saturation2' */ if (cr929_SIL_B.BusAssignment_h.TAS <= 22.0F) { @@ -15512,19 +15512,19 @@ void cr929_SIL_step(void) cr929_SIL_DW.cmd2_isValid = false; if (cr929_SIL_DW.is_active_c12_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c12_cr929_autopilot = 1U; - cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_idle_f; + cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_idle_h; cr929_SIL_B.id = 0U; } else { switch (cr929_SIL_DW.is_c12_cr929_autopilot) { case cr929_SIL_IN_Linked: - cr929_SIL_B.ack_k = true; - cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_idle_f; + cr929_SIL_B.ack_db = true; + cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_idle_h; cr929_SIL_B.id = 0U; break; case cr929_SIL_IN_Linked2: - cr929_SIL_B.ack_k = false; - cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_idle_f; + cr929_SIL_B.ack_db = false; + cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_idle_h; cr929_SIL_B.id = 0U; break; @@ -15533,21 +15533,21 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_Linked; cr929_SIL_B.id = ((CommandMsg *)cr929_SIL_DW.cmd_msgDataPtr)->id; for (i = 0; i < 7; i++) { - cr929_SIL_B.params_n[i] = ((CommandMsg *) + cr929_SIL_B.params_c[i] = ((CommandMsg *) cr929_SIL_DW.cmd_msgDataPtr)->params[i]; } - cr929_SIL_B.ack_k = true; + cr929_SIL_B.ack_db = true; } else { if (cr929_SIL_sf_msg_pop_cmd2()) { cr929_SIL_DW.is_c12_cr929_autopilot = cr929_SIL_IN_Linked2; cr929_SIL_B.id = ((CommandMsg *)cr929_SIL_DW.cmd2_msgDataPtr)->id; for (i = 0; i < 7; i++) { - cr929_SIL_B.params_n[i] = ((CommandMsg *) + cr929_SIL_B.params_c[i] = ((CommandMsg *) cr929_SIL_DW.cmd2_msgDataPtr)->params[i]; } - cr929_SIL_B.ack_k = false; + cr929_SIL_B.ack_db = false; } } break; @@ -15568,12 +15568,12 @@ void cr929_SIL_step(void) } else if (cr929_SIL_DW.is_c14_C2_proc_comm == cr929_SIL_IN_idle_g) { if (cr929_SIL_sf_msg_pop_set_cur()) { cr929_SIL_DW.is_c14_C2_proc_comm = cr929_SIL_IN_process_set_cur; - rtb_out_me = *(uint16_T *)cr929_SIL_DW.set_cur_msgDataPtr + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = *(uint16_T *)cr929_SIL_DW.set_cur_msgDataPtr + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - cr929_SIL_B.WP_cur = (uint16_T)rtb_out_me; + cr929_SIL_B.WP_cur = (uint16_T)rtb_out_de; } } else { cr929_SIL_DW.is_c14_C2_proc_comm = cr929_SIL_IN_idle_g; @@ -15628,22 +15628,22 @@ void cr929_SIL_step(void) rtb_Merge1_a = 0U; /* If: '/If' */ - if (cr929_SIL_B.params_n[0] > 1.5F) { + if (cr929_SIL_B.params_c[0] > 1.5F) { /* Outputs for IfAction SubSystem: '/set_base_alt' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.base_asl = cr929_SIL_B.params_n[1]; + rtb_Merge_j.base_asl = cr929_SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/set_base_alt' */ - } else if (cr929_SIL_B.params_n[0] > 0.5F) { + } else if (cr929_SIL_B.params_c[0] > 0.5F) { /* Outputs for IfAction SubSystem: '/set_base_alt_baro' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.base_asl_baro = cr929_SIL_B.params_n[1]; + rtb_Merge_j.base_asl_baro = cr929_SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/set_base_alt_baro' */ } else { @@ -15670,7 +15670,7 @@ void cr929_SIL_step(void) * Gain: '/Gain1' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.takeoff_tht = 0.0174532924F * cr929_SIL_B.params_n[0]; + rtb_Merge_j.takeoff_tht = 0.0174532924F * cr929_SIL_B.params_c[0]; /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: * Constant: '/Constant' @@ -15691,7 +15691,7 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.dist_trans = cr929_SIL_B.params_n[1]; + rtb_Merge_j.dist_trans = cr929_SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/dist_trans' */ break; @@ -15703,7 +15703,7 @@ void cr929_SIL_step(void) /* If: '/If' incorporates: * If: '/If' */ - if (cr929_SIL_B.params_n[0] > 0.5F) { + if (cr929_SIL_B.params_c[0] > 0.5F) { /* Outputs for IfAction SubSystem: '/arm' incorporates: * ActionPort: '/Action Port' */ @@ -15795,54 +15795,54 @@ void cr929_SIL_step(void) rtb_Merge_j = rtb_Merge_a; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_j = fabsf(cr929_SIL_B.params_n[0]); - if (rtb_phi_c_j < 8.388608E+6F) { - if (rtb_phi_c_j >= 0.5F) { - rtb_phi_c_j = floorf(cr929_SIL_B.params_n[0] + 0.5F); + rtb_phi_c_o = fabsf(cr929_SIL_B.params_c[0]); + if (rtb_phi_c_o < 8.388608E+6F) { + if (rtb_phi_c_o >= 0.5F) { + rtb_phi_c_o = floorf(cr929_SIL_B.params_c[0] + 0.5F); } else { - rtb_phi_c_j = cr929_SIL_B.params_n[0] * 0.0F; + rtb_phi_c_o = cr929_SIL_B.params_c[0] * 0.0F; } } else { - rtb_phi_c_j = cr929_SIL_B.params_n[0]; + rtb_phi_c_o = cr929_SIL_B.params_c[0]; } - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } /* BusAssignment: '/Bus Assignment' incorporates: * DataTypeConversion: '/Data Type Conversion' */ - rtb_Merge_j.WP_cur = (uint16_T)(rtb_phi_c_j < 0.0F ? (int32_T) - (uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); + rtb_Merge_j.WP_cur = (uint16_T)(rtb_phi_c_o < 0.0F ? (int32_T) + (uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); /* DataTypeConversion: '/Data Type Conversion1' */ - rtb_phi_c_j = fabsf(cr929_SIL_B.params_n[1]); - if (rtb_phi_c_j < 8.388608E+6F) { - if (rtb_phi_c_j >= 0.5F) { - rtb_phi_c_j = floorf(cr929_SIL_B.params_n[1] + 0.5F); + rtb_phi_c_o = fabsf(cr929_SIL_B.params_c[1]); + if (rtb_phi_c_o < 8.388608E+6F) { + if (rtb_phi_c_o >= 0.5F) { + rtb_phi_c_o = floorf(cr929_SIL_B.params_c[1] + 0.5F); } else { - rtb_phi_c_j = cr929_SIL_B.params_n[1] * 0.0F; + rtb_phi_c_o = cr929_SIL_B.params_c[1] * 0.0F; } } else { - rtb_phi_c_j = cr929_SIL_B.params_n[1]; + rtb_phi_c_o = cr929_SIL_B.params_c[1]; } - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } /* BusAssignment: '/Bus Assignment' incorporates: * DataTypeConversion: '/Data Type Conversion1' */ - rtb_Merge_j.do_jump_cnt = (uint16_T)(rtb_phi_c_j < 0.0F ? (int32_T) - (uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); + rtb_Merge_j.do_jump_cnt = (uint16_T)(rtb_phi_c_o < 0.0F ? (int32_T) + (uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); /* End of Outputs for SubSystem: '/entry' */ } else if (rtb_Merge_a.do_jump_cnt > 1) { @@ -15853,11 +15853,11 @@ void cr929_SIL_step(void) rtb_Merge_j = rtb_Merge_a; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_j = floorf(cr929_SIL_B.params_n[0]); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = floorf(cr929_SIL_B.params_c[0]); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } /* BusAssignment: '/Bus Assignment' incorporates: @@ -15865,9 +15865,9 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' * Sum: '/subtract' */ - rtb_Merge_j.WP_cur = (uint16_T)(rtb_phi_c_j < 0.0F ? (int32_T) - (uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); + rtb_Merge_j.WP_cur = (uint16_T)(rtb_phi_c_o < 0.0F ? (int32_T) + (uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); rtb_Merge_j.do_jump_cnt = (uint16_T)(rtb_Merge_a.do_jump_cnt - 1); /* End of Outputs for SubSystem: '/count_down' */ @@ -15907,7 +15907,7 @@ void cr929_SIL_step(void) rtb_Merge1_a = 0U; /* If: '/If' */ - if (cr929_SIL_B.params_n[0] > 1.5F) { + if (cr929_SIL_B.params_c[0] > 1.5F) { /* Outputs for IfAction SubSystem: '/operation' incorporates: * ActionPort: '/Action Port' */ @@ -15920,7 +15920,7 @@ void cr929_SIL_step(void) rtb_Merge_j.standby_cmd = false; /* End of Outputs for SubSystem: '/operation' */ - } else if (cr929_SIL_B.params_n[0] > 0.5F) { + } else if (cr929_SIL_B.params_c[0] > 0.5F) { /* Outputs for IfAction SubSystem: '/xbit' incorporates: * ActionPort: '/Action Port' */ @@ -15973,29 +15973,29 @@ void cr929_SIL_step(void) */ /* Outputs for Atomic SubSystem: '/set_speed' */ /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_j = fabsf(cr929_SIL_B.params_n[0]); - if (rtb_phi_c_j < 8.388608E+6F) { - if (rtb_phi_c_j >= 0.5F) { - rtb_phi_c_j = floorf(cr929_SIL_B.params_n[0] + 0.5F); + rtb_phi_c_o = fabsf(cr929_SIL_B.params_c[0]); + if (rtb_phi_c_o < 8.388608E+6F) { + if (rtb_phi_c_o >= 0.5F) { + rtb_phi_c_o = floorf(cr929_SIL_B.params_c[0] + 0.5F); } else { - rtb_phi_c_j = cr929_SIL_B.params_n[0] * 0.0F; + rtb_phi_c_o = cr929_SIL_B.params_c[0] * 0.0F; } } else { - rtb_phi_c_j = cr929_SIL_B.params_n[0]; + rtb_phi_c_o = cr929_SIL_B.params_c[0]; } - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 256.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 256.0F); } /* SwitchCase: '/Switch Case' incorporates: * DataTypeConversion: '/Data Type Conversion' * Inport: '/In1' */ - switch (rtb_phi_c_j < 0.0F ? (int32_T)(uint8_T)-(int8_T)(uint8_T) - -rtb_phi_c_j : (int32_T)(uint8_T)rtb_phi_c_j) { + switch (rtb_phi_c_o < 0.0F ? (int32_T)(uint8_T)-(int8_T)(uint8_T) + -rtb_phi_c_o : (int32_T)(uint8_T)rtb_phi_c_o) { case 0: /* Outputs for IfAction SubSystem: '/set_as' incorporates: * ActionPort: '/Action Port' @@ -16003,13 +16003,13 @@ void cr929_SIL_step(void) /* If: '/If' incorporates: * Inport: '/In1' */ - if (cr929_SIL_B.params_n[1] > 0.0F) { + if (cr929_SIL_B.params_c[1] > 0.0F) { /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.as_c = cr929_SIL_B.params_n[1]; + rtb_Merge_j.as_c = cr929_SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/Subsystem' */ } else { @@ -16032,13 +16032,13 @@ void cr929_SIL_step(void) /* If: '/If' incorporates: * Inport: '/In1' */ - if (cr929_SIL_B.params_n[1] > 0.0F) { + if (cr929_SIL_B.params_c[1] > 0.0F) { /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.gs_c = cr929_SIL_B.params_n[1]; + rtb_Merge_j.gs_c = cr929_SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/Subsystem' */ } else { @@ -16061,14 +16061,14 @@ void cr929_SIL_step(void) /* If: '/If' incorporates: * Inport: '/In1' */ - if ((cr929_SIL_B.params_n[1] > -10.0F) && (cr929_SIL_B.params_n[1] < + if ((cr929_SIL_B.params_c[1] > -10.0F) && (cr929_SIL_B.params_c[1] < 10.0F)) { /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.hdot_c = cr929_SIL_B.params_n[1]; + rtb_Merge_j.hdot_c = cr929_SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/Subsystem' */ } else { @@ -16098,12 +16098,12 @@ void cr929_SIL_step(void) /* End of Outputs for SubSystem: '/set_speed' */ /* If: '/If' */ - if (cr929_SIL_B.params_n[2] > -0.9F) { + if (cr929_SIL_B.params_c[2] > -0.9F) { /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_j.throttle_c = cr929_SIL_B.params_n[2]; + rtb_Merge_j.throttle_c = cr929_SIL_B.params_c[2]; /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } @@ -16123,21 +16123,21 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_j = fabsf(cr929_SIL_B.params_n[0]); - if (rtb_phi_c_j < 8.388608E+6F) { - if (rtb_phi_c_j >= 0.5F) { - rtb_phi_c_j = floorf(cr929_SIL_B.params_n[0] + 0.5F); + rtb_phi_c_o = fabsf(cr929_SIL_B.params_c[0]); + if (rtb_phi_c_o < 8.388608E+6F) { + if (rtb_phi_c_o >= 0.5F) { + rtb_phi_c_o = floorf(cr929_SIL_B.params_c[0] + 0.5F); } else { - rtb_phi_c_j = cr929_SIL_B.params_n[0] * 0.0F; + rtb_phi_c_o = cr929_SIL_B.params_c[0] * 0.0F; } } else { - rtb_phi_c_j = cr929_SIL_B.params_n[0]; + rtb_phi_c_o = cr929_SIL_B.params_c[0]; } - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 256.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 256.0F); } /* SwitchCase: '/Switch Case' incorporates: @@ -16146,8 +16146,8 @@ void cr929_SIL_step(void) * Inport: '/C2_in' * Inport: '/C2_in' */ - switch (rtb_phi_c_j < 0.0F ? (int32_T)(uint8_T)-(int8_T)(uint8_T) - -rtb_phi_c_j : (int32_T)(uint8_T)rtb_phi_c_j) { + switch (rtb_phi_c_o < 0.0F ? (int32_T)(uint8_T)-(int8_T)(uint8_T) + -rtb_phi_c_o : (int32_T)(uint8_T)rtb_phi_c_o) { case 1: /* Outputs for IfAction SubSystem: '/AFCS_vert' incorporates: * ActionPort: '/Action Port' @@ -16156,29 +16156,29 @@ void cr929_SIL_step(void) rtb_Merge_j = rtb_Merge_a; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_j = fabsf(cr929_SIL_B.params_n[1]); - if (rtb_phi_c_j < 8.388608E+6F) { - if (rtb_phi_c_j >= 0.5F) { - rtb_phi_c_j = floorf(cr929_SIL_B.params_n[1] + 0.5F); + rtb_phi_c_o = fabsf(cr929_SIL_B.params_c[1]); + if (rtb_phi_c_o < 8.388608E+6F) { + if (rtb_phi_c_o >= 0.5F) { + rtb_phi_c_o = floorf(cr929_SIL_B.params_c[1] + 0.5F); } else { - rtb_phi_c_j = cr929_SIL_B.params_n[1] * 0.0F; + rtb_phi_c_o = cr929_SIL_B.params_c[1] * 0.0F; } } else { - rtb_phi_c_j = cr929_SIL_B.params_n[1]; + rtb_phi_c_o = cr929_SIL_B.params_c[1]; } - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 4.2949673E+9F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 4.2949673E+9F); } /* BusAssignment: '/Bus Assignment' incorporates: * DataTypeConversion: '/Data Type Conversion' * DataTypeConversion: '/Data Type Conversion1' */ - rtb_Merge_j.AFCS_VERT = (ENUM_AFCS_VERT)(rtb_phi_c_j < 0.0F ? - -(int32_T)(uint32_T)-rtb_phi_c_j : (int32_T)(uint32_T)rtb_phi_c_j); + rtb_Merge_j.AFCS_VERT = (ENUM_AFCS_VERT)(rtb_phi_c_o < 0.0F ? + -(int32_T)(uint32_T)-rtb_phi_c_o : (int32_T)(uint32_T)rtb_phi_c_o); /* End of Outputs for SubSystem: '/AFCS_vert' */ break; @@ -16191,29 +16191,29 @@ void cr929_SIL_step(void) rtb_Merge_j = rtb_Merge_a; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_j = fabsf(cr929_SIL_B.params_n[1]); - if (rtb_phi_c_j < 8.388608E+6F) { - if (rtb_phi_c_j >= 0.5F) { - rtb_phi_c_j = floorf(cr929_SIL_B.params_n[1] + 0.5F); + rtb_phi_c_o = fabsf(cr929_SIL_B.params_c[1]); + if (rtb_phi_c_o < 8.388608E+6F) { + if (rtb_phi_c_o >= 0.5F) { + rtb_phi_c_o = floorf(cr929_SIL_B.params_c[1] + 0.5F); } else { - rtb_phi_c_j = cr929_SIL_B.params_n[1] * 0.0F; + rtb_phi_c_o = cr929_SIL_B.params_c[1] * 0.0F; } } else { - rtb_phi_c_j = cr929_SIL_B.params_n[1]; + rtb_phi_c_o = cr929_SIL_B.params_c[1]; } - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 4.2949673E+9F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 4.2949673E+9F); } /* BusAssignment: '/Bus Assignment' incorporates: * DataTypeConversion: '/Data Type Conversion' * DataTypeConversion: '/Data Type Conversion1' */ - rtb_Merge_j.AS_SEL = (ENUM_AS_SEL)(rtb_phi_c_j < 0.0F ? -(int32_T) - (uint32_T)-rtb_phi_c_j : (int32_T)(uint32_T)rtb_phi_c_j); + rtb_Merge_j.AS_SEL = (ENUM_AS_SEL)(rtb_phi_c_o < 0.0F ? -(int32_T) + (uint32_T)-rtb_phi_c_o : (int32_T)(uint32_T)rtb_phi_c_o); /* End of Outputs for SubSystem: '/AS_SEL' */ break; @@ -16226,7 +16226,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.enable_rc = (cr929_SIL_B.params_n[1] != 0.0F); + rtb_Merge_j.enable_rc = (cr929_SIL_B.params_c[1] != 0.0F); /* End of Outputs for SubSystem: '/rc_enable' */ break; @@ -16239,29 +16239,29 @@ void cr929_SIL_step(void) rtb_Merge_j = rtb_Merge_a; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_j = fabsf(cr929_SIL_B.params_n[1]); - if (rtb_phi_c_j < 8.388608E+6F) { - if (rtb_phi_c_j >= 0.5F) { - rtb_phi_c_j = floorf(cr929_SIL_B.params_n[1] + 0.5F); + rtb_phi_c_o = fabsf(cr929_SIL_B.params_c[1]); + if (rtb_phi_c_o < 8.388608E+6F) { + if (rtb_phi_c_o >= 0.5F) { + rtb_phi_c_o = floorf(cr929_SIL_B.params_c[1] + 0.5F); } else { - rtb_phi_c_j = cr929_SIL_B.params_n[1] * 0.0F; + rtb_phi_c_o = cr929_SIL_B.params_c[1] * 0.0F; } } else { - rtb_phi_c_j = cr929_SIL_B.params_n[1]; + rtb_phi_c_o = cr929_SIL_B.params_c[1]; } - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 4.2949673E+9F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 4.2949673E+9F); } /* BusAssignment: '/Bus Assignment' incorporates: * DataTypeConversion: '/Data Type Conversion' * DataTypeConversion: '/Data Type Conversion1' */ - rtb_Merge_j.AT = (ENUM_AT)(rtb_phi_c_j < 0.0F ? (uint32_T)-(int32_T) - (uint32_T)-rtb_phi_c_j : (uint32_T)rtb_phi_c_j); + rtb_Merge_j.AT = (ENUM_AT)(rtb_phi_c_o < 0.0F ? (uint32_T)-(int32_T) + (uint32_T)-rtb_phi_c_o : (uint32_T)rtb_phi_c_o); /* End of Outputs for SubSystem: '/AT' */ break; @@ -16274,7 +16274,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.enable_rec = (cr929_SIL_B.params_n[1] != 0.0F); + rtb_Merge_j.enable_rec = (cr929_SIL_B.params_c[1] != 0.0F); /* End of Outputs for SubSystem: '/rec' */ break; @@ -16348,7 +16348,7 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* If: '/If' */ - if (cr929_SIL_B.params_n[1] > 0.5F) { + if (cr929_SIL_B.params_c[1] > 0.5F) { /* Outputs for IfAction SubSystem: '/COMAC' incorporates: * ActionPort: '/Action Port' */ @@ -16386,7 +16386,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_Arm_RUDTrimPanel = (cr929_SIL_B.params_n[1] != + rtb_Merge_j.comac_Arm_RUDTrimPanel = (cr929_SIL_B.params_c[1] != 0.0F); /* End of Outputs for SubSystem: '/Arm_RUDTrimPanel' */ @@ -16400,7 +16400,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_NoseLeft_RUDTrimPanel = (cr929_SIL_B.params_n[1] + rtb_Merge_j.comac_NoseLeft_RUDTrimPanel = (cr929_SIL_B.params_c[1] != 0.0F); /* End of Outputs for SubSystem: '/NoseLeft_RUDTrimPanel' */ @@ -16414,7 +16414,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_NoseRight_RUDTrimPanel = (cr929_SIL_B.params_n[1] + rtb_Merge_j.comac_NoseRight_RUDTrimPanel = (cr929_SIL_B.params_c[1] != 0.0F); /* End of Outputs for SubSystem: '/NoseRight_RUDTrimPanel' */ @@ -16428,7 +16428,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_Reset_RUDTrimPanel = (cr929_SIL_B.params_n[1] != + rtb_Merge_j.comac_Reset_RUDTrimPanel = (cr929_SIL_B.params_c[1] != 0.0F); /* End of Outputs for SubSystem: '/Reset_RUDTrimPanel' */ @@ -16439,7 +16439,7 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* If: '/If' */ - if (cr929_SIL_B.params_n[1] > 0.5F) { + if (cr929_SIL_B.params_c[1] > 0.5F) { /* Outputs for IfAction SubSystem: '/CP' incorporates: * ActionPort: '/Action Port' */ @@ -16488,7 +16488,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_InhibitAlphaPROT_Test = (cr929_SIL_B.params_n[1] + rtb_Merge_j.comac_InhibitAlphaPROT_Test = (cr929_SIL_B.params_c[1] != 0.0F); /* End of Outputs for SubSystem: '/InhibitAlphaPROT_Test' */ @@ -16502,7 +16502,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_RudTrimEnable_NM_Test = (cr929_SIL_B.params_n[1] + rtb_Merge_j.comac_RudTrimEnable_NM_Test = (cr929_SIL_B.params_c[1] != 0.0F); /* End of Outputs for SubSystem: '/RudTrimEnable_NM_Test' */ @@ -16516,7 +16516,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_InhibitMLA_Test = (cr929_SIL_B.params_n[1] != 0.0F); + rtb_Merge_j.comac_InhibitMLA_Test = (cr929_SIL_B.params_c[1] != 0.0F); /* End of Outputs for SubSystem: '/InhibitMLA_Test' */ break; @@ -16529,7 +16529,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_AP_Engage = (cr929_SIL_B.params_n[1] != 0.0F); + rtb_Merge_j.comac_AP_Engage = (cr929_SIL_B.params_c[1] != 0.0F); /* End of Outputs for SubSystem: '/AP_Engage' */ break; @@ -16542,7 +16542,7 @@ void cr929_SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.comac_AT_Engage = (cr929_SIL_B.params_n[1] != 0.0F); + rtb_Merge_j.comac_AT_Engage = (cr929_SIL_B.params_c[1] != 0.0F); /* End of Outputs for SubSystem: '/AT_Engage' */ break; @@ -16586,31 +16586,31 @@ void cr929_SIL_step(void) rtb_Merge_j = rtb_Merge_a; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_phi_c_j = fabsf(cr929_SIL_B.params_n[0]); - if (rtb_phi_c_j < 8.388608E+6F) { - if (rtb_phi_c_j >= 0.5F) { - rtb_phi_c_j = floorf(cr929_SIL_B.params_n[0] + 0.5F); + rtb_phi_c_o = fabsf(cr929_SIL_B.params_c[0]); + if (rtb_phi_c_o < 8.388608E+6F) { + if (rtb_phi_c_o >= 0.5F) { + rtb_phi_c_o = floorf(cr929_SIL_B.params_c[0] + 0.5F); } else { - rtb_phi_c_j = cr929_SIL_B.params_n[0] * 0.0F; + rtb_phi_c_o = cr929_SIL_B.params_c[0] * 0.0F; } } else { - rtb_phi_c_j = cr929_SIL_B.params_n[0]; + rtb_phi_c_o = cr929_SIL_B.params_c[0]; } - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } /* BusAssignment: '/Bus Assignment' incorporates: * DataTypeConversion: '/Data Type Conversion' */ - rtb_Merge_j.maneuver_cmd = (int16_T)(rtb_phi_c_j < 0.0F ? (int32_T) - (int16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(int16_T) - (uint16_T)rtb_phi_c_j); + rtb_Merge_j.maneuver_cmd = (int16_T)(rtb_phi_c_o < 0.0F ? (int32_T) + (int16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(int16_T) + (uint16_T)rtb_phi_c_o); for (i = 0; i < 6; i++) { - rtb_Merge_j.maneuver_params[i] = cr929_SIL_B.params_n[i + 1]; + rtb_Merge_j.maneuver_params[i] = cr929_SIL_B.params_c[i + 1]; } /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: @@ -16631,7 +16631,7 @@ void cr929_SIL_step(void) rtb_Merge1_a = 0U; /* If: '/If' */ - if (cr929_SIL_B.params_n[0] > 1.5F) { + if (cr929_SIL_B.params_c[0] > 1.5F) { /* Outputs for IfAction SubSystem: '/landing' incorporates: * ActionPort: '/Action Port' */ @@ -16642,7 +16642,7 @@ void cr929_SIL_step(void) rtb_Merge_j.landing_cmd = true; /* End of Outputs for SubSystem: '/landing' */ - } else if (cr929_SIL_B.params_n[0] > 0.5F) { + } else if (cr929_SIL_B.params_c[0] > 0.5F) { /* Outputs for IfAction SubSystem: '/abort_takeoff' incorporates: * ActionPort: '/Action Port' */ @@ -16681,7 +16681,7 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_j = rtb_Merge_a; - rtb_Merge_j.landing_abort_alt = cr929_SIL_B.params_n[0]; + rtb_Merge_j.landing_abort_alt = cr929_SIL_B.params_c[0]; /* End of Outputs for SubSystem: '/landing_abort_alt' */ break; @@ -16703,9 +16703,9 @@ void cr929_SIL_step(void) /* End of SwitchCase: '/Switch Case' */ /* Chart: '/proc_cmd' */ - if (cr929_SIL_B.ack_k) { - cr929_SIL_DW.ack_msgData_g.id = cr929_SIL_B.id; - cr929_SIL_DW.ack_msgData_g.rslt = rtb_Merge1_a; + if (cr929_SIL_B.ack_db) { + cr929_SIL_DW.ack_msgData_b.id = cr929_SIL_B.id; + cr929_SIL_DW.ack_msgData_b.rslt = rtb_Merge1_a; cr929_SIL_sf_msg_send_ack(); } @@ -16881,7 +16881,7 @@ void cr929_SIL_step(void) cr929_SIL_manual_arm_disarm(rtb_BusAssignment_e.armed, rtb_BusAssignment_e.rc.pitch_cmd, rtb_BusAssignment_e.rc.roll_cmd, rtb_BusAssignment_e.rc.yaw_cmd, rtb_BusAssignment_e.rc.throttle_cmd, - &cr929_SIL_B.armed_out_l, &cr929_SIL_DW.sf_manual_arm_disarm); + &cr929_SIL_B.armed_out_o, &cr929_SIL_DW.sf_manual_arm_disarm); /* BusAssignment: '/Bus Assignment' incorporates: * Constant: '/Constant1' @@ -16938,7 +16938,7 @@ void cr929_SIL_step(void) */ cr929_SIL_B.Merge.gear_up = rtb_BusAssignment_e.rc.gear_up; cr929_SIL_B.Merge.brake_c = rtb_BusAssignment_e.rc.brake; - cr929_SIL_B.Merge.armed = cr929_SIL_B.armed_out_l; + cr929_SIL_B.Merge.armed = cr929_SIL_B.armed_out_o; cr929_SIL_B.Merge.use_da2dsp = false; /* End of Outputs for SubSystem: '/xbit' */ @@ -16955,7 +16955,7 @@ void cr929_SIL_step(void) */ cr929_SIL_DW.is_active_c69_cr929_autopilot = 0U; cr929_SIL_DW.is_c69_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - cr929_SIL_DW.temporalCounter_i1_gu = 0U; + cr929_SIL_DW.temporalCounter_i1_nj = 0U; cr929_SIL_DW.is_active_c43_cr929_autopilot = 0U; cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -16980,71 +16980,71 @@ void cr929_SIL_step(void) if (cr929_SIL_DW.is_active_c69_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c69_cr929_autopilot = 1U; cr929_SIL_DW.is_c69_cr929_autopilot = cr929_SIL_IN_Standby; - rtb_mode_g = ENUM_mode_STANDBY; + rtb_mode_n = ENUM_mode_STANDBY; rtb_AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_OFF; rtb_CSAS_roll = ENUM_CSAS_ROLL_OFF; rtb_Merge_d = ENUM_CSAS_YAW_OFF; rtb_AT = ENUM_AT_OFF; rtb_landed_state_out = ENUM_LANDED_STATE_ON_GROUND; - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = 0.0F; cr929_SIL_B.recovery = false; rtb_standby_cmd = true; } else { switch (cr929_SIL_DW.is_c69_cr929_autopilot) { case cr929_SIL_IN_Emergency: - rtb_mode_g = ENUM_mode_AUTO_LOITER; + rtb_mode_n = ENUM_mode_AUTO_LOITER; rtb_AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; rtb_CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; rtb_Merge_d = ENUM_CSAS_YAW_DAMPING; rtb_AT = ENUM_AT_AS; rtb_landed_state_out = ENUM_LANDED_STATE_IN_AIR; - rtb_phi_c_j = -0.3F; + rtb_phi_c_o = -0.3F; rtb_standby_cmd = true; cr929_SIL_B.recovery = (rtb_BusAssignment_e.rc.chan_raw[11] > 1500); break; case cr929_SIL_IN_Manual: - rtb_mode_g = ENUM_mode_MANUAL; + rtb_mode_n = ENUM_mode_MANUAL; rtb_AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_COMMAND; rtb_CSAS_roll = ENUM_CSAS_ROLL_COMMAND; rtb_Merge_d = ENUM_CSAS_YAW_COMMAND; rtb_AT = ENUM_AT_COMMAND; rtb_landed_state_out = ENUM_LANDED_STATE_IN_AIR; - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = 0.0F; rtb_standby_cmd = true; cr929_SIL_B.recovery = (rtb_BusAssignment_e.rc.chan_raw[11] > 1500); break; case cr929_SIL_IN_Standby: - rtb_mode_g = ENUM_mode_STANDBY; + rtb_mode_n = ENUM_mode_STANDBY; rtb_AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_OFF; rtb_CSAS_roll = ENUM_CSAS_ROLL_OFF; rtb_Merge_d = ENUM_CSAS_YAW_OFF; rtb_AT = ENUM_AT_OFF; rtb_landed_state_out = ENUM_LANDED_STATE_ON_GROUND; - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = 0.0F; rtb_standby_cmd = true; if ((cr929_SIL_B.BusAssignment_h.IAS > cr929_SIL_P.min_AS) && rtb_ResetControlLaw_out && (rtb_BusAssignment_e.boot_time > 300U) && (rtb_BusAssignment_e.boot_time < 400U)) { cr929_SIL_DW.is_c69_cr929_autopilot = cr929_SIL_IN_Emergency; - rtb_mode_g = ENUM_mode_AUTO_LOITER; + rtb_mode_n = ENUM_mode_AUTO_LOITER; rtb_AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; rtb_CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; rtb_Merge_d = ENUM_CSAS_YAW_DAMPING; rtb_AT = ENUM_AT_AS; rtb_landed_state_out = ENUM_LANDED_STATE_IN_AIR; - rtb_phi_c_j = -0.3F; + rtb_phi_c_o = -0.3F; cr929_SIL_B.recovery = false; } else if (rtb_ResetControlLaw_out && (rtb_BusAssignment_e.boot_time > 300U) && (rtb_BusAssignment_e.boot_time < 400U)) { cr929_SIL_DW.is_c69_cr929_autopilot = cr929_SIL_IN_Manual; - rtb_mode_g = ENUM_mode_MANUAL; + rtb_mode_n = ENUM_mode_MANUAL; rtb_AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_COMMAND; rtb_CSAS_roll = ENUM_CSAS_ROLL_COMMAND; @@ -17055,7 +17055,7 @@ void cr929_SIL_step(void) } else { if (rtb_BusAssignment_e.boot_time > 400U) { cr929_SIL_DW.is_c69_cr929_autopilot = cr929_SIL_IN_Standby1; - rtb_mode_g = ENUM_mode_STANDBY; + rtb_mode_n = ENUM_mode_STANDBY; rtb_AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_OFF; rtb_CSAS_roll = ENUM_CSAS_ROLL_OFF; @@ -17069,14 +17069,14 @@ void cr929_SIL_step(void) break; default: - rtb_mode_g = ENUM_mode_STANDBY; + rtb_mode_n = ENUM_mode_STANDBY; rtb_AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_OFF; rtb_CSAS_roll = ENUM_CSAS_ROLL_OFF; rtb_Merge_d = ENUM_CSAS_YAW_OFF; rtb_AT = ENUM_AT_OFF; rtb_landed_state_out = ENUM_LANDED_STATE_ON_GROUND; - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = 0.0F; rtb_standby_cmd = false; break; } @@ -17085,95 +17085,95 @@ void cr929_SIL_step(void) /* End of Chart: '/standby_emergency' */ /* Chart: '/manual_arm_disarm' */ - if (cr929_SIL_DW.temporalCounter_i1_gu < 1023U) { - cr929_SIL_DW.temporalCounter_i1_gu++; + if (cr929_SIL_DW.temporalCounter_i1_nj < 1023U) { + cr929_SIL_DW.temporalCounter_i1_nj++; } if (cr929_SIL_DW.is_active_c43_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c43_cr929_autopilot = 1U; - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_f; - cr929_SIL_B.standby_k = true; - cr929_SIL_B.xbit_p = false; + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_h; + cr929_SIL_B.standby_p = true; + cr929_SIL_B.xbit_h = false; } else { switch (cr929_SIL_DW.is_c43_cr929_autopilot) { - case cr929_SIL_IN_check_armed_o: - if (cr929_SIL_DW.temporalCounter_i1_gu >= 980U) { - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_xbit_o; - cr929_SIL_B.standby_k = true; - cr929_SIL_B.xbit_p = true; + case cr929_SIL_IN_check_armed_f: + if (cr929_SIL_DW.temporalCounter_i1_nj >= 980U) { + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_xbit_b; + cr929_SIL_B.standby_p = true; + cr929_SIL_B.xbit_h = true; } else { if ((rtb_BusAssignment_e.rc.pitch_cmd < 0.9F) || (rtb_BusAssignment_e.rc.roll_cmd < 0.9F) || (rtb_BusAssignment_e.rc.yaw_cmd > -0.9F) || (rtb_BusAssignment_e.rc.throttle_cmd > 0.1F)) { - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_f; - cr929_SIL_B.standby_k = true; - cr929_SIL_B.xbit_p = false; + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_h; + cr929_SIL_B.standby_p = true; + cr929_SIL_B.xbit_h = false; } } break; - case cr929_SIL_IN_check_disarmed_d: - if (cr929_SIL_DW.temporalCounter_i1_gu >= 980U) { - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_operational_d; - cr929_SIL_B.standby_k = false; - cr929_SIL_B.xbit_p = false; + case cr929_SIL_IN_check_disarmed_p: + if (cr929_SIL_DW.temporalCounter_i1_nj >= 980U) { + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_operational_n; + cr929_SIL_B.standby_p = false; + cr929_SIL_B.xbit_h = false; } else { if ((rtb_BusAssignment_e.rc.pitch_cmd < 0.9F) || (rtb_BusAssignment_e.rc.roll_cmd > -0.9F) || (rtb_BusAssignment_e.rc.yaw_cmd < 0.9F) || (rtb_BusAssignment_e.rc.throttle_cmd > 0.1F)) { - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_f; - cr929_SIL_B.standby_k = true; - cr929_SIL_B.xbit_p = false; + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_h; + cr929_SIL_B.standby_p = true; + cr929_SIL_B.xbit_h = false; } } break; - case cr929_SIL_IN_idle_f: - cr929_SIL_B.standby_k = true; - cr929_SIL_B.xbit_p = false; + case cr929_SIL_IN_idle_h: + cr929_SIL_B.standby_p = true; + cr929_SIL_B.xbit_h = false; if ((rtb_BusAssignment_e.rc.pitch_cmd > 0.9F) && (rtb_BusAssignment_e.rc.roll_cmd > 0.9F) && (rtb_BusAssignment_e.rc.yaw_cmd < -0.9F) && (rtb_BusAssignment_e.rc.throttle_cmd < 0.1F)) { - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_check_armed_o; - cr929_SIL_DW.temporalCounter_i1_gu = 0U; + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_check_armed_f; + cr929_SIL_DW.temporalCounter_i1_nj = 0U; } else { if ((rtb_BusAssignment_e.rc.pitch_cmd > 0.9F) && (rtb_BusAssignment_e.rc.roll_cmd < -0.9F) && (rtb_BusAssignment_e.rc.yaw_cmd > 0.9F) && (rtb_BusAssignment_e.rc.throttle_cmd < 0.1F)) { cr929_SIL_DW.is_c43_cr929_autopilot = - cr929_SIL_IN_check_disarmed_d; - cr929_SIL_DW.temporalCounter_i1_gu = 0U; + cr929_SIL_IN_check_disarmed_p; + cr929_SIL_DW.temporalCounter_i1_nj = 0U; } } break; - case cr929_SIL_IN_operational_d: - cr929_SIL_B.standby_k = false; - cr929_SIL_B.xbit_p = false; + case cr929_SIL_IN_operational_n: + cr929_SIL_B.standby_p = false; + cr929_SIL_B.xbit_h = false; if ((rtb_BusAssignment_e.rc.pitch_cmd < 0.9F) || (rtb_BusAssignment_e.rc.roll_cmd > -0.9F) || (rtb_BusAssignment_e.rc.yaw_cmd < 0.9F) || (rtb_BusAssignment_e.rc.throttle_cmd > 0.1F)) { - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_f; - cr929_SIL_B.standby_k = true; - cr929_SIL_B.xbit_p = false; + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_h; + cr929_SIL_B.standby_p = true; + cr929_SIL_B.xbit_h = false; } break; default: - cr929_SIL_B.standby_k = true; - cr929_SIL_B.xbit_p = true; + cr929_SIL_B.standby_p = true; + cr929_SIL_B.xbit_h = true; if ((rtb_BusAssignment_e.rc.pitch_cmd < 0.9F) || (rtb_BusAssignment_e.rc.roll_cmd < 0.9F) || (rtb_BusAssignment_e.rc.yaw_cmd > -0.9F) || (rtb_BusAssignment_e.rc.throttle_cmd > 0.1F)) { - cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_f; - cr929_SIL_B.standby_k = true; - cr929_SIL_B.xbit_p = false; + cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_idle_h; + cr929_SIL_B.standby_p = true; + cr929_SIL_B.xbit_h = false; } break; } @@ -17218,7 +17218,7 @@ void cr929_SIL_step(void) /* End of Saturate: '/Saturation' */ /* Chart: '/pos_sel' */ - cr929_SIL_pos_sel(rtb_BusAssignment_e.rc.chan_raw[9], &rtb_pos_out_l); + cr929_SIL_pos_sel(rtb_BusAssignment_e.rc.chan_raw[9], &rtb_pos_out_m); /* BusAssignment: '/Bus Assignment' incorporates: * Constant: '/Constant' @@ -17231,7 +17231,7 @@ void cr929_SIL_step(void) * Lookup_n-D: '/1-D Lookup Table' */ cr929_SIL_B.Merge = rtb_BusAssignment_e; - cr929_SIL_B.Merge.mode = rtb_mode_g; + cr929_SIL_B.Merge.mode = rtb_mode_n; cr929_SIL_B.Merge.armed = rtb_standby_cmd; cr929_SIL_B.Merge.state = ENUM_SystemState_UNINIT; cr929_SIL_B.Merge.landed_state = rtb_landed_state_out; @@ -17243,13 +17243,13 @@ void cr929_SIL_step(void) cr929_SIL_B.Merge.AT = rtb_AT; cr929_SIL_B.Merge.hdot_c = 0.0F; cr929_SIL_B.Merge.tht_c = 0.0F; - cr929_SIL_B.Merge.phi_c = rtb_phi_c_j; + cr929_SIL_B.Merge.phi_c = rtb_phi_c_o; cr929_SIL_B.Merge.parachute_c = cr929_SIL_B.recovery; cr929_SIL_B.Merge.use_mission_traj = true; cr929_SIL_B.Merge.use_mix = true; cr929_SIL_B.Merge.vtol_state = ENUM_VTOL_STATE_FW; - cr929_SIL_B.Merge.standby_cmd = cr929_SIL_B.standby_k; - cr929_SIL_B.Merge.xbit_cmd = cr929_SIL_B.xbit_p; + cr929_SIL_B.Merge.standby_cmd = cr929_SIL_B.standby_p; + cr929_SIL_B.Merge.xbit_cmd = cr929_SIL_B.xbit_h; cr929_SIL_B.Merge.gear_up = false; cr929_SIL_B.Merge.steer_c = cr929_SIL_P.max_steer * rtb_BusAssignment_e.rc.yaw_cmd; @@ -17320,7 +17320,7 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' incorporates: * Constant: '/Constant Single25' */ - cr929_SIL_B.Merge.flap_lever = rtb_pos_out_l; + cr929_SIL_B.Merge.flap_lever = rtb_pos_out_m; cr929_SIL_B.Merge.as_c = cr929_SIL_P.CruiseSpeed; /* End of Outputs for SubSystem: '/standby' */ @@ -17615,9 +17615,9 @@ void cr929_SIL_step(void) /* Chart: '/Chart' */ if (cr929_SIL_DW.is_active_c13_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c13_cr929_autopilot = 1U; - cr929_SIL_B.landed_state_out_p = + cr929_SIL_B.landed_state_out_b = cr929_SIL_B.BusAssignment.landed_state; - cr929_SIL_B.WP_out_b = cr929_SIL_B.BusAssignment.WP_cur; + cr929_SIL_B.WP_out_c = cr929_SIL_B.BusAssignment.WP_cur; } /* End of Chart: '/Chart' */ @@ -17625,8 +17625,8 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_cc = cr929_SIL_B.BusAssignment; rtb_Merge_cc.mode = ENUM_mode_AUTO_LOITER; - rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state_out_p; - rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_b; + rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state_out_b; + rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_c; rtb_Merge_cc.use_mission_traj = true; /* End of Outputs for SubSystem: '/halt' */ @@ -17675,12 +17675,12 @@ void cr929_SIL_step(void) /* End of Outputs for SubSystem: '/get_WP' */ while (cr929_SIL_B.is_mission) { - rtb_out_me = cr929_SIL_B.cur_np + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = cr929_SIL_B.cur_np + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - cr929_SIL_B.cur_np = (uint16_T)rtb_out_me; + cr929_SIL_B.cur_np = (uint16_T)rtb_out_de; /* Outputs for Function Call SubSystem: '/get_WP' */ cr929_SIL_get_WP(cr929_SIL_B.cur_np, &cr929_SIL_B.is_mission, @@ -17716,12 +17716,12 @@ void cr929_SIL_step(void) } cr929_SIL_sf_msg_send_cmd(); - rtb_out_me = cr929_SIL_B.cur_np + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = cr929_SIL_B.cur_np + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - cr929_SIL_B.cur_np = (uint16_T)rtb_out_me; + cr929_SIL_B.cur_np = (uint16_T)rtb_out_de; /* Outputs for Function Call SubSystem: '/get_WP' */ cr929_SIL_get_WP(cr929_SIL_B.cur_np, &cr929_SIL_B.is_mission, @@ -17736,12 +17736,12 @@ void cr929_SIL_step(void) } cr929_SIL_sf_msg_send_cmd(); - rtb_out_me = cr929_SIL_B.cur_np + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = cr929_SIL_B.cur_np + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - cr929_SIL_B.cur_np = (uint16_T)rtb_out_me; + cr929_SIL_B.cur_np = (uint16_T)rtb_out_de; /* Outputs for Function Call SubSystem: '/get_WP' */ cr929_SIL_get_WP(cr929_SIL_B.cur_np, &cr929_SIL_B.is_mission, @@ -17763,12 +17763,12 @@ void cr929_SIL_step(void) /* End of Outputs for SubSystem: '/get_WP' */ while (cr929_SIL_B.is_mission) { - rtb_out_me = cr929_SIL_B.cur_np + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = cr929_SIL_B.cur_np + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - cr929_SIL_B.cur_np = (uint16_T)rtb_out_me; + cr929_SIL_B.cur_np = (uint16_T)rtb_out_de; /* Outputs for Function Call SubSystem: '/get_WP' */ cr929_SIL_get_WP(cr929_SIL_B.cur_np, &cr929_SIL_B.is_mission, @@ -17851,7 +17851,7 @@ void cr929_SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/takeoff_task' */ - cr929_SIL_DW.temporalCounter_i1_mg = 0U; + cr929_SIL_DW.temporalCounter_i1_dr = 0U; cr929_SIL_DW.is_active_c17_cr929_autopilot = 0U; cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -17874,8 +17874,8 @@ void cr929_SIL_step(void) * Constant: '/Constant Single60' * Constant: '/Constant' */ - if (cr929_SIL_DW.temporalCounter_i1_mg < 2047U) { - cr929_SIL_DW.temporalCounter_i1_mg++; + if (cr929_SIL_DW.temporalCounter_i1_dr < 2047U) { + cr929_SIL_DW.temporalCounter_i1_dr++; } if (cr929_SIL_DW.is_active_c17_cr929_autopilot == 0U) { @@ -17887,21 +17887,21 @@ void cr929_SIL_step(void) guard2 = false; switch (cr929_SIL_DW.is_c17_cr929_autopilot) { case cr929_SIL_IN_AbortTakeOff: - cr929_SIL_B.AT_h = ENUM_AT_OFF; + cr929_SIL_B.AT_f = ENUM_AT_OFF; if (cr929_SIL_B.UnitDelay.v_g < 1.0F) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_Stop; - cr929_SIL_B.AFCS_LAT_m = ENUM_AFCS_LAT_OFF; - cr929_SIL_B.CSAS_yaw_m = ENUM_CSAS_YAW_OFF; - cr929_SIL_B.CSAS_pitch_b = ENUM_CSAS_PITCH_OFF; - cr929_SIL_B.CSAS_roll_h = ENUM_CSAS_ROLL_OFF; - cr929_SIL_B.brake_c_k = true; + cr929_SIL_B.AFCS_LAT_f = ENUM_AFCS_LAT_OFF; + cr929_SIL_B.CSAS_yaw_o = ENUM_CSAS_YAW_OFF; + cr929_SIL_B.CSAS_pitch_p = ENUM_CSAS_PITCH_OFF; + cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_OFF; + cr929_SIL_B.brake_c_c = true; } break; case cr929_SIL_IN_Acc_Taxi_High: - cr929_SIL_B.CSAS_pitch_b = ENUM_CSAS_PITCH_THT_CTRL; - cr929_SIL_B.CSAS_roll_h = ENUM_CSAS_ROLL_ROLL_CTRL; - cr929_SIL_B.phi_c_g = 0.0F; + cr929_SIL_B.CSAS_pitch_p = ENUM_CSAS_PITCH_THT_CTRL; + cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_ROLL_CTRL; + cr929_SIL_B.phi_c_o = 0.0F; if (cr929_SIL_B.UnitDelay.v_g > cr929_SIL_P.V1) { if (cr929_SIL_P.V1 > cr929_SIL_P.max_GS) { guard1 = true; @@ -17929,16 +17929,16 @@ void cr929_SIL_step(void) (cr929_SIL_B.UnitDelay.horiz_offset < -4.0F)) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_AbortTakeOff; - cr929_SIL_B.AT_h = ENUM_AT_OFF; - cr929_SIL_B.brake_c_k = true; + cr929_SIL_B.AT_f = ENUM_AT_OFF; + cr929_SIL_B.brake_c_c = true; } else { if (cr929_SIL_B.UnitDelay.v_g > 0.8F * cr929_SIL_P.V1) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_Acc_Taxi_High; - cr929_SIL_B.CSAS_pitch_b = ENUM_CSAS_PITCH_THT_CTRL; + cr929_SIL_B.CSAS_pitch_p = ENUM_CSAS_PITCH_THT_CTRL; cr929_SIL_B.tht_c = cr929_SIL_DW.tht0; - cr929_SIL_B.CSAS_roll_h = ENUM_CSAS_ROLL_ROLL_CTRL; - cr929_SIL_B.phi_c_g = 0.0F; + cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_ROLL_CTRL; + cr929_SIL_B.phi_c_o = 0.0F; } } break; @@ -17947,34 +17947,34 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_LiftUp: - cr929_SIL_B.landed_state_l = ENUM_LANDED_STATE_TAKEOFF; + cr929_SIL_B.landed_state_d = ENUM_LANDED_STATE_TAKEOFF; if (cr929_SIL_B.UnitDelay.rel_alt > cr929_SIL_P.TakeOffAlt) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_ReachSafeAltitude; - cr929_SIL_B.landed_state_l = ENUM_LANDED_STATE_IN_AIR; + cr929_SIL_B.landed_state_d = ENUM_LANDED_STATE_IN_AIR; } break; case cr929_SIL_IN_ReachCruiseSpeed: - cr929_SIL_B.mode_g = ENUM_mode_AUTO_MISSION; - cr929_SIL_B.AT_h = ENUM_AT_AS; - if (cr929_SIL_DW.temporalCounter_i1_mg >= 980U) { + cr929_SIL_B.mode_p = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.AT_f = ENUM_AT_AS; + if (cr929_SIL_DW.temporalCounter_i1_dr >= 980U) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_Done; - rtb_out_me = cr929_SIL_B.WP_out_g + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = cr929_SIL_B.WP_out_a + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - cr929_SIL_B.WP_out_g = (uint16_T)rtb_out_me; + cr929_SIL_B.WP_out_a = (uint16_T)rtb_out_de; } else { - cr929_SIL_B.CSAS_yaw_m = + cr929_SIL_B.CSAS_yaw_o = cr929_SIL_B.BusAssignment_g.CSAS_yaw; - cr929_SIL_B.WP_out_g = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.WP_out_a = cr929_SIL_B.BusAssignment_g.WP_cur; } break; case cr929_SIL_IN_ReachSafeAltitude: - cr929_SIL_B.landed_state_l = ENUM_LANDED_STATE_IN_AIR; + cr929_SIL_B.landed_state_d = ENUM_LANDED_STATE_IN_AIR; if (cr929_SIL_B.BusAssignment_h.IAS > cr929_SIL_P.min_AS) { if (cr929_SIL_P.auto_gear_updown != 0.0F) { cr929_SIL_B.gear_up_c = true; @@ -17982,29 +17982,29 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_ReachSafeSpeed; - cr929_SIL_B.AFCS_VERT_b = ENUM_AFCS_VERT_VNAV2THT; - cr929_SIL_B.AFCS_LAT_m = ENUM_AFCS_LAT_LNAV2PHI; - cr929_SIL_B.CSAS_yaw_m = ENUM_CSAS_YAW_DAMPING; + cr929_SIL_B.AFCS_VERT_p = ENUM_AFCS_VERT_VNAV2THT; + cr929_SIL_B.AFCS_LAT_f = ENUM_AFCS_LAT_LNAV2PHI; + cr929_SIL_B.CSAS_yaw_o = ENUM_CSAS_YAW_DAMPING; } break; case cr929_SIL_IN_ReachSafeSpeed: - cr929_SIL_B.AFCS_VERT_b = ENUM_AFCS_VERT_VNAV2THT; - cr929_SIL_B.AFCS_LAT_m = ENUM_AFCS_LAT_LNAV2PHI; + cr929_SIL_B.AFCS_VERT_p = ENUM_AFCS_VERT_VNAV2THT; + cr929_SIL_B.AFCS_LAT_f = ENUM_AFCS_LAT_LNAV2PHI; if ((cr929_SIL_B.BusAssignment_h.IAS > cr929_SIL_P.CruiseSpeed - - 2.0F) || (cr929_SIL_B.WP_out_g != + - 2.0F) || (cr929_SIL_B.WP_out_a != cr929_SIL_B.BusAssignment_g.WP_cur)) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_ReachCruiseSpeed; - cr929_SIL_DW.temporalCounter_i1_mg = 0U; - cr929_SIL_B.mode_g = ENUM_mode_AUTO_MISSION; - cr929_SIL_B.AT_h = ENUM_AT_AS; - cr929_SIL_B.as_c_m = cr929_SIL_P.CruiseSpeed; - cr929_SIL_B.WP_out_g = cr929_SIL_B.BusAssignment_g.WP_cur; - cr929_SIL_B.CSAS_yaw_m = + cr929_SIL_DW.temporalCounter_i1_dr = 0U; + cr929_SIL_B.mode_p = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.AT_f = ENUM_AT_AS; + cr929_SIL_B.as_c_g = cr929_SIL_P.CruiseSpeed; + cr929_SIL_B.WP_out_a = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.CSAS_yaw_o = cr929_SIL_B.BusAssignment_g.CSAS_yaw; } else { - cr929_SIL_B.CSAS_yaw_m = + cr929_SIL_B.CSAS_yaw_o = cr929_SIL_B.BusAssignment_g.CSAS_yaw; } break; @@ -18016,31 +18016,31 @@ void cr929_SIL_step(void) (cr929_SIL_B.UnitDelay.rel_alt > cr929_SIL_P.TakeOffAlt)) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_LiftUp; - cr929_SIL_B.landed_state_l = ENUM_LANDED_STATE_TAKEOFF; + cr929_SIL_B.landed_state_d = ENUM_LANDED_STATE_TAKEOFF; } else { - if ((cr929_SIL_DW.temporalCounter_i1_mg >= 1633U) || + if ((cr929_SIL_DW.temporalCounter_i1_dr >= 1633U) || (cr929_SIL_B.BusAssignment_g.rc.throttle_cmd < 0.25F)) { cr929_SIL_B.tht_c = cr929_SIL_DW.tht0; cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_AbortTakeOff; - cr929_SIL_B.AT_h = ENUM_AT_OFF; - cr929_SIL_B.brake_c_k = true; + cr929_SIL_B.AT_f = ENUM_AT_OFF; + cr929_SIL_B.brake_c_c = true; } } break; case cr929_SIL_IN_StateBy: - cr929_SIL_B.mode_g = ENUM_mode_AUTO_READY; + cr929_SIL_B.mode_p = ENUM_mode_AUTO_READY; cr929_SIL_B.state = ENUM_SystemState_STANDBY; - cr929_SIL_B.landed_state_l = ENUM_LANDED_STATE_ON_GROUND; + cr929_SIL_B.landed_state_d = ENUM_LANDED_STATE_ON_GROUND; cr929_SIL_B.vtol_state = ENUM_VTOL_STATE_FW; - cr929_SIL_B.use_mission_traj_m = true; - cr929_SIL_B.AFCS_VERT_b = ENUM_AFCS_VERT_OFF; - cr929_SIL_B.AFCS_LAT_m = ENUM_AFCS_LAT_OFF; - cr929_SIL_B.CSAS_roll_h = ENUM_CSAS_ROLL_OFF; - cr929_SIL_B.CSAS_pitch_b = ENUM_CSAS_PITCH_COMMAND; - cr929_SIL_B.AT_h = ENUM_AT_OFF; - cr929_SIL_B.phi_c_g = 0.0F; + cr929_SIL_B.use_mission_traj_c = true; + cr929_SIL_B.AFCS_VERT_p = ENUM_AFCS_VERT_OFF; + cr929_SIL_B.AFCS_LAT_f = ENUM_AFCS_LAT_OFF; + cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_OFF; + cr929_SIL_B.CSAS_pitch_p = ENUM_CSAS_PITCH_COMMAND; + cr929_SIL_B.AT_f = ENUM_AT_OFF; + cr929_SIL_B.phi_c_o = 0.0F; if ((cr929_SIL_B.BusAssignment_g.rc.throttle_cmd > 0.5F) && cr929_SIL_B.BusAssignment_g.takeoff_cmd && (cr929_SIL_B.BusAssignment_h.satnum >= 9) && @@ -18051,25 +18051,25 @@ void cr929_SIL_step(void) cr929_SIL_B.takeoff_cmd_out = false; cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_Taxi; cr929_SIL_B.state = ENUM_SystemState_ACTIVE; - cr929_SIL_B.AFCS_LAT_m = ENUM_AFCS_LAT_LNAV2PSIDOT; - cr929_SIL_B.CSAS_yaw_m = ENUM_CSAS_YAW_PSIDOT_CTRL; - cr929_SIL_B.AT_h = ENUM_AT_GS; - cr929_SIL_B.gs_c_k = cr929_SIL_P.TaxiSpeed; - cr929_SIL_B.brake_c_k = false; + cr929_SIL_B.AFCS_LAT_f = ENUM_AFCS_LAT_LNAV2PSIDOT; + cr929_SIL_B.CSAS_yaw_o = ENUM_CSAS_YAW_PSIDOT_CTRL; + cr929_SIL_B.AT_f = ENUM_AT_GS; + cr929_SIL_B.gs_c_g = cr929_SIL_P.TaxiSpeed; + cr929_SIL_B.brake_c_c = false; cr929_SIL_DW.tht0 = cr929_SIL_B.BusAssignment_h.tht; } break; case cr929_SIL_IN_Stop: - cr929_SIL_B.AFCS_LAT_m = ENUM_AFCS_LAT_OFF; - cr929_SIL_B.CSAS_pitch_b = ENUM_CSAS_PITCH_OFF; - cr929_SIL_B.CSAS_roll_h = ENUM_CSAS_ROLL_OFF; + cr929_SIL_B.AFCS_LAT_f = ENUM_AFCS_LAT_OFF; + cr929_SIL_B.CSAS_pitch_p = ENUM_CSAS_PITCH_OFF; + cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_OFF; break; case cr929_SIL_IN_Taxi: cr929_SIL_B.state = ENUM_SystemState_ACTIVE; - cr929_SIL_B.AFCS_LAT_m = ENUM_AFCS_LAT_LNAV2PSIDOT; - cr929_SIL_B.AT_h = ENUM_AT_GS; + cr929_SIL_B.AFCS_LAT_f = ENUM_AFCS_LAT_LNAV2PSIDOT; + cr929_SIL_B.AT_f = ENUM_AT_GS; if (cr929_SIL_B.BusAssignment_g.rc.throttle_cmd < 0.25F) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_StateBy; cr929_SIL_enter_atomic_StateBy(); @@ -18078,22 +18078,22 @@ void cr929_SIL_step(void) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_ThrottleUp; - cr929_SIL_B.mode_g = ENUM_mode_AUTO_TAKEOFF; - cr929_SIL_B.AT_h = ENUM_AT_COMMAND; - cr929_SIL_B.throttle_c_out_m = + cr929_SIL_B.mode_p = ENUM_mode_AUTO_TAKEOFF; + cr929_SIL_B.AT_f = ENUM_AT_COMMAND; + cr929_SIL_B.throttle_c_out_c = cr929_SIL_B.BusAssignment_g.throttle_c; } } break; default: - cr929_SIL_B.mode_g = ENUM_mode_AUTO_TAKEOFF; - cr929_SIL_B.AT_h = ENUM_AT_COMMAND; - if (cr929_SIL_B.throttle_c_out_m > cr929_SIL_P.TakeOffThrottle) + cr929_SIL_B.mode_p = ENUM_mode_AUTO_TAKEOFF; + cr929_SIL_B.AT_f = ENUM_AT_COMMAND; + if (cr929_SIL_B.throttle_c_out_c > cr929_SIL_P.TakeOffThrottle) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_Acc_Taxi_Low; - cr929_SIL_B.throttle_c_out_m = cr929_SIL_P.TakeOffThrottle; + cr929_SIL_B.throttle_c_out_c = cr929_SIL_P.TakeOffThrottle; } else if ((cr929_SIL_B.BusAssignment_g.rc.throttle_cmd < 0.25F) || (-cr929_SIL_B.UnitDelay.dist_offset > cr929_SIL_P.max_taxi) || @@ -18101,10 +18101,10 @@ void cr929_SIL_step(void) (cr929_SIL_B.UnitDelay.horiz_offset < -4.0F)) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_AbortTakeOff; - cr929_SIL_B.AT_h = ENUM_AT_OFF; - cr929_SIL_B.brake_c_k = true; + cr929_SIL_B.AT_f = ENUM_AT_OFF; + cr929_SIL_B.brake_c_c = true; } else { - cr929_SIL_B.throttle_c_out_m += cr929_SIL_P.ThrottleRate * + cr929_SIL_B.throttle_c_out_c += cr929_SIL_P.ThrottleRate * 0.003062F; } break; @@ -18113,13 +18113,13 @@ void cr929_SIL_step(void) if (guard2) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_AbortTakeOff; - cr929_SIL_B.AT_h = ENUM_AT_OFF; - cr929_SIL_B.brake_c_k = true; + cr929_SIL_B.AT_f = ENUM_AT_OFF; + cr929_SIL_B.brake_c_c = true; } if (guard1) { cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_RollingUp; - cr929_SIL_DW.temporalCounter_i1_mg = 0U; + cr929_SIL_DW.temporalCounter_i1_dr = 0U; cr929_SIL_B.tht_c = cr929_SIL_B.BusAssignment_g.takeoff_tht; } } @@ -18128,25 +18128,25 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_cc = cr929_SIL_B.BusAssignment_g; - rtb_Merge_cc.mode = cr929_SIL_B.mode_g; + rtb_Merge_cc.mode = cr929_SIL_B.mode_p; rtb_Merge_cc.state = cr929_SIL_B.state; - rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state_l; + rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state_d; rtb_Merge_cc.vtol_state = cr929_SIL_B.vtol_state; - rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_g; - rtb_Merge_cc.use_mission_traj = cr929_SIL_B.use_mission_traj_m; + rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_a; + rtb_Merge_cc.use_mission_traj = cr929_SIL_B.use_mission_traj_c; rtb_Merge_cc.home = cr929_SIL_B.home; - rtb_Merge_cc.AFCS_VERT = cr929_SIL_B.AFCS_VERT_b; - rtb_Merge_cc.AFCS_LAT = cr929_SIL_B.AFCS_LAT_m; - rtb_Merge_cc.CSAS_pitch = cr929_SIL_B.CSAS_pitch_b; - rtb_Merge_cc.CSAS_roll = cr929_SIL_B.CSAS_roll_h; - rtb_Merge_cc.CSAS_yaw = cr929_SIL_B.CSAS_yaw_m; - rtb_Merge_cc.AT = cr929_SIL_B.AT_h; - rtb_Merge_cc.throttle_c = cr929_SIL_B.throttle_c_out_m; + rtb_Merge_cc.AFCS_VERT = cr929_SIL_B.AFCS_VERT_p; + rtb_Merge_cc.AFCS_LAT = cr929_SIL_B.AFCS_LAT_f; + rtb_Merge_cc.CSAS_pitch = cr929_SIL_B.CSAS_pitch_p; + rtb_Merge_cc.CSAS_roll = cr929_SIL_B.CSAS_roll_o; + rtb_Merge_cc.CSAS_yaw = cr929_SIL_B.CSAS_yaw_o; + rtb_Merge_cc.AT = cr929_SIL_B.AT_f; + rtb_Merge_cc.throttle_c = cr929_SIL_B.throttle_c_out_c; rtb_Merge_cc.tht_c = cr929_SIL_B.tht_c; - rtb_Merge_cc.phi_c = cr929_SIL_B.phi_c_g; - rtb_Merge_cc.as_c = cr929_SIL_B.as_c_m; - rtb_Merge_cc.gs_c = cr929_SIL_B.gs_c_k; - rtb_Merge_cc.brake_c = cr929_SIL_B.brake_c_k; + rtb_Merge_cc.phi_c = cr929_SIL_B.phi_c_o; + rtb_Merge_cc.as_c = cr929_SIL_B.as_c_g; + rtb_Merge_cc.gs_c = cr929_SIL_B.gs_c_g; + rtb_Merge_cc.brake_c = cr929_SIL_B.brake_c_c; rtb_Merge_cc.gear_up = cr929_SIL_B.gear_up_c; rtb_Merge_cc.de_c = cr929_SIL_B.de_c; rtb_Merge_cc.takeoff_cmd = cr929_SIL_B.takeoff_cmd_out; @@ -18162,7 +18162,7 @@ void cr929_SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/landing_task' */ - cr929_SIL_DW.temporalCounter_i1_hj = 0U; + cr929_SIL_DW.temporalCounter_i1_fo = 0U; cr929_SIL_DW.is_active_c14_cr929_autopilot = 0U; cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -18179,17 +18179,17 @@ void cr929_SIL_step(void) * Constant: '/Constant Single51' * Constant: '/Constant' */ - if (cr929_SIL_DW.temporalCounter_i1_hj < 1023U) { - cr929_SIL_DW.temporalCounter_i1_hj++; + if (cr929_SIL_DW.temporalCounter_i1_fo < 1023U) { + cr929_SIL_DW.temporalCounter_i1_fo++; } if (cr929_SIL_DW.is_active_c14_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c14_cr929_autopilot = 1U; cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_Approach; - cr929_SIL_B.mode_h = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.mode_f = ENUM_mode_AUTO_MISSION; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_IN_AIR; - cr929_SIL_B.WP_out_d = cr929_SIL_B.BusAssignment_g.WP_cur; - cr929_SIL_B.use_mission_traj_h = true; + cr929_SIL_B.WP_out_o = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.use_mission_traj_i = true; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_VNAV2THT; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PHI; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; @@ -18199,11 +18199,11 @@ void cr929_SIL_step(void) cr929_SIL_B.BusAssignment_g.throttle_c; cr929_SIL_B.hdot_c = -0.5F; cr929_SIL_B.as_c = cr929_SIL_P.CruiseSpeed; - cr929_SIL_B.gs_c_d = cr929_SIL_P.LandingSpeed; + cr929_SIL_B.gs_c_l = cr929_SIL_P.LandingSpeed; cr929_SIL_B.gear_up_c_out = cr929_SIL_B.BusAssignment_g.rc.gear_up; cr929_SIL_B.brake_c = false; - cr929_SIL_B.phi_c_p = 0.0F; + cr929_SIL_B.phi_c_d = 0.0F; cr929_SIL_B.CSAS_yaw = cr929_SIL_B.BusAssignment_g.CSAS_yaw; } else { guard1 = false; @@ -18212,9 +18212,9 @@ void cr929_SIL_step(void) guard4 = false; switch (cr929_SIL_DW.is_c14_cr929_autopilot) { case cr929_SIL_IN_Approach: - cr929_SIL_B.mode_h = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.mode_f = ENUM_mode_AUTO_MISSION; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_IN_AIR; - cr929_SIL_B.use_mission_traj_h = true; + cr929_SIL_B.use_mission_traj_i = true; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_VNAV2THT; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PHI; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; @@ -18222,22 +18222,22 @@ void cr929_SIL_step(void) cr929_SIL_B.AT_k = ENUM_AT_GS; cr929_SIL_B.hdot_c = -0.5F; cr929_SIL_B.brake_c = false; - cr929_SIL_B.phi_c_p = 0.0F; + cr929_SIL_B.phi_c_d = 0.0F; if ((cr929_SIL_B.UnitDelay.v_g < cr929_SIL_P.GearDownSpeed) && (cr929_SIL_P.auto_gear_updown != 0.0F)) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_GearDown; - cr929_SIL_B.WP_out_d = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.WP_out_o = cr929_SIL_B.BusAssignment_g.WP_cur; cr929_SIL_B.throttle_c_out = cr929_SIL_B.BusAssignment_g.throttle_c; cr929_SIL_B.gear_up_c_out = false; cr929_SIL_B.CSAS_yaw = cr929_SIL_B.BusAssignment_g.CSAS_yaw; - cr929_SIL_B.gs_c_d = cr929_SIL_B.BusAssignment_g.gs_c; + cr929_SIL_B.gs_c_l = cr929_SIL_B.BusAssignment_g.gs_c; } else if (cr929_SIL_B.UnitDelay.rel_alt < cr929_SIL_B.BusAssignment_g.landing_abort_alt) { if (cr929_SIL_B.UnitDelay.rel_alt < cr929_SIL_P.FlareAlt) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_Flare_high; - cr929_SIL_B.mode_h = ENUM_mode_AUTO_LAND; + cr929_SIL_B.mode_f = ENUM_mode_AUTO_LAND; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_LANDING; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; cr929_SIL_B.hdot_c = -0.5F; @@ -18261,7 +18261,7 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_Flare_high: - cr929_SIL_B.mode_h = ENUM_mode_AUTO_LAND; + cr929_SIL_B.mode_f = ENUM_mode_AUTO_LAND; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_LANDING; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; cr929_SIL_B.hdot_c = -0.5F; @@ -18284,7 +18284,7 @@ void cr929_SIL_step(void) case cr929_SIL_IN_Flare_low: cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PSIDOT; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; - cr929_SIL_B.phi_c_p = 0.0F; + cr929_SIL_B.phi_c_d = 0.0F; if (cr929_SIL_B.BusAssignment_g.rc.throttle_cmd > 0.9F) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_WaveOff; cr929_SIL_enter_atomic_WaveOff(); @@ -18298,7 +18298,7 @@ void cr929_SIL_step(void) if ((cr929_SIL_B.BusAssignment_h.bear_state & 3) == 3) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_TwoWheel; - cr929_SIL_DW.temporalCounter_i1_hj = 0U; + cr929_SIL_DW.temporalCounter_i1_fo = 0U; } } break; @@ -18309,7 +18309,7 @@ void cr929_SIL_step(void) if (cr929_SIL_B.UnitDelay.rel_alt < cr929_SIL_P.FlareAlt) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_Flare_high; - cr929_SIL_B.mode_h = ENUM_mode_AUTO_LAND; + cr929_SIL_B.mode_f = ENUM_mode_AUTO_LAND; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_LANDING; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; cr929_SIL_B.hdot_c = -0.5F; @@ -18332,7 +18332,7 @@ void cr929_SIL_step(void) } break; - case cr929_SIL_IN_Stop_p: + case cr929_SIL_IN_Stop_e: cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_OFF; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_OFF; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_OFF; @@ -18343,7 +18343,7 @@ void cr929_SIL_step(void) cr929_SIL_B.brake_c = true; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_ON_GROUND; if (cr929_SIL_B.UnitDelay.v_g < 2.0F) { - cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_Stop_p; + cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_Stop_e; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_OFF; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_OFF; cr929_SIL_B.CSAS_yaw = ENUM_CSAS_YAW_OFF; @@ -18355,10 +18355,10 @@ void cr929_SIL_step(void) case cr929_SIL_IN_ThreeWheel: if ((cr929_SIL_B.BusAssignment_h.bear_state & 7) != 7) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_TwoWheel; - cr929_SIL_DW.temporalCounter_i1_hj = 0U; + cr929_SIL_DW.temporalCounter_i1_fo = 0U; } else { if ((cr929_SIL_B.UnitDelay.v_g < cr929_SIL_P.LandingSpeed * - 0.75F) || (cr929_SIL_DW.temporalCounter_i1_hj >= 327U)) + 0.75F) || (cr929_SIL_DW.temporalCounter_i1_fo >= 327U)) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_Taxi_Brake; @@ -18372,8 +18372,8 @@ void cr929_SIL_step(void) if ((cr929_SIL_B.BusAssignment_h.bear_state & 7) == 7) { cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_ThreeWheel; - cr929_SIL_DW.temporalCounter_i1_hj = 0U; - } else if (cr929_SIL_DW.temporalCounter_i1_hj >= 980U) { + cr929_SIL_DW.temporalCounter_i1_fo = 0U; + } else if (cr929_SIL_DW.temporalCounter_i1_fo >= 980U) { guard4 = true; } else if ((cr929_SIL_B.BusAssignment_h.bear_state & 3) != 3) { @@ -18382,7 +18382,7 @@ void cr929_SIL_step(void) cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PSIDOT; cr929_SIL_B.CSAS_yaw = ENUM_CSAS_YAW_PSIDOT_CTRL; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; - cr929_SIL_B.phi_c_p = 0.0F; + cr929_SIL_B.phi_c_d = 0.0F; } else { if (cr929_SIL_B.UnitDelay.v_g < cr929_SIL_P.LandingSpeed * 0.75F) { @@ -18392,7 +18392,7 @@ void cr929_SIL_step(void) break; default: - cr929_SIL_B.mode_h = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.mode_f = ENUM_mode_AUTO_MISSION; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_IN_AIR; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PHI; @@ -18411,9 +18411,9 @@ void cr929_SIL_step(void) } if (guard3) { - cr929_SIL_B.gs_c_d = cr929_SIL_B.BusAssignment_g.gs_c; + cr929_SIL_B.gs_c_l = cr929_SIL_B.BusAssignment_g.gs_c; cr929_SIL_B.CSAS_yaw = cr929_SIL_B.BusAssignment_g.CSAS_yaw; - cr929_SIL_B.WP_out_d = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.WP_out_o = cr929_SIL_B.BusAssignment_g.WP_cur; cr929_SIL_B.throttle_c_out = cr929_SIL_B.BusAssignment_g.throttle_c; } @@ -18424,17 +18424,17 @@ void cr929_SIL_step(void) cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_LNAV2PSIDOT; cr929_SIL_B.CSAS_yaw = ENUM_CSAS_YAW_PSIDOT_CTRL; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; - cr929_SIL_B.phi_c_p = 0.0F; + cr929_SIL_B.phi_c_d = 0.0F; } if (guard1) { cr929_SIL_B.CSAS_yaw = cr929_SIL_B.BusAssignment_g.CSAS_yaw; - cr929_SIL_B.WP_out_d = cr929_SIL_B.BusAssignment_g.WP_cur; + cr929_SIL_B.WP_out_o = cr929_SIL_B.BusAssignment_g.WP_cur; cr929_SIL_B.throttle_c_out = cr929_SIL_B.BusAssignment_g.throttle_c; cr929_SIL_B.gear_up_c_out = cr929_SIL_B.BusAssignment_g.rc.gear_up; - cr929_SIL_B.gs_c_d = cr929_SIL_B.BusAssignment_g.gs_c; + cr929_SIL_B.gs_c_l = cr929_SIL_B.BusAssignment_g.gs_c; } } @@ -18442,10 +18442,10 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_cc = cr929_SIL_B.BusAssignment_g; - rtb_Merge_cc.mode = cr929_SIL_B.mode_h; + rtb_Merge_cc.mode = cr929_SIL_B.mode_f; rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state; - rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_d; - rtb_Merge_cc.use_mission_traj = cr929_SIL_B.use_mission_traj_h; + rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_o; + rtb_Merge_cc.use_mission_traj = cr929_SIL_B.use_mission_traj_i; rtb_Merge_cc.AFCS_VERT = cr929_SIL_B.AFCS_VERT; rtb_Merge_cc.AFCS_LAT = cr929_SIL_B.AFCS_LAT; rtb_Merge_cc.CSAS_pitch = cr929_SIL_B.CSAS_pitch; @@ -18455,10 +18455,10 @@ void cr929_SIL_step(void) rtb_Merge_cc.throttle_c = cr929_SIL_B.throttle_c_out; rtb_Merge_cc.hdot_c = cr929_SIL_B.hdot_c; rtb_Merge_cc.as_c = cr929_SIL_B.as_c; - rtb_Merge_cc.gs_c = cr929_SIL_B.gs_c_d; + rtb_Merge_cc.gs_c = cr929_SIL_B.gs_c_l; rtb_Merge_cc.gear_up = cr929_SIL_B.gear_up_c_out; rtb_Merge_cc.brake_c = cr929_SIL_B.brake_c; - rtb_Merge_cc.phi_c = cr929_SIL_B.phi_c_p; + rtb_Merge_cc.phi_c = cr929_SIL_B.phi_c_d; /* End of Outputs for SubSystem: '/landing' */ break; @@ -18491,14 +18491,14 @@ void cr929_SIL_step(void) (cr929_SIL_B.BusAssignment_h.TAS < cr929_SIL_P.max_GS) && (cr929_SIL_B.BusAssignment_h.TAS < cr929_SIL_P.min_AS) && (cr929_SIL_B.UnitDelay.v_g < cr929_SIL_P.min_AS)) { - cr929_SIL_DW.is_c18_cr929_autopilot = cr929_SIL_IN_Taxi_c; + cr929_SIL_DW.is_c18_cr929_autopilot = cr929_SIL_IN_Taxi_p; rtb_level5_lgx = ENUM_waypoint_level5_TAXI; } else { cr929_SIL_DW.is_c18_cr929_autopilot = cr929_SIL_IN_WayPoint; rtb_level5_lgx = ENUM_waypoint_level5_WAYPOINT; } } else if (cr929_SIL_DW.is_c18_cr929_autopilot == - cr929_SIL_IN_Taxi_c) { + cr929_SIL_IN_Taxi_p) { rtb_level5_lgx = ENUM_waypoint_level5_TAXI; } else { rtb_level5_lgx = ENUM_waypoint_level5_WAYPOINT; @@ -18534,7 +18534,7 @@ void cr929_SIL_step(void) * Chart: '/waypoint_task' */ cr929_SIL_DW.is_Taxi = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - cr929_SIL_DW.temporalCounter_i1_j = 0U; + cr929_SIL_DW.temporalCounter_i1_dn = 0U; cr929_SIL_DW.is_active_c20_cr929_autopilot = 0U; cr929_SIL_DW.is_c20_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -18548,46 +18548,46 @@ void cr929_SIL_step(void) /* Chart: '/waypoint_task' incorporates: * Constant: '/Constant Single53' */ - if (cr929_SIL_DW.temporalCounter_i1_j < 511U) { - cr929_SIL_DW.temporalCounter_i1_j++; + if (cr929_SIL_DW.temporalCounter_i1_dn < 511U) { + cr929_SIL_DW.temporalCounter_i1_dn++; } if (cr929_SIL_DW.is_active_c20_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c20_cr929_autopilot = 1U; cr929_SIL_DW.is_c20_cr929_autopilot = cr929_SIL_IN_WP; - cr929_SIL_B.mode_f = ENUM_mode_AUTO_MISSION; - cr929_SIL_B.landed_state_out_f = + cr929_SIL_B.mode_j = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.landed_state_out_h = rtb_BusAssignment_o.landed_state; - cr929_SIL_B.WP_out_c = rtb_BusAssignment_o.WP_cur; - cr929_SIL_B.use_mission_traj_b = true; - cr929_SIL_B.AFCS_VERT_out_d = rtb_BusAssignment_o.AFCS_VERT; - cr929_SIL_B.AFCS_LAT_out_b = rtb_BusAssignment_o.AFCS_LAT; - cr929_SIL_B.CSAS_pitch_out_o = rtb_BusAssignment_o.CSAS_pitch; - cr929_SIL_B.CSAS_roll_out_b = rtb_BusAssignment_o.CSAS_roll; - cr929_SIL_B.CSAS_yaw_out_e = rtb_BusAssignment_o.CSAS_yaw; - cr929_SIL_B.AT_out_l = rtb_BusAssignment_o.AT; - cr929_SIL_B.brake_c_out_o = rtb_BusAssignment_o.brake_c; + cr929_SIL_B.WP_out_n = rtb_BusAssignment_o.WP_cur; + cr929_SIL_B.use_mission_traj_p = true; + cr929_SIL_B.AFCS_VERT_out_j = rtb_BusAssignment_o.AFCS_VERT; + cr929_SIL_B.AFCS_LAT_out_o = rtb_BusAssignment_o.AFCS_LAT; + cr929_SIL_B.CSAS_pitch_out_n = rtb_BusAssignment_o.CSAS_pitch; + cr929_SIL_B.CSAS_roll_out_f = rtb_BusAssignment_o.CSAS_roll; + cr929_SIL_B.CSAS_yaw_out_m = rtb_BusAssignment_o.CSAS_yaw; + cr929_SIL_B.AT_out_c = rtb_BusAssignment_o.AT; + cr929_SIL_B.brake_c_out_j = rtb_BusAssignment_o.brake_c; } else { switch (cr929_SIL_DW.is_c20_cr929_autopilot) { case cr929_SIL_IN_NextWP: break; - case cr929_SIL_IN_Taxi_e: - if ((cr929_SIL_DW.temporalCounter_i1_j >= 327U) && + case cr929_SIL_IN_Taxi_f: + if ((cr929_SIL_DW.temporalCounter_i1_dn >= 327U) && rtb_BusAssignment_o.autocont && (cr929_SIL_B.UnitDelay.dist_offset < rtb_BusAssignment_o.dist_trans)) { cr929_SIL_DW.is_Taxi = cr929_SIL_IN_NO_ACTIVE_CHILD_n; cr929_SIL_DW.is_c20_cr929_autopilot = cr929_SIL_IN_NextWP; - rtb_out_me = cr929_SIL_B.WP_out_c + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = cr929_SIL_B.WP_out_n + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - cr929_SIL_B.WP_out_c = (uint16_T)rtb_out_me; + cr929_SIL_B.WP_out_n = (uint16_T)rtb_out_de; } else if (cr929_SIL_DW.is_Taxi == cr929_SIL_IN_Brake) { if (rtb_BusAssignment_o.rc.throttle_cmd > 0.3F) { - cr929_SIL_DW.is_Taxi = cr929_SIL_IN_Taxi_e; + cr929_SIL_DW.is_Taxi = cr929_SIL_IN_Taxi_f; cr929_SIL_B.gs_c = cr929_SIL_P.TaxiSpeed; } } else if (rtb_BusAssignment_o.rc.throttle_cmd < 0.3F) { @@ -18599,19 +18599,19 @@ void cr929_SIL_step(void) break; default: - cr929_SIL_B.mode_f = ENUM_mode_AUTO_MISSION; - cr929_SIL_B.use_mission_traj_b = true; - cr929_SIL_DW.is_c20_cr929_autopilot = cr929_SIL_IN_Taxi_e; - cr929_SIL_DW.temporalCounter_i1_j = 0U; - cr929_SIL_B.landed_state_out_f = ENUM_LANDED_STATE_ON_GROUND; - cr929_SIL_B.AFCS_VERT_out_d = ENUM_AFCS_VERT_OFF; - cr929_SIL_B.AFCS_LAT_out_b = ENUM_AFCS_LAT_LNAV2PSIDOT; - cr929_SIL_B.CSAS_pitch_out_o = ENUM_CSAS_PITCH_OFF; - cr929_SIL_B.CSAS_roll_out_b = ENUM_CSAS_ROLL_OFF; - cr929_SIL_B.CSAS_yaw_out_e = ENUM_CSAS_YAW_PSIDOT_CTRL; - cr929_SIL_B.AT_out_l = ENUM_AT_GS; - cr929_SIL_B.brake_c_out_o = false; - cr929_SIL_DW.is_Taxi = cr929_SIL_IN_Taxi_e; + cr929_SIL_B.mode_j = ENUM_mode_AUTO_MISSION; + cr929_SIL_B.use_mission_traj_p = true; + cr929_SIL_DW.is_c20_cr929_autopilot = cr929_SIL_IN_Taxi_f; + cr929_SIL_DW.temporalCounter_i1_dn = 0U; + cr929_SIL_B.landed_state_out_h = ENUM_LANDED_STATE_ON_GROUND; + cr929_SIL_B.AFCS_VERT_out_j = ENUM_AFCS_VERT_OFF; + cr929_SIL_B.AFCS_LAT_out_o = ENUM_AFCS_LAT_LNAV2PSIDOT; + cr929_SIL_B.CSAS_pitch_out_n = ENUM_CSAS_PITCH_OFF; + cr929_SIL_B.CSAS_roll_out_f = ENUM_CSAS_ROLL_OFF; + cr929_SIL_B.CSAS_yaw_out_m = ENUM_CSAS_YAW_PSIDOT_CTRL; + cr929_SIL_B.AT_out_c = ENUM_AT_GS; + cr929_SIL_B.brake_c_out_j = false; + cr929_SIL_DW.is_Taxi = cr929_SIL_IN_Taxi_f; cr929_SIL_B.gs_c = cr929_SIL_P.TaxiSpeed; break; } @@ -18621,18 +18621,18 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_cc = rtb_BusAssignment_o; - rtb_Merge_cc.mode = cr929_SIL_B.mode_f; - rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state_out_f; - rtb_Merge_cc.use_mission_traj = cr929_SIL_B.use_mission_traj_b; - rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_c; - rtb_Merge_cc.AFCS_VERT = cr929_SIL_B.AFCS_VERT_out_d; - rtb_Merge_cc.AFCS_LAT = cr929_SIL_B.AFCS_LAT_out_b; - rtb_Merge_cc.CSAS_pitch = cr929_SIL_B.CSAS_pitch_out_o; - rtb_Merge_cc.CSAS_roll = cr929_SIL_B.CSAS_roll_out_b; - rtb_Merge_cc.CSAS_yaw = cr929_SIL_B.CSAS_yaw_out_e; - rtb_Merge_cc.AT = cr929_SIL_B.AT_out_l; + rtb_Merge_cc.mode = cr929_SIL_B.mode_j; + rtb_Merge_cc.landed_state = cr929_SIL_B.landed_state_out_h; + rtb_Merge_cc.use_mission_traj = cr929_SIL_B.use_mission_traj_p; + rtb_Merge_cc.WP_cur = cr929_SIL_B.WP_out_n; + rtb_Merge_cc.AFCS_VERT = cr929_SIL_B.AFCS_VERT_out_j; + rtb_Merge_cc.AFCS_LAT = cr929_SIL_B.AFCS_LAT_out_o; + rtb_Merge_cc.CSAS_pitch = cr929_SIL_B.CSAS_pitch_out_n; + rtb_Merge_cc.CSAS_roll = cr929_SIL_B.CSAS_roll_out_f; + rtb_Merge_cc.CSAS_yaw = cr929_SIL_B.CSAS_yaw_out_m; + rtb_Merge_cc.AT = cr929_SIL_B.AT_out_c; rtb_Merge_cc.gs_c = cr929_SIL_B.gs_c; - rtb_Merge_cc.brake_c = cr929_SIL_B.brake_c_out_o; + rtb_Merge_cc.brake_c = cr929_SIL_B.brake_c_out_j; /* End of Outputs for SubSystem: '/taxi' */ break; @@ -18961,11 +18961,11 @@ void cr929_SIL_step(void) */ /* Saturate: '/Saturation' */ if (cr929_SIL_B.params_k[0] > 1.0F) { - rtb_phi_c_j = 1.0F; + rtb_phi_c_o = 1.0F; } else if (cr929_SIL_B.params_k[0] < 0.3F) { - rtb_phi_c_j = 0.3F; + rtb_phi_c_o = 0.3F; } else { - rtb_phi_c_j = cr929_SIL_B.params_k[0]; + rtb_phi_c_o = cr929_SIL_B.params_k[0]; } /* End of Saturate: '/Saturation' */ @@ -18982,7 +18982,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c78_maneuver = cr929_SIL_IN_wait; cr929_SIL_B.cmd_out_i = rtb_BusAssignment_o.maneuver_cmd; cr929_SIL_B.max_da_out = rtb_BusAssignment_o.max_da * - rtb_phi_c_j; + rtb_phi_c_o; cr929_SIL_B.use_da2dsp_out_e = (cr929_SIL_B.params_k[2] != 0.0F); } else { @@ -18993,16 +18993,16 @@ void cr929_SIL_step(void) case cr929_SIL_IN_Turning: /* Saturate: '/Saturation1' */ if (cr929_SIL_B.params_k[1] > 10.0F) { - rtb_phi_c_j = 10.0F; + rtb_phi_c_o = 10.0F; } else if (cr929_SIL_B.params_k[1] < 0.3F) { - rtb_phi_c_j = 0.3F; + rtb_phi_c_o = 0.3F; } else { - rtb_phi_c_j = cr929_SIL_B.params_k[1]; + rtb_phi_c_o = cr929_SIL_B.params_k[1]; } /* End of Saturate: '/Saturation1' */ if (cr929_SIL_DW.temporalCounter_i1_mp >= (uint32_T)ceil - (rtb_phi_c_j / 0.003062 - 3.062E-11)) { + (rtb_phi_c_o / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c78_maneuver = cr929_SIL_IN_End; cr929_SIL_B.cmd_out_i = 0; cr929_SIL_B.max_da_out = rtb_BusAssignment_o.max_da; @@ -19017,7 +19017,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.temporalCounter_i1_mp = 0U; } else { cr929_SIL_B.max_da_out = rtb_BusAssignment_o.max_da * - rtb_phi_c_j; + rtb_phi_c_o; } break; } @@ -19057,17 +19057,17 @@ void cr929_SIL_step(void) */ /* Saturate: '/Saturation1' */ if (cr929_SIL_B.params_k[0] > 1.0F) { - rtb_phi_c_j = 1.0F; + rtb_phi_c_o = 1.0F; } else if (cr929_SIL_B.params_k[0] < -1.0F) { - rtb_phi_c_j = -1.0F; + rtb_phi_c_o = -1.0F; } else { - rtb_phi_c_j = cr929_SIL_B.params_k[0]; + rtb_phi_c_o = cr929_SIL_B.params_k[0]; } /* End of Saturate: '/Saturation1' */ /* Product: '/Product' */ - rtb_phi_c_j *= rtb_BusAssignment_o.max_dr; + rtb_phi_c_o *= rtb_BusAssignment_o.max_dr; /* Saturate: '/Saturation' */ if (cr929_SIL_B.params_k[1] > 20.0F) { @@ -19103,25 +19103,25 @@ void cr929_SIL_step(void) cr929_SIL_B.cmd_out_hh = 0; cr929_SIL_B.dr_b = 0.0F; } else { - cr929_SIL_B.dr_b = rtb_phi_c_j - (real32_T)((real_T) + cr929_SIL_B.dr_b = rtb_phi_c_o - (real32_T)((real_T) cr929_SIL_DW.temporalCounter_i1_i * 0.003062) * - rtb_phi_c_j / rtb_uDLookupTable_l; + rtb_phi_c_o / rtb_uDLookupTable_l; } break; case cr929_SIL_IN_Keep: /* Saturate: '/Saturation2' */ if (cr929_SIL_B.params_k[2] > 30.0F) { - rtb_phi_c_j = 30.0F; + rtb_phi_c_o = 30.0F; } else if (cr929_SIL_B.params_k[2] < 3.0F) { - rtb_phi_c_j = 3.0F; + rtb_phi_c_o = 3.0F; } else { - rtb_phi_c_j = cr929_SIL_B.params_k[2]; + rtb_phi_c_o = cr929_SIL_B.params_k[2]; } /* End of Saturate: '/Saturation2' */ if (cr929_SIL_DW.temporalCounter_i1_i >= (uint32_T)ceil - (rtb_phi_c_j / 0.003062 - 3.062E-11)) { + (rtb_phi_c_o / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c2_maneuver = cr929_SIL_IN_Fall; cr929_SIL_DW.temporalCounter_i1_i = 0U; } @@ -19132,11 +19132,11 @@ void cr929_SIL_step(void) (rtb_uDLookupTable_l / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c2_maneuver = cr929_SIL_IN_Keep; cr929_SIL_DW.temporalCounter_i1_i = 0U; - cr929_SIL_B.dr_b = rtb_phi_c_j; + cr929_SIL_B.dr_b = rtb_phi_c_o; } else { cr929_SIL_B.dr_b = (real32_T)((real_T) cr929_SIL_DW.temporalCounter_i1_i * 0.003062) * - rtb_phi_c_j / rtb_uDLookupTable_l; + rtb_phi_c_o / rtb_uDLookupTable_l; } break; } @@ -19181,14 +19181,14 @@ void cr929_SIL_step(void) * Switch: '/Switch' */ if (cr929_SIL_B.params_k[0] > cr929_SIL_P.max_AS) { - rtb_phi_c_j = cr929_SIL_P.max_AS; + rtb_phi_c_o = cr929_SIL_P.max_AS; } else if (cr929_SIL_B.params_k[0] < cr929_SIL_P.min_AS) { /* Switch: '/Switch' incorporates: * Constant: '/Constant Single55' */ - rtb_phi_c_j = cr929_SIL_P.min_AS; + rtb_phi_c_o = cr929_SIL_P.min_AS; } else { - rtb_phi_c_j = cr929_SIL_B.params_k[0]; + rtb_phi_c_o = cr929_SIL_B.params_k[0]; } /* End of Switch: '/Switch2' */ @@ -19203,7 +19203,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c3_maneuver = cr929_SIL_IN_start; cr929_SIL_B.cmd_out_a = rtb_BusAssignment_o.maneuver_cmd; cr929_SIL_B.thr_c_e = rtb_BusAssignment_o.throttle_c; - cr929_SIL_B.as = rtb_phi_c_j; + cr929_SIL_B.as = rtb_phi_c_o; cr929_SIL_B.vert_mode_a = ENUM_AFCS_VERT_AS2THT; cr929_SIL_B.AT_l = ENUM_AT_COMMAND; cr929_SIL_DW.as0 = rtb_BusAssignment_o.as_c; @@ -19230,23 +19230,23 @@ void cr929_SIL_step(void) cr929_SIL_B.AT_l = ENUM_AT_AS; cr929_SIL_B.as = cr929_SIL_DW.as0; } else { - cr929_SIL_B.as = rtb_phi_c_j; + cr929_SIL_B.as = rtb_phi_c_o; } break; default: /* Saturate: '/Saturation1' */ if (cr929_SIL_B.params_k[1] > 20.0F) { - rtb_phi_c_j = 20.0F; + rtb_phi_c_o = 20.0F; } else if (cr929_SIL_B.params_k[1] < 8.0F) { - rtb_phi_c_j = 8.0F; + rtb_phi_c_o = 8.0F; } else { - rtb_phi_c_j = cr929_SIL_B.params_k[1]; + rtb_phi_c_o = cr929_SIL_B.params_k[1]; } /* End of Saturate: '/Saturation1' */ if ((cr929_SIL_DW.temporalCounter_i1_n >= (uint32_T)ceil - (rtb_phi_c_j / 0.003062 - 3.062E-11)) || + (rtb_phi_c_o / 0.003062 - 3.062E-11)) || ((cr929_SIL_B.BusAssignment_h.phi > 0.2F) || (cr929_SIL_B.BusAssignment_h.phi < -0.2F))) { cr929_SIL_DW.is_c3_maneuver = cr929_SIL_IN_End; @@ -19313,16 +19313,16 @@ void cr929_SIL_step(void) /* Saturate: '/Saturation' */ if (cr929_SIL_B.params_k[0] > 30.0F) { - rtb_phi_c_j = 30.0F; + rtb_phi_c_o = 30.0F; } else if (cr929_SIL_B.params_k[0] < 1.0F) { - rtb_phi_c_j = 1.0F; + rtb_phi_c_o = 1.0F; } else { - rtb_phi_c_j = cr929_SIL_B.params_k[0]; + rtb_phi_c_o = cr929_SIL_B.params_k[0]; } /* End of Saturate: '/Saturation' */ if (cr929_SIL_DW.temporalCounter_i1_b >= (uint32_T)ceil - (rtb_phi_c_j / 0.003062 - 3.062E-11)) { + (rtb_phi_c_o / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c4_maneuver = cr929_SIL_IN_two1_n; cr929_SIL_B.cmd_out_h = 0; rtb_AFCS_VERT = ENUM_AFCS_VERT_VNAV2THT; @@ -19356,7 +19356,7 @@ void cr929_SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/sweep' */ - cr929_SIL_DW.temporalCounter_i1_p = 0U; + cr929_SIL_DW.temporalCounter_i1_pm = 0U; cr929_SIL_DW.is_active_c5_maneuver = 0U; cr929_SIL_DW.is_c5_maneuver = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -19367,14 +19367,14 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* Gain: '/Gain1' */ - rtb_phi_c_j = 0.0174532924F * cr929_SIL_B.params_k[0]; + rtb_phi_c_o = 0.0174532924F * cr929_SIL_B.params_k[0]; /* Saturate: '/Saturation1' */ - if (rtb_phi_c_j > 0.1F) { - rtb_phi_c_j = 0.1F; + if (rtb_phi_c_o > 0.1F) { + rtb_phi_c_o = 0.1F; } else { - if (rtb_phi_c_j < -0.1F) { - rtb_phi_c_j = -0.1F; + if (rtb_phi_c_o < -0.1F) { + rtb_phi_c_o = -0.1F; } } @@ -19392,56 +19392,56 @@ void cr929_SIL_step(void) /* End of Saturate: '/Saturation' */ /* Chart: '/sweep' */ - if (cr929_SIL_DW.temporalCounter_i1_p < MAX_uint32_T) { - cr929_SIL_DW.temporalCounter_i1_p++; + if (cr929_SIL_DW.temporalCounter_i1_pm < MAX_uint32_T) { + cr929_SIL_DW.temporalCounter_i1_pm++; } if (cr929_SIL_DW.is_active_c5_maneuver == 0U) { cr929_SIL_DW.is_active_c5_maneuver = 1U; cr929_SIL_DW.is_c5_maneuver = cr929_SIL_IN_rise; - cr929_SIL_DW.temporalCounter_i1_p = 0U; + cr929_SIL_DW.temporalCounter_i1_pm = 0U; cr929_SIL_B.cmd_out_g = rtb_BusAssignment_o.maneuver_cmd; cr929_SIL_B.de_n = 0.0F; } else { switch (cr929_SIL_DW.is_c5_maneuver) { case cr929_SIL_IN_fall: - if (cr929_SIL_DW.temporalCounter_i1_p >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_pm >= (uint32_T)ceil (2.0F * rtb_uDLookupTable_l / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c5_maneuver = cr929_SIL_IN_rise2; - cr929_SIL_DW.temporalCounter_i1_p = 0U; + cr929_SIL_DW.temporalCounter_i1_pm = 0U; cr929_SIL_B.cmd_out_g = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.de_n = -rtb_phi_c_j; + cr929_SIL_B.de_n = -rtb_phi_c_o; } else { - cr929_SIL_B.de_n = rtb_phi_c_j - (real32_T)((real_T) - cr929_SIL_DW.temporalCounter_i1_p * 0.003062) * - rtb_phi_c_j / rtb_uDLookupTable_l; + cr929_SIL_B.de_n = rtb_phi_c_o - (real32_T)((real_T) + cr929_SIL_DW.temporalCounter_i1_pm * 0.003062) * + rtb_phi_c_o / rtb_uDLookupTable_l; } break; case cr929_SIL_IN_rise: - if (cr929_SIL_DW.temporalCounter_i1_p >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_pm >= (uint32_T)ceil (rtb_uDLookupTable_l / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c5_maneuver = cr929_SIL_IN_fall; - cr929_SIL_DW.temporalCounter_i1_p = 0U; + cr929_SIL_DW.temporalCounter_i1_pm = 0U; cr929_SIL_B.cmd_out_g = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.de_n = rtb_phi_c_j; + cr929_SIL_B.de_n = rtb_phi_c_o; } else { cr929_SIL_B.de_n = (real32_T)((real_T) - cr929_SIL_DW.temporalCounter_i1_p * 0.003062) * - rtb_phi_c_j / rtb_uDLookupTable_l; + cr929_SIL_DW.temporalCounter_i1_pm * 0.003062) * + rtb_phi_c_o / rtb_uDLookupTable_l; } break; case cr929_SIL_IN_rise2: - if (cr929_SIL_DW.temporalCounter_i1_p >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_pm >= (uint32_T)ceil (rtb_uDLookupTable_l / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c5_maneuver = cr929_SIL_IN_two1_f; cr929_SIL_B.cmd_out_g = 0; cr929_SIL_B.de_n = 0.0F; } else { cr929_SIL_B.de_n = (real32_T)((real_T) - cr929_SIL_DW.temporalCounter_i1_p * 0.003062) * - rtb_phi_c_j / rtb_uDLookupTable_l + -rtb_phi_c_j; + cr929_SIL_DW.temporalCounter_i1_pm * 0.003062) * + rtb_phi_c_o / rtb_uDLookupTable_l + -rtb_phi_c_o; } break; } @@ -19479,19 +19479,19 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* Gain: '/Gain1' */ - rtb_phi_c_j = 0.0174532924F * cr929_SIL_B.params_k[0]; + rtb_phi_c_o = 0.0174532924F * cr929_SIL_B.params_k[0]; /* Switch: '/Switch2' incorporates: * RelationalOperator: '/LowerRelop1' * RelationalOperator: '/UpperRelop' * Switch: '/Switch' */ - if (rtb_phi_c_j > rtb_BusAssignment_o.max_de) { - rtb_phi_c_j = rtb_BusAssignment_o.max_de; + if (rtb_phi_c_o > rtb_BusAssignment_o.max_de) { + rtb_phi_c_o = rtb_BusAssignment_o.max_de; } else { - if (rtb_phi_c_j < rtb_BusAssignment_o.min_de) { + if (rtb_phi_c_o < rtb_BusAssignment_o.min_de) { /* Switch: '/Switch' */ - rtb_phi_c_j = rtb_BusAssignment_o.min_de; + rtb_phi_c_o = rtb_BusAssignment_o.min_de; } } @@ -19518,7 +19518,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.is_c6_maneuver = cr929_SIL_IN_one_l; cr929_SIL_DW.temporalCounter_i1_gs = 0U; cr929_SIL_B.cmd_out_nrs = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.de = rtb_phi_c_j; + cr929_SIL_B.de = rtb_phi_c_o; cr929_SIL_B.de0 = rtb_BusAssignment_o.de_c; cr929_SIL_B.vert_mode_m = ENUM_AFCS_VERT_OFF; cr929_SIL_B.pitch_mode = ENUM_CSAS_PITCH_COMMAND; @@ -19531,7 +19531,7 @@ void cr929_SIL_step(void) (rtb_uDLookupTable_l / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c6_maneuver = cr929_SIL_IN_two; cr929_SIL_DW.temporalCounter_i1_gs = 0U; - cr929_SIL_B.de = -rtb_phi_c_j; + cr929_SIL_B.de = -rtb_phi_c_o; } break; @@ -19586,7 +19586,7 @@ void cr929_SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/doublet1' */ - cr929_SIL_DW.temporalCounter_i1_gp = 0U; + cr929_SIL_DW.temporalCounter_i1_g = 0U; cr929_SIL_DW.is_active_c7_maneuver = 0U; cr929_SIL_DW.is_c7_maneuver = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -19597,7 +19597,7 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* Gain: '/Gain1' */ - rtb_phi_c_j = 0.0174532924F * cr929_SIL_B.params_k[0]; + rtb_phi_c_o = 0.0174532924F * cr929_SIL_B.params_k[0]; /* Switch: '/Switch2' incorporates: * Gain: '/Gain' @@ -19605,14 +19605,14 @@ void cr929_SIL_step(void) * RelationalOperator: '/UpperRelop' * Switch: '/Switch' */ - if (rtb_phi_c_j > rtb_BusAssignment_o.max_dr) { - rtb_phi_c_j = rtb_BusAssignment_o.max_dr; + if (rtb_phi_c_o > rtb_BusAssignment_o.max_dr) { + rtb_phi_c_o = rtb_BusAssignment_o.max_dr; } else { - if (rtb_phi_c_j < -rtb_BusAssignment_o.max_dr) { + if (rtb_phi_c_o < -rtb_BusAssignment_o.max_dr) { /* Switch: '/Switch' incorporates: * Gain: '/Gain' */ - rtb_phi_c_j = -rtb_BusAssignment_o.max_dr; + rtb_phi_c_o = -rtb_BusAssignment_o.max_dr; } } @@ -19630,16 +19630,16 @@ void cr929_SIL_step(void) /* End of Saturate: '/Saturation' */ /* Chart: '/doublet1' */ - if (cr929_SIL_DW.temporalCounter_i1_gp < MAX_uint32_T) { - cr929_SIL_DW.temporalCounter_i1_gp++; + if (cr929_SIL_DW.temporalCounter_i1_g < MAX_uint32_T) { + cr929_SIL_DW.temporalCounter_i1_g++; } if (cr929_SIL_DW.is_active_c7_maneuver == 0U) { cr929_SIL_DW.is_active_c7_maneuver = 1U; cr929_SIL_DW.is_c7_maneuver = cr929_SIL_IN_one_l; - cr929_SIL_DW.temporalCounter_i1_gp = 0U; + cr929_SIL_DW.temporalCounter_i1_g = 0U; cr929_SIL_B.cmd_out_nr = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.dr_d = rtb_phi_c_j; + cr929_SIL_B.dr_d = rtb_phi_c_o; cr929_SIL_B.da0_b = rtb_BusAssignment_o.da_c; cr929_SIL_B.dr0_hg = rtb_BusAssignment_o.dr_c; cr929_SIL_B.lat_mode_a = ENUM_AFCS_LAT_OFF; @@ -19651,21 +19651,21 @@ void cr929_SIL_step(void) cr929_SIL_B.lat_mode_a = ENUM_AFCS_LAT_OFF; cr929_SIL_B.roll_mode_ac = ENUM_CSAS_ROLL_COMMAND; cr929_SIL_B.yaw_mode_p = ENUM_CSAS_YAW_COMMAND; - if (cr929_SIL_DW.temporalCounter_i1_gp >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_g >= (uint32_T)ceil (rtb_uDLookupTable_l / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c7_maneuver = cr929_SIL_IN_two; - cr929_SIL_DW.temporalCounter_i1_gp = 0U; + cr929_SIL_DW.temporalCounter_i1_g = 0U; cr929_SIL_B.cmd_out_nr = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.dr_d = -rtb_phi_c_j; + cr929_SIL_B.dr_d = -rtb_phi_c_o; } break; case cr929_SIL_IN_two: - if (cr929_SIL_DW.temporalCounter_i1_gp >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_g >= (uint32_T)ceil (rtb_uDLookupTable_l / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c7_maneuver = cr929_SIL_IN_two2; - cr929_SIL_DW.temporalCounter_i1_gp = 0U; + cr929_SIL_DW.temporalCounter_i1_g = 0U; cr929_SIL_B.dr_d = 0.0F; } break; @@ -19677,7 +19677,7 @@ void cr929_SIL_step(void) break; default: - if (cr929_SIL_DW.temporalCounter_i1_gp >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_g >= (uint32_T)ceil (rtb_uDLookupTable_l * 3.0F / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c7_maneuver = cr929_SIL_IN_two1_l; cr929_SIL_B.cmd_out_nr = 0; @@ -19716,7 +19716,7 @@ void cr929_SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/doublet1' */ - cr929_SIL_DW.temporalCounter_i1_a5 = 0U; + cr929_SIL_DW.temporalCounter_i1_a = 0U; cr929_SIL_DW.is_active_c8_maneuver = 0U; cr929_SIL_DW.is_c8_maneuver = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -19727,7 +19727,7 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* Gain: '/Gain1' */ - rtb_phi_c_j = 0.0174532924F * cr929_SIL_B.params_k[0]; + rtb_phi_c_o = 0.0174532924F * cr929_SIL_B.params_k[0]; /* Switch: '/Switch2' incorporates: * Gain: '/Gain' @@ -19735,14 +19735,14 @@ void cr929_SIL_step(void) * RelationalOperator: '/UpperRelop' * Switch: '/Switch' */ - if (rtb_phi_c_j > rtb_BusAssignment_o.max_da) { - rtb_phi_c_j = rtb_BusAssignment_o.max_da; + if (rtb_phi_c_o > rtb_BusAssignment_o.max_da) { + rtb_phi_c_o = rtb_BusAssignment_o.max_da; } else { - if (rtb_phi_c_j < -rtb_BusAssignment_o.max_da) { + if (rtb_phi_c_o < -rtb_BusAssignment_o.max_da) { /* Switch: '/Switch' incorporates: * Gain: '/Gain' */ - rtb_phi_c_j = -rtb_BusAssignment_o.max_da; + rtb_phi_c_o = -rtb_BusAssignment_o.max_da; } } @@ -19760,16 +19760,16 @@ void cr929_SIL_step(void) /* End of Saturate: '/Saturation' */ /* Chart: '/doublet1' */ - if (cr929_SIL_DW.temporalCounter_i1_a5 < MAX_uint32_T) { - cr929_SIL_DW.temporalCounter_i1_a5++; + if (cr929_SIL_DW.temporalCounter_i1_a < MAX_uint32_T) { + cr929_SIL_DW.temporalCounter_i1_a++; } if (cr929_SIL_DW.is_active_c8_maneuver == 0U) { cr929_SIL_DW.is_active_c8_maneuver = 1U; cr929_SIL_DW.is_c8_maneuver = cr929_SIL_IN_one_l; - cr929_SIL_DW.temporalCounter_i1_a5 = 0U; + cr929_SIL_DW.temporalCounter_i1_a = 0U; cr929_SIL_B.cmd_out_o = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.da = rtb_phi_c_j; + cr929_SIL_B.da = rtb_phi_c_o; cr929_SIL_B.da0_c = rtb_BusAssignment_o.da_c; cr929_SIL_B.dr0_h = rtb_BusAssignment_o.dr_c; cr929_SIL_B.lat_mode_i = ENUM_AFCS_LAT_OFF; @@ -19781,20 +19781,20 @@ void cr929_SIL_step(void) cr929_SIL_B.lat_mode_i = ENUM_AFCS_LAT_OFF; cr929_SIL_B.roll_mode_d = ENUM_CSAS_ROLL_COMMAND; cr929_SIL_B.yaw_mode_i = ENUM_CSAS_YAW_COMMAND; - if (cr929_SIL_DW.temporalCounter_i1_a5 >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil (rtb_uDLookupTable_l / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c8_maneuver = cr929_SIL_IN_two; - cr929_SIL_DW.temporalCounter_i1_a5 = 0U; + cr929_SIL_DW.temporalCounter_i1_a = 0U; cr929_SIL_B.cmd_out_o = rtb_BusAssignment_o.maneuver_cmd; - cr929_SIL_B.da = -rtb_phi_c_j; + cr929_SIL_B.da = -rtb_phi_c_o; } break; case cr929_SIL_IN_two: - if (cr929_SIL_DW.temporalCounter_i1_a5 >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil (rtb_uDLookupTable_l / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c8_maneuver = cr929_SIL_IN_two2; - cr929_SIL_DW.temporalCounter_i1_a5 = 0U; + cr929_SIL_DW.temporalCounter_i1_a = 0U; cr929_SIL_B.da = 0.0F; } break; @@ -19806,7 +19806,7 @@ void cr929_SIL_step(void) break; default: - if (cr929_SIL_DW.temporalCounter_i1_a5 >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil (rtb_uDLookupTable_l * 3.0F / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c8_maneuver = cr929_SIL_IN_two1_l; cr929_SIL_B.cmd_out_o = 0; @@ -19870,15 +19870,15 @@ void cr929_SIL_step(void) /* Saturate: '/Saturation1' */ if (cr929_SIL_B.params_k[1] > 45.0F) { - rtb_phi_c_j = 45.0F; + rtb_phi_c_o = 45.0F; } else if (cr929_SIL_B.params_k[1] < -45.0F) { - rtb_phi_c_j = -45.0F; + rtb_phi_c_o = -45.0F; } else { - rtb_phi_c_j = cr929_SIL_B.params_k[1]; + rtb_phi_c_o = cr929_SIL_B.params_k[1]; } /* End of Saturate: '/Saturation1' */ - cr929_SIL_B.phi_c_out = 0.0174532924F * rtb_phi_c_j; + cr929_SIL_B.phi_c_out = 0.0174532924F * rtb_phi_c_o; cr929_SIL_B.da_out = rtb_BusAssignment_o.da_c; cr929_SIL_B.use_da2dsp_out = (cr929_SIL_B.params_k[2] != 0.0F); @@ -19939,11 +19939,11 @@ void cr929_SIL_step(void) /* Saturate: '/Saturation' */ if (cr929_SIL_B.params_k[0] > 1.0F) { - rtb_phi_c_j = 1.0F; + rtb_phi_c_o = 1.0F; } else if (cr929_SIL_B.params_k[0] < 0.3F) { - rtb_phi_c_j = 0.3F; + rtb_phi_c_o = 0.3F; } else { - rtb_phi_c_j = cr929_SIL_B.params_k[0]; + rtb_phi_c_o = cr929_SIL_B.params_k[0]; } /* End of Saturate: '/Saturation' */ @@ -19958,7 +19958,7 @@ void cr929_SIL_step(void) } cr929_SIL_B.da_out = rtb_BusAssignment_o.max_da * - rtb_phi_c_j * dy; + rtb_phi_c_o * dy; cr929_SIL_B.roll_mode_m = ENUM_CSAS_ROLL_COMMAND; } else { cr929_SIL_B.da_out = rtb_BusAssignment_o.da_c; @@ -20005,17 +20005,17 @@ void cr929_SIL_step(void) */ /* Saturate: '/Saturation1' */ if (cr929_SIL_B.params_k[0] > 1.0F) { - rtb_phi_c_j = 1.0F; + rtb_phi_c_o = 1.0F; } else if (cr929_SIL_B.params_k[0] < -1.0F) { - rtb_phi_c_j = -1.0F; + rtb_phi_c_o = -1.0F; } else { - rtb_phi_c_j = cr929_SIL_B.params_k[0]; + rtb_phi_c_o = cr929_SIL_B.params_k[0]; } /* End of Saturate: '/Saturation1' */ /* Product: '/Product' */ - rtb_uDLookupTable_l = rtb_BusAssignment_o.max_dr * rtb_phi_c_j; + rtb_uDLookupTable_l = rtb_BusAssignment_o.max_dr * rtb_phi_c_o; /* Saturate: '/Saturation' */ if (cr929_SIL_B.params_k[1] > 3.0F) { @@ -20030,17 +20030,17 @@ void cr929_SIL_step(void) /* Saturate: '/Saturation2' */ if (cr929_SIL_B.params_k[2] > 40.0F) { - rtb_phi_c_j = 40.0F; + rtb_phi_c_o = 40.0F; } else if (cr929_SIL_B.params_k[2] < 5.0F) { - rtb_phi_c_j = 5.0F; + rtb_phi_c_o = 5.0F; } else { - rtb_phi_c_j = cr929_SIL_B.params_k[2]; + rtb_phi_c_o = cr929_SIL_B.params_k[2]; } /* End of Saturate: '/Saturation2' */ /* Gain: '/Gain1' */ - rtb_phi_c_j *= 0.0174532924F; + rtb_phi_c_o *= 0.0174532924F; /* Chart: '/rudder_stim' */ if (cr929_SIL_DW.temporalCounter_i1_l < MAX_uint32_T) { @@ -20078,8 +20078,8 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_two: - if ((cr929_SIL_B.BusAssignment_h.phi > rtb_phi_c_j) || - (cr929_SIL_B.BusAssignment_h.phi < -rtb_phi_c_j) || + if ((cr929_SIL_B.BusAssignment_h.phi > rtb_phi_c_o) || + (cr929_SIL_B.BusAssignment_h.phi < -rtb_phi_c_o) || (cr929_SIL_DW.temporalCounter_i1_l >= 1633U)) { cr929_SIL_DW.is_c10_maneuver = cr929_SIL_IN_two1_l; cr929_SIL_B.cmd_out_m = 0; @@ -20150,7 +20150,7 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* Gain: '/Gain1' */ - rtb_phi_c_j = 0.0174532924F * cr929_SIL_B.params_k[0]; + rtb_phi_c_o = 0.0174532924F * cr929_SIL_B.params_k[0]; /* Chart: '/AC_test' */ if (cr929_SIL_DW.temporalCounter_i1_d < MAX_uint32_T) { @@ -20171,15 +20171,15 @@ void cr929_SIL_step(void) /* Saturate: '/Saturation1' */ if (cr929_SIL_B.params_k[1] > 3.0F) { - rtb_phi_c_j = 3.0F; + rtb_phi_c_o = 3.0F; } else if (cr929_SIL_B.params_k[1] < 1.1F) { - rtb_phi_c_j = 1.1F; + rtb_phi_c_o = 1.1F; } else { - rtb_phi_c_j = cr929_SIL_B.params_k[1]; + rtb_phi_c_o = cr929_SIL_B.params_k[1]; } /* End of Saturate: '/Saturation1' */ - cr929_SIL_DW.max_phi = 1.0F / rtb_phi_c_j; + cr929_SIL_DW.max_phi = 1.0F / rtb_phi_c_o; cr929_SIL_DW.max_phi = acosf(cr929_SIL_DW.max_phi); } else { switch (cr929_SIL_DW.is_c11_maneuver) { @@ -20195,11 +20195,11 @@ void cr929_SIL_step(void) cr929_SIL_DW.temporalCounter_i1_d = 0U; cr929_SIL_B.phi_c = 0.0F; } else { - if (rtb_phi_c_j < 0.0F) { + if (rtb_phi_c_o < 0.0F) { rtb_uDLookupTable_l = -1.0F; - } else if (rtb_phi_c_j > 0.0F) { + } else if (rtb_phi_c_o > 0.0F) { rtb_uDLookupTable_l = 1.0F; - } else if (rtb_phi_c_j == 0.0F) { + } else if (rtb_phi_c_o == 0.0F) { rtb_uDLookupTable_l = 0.0F; } else { rtb_uDLookupTable_l = (rtNaNF); @@ -20208,7 +20208,7 @@ void cr929_SIL_step(void) cr929_SIL_B.phi_c = cr929_SIL_DW.max_phi * rtb_uDLookupTable_l - (real32_T)((real_T) cr929_SIL_DW.temporalCounter_i1_d * 0.003062) * - rtb_phi_c_j; + rtb_phi_c_o; } break; @@ -20235,7 +20235,7 @@ void cr929_SIL_step(void) } else { cr929_SIL_B.phi_c = (real32_T)((real_T) cr929_SIL_DW.temporalCounter_i1_d * 0.003062) * - rtb_phi_c_j; + rtb_phi_c_o; } break; } @@ -20267,7 +20267,7 @@ void cr929_SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/waypoint_task' */ - cr929_SIL_DW.temporalCounter_i1_fm = 0U; + cr929_SIL_DW.temporalCounter_i1_j = 0U; cr929_SIL_DW.is_active_c19_cr929_autopilot = 0U; cr929_SIL_DW.is_c19_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -20279,8 +20279,8 @@ void cr929_SIL_step(void) * ActionPort: '/Action Port' */ /* Chart: '/waypoint_task' */ - if (cr929_SIL_DW.temporalCounter_i1_fm < 511U) { - cr929_SIL_DW.temporalCounter_i1_fm++; + if (cr929_SIL_DW.temporalCounter_i1_j < 511U) { + cr929_SIL_DW.temporalCounter_i1_j++; } if (cr929_SIL_DW.is_active_c19_cr929_autopilot == 0U) { @@ -20301,32 +20301,32 @@ void cr929_SIL_step(void) } else { switch (cr929_SIL_DW.is_c19_cr929_autopilot) { case cr929_SIL_IN_Cruise: - if ((cr929_SIL_DW.temporalCounter_i1_fm >= 327U) && + if ((cr929_SIL_DW.temporalCounter_i1_j >= 327U) && rtb_BusAssignment_o.autocont && (cr929_SIL_B.UnitDelay.dist_offset < rtb_BusAssignment_o.dist_trans)) { cr929_SIL_DW.is_c19_cr929_autopilot = - cr929_SIL_IN_NextWP_d; - rtb_out_me = cr929_SIL_B.WP_out + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + cr929_SIL_IN_NextWP_g; + rtb_out_de = cr929_SIL_B.WP_out + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - cr929_SIL_B.WP_out = (uint16_T)rtb_out_me; + cr929_SIL_B.WP_out = (uint16_T)rtb_out_de; } else { cr929_SIL_B.CSAS_yaw_out = rtb_BusAssignment_o.CSAS_yaw; cr929_SIL_B.WP_out = rtb_BusAssignment_o.WP_cur; } break; - case cr929_SIL_IN_NextWP_d: + case cr929_SIL_IN_NextWP_g: break; default: cr929_SIL_B.mode = ENUM_mode_AUTO_MISSION; cr929_SIL_B.use_mission_traj = true; cr929_SIL_DW.is_c19_cr929_autopilot = cr929_SIL_IN_Cruise; - cr929_SIL_DW.temporalCounter_i1_fm = 0U; + cr929_SIL_DW.temporalCounter_i1_j = 0U; cr929_SIL_B.WP_out = rtb_BusAssignment_o.WP_cur; cr929_SIL_B.AFCS_VERT_out = ENUM_AFCS_VERT_VNAV2THT; cr929_SIL_B.AFCS_LAT_out = ENUM_AFCS_LAT_LNAV2PHI; @@ -20399,15 +20399,15 @@ void cr929_SIL_step(void) * Constant: '/Constant BP' * Sum: '/subtract' */ - rtb_phi_c_j = ((real32_T)rtb_Merge_cc.rc.chan_raw[8] - 1500.0F) * + rtb_phi_c_o = ((real32_T)rtb_Merge_cc.rc.chan_raw[8] - 1500.0F) * 0.0025F; /* Saturate: '/Saturation' */ - if (rtb_phi_c_j > 1.0F) { - rtb_phi_c_j = 1.0F; + if (rtb_phi_c_o > 1.0F) { + rtb_phi_c_o = 1.0F; } else { - if (rtb_phi_c_j < -1.0F) { - rtb_phi_c_j = -1.0F; + if (rtb_phi_c_o < -1.0F) { + rtb_phi_c_o = -1.0F; } } @@ -20435,16 +20435,16 @@ void cr929_SIL_step(void) cr929_SIL_B.Merge = rtb_Merge_cc; /* Switch: '/Switch1' */ - if (rtb_phi_c_j > 0.0F) { + if (rtb_phi_c_o > 0.0F) { /* BusAssignment: '/Bus Assignment' incorporates: * Gain: '/gain7' */ - cr929_SIL_B.Merge.dh_c = cr929_SIL_P.max_dh * rtb_phi_c_j; + cr929_SIL_B.Merge.dh_c = cr929_SIL_P.max_dh * rtb_phi_c_o; } else { /* BusAssignment: '/Bus Assignment' incorporates: * Gain: '/gain8' */ - cr929_SIL_B.Merge.dh_c = -cr929_SIL_P.min_dh * rtb_phi_c_j; + cr929_SIL_B.Merge.dh_c = -cr929_SIL_P.min_dh * rtb_phi_c_o; } /* End of Switch: '/Switch1' */ @@ -20476,11 +20476,11 @@ void cr929_SIL_step(void) /* ManualSwitch: '/Manual Switch' incorporates: * Constant: '/Constant2' */ - rtb_phi_c_j = floorf(cr929_SIL_P.flap_level); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = floorf(cr929_SIL_P.flap_level); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 256.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 256.0F); } /* BusAssignment: '/Bus Assignment' incorporates: @@ -20489,9 +20489,9 @@ void cr929_SIL_step(void) * Switch: '/Switch2' * Switch: '/Switch3' */ - cr929_SIL_B.Merge.flap_lever = (uint8_T)(rtb_phi_c_j < 0.0F ? (int32_T) - (uint8_T)-(int8_T)(uint8_T)-rtb_phi_c_j : (int32_T)(uint8_T) - rtb_phi_c_j); + cr929_SIL_B.Merge.flap_lever = (uint8_T)(rtb_phi_c_o < 0.0F ? (int32_T) + (uint8_T)-(int8_T)(uint8_T)-rtb_phi_c_o : (int32_T)(uint8_T) + rtb_phi_c_o); cr929_SIL_B.Merge.use_mix = true; cr929_SIL_B.Merge.parachute_c = (rtb_Merge_cc.rc.chan_raw[11] > 1500); cr929_SIL_B.Merge.anti_stall_parachute_c = (rtb_Merge_cc.rc.chan_raw[12] @@ -20512,7 +20512,7 @@ void cr929_SIL_step(void) mode = 0U; rtb_LugV1_e_idx_0 = 0.0; rtb_Divide6 = 0.0; - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = 0.0F; rtb_uDLookupTable_l = 0.0F; elevation_baseline = 0.0F; rtb_Saturation_fs = 0.0F; @@ -20531,15 +20531,15 @@ void cr929_SIL_step(void) rtb_LugV1_e_idx_0 = (real_T)dummyMission[cur_np - 1].latlon[0] * 1.0E-7; rtb_Divide6 = (real_T)dummyMission[cur_np - 1].latlon[1] * 1.0E-7; - rtb_phi_c_j = dummyMission[cur_np - 1].params[4]; + rtb_phi_c_o = dummyMission[cur_np - 1].params[4]; i = MAV_MAV_FRAME_GLOBAL_RELATIVE_ALT; if (dummyMission[cur_np - 1].frame == i) { - rtb_phi_c_j = dummyMission[cur_np - 1].params[4] + + rtb_phi_c_o = dummyMission[cur_np - 1].params[4] + cr929_SIL_B.Merge.base_asl; } else { if (dummyMission[cur_np - 1].frame == (int32_T) MAV_MAV_FRAME_GLOBAL_RELATIVE_ALT_INT) { - rtb_phi_c_j = dummyMission[cur_np - 1].params[4] + + rtb_phi_c_o = dummyMission[cur_np - 1].params[4] + cr929_SIL_B.Merge.base_asl; } } @@ -20601,7 +20601,7 @@ void cr929_SIL_step(void) * rtb_WhiteNoise_idx_0); dist = sqrtf(dy * dy + heading * heading); rtb_uDLookupTable_l = rt_atan2f_snf(dy, heading); - elevation_baseline = rt_atan2f_snf(rtb_phi_c_j - + elevation_baseline = rt_atan2f_snf(rtb_phi_c_o - elevation_baseline, dist); } @@ -20632,7 +20632,7 @@ void cr929_SIL_step(void) dist2 = sqrtf(dy * dy + heading * heading); heading = rt_atan2f_snf(dy, heading); elevation_baseline2 = rt_atan2f_snf(elevation_baseline2 - - rtb_phi_c_j, dist2); + rtb_phi_c_o, dist2); if (mode == 1) { dy = heading - rtb_uDLookupTable_l; if (dy > 3.1415926535897931) { @@ -20676,7 +20676,7 @@ void cr929_SIL_step(void) */ cr929_SIL_B.Merge.traj.lat1 = rtb_LugV1_e_idx_0; cr929_SIL_B.Merge.traj.lon1 = rtb_Divide6; - cr929_SIL_B.Merge.traj.h1 = rtb_phi_c_j; + cr929_SIL_B.Merge.traj.h1 = rtb_phi_c_o; cr929_SIL_B.Merge.traj.azimuth = rtb_uDLookupTable_l; cr929_SIL_B.Merge.traj.elevation_baseline = elevation_baseline; cr929_SIL_B.Merge.traj.radius = rtb_Saturation_fs; @@ -20702,19 +20702,19 @@ void cr929_SIL_step(void) * Math: '/Math Function1' * Sum: '/Sum' */ - rtb_phi_c_j = cr929_SIL_B.BusAssignment_h.v_n * + rtb_phi_c_o = cr929_SIL_B.BusAssignment_h.v_n * cr929_SIL_B.BusAssignment_h.v_n + cr929_SIL_B.BusAssignment_h.v_e * cr929_SIL_B.BusAssignment_h.v_e; /* End of Outputs for SubSystem: '/case_circle' */ /* Sum: '/Sum' */ - rtb_uDLookupTable_l = rtb_phi_c_j; + rtb_uDLookupTable_l = rtb_phi_c_o; /* Saturate: '/Saturation' incorporates: * Sum: '/Sum' */ - if (rtb_phi_c_j <= 0.001F) { + if (rtb_phi_c_o <= 0.001F) { rtb_uDLookupTable_l = 0.001F; } @@ -20832,7 +20832,7 @@ void cr929_SIL_step(void) cr929_SIL_B.bearing_base = cr929_SIL_B.bearing + 1.57079637F; /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' */ - cr929_SIL_B.omega_des = -sqrtf(rtb_phi_c_j) / dy; + cr929_SIL_B.omega_des = -sqrtf(rtb_phi_c_o) / dy; } while (cr929_SIL_B.bearing_base > 3.1415926535897931) { @@ -20844,19 +20844,19 @@ void cr929_SIL_step(void) } if (rtb_ResetControlLaw_out) { - rtb_phi_c_j = cr929_SIL_B.Merge.traj.heading - + rtb_phi_c_o = cr929_SIL_B.Merge.traj.heading - cr929_SIL_B.bearing_base; } else { - rtb_phi_c_j = cr929_SIL_B.bearing_base - + rtb_phi_c_o = cr929_SIL_B.bearing_base - cr929_SIL_B.Merge.traj.heading; } - while (rtb_phi_c_j > 6.2831853071795862) { - rtb_phi_c_j -= 6.28318548F; + while (rtb_phi_c_o > 6.2831853071795862) { + rtb_phi_c_o -= 6.28318548F; } - while (rtb_phi_c_j < 0.0F) { - rtb_phi_c_j += 6.28318548F; + while (rtb_phi_c_o < 0.0F) { + rtb_phi_c_o += 6.28318548F; } cr929_SIL_B.horiz_offset = sqrtf(dist + elevation_baseline) - dy; @@ -20879,7 +20879,7 @@ void cr929_SIL_step(void) /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: * MATLAB Function: '/nav_circle' */ - cr929_SIL_B.dist_offset = dy * rtb_phi_c_j; + cr929_SIL_B.dist_offset = dy * rtb_phi_c_o; /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: * MATLAB Function: '/nav_circle' @@ -20952,7 +20952,7 @@ void cr929_SIL_step(void) cr929_SIL_B.BusAssignment_h.lat)); elevation_baseline = (real32_T)((cr929_SIL_B.Merge.traj.lon1 - cr929_SIL_B.BusAssignment_h.lon) * (111321.543 * rtb_LugV1_e_idx_0)); - rtb_phi_c_j = cr929_SIL_B.Merge.traj.h1 - rtb_Saturation_fs; + rtb_phi_c_o = cr929_SIL_B.Merge.traj.h1 - rtb_Saturation_fs; dy = cr929_SIL_B.Merge.traj.heading - cr929_SIL_B.Merge.traj.azimuth; if (dy > 3.1415926535897931) { dy -= 6.28318548F; @@ -20981,10 +20981,10 @@ void cr929_SIL_step(void) tan_elv2 = tanf(cr929_SIL_B.Merge.traj.elevation_baseline2); lat_s = dist - dist2 * dy; lon_s = elevation_baseline - elevation_baseline2 * dy; - h_s = rtb_phi_c_j - dy * tan_angle; + h_s = rtb_phi_c_o - dy * tan_angle; lat_e = cos_hdg * dy + dist; lon_e = sin_hdg * dy + elevation_baseline; - cr929_SIL_B.ht_diff = dy * tan_elv2 + rtb_phi_c_j; + cr929_SIL_B.ht_diff = dy * tan_elv2 + rtb_phi_c_o; tan_elv3_tmp = cr929_SIL_B.Merge.traj.radius * heading; heading = (cr929_SIL_B.ht_diff - h_s) / tan_elv3_tmp; cr929_SIL_B.elevation_base = atanf(heading); @@ -21112,7 +21112,7 @@ void cr929_SIL_step(void) /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: * MATLAB Function: '/nav_corner' */ - cr929_SIL_B.elevation = rt_atan2f_snf(rtb_phi_c_j, cr929_SIL_B.dist); + cr929_SIL_B.elevation = rt_atan2f_snf(rtb_phi_c_o, cr929_SIL_B.dist); /* Sum: '/Sum' incorporates: * Constant: '/Constant' @@ -21138,14 +21138,14 @@ void cr929_SIL_step(void) cr929_SIL_B.ht_diff = cr929_SIL_B.Merge.traj.h1 - rtb_Saturation_fs; cr929_SIL_B.dist = sqrtf(dist * dist + elevation_baseline * elevation_baseline); - rtb_phi_c_j = cosf(cr929_SIL_B.Merge.traj.azimuth); + rtb_phi_c_o = cosf(cr929_SIL_B.Merge.traj.azimuth); dy = sinf(cr929_SIL_B.Merge.traj.azimuth); - cr929_SIL_B.dist_offset = dist * rtb_phi_c_j + elevation_baseline * dy; + cr929_SIL_B.dist_offset = dist * rtb_phi_c_o + elevation_baseline * dy; /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: * MATLAB Function: '/nav_line' */ - cr929_SIL_B.rdot = rtb_phi_c_j * cr929_SIL_B.BusAssignment_h.v_n + dy * + cr929_SIL_B.rdot = rtb_phi_c_o * cr929_SIL_B.BusAssignment_h.v_n + dy * cr929_SIL_B.BusAssignment_h.v_e; /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: @@ -21156,7 +21156,7 @@ void cr929_SIL_step(void) /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: * MATLAB Function: '/nav_line' */ - cr929_SIL_B.horiz_offset = dist * dy - elevation_baseline * rtb_phi_c_j; + cr929_SIL_B.horiz_offset = dist * dy - elevation_baseline * rtb_phi_c_o; /* SignalConversion: '/BusConversion_InsertedFor_nav_out_at_inport_0' incorporates: * MATLAB Function: '/nav_line' @@ -21394,11 +21394,11 @@ void cr929_SIL_step(void) * Outport: '/traj' */ if (cr929_SIL_Y.traj.elevation_baseline > 1.5F) { - rtb_phi_c_j = 1.5F; + rtb_phi_c_o = 1.5F; } else if (cr929_SIL_Y.traj.elevation_baseline < -1.5F) { - rtb_phi_c_j = -1.5F; + rtb_phi_c_o = -1.5F; } else { - rtb_phi_c_j = cr929_SIL_Y.traj.elevation_baseline; + rtb_phi_c_o = cr929_SIL_Y.traj.elevation_baseline; } /* End of Saturate: '/Saturation' */ @@ -21407,7 +21407,7 @@ void cr929_SIL_step(void) * Outport: '/traj' * Trigonometry: '/atan' */ - rtb_Merge1_er = tanf(rtb_phi_c_j) * cr929_SIL_Y.traj.v_g; + rtb_Merge1_er = tanf(rtb_phi_c_o) * cr929_SIL_Y.traj.v_g; rtb_Merge_i = cr929_SIL_Y.traj.vert_offset; /* End of Outputs for SubSystem: '/VNAV' */ @@ -21619,18 +21619,18 @@ void cr929_SIL_step(void) * Switch: '/Switch' */ if (cr929_SIL_B.BusAssignment_h.tht > cr929_SIL_P.max_tht) { - rtb_phi_c_j = cr929_SIL_P.max_tht; + rtb_phi_c_o = cr929_SIL_P.max_tht; } else if (cr929_SIL_B.BusAssignment_h.tht < cr929_SIL_P.min_tht) { /* Switch: '/Switch' incorporates: * Constant: '/Constant Single64' */ - rtb_phi_c_j = cr929_SIL_P.min_tht; + rtb_phi_c_o = cr929_SIL_P.min_tht; } else { - rtb_phi_c_j = cr929_SIL_B.BusAssignment_h.tht; + rtb_phi_c_o = cr929_SIL_B.BusAssignment_h.tht; } /* End of Switch: '/Switch2' */ - cr929_SIL_DW.Delay_DSTATE_ku = rtb_phi_c_j - rtb_uDLookupTable_l; + cr929_SIL_DW.Delay_DSTATE_ku = rtb_phi_c_o - rtb_uDLookupTable_l; } /* Sum: '/Sum1' incorporates: @@ -21899,18 +21899,18 @@ void cr929_SIL_step(void) * Switch: '/Switch' */ if (cr929_SIL_B.BusAssignment_h.tht > cr929_SIL_P.max_tht) { - rtb_phi_c_j = cr929_SIL_P.max_tht; + rtb_phi_c_o = cr929_SIL_P.max_tht; } else if (cr929_SIL_B.BusAssignment_h.tht < cr929_SIL_P.min_tht) { /* Switch: '/Switch' incorporates: * Constant: '/Constant Single64' */ - rtb_phi_c_j = cr929_SIL_P.min_tht; + rtb_phi_c_o = cr929_SIL_P.min_tht; } else { - rtb_phi_c_j = cr929_SIL_B.BusAssignment_h.tht; + rtb_phi_c_o = cr929_SIL_B.BusAssignment_h.tht; } /* End of Switch: '/Switch2' */ - cr929_SIL_DW.Delay_DSTATE_ey = rtb_phi_c_j - rtb_qbarSc; + cr929_SIL_DW.Delay_DSTATE_ey = rtb_phi_c_o - rtb_qbarSc; } /* Sum: '/Sum1' incorporates: @@ -22386,11 +22386,11 @@ void cr929_SIL_step(void) * Constant: '/Constant Single7' */ if (cr929_SIL_P.max_phi > 1.04712045F) { - rtb_phi_c_j = 1.04712045F; + rtb_phi_c_o = 1.04712045F; } else if (cr929_SIL_P.max_phi < 0.0872600377F) { - rtb_phi_c_j = 0.0872600377F; + rtb_phi_c_o = 0.0872600377F; } else { - rtb_phi_c_j = cr929_SIL_P.max_phi; + rtb_phi_c_o = cr929_SIL_P.max_phi; } /* End of Saturate: '/Saturation max_phi' */ @@ -22399,7 +22399,7 @@ void cr929_SIL_step(void) * Constant: '/Constant Single42' * Trigonometry: '/max_ns' */ - rtb_Product1_ox = 9.8F * tanf(rtb_phi_c_j); + rtb_Product1_ox = 9.8F * tanf(rtb_phi_c_o); /* Saturate: '/pos v_g' incorporates: * Outport: '/traj' @@ -22580,7 +22580,7 @@ void cr929_SIL_step(void) * Constant: '/Constant BP' * Constant: '/Constant1' */ - rtb_out_lm = rtb_Merge_o_gear_up; + rtb_out_mz = rtb_Merge_o_gear_up; rtb_Merge_ay_switch_video = rtb_Merge_o_switch_video; rtb_posv_g = rtb_MaxHdot; rtb_Saturationcos = rtb_Switch2_l5; @@ -22785,7 +22785,7 @@ void cr929_SIL_step(void) * Chart: '/psi_err3' */ cr929_SIL_psi_err_Reset(&rtb_out_kk); - cr929_SIL_psi_err_Reset(&rtb_out_gh); + cr929_SIL_psi_err_Reset(&rtb_out_ghq); cr929_SIL_psi_err_Reset(&rtb_out_cy); /* End of SystemReset for SubSystem: '/LNAV2PSIDOT' */ @@ -22898,21 +22898,21 @@ void cr929_SIL_step(void) cr929_SIL_Y.traj.bearing_baseline; /* Chart: '/psi_err1' */ - cr929_SIL_psi_err(rtb_Sum1_m2, &rtb_out_gh); + cr929_SIL_psi_err(rtb_Sum1_m2, &rtb_out_ghq); /* Switch: '/Switch' incorporates: * Outport: '/traj' */ if (cr929_SIL_Y.traj.v_g > 3.0F) { - rtb_phi_c_j = rtb_out_kk; + rtb_phi_c_o = rtb_out_kk; } else { - rtb_phi_c_j = rtb_out_gh; + rtb_phi_c_o = rtb_out_ghq; } /* End of Switch: '/Switch' */ /* Sum: '/Sum2' */ - rtb_qbarSc -= rtb_phi_c_j; + rtb_qbarSc -= rtb_phi_c_o; /* Switch: '/Switch2' incorporates: * Constant: '/Constant1' @@ -22968,7 +22968,7 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' incorporates: * Constant: '/Constant1' */ - rtb_out_lm = rtb_Merge_o_gear_up; + rtb_out_mz = rtb_Merge_o_gear_up; rtb_Merge_ay_switch_video = rtb_Merge_o_switch_video; rtb_posv_g = rtb_MaxHdot; rtb_Saturationcos = rtb_Switch2_l5; @@ -23164,7 +23164,7 @@ void cr929_SIL_step(void) /* Outputs for IfAction SubSystem: '/OFF' incorporates: * ActionPort: '/Action Port' */ - rtb_out_lm = rtb_Merge_o_gear_up; + rtb_out_mz = rtb_Merge_o_gear_up; rtb_Merge_ay_switch_video = rtb_Merge_o_switch_video; rtb_posv_g = rtb_MaxHdot; rtb_Saturationcos = rtb_Switch2_l5; @@ -23426,11 +23426,11 @@ void cr929_SIL_step(void) /* Outputs for Atomic SubSystem: '/phi_ctrl' */ /* Saturate: '/Saturation' */ if (cr929_SIL_B.BusAssignment_h.tht > 1.0F) { - rtb_phi_c_j = 1.0F; + rtb_phi_c_o = 1.0F; } else if (cr929_SIL_B.BusAssignment_h.tht < -1.0F) { - rtb_phi_c_j = -1.0F; + rtb_phi_c_o = -1.0F; } else { - rtb_phi_c_j = cr929_SIL_B.BusAssignment_h.tht; + rtb_phi_c_o = cr929_SIL_B.BusAssignment_h.tht; } /* End of Saturate: '/Saturation' */ @@ -23450,7 +23450,7 @@ void cr929_SIL_step(void) rtb_MaxHdot = (rtb_Product1_ox - cr929_SIL_B.BusAssignment_h.phi) * cr929_SIL_P.k_phi - (cr929_SIL_B.BusAssignment_h.q * sinf (cr929_SIL_B.BusAssignment_h.phi) + cr929_SIL_B.BusAssignment_h.r * - cosf(cr929_SIL_B.BusAssignment_h.phi)) * tanf(rtb_phi_c_j); + cosf(cr929_SIL_B.BusAssignment_h.phi)) * tanf(rtb_phi_c_o); /* Gain: '/neg1' incorporates: * Constant: '/Constant Single10' @@ -23717,7 +23717,7 @@ void cr929_SIL_step(void) /* End of Switch: '/Switch2' */ /* BusAssignment: '/Bus Assignment' */ - cr929_SIL_B.Merge_l.gear_up = rtb_out_lm; + cr929_SIL_B.Merge_l.gear_up = rtb_out_mz; cr929_SIL_B.Merge_l.switch_video = rtb_Merge_ay_switch_video; cr929_SIL_B.Merge_l.steer_c = rtb_posv_g; cr929_SIL_B.Merge_l.de_c = rtb_Saturationcos; @@ -23954,7 +23954,7 @@ void cr929_SIL_step(void) /* End of Switch: '/Switch2' */ /* BusAssignment: '/Bus Assignment' */ - cr929_SIL_B.Merge_l.gear_up = rtb_out_lm; + cr929_SIL_B.Merge_l.gear_up = rtb_out_mz; cr929_SIL_B.Merge_l.switch_video = rtb_Merge_ay_switch_video; cr929_SIL_B.Merge_l.steer_c = rtb_posv_g; cr929_SIL_B.Merge_l.de_c = rtb_Saturationcos; @@ -24154,7 +24154,7 @@ void cr929_SIL_step(void) /* BusAssignment: '/Bus Assignment' incorporates: * Constant: '/Constant' */ - cr929_SIL_B.Merge_l.gear_up = rtb_out_lm; + cr929_SIL_B.Merge_l.gear_up = rtb_out_mz; cr929_SIL_B.Merge_l.switch_video = rtb_Merge_ay_switch_video; cr929_SIL_B.Merge_l.steer_c = rtb_posv_g; cr929_SIL_B.Merge_l.de_c = rtb_Saturationcos; @@ -26284,11 +26284,11 @@ void cr929_SIL_step(void) /* Saturate: '/Saturation' */ if (cr929_SIL_B.BusAssignment_h.tht > 1.0F) { - rtb_phi_c_j = 1.0F; + rtb_phi_c_o = 1.0F; } else if (cr929_SIL_B.BusAssignment_h.tht < -1.0F) { - rtb_phi_c_j = -1.0F; + rtb_phi_c_o = -1.0F; } else { - rtb_phi_c_j = cr929_SIL_B.BusAssignment_h.tht; + rtb_phi_c_o = cr929_SIL_B.BusAssignment_h.tht; } /* End of Saturate: '/Saturation' */ @@ -26301,7 +26301,7 @@ void cr929_SIL_step(void) * Trigonometry: '/cos(tht)' * Trigonometry: '/sin(phi)' */ - rtb_Product_hl = (rtb_Merge_c_psidot_c * cosf(rtb_phi_c_j) - + rtb_Product_hl = (rtb_Merge_c_psidot_c * cosf(rtb_phi_c_o) - cr929_SIL_B.BusAssignment_h.q * sinf(rtb_Switch2_pl)) / cosf(rtb_Switch2_pl); @@ -26353,9 +26353,9 @@ void cr929_SIL_step(void) /* Saturate: '/Saturation1' */ if (cr929_SIL_B.BusAssignment_h.qbar <= 20.0F) { - rtb_phi_c_j = 20.0F; + rtb_phi_c_o = 20.0F; } else { - rtb_phi_c_j = cr929_SIL_B.BusAssignment_h.qbar; + rtb_phi_c_o = cr929_SIL_B.BusAssignment_h.qbar; } /* End of Saturate: '/Saturation1' */ @@ -26365,7 +26365,7 @@ void cr929_SIL_step(void) * Constant: '/Constant Single50' * Constant: '/Constant Single9' */ - rtb_saturation_g = cr929_SIL_P.m / rtb_phi_c_j / cr929_SIL_P.RefArea / + rtb_saturation_g = cr929_SIL_P.m / rtb_phi_c_o / cr929_SIL_P.RefArea / cr929_SIL_P.Csb; /* Delay: '/Delay' incorporates: @@ -26406,11 +26406,11 @@ void cr929_SIL_step(void) /* Saturate: '/saturation1' */ if (cr929_SIL_B.BusAssignment_h.phi > 1.0F) { - rtb_phi_c_j = 1.0F; + rtb_phi_c_o = 1.0F; } else if (cr929_SIL_B.BusAssignment_h.phi < -1.0F) { - rtb_phi_c_j = -1.0F; + rtb_phi_c_o = -1.0F; } else { - rtb_phi_c_j = cr929_SIL_B.BusAssignment_h.phi; + rtb_phi_c_o = cr929_SIL_B.BusAssignment_h.phi; } /* End of Saturate: '/saturation1' */ @@ -26443,7 +26443,7 @@ void cr929_SIL_step(void) * Trigonometry: '/cos1' * Trigonometry: '/cos2' */ - rtb_Switch2_pl = tanf(rtb_phi_c_j) * cosf(dy) * 9.8F / rtb_Switch2_pl + rtb_Switch2_pl = tanf(rtb_phi_c_o) * cosf(dy) * 9.8F / rtb_Switch2_pl + rtb_Product_ba; /* Switch: '/Switch2' incorporates: @@ -26475,9 +26475,9 @@ void cr929_SIL_step(void) * Outport: '/traj' */ if (cr929_SIL_Y.traj.v_g <= 10.0F) { - rtb_phi_c_j = 10.0F; + rtb_phi_c_o = 10.0F; } else { - rtb_phi_c_j = cr929_SIL_Y.traj.v_g; + rtb_phi_c_o = cr929_SIL_Y.traj.v_g; } /* End of Saturate: '/Saturation' */ @@ -26490,7 +26490,7 @@ void cr929_SIL_step(void) * Sum: '/Sum' * Sum: '/Sum4' */ - cr929_SIL_DW.Delay_DSTATE_ik = 1.0F / rtb_saturation_g / rtb_phi_c_j * + cr929_SIL_DW.Delay_DSTATE_ik = 1.0F / rtb_saturation_g / rtb_phi_c_o * (0.003062F * rtb_Product_hl) + (rtb_Product_ba / rtb_saturation_g - rtb_Product_hl); @@ -28586,14 +28586,14 @@ void cr929_SIL_step(void) /* Chart: '/pos_sel' incorporates: * Constant: '/Constant5' */ - if (cr929_SIL_DW.temporalCounter_i1_a < MAX_uint32_T) { - cr929_SIL_DW.temporalCounter_i1_a++; + if (cr929_SIL_DW.temporalCounter_i1_o < MAX_uint32_T) { + cr929_SIL_DW.temporalCounter_i1_o++; } if (cr929_SIL_DW.is_active_c25_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c25_cr929_autopilot = 1U; cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos3; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_flap = 0.523560226F; cr929_SIL_B.outer_flap = 0.572774887F; cr929_SIL_B.inner_spoiler = 0.139616057F; @@ -28601,19 +28601,19 @@ void cr929_SIL_step(void) } else { switch (cr929_SIL_DW.is_c25_cr929_autopilot) { case cr929_SIL_IN_Pos1: - if ((cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && (rtb_Merge_g.flap_lever == 0)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_spoiler0; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_spoiler = 0.0F; cr929_SIL_B.outer_spoiler = 0.0F; } else { - if ((cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && (rtb_Merge_g.flap_lever >= 2)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_flap2; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_flap = 0.383944154F; cr929_SIL_B.outer_flap = 0.420069814F; } @@ -28621,19 +28621,19 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_Pos2: - if ((cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && (rtb_Merge_g.flap_lever <= 1)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_spoiler1; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_spoiler = 0.0698080286F; cr929_SIL_B.outer_spoiler = 0.0767888278F; } else { - if ((cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && (rtb_Merge_g.flap_lever >= 3)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_flap3; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_flap = 0.523560226F; cr929_SIL_B.outer_flap = 0.572774887F; } @@ -28641,19 +28641,19 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_Pos3: - if ((cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && (rtb_Merge_g.flap_lever <= 2)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_spoiler2; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_spoiler = 0.122164048F; cr929_SIL_B.outer_spoiler = 0.13438046F; } else { - if ((cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && (rtb_Merge_g.flap_lever >= 4)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_flap4; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_flap = 0.698080301F; cr929_SIL_B.outer_flap = 0.76369983F; } @@ -28661,21 +28661,21 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_Pos6: - if ((cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && (rtb_Merge_g.flap_lever <= 3)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_spoiler3; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_spoiler = 0.139616057F; cr929_SIL_B.outer_spoiler = 0.153577656F; } break; case cr929_SIL_IN_flap1: - if (cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos1; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_flap = 0.226876095F; cr929_SIL_B.outer_flap = 0.248167545F; cr929_SIL_B.inner_spoiler = 0.0698080286F; @@ -28684,10 +28684,10 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_flap2: - if (cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos2; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_flap = 0.383944154F; cr929_SIL_B.outer_flap = 0.420069814F; cr929_SIL_B.inner_spoiler = 0.122164048F; @@ -28696,10 +28696,10 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_flap3: - if (cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos3; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_flap = 0.523560226F; cr929_SIL_B.outer_flap = 0.572774887F; cr929_SIL_B.inner_spoiler = 0.139616057F; @@ -28708,10 +28708,10 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_flap4: - if (cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos6; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_flap = 0.698080301F; cr929_SIL_B.outer_flap = 0.76369983F; cr929_SIL_B.inner_spoiler = 0.191972077F; @@ -28720,21 +28720,21 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_pos0: - if ((cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if ((cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) && (rtb_Merge_g.flap_lever >= 1)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_flap1; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_flap = 0.226876095F; cr929_SIL_B.outer_flap = 0.248167545F; } break; case cr929_SIL_IN_spoiler0: - if (cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_pos0; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_spoiler = 0.0F; cr929_SIL_B.outer_spoiler = 0.0F; cr929_SIL_B.inner_flap = 0.0F; @@ -28743,10 +28743,10 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_spoiler1: - if (cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos1; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_flap = 0.226876095F; cr929_SIL_B.outer_flap = 0.248167545F; cr929_SIL_B.inner_spoiler = 0.0698080286F; @@ -28755,10 +28755,10 @@ void cr929_SIL_step(void) break; case cr929_SIL_IN_spoiler2: - if (cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos2; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_flap = 0.383944154F; cr929_SIL_B.outer_flap = 0.420069814F; cr929_SIL_B.inner_spoiler = 0.122164048F; @@ -28767,10 +28767,10 @@ void cr929_SIL_step(void) break; default: - if (cr929_SIL_DW.temporalCounter_i1_a >= (uint32_T)ceil + if (cr929_SIL_DW.temporalCounter_i1_o >= (uint32_T)ceil (cr929_SIL_P.lever_time / 0.003062 - 3.062E-11)) { cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_Pos3; - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_B.inner_flap = 0.523560226F; cr929_SIL_B.outer_flap = 0.572774887F; cr929_SIL_B.inner_spoiler = 0.139616057F; @@ -28879,18 +28879,18 @@ void cr929_SIL_step(void) * Delay: '/Delay' * Sum: '/Sum1' */ - rtb_phi_c_j = rtb_Merge_g.dsp_c + cr929_SIL_DW.Delay_DSTATE_l; + rtb_phi_c_o = rtb_Merge_g.dsp_c + cr929_SIL_DW.Delay_DSTATE_l; /* BusAssignment: '/Bus Assignment1' incorporates: * Delay: '/Delay' * Sum: '/Sum' */ - cr929_SIL_B.Merge_i.dspli_c[0] = rtb_phi_c_j; - cr929_SIL_B.Merge_i.dspli_c[1] = rtb_phi_c_j; - cr929_SIL_B.Merge_i.dspli_c[2] = rtb_phi_c_j; - cr929_SIL_B.Merge_i.dspri_c[0] = rtb_phi_c_j; - cr929_SIL_B.Merge_i.dspri_c[1] = rtb_phi_c_j; - cr929_SIL_B.Merge_i.dspri_c[2] = rtb_phi_c_j; + cr929_SIL_B.Merge_i.dspli_c[0] = rtb_phi_c_o; + cr929_SIL_B.Merge_i.dspli_c[1] = rtb_phi_c_o; + cr929_SIL_B.Merge_i.dspli_c[2] = rtb_phi_c_o; + cr929_SIL_B.Merge_i.dspri_c[0] = rtb_phi_c_o; + cr929_SIL_B.Merge_i.dspri_c[1] = rtb_phi_c_o; + cr929_SIL_B.Merge_i.dspri_c[2] = rtb_phi_c_o; for (i = 0; i < 5; i++) { cr929_SIL_B.Merge_i.dsplo_c[i] = rtb_Sum2_h[i]; cr929_SIL_B.Merge_i.dspro_c[i] = rtb_Sum3_e[i]; @@ -29225,17 +29225,17 @@ void cr929_SIL_step(void) } } else { if (cr929_SIL_sf_msg_pop_mission_item()) { - rtb_out_lm = ((((mavlink_mission_item_int_t *) + rtb_out_mz = ((((mavlink_mission_item_int_t *) cr929_SIL_DW.mission_item_msgDataPtr)->mission_type == cr929_SIL_B.mission_type) && (((mavlink_mission_item_int_t *) cr929_SIL_DW.mission_item_msgDataPtr)->seq == cr929_SIL_B.seq)); } else { - rtb_out_lm = false; + rtb_out_mz = false; } - if (rtb_out_lm) { + if (rtb_out_mz) { cr929_SIL_B.frame = ((mavlink_mission_item_int_t *) cr929_SIL_DW.mission_item_msgDataPtr)->frame; cr929_SIL_B.command = ((mavlink_mission_item_int_t *) @@ -29267,12 +29267,12 @@ void cr929_SIL_step(void) cr929_SIL_DW.f.param = cr929_SIL_B.param1; cr929_SIL_DW.f.latlon[0] = cr929_SIL_B.x; cr929_SIL_DW.f.latlon[1] = cr929_SIL_B.y; - rtb_out_me = cr929_SIL_B.seq + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = cr929_SIL_B.seq + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - dummyFenceCount = (uint16_T)rtb_out_me; + dummyFenceCount = (uint16_T)rtb_out_de; dummyFence[dummyFenceCount - 1] = cr929_SIL_DW.f; } else { cr929_SIL_B.ack_g = 1U; @@ -29285,12 +29285,12 @@ void cr929_SIL_step(void) cr929_SIL_DW.r.latlon[0] = cr929_SIL_B.x; cr929_SIL_DW.r.latlon[1] = cr929_SIL_B.y; cr929_SIL_DW.r.alt = cr929_SIL_B.z; - rtb_out_me = cr929_SIL_B.seq + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = cr929_SIL_B.seq + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - dummyRallyCount = (uint16_T)rtb_out_me; + dummyRallyCount = (uint16_T)rtb_out_de; dummyRally[dummyRallyCount - 1] = cr929_SIL_DW.r; } else { cr929_SIL_B.ack_g = 1U; @@ -29310,12 +29310,12 @@ void cr929_SIL_step(void) cr929_SIL_DW.m.latlon[0] = cr929_SIL_B.x; cr929_SIL_DW.m.latlon[1] = cr929_SIL_B.y; cr929_SIL_DW.m.params[4] = cr929_SIL_B.z; - rtb_out_me = cr929_SIL_B.seq + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = cr929_SIL_B.seq + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - dummyMissionCount = (uint16_T)rtb_out_me; + dummyMissionCount = (uint16_T)rtb_out_de; dummyMission[dummyMissionCount - 1] = cr929_SIL_DW.m; } else { cr929_SIL_B.ack_g = 1U; @@ -29550,12 +29550,12 @@ void cr929_SIL_step(void) case 1: if (cr929_SIL_B.seq_m < dummyFenceCount) { cr929_SIL_B.ack_f = 0U; - rtb_out_me = cr929_SIL_B.seq_m + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = cr929_SIL_B.seq_m + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - expl_temp_0 = &dummyFence[(int32_T)rtb_out_me - 1]; + expl_temp_0 = &dummyFence[(int32_T)rtb_out_de - 1]; cr929_SIL_B.frame_m = 5U; cr929_SIL_B.command_a = expl_temp_0->command; cr929_SIL_B.autocont = 0U; @@ -29570,12 +29570,12 @@ void cr929_SIL_step(void) case 2: if (cr929_SIL_B.seq_m < dummyRallyCount) { cr929_SIL_B.ack_f = 0U; - rtb_out_me = cr929_SIL_B.seq_m + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = cr929_SIL_B.seq_m + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - expl_temp_1 = &dummyRally[(int32_T)rtb_out_me - 1]; + expl_temp_1 = &dummyRally[(int32_T)rtb_out_de - 1]; cr929_SIL_B.command_a = 5100U; cr929_SIL_B.x_e = expl_temp_1->latlon[0]; cr929_SIL_B.y_k = expl_temp_1->latlon[1]; @@ -29588,12 +29588,12 @@ void cr929_SIL_step(void) default: if (cr929_SIL_B.seq_m < dummyMissionCount) { cr929_SIL_B.ack_f = 0U; - rtb_out_me = cr929_SIL_B.seq_m + 1U; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = cr929_SIL_B.seq_m + 1U; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } - expl_temp = &dummyMission[(int32_T)rtb_out_me - 1]; + expl_temp = &dummyMission[(int32_T)rtb_out_de - 1]; cr929_SIL_B.frame_m = expl_temp->frame; cr929_SIL_B.command_a = expl_temp->command; cr929_SIL_B.autocont = expl_temp->autocont; @@ -30283,9 +30283,9 @@ void cr929_SIL_step(void) /* Unit Conversion - from: rad to: deg Expression: output = (57.2958*input) + (0) */ if (cr929_SIL_Y.traj.v_g > 3.0F) { - rtb_phi_c_j = cr929_SIL_Y.traj.psi_t; + rtb_phi_c_o = cr929_SIL_Y.traj.psi_t; } else { - rtb_phi_c_j = cr929_SIL_B.BusAssignment_h.psi; + rtb_phi_c_o = cr929_SIL_B.BusAssignment_h.psi; } /* End of Switch: '/Switch' */ @@ -30293,7 +30293,7 @@ void cr929_SIL_step(void) /* DataTypeConversion: '/Data Type Conversion11' incorporates: * UnitConversion: '/Unit Conversion' */ - rtb_Merge2_h = 57.2957802F * rtb_phi_c_j; + rtb_Merge2_h = 57.2957802F * rtb_phi_c_o; /* BusAssignment: '/Bus Assignment' incorporates: * BusAssignment: '/Bus Assignment' @@ -30769,16 +30769,16 @@ void cr929_SIL_step(void) * Selector: '/Selector' */ for (i = 0; i < 20; i++) { - rtb_phi_c_j = floorf(rtb_uDLookupTable11_0[cr929_SIL_P.map_pwm[i]]); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = floorf(rtb_uDLookupTable11_0[cr929_SIL_P.map_pwm[i]]); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion[i] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T) - (uint16_T)rtb_phi_c_j); + cr929_SIL_B.DataTypeConversion[i] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T) + (uint16_T)rtb_phi_c_o); } /* End of DataTypeConversion: '/Data Type Conversion' */ @@ -30789,16 +30789,16 @@ void cr929_SIL_step(void) 2U); /* DataTypeConversion: '/Data Type Conversion1' */ - rtb_phi_c_j = floorf(rtb_uDLookupTable_l); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = floorf(rtb_uDLookupTable_l); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion1_p = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); + cr929_SIL_B.DataTypeConversion1_p = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); /* End of DataTypeConversion: '/Data Type Conversion1' */ @@ -30886,166 +30886,166 @@ void cr929_SIL_step(void) &cr929_SIL_DW.m_bpIndex_ku, 2U); /* DataTypeConversion: '/Data Type Conversion2' */ - rtb_phi_c_j = floorf(rtb_uDLookupTable_l); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = floorf(rtb_uDLookupTable_l); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[0] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_uDLookupTable1); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[0] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_uDLookupTable1); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[1] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_uDLookupTable2); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[1] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_uDLookupTable2); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[2] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_uDLookupTable3); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[2] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_uDLookupTable3); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[3] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_Delay_h); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[3] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_Delay_h); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[4] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_Delay_ip); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[4] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_Delay_ip); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[5] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_Delay_k); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[5] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_Delay_k); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[6] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_Delay_n); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[6] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_Delay_n); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[7] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_Sum4_m); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[7] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_Sum4_m); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[8] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_Merge11); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[8] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_Merge11); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[9] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_Sum5_hx); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[9] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_Sum5_hx); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[10] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_Sum7_f); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[10] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_Sum7_f); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[11] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_add_k); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[11] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_add_k); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[12] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_da2dar_deg); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[12] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_da2dar_deg); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[13] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_add2); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[13] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_add2); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[14] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); - rtb_phi_c_j = floorf(rtb_Switch2_ki); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + cr929_SIL_B.DataTypeConversion2_m[14] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); + rtb_phi_c_o = floorf(rtb_Switch2_ki); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } - cr929_SIL_B.DataTypeConversion2_m[15] = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T)(uint16_T) - rtb_phi_c_j); + cr929_SIL_B.DataTypeConversion2_m[15] = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T)(uint16_T) + rtb_phi_c_o); /* End of DataTypeConversion: '/Data Type Conversion2' */ @@ -31222,31 +31222,31 @@ void cr929_SIL_step(void) /* Outputs for Atomic SubSystem: '/proc_serial_echo' */ /* Chart: '/Chart' */ - if (cr929_SIL_DW.temporalCounter_i1_jk < 127U) { - cr929_SIL_DW.temporalCounter_i1_jk++; + if (cr929_SIL_DW.temporalCounter_i1_o0 < 127U) { + cr929_SIL_DW.temporalCounter_i1_o0++; } if (cr929_SIL_DW.is_active_c80_cr929_autopilot == 0U) { cr929_SIL_DW.is_active_c80_cr929_autopilot = 1U; cr929_SIL_DW.is_c80_cr929_autopilot = cr929_SIL_IN_idle_g; - cr929_SIL_DW.temporalCounter_i1_jk = 0U; - rtb_out_lm = false; + cr929_SIL_DW.temporalCounter_i1_o0 = 0U; + rtb_out_mz = false; } else if (cr929_SIL_DW.is_c80_cr929_autopilot == cr929_SIL_IN_idle_g) { - rtb_out_lm = false; - if (cr929_SIL_DW.temporalCounter_i1_jk >= 82U) { + rtb_out_mz = false; + if (cr929_SIL_DW.temporalCounter_i1_o0 >= 82U) { cr929_SIL_DW.is_c80_cr929_autopilot = cr929_SIL_IN_work; - rtb_out_lm = true; + rtb_out_mz = true; } } else { cr929_SIL_DW.is_c80_cr929_autopilot = cr929_SIL_IN_idle_g; - cr929_SIL_DW.temporalCounter_i1_jk = 0U; - rtb_out_lm = false; + cr929_SIL_DW.temporalCounter_i1_o0 = 0U; + rtb_out_mz = false; } /* End of Chart: '/Chart' */ /* If: '/If1' */ - if (rtb_out_lm) { + if (rtb_out_mz) { /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: * ActionPort: '/Action Port' */ @@ -31284,8 +31284,8 @@ void cr929_SIL_step(void) * Constant: '/Constant BP2' * Outport: '/buff_len' */ - if (cr929_SIL_DW.temporalCounter_i1_g < 2097151U) { - cr929_SIL_DW.temporalCounter_i1_g++; + if (cr929_SIL_DW.temporalCounter_i1_p < 2097151U) { + cr929_SIL_DW.temporalCounter_i1_p++; } cr929_SIL_DW.param_val_queue_isValid = false; @@ -31359,7 +31359,7 @@ void cr929_SIL_step(void) /* End of Outputs for SubSystem: '/mission_item_int_enc' */ } else if (cr929_SIL_sf_msg_pop_mission_ack_queue()) { - cr929_SIL_B.mission_ack_c = *(mavlink_mission_ack_t *) + cr929_SIL_B.mission_ack_d = *(mavlink_mission_ack_t *) cr929_SIL_DW.mission_ack_queue_msgDataPtr; /* Outputs for Function Call SubSystem: '/mission_ack_enc' */ @@ -31367,13 +31367,13 @@ void cr929_SIL_step(void) * Constant: '/Constant BP' * Constant: '/Constant BP1' */ - mav_mission_ack_encode_Outputs_wrapper(&cr929_SIL_B.mission_ack_c, + mav_mission_ack_encode_Outputs_wrapper(&cr929_SIL_B.mission_ack_d, &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/mission_ack_enc' */ } else if (cr929_SIL_sf_msg_pop_mission_req_int_queue()) { - cr929_SIL_B.mission_req_int_e = *(mavlink_mission_request_int_t *) + cr929_SIL_B.mission_req_int_m = *(mavlink_mission_request_int_t *) cr929_SIL_DW.mission_req_int_queue_msgDataPtr; /* Outputs for Function Call SubSystem: '/mission_req_int_enc' */ @@ -31382,7 +31382,7 @@ void cr929_SIL_step(void) * Constant: '/Constant BP1' */ mav_mission_request_int_encode_Outputs_wrapper - (&cr929_SIL_B.mission_req_int_e, &cr929_SIL_B.DataTypeConversion_m, + (&cr929_SIL_B.mission_req_int_m, &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); @@ -31402,7 +31402,7 @@ void cr929_SIL_step(void) /* End of Outputs for SubSystem: '/param_val_enc' */ } else if (cr929_SIL_sf_msg_pop_ap_ver_queue()) { - cr929_SIL_B.ap_ver_l = *(mavlink_autopilot_version_t *) + cr929_SIL_B.ap_ver_p = *(mavlink_autopilot_version_t *) cr929_SIL_DW.ap_ver_queue_msgDataPtr; /* Outputs for Function Call SubSystem: '/ap_ver_enc' */ @@ -31410,7 +31410,7 @@ void cr929_SIL_step(void) * Constant: '/Constant BP' * Constant: '/Constant BP1' */ - mav_autopilot_version_encode_Outputs_wrapper(&cr929_SIL_B.ap_ver_l, + mav_autopilot_version_encode_Outputs_wrapper(&cr929_SIL_B.ap_ver_p, &cr929_SIL_B.DataTypeConversion_m, &rtCP_ConstantBP_Value_ce, &rtCP_ConstantBP1_Value_nx, &cr929_SIL_B.Merged_msg); @@ -31575,8 +31575,8 @@ void cr929_SIL_step(void) cr929_SIL_B.Sqrt_i = sqrtf(cr929_SIL_B.vn * cr929_SIL_B.vn + cr929_SIL_B.ve * cr929_SIL_B.ve); cr929_SIL_B.gps.vel = (uint16_T)roundf(cr929_SIL_B.Sqrt_i * 100.0F); - cr929_SIL_B.vn_a = cr929_SIL_B.BusAssignment_h.v_n; - cr929_SIL_B.ve_l = cr929_SIL_B.BusAssignment_h.v_e; + cr929_SIL_B.vn_k = cr929_SIL_B.BusAssignment_h.v_n; + cr929_SIL_B.ve_o = cr929_SIL_B.BusAssignment_h.v_e; /* Chart: '/Chart' incorporates: * SubSystem: '/get_cog' @@ -31584,8 +31584,8 @@ void cr929_SIL_step(void) /* Gain: '/Gain' incorporates: * Trigonometry: '/Trigonometric Function' */ - cr929_SIL_B.Merge_a = 57.2957802F * rt_atan2f_snf(cr929_SIL_B.ve_l, - cr929_SIL_B.vn_a); + cr929_SIL_B.Merge_a = 57.2957802F * rt_atan2f_snf(cr929_SIL_B.ve_o, + cr929_SIL_B.vn_k); /* If: '/If' */ if (cr929_SIL_B.Merge_a < 0.0F) { @@ -31826,9 +31826,9 @@ void cr929_SIL_step(void) /* Product: '/Divide' incorporates: * Constant: '/Constant' */ - rtb_out_me = 1000U * cr929_SIL_B.mav_status.packet_rx_drop_count; - if (rtb_out_me > 65535U) { - rtb_out_me = 65535U; + rtb_out_de = 1000U * cr929_SIL_B.mav_status.packet_rx_drop_count; + if (rtb_out_de > 65535U) { + rtb_out_de = 65535U; } /* Chart: '/Chart' incorporates: @@ -31836,7 +31836,7 @@ void cr929_SIL_step(void) * Product: '/Divide' * Sum: '/Sum' */ - cr929_SIL_B.sys_status.drop_rate_comm = (uint16_T)(rtb_out_me / + cr929_SIL_B.sys_status.drop_rate_comm = (uint16_T)(rtb_out_de / (((uint32_T)cr929_SIL_B.mav_status.packet_rx_drop_count + cr929_SIL_B.mav_status.packet_rx_success_count) + 1U)); cr929_SIL_B.sys_status.errors_comm = @@ -32024,34 +32024,34 @@ void cr929_SIL_step(void) cr929_SIL_B.BusAssignment_o.seq = (uint8_T)cr929_SIL_B.good_n; /* Gain: '/Gain7' */ - rtb_phi_c_j = floorf(100.0F * cr929_SIL_B.LLA_acc_m[0]); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = floorf(100.0F * cr929_SIL_B.LLA_acc_m[0]); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } /* BusAssignment: '/Bus Assignment' incorporates: * Gain: '/Gain7' */ - cr929_SIL_B.BusAssignment_o.eph = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T) - (uint16_T)rtb_phi_c_j); + cr929_SIL_B.BusAssignment_o.eph = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T) + (uint16_T)rtb_phi_c_o); /* Gain: '/Gain8' */ - rtb_phi_c_j = floorf(100.0F * cr929_SIL_B.LLA_acc_m[2]); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = floorf(100.0F * cr929_SIL_B.LLA_acc_m[2]); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } /* BusAssignment: '/Bus Assignment' incorporates: * Gain: '/Gain8' */ - cr929_SIL_B.BusAssignment_o.epv = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T) - (uint16_T)rtb_phi_c_j); + cr929_SIL_B.BusAssignment_o.epv = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T) + (uint16_T)rtb_phi_c_o); cr929_SIL_B.BusAssignment_o.satellites_visible = cr929_SIL_B.sv_used_d; @@ -32126,34 +32126,34 @@ void cr929_SIL_step(void) cr929_SIL_B.BusAssignment_b.seq = (uint8_T)cr929_SIL_B.good_h; /* Gain: '/Gain7' */ - rtb_phi_c_j = floorf(100.0F * cr929_SIL_B.LLA_acc[0]); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = floorf(100.0F * cr929_SIL_B.LLA_acc[0]); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } /* BusAssignment: '/Bus Assignment' incorporates: * Gain: '/Gain7' */ - cr929_SIL_B.BusAssignment_b.eph = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T) - (uint16_T)rtb_phi_c_j); + cr929_SIL_B.BusAssignment_b.eph = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T) + (uint16_T)rtb_phi_c_o); /* Gain: '/Gain8' */ - rtb_phi_c_j = floorf(100.0F * cr929_SIL_B.LLA_acc[2]); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + rtb_phi_c_o = floorf(100.0F * cr929_SIL_B.LLA_acc[2]); + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 65536.0F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 65536.0F); } /* BusAssignment: '/Bus Assignment' incorporates: * Gain: '/Gain8' */ - cr929_SIL_B.BusAssignment_b.epv = (uint16_T)(rtb_phi_c_j < 0.0F ? - (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_j : (int32_T) - (uint16_T)rtb_phi_c_j); + cr929_SIL_B.BusAssignment_b.epv = (uint16_T)(rtb_phi_c_o < 0.0F ? + (int32_T)(uint16_T)-(int16_T)(uint16_T)-rtb_phi_c_o : (int32_T) + (uint16_T)rtb_phi_c_o); cr929_SIL_B.BusAssignment_b.satellites_visible = cr929_SIL_B.sv_used; /* S-Function (mav_ins2_encode): '/mav_ins2_enc' incorporates: @@ -32231,7 +32231,7 @@ void cr929_SIL_step(void) } cr929_SIL_DW.is_c45_cr929_autopilot = cr929_SIL_IN_Wait; - cr929_SIL_DW.temporalCounter_i1_g = 0U; + cr929_SIL_DW.temporalCounter_i1_p = 0U; /* Outputs for Function Call SubSystem: '/Function-Call Subsystem' */ /* S-Function (mav_msg2buff): '/mav_msg2buff' incorporates: @@ -32262,7 +32262,7 @@ void cr929_SIL_step(void) } } } else { - if ((uint32_T)((int32_T)cr929_SIL_DW.temporalCounter_i1_g * 3062) >= + if ((uint32_T)((int32_T)cr929_SIL_DW.temporalCounter_i1_p * 3062) >= cr929_SIL_DW.wait_time) { cr929_SIL_DW.is_c45_cr929_autopilot = cr929_SIL_IN_Idle_h; } @@ -35966,14 +35966,14 @@ void cr929_SIL_step(void) } else { switch (cr929_SIL_DW.is_c40_cr929_dummy_io) { case cr929_SIL_IN_arrrived_p: - cr929_SIL_DW.is_c40_cr929_dummy_io = cr929_SIL_IN_idle_f; + cr929_SIL_DW.is_c40_cr929_dummy_io = cr929_SIL_IN_idle_h; cr929_SIL_DW.temporalCounter_i1_m = 0U; cr929_SIL_B.enabled_p = false; break; case cr929_SIL_IN_delay_i: if (cr929_SIL_DW.temporalCounter_i1_m >= 6U) { - cr929_SIL_DW.is_c40_cr929_dummy_io = cr929_SIL_IN_idle_f; + cr929_SIL_DW.is_c40_cr929_dummy_io = cr929_SIL_IN_idle_h; cr929_SIL_DW.temporalCounter_i1_m = 0U; cr929_SIL_B.enabled_p = false; } @@ -36183,16 +36183,16 @@ void cr929_SIL_step(void) * Product: '/Product' * UnitDelay: '/Unit Delay' */ - rtb_phi_c_j = floorf(rtb_DataTypeConversion_a * (real32_T) + rtb_phi_c_o = floorf(rtb_DataTypeConversion_a * (real32_T) cr929_SIL_DW.UnitDelay_DSTATE_kg); - if (rtIsNaNF(rtb_phi_c_j) || rtIsInfF(rtb_phi_c_j)) { - rtb_phi_c_j = 0.0F; + if (rtIsNaNF(rtb_phi_c_o) || rtIsInfF(rtb_phi_c_o)) { + rtb_phi_c_o = 0.0F; } else { - rtb_phi_c_j = fmodf(rtb_phi_c_j, 4.2949673E+9F); + rtb_phi_c_o = fmodf(rtb_phi_c_o, 4.2949673E+9F); } - rtb_DataTypeConversion1 = rtb_phi_c_j < 0.0F ? (uint32_T)-(int32_T) - (uint32_T)-rtb_phi_c_j : (uint32_T)rtb_phi_c_j; + rtb_DataTypeConversion1 = rtb_phi_c_o < 0.0F ? (uint32_T)-(int32_T) + (uint32_T)-rtb_phi_c_o : (uint32_T)rtb_phi_c_o; /* End of DataTypeConversion: '/Data Type Conversion1' */ @@ -37055,14 +37055,14 @@ void cr929_SIL_step(void) } else { switch (cr929_SIL_DW.is_c48_cr929_dummy_io) { case cr929_SIL_IN_arrrived_p: - cr929_SIL_DW.is_c48_cr929_dummy_io = cr929_SIL_IN_idle_f; + cr929_SIL_DW.is_c48_cr929_dummy_io = cr929_SIL_IN_idle_h; cr929_SIL_DW.temporalCounter_i1 = 0U; cr929_SIL_B.enabled = false; break; case cr929_SIL_IN_delay_i: if (cr929_SIL_DW.temporalCounter_i1 >= 1U) { - cr929_SIL_DW.is_c48_cr929_dummy_io = cr929_SIL_IN_idle_f; + cr929_SIL_DW.is_c48_cr929_dummy_io = cr929_SIL_IN_idle_h; cr929_SIL_DW.temporalCounter_i1 = 0U; cr929_SIL_B.enabled = false; } @@ -37259,7 +37259,7 @@ void cr929_SIL_step(void) if (cr929_SIL_DW.left > 0) { if (cr929_SIL_DW.cnt10 >= 7) { cr929_SIL_DW.cnt10 = 0U; - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_eegcy[0] = cr929_SIL_B.Merge_i.q_c; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_eegcy[1] = @@ -37326,13 +37326,13 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_k[76] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_k[0], - &cr929_SIL_ConstB.Width1_n3, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_n3, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_no, &rtCP_SFunction_P1_n, 1, 77); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_n3; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt11 >= 11) { cr929_SIL_DW.cnt11 = 0U; - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_eegc[0] = cr929_SIL_B.Merge_i.phi_c; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_eegc[1] = @@ -37397,13 +37397,13 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_fg[72] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_fg[0], - &cr929_SIL_ConstB.Width1_nt, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_nt, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_on, &rtCP_SFunction_P1_an, 1, 73); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_nt; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt12 >= 23) { cr929_SIL_DW.cnt12 = 0U; - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport3[0] = cr929_SIL_B.BusAssignment_h.lat; cr929_SIL_B.TmpSignalConversionAtBytePackInport3[1] = @@ -37434,6 +37434,8 @@ void cr929_SIL_step(void) cr929_SIL_Y.traj.vert_offset; cr929_SIL_B.TmpSignalConversionAtBytePackInport4[12] = cr929_SIL_B.Merge_i.mass_est; + cr929_SIL_B.TmpSignalConversionAtBytePackInport4[13] = + cr929_SIL_B.Merge_i.gamma_c; cr929_SIL_B.TmpSignalConversionAtBytePackInport5_g[0] = cr929_SIL_B.BusAssignment_h.load; cr929_SIL_B.TmpSignalConversionAtBytePackInport5_g[1] = @@ -37489,22 +37491,22 @@ void cr929_SIL_step(void) 16); (void) memcpy(&cr929_SIL_B.BytePack_j[24], &cr929_SIL_B.TmpSignalConversionAtBytePackInport4[0], - 52); - (void) memcpy(&cr929_SIL_B.BytePack_j[76], + 56); + (void) memcpy(&cr929_SIL_B.BytePack_j[80], &cr929_SIL_B.TmpSignalConversionAtBytePackInport5_g [0], 6); - (void) memcpy(&cr929_SIL_B.BytePack_j[82], + (void) memcpy(&cr929_SIL_B.BytePack_j[86], &cr929_SIL_B.TmpSignalConversionAtBytePackInport6[0], 2); - (void) memcpy(&cr929_SIL_B.BytePack_j[84], + (void) memcpy(&cr929_SIL_B.BytePack_j[88], &cr929_SIL_B.Merge_i.WP_cur, 2); - (void) memcpy(&cr929_SIL_B.BytePack_j[86], + (void) memcpy(&cr929_SIL_B.BytePack_j[90], &cr929_SIL_B.TmpSignalConversionAtBytePackInport8[0], 16); mode = 0U; - for (i = 0; i < 102; i++) { + for (i = 0; i < 106; i++) { mode = (uint8_T)((uint32_T)mode + cr929_SIL_B.BytePack_j[i]); cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ly[i + 4] = cr929_SIL_B.BytePack_j[i]; @@ -37515,16 +37517,16 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ly[2] = 12U; cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ly[3] = cr929_SIL_ConstB.Width_d; - cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ly[106] = mode; + cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ly[110] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ly[0], - &cr929_SIL_ConstB.Width1_n, &cr929_SIL_B.seq_a, - &cr929_SIL_B.ErrCode_l, &rtCP_SFunction_P1_f, 1, 107); + &cr929_SIL_ConstB.Width1_n, &cr929_SIL_B.seq_c, + &cr929_SIL_B.ErrCode_l, &rtCP_SFunction_P1_f, 1, 111); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_n; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt13 >= 203) { cr929_SIL_DW.cnt13 = 0U; - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w[1] = @@ -37627,13 +37629,13 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_jf[232] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_jf[0], - &cr929_SIL_ConstB.Width1_gd, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_gd, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_o, &rtCP_SFunction_P1_al, 1, 233); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_gd; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt18 >= 29) { cr929_SIL_DW.cnt18 = 0U; - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_eeg[0] = cr929_SIL_Y.traj.v_g; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_eeg[1] = @@ -37698,13 +37700,13 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_b[88] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_b[0], - &cr929_SIL_ConstB.Width1_j, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_j, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_h, &rtCP_SFunction_P1_m, 1, 89); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_j; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; - } else if (cr929_SIL_DW.cnt19 >= 29) { + } else if (cr929_SIL_DW.cnt19 >= 7) { cr929_SIL_DW.cnt19 = 0U; - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_ee[0] = cr929_SIL_B.cr929_FlightControlLaw.ControlSurfCMD_ACE_h.AILLeftLCMD_ACE_deg_d; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_ee[1] = @@ -37778,13 +37780,13 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_p[193] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_p[0], - &cr929_SIL_ConstB.Width1_c, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_c, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_p, &rtCP_SFunction_P1_p, 1, 194); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_c; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; - } else if (cr929_SIL_DW.cnt20 >= 29) { + } else if (cr929_SIL_DW.cnt20 >= 11) { cr929_SIL_DW.cnt20 = 0U; - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_e[0] = cr929_SIL_B.BusAssignment_d.u29_Bus.AirData.BaroAltitude_AD_ft; cr929_SIL_B.TmpSignalConversionAtBytePackInport2_e[1] = @@ -37851,13 +37853,13 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_h[176] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_h[0], - &cr929_SIL_ConstB.Width1_o, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_o, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_n, &rtCP_SFunction_P1_i1, 1, 177); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_o; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt21 >= 29) { cr929_SIL_DW.cnt21 = 0U; - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport2[0] = cr929_SIL_B.BusAssignment_d.ANA_Bus.RollCmdCP_SSU_deg_d; cr929_SIL_B.TmpSignalConversionAtBytePackInport2[1] = @@ -37906,6 +37908,8 @@ void cr929_SIL_step(void) cr929_SIL_B.BusAssignment_d.AP_BUS.AT_Engage_b; cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[11] = cr929_SIL_B.Merge_i.Switch_ControlLaw; + cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd[12] = + cr929_SIL_B.BusAssignment_d.ResetControlLaw_Sim_hl; /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack[0], @@ -37917,9 +37921,9 @@ void cr929_SIL_step(void) (void) memcpy(&cr929_SIL_B.BytePack[100], &cr929_SIL_B.TmpSignalConversionAtBytePackInport3_osd [0], - 12); + 13); mode = 0U; - for (i = 0; i < 112; i++) { + for (i = 0; i < 113; i++) { mode = (uint8_T)((uint32_T)mode + cr929_SIL_B.BytePack[i]); cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_m[i + 4] = cr929_SIL_B.BytePack[i]; @@ -37930,16 +37934,16 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_m[2] = 21U; cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_m[3] = cr929_SIL_ConstB.Width; - cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_m[116] = mode; + cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_m[117] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_m[0], - &cr929_SIL_ConstB.Width1, &cr929_SIL_B.seq_a, - &cr929_SIL_B.ErrCode, &rtCP_SFunction_P1_d4, 1, 117); + &cr929_SIL_ConstB.Width1, &cr929_SIL_B.seq_c, + &cr929_SIL_B.ErrCode, &rtCP_SFunction_P1_d4, 1, 118); cr929_SIL_B.len = cr929_SIL_ConstB.Width1; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt14 >= 5) { cr929_SIL_DW.cnt14 = 0U; - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; hal_rec_Outputs_wrapper(&rtCP_Constant_Value_fz, &cr929_SIL_B.Merge_i.boot_time, &cr929_SIL_B.hal_rec_o1[0], &cr929_SIL_B.hal_rec_o2, 256); @@ -37959,13 +37963,13 @@ void cr929_SIL_step(void) rtb_DataTypeConversion1_ma + 5U); hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_l[0], - &cr929_SIL_B.Sum_pr, &cr929_SIL_B.seq_a, + &cr929_SIL_B.Sum_pr, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_ph, &rtCP_SFunction_P1_jo, 1, 260); cr929_SIL_B.len = cr929_SIL_B.Sum_pr; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_B.gps_utc_time_seq_h != cr929_SIL_DW.last_gps1_tim_seq) { - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2e[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2e[1] = @@ -38010,14 +38014,14 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_kt[29] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_kt[0], - &cr929_SIL_ConstB.Width1_cn, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_cn, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_dr, &rtCP_SFunction_P1_j, 1, 30); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_cn; cr929_SIL_DW.last_gps1_tim_seq = cr929_SIL_B.gps_utc_time_seq_h; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_B.gps_hdt_seq != cr929_SIL_DW.last_gps1_hdt_seq) { - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2ea[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2ea[1] = @@ -38060,14 +38064,14 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_pf[34] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_pf[0], - &cr929_SIL_ConstB.Width1_jv, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_jv, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_c, &rtCP_SFunction_P1_i, 1, 35); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_jv; cr929_SIL_DW.last_gps1_hdt_seq = cr929_SIL_B.gps_hdt_seq; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.last_gps1_vel_seq != cr929_SIL_B.gps_vel_seq_l) { - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eax[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eax[1] = @@ -38104,14 +38108,14 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_n[44] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_n[0], - &cr929_SIL_ConstB.Width1_gy, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_gy, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_b0, &rtCP_SFunction_P1_h, 1, 45); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_gy; cr929_SIL_DW.last_gps1_vel_seq = cr929_SIL_B.gps_vel_seq_l; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.last_gps1_pos_seq != cr929_SIL_B.gps_pos_seq_n) { - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2[1] = @@ -38151,7 +38155,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_a[59] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_a[0], - &cr929_SIL_ConstB.Width1_a, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_a, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_b, &rtCP_SFunction_P1_b, 1, 60); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_a; cr929_SIL_DW.last_gps1_pos_seq = cr929_SIL_B.gps_pos_seq_n; @@ -38161,7 +38165,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.ins1_euler_cnt++; cr929_SIL_DW.last_ins1_euler_seq = cr929_SIL_B.euler_seq_j; if (cr929_SIL_DW.ins1_euler_cnt >= 4) { - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eaxk5[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eaxk5[1] = @@ -38201,7 +38205,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ov[64] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_ov[0], - &cr929_SIL_ConstB.Width1_h, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_h, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_gf, &rtCP_SFunction_P1, 1, 65); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_h; cr929_SIL_DW.ins1_euler_cnt = 0U; @@ -38212,7 +38216,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.ins1_nav_cnt++; cr929_SIL_DW.last_ins1_nav_seq = cr929_SIL_B.nav_seq_g; if (cr929_SIL_DW.ins1_nav_cnt >= 4) { - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eaxk[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eaxk[1] = @@ -38249,7 +38253,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_c[72] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_c[0], - &cr929_SIL_ConstB.Width1_m, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_m, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_d2, &rtCP_SFunction_P1_a, 1, 73); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_m; cr929_SIL_DW.ins1_nav_cnt = 0U; @@ -38260,7 +38264,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.ins2_euler_cnt++; cr929_SIL_DW.last_ins2_euler_seq = cr929_SIL_B.euler_seq; if (cr929_SIL_DW.ins2_euler_cnt >= 4) { - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5[1] = @@ -38299,7 +38303,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_e[64] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_e[0], - &cr929_SIL_ConstB.Width1_c5, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_c5, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_m, &rtCP_SFunction_P1_d, 1, 65); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_c5; cr929_SIL_DW.ins2_euler_cnt = 0U; @@ -38309,7 +38313,7 @@ void cr929_SIL_step(void) cr929_SIL_DW.ins2_nav_cnt++; cr929_SIL_DW.last_ins2_nav_seq = cr929_SIL_B.nav_seq; if (cr929_SIL_DW.ins2_nav_cnt >= 4) { - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d[1] = @@ -38346,7 +38350,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_f[72] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_f[0], - &cr929_SIL_ConstB.Width1_c1, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_c1, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_d, &rtCP_SFunction_P1_bs, 1, 73); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_c1; cr929_SIL_DW.ins2_nav_cnt = 0U; @@ -38354,7 +38358,7 @@ void cr929_SIL_step(void) } } else if (cr929_SIL_B.gps_utc_time_seq != cr929_SIL_DW.last_gps2_tim_seq) { - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h[1] = @@ -38399,14 +38403,14 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_hb[29] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_hb[0], - &cr929_SIL_ConstB.Width1_g, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_g, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_ps, &rtCP_SFunction_P1_g, 1, 30); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_g; cr929_SIL_DW.last_gps2_tim_seq = cr929_SIL_B.gps_utc_time_seq; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.last_gps2_vel_seq != cr929_SIL_B.gps_vel_seq) { - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4[1] = @@ -38442,14 +38446,14 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_j[44] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_j[0], - &cr929_SIL_ConstB.Width1_p, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_p, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_i, &rtCP_SFunction_P1_as, 1, 45); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_p; cr929_SIL_DW.last_gps2_vel_seq = cr929_SIL_B.gps_vel_seq; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.last_gps2_pos_seq != cr929_SIL_B.gps_pos_seq) { - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; cr929_SIL_B.TmpSignalConversionAtBytePackInport1[0] = cr929_SIL_B.Merge_i.boot_time; cr929_SIL_B.TmpSignalConversionAtBytePackInport1[1] = @@ -38487,14 +38491,14 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_o[59] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_o[0], - &cr929_SIL_ConstB.Width1_ce, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_ce, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_e, &rtCP_SFunction_P1_a1, 1, 60); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_ce; cr929_SIL_DW.last_gps2_pos_seq = cr929_SIL_B.gps_pos_seq; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; } else if (cr929_SIL_DW.cnt1 > 5) { cr929_SIL_DW.cnt1 = 0U; - cr929_SIL_B.seq_a++; + cr929_SIL_B.seq_c++; /* Pack: /Byte Pack */ (void) memcpy(&cr929_SIL_B.BytePack_j4[0], @@ -38518,7 +38522,7 @@ void cr929_SIL_step(void) cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_g[18] = mode; hal_uart_out_Outputs_wrapper (&cr929_SIL_B.TmpSignalConversionAtSFunctionInport1_g[0], - &cr929_SIL_ConstB.Width1_jh, &cr929_SIL_B.seq_a, + &cr929_SIL_ConstB.Width1_jh, &cr929_SIL_B.seq_c, &cr929_SIL_B.ErrCode_g, &rtCP_SFunction_P1_bz, 1, 19); cr929_SIL_B.len = cr929_SIL_ConstB.Width1_jh; cr929_SIL_DW.left -= (int16_T)cr929_SIL_B.len; @@ -40951,59 +40955,59 @@ void cr929_SIL_initialize(void) cr929_SIL_B.BusAssignment = cr929_SIL_rtZC2; cr929_SIL_B.BusAssignment_g = cr929_SIL_rtZC2; cr929_SIL_B.mode = ENUM_mode_MANUAL; + cr929_SIL_B.mode_j = ENUM_mode_MANUAL; cr929_SIL_B.mode_f = ENUM_mode_MANUAL; - cr929_SIL_B.mode_h = ENUM_mode_MANUAL; - cr929_SIL_B.mode_g = ENUM_mode_MANUAL; + cr929_SIL_B.mode_p = ENUM_mode_MANUAL; cr929_SIL_B.vtol_state = ENUM_VTOL_STATE_UNDEFINED; cr929_SIL_B.state = ENUM_SystemState_UNINIT; cr929_SIL_B.landed_state_out = ENUM_LANDED_STATE_UNDEFINED; - cr929_SIL_B.landed_state_out_f = ENUM_LANDED_STATE_UNDEFINED; + cr929_SIL_B.landed_state_out_h = ENUM_LANDED_STATE_UNDEFINED; cr929_SIL_B.landed_state = ENUM_LANDED_STATE_UNDEFINED; - cr929_SIL_B.landed_state_l = ENUM_LANDED_STATE_UNDEFINED; - cr929_SIL_B.landed_state_out_p = ENUM_LANDED_STATE_UNDEFINED; + cr929_SIL_B.landed_state_d = ENUM_LANDED_STATE_UNDEFINED; + cr929_SIL_B.landed_state_out_b = ENUM_LANDED_STATE_UNDEFINED; cr929_SIL_B.CSAS_yaw_out = ENUM_CSAS_YAW_OFF; cr929_SIL_B.yaw_mode = ENUM_CSAS_YAW_OFF; cr929_SIL_B.yaw_mode_i = ENUM_CSAS_YAW_OFF; cr929_SIL_B.yaw_mode_p = ENUM_CSAS_YAW_OFF; - cr929_SIL_B.CSAS_yaw_out_e = ENUM_CSAS_YAW_OFF; + cr929_SIL_B.CSAS_yaw_out_m = ENUM_CSAS_YAW_OFF; cr929_SIL_B.CSAS_yaw = ENUM_CSAS_YAW_OFF; - cr929_SIL_B.CSAS_yaw_m = ENUM_CSAS_YAW_OFF; + cr929_SIL_B.CSAS_yaw_o = ENUM_CSAS_YAW_OFF; cr929_SIL_B.CSAS_roll_out = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.roll_mode = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.roll_mode_a = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.roll_mode_m = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.roll_mode_d = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.roll_mode_ac = ENUM_CSAS_ROLL_OFF; - cr929_SIL_B.CSAS_roll_out_b = ENUM_CSAS_ROLL_OFF; + cr929_SIL_B.CSAS_roll_out_f = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.CSAS_roll = ENUM_CSAS_ROLL_OFF; - cr929_SIL_B.CSAS_roll_h = ENUM_CSAS_ROLL_OFF; + cr929_SIL_B.CSAS_roll_o = ENUM_CSAS_ROLL_OFF; cr929_SIL_B.CSAS_pitch_out = ENUM_CSAS_PITCH_OFF; cr929_SIL_B.pitch_mode = ENUM_CSAS_PITCH_OFF; - cr929_SIL_B.CSAS_pitch_out_o = ENUM_CSAS_PITCH_OFF; + cr929_SIL_B.CSAS_pitch_out_n = ENUM_CSAS_PITCH_OFF; cr929_SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_OFF; - cr929_SIL_B.CSAS_pitch_b = ENUM_CSAS_PITCH_OFF; + cr929_SIL_B.CSAS_pitch_p = ENUM_CSAS_PITCH_OFF; cr929_SIL_B.AT_out = ENUM_AT_OFF; cr929_SIL_B.AT = ENUM_AT_OFF; cr929_SIL_B.AT_l = ENUM_AT_OFF; - cr929_SIL_B.AT_out_l = ENUM_AT_OFF; + cr929_SIL_B.AT_out_c = ENUM_AT_OFF; cr929_SIL_B.AT_k = ENUM_AT_OFF; - cr929_SIL_B.AT_h = ENUM_AT_OFF; + cr929_SIL_B.AT_f = ENUM_AT_OFF; cr929_SIL_B.AFCS_VERT_out = ENUM_AFCS_VERT_OFF; cr929_SIL_B.vert_mode = ENUM_AFCS_VERT_OFF; cr929_SIL_B.vert_mode_m = ENUM_AFCS_VERT_OFF; cr929_SIL_B.vert_mode_a = ENUM_AFCS_VERT_OFF; - cr929_SIL_B.AFCS_VERT_out_d = ENUM_AFCS_VERT_OFF; + cr929_SIL_B.AFCS_VERT_out_j = ENUM_AFCS_VERT_OFF; cr929_SIL_B.AFCS_VERT = ENUM_AFCS_VERT_OFF; - cr929_SIL_B.AFCS_VERT_b = ENUM_AFCS_VERT_OFF; + cr929_SIL_B.AFCS_VERT_p = ENUM_AFCS_VERT_OFF; cr929_SIL_B.AFCS_LAT_out = ENUM_AFCS_LAT_OFF; cr929_SIL_B.lat_mode = ENUM_AFCS_LAT_OFF; cr929_SIL_B.lat_mode_c = ENUM_AFCS_LAT_OFF; cr929_SIL_B.lat_mode_k = ENUM_AFCS_LAT_OFF; cr929_SIL_B.lat_mode_i = ENUM_AFCS_LAT_OFF; cr929_SIL_B.lat_mode_a = ENUM_AFCS_LAT_OFF; - cr929_SIL_B.AFCS_LAT_out_b = ENUM_AFCS_LAT_OFF; + cr929_SIL_B.AFCS_LAT_out_o = ENUM_AFCS_LAT_OFF; cr929_SIL_B.AFCS_LAT = ENUM_AFCS_LAT_OFF; - cr929_SIL_B.AFCS_LAT_m = ENUM_AFCS_LAT_OFF; + cr929_SIL_B.AFCS_LAT_f = ENUM_AFCS_LAT_OFF; } /* custom signals */ @@ -41059,7 +41063,7 @@ void cr929_SIL_initialize(void) /* local block i/o variables */ real32_T rtb_out_cy; real32_T rtb_out_kk; - real32_T rtb_out_gh; + real32_T rtb_out_ghq; real32_T rtb_out_kz; real32_T rtb_out_pj; real32_T rtb_out_i; @@ -42297,52 +42301,52 @@ void cr929_SIL_initialize(void) cr929_SIL_stdatmo_Init(&cr929_SIL_DW.sf_stdatmo_g); /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_nc = 0U; + cr929_SIL_DW.temporalCounter_i1_dz = 0U; cr929_SIL_DW.is_active_c48_cr929_autopilot = 0U; cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_f = 0U; + cr929_SIL_DW.temporalCounter_i1_goe = 0U; cr929_SIL_DW.is_active_c59_cr929_autopilot = 0U; cr929_SIL_DW.is_c59_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_gm = 0U; + cr929_SIL_DW.temporalCounter_i1_eq = 0U; cr929_SIL_DW.is_active_c64_cr929_autopilot = 0U; cr929_SIL_DW.is_c64_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_gx = 0U; + cr929_SIL_DW.temporalCounter_i1_fq = 0U; cr929_SIL_DW.is_active_c65_cr929_autopilot = 0U; cr929_SIL_DW.is_c65_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_k = 0U; + cr929_SIL_DW.temporalCounter_i1_go = 0U; cr929_SIL_DW.is_active_c74_cr929_autopilot = 0U; cr929_SIL_DW.is_c74_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_hb = 0U; + cr929_SIL_DW.temporalCounter_i1_f = 0U; cr929_SIL_DW.is_active_c75_cr929_autopilot = 0U; cr929_SIL_DW.is_c75_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_ib = 0U; + cr929_SIL_DW.temporalCounter_i1_e = 0U; cr929_SIL_DW.is_active_c77_cr929_autopilot = 0U; cr929_SIL_DW.is_c77_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_e = 0U; + cr929_SIL_DW.temporalCounter_i1_mr = 0U; cr929_SIL_DW.is_active_c49_cr929_autopilot = 0U; cr929_SIL_DW.is_c49_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_ks = 0U; + cr929_SIL_DW.temporalCounter_i1_k = 0U; cr929_SIL_DW.is_active_c50_cr929_autopilot = 0U; cr929_SIL_DW.is_c50_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_c = 0U; + cr929_SIL_DW.temporalCounter_i1_ea = 0U; cr929_SIL_DW.is_active_c51_cr929_autopilot = 0U; cr929_SIL_DW.is_c51_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42357,7 +42361,7 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.is_c54_update_rc = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_mr = 0U; + cr929_SIL_DW.temporalCounter_i1_gsp = 0U; cr929_SIL_DW.is_active_c3_cr929_autopilot = 0U; cr929_SIL_DW.is_c3_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42385,7 +42389,7 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.is_c69_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* SystemInitialize for Chart: '/manual_arm_disarm' */ - cr929_SIL_DW.temporalCounter_i1_gu = 0U; + cr929_SIL_DW.temporalCounter_i1_nj = 0U; cr929_SIL_DW.is_active_c43_cr929_autopilot = 0U; cr929_SIL_DW.is_c43_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42418,7 +42422,7 @@ void cr929_SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/takeoff' */ /* SystemInitialize for Chart: '/takeoff_task' */ - cr929_SIL_DW.temporalCounter_i1_mg = 0U; + cr929_SIL_DW.temporalCounter_i1_dr = 0U; cr929_SIL_DW.is_active_c17_cr929_autopilot = 0U; cr929_SIL_DW.is_c17_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42426,7 +42430,7 @@ void cr929_SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/landing' */ /* SystemInitialize for Chart: '/landing_task' */ - cr929_SIL_DW.temporalCounter_i1_hj = 0U; + cr929_SIL_DW.temporalCounter_i1_fo = 0U; cr929_SIL_DW.is_active_c14_cr929_autopilot = 0U; cr929_SIL_DW.is_c14_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42440,7 +42444,7 @@ void cr929_SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/taxi' */ /* SystemInitialize for Chart: '/waypoint_task' */ cr929_SIL_DW.is_Taxi = cr929_SIL_IN_NO_ACTIVE_CHILD_n; - cr929_SIL_DW.temporalCounter_i1_j = 0U; + cr929_SIL_DW.temporalCounter_i1_dn = 0U; cr929_SIL_DW.is_active_c20_cr929_autopilot = 0U; cr929_SIL_DW.is_c20_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42503,7 +42507,7 @@ void cr929_SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/htail_sweep' */ /* SystemInitialize for Chart: '/sweep' */ - cr929_SIL_DW.temporalCounter_i1_p = 0U; + cr929_SIL_DW.temporalCounter_i1_pm = 0U; cr929_SIL_DW.is_active_c5_maneuver = 0U; cr929_SIL_DW.is_c5_maneuver = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42519,7 +42523,7 @@ void cr929_SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/doublet_dr_ol' */ /* SystemInitialize for Chart: '/doublet1' */ - cr929_SIL_DW.temporalCounter_i1_gp = 0U; + cr929_SIL_DW.temporalCounter_i1_g = 0U; cr929_SIL_DW.is_active_c7_maneuver = 0U; cr929_SIL_DW.is_c7_maneuver = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42527,7 +42531,7 @@ void cr929_SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/doublet_da_ol' */ /* SystemInitialize for Chart: '/doublet1' */ - cr929_SIL_DW.temporalCounter_i1_a5 = 0U; + cr929_SIL_DW.temporalCounter_i1_a = 0U; cr929_SIL_DW.is_active_c8_maneuver = 0U; cr929_SIL_DW.is_c8_maneuver = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42559,7 +42563,7 @@ void cr929_SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/waypoint' */ /* SystemInitialize for Chart: '/waypoint_task' */ - cr929_SIL_DW.temporalCounter_i1_fm = 0U; + cr929_SIL_DW.temporalCounter_i1_j = 0U; cr929_SIL_DW.is_active_c19_cr929_autopilot = 0U; cr929_SIL_DW.is_c19_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42633,7 +42637,7 @@ void cr929_SIL_initialize(void) cr929_SIL_psi_err_Init(&rtb_out_kk); /* SystemInitialize for Chart: '/psi_err1' */ - cr929_SIL_psi_err_Init(&rtb_out_gh); + cr929_SIL_psi_err_Init(&rtb_out_ghq); /* SystemInitialize for Chart: '/psi_err3' */ cr929_SIL_psi_err_Init(&rtb_out_cy); @@ -42757,7 +42761,7 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.icLoad_ed = 1U; /* SystemInitialize for Chart: '/pos_sel' */ - cr929_SIL_DW.temporalCounter_i1_a = 0U; + cr929_SIL_DW.temporalCounter_i1_o = 0U; cr929_SIL_DW.is_active_c25_cr929_autopilot = 0U; cr929_SIL_DW.is_c25_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -42808,12 +42812,12 @@ void cr929_SIL_initialize(void) /* SystemInitialize for Atomic SubSystem: '/proc_serial_echo' */ /* SystemInitialize for Chart: '/Chart' */ - cr929_SIL_DW.temporalCounter_i1_jk = 0U; + cr929_SIL_DW.temporalCounter_i1_o0 = 0U; cr929_SIL_DW.is_active_c80_cr929_autopilot = 0U; cr929_SIL_DW.is_c80_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; /* End of SystemInitialize for SubSystem: '/proc_serial_echo' */ - cr929_SIL_DW.temporalCounter_i1_g = 0U; + cr929_SIL_DW.temporalCounter_i1_p = 0U; cr929_SIL_DW.is_active_c45_cr929_autopilot = 0U; cr929_SIL_DW.is_c45_cr929_autopilot = cr929_SIL_IN_NO_ACTIVE_CHILD_n; @@ -43042,7 +43046,7 @@ void cr929_SIL_initialize(void) cr929_SIL_DW.cnt19 = 1U; cr929_SIL_DW.cnt20 = 1U; cr929_SIL_DW.cnt21 = 1U; - cr929_SIL_B.seq_a = 0U; + cr929_SIL_B.seq_c = 0U; /* SystemInitialize for Merge: '/Merge' */ cr929_SIL_B.len = 0U; diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.h b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.h index 3c0d480..eecff90 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.h +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1401 + * Model version : 1.1410 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Aug 24 19:16:31 2021 + * C/C++ source code generated on : Fri Aug 27 09:43:15 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -457,7 +457,7 @@ typedef struct { mavlink_serial_control_t mav_serial_control;/* '/mav_serial_control' */ mavlink_serial_control_t ser_echo; /* '/traffic_ctrl' */ mavlink_autopilot_version_t ap_ver; /* '/send_auto_hw' */ - mavlink_autopilot_version_t ap_ver_l;/* '/traffic_ctrl' */ + mavlink_autopilot_version_t ap_ver_p;/* '/traffic_ctrl' */ mavlink_gps_raw_int_t gps; /* '/Chart' */ mavlink_battery_status_t bat; /* '/Chart' */ TrajPlan home; /* '/takeoff_task' */ @@ -477,7 +477,7 @@ typedef struct { mavlink_global_position_int_t ins; /* '/Chart' */ mavlink_emb_atmo_com_t atmos; /* '/Chart' */ mavlink_attitude_t att; /* '/Chart' */ - CommandMsg msg_d; /* '/send_cmd' */ + CommandMsg msg_k; /* '/send_cmd' */ CommandMsg cmd; /* '/mission_proc' */ mavlink_vfr_hud_t hud; /* '/Chart' */ mavlink_status_t mav_status; /* '/mav_parser' */ @@ -493,7 +493,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_e;/* '/traffic_ctrl' */ + mavlink_mission_request_int_t mission_req_int_m;/* '/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' */ @@ -505,7 +505,7 @@ typedef struct { mavlink_mission_ack_t ack; /* '/merge_ack' */ mavlink_mission_ack_t send_ack_a; /* '/Chart_proc_mission_clr_all' */ mavlink_mission_ack_t send_ack_l; /* '/Chart_proc_mission_req' */ - mavlink_mission_ack_t mission_ack_c; /* '/traffic_ctrl' */ + mavlink_mission_ack_t mission_ack_d; /* '/traffic_ctrl' */ mavlink_extended_sys_state_t ext_sys_stat;/* '/Chart' */ real_T Sum[3]; /* '/Sum' */ real_T p1[3]; /* '/p1' */ @@ -1043,7 +1043,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 TmpSignalConversionAtBytePackInport1[2]; uint32_T TmpSignalConversionAtBytePackInport1_h[2]; uint32_T TmpSignalConversionAtBytePackInport1_h4[2]; @@ -1101,7 +1101,7 @@ typedef struct { uint32_T OutportBuffer_InsertedFor_gps_pos_status_at_inport_0;/* '/Constant' */ real32_T TmpSignalConversionAtBytePackInport2_eeg[20]; real32_T TmpSignalConversionAtBytePackInport3_o[36]; - real32_T TmpSignalConversionAtBytePackInport4[13]; + real32_T TmpSignalConversionAtBytePackInport4[14]; real32_T TmpSignalConversionAtBytePackInport2_eegc[9]; real32_T TmpSignalConversionAtBytePackInport4_f[4]; real32_T TmpSignalConversionAtBytePackInport5[2]; @@ -1154,8 +1154,8 @@ typedef struct { real32_T f; /* '/Chart_proc_param_set' */ real32_T vn; /* '/Chart' */ real32_T ve; /* '/Chart' */ - real32_T vn_a; /* '/Chart' */ - real32_T ve_l; /* '/Chart' */ + real32_T vn_k; /* '/Chart' */ + real32_T ve_o; /* '/Chart' */ real32_T Merge_a; /* '/Merge' */ real32_T Sqrt_i; /* '/Sqrt' */ real32_T TmpSignalConversionAtSFunctionInport1[5];/* '/Chart' */ @@ -1204,15 +1204,15 @@ typedef struct { real32_T throttle_c_out; /* '/landing_task' */ real32_T hdot_c; /* '/landing_task' */ real32_T as_c; /* '/landing_task' */ - real32_T gs_c_d; /* '/landing_task' */ - real32_T phi_c_p; /* '/landing_task' */ - real32_T throttle_c_out_m; /* '/takeoff_task' */ + real32_T gs_c_l; /* '/landing_task' */ + real32_T phi_c_d; /* '/landing_task' */ + real32_T throttle_c_out_c; /* '/takeoff_task' */ real32_T tht_c; /* '/takeoff_task' */ - real32_T phi_c_g; /* '/takeoff_task' */ - real32_T as_c_m; /* '/takeoff_task' */ - real32_T gs_c_k; /* '/takeoff_task' */ + real32_T phi_c_o; /* '/takeoff_task' */ + real32_T as_c_g; /* '/takeoff_task' */ + real32_T gs_c_g; /* '/takeoff_task' */ real32_T de_c; /* '/takeoff_task' */ - real32_T params_n[7]; /* '/proc_cmd' */ + real32_T params_c[7]; /* '/proc_cmd' */ real32_T Ps; /* '/Data Type Conversion' */ real32_T temp; /* '/Gain2' */ real32_T qbar_bl; /* '/add' */ @@ -1274,59 +1274,59 @@ typedef struct { int32_T Ps_a; /* '/Byte Unpack' */ int32_T Qbar; /* '/Byte Unpack' */ ENUM_mode mode; /* '/waypoint_task' */ - ENUM_mode mode_f; /* '/waypoint_task' */ - ENUM_mode mode_h; /* '/landing_task' */ - ENUM_mode mode_g; /* '/takeoff_task' */ + ENUM_mode mode_j; /* '/waypoint_task' */ + ENUM_mode mode_f; /* '/landing_task' */ + ENUM_mode mode_p; /* '/takeoff_task' */ ENUM_VTOL_STATE vtol_state; /* '/takeoff_task' */ ENUM_SystemState state; /* '/takeoff_task' */ ENUM_LANDED_STATE landed_state_out; /* '/waypoint_task' */ - ENUM_LANDED_STATE landed_state_out_f;/* '/waypoint_task' */ + ENUM_LANDED_STATE landed_state_out_h;/* '/waypoint_task' */ ENUM_LANDED_STATE landed_state; /* '/landing_task' */ - ENUM_LANDED_STATE landed_state_l; /* '/takeoff_task' */ - ENUM_LANDED_STATE landed_state_out_p;/* '/Chart' */ + ENUM_LANDED_STATE landed_state_d; /* '/takeoff_task' */ + ENUM_LANDED_STATE landed_state_out_b;/* '/Chart' */ ENUM_CSAS_YAW CSAS_yaw_out; /* '/waypoint_task' */ ENUM_CSAS_YAW yaw_mode; /* '/rudder_stim' */ ENUM_CSAS_YAW yaw_mode_i; /* '/doublet1' */ ENUM_CSAS_YAW yaw_mode_p; /* '/doublet1' */ - ENUM_CSAS_YAW CSAS_yaw_out_e; /* '/waypoint_task' */ + ENUM_CSAS_YAW CSAS_yaw_out_m; /* '/waypoint_task' */ ENUM_CSAS_YAW CSAS_yaw; /* '/landing_task' */ - ENUM_CSAS_YAW CSAS_yaw_m; /* '/takeoff_task' */ + ENUM_CSAS_YAW CSAS_yaw_o; /* '/takeoff_task' */ ENUM_CSAS_ROLL CSAS_roll_out; /* '/waypoint_task' */ ENUM_CSAS_ROLL roll_mode; /* '/AC_test' */ ENUM_CSAS_ROLL roll_mode_a; /* '/rudder_stim' */ ENUM_CSAS_ROLL roll_mode_m; /* '/turning_back' */ ENUM_CSAS_ROLL roll_mode_d; /* '/doublet1' */ ENUM_CSAS_ROLL roll_mode_ac; /* '/doublet1' */ - ENUM_CSAS_ROLL CSAS_roll_out_b; /* '/waypoint_task' */ + ENUM_CSAS_ROLL CSAS_roll_out_f; /* '/waypoint_task' */ ENUM_CSAS_ROLL CSAS_roll; /* '/landing_task' */ - ENUM_CSAS_ROLL CSAS_roll_h; /* '/takeoff_task' */ + ENUM_CSAS_ROLL CSAS_roll_o; /* '/takeoff_task' */ ENUM_CSAS_PITCH CSAS_pitch_out; /* '/waypoint_task' */ ENUM_CSAS_PITCH pitch_mode; /* '/doublet1' */ - ENUM_CSAS_PITCH CSAS_pitch_out_o; /* '/waypoint_task' */ + ENUM_CSAS_PITCH CSAS_pitch_out_n; /* '/waypoint_task' */ ENUM_CSAS_PITCH CSAS_pitch; /* '/landing_task' */ - ENUM_CSAS_PITCH CSAS_pitch_b; /* '/takeoff_task' */ + ENUM_CSAS_PITCH CSAS_pitch_p; /* '/takeoff_task' */ ENUM_AT AT_out; /* '/waypoint_task' */ ENUM_AT AT; /* '/AC_test' */ ENUM_AT AT_l; /* '/AC_test' */ - ENUM_AT AT_out_l; /* '/waypoint_task' */ + ENUM_AT AT_out_c; /* '/waypoint_task' */ ENUM_AT AT_k; /* '/landing_task' */ - ENUM_AT AT_h; /* '/takeoff_task' */ + ENUM_AT AT_f; /* '/takeoff_task' */ ENUM_AFCS_VERT AFCS_VERT_out; /* '/waypoint_task' */ ENUM_AFCS_VERT vert_mode; /* '/AC_test' */ ENUM_AFCS_VERT vert_mode_m; /* '/doublet1' */ ENUM_AFCS_VERT vert_mode_a; /* '/AC_test' */ - ENUM_AFCS_VERT AFCS_VERT_out_d; /* '/waypoint_task' */ + ENUM_AFCS_VERT AFCS_VERT_out_j; /* '/waypoint_task' */ ENUM_AFCS_VERT AFCS_VERT; /* '/landing_task' */ - ENUM_AFCS_VERT AFCS_VERT_b; /* '/takeoff_task' */ + ENUM_AFCS_VERT AFCS_VERT_p; /* '/takeoff_task' */ ENUM_AFCS_LAT AFCS_LAT_out; /* '/waypoint_task' */ ENUM_AFCS_LAT lat_mode; /* '/AC_test' */ ENUM_AFCS_LAT lat_mode_c; /* '/rudder_stim' */ ENUM_AFCS_LAT lat_mode_k; /* '/turning_back' */ ENUM_AFCS_LAT lat_mode_i; /* '/doublet1' */ ENUM_AFCS_LAT lat_mode_a; /* '/doublet1' */ - ENUM_AFCS_LAT AFCS_LAT_out_b; /* '/waypoint_task' */ + ENUM_AFCS_LAT AFCS_LAT_out_o; /* '/waypoint_task' */ ENUM_AFCS_LAT AFCS_LAT; /* '/landing_task' */ - ENUM_AFCS_LAT AFCS_LAT_m; /* '/takeoff_task' */ + ENUM_AFCS_LAT AFCS_LAT_f; /* '/takeoff_task' */ uint16_T UnitDelay_m; /* '/Unit Delay' */ uint16_T len; /* '/Merge' */ uint16_T hal_rec_o2; /* '/hal_rec' */ @@ -1366,10 +1366,10 @@ typedef struct { uint16_T cur_np; /* '/mission_proc' */ uint16_T command_j; /* '/mav' */ uint16_T WP_out; /* '/waypoint_task' */ - uint16_T WP_out_c; /* '/waypoint_task' */ - uint16_T WP_out_d; /* '/landing_task' */ - uint16_T WP_out_g; /* '/takeoff_task' */ - uint16_T WP_out_b; /* '/Chart' */ + uint16_T WP_out_n; /* '/waypoint_task' */ + uint16_T WP_out_o; /* '/landing_task' */ + uint16_T WP_out_a; /* '/takeoff_task' */ + uint16_T WP_out_c; /* '/Chart' */ uint16_T WP_cur; /* '/proc_set_ cur' */ uint16_T id; /* '/proc_cmd' */ uint16_T err_hdr; /* '/parser' */ @@ -1428,10 +1428,10 @@ typedef struct { int16_T Temp_qbar; /* '/Byte Unpack' */ int16_T ByteUnpack_o5[2]; /* '/Byte Unpack' */ uint8_T SumofElements_d; /* '/Sum of Elements' */ - uint8_T seq_a; /* '/record_traffic_ctrl' */ - uint8_T TmpSignalConversionAtBytePackInport3_osd[12]; - uint8_T BytePack[112]; /* '/Byte Pack' */ - uint8_T TmpSignalConversionAtSFunctionInport1_m[117]; + uint8_T seq_c; /* '/record_traffic_ctrl' */ + uint8_T TmpSignalConversionAtBytePackInport3_osd[13]; + uint8_T BytePack[113]; /* '/Byte Pack' */ + uint8_T TmpSignalConversionAtSFunctionInport1_m[118]; uint8_T BytePack_i[172]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_h[177]; uint8_T BytePack_k[189]; /* '/Byte Pack' */ @@ -1454,8 +1454,8 @@ typedef struct { uint8_T TmpSignalConversionAtSFunctionInport1_jf[233]; uint8_T TmpSignalConversionAtBytePackInport6[2]; uint8_T TmpSignalConversionAtBytePackInport8[16]; - uint8_T BytePack_j[102]; /* '/Byte Pack' */ - uint8_T TmpSignalConversionAtSFunctionInport1_ly[107]; + uint8_T BytePack_j[106]; /* '/Byte Pack' */ + uint8_T TmpSignalConversionAtSFunctionInport1_ly[111]; uint8_T BytePack_ab[68]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtSFunctionInport1_fg[73]; uint8_T BytePack_o[72]; /* '/Byte Pack' */ @@ -1588,22 +1588,22 @@ typedef struct { boolean_T brake_c_out; /* '/waypoint_task' */ boolean_T use_da2dsp_out; /* '/turning_back' */ boolean_T use_da2dsp_out_e; /* '/turning_limit' */ - boolean_T use_mission_traj_b; /* '/waypoint_task' */ - boolean_T brake_c_out_o; /* '/waypoint_task' */ - boolean_T use_mission_traj_h; /* '/landing_task' */ + boolean_T use_mission_traj_p; /* '/waypoint_task' */ + boolean_T brake_c_out_j; /* '/waypoint_task' */ + boolean_T use_mission_traj_i; /* '/landing_task' */ boolean_T gear_up_c_out; /* '/landing_task' */ boolean_T brake_c; /* '/landing_task' */ - boolean_T use_mission_traj_m; /* '/takeoff_task' */ - boolean_T brake_c_k; /* '/takeoff_task' */ + boolean_T use_mission_traj_c; /* '/takeoff_task' */ + boolean_T brake_c_c; /* '/takeoff_task' */ boolean_T gear_up_c; /* '/takeoff_task' */ boolean_T takeoff_cmd_out; /* '/takeoff_task' */ boolean_T armed_out; /* '/manual_arm_disarm' */ boolean_T recovery; /* '/standby_emergency' */ - boolean_T standby_k; /* '/manual_arm_disarm' */ - boolean_T xbit_p; /* '/manual_arm_disarm' */ - boolean_T armed_out_l; /* '/manual_arm_disarm' */ + boolean_T standby_p; /* '/manual_arm_disarm' */ + boolean_T xbit_h; /* '/manual_arm_disarm' */ + boolean_T armed_out_o; /* '/manual_arm_disarm' */ boolean_T valid_k; /* '/valid_checking' */ - boolean_T ack_k; /* '/proc_cmd' */ + boolean_T ack_db; /* '/proc_cmd' */ boolean_T WOW[3]; boolean_T Compare; /* '/Compare' */ boolean_T Compare_i; /* '/Compare' */ @@ -1639,7 +1639,7 @@ typedef struct { MavMission m; /* '/chat_update_mission_item' */ CommandMsg msg_msgData; /* '/send_cmd' */ CommandMsg cmd_msgData; /* '/mission_proc' */ - CommandMsg cmd_msgData_n; /* '/proc_cmd' */ + CommandMsg cmd_msgData_i; /* '/proc_cmd' */ CommandMsg cmd2_msgData; /* '/proc_cmd' */ mavlink_param_value_t msg_msgData_h; /* '/proc_param_value' */ mavlink_param_value_t param_val_queue_msgData;/* '/traffic_ctrl' */ @@ -1711,7 +1711,7 @@ typedef struct { real_T WGS84GravitySFunction_gamma_h;/* '/WGS84 Gravity S-Function' */ real_T WGS84GravitySFunction_gamma_phi;/* '/WGS84 Gravity S-Function' */ CommandAck ack_msgData; /* '/Chart_send_ack' */ - CommandAck ack_msgData_g; /* '/proc_cmd' */ + CommandAck ack_msgData_b; /* '/proc_cmd' */ mavlink_mission_count_t mission_cnt_msgData;/* '/Chart_proc_mission_upload' */ mavlink_mission_count_t send_cnt_msgData;/* '/Chart' */ mavlink_mission_count_t send_cnt_msgData_p;/* '/Chart_proc_mission_req_lst' */ @@ -1719,7 +1719,7 @@ typedef struct { mavlink_mission_ack_t mission_ack_msgData;/* '/Chart_proc_mission_upload' */ mavlink_mission_ack_t ack1_msgData; /* '/merge_ack' */ mavlink_mission_ack_t ack2_msgData; /* '/merge_ack' */ - mavlink_mission_ack_t ack_msgData_b; /* '/merge_ack' */ + mavlink_mission_ack_t ack_msgData_bn;/* '/merge_ack' */ mavlink_mission_ack_t ack3_msgData; /* '/merge_ack' */ mavlink_mission_ack_t send_ack_msgData_c;/* '/Chart_proc_mission_clr_all' */ mavlink_mission_ack_t send_ack_msgData_l;/* '/Chart_proc_mission_req' */ @@ -1889,7 +1889,7 @@ typedef struct { void* msgs_msgInterface; /* '/proc_queue' */ void* msgs_msgHandle; /* '/proc_queue' */ void* msgs_msgDataPtr; /* '/proc_queue' */ - void* msg_msgInterface_i; /* '/send_cmd' */ + void* msg_msgInterface_c; /* '/send_cmd' */ void* ap_ver_msgInterface; /* '/send_auto_hw' */ void* send_req_msgInterface; /* '/Chart' */ void* send_ack_msgInterface; /* '/Chart_proc_mission_clr_all' */ @@ -1929,21 +1929,21 @@ typedef struct { void* serial_echoline_msgInterface; /* '/traffic_ctrl' */ void* serial_echoline_msgHandle; /* '/traffic_ctrl' */ void* serial_echoline_msgDataPtr; /* '/traffic_ctrl' */ - void* send_ack_msgInterface_c; /* '/Chart_send_ack' */ - void* ack_msgInterface_m; /* '/Chart_send_ack' */ + void* send_ack_msgInterface_o; /* '/Chart_send_ack' */ + void* ack_msgInterface_e; /* '/Chart_send_ack' */ void* ack_msgHandle; /* '/Chart_send_ack' */ void* ack_msgDataPtr; /* '/Chart_send_ack' */ void* cmd_msgInterface; /* '/mission_proc' */ void* set_cur_msgInterface_p; /* '/proc_set_ cur' */ void* set_cur_msgHandle; /* '/proc_set_ cur' */ void* set_cur_msgDataPtr; /* '/proc_set_ cur' */ - void* cmd_msgInterface_j; /* '/proc_cmd' */ + void* cmd_msgInterface_k; /* '/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_l; /* '/proc_cmd' */ + void* ack_msgInterface_c; /* '/proc_cmd' */ real32_T Delay_DSTATE_kb; /* '/Delay' */ real32_T Delay_DSTATE_l; /* '/Delay' */ real32_T Delay_DSTATE_i; /* '/Delay' */ @@ -2047,8 +2047,8 @@ typedef struct { uint32_T m_bpIndex_g2; /* '/1-D Lookup Table2' */ uint32_T m_bpIndex_la; /* '/1-D Lookup Table4' */ uint32_T wait_time; /* '/traffic_ctrl' */ - uint32_T temporalCounter_i1_g; /* '/traffic_ctrl' */ - uint32_T temporalCounter_i1_a; /* '/pos_sel' */ + uint32_T temporalCounter_i1_p; /* '/traffic_ctrl' */ + uint32_T temporalCounter_i1_o; /* '/pos_sel' */ uint32_T m_bpIndex_f4; /* '/da2dal_deg' */ uint32_T m_bpIndex_gym; /* '/da2dar_deg' */ uint32_T m_bpIndex_ih; /* '/da2dal_deg' */ @@ -2066,10 +2066,10 @@ typedef struct { uint32_T m_bpIndex_by; /* '/1-D Lookup Table' */ uint32_T temporalCounter_i1_d; /* '/AC_test' */ uint32_T temporalCounter_i1_l; /* '/rudder_stim' */ - uint32_T temporalCounter_i1_a5; /* '/doublet1' */ - uint32_T temporalCounter_i1_gp; /* '/doublet1' */ + uint32_T temporalCounter_i1_a; /* '/doublet1' */ + uint32_T temporalCounter_i1_g; /* '/doublet1' */ uint32_T temporalCounter_i1_gs; /* '/doublet1' */ - uint32_T temporalCounter_i1_p; /* '/sweep' */ + uint32_T temporalCounter_i1_pm; /* '/sweep' */ uint32_T temporalCounter_i1_b; /* '/handsoff' */ uint32_T temporalCounter_i1_n; /* '/AC_test' */ uint32_T temporalCounter_i1_i; /* '/steady_beta' */ @@ -2114,25 +2114,25 @@ typedef struct { int16_T left; /* '/record_traffic_ctrl' */ uint16_T temporalCounter_i1_h; /* '/check_gps_valid' */ uint16_T last_seq; /* '/Chart' */ - uint16_T temporalCounter_i1_ib; /* '/Chart' */ - uint16_T last_seq_i; /* '/Chart' */ - uint16_T temporalCounter_i1_hb; /* '/Chart' */ - uint16_T last_seq_o; /* '/Chart' */ - uint16_T temporalCounter_i1_k; /* '/Chart' */ - uint16_T last_seq_e; /* '/Chart' */ - uint16_T temporalCounter_i1_gx; /* '/Chart' */ - uint16_T last_seq_d; /* '/Chart' */ - uint16_T temporalCounter_i1_gm; /* '/Chart' */ - uint16_T last_seq_k; /* '/Chart' */ - uint16_T temporalCounter_i1_f; /* '/Chart' */ - uint16_T last_seq_c; /* '/Chart' */ - uint16_T temporalCounter_i1_c; /* '/Chart' */ - uint16_T last_seq_e3; /* '/Chart' */ - uint16_T temporalCounter_i1_ks; /* '/Chart' */ - uint16_T last_seq_kb; /* '/Chart' */ - uint16_T temporalCounter_i1_e; /* '/Chart' */ - uint16_T last_seq_it; /* '/Chart' */ - uint16_T temporalCounter_i1_nc; /* '/Chart' */ + uint16_T temporalCounter_i1_e; /* '/Chart' */ + uint16_T last_seq_p; /* '/Chart' */ + uint16_T temporalCounter_i1_f; /* '/Chart' */ + uint16_T last_seq_e; /* '/Chart' */ + uint16_T temporalCounter_i1_go; /* '/Chart' */ + uint16_T last_seq_l; /* '/Chart' */ + uint16_T temporalCounter_i1_fq; /* '/Chart' */ + uint16_T last_seq_o; /* '/Chart' */ + uint16_T temporalCounter_i1_eq; /* '/Chart' */ + uint16_T last_seq_c; /* '/Chart' */ + uint16_T temporalCounter_i1_goe; /* '/Chart' */ + uint16_T last_seq_g; /* '/Chart' */ + uint16_T temporalCounter_i1_ea; /* '/Chart' */ + uint16_T last_seq_pf; /* '/Chart' */ + uint16_T temporalCounter_i1_k; /* '/Chart' */ + uint16_T last_seq_a; /* '/Chart' */ + uint16_T temporalCounter_i1_mr; /* '/Chart' */ + uint16_T last_seq_a5; /* '/Chart' */ + uint16_T temporalCounter_i1_dz; /* '/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' */ @@ -2146,12 +2146,12 @@ typedef struct { uint16_T resp_msgData_d; /* '/Chart' */ uint16_T resp_msgData_g; /* '/Chart_proc_param_req_read' */ uint16_T temporalCounter_i1_de; /* '/valid_checking' */ - uint16_T temporalCounter_i1_fm; /* '/waypoint_task' */ + uint16_T temporalCounter_i1_j; /* '/waypoint_task' */ uint16_T temporalCounter_i1_dm; /* '/turning_back' */ - uint16_T temporalCounter_i1_j; /* '/waypoint_task' */ - uint16_T temporalCounter_i1_hj; /* '/landing_task' */ - uint16_T temporalCounter_i1_mg; /* '/takeoff_task' */ - uint16_T temporalCounter_i1_gu; /* '/manual_arm_disarm' */ + uint16_T temporalCounter_i1_dn; /* '/waypoint_task' */ + uint16_T temporalCounter_i1_fo; /* '/landing_task' */ + uint16_T temporalCounter_i1_dr; /* '/takeoff_task' */ + uint16_T temporalCounter_i1_nj; /* '/manual_arm_disarm' */ uint16_T set_cur_msgData_c; /* '/proc_set_ cur' */ uint16_T temporalCounter_i1_kj; /* '/valid_checking' */ uint16_T last_cnt; /* '/check_conn' */ @@ -2243,7 +2243,7 @@ typedef struct { uint8_T is_c48_cr929_autopilot; /* '/Chart' */ uint8_T is_active_c80_cr929_autopilot;/* '/Chart' */ uint8_T is_c80_cr929_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_jk; /* '/Chart' */ + uint8_T temporalCounter_i1_o0; /* '/Chart' */ uint8_T is_active_c31_mavlink_utils; /* '/proc_param_value' */ uint8_T is_c31_mavlink_utils; /* '/proc_param_value' */ uint8_T temporalCounter_i1_b0; /* '/proc_param_value' */ @@ -2336,7 +2336,7 @@ typedef struct { uint8_T is_c12_cr929_autopilot; /* '/proc_cmd' */ uint8_T is_active_c3_cr929_autopilot;/* '/Chart' */ uint8_T is_c3_cr929_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_mr; /* '/Chart' */ + uint8_T temporalCounter_i1_gsp; /* '/Chart' */ uint8_T is_active_c8_pack_parser; /* '/parser' */ uint8_T is_c8_pack_parser; /* '/parser' */ uint8_T is_active_c1_sbg; /* '/parser' */ @@ -4040,6 +4040,8 @@ extern RT_MODEL_cr929_SIL_T *const cr929_SIL_M; * Block '/add1' : Unused code path elimination * Block '/add2' : Unused code path elimination * Block '/Constant1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination * Block '/Selector1' : Unused code path elimination * Block '/Constant4' : Unused code path elimination * Block '/Constant5' : Unused code path elimination @@ -4316,6 +4318,7 @@ extern RT_MODEL_cr929_SIL_T *const cr929_SIL_M; * Block '/Data Type Conversion7' : Eliminate redundant data type conversion * Block '/Data Type Conversion8' : Eliminate redundant data type conversion * Block '/Data Type Conversion9' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion * Block '/reshape' : Reshape block reduction * Block '/Unit Conversion' : Eliminated nontunable gain of 1 * Block '/Unit Conversion' : Eliminated nontunable gain of 1 diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.c b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.c index 3e820d7..dceeba9 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.c +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1401 + * Model version : 1.1410 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Aug 24 19:16:31 2021 + * C/C++ source code generated on : Fri Aug 27 09:43:15 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -927,10 +927,10 @@ static rtwCAPI_ModelMappingStaticInfo mmiStatic = { rtElementMap, rtSampleTimeMap, rtDimensionArray }, "float", - { 2411774261U, - 1358651775U, - 3684999962U, - 963134632U }, + { 2374771146U, + 360718284U, + 1026861645U, + 837405641U }, (NULL), 0, 0 }; diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.h b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.h index f3cec89..24d846e 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.h +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_capi.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1401 + * Model version : 1.1410 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Aug 24 19:16:31 2021 + * C/C++ source code generated on : Fri Aug 27 09:43:15 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_data.c b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_data.c index e4583db..f19529a 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_data.c +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_data.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1401 + * Model version : 1.1410 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Aug 24 19:16:31 2021 + * C/C++ source code generated on : Fri Aug 27 09:43:15 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -63,7 +63,7 @@ const ConstB_cr929_SIL_T cr929_SIL_ConstB = { { -0.11937, 0.306, 0.268 }, /* '/Selector2' */ 0U, /* '/PreLook-Up Index Search (prob of exceed)' */ - 117U, /* '/Width1' */ + 118U, /* '/Width1' */ 177U, /* '/Width1' */ 194U, /* '/Width1' */ 89U, /* '/Width1' */ @@ -73,7 +73,7 @@ const ConstB_cr929_SIL_T cr929_SIL_ConstB = { 73U, /* '/Width1' */ 65U, /* '/Width1' */ 233U, /* '/Width1' */ - 107U, /* '/Width1' */ + 111U, /* '/Width1' */ 73U, /* '/Width1' */ 77U, /* '/Width1' */ 19U, /* '/Width1' */ @@ -83,7 +83,7 @@ const ConstB_cr929_SIL_T cr929_SIL_ConstB = { 45U, /* '/Width1' */ 73U, /* '/Width1' */ 65U, /* '/Width1' */ - 112U, /* '/Width' */ + 113U, /* '/Width' */ 172U, /* '/Width' */ 189U, /* '/Width' */ 84U, /* '/Width' */ @@ -93,7 +93,7 @@ const ConstB_cr929_SIL_T cr929_SIL_ConstB = { 68U, /* '/Width' */ 60U, /* '/Width' */ 228U, /* '/Width' */ - 102U, /* '/Width' */ + 106U, /* '/Width' */ 68U, /* '/Width' */ 72U, /* '/Width' */ 14U, /* '/Width' */ @@ -1386,9 +1386,9 @@ const ConstP_cr929_SIL_T cr929_SIL_ConstP = { 16U, 1U, - { 0.0F, 5.0F, 0.0F, 0.0F, 26.0F }, + { 0.0F, 5.0F, 0.0F, 0.0F, 50.0F }, - { 407053922, 1102403535 } + { 407058627, 1102396349 } }, { 3U, 16U, 1U, @@ -1400,7 +1400,7 @@ const ConstP_cr929_SIL_T cr929_SIL_ConstP = { 16U, 1U, - { 0.0F, 50.0F, 500.0F, 0.0F, 300.0F }, + { 0.0F, 50.0F, 500.0F, 0.0F, 340.0F }, { 407304693, 1102265467 } }, { 3U, diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_private.h b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_private.h index 0746ce9..f51719a 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_private.h +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_private.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1401 + * Model version : 1.1410 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Aug 24 19:16:31 2021 + * C/C++ source code generated on : Fri Aug 27 09:43:15 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_types.h b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_types.h index f01ae64..9a3168e 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_types.h +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/cr929_SIL_types.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1401 + * Model version : 1.1410 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Aug 24 19:16:31 2021 + * C/C++ source code generated on : Fri Aug 27 09:43:15 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) diff --git a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/rtmodel.h b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/rtmodel.h index 81584e9..b44d0b0 100644 --- a/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/rtmodel.h +++ b/cr929_SIL/work/cr929_SIL_ert_shrlib_rtw/rtmodel.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'cr929_SIL'. * - * Model version : 1.1401 + * Model version : 1.1410 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Aug 24 19:16:31 2021 + * C/C++ source code generated on : Fri Aug 27 09:43:15 2021 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64)