diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL.c b/SIL/work/SIL_ert_shrlib_rtw/SIL.c index 8efa62c..26c4e9e 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL.c +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'SIL'. * - * Model version : 1.527 + * Model version : 1.537 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Dec 8 11:41:06 2020 + * C/C++ source code generated on : Tue Dec 8 17:00:08 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -113,20 +113,20 @@ /* Named constants for Chart: '/Chart' */ #define SIL_IN_Idle1 ((uint8_T)2U) #define SIL_IN_Idle2 ((uint8_T)3U) -#define SIL_IN_Idle_l ((uint8_T)1U) +#define SIL_IN_Idle_n ((uint8_T)1U) #define SIL_IN_balloon ((uint8_T)4U) #define SIL_IN_cover ((uint8_T)5U) #define SIL_IN_cut ((uint8_T)6U) #define SIL_IN_five ((uint8_T)1U) #define SIL_IN_four ((uint8_T)2U) #define SIL_IN_one ((uint8_T)1U) -#define SIL_IN_one_a ((uint8_T)3U) +#define SIL_IN_one_j ((uint8_T)3U) #define SIL_IN_parachute ((uint8_T)7U) #define SIL_IN_six ((uint8_T)4U) #define SIL_IN_three ((uint8_T)2U) -#define SIL_IN_three_d ((uint8_T)5U) +#define SIL_IN_three_k ((uint8_T)5U) #define SIL_IN_two ((uint8_T)3U) -#define SIL_IN_two_p ((uint8_T)6U) +#define SIL_IN_two_g ((uint8_T)6U) /* Named constants for Chart: '/TopLevelSwitch' */ #define SIL_IN_operational ((uint8_T)1U) @@ -605,7 +605,7 @@ static void SIL_sf_msg_discard_cmd2(void); static boolean_T SIL_sf_msg_pop_set_cur(void); static void SIL_sf_msg_discard_set_cur(void); static void SIL_sf_msg_send_ack(void); -static void SIL_update_k(real32_T pos); +static void SIL_update_a(real32_T pos); static void SIL_sf_msg_send_cmd(void); static void SIL_update_vert(ENUM_AFCS_VERT in, ENUM_AT in2, ENUM_AFCS_VERT *out, ENUM_AT *out2); @@ -5800,11 +5800,11 @@ int32_T SIL_Chart_send_ack_SendData(const CommandAck *data_toSend) /* Function for Chart: '/proc_cmd' */ static void SIL_sf_msg_send_ack(void) { - SIL_Chart_send_ack_SendData(&SIL_DW.ack_msgData_j); + SIL_Chart_send_ack_SendData(&SIL_DW.ack_msgData_o); } /* Function for Chart: '/sweep_generator' */ -static void SIL_update_k(real32_T pos) +static void SIL_update_a(real32_T pos) { uint8_T i; i = 0U; @@ -5886,15 +5886,11 @@ static void SIL_update_vert(ENUM_AFCS_VERT in, ENUM_AT in2, ENUM_AFCS_VERT *out, ENUM_AT *out2) { real32_T tmp; - - /* UnitDelay: '/Unit Delay' */ - tmp = SIL_DW.UnitDelay_DSTATE.hdot * 10.0F; - if ((in == ENUM_AFCS_VERT_AS2THT) && (((SIL_DW.UnitDelay_DSTATE.ht_diff > 0.0F) - && ((SIL_DW.UnitDelay_DSTATE.ht_diff < tmp) || - (SIL_DW.UnitDelay_DSTATE.ht_diff < 50.0F))) || - ((SIL_DW.UnitDelay_DSTATE.ht_diff < 0.0F) && - ((SIL_DW.UnitDelay_DSTATE.ht_diff > tmp) || - (SIL_DW.UnitDelay_DSTATE.ht_diff > -50.0F))))) { + tmp = SIL_B.UnitDelay.hdot * 10.0F; + if ((in == ENUM_AFCS_VERT_AS2THT) && (((SIL_B.UnitDelay.ht_diff > 0.0F) && + ((SIL_B.UnitDelay.ht_diff < tmp) || (SIL_B.UnitDelay.ht_diff < 50.0F))) || + ((SIL_B.UnitDelay.ht_diff < 0.0F) && ((SIL_B.UnitDelay.ht_diff > tmp) || + (SIL_B.UnitDelay.ht_diff > -50.0F))))) { *out = ENUM_AFCS_VERT_VNAV2THT; *out2 = ENUM_AT_AS; } else if (in == ENUM_AFCS_VERT_OFF) { @@ -5904,8 +5900,6 @@ static void SIL_update_vert(ENUM_AFCS_VERT in, ENUM_AT in2, ENUM_AFCS_VERT *out, *out = in; *out2 = in2; } - - /* End of UnitDelay: '/Unit Delay' */ } /* Function for Chart: '/Chart' */ @@ -5916,17 +5910,17 @@ static void SIL_parachute(void) SIL_DW.is_c59_kb3_autopilot = SIL_IN_cover; SIL_DW.temporalCounter_i2 = 0U; SIL_B.recovery_out = 3U; - SIL_DW.is_cover = SIL_IN_one_a; - SIL_DW.temporalCounter_i1_h1 = 0U; + SIL_DW.is_cover = SIL_IN_one_j; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 5U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; } else { switch (SIL_DW.is_parachute) { case SIL_IN_one: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { + if (SIL_DW.temporalCounter_i1_de >= 50U) { SIL_DW.is_parachute = SIL_IN_two; - SIL_DW.temporalCounter_i1_h1 = 0U; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 3U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -5944,7 +5938,7 @@ static void SIL_parachute(void) break; default: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { + if (SIL_DW.temporalCounter_i1_de >= 50U) { SIL_DW.is_parachute = SIL_IN_three; SIL_B.ch_out = 3U; SIL_B.peroid_out = 50U; @@ -5967,7 +5961,7 @@ static void SIL_Idle(void) SIL_DW.temporalCounter_i2 = 0U; SIL_B.recovery_out = 1U; SIL_DW.is_parachute = SIL_IN_one; - SIL_DW.temporalCounter_i1_h1 = 0U; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 3U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -9089,8 +9083,8 @@ void SIL_step(void) real32_T rtb_Sum_oi; real32_T rtb_err_psi; real32_T rtb_err_psi1; - real32_T rtb_out_g; - real32_T rtb_out_fs; + real32_T rtb_out_gz; + real32_T rtb_out_f; real32_T rtb_out_d2; uint16_T rtb_pwms[16]; uint8_T rtb_Merge1_h; @@ -9200,6 +9194,7 @@ void SIL_step(void) int32_T rtb_BitwiseAND1; int32_T rtb_BitwiseAND2; int32_T rtb_BitwiseAND5; + boolean_T rtb_not; uint32_T rtb_DataTypeConversion1; real_T rtb_Merge2; real_T rtb_Gain; @@ -9210,9 +9205,9 @@ void SIL_step(void) int8_T rtb_VectorConcatenate_h[9]; real32_T rtb_Product2_fn[3]; int32_T idx; - real32_T rtb_table1D_thrAB_map_b; + real32_T rtb_table1D_thrAB_map_g; real32_T rtb_qbarSc; - real32_T rtb_product_k; + real32_T rtb_product_mt; real32_T rtb_product1_i; real32_T rtb_Product_pqq; real32_T rtb_Product3_n; @@ -9220,7 +9215,6 @@ void SIL_step(void) real32_T rtb_Merge1_aq; ENUM_sysauto_level1 rtb_level1_lgx; boolean_T rtb_xbit_cmd; - boolean_T rtb_standby_cmd; real32_T rtb_Merge_i_dr_c; real32_T rtb_Merge_i_de_c; real32_T rtb_Merge_i_da_c; @@ -9322,7 +9316,7 @@ void SIL_step(void) real32_T rtb_Merge_i_fuel_est; real_T uTmp[3]; C2 rtb_Merge; - real32_T rtb_uDLookupTable_c; + real32_T rtb_uDLookupTable; real32_T rtb_Merge_a; real32_T rtb_Merge_h_der_c; real32_T rtb_Merge_h_dal_c; @@ -9814,7 +9808,7 @@ void SIL_step(void) real32_T rtb_KP; real32_T rtb_Divide2; real32_T rtb_Merge1_py; - uint32_T rtb_out_nq; + uint32_T rtb_out_l; ENUM_BIT_MODE rtb_MultiportSwitch; real32_T rtb_Switch_fp; real32_T rtb_Gain1_o0[5]; @@ -10900,19 +10894,13 @@ void SIL_step(void) /* UnitDelay: '/Unit Delay' */ rtb_sincos_o2_f_idx_0 = SIL_DW.UnitDelay_DSTATE_k; - /* Outputs for Atomic SubSystem: '/atmosphere' */ - /* SignalConversion: '/BusConversion_InsertedFor_atmosphere_at_inport_0' incorporates: - * Constant: '/Constant BP' - * Lookup_n-D: '/1-D Lookup Table' - * Lookup_n-D: '/1-D Lookup Table1' - */ - SIL_B.WindVelocity[0] = look1_binlcpw(rtb_sincos_o2_f_idx_0, + /* Lookup_n-D: '/1-D Lookup Table' */ + SIL_B.uDLookupTable = look1_binlcpw(rtb_sincos_o2_f_idx_0, SIL_P.wind_level, SIL_P.wind_north, 2U); - SIL_B.WindVelocity[1] = look1_binlcpw(rtb_sincos_o2_f_idx_0, - SIL_P.wind_level, SIL_P.wind_east, 2U); - SIL_B.WindVelocity[2] = 0.0; - /* End of Outputs for SubSystem: '/atmosphere' */ + /* Lookup_n-D: '/1-D Lookup Table1' */ + SIL_B.uDLookupTable1 = look1_binlcpw(rtb_sincos_o2_f_idx_0, + SIL_P.wind_level, SIL_P.wind_east, 2U); } /* Sum: '/Sum2' */ @@ -11032,6 +11020,37 @@ void SIL_step(void) rtb_table2D_NhAB += SIL_B.Acc_g[idx] * SIL_B.Acc_g[idx]; } + /* SignalConversion: '/TmpSignal ConversionAtTo Body Axes1Inport2' incorporates: + * Constant: '/Constant BP' + */ + SIL_B.WindVelocity[0] = SIL_B.uDLookupTable; + SIL_B.WindVelocity[1] = SIL_B.uDLookupTable1; + SIL_B.WindVelocity[2] = 0.0; + for (idx = 0; idx < 3; idx++) { + /* Product: '/To Body Axes1' */ + SIL_B.WindVelocity_g[idx] = 0.0; + SIL_B.WindVelocity_g[idx] += SIL_B.Product4[idx] * SIL_B.WindVelocity[0]; + SIL_B.WindVelocity_g[idx] += SIL_B.Product4[idx + 3] * SIL_B.WindVelocity + [1]; + SIL_B.WindVelocity_g[idx] += SIL_B.Product4[idx + 6] * SIL_B.WindVelocity + [2]; + + /* SignalConversion: '/TmpSignal ConversionAtTo Body Axes2Inport2' */ + SIL_B.WindAngularRates[idx] = 0.0; + } + + /* Product: '/To Body Axes2' */ + for (idx = 0; idx < 3; idx++) { + SIL_B.WindAngularRates_a[idx] = 0.0; + SIL_B.WindAngularRates_a[idx] += SIL_B.Product4[idx] * + SIL_B.WindAngularRates[0]; + SIL_B.WindAngularRates_a[idx] += SIL_B.Product4[idx + 3] * + SIL_B.WindAngularRates[1]; + SIL_B.WindAngularRates_a[idx] += SIL_B.Product4[idx + 6] * + SIL_B.WindAngularRates[2]; + } + + /* End of Product: '/To Body Axes2' */ if (rtmIsMajorTimeStep(SIL_M) && SIL_M->Timing.TaskCounters.TID[1] == 0) { /* SignalConversion: '/BusConversion_InsertedFor_atmosphere_at_inport_0' incorporates: @@ -11244,7 +11263,7 @@ void SIL_step(void) /* Sum: '/Sum2' incorporates: * UnitConversion: '/Unit Conversion' */ - SIL_B.VWb[0] = SIL_B.ubvbwb[0] - SIL_B.WindVelocity[0]; + SIL_B.VWb[0] = SIL_B.ubvbwb[0] + SIL_B.WindVelocity_g[0]; /* Integrator: '/p,q,r ' */ SIL_B.pqr[1] = SIL_X.pqr_CSTATE[1]; @@ -11252,7 +11271,7 @@ void SIL_step(void) /* Sum: '/Sum2' incorporates: * UnitConversion: '/Unit Conversion' */ - SIL_B.VWb[1] = SIL_B.ubvbwb[1] - SIL_B.WindVelocity[1]; + SIL_B.VWb[1] = SIL_B.ubvbwb[1] + SIL_B.WindVelocity_g[1]; /* Integrator: '/p,q,r ' */ SIL_B.pqr[2] = SIL_X.pqr_CSTATE[2]; @@ -11260,7 +11279,7 @@ void SIL_step(void) /* Sum: '/Sum2' incorporates: * UnitConversion: '/Unit Conversion' */ - SIL_B.VWb[2] = SIL_B.ubvbwb[2] - SIL_B.WindVelocity[2]; + SIL_B.VWb[2] = SIL_B.ubvbwb[2] + SIL_B.WindVelocity_g[2]; /* Product: '/Product' */ SIL_B.Product_c = SIL_B.VWb[0] * SIL_B.VWb[0]; @@ -11333,13 +11352,13 @@ void SIL_step(void) /* Product: '/product' incorporates: * Lookup_n-D: '/table1D_Ixz' */ - SIL_B.product_f = -look1_binlxpw(SIL_B.mass_e, rtCP_table1D_Ixz_bp01Data, + SIL_B.product_g = -look1_binlxpw(SIL_B.mass_e, rtCP_table1D_Ixz_bp01Data, rtCP_table1D_Ixz_tableData, 5U); /* Product: '/product' incorporates: * Lookup_n-D: '/table1D_Iyz' */ - SIL_B.product_e = -look1_binlxpw(SIL_B.mass_e, rtCP_table1D_Iyz_bp01Data, + SIL_B.product_l = -look1_binlxpw(SIL_B.mass_e, rtCP_table1D_Iyz_bp01Data, rtCP_table1D_Iyz_tableData, 5U); /* Sum: '/add' incorporates: @@ -11351,13 +11370,13 @@ void SIL_step(void) rtb_VectorConcatenate_c[0] = look1_binlxpw(SIL_B.mass_e, rtCP_table1D_Ixx_bp01Data, rtCP_table1D_Ixx_tableData, 5U); rtb_VectorConcatenate_c[3] = SIL_B.product; - rtb_VectorConcatenate_c[6] = SIL_B.product_f; + rtb_VectorConcatenate_c[6] = SIL_B.product_g; rtb_VectorConcatenate_c[1] = SIL_B.product; rtb_VectorConcatenate_c[4] = look1_binlxpw(SIL_B.mass_e, rtCP_table1D_Iyy_bp01Data, rtCP_table1D_Iyy_tableData, 5U); - rtb_VectorConcatenate_c[7] = SIL_B.product_e; - rtb_VectorConcatenate_c[2] = SIL_B.product_f; - rtb_VectorConcatenate_c[5] = SIL_B.product_e; + rtb_VectorConcatenate_c[7] = SIL_B.product_l; + rtb_VectorConcatenate_c[2] = SIL_B.product_g; + rtb_VectorConcatenate_c[5] = SIL_B.product_l; rtb_VectorConcatenate_c[8] = look1_binlxpw(SIL_B.mass_e, rtCP_table1D_Izz_bp01Data, rtCP_table1D_Izz_tableData, 5U); for (idx = 0; idx < 9; idx++) { @@ -11406,7 +11425,18 @@ void SIL_step(void) /* Product: '/product' incorporates: * Constant: '/value' */ - SIL_B.product_p = rtb_sincos_o2_f_idx_0 * 57.29; + SIL_B.product_h = rtb_sincos_o2_f_idx_0 * 57.29; + + /* Saturate: '/saturation' */ + if (SIL_B.product_h > 24.0) { + SIL_B.saturation = 24.0; + } else if (SIL_B.product_h < -4.0) { + SIL_B.saturation = -4.0; + } else { + SIL_B.saturation = SIL_B.product_h; + } + + /* End of Saturate: '/saturation' */ /* Sqrt: '/Airspeed' */ rtb_sincos_o2_f_idx_1 = sqrt(SIL_B.Sum1_f); @@ -11419,14 +11449,25 @@ void SIL_step(void) * Sqrt: '/Sqrt' * Trigonometry: '/Sideslip' */ - SIL_B.product_n = rt_atan2d_snf(SIL_B.VWb[1], sqrt(SIL_B.Sum_k)) * 57.29; + SIL_B.product_e = rt_atan2d_snf(SIL_B.VWb[1], sqrt(SIL_B.Sum_k)) * 57.29; + + /* Saturate: '/saturation' */ + if (SIL_B.product_e > 12.0) { + SIL_B.saturation_a = 12.0; + } else if (SIL_B.product_e < -12.0) { + SIL_B.saturation_a = -12.0; + } else { + SIL_B.saturation_a = SIL_B.product_e; + } + + /* End of Saturate: '/saturation' */ /* Lookup_n-D: '/table3D_CL_aos' */ - bpIndices[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_CL_aos_bp01Data, + bpIndices[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_CL_aos_bp01Data, 11U, &rtb_q3dot); fractions[0U] = rtb_q3dot; - bpIndices[1U] = plook_binx(SIL_B.product_n, rtCP_table3D_CL_aos_bp02Data, 8U, - &rtb_q3dot); + bpIndices[1U] = plook_binx(SIL_B.saturation_a, rtCP_table3D_CL_aos_bp02Data, + 8U, &rtb_q3dot); fractions[1U] = rtb_q3dot; bpIndices[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_CL_aos_bp03Data, 10U, &rtb_q3dot); @@ -11595,13 +11636,13 @@ void SIL_step(void) /* Product: '/product' incorporates: * Constant: '/value' */ - SIL_B.product_d = SIL_B.da * 57.3; + SIL_B.product_b = SIL_B.da * 57.3; /* Lookup_n-D: '/table3D_CL_da' */ - bpIndices_0[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_CL_da_bp01Data, + bpIndices_0[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_CL_da_bp01Data, 11U, &rtb_q3dot); fractions_0[0U] = rtb_q3dot; - bpIndices_0[1U] = plook_binx(SIL_B.product_d, rtCP_table3D_CL_da_bp02Data, + bpIndices_0[1U] = plook_binx(SIL_B.product_b, rtCP_table3D_CL_da_bp02Data, 10U, &rtb_q3dot); fractions_0[1U] = rtb_q3dot; bpIndices_0[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_CL_da_bp03Data, @@ -11765,13 +11806,13 @@ void SIL_step(void) /* Product: '/product' incorporates: * Constant: '/value' */ - SIL_B.product_m = SIL_B.de * 57.3; + SIL_B.product_d = SIL_B.de * 57.3; /* Lookup_n-D: '/table3D_CL_de' */ - bpIndices_1[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_CL_de_bp01Data, + bpIndices_1[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_CL_de_bp01Data, 11U, &rtb_q3dot); fractions_1[0U] = rtb_q3dot; - bpIndices_1[1U] = plook_binx(SIL_B.product_m, rtCP_table3D_CL_de_bp02Data, + bpIndices_1[1U] = plook_binx(SIL_B.product_d, rtCP_table3D_CL_de_bp02Data, 9U, &rtb_q3dot); fractions_1[1U] = rtb_q3dot; bpIndices_1[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_CL_de_bp03Data, @@ -11783,7 +11824,7 @@ void SIL_step(void) /* Product: '/product' incorporates: * Constant: '/Param_CLdeUncertGain' */ - SIL_B.product_g = rtb_TrigonometricFunction1_b * CLdeUncertGain; + SIL_B.product_hw = rtb_TrigonometricFunction1_b * CLdeUncertGain; if (rtmIsMajorTimeStep(SIL_M) && SIL_M->Timing.TaskCounters.TID[2] == 0) { /* Product: '/divide2' incorporates: @@ -11839,14 +11880,14 @@ void SIL_step(void) /* Product: '/product' incorporates: * Constant: '/value' */ - SIL_B.product_o = SIL_B.In1_k * 57.3; + SIL_B.product_bc = SIL_B.In1_k * 57.3; } /* Lookup_n-D: '/table3D_CL_dr' */ - bpIndices_2[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_CL_dr_bp01Data, + bpIndices_2[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_CL_dr_bp01Data, 11U, &rtb_q3dot); fractions_2[0U] = rtb_q3dot; - bpIndices_2[1U] = plook_binx(SIL_B.product_o, rtCP_table3D_CL_dr_bp02Data, + bpIndices_2[1U] = plook_binx(SIL_B.product_bc, rtCP_table3D_CL_dr_bp02Data, 10U, &rtb_q3dot); fractions_2[1U] = rtb_q3dot; bpIndices_2[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_CL_dr_bp03Data, @@ -11856,7 +11897,7 @@ void SIL_step(void) rtCP_table3D_CL_dr_tableData, rtCP_table3D_CL_dr_dimSizes); /* Lookup_n-D: '/table3D_CL_df' */ - bpIndices_3[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_CL_df_bp01Data, + bpIndices_3[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_CL_df_bp01Data, 11U, &rtb_q3dot); fractions_3[0U] = rtb_q3dot; bpIndices_3[1U] = plook_binx(0.0, rtCP_table3D_CL_df_bp02Data, 4U, @@ -11871,20 +11912,20 @@ void SIL_step(void) /* DotProduct: '/Dot Product' incorporates: * Lookup_n-D: '/table2D_CLq' */ - rtb_table2D_NhAB = look2_binlxpw(SIL_B.product_p, SIL_B.Product3_f, + rtb_table2D_NhAB = look2_binlxpw(SIL_B.saturation, SIL_B.Product3_f, rtCP_table2D_CLq_bp01Data, rtCP_table2D_CLq_bp02Data, rtCP_table2D_CLq_tableData, rtCP_table2D_CLq_maxIndex, 12U); /* Sum: '/Sum1' */ - SIL_B.pqr_n[0] = SIL_B.pqr[0] + SIL_ConstB.WindAngularRates[0]; - SIL_B.pqr_n[1] = SIL_B.pqr[1] + SIL_ConstB.WindAngularRates[1]; - SIL_B.pqr_n[2] = SIL_B.pqr[2] + SIL_ConstB.WindAngularRates[2]; + SIL_B.pqr_n[0] = SIL_B.pqr[0] + SIL_B.WindAngularRates_a[0]; + SIL_B.pqr_n[1] = SIL_B.pqr[1] + SIL_B.WindAngularRates_a[1]; + SIL_B.pqr_n[2] = SIL_B.pqr[2] + SIL_B.WindAngularRates_a[2]; /* Saturate: '/saturation' */ if (rtb_sincos_o2_f_idx_1 <= 0.01) { - SIL_B.saturation = 0.01; + SIL_B.saturation_e = 0.01; } else { - SIL_B.saturation = rtb_sincos_o2_f_idx_1; + SIL_B.saturation_e = rtb_sincos_o2_f_idx_1; } /* End of Saturate: '/saturation' */ @@ -11893,37 +11934,37 @@ void SIL_step(void) * Constant: '/value' * Constant: '/Const_RefLen' */ - SIL_B.product_b = SIL_B.pqr_n[1] * 0.659 / SIL_B.saturation / 2.0; + SIL_B.product_o = SIL_B.pqr_n[1] * 0.659 / SIL_B.saturation_e / 2.0; /* Product: '/product1' incorporates: * Constant: '/Param_CLqUncertGain' */ - SIL_B.product1 = rtb_table2D_NhAB * SIL_B.product_b * CLqUncertGain; + SIL_B.product1 = rtb_table2D_NhAB * SIL_B.product_o * CLqUncertGain; /* Product: '/product2' incorporates: * Constant: '/value' * Constant: '/Param_CLaUncertGain' */ - SIL_B.product2 = CLaUncertGain * SIL_B.product_p * 0.0611; + SIL_B.product2 = CLaUncertGain * SIL_B.saturation * 0.0611; /* Sum: '/add' incorporates: * Constant: '/Param_CL0UncertVal' * Lookup_n-D: '/table2D_CL_base' */ - SIL_B.add_k = (((((((look2_binlxpw(SIL_B.product_p, SIL_B.Product3_f, + SIL_B.add_a = (((((((look2_binlxpw(SIL_B.saturation, SIL_B.Product3_f, rtCP_table2D_CL_base_bp01Data, rtCP_table2D_CL_base_bp02Data, rtCP_table2D_CL_base_tableData, rtCP_table2D_CL_base_maxIndex, 16U) + rtb_table3D_CL_aos) + rtb_sincos_o2_k_idx_0) + - SIL_B.product_g) + rtb_TrigonometricFunction1_b) + + SIL_B.product_hw) + rtb_TrigonometricFunction1_b) + rtb_table1D_thrAB_map) + SIL_B.product1) + CL0UncertVal) + SIL_B.product2; /* Lookup_n-D: '/table3D_CY_aos' */ - bpIndices_4[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_CY_aos_bp01Data, + bpIndices_4[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_CY_aos_bp01Data, 11U, &rtb_q3dot); rtb_coeff_in_h[0U] = rtb_q3dot; - bpIndices_4[1U] = plook_binx(SIL_B.product_n, rtCP_table3D_CY_aos_bp02Data, - 8U, &rtb_q3dot); + bpIndices_4[1U] = plook_binx(SIL_B.saturation_a, + rtCP_table3D_CY_aos_bp02Data, 8U, &rtb_q3dot); rtb_coeff_in_h[1U] = rtb_q3dot; bpIndices_4[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_CY_aos_bp03Data, 10U, &rtb_q3dot); @@ -11936,10 +11977,10 @@ void SIL_step(void) rtCP_table3D_CY_aos_tableData, rtCP_table3D_CY_aos_dimSizes); /* Lookup_n-D: '/table3D_CY_da' */ - bpIndices_5[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_CY_da_bp01Data, + bpIndices_5[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_CY_da_bp01Data, 11U, &rtb_q3dot); fractions_4[0U] = rtb_q3dot; - bpIndices_5[1U] = plook_binx(SIL_B.product_d, rtCP_table3D_CY_da_bp02Data, + bpIndices_5[1U] = plook_binx(SIL_B.product_b, rtCP_table3D_CY_da_bp02Data, 10U, &rtb_q3dot); fractions_4[1U] = rtb_q3dot; bpIndices_5[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_CY_da_bp03Data, @@ -11949,10 +11990,10 @@ void SIL_step(void) rtCP_table3D_CY_da_tableData, rtCP_table3D_CY_da_dimSizes); /* Lookup_n-D: '/table3D_CY_dr' */ - bpIndices_6[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_CY_dr_bp01Data, + bpIndices_6[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_CY_dr_bp01Data, 11U, &rtb_q3dot); fractions_5[0U] = rtb_q3dot; - bpIndices_6[1U] = plook_binx(SIL_B.product_o, rtCP_table3D_CY_dr_bp02Data, + bpIndices_6[1U] = plook_binx(SIL_B.product_bc, rtCP_table3D_CY_dr_bp02Data, 10U, &rtb_q3dot); fractions_5[1U] = rtb_q3dot; bpIndices_6[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_CY_dr_bp03Data, @@ -11964,10 +12005,10 @@ void SIL_step(void) /* Product: '/product' incorporates: * Constant: '/Param_CYdrUncertGain' */ - SIL_B.product_d0 = rtb_TrigonometricFunction1_b * CYdrUncertGain; + SIL_B.product_i = rtb_TrigonometricFunction1_b * CYdrUncertGain; /* Lookup_n-D: '/table2D_CYp' */ - rtb_TrigonometricFunction1_b = look2_binlxpw(SIL_B.product_p, + rtb_TrigonometricFunction1_b = look2_binlxpw(SIL_B.saturation, SIL_B.Product3_f, rtCP_table2D_CYp_bp01Data, rtCP_table2D_CYp_bp02Data, rtCP_table2D_CYp_tableData, rtCP_table2D_CYp_maxIndex, 12U); @@ -11975,16 +12016,16 @@ void SIL_step(void) * Constant: '/value' * Constant: '/Const_RefSpan' */ - SIL_B.product_i = SIL_B.pqr_n[0] * 1.7 / SIL_B.saturation / 2.0; + SIL_B.product_ed = SIL_B.pqr_n[0] * 1.7 / SIL_B.saturation_e / 2.0; /* Product: '/product1' incorporates: * Constant: '/Param_CYpUncertGain' */ - SIL_B.product1_o = rtb_TrigonometricFunction1_b * SIL_B.product_i * + SIL_B.product1_o = rtb_TrigonometricFunction1_b * SIL_B.product_ed * CYpUncertGain; /* Lookup_n-D: '/table2D_CYr' */ - rtb_TrigonometricFunction1_b = look2_binlxpw(SIL_B.product_p, + rtb_TrigonometricFunction1_b = look2_binlxpw(SIL_B.saturation, SIL_B.Product3_f, rtCP_table2D_CYr_bp01Data, rtCP_table2D_CYr_bp02Data, rtCP_table2D_CYr_tableData, rtCP_table2D_CYr_maxIndex, 12U); @@ -11992,40 +12033,40 @@ void SIL_step(void) * Constant: '/value' * Constant: '/Const_RefSpan' */ - SIL_B.product_l = SIL_B.pqr_n[2] * 1.7 / SIL_B.saturation / 2.0; + SIL_B.product_ie = SIL_B.pqr_n[2] * 1.7 / SIL_B.saturation_e / 2.0; /* Product: '/product2' incorporates: * Constant: '/Param_CYrUncertGain' */ - SIL_B.product2_o = rtb_TrigonometricFunction1_b * SIL_B.product_l * + SIL_B.product2_j = rtb_TrigonometricFunction1_b * SIL_B.product_ie * CYrUncertGain; /* Product: '/product3' incorporates: * Constant: '/value' * Constant: '/Param_CYbUncertGain' */ - SIL_B.product3 = CYbUncertGain * SIL_B.product_n * -0.021; + SIL_B.product3 = CYbUncertGain * SIL_B.saturation_a * -0.021; /* Sum: '/add' incorporates: * Constant: '/Param_CY0UncertVal' */ - SIL_B.add_p = (((((rtb_table2D_NhAB + rtb_table1D_thrAB_map) + - SIL_B.product_d0) + SIL_B.product1_o) + SIL_B.product2_o) - + CY0UncertVal) + SIL_B.product3; + SIL_B.add_n = (((((rtb_table2D_NhAB + rtb_table1D_thrAB_map) + + SIL_B.product_i) + SIL_B.product1_o) + SIL_B.product2_j) + + CY0UncertVal) + SIL_B.product3; /* DotProduct: '/Dot Product' incorporates: * Lookup_n-D: '/table2D_CD_base' */ - rtb_table2D_NhAB = look2_binlxpw(SIL_B.product_p, SIL_B.Product3_f, + rtb_table2D_NhAB = look2_binlxpw(SIL_B.saturation, SIL_B.Product3_f, rtCP_table2D_CD_base_bp01Data, rtCP_table2D_CD_base_bp02Data, rtCP_table2D_CD_base_tableData, rtCP_table2D_CD_base_maxIndex, 16U); /* Lookup_n-D: '/table3D_CD_aos' */ - bpIndices_7[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_CD_aos_bp01Data, + bpIndices_7[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_CD_aos_bp01Data, 11U, &rtb_q3dot); fractions_6[0U] = rtb_q3dot; - bpIndices_7[1U] = plook_binx(SIL_B.product_n, rtCP_table3D_CD_aos_bp02Data, - 8U, &rtb_q3dot); + bpIndices_7[1U] = plook_binx(SIL_B.saturation_a, + rtCP_table3D_CD_aos_bp02Data, 8U, &rtb_q3dot); fractions_6[1U] = rtb_q3dot; bpIndices_7[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_CD_aos_bp03Data, 10U, &rtb_q3dot); @@ -12034,10 +12075,10 @@ void SIL_step(void) rtCP_table3D_CD_aos_tableData, rtCP_table3D_CD_aos_dimSizes); /* Lookup_n-D: '/table3D_CD_da' */ - bpIndices_8[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_CD_da_bp01Data, + bpIndices_8[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_CD_da_bp01Data, 11U, &rtb_q3dot); fractions_7[0U] = rtb_q3dot; - bpIndices_8[1U] = plook_binx(SIL_B.product_d, rtCP_table3D_CD_da_bp02Data, + bpIndices_8[1U] = plook_binx(SIL_B.product_b, rtCP_table3D_CD_da_bp02Data, 10U, &rtb_q3dot); fractions_7[1U] = rtb_q3dot; bpIndices_8[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_CD_da_bp03Data, @@ -12047,10 +12088,10 @@ void SIL_step(void) rtCP_table3D_CD_da_tableData, rtCP_table3D_CD_da_dimSizes); /* Lookup_n-D: '/table3D_CD_de' */ - bpIndices_9[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_CD_de_bp01Data, + bpIndices_9[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_CD_de_bp01Data, 11U, &rtb_q3dot); fractions_8[0U] = rtb_q3dot; - bpIndices_9[1U] = plook_binx(SIL_B.product_m, rtCP_table3D_CD_de_bp02Data, + bpIndices_9[1U] = plook_binx(SIL_B.product_d, rtCP_table3D_CD_de_bp02Data, 9U, &rtb_q3dot); fractions_8[1U] = rtb_q3dot; bpIndices_9[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_CD_de_bp03Data, @@ -12060,10 +12101,10 @@ void SIL_step(void) rtCP_table3D_CD_de_tableData, rtCP_table3D_CD_de_dimSizes); /* Lookup_n-D: '/table3D_CD_dr' */ - bpIndices_a[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_CD_dr_bp01Data, + bpIndices_a[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_CD_dr_bp01Data, 11U, &rtb_q3dot); fractions_9[0U] = rtb_q3dot; - bpIndices_a[1U] = plook_binx(SIL_B.product_o, rtCP_table3D_CD_dr_bp02Data, + bpIndices_a[1U] = plook_binx(SIL_B.product_bc, rtCP_table3D_CD_dr_bp02Data, 10U, &rtb_q3dot); fractions_9[1U] = rtb_q3dot; bpIndices_a[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_CD_dr_bp03Data, @@ -12073,7 +12114,7 @@ void SIL_step(void) rtCP_table3D_CD_dr_tableData, rtCP_table3D_CD_dr_dimSizes); /* Lookup_n-D: '/table3D_CD_df' */ - bpIndices_b[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_CD_df_bp01Data, + bpIndices_b[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_CD_df_bp01Data, 11U, &rtb_q3dot); fractions_a[0U] = rtb_q3dot; bpIndices_b[1U] = plook_binx(0.0, rtCP_table3D_CD_df_bp02Data, 4U, @@ -12084,13 +12125,34 @@ void SIL_step(void) fractions_a[2U] = rtb_q3dot; rtb_q3dot = intrp3d_l_pw(bpIndices_b, fractions_a, rtCP_table3D_CD_df_tableData, rtCP_table3D_CD_df_dimSizes); + if (rtmIsMajorTimeStep(SIL_M) && + SIL_M->Timing.TaskCounters.TID[2] == 0) { + /* Delay: '/Delay2' */ + SIL_B.recovery = SIL_DW.Delay2_DSTATE[0]; + } + + if (rtmIsMajorTimeStep(SIL_M) && + SIL_M->Timing.TaskCounters.TID[1] == 0) { + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant10' + * Constant: '/Constant11' + */ + if (SIL_B.recovery != 0) { + SIL_B.parachute = SIL_P.CD_paracute; + } else { + SIL_B.parachute = 0.0; + } + + /* End of Switch: '/Switch1' */ + } /* Sum: '/add' incorporates: * Constant: '/Param_CD0UncertVal' */ - SIL_B.add_l = (((((rtb_table2D_NhAB + rtb_table1D_thrAB_map) + - rtb_TrigonometricFunction1_b) + rtb_sincos_o2_k_idx_0) + - rtb_sincos_o2_f_idx_1) + rtb_q3dot) + CD0UncertVal; + SIL_B.add_d = ((((((rtb_table2D_NhAB + rtb_table1D_thrAB_map) + + rtb_TrigonometricFunction1_b) + rtb_sincos_o2_k_idx_0) + + rtb_sincos_o2_f_idx_1) + rtb_q3dot) + CD0UncertVal) + + SIL_B.parachute; /* SwitchCase: '/Switch Case' incorporates: * Inport: '/coeff_in' @@ -12110,7 +12172,7 @@ void SIL_step(void) /* Product: '/Divide' incorporates: * Inport: '/coeff_in' */ - SIL_B.Merge1 = SIL_B.add_k / SIL_B.add_l; + SIL_B.Merge1 = SIL_B.add_a / SIL_B.add_d; /* Trigonometry: '/Trigonometric Function2' */ rtb_sincos_o2_k_idx_0 = sin(rtb_sincos_o2_f_idx_0); @@ -12120,13 +12182,13 @@ void SIL_step(void) * Inport: '/coeff_in' * Trigonometry: '/Trigonometric Function2' */ - SIL_B.Product_h = SIL_B.add_l * rtb_q3dot; + SIL_B.Product_h = SIL_B.add_d * rtb_q3dot; /* Product: '/Product1' incorporates: * Inport: '/coeff_in' * Trigonometry: '/Trigonometric Function2' */ - SIL_B.Product1_az = SIL_B.add_k * rtb_sincos_o2_k_idx_0; + SIL_B.Product1_az = SIL_B.add_a * rtb_sincos_o2_k_idx_0; /* Sum: '/Sum' */ SIL_B.CX = SIL_B.Product1_az - SIL_B.Product_h; @@ -12135,13 +12197,13 @@ void SIL_step(void) * Inport: '/coeff_in' * Trigonometry: '/Trigonometric Function2' */ - SIL_B.Product2_cg = SIL_B.add_k * rtb_q3dot; + SIL_B.Product2_cg = SIL_B.add_a * rtb_q3dot; /* Product: '/Product3' incorporates: * Inport: '/coeff_in' * Trigonometry: '/Trigonometric Function2' */ - SIL_B.Product3_c = SIL_B.add_l * rtb_sincos_o2_k_idx_0; + SIL_B.Product3_c = SIL_B.add_d * rtb_sincos_o2_k_idx_0; /* Sum: '/Sum1' */ SIL_B.CZ = (0.0 - SIL_B.Product2_cg) - SIL_B.Product3_c; @@ -12150,7 +12212,7 @@ void SIL_step(void) * Inport: '/coeff_in' */ SIL_B.Merge_h[0] = SIL_B.CX; - SIL_B.Merge_h[1] = SIL_B.add_p; + SIL_B.Merge_h[1] = SIL_B.add_n; SIL_B.Merge_h[2] = SIL_B.CZ; /* End of Outputs for SubSystem: '/in half-body' */ @@ -12160,9 +12222,9 @@ void SIL_step(void) /* Outputs for IfAction SubSystem: '/in body axis' incorporates: * ActionPort: '/Action Port' */ - SIL_B.Merge_h[0] = SIL_B.add_l; - SIL_B.Merge_h[1] = SIL_B.add_p; - SIL_B.Merge_h[2] = SIL_B.add_k; + SIL_B.Merge_h[0] = SIL_B.add_d; + SIL_B.Merge_h[1] = SIL_B.add_n; + SIL_B.Merge_h[2] = SIL_B.add_a; /* Trigonometry: '/Trigonometric Function2' incorporates: * Inport: '/coeff_in' @@ -12215,9 +12277,9 @@ void SIL_step(void) * Constant: '/Param_force_CG_pos_m' */ if (force_CG != 0.0) { - SIL_B.if_m[0] = force_CG_pos_m[0]; - SIL_B.if_m[1] = force_CG_pos_m[1]; - SIL_B.if_m[2] = force_CG_pos_m[2]; + SIL_B.if_f[0] = force_CG_pos_m[0]; + SIL_B.if_f[1] = force_CG_pos_m[1]; + SIL_B.if_f[2] = force_CG_pos_m[2]; } else { /* Sum: '/subtract1' incorporates: * Constant: '/value1' @@ -12230,36 +12292,36 @@ void SIL_step(void) * Constant: '/value' * Lookup_n-D: '/table1D_CGx' */ - SIL_B.subtract_p = 2.56 - look1_binlxpw(SIL_B.mass_e, + SIL_B.subtract_j = 2.56 - look1_binlxpw(SIL_B.mass_e, rtCP_table1D_CGx_bp01Data, rtCP_table1D_CGx_tableData, 5U); /* Sum: '/add' incorporates: * Constant: '/Param_CG_bias_m' */ - SIL_B.add_n[0] = SIL_B.subtract_p + CG_bias_m[0]; - SIL_B.if_m[0] = SIL_B.add_n[0]; + SIL_B.add_l[0] = SIL_B.subtract_j + CG_bias_m[0]; + SIL_B.if_f[0] = SIL_B.add_l[0]; /* Sum: '/add' incorporates: * Constant: '/Param_CG_bias_m' * Lookup_n-D: '/table1D_CGy' */ - SIL_B.add_n[1] = look1_binlxpw(SIL_B.mass_e, rtCP_table1D_CGy_bp01Data, + SIL_B.add_l[1] = look1_binlxpw(SIL_B.mass_e, rtCP_table1D_CGy_bp01Data, rtCP_table1D_CGy_tableData, 5U) + CG_bias_m[1]; - SIL_B.if_m[1] = SIL_B.add_n[1]; + SIL_B.if_f[1] = SIL_B.add_l[1]; /* Sum: '/add' incorporates: * Constant: '/Param_CG_bias_m' */ - SIL_B.add_n[2] = SIL_B.subtract1 + CG_bias_m[2]; - SIL_B.if_m[2] = SIL_B.add_n[2]; + SIL_B.add_l[2] = SIL_B.subtract1 + CG_bias_m[2]; + SIL_B.if_f[2] = SIL_B.add_l[2]; } /* End of Switch: '/if' */ /* Sum: '/Sum' */ - SIL_B.Sum_jo[0] = SIL_B.if_m[0]; - SIL_B.Sum_jo[1] = SIL_B.if_m[1]; - SIL_B.Sum_jo[2] = SIL_B.if_m[2]; + SIL_B.Sum_jo[0] = SIL_B.if_f[0]; + SIL_B.Sum_jo[1] = SIL_B.if_f[1]; + SIL_B.Sum_jo[2] = SIL_B.if_f[2]; /* Product: '/j x k' */ SIL_B.jxk = SIL_B.Product_j[1] * SIL_B.Sum_jo[2]; @@ -12285,11 +12347,11 @@ void SIL_step(void) SIL_B.Sum_p[2] = SIL_B.ixj - SIL_B.jxi; /* Lookup_n-D: '/table3D_Cl_aos' */ - bpIndices_c[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_Cl_aos_bp01Data, + bpIndices_c[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_Cl_aos_bp01Data, 11U, &rtb_q3dot); fractions_b[0U] = rtb_q3dot; - bpIndices_c[1U] = plook_binx(SIL_B.product_n, rtCP_table3D_Cl_aos_bp02Data, - 8U, &rtb_q3dot); + bpIndices_c[1U] = plook_binx(SIL_B.saturation_a, + rtCP_table3D_Cl_aos_bp02Data, 8U, &rtb_q3dot); fractions_b[1U] = rtb_q3dot; bpIndices_c[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_Cl_aos_bp03Data, 10U, &rtb_q3dot); @@ -12302,10 +12364,10 @@ void SIL_step(void) rtCP_table3D_Cl_aos_tableData, rtCP_table3D_Cl_aos_dimSizes); /* Lookup_n-D: '/table3D_Cl_da' */ - bpIndices_d[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_Cl_da_bp01Data, + bpIndices_d[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_Cl_da_bp01Data, 11U, &rtb_q3dot); fractions_c[0U] = rtb_q3dot; - bpIndices_d[1U] = plook_binx(SIL_B.product_d, rtCP_table3D_Cl_da_bp02Data, + bpIndices_d[1U] = plook_binx(SIL_B.product_b, rtCP_table3D_Cl_da_bp02Data, 10U, &rtb_q3dot); fractions_c[1U] = rtb_q3dot; bpIndices_d[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_Cl_da_bp03Data, @@ -12317,13 +12379,13 @@ void SIL_step(void) /* Product: '/product' incorporates: * Constant: '/Param_CldaUncertGain' */ - SIL_B.product_p1 = rtb_table1D_thrAB_map * CldaUncertGain; + SIL_B.product_iw = rtb_table1D_thrAB_map * CldaUncertGain; /* Lookup_n-D: '/table3D_Cl_dr' */ - bpIndices_e[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_Cl_dr_bp01Data, + bpIndices_e[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_Cl_dr_bp01Data, 11U, &rtb_q3dot); fractions_d[0U] = rtb_q3dot; - bpIndices_e[1U] = plook_binx(SIL_B.product_o, rtCP_table3D_Cl_dr_bp02Data, + bpIndices_e[1U] = plook_binx(SIL_B.product_bc, rtCP_table3D_Cl_dr_bp02Data, 10U, &rtb_q3dot); fractions_d[1U] = rtb_q3dot; bpIndices_e[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_Cl_dr_bp03Data, @@ -12335,54 +12397,54 @@ void SIL_step(void) /* Product: '/product1' incorporates: * Constant: '/Param_CldrUncertGain' */ - SIL_B.product1_k = rtb_table1D_thrAB_map * CldrUncertGain; + SIL_B.product1_g = rtb_table1D_thrAB_map * CldrUncertGain; /* Lookup_n-D: '/table2D_Clp' */ - rtb_table1D_thrAB_map = look2_binlxpw(SIL_B.product_p, SIL_B.Product3_f, + rtb_table1D_thrAB_map = look2_binlxpw(SIL_B.saturation, SIL_B.Product3_f, rtCP_table2D_Clp_bp01Data, rtCP_table2D_Clp_bp02Data, rtCP_table2D_Clp_tableData, rtCP_table2D_Clp_maxIndex, 12U); /* Product: '/product2' incorporates: * Constant: '/Param_ClpUncertGain' */ - SIL_B.product2_i = rtb_table1D_thrAB_map * SIL_B.product_i * ClpUncertGain; + SIL_B.product2_n = rtb_table1D_thrAB_map * SIL_B.product_ed * ClpUncertGain; /* Lookup_n-D: '/table2D_Clr' */ - rtb_table1D_thrAB_map = look2_binlxpw(SIL_B.product_p, SIL_B.Product3_f, + rtb_table1D_thrAB_map = look2_binlxpw(SIL_B.saturation, SIL_B.Product3_f, rtCP_table2D_Clr_bp01Data, rtCP_table2D_Clr_bp02Data, rtCP_table2D_Clr_tableData, rtCP_table2D_Clr_maxIndex, 12U); /* Product: '/product3' incorporates: * Constant: '/Param_ClrUncertGain' */ - SIL_B.product3_e = rtb_table1D_thrAB_map * SIL_B.product_l * ClrUncertGain; + SIL_B.product3_o = rtb_table1D_thrAB_map * SIL_B.product_ie * ClrUncertGain; /* Product: '/product4' incorporates: * Constant: '/value' * Constant: '/Param_ClbUncertGain' */ - SIL_B.product4 = ClbUncertGain * SIL_B.product_n * -0.00174; + SIL_B.product4 = ClbUncertGain * SIL_B.saturation_a * -0.00174; /* Sum: '/add' incorporates: * Constant: '/Param_Cl0UncertVal' */ - SIL_B.add_b = (((((rtb_table2D_NhAB + SIL_B.product_p1) + SIL_B.product1_k) - + SIL_B.product2_i) + SIL_B.product3_e) + Cl0UncertVal) + + SIL_B.add_dx = (((((rtb_table2D_NhAB + SIL_B.product_iw) + SIL_B.product1_g) + + SIL_B.product2_n) + SIL_B.product3_o) + Cl0UncertVal) + SIL_B.product4; /* DotProduct: '/Dot Product' incorporates: * Lookup_n-D: '/table2D_Cm_base' */ - rtb_table2D_NhAB = look2_binlxpw(SIL_B.product_p, SIL_B.Product3_f, + rtb_table2D_NhAB = look2_binlxpw(SIL_B.saturation, SIL_B.Product3_f, rtCP_table2D_Cm_base_bp01Data, rtCP_table2D_Cm_base_bp02Data, rtCP_table2D_Cm_base_tableData, rtCP_table2D_Cm_base_maxIndex, 16U); /* Lookup_n-D: '/table3D_Cm_aos' */ - bpIndices_f[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_Cm_aos_bp01Data, + bpIndices_f[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_Cm_aos_bp01Data, 11U, &rtb_q3dot); fractions_e[0U] = rtb_q3dot; - bpIndices_f[1U] = plook_binx(SIL_B.product_n, rtCP_table3D_Cm_aos_bp02Data, - 8U, &rtb_q3dot); + bpIndices_f[1U] = plook_binx(SIL_B.saturation_a, + rtCP_table3D_Cm_aos_bp02Data, 8U, &rtb_q3dot); fractions_e[1U] = rtb_q3dot; bpIndices_f[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_Cm_aos_bp03Data, 10U, &rtb_q3dot); @@ -12391,10 +12453,10 @@ void SIL_step(void) rtCP_table3D_Cm_aos_tableData, rtCP_table3D_Cm_aos_dimSizes); /* Lookup_n-D: '/table3D_Cm_da' */ - bpIndices_g[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_Cm_da_bp01Data, + bpIndices_g[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_Cm_da_bp01Data, 11U, &rtb_q3dot); fractions_f[0U] = rtb_q3dot; - bpIndices_g[1U] = plook_binx(SIL_B.product_d, rtCP_table3D_Cm_da_bp02Data, + bpIndices_g[1U] = plook_binx(SIL_B.product_b, rtCP_table3D_Cm_da_bp02Data, 10U, &rtb_q3dot); fractions_f[1U] = rtb_q3dot; bpIndices_g[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_Cm_da_bp03Data, @@ -12404,10 +12466,10 @@ void SIL_step(void) rtCP_table3D_Cm_da_tableData, rtCP_table3D_Cm_da_dimSizes); /* Lookup_n-D: '/table3D_Cm_de' */ - bpIndices_h[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_Cm_de_bp01Data, + bpIndices_h[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_Cm_de_bp01Data, 11U, &rtb_q3dot); fractions_g[0U] = rtb_q3dot; - bpIndices_h[1U] = plook_binx(SIL_B.product_m, rtCP_table3D_Cm_de_bp02Data, + bpIndices_h[1U] = plook_binx(SIL_B.product_d, rtCP_table3D_Cm_de_bp02Data, 9U, &rtb_q3dot); fractions_g[1U] = rtb_q3dot; bpIndices_h[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_Cm_de_bp03Data, @@ -12419,13 +12481,13 @@ void SIL_step(void) /* Product: '/product' incorporates: * Constant: '/Param_CmdeUncertGain' */ - SIL_B.product_od = rtb_sincos_o2_k_idx_0 * CmdeUncertGain; + SIL_B.product_k = rtb_sincos_o2_k_idx_0 * CmdeUncertGain; /* Lookup_n-D: '/table3D_Cm_dr' */ - bpIndices_i[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_Cm_dr_bp01Data, + bpIndices_i[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_Cm_dr_bp01Data, 11U, &rtb_q3dot); fractions_h[0U] = rtb_q3dot; - bpIndices_i[1U] = plook_binx(SIL_B.product_o, rtCP_table3D_Cm_dr_bp02Data, + bpIndices_i[1U] = plook_binx(SIL_B.product_bc, rtCP_table3D_Cm_dr_bp02Data, 10U, &rtb_q3dot); fractions_h[1U] = rtb_q3dot; bpIndices_i[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_Cm_dr_bp03Data, @@ -12435,7 +12497,7 @@ void SIL_step(void) rtCP_table3D_Cm_dr_tableData, rtCP_table3D_Cm_dr_dimSizes); /* Lookup_n-D: '/table3D_Cm_df' */ - bpIndices_j[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_Cm_df_bp01Data, + bpIndices_j[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_Cm_df_bp01Data, 11U, &rtb_q3dot); fractions_i[0U] = rtb_q3dot; bpIndices_j[1U] = plook_binx(0.0, rtCP_table3D_Cm_df_bp02Data, 4U, @@ -12451,31 +12513,31 @@ void SIL_step(void) * Constant: '/Param_CmqUncertGain' * Lookup_n-D: '/table2D_Cmq' */ - SIL_B.product1_kh = look2_binlxpw(SIL_B.product_p, SIL_B.Product3_f, + SIL_B.product1_k = look2_binlxpw(SIL_B.saturation, SIL_B.Product3_f, rtCP_table2D_Cmq_bp01Data, rtCP_table2D_Cmq_bp02Data, rtCP_table2D_Cmq_tableData, rtCP_table2D_Cmq_maxIndex, 12U) * - SIL_B.product_b * CmqUncertGain; + SIL_B.product_o * CmqUncertGain; /* Product: '/product2' incorporates: * Constant: '/value' * Constant: '/Param_CmaUncertGain' */ - SIL_B.product2_b = CmaUncertGain * SIL_B.product_p * -0.00698; + SIL_B.product2_p = CmaUncertGain * SIL_B.saturation * -0.00698; /* Sum: '/add' incorporates: * Constant: '/Param_Cm0UncertVal' */ - SIL_B.add_pc = (((((((rtb_table2D_NhAB + rtb_table1D_thrAB_map) + - rtb_TrigonometricFunction1_b) + SIL_B.product_od) + - rtb_sincos_o2_k_idx_0) + rtb_sincos_o2_f_idx_1) + - SIL_B.product1_kh) + Cm0UncertVal) + SIL_B.product2_b; + SIL_B.add_p = (((((((rtb_table2D_NhAB + rtb_table1D_thrAB_map) + + rtb_TrigonometricFunction1_b) + SIL_B.product_k) + + rtb_sincos_o2_k_idx_0) + rtb_sincos_o2_f_idx_1) + + SIL_B.product1_k) + Cm0UncertVal) + SIL_B.product2_p; /* Lookup_n-D: '/table3D_Cn_aos' */ - bpIndices_k[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_Cn_aos_bp01Data, + bpIndices_k[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_Cn_aos_bp01Data, 11U, &rtb_q3dot); fractions_j[0U] = rtb_q3dot; - bpIndices_k[1U] = plook_binx(SIL_B.product_n, rtCP_table3D_Cn_aos_bp02Data, - 8U, &rtb_q3dot); + bpIndices_k[1U] = plook_binx(SIL_B.saturation_a, + rtCP_table3D_Cn_aos_bp02Data, 8U, &rtb_q3dot); fractions_j[1U] = rtb_q3dot; bpIndices_k[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_Cn_aos_bp03Data, 10U, &rtb_q3dot); @@ -12488,10 +12550,10 @@ void SIL_step(void) rtCP_table3D_Cn_aos_tableData, rtCP_table3D_Cn_aos_dimSizes); /* Lookup_n-D: '/table3D_Cn_da' */ - bpIndices_l[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_Cn_da_bp01Data, + bpIndices_l[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_Cn_da_bp01Data, 11U, &rtb_q3dot); fractions_k[0U] = rtb_q3dot; - bpIndices_l[1U] = plook_binx(SIL_B.product_d, rtCP_table3D_Cn_da_bp02Data, + bpIndices_l[1U] = plook_binx(SIL_B.product_b, rtCP_table3D_Cn_da_bp02Data, 10U, &rtb_q3dot); fractions_k[1U] = rtb_q3dot; bpIndices_l[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_Cn_da_bp03Data, @@ -12503,13 +12565,13 @@ void SIL_step(void) /* Product: '/product' incorporates: * Constant: '/Param_CndaUncertGain' */ - SIL_B.product_lu = rtb_table1D_thrAB_map * CndaUncertGain; + SIL_B.product_f = rtb_table1D_thrAB_map * CndaUncertGain; /* Lookup_n-D: '/table3D_Cn_dr' */ - bpIndices_m[0U] = plook_binx(SIL_B.product_p, rtCP_table3D_Cn_dr_bp01Data, + bpIndices_m[0U] = plook_binx(SIL_B.saturation, rtCP_table3D_Cn_dr_bp01Data, 11U, &rtb_q3dot); fractions_l[0U] = rtb_q3dot; - bpIndices_m[1U] = plook_binx(SIL_B.product_o, rtCP_table3D_Cn_dr_bp02Data, + bpIndices_m[1U] = plook_binx(SIL_B.product_bc, rtCP_table3D_Cn_dr_bp02Data, 10U, &rtb_q3dot); fractions_l[1U] = rtb_q3dot; bpIndices_m[2U] = plook_binx(SIL_B.Product3_f, rtCP_table3D_Cn_dr_bp03Data, @@ -12521,40 +12583,40 @@ void SIL_step(void) /* Product: '/product1' incorporates: * Constant: '/Param_CndrUncertGain' */ - SIL_B.product1_b = rtb_table1D_thrAB_map * CndrUncertGain; + SIL_B.product1_kt = rtb_table1D_thrAB_map * CndrUncertGain; /* Lookup_n-D: '/table2D_Cnp' */ - rtb_table1D_thrAB_map = look2_binlxpw(SIL_B.product_p, SIL_B.Product3_f, + rtb_table1D_thrAB_map = look2_binlxpw(SIL_B.saturation, SIL_B.Product3_f, rtCP_table2D_Cnp_bp01Data, rtCP_table2D_Cnp_bp02Data, rtCP_table2D_Cnp_tableData, rtCP_table2D_Cnp_maxIndex, 12U); /* Product: '/product2' incorporates: * Constant: '/Param_CnpUncertGain' */ - SIL_B.product2_p = rtb_table1D_thrAB_map * SIL_B.product_i * CnpUncertGain; + SIL_B.product2_e = rtb_table1D_thrAB_map * SIL_B.product_ed * CnpUncertGain; /* Lookup_n-D: '/table2D_Cnr' */ - rtb_table1D_thrAB_map = look2_binlxpw(SIL_B.product_p, SIL_B.Product3_f, + rtb_table1D_thrAB_map = look2_binlxpw(SIL_B.saturation, SIL_B.Product3_f, rtCP_table2D_Cnr_bp01Data, rtCP_table2D_Cnr_bp02Data, rtCP_table2D_Cnr_tableData, rtCP_table2D_Cnr_maxIndex, 12U); /* Product: '/product3' incorporates: * Constant: '/Param_CnrUncertGain' */ - SIL_B.product3_c = rtb_table1D_thrAB_map * SIL_B.product_l * CnrUncertGain; + SIL_B.product3_l = rtb_table1D_thrAB_map * SIL_B.product_ie * CnrUncertGain; /* Product: '/product4' incorporates: * Constant: '/value' * Constant: '/Param_CnbUncertGain' */ - SIL_B.product4_k = CnbUncertGain * SIL_B.product_n * 0.0026; + SIL_B.product4_d = CnbUncertGain * SIL_B.saturation_a * 0.0026; /* Sum: '/add' incorporates: * Constant: '/Param_Cn0UncertVal' */ - SIL_B.add_d = (((((rtb_table2D_NhAB + SIL_B.product_lu) + SIL_B.product1_b) - + SIL_B.product2_p) + SIL_B.product3_c) + Cn0UncertVal) + - SIL_B.product4_k; + SIL_B.add_py = (((((rtb_table2D_NhAB + SIL_B.product_f) + SIL_B.product1_kt) + + SIL_B.product2_e) + SIL_B.product3_l) + Cn0UncertVal) + + SIL_B.product4_d; /* Product: '/Product1' incorporates: * Constant: '/Const_RefLen' @@ -12565,9 +12627,9 @@ void SIL_step(void) SIL_B.Product1_h[2] = 1.7 * SIL_B.Product2_b; /* Product: '/Product3' */ - SIL_B.Product3_mg[0] = SIL_B.add_b * SIL_B.Product1_h[0]; - SIL_B.Product3_mg[1] = SIL_B.add_pc * SIL_B.Product1_h[1]; - SIL_B.Product3_mg[2] = SIL_B.add_d * SIL_B.Product1_h[2]; + SIL_B.Product3_mg[0] = SIL_B.add_dx * SIL_B.Product1_h[0]; + SIL_B.Product3_mg[1] = SIL_B.add_p * SIL_B.Product1_h[1]; + SIL_B.Product3_mg[2] = SIL_B.add_py * SIL_B.Product1_h[2]; /* Sum: '/Sum1' */ SIL_B.Sum1_a[0] = SIL_B.Sum_p[0] + SIL_B.Product3_mg[0]; @@ -12661,7 +12723,7 @@ void SIL_step(void) /* Lookup_n-D: '/table2D_cftAB' */ rtb_TrigonometricFunction1_b = look2_binlxpw(SIL_B.Product3_f, SIL_B.Sum3, rtCP_table2D_cftAB_bp01Data, rtCP_table2D_cftAB_bp02Data, - rtCP_table2D_cftAB_tableData, rtCP_table2D_cftAB_maxIndex_p, 10U); + rtCP_table2D_cftAB_tableData, rtCP_table2D_cftAB_maxIndex_b, 10U); /* Product: '/product' */ rtb_sincos_o2_k_idx_0 = rtb_TrigonometricFunction1_b * rtb_table1D_thrAB_map; @@ -12677,7 +12739,7 @@ void SIL_step(void) 11U, &rtb_q3dot); fractions_m[2U] = rtb_q3dot; rtb_TrigonometricFunction1_b = intrp3d_l_pw(bpIndices_o, fractions_m, - rtCP_table3D_cft_tableData, rtCP_table3D_cft_dimSizes_p); + rtCP_table3D_cft_tableData, rtCP_table3D_cft_dimSizes_l); if (rtmIsMajorTimeStep(SIL_M) && SIL_M->Timing.TaskCounters.TID[2] == 0) { /* Delay: '/Delay1' */ @@ -12789,7 +12851,7 @@ void SIL_step(void) rt_invd3x3_snf(rtb_VectorConcatenate_k, rtb_VectorConcatenate_c); for (idx = 0; idx < 3; idx++) { /* Sum: '/Sum' */ - rtb_Sum_ft[idx] = SIL_B.Selector2_f[idx] - SIL_B.if_m[idx]; + rtb_Sum_ft[idx] = SIL_B.Selector2_f[idx] - SIL_B.if_f[idx]; /* Product: '/Product' incorporates: * SignalConversion: '/TmpSignal ConversionAtProductInport2' @@ -13019,9 +13081,9 @@ void SIL_step(void) if (SIL_DW.enable_gear_MODE) { /* Sum: '/Subtract1' */ - SIL_B.Subtract1[0] = SIL_ConstB.Selector1[0] - SIL_B.if_m[0]; - SIL_B.Subtract1[1] = SIL_ConstB.Selector1[1] - SIL_B.if_m[1]; - SIL_B.Subtract1[2] = SIL_ConstB.Selector1[2] - SIL_B.if_m[2]; + SIL_B.Subtract1[0] = SIL_ConstB.Selector1[0] - SIL_B.if_f[0]; + SIL_B.Subtract1[1] = SIL_ConstB.Selector1[1] - SIL_B.if_f[1]; + SIL_B.Subtract1[2] = SIL_ConstB.Selector1[2] - SIL_B.if_f[2]; /* Outputs for Atomic SubSystem: '/Left Main Gear Geometry Forces and Moments' */ /* Constant: '/Constant5' incorporates: @@ -13038,9 +13100,9 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/Left Main Gear Geometry Forces and Moments' */ /* Sum: '/Subtract' */ - SIL_B.Subtract[0] = SIL_ConstB.Selector[0] - SIL_B.if_m[0]; - SIL_B.Subtract[1] = SIL_ConstB.Selector[1] - SIL_B.if_m[1]; - SIL_B.Subtract[2] = SIL_ConstB.Selector[2] - SIL_B.if_m[2]; + SIL_B.Subtract[0] = SIL_ConstB.Selector[0] - SIL_B.if_f[0]; + SIL_B.Subtract[1] = SIL_ConstB.Selector[1] - SIL_B.if_f[1]; + SIL_B.Subtract[2] = SIL_ConstB.Selector[2] - SIL_B.if_f[2]; /* Outputs for Atomic SubSystem: '/Nose Gear Geometry Forces and Moments' */ /* Constant: '/Constant6' incorporates: @@ -13057,9 +13119,9 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/Nose Gear Geometry Forces and Moments' */ /* Sum: '/Subtract2' */ - SIL_B.Subtract2[0] = SIL_ConstB.Selector2[0] - SIL_B.if_m[0]; - SIL_B.Subtract2[1] = SIL_ConstB.Selector2[1] - SIL_B.if_m[1]; - SIL_B.Subtract2[2] = SIL_ConstB.Selector2[2] - SIL_B.if_m[2]; + SIL_B.Subtract2[0] = SIL_ConstB.Selector2[0] - SIL_B.if_f[0]; + SIL_B.Subtract2[1] = SIL_ConstB.Selector2[1] - SIL_B.if_f[1]; + SIL_B.Subtract2[2] = SIL_ConstB.Selector2[2] - SIL_B.if_f[2]; /* Outputs for Atomic SubSystem: '/Right Main Gear Geometry Forces and Moments' */ /* Constant: '/Constant5' incorporates: @@ -13163,7 +13225,7 @@ void SIL_step(void) * Constant: '/Param_booster_pos_m' * Selector: '/Selector2' */ - rtb_Sum_by[idx] = booster_pos_m[idx] - SIL_B.if_m[idx]; + rtb_Sum_by[idx] = booster_pos_m[idx] - SIL_B.if_f[idx]; /* Product: '/Product' */ SIL_B.Merge_i[idx] = 0.0; @@ -14515,6 +14577,11 @@ void SIL_step(void) if (rtmIsMajorTimeStep(SIL_M) && SIL_M->Timing.TaskCounters.TID[2] == 0) { + /* Logic: '/not' incorporates: + * Constant: '/Constant2' + */ + rtb_not = !SIL_P.use_ext_ins; + /* Outputs for Atomic SubSystem: '/kb3_autopilot' */ /* Chart: '/valid_checking' incorporates: * UnitDelay: '/Unit Delay2' @@ -14788,32 +14855,32 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * Constant: '/Constant3' */ - if (SIL_DW.temporalCounter_i1_id < 255U) { - SIL_DW.temporalCounter_i1_id++; + if (SIL_DW.temporalCounter_i1_jg < 255U) { + SIL_DW.temporalCounter_i1_jg++; } if (SIL_DW.is_active_c39_kb3_autopilot == 0U) { SIL_DW.is_active_c39_kb3_autopilot = 1U; SIL_DW.is_c39_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_i1 = SIL_B.good_n; + SIL_DW.last_seq_ng = SIL_B.good_n; idx = 0; } else if (SIL_DW.is_c39_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_i1 != SIL_B.good_n) { + if (SIL_DW.last_seq_ng != SIL_B.good_n) { SIL_DW.is_c39_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_id = 0U; + SIL_DW.temporalCounter_i1_jg = 0U; idx = 1; - SIL_DW.last_seq_i1 = SIL_B.good_n; + SIL_DW.last_seq_ng = SIL_B.good_n; } else { idx = 0; } - } else if (SIL_DW.last_seq_i1 != SIL_B.good_n) { + } else if (SIL_DW.last_seq_ng != SIL_B.good_n) { SIL_DW.is_c39_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_id = 0U; + SIL_DW.temporalCounter_i1_jg = 0U; idx = 1; - SIL_DW.last_seq_i1 = SIL_B.good_n; - } else if (SIL_DW.temporalCounter_i1_id >= 200U) { + SIL_DW.last_seq_ng = SIL_B.good_n; + } else if (SIL_DW.temporalCounter_i1_jg >= 200U) { SIL_DW.is_c39_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_i1 = SIL_B.good_n; + SIL_DW.last_seq_ng = SIL_B.good_n; idx = 0; } else { idx = 1; @@ -14822,29 +14889,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_a2 < 255U) { - SIL_DW.temporalCounter_i1_a2++; + if (SIL_DW.temporalCounter_i1_e < 255U) { + SIL_DW.temporalCounter_i1_e++; } if (SIL_DW.is_active_c41_kb3_autopilot == 0U) { SIL_DW.is_active_c41_kb3_autopilot = 1U; SIL_DW.is_c41_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_gd = SIL_B.good_h; + SIL_DW.last_seq_p = SIL_B.good_h; } else if (SIL_DW.is_c41_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_gd != SIL_B.good_h) { + if (SIL_DW.last_seq_p != SIL_B.good_h) { SIL_DW.is_c41_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_a2 = 0U; + SIL_DW.temporalCounter_i1_e = 0U; idx |= 2U; - SIL_DW.last_seq_gd = SIL_B.good_h; + SIL_DW.last_seq_p = SIL_B.good_h; } - } else if (SIL_DW.last_seq_gd != SIL_B.good_h) { + } else if (SIL_DW.last_seq_p != SIL_B.good_h) { SIL_DW.is_c41_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_a2 = 0U; + SIL_DW.temporalCounter_i1_e = 0U; idx |= 2U; - SIL_DW.last_seq_gd = SIL_B.good_h; - } else if (SIL_DW.temporalCounter_i1_a2 >= 200U) { + SIL_DW.last_seq_p = SIL_B.good_h; + } else if (SIL_DW.temporalCounter_i1_e >= 200U) { SIL_DW.is_c41_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_gd = SIL_B.good_h; + SIL_DW.last_seq_p = SIL_B.good_h; } else { idx |= 2U; } @@ -14852,29 +14919,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_a < 255U) { - SIL_DW.temporalCounter_i1_a++; + if (SIL_DW.temporalCounter_i1_nd < 255U) { + SIL_DW.temporalCounter_i1_nd++; } if (SIL_DW.is_active_c43_kb3_autopilot == 0U) { SIL_DW.is_active_c43_kb3_autopilot = 1U; SIL_DW.is_c43_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_a = SIL_B.good_d; + SIL_DW.last_seq_d = SIL_B.good_d; } else if (SIL_DW.is_c43_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_a != SIL_B.good_d) { + if (SIL_DW.last_seq_d != SIL_B.good_d) { SIL_DW.is_c43_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_a = 0U; + SIL_DW.temporalCounter_i1_nd = 0U; idx |= 4U; - SIL_DW.last_seq_a = SIL_B.good_d; + SIL_DW.last_seq_d = SIL_B.good_d; } - } else if (SIL_DW.last_seq_a != SIL_B.good_d) { + } else if (SIL_DW.last_seq_d != SIL_B.good_d) { SIL_DW.is_c43_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_a = 0U; + SIL_DW.temporalCounter_i1_nd = 0U; idx |= 4U; - SIL_DW.last_seq_a = SIL_B.good_d; - } else if (SIL_DW.temporalCounter_i1_a >= 200U) { + SIL_DW.last_seq_d = SIL_B.good_d; + } else if (SIL_DW.temporalCounter_i1_nd >= 200U) { SIL_DW.is_c43_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_a = SIL_B.good_d; + SIL_DW.last_seq_d = SIL_B.good_d; } else { idx |= 4U; } @@ -14882,29 +14949,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_h3 < 255U) { - SIL_DW.temporalCounter_i1_h3++; + if (SIL_DW.temporalCounter_i1_g < 255U) { + SIL_DW.temporalCounter_i1_g++; } if (SIL_DW.is_active_c48_kb3_autopilot == 0U) { SIL_DW.is_active_c48_kb3_autopilot = 1U; SIL_DW.is_c48_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_be = SIL_B.good_l; + SIL_DW.last_seq_iy = SIL_B.good_l; } else if (SIL_DW.is_c48_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_be != SIL_B.good_l) { + if (SIL_DW.last_seq_iy != SIL_B.good_l) { SIL_DW.is_c48_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_h3 = 0U; + SIL_DW.temporalCounter_i1_g = 0U; idx |= 8U; - SIL_DW.last_seq_be = SIL_B.good_l; + SIL_DW.last_seq_iy = SIL_B.good_l; } - } else if (SIL_DW.last_seq_be != SIL_B.good_l) { + } else if (SIL_DW.last_seq_iy != SIL_B.good_l) { SIL_DW.is_c48_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_h3 = 0U; + SIL_DW.temporalCounter_i1_g = 0U; idx |= 8U; - SIL_DW.last_seq_be = SIL_B.good_l; - } else if (SIL_DW.temporalCounter_i1_h3 >= 200U) { + SIL_DW.last_seq_iy = SIL_B.good_l; + } else if (SIL_DW.temporalCounter_i1_g >= 200U) { SIL_DW.is_c48_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_be = SIL_B.good_l; + SIL_DW.last_seq_iy = SIL_B.good_l; } else { idx |= 8U; } @@ -14912,29 +14979,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_g0 < 255U) { - SIL_DW.temporalCounter_i1_g0++; + if (SIL_DW.temporalCounter_i1_fh < 255U) { + SIL_DW.temporalCounter_i1_fh++; } if (SIL_DW.is_active_c49_kb3_autopilot == 0U) { SIL_DW.is_active_c49_kb3_autopilot = 1U; SIL_DW.is_c49_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_i = SIL_B.good_g; + SIL_DW.last_seq_c = SIL_B.good_g; } else if (SIL_DW.is_c49_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_i != SIL_B.good_g) { + if (SIL_DW.last_seq_c != SIL_B.good_g) { SIL_DW.is_c49_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_g0 = 0U; + SIL_DW.temporalCounter_i1_fh = 0U; idx |= 16U; - SIL_DW.last_seq_i = SIL_B.good_g; + SIL_DW.last_seq_c = SIL_B.good_g; } - } else if (SIL_DW.last_seq_i != SIL_B.good_g) { + } else if (SIL_DW.last_seq_c != SIL_B.good_g) { SIL_DW.is_c49_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_g0 = 0U; + SIL_DW.temporalCounter_i1_fh = 0U; idx |= 16U; - SIL_DW.last_seq_i = SIL_B.good_g; - } else if (SIL_DW.temporalCounter_i1_g0 >= 200U) { + SIL_DW.last_seq_c = SIL_B.good_g; + } else if (SIL_DW.temporalCounter_i1_fh >= 200U) { SIL_DW.is_c49_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_i = SIL_B.good_g; + SIL_DW.last_seq_c = SIL_B.good_g; } else { idx |= 16U; } @@ -14942,29 +15009,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_b < 255U) { - SIL_DW.temporalCounter_i1_b++; + if (SIL_DW.temporalCounter_i1_n < 255U) { + SIL_DW.temporalCounter_i1_n++; } if (SIL_DW.is_active_c50_kb3_autopilot == 0U) { SIL_DW.is_active_c50_kb3_autopilot = 1U; SIL_DW.is_c50_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_h = SIL_B.good_m; + SIL_DW.last_seq_o = SIL_B.good_m; } else if (SIL_DW.is_c50_kb3_autopilot == SIL_IN_bad) { - if (SIL_B.SZN_ok && (SIL_DW.last_seq_h != SIL_B.good_m)) { + if (SIL_B.SZN_ok && (SIL_DW.last_seq_o != SIL_B.good_m)) { SIL_DW.is_c50_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_b = 0U; + SIL_DW.temporalCounter_i1_n = 0U; idx |= 32U; - SIL_DW.last_seq_h = SIL_B.good_m; + SIL_DW.last_seq_o = SIL_B.good_m; } - } else if (SIL_B.SZN_ok && (SIL_DW.last_seq_h != SIL_B.good_m)) { + } else if (SIL_B.SZN_ok && (SIL_DW.last_seq_o != SIL_B.good_m)) { SIL_DW.is_c50_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_b = 0U; + SIL_DW.temporalCounter_i1_n = 0U; idx |= 32U; - SIL_DW.last_seq_h = SIL_B.good_m; - } else if (SIL_DW.temporalCounter_i1_b >= 200U) { + SIL_DW.last_seq_o = SIL_B.good_m; + } else if (SIL_DW.temporalCounter_i1_n >= 200U) { SIL_DW.is_c50_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_h = SIL_B.good_m; + SIL_DW.last_seq_o = SIL_B.good_m; } else { idx |= 32U; } @@ -14974,29 +15041,29 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_ga < 255U) { - SIL_DW.temporalCounter_i1_ga++; + if (SIL_DW.temporalCounter_i1_a < 255U) { + SIL_DW.temporalCounter_i1_a++; } if (SIL_DW.is_active_c60_kb3_autopilot == 0U) { SIL_DW.is_active_c60_kb3_autopilot = 1U; SIL_DW.is_c60_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_b = SIL_DW.UnitDelay_DSTATE_h; + SIL_DW.last_seq_n = SIL_DW.UnitDelay_DSTATE_h; } else if (SIL_DW.is_c60_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_b != SIL_DW.UnitDelay_DSTATE_h) { + if (SIL_DW.last_seq_n != SIL_DW.UnitDelay_DSTATE_h) { SIL_DW.is_c60_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_ga = 0U; + SIL_DW.temporalCounter_i1_a = 0U; idx |= 64U; - SIL_DW.last_seq_b = SIL_DW.UnitDelay_DSTATE_h; + SIL_DW.last_seq_n = SIL_DW.UnitDelay_DSTATE_h; } - } else if (SIL_DW.last_seq_b != SIL_DW.UnitDelay_DSTATE_h) { + } else if (SIL_DW.last_seq_n != SIL_DW.UnitDelay_DSTATE_h) { SIL_DW.is_c60_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_ga = 0U; + SIL_DW.temporalCounter_i1_a = 0U; idx |= 64U; - SIL_DW.last_seq_b = SIL_DW.UnitDelay_DSTATE_h; - } else if (SIL_DW.temporalCounter_i1_ga >= 200U) { + SIL_DW.last_seq_n = SIL_DW.UnitDelay_DSTATE_h; + } else if (SIL_DW.temporalCounter_i1_a >= 200U) { SIL_DW.is_c60_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_b = SIL_DW.UnitDelay_DSTATE_h; + SIL_DW.last_seq_n = SIL_DW.UnitDelay_DSTATE_h; } else { idx |= 64U; } @@ -15006,29 +15073,29 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_gg < 255U) { - SIL_DW.temporalCounter_i1_gg++; + if (SIL_DW.temporalCounter_i1_mk < 255U) { + SIL_DW.temporalCounter_i1_mk++; } if (SIL_DW.is_active_c62_kb3_autopilot == 0U) { SIL_DW.is_active_c62_kb3_autopilot = 1U; SIL_DW.is_c62_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_g = SIL_DW.UnitDelay_DSTATE_c3; + SIL_DW.last_seq_i = SIL_DW.UnitDelay_DSTATE_c3; } else if (SIL_DW.is_c62_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_g != SIL_DW.UnitDelay_DSTATE_c3) { + if (SIL_DW.last_seq_i != SIL_DW.UnitDelay_DSTATE_c3) { SIL_DW.is_c62_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_gg = 0U; + SIL_DW.temporalCounter_i1_mk = 0U; idx |= 128U; - SIL_DW.last_seq_g = SIL_DW.UnitDelay_DSTATE_c3; + SIL_DW.last_seq_i = SIL_DW.UnitDelay_DSTATE_c3; } - } else if (SIL_DW.last_seq_g != SIL_DW.UnitDelay_DSTATE_c3) { + } else if (SIL_DW.last_seq_i != SIL_DW.UnitDelay_DSTATE_c3) { SIL_DW.is_c62_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_gg = 0U; + SIL_DW.temporalCounter_i1_mk = 0U; idx |= 128U; - SIL_DW.last_seq_g = SIL_DW.UnitDelay_DSTATE_c3; - } else if (SIL_DW.temporalCounter_i1_gg >= 200U) { + SIL_DW.last_seq_i = SIL_DW.UnitDelay_DSTATE_c3; + } else if (SIL_DW.temporalCounter_i1_mk >= 200U) { SIL_DW.is_c62_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_g = SIL_DW.UnitDelay_DSTATE_c3; + SIL_DW.last_seq_i = SIL_DW.UnitDelay_DSTATE_c3; } else { idx |= 128U; } @@ -15038,8 +15105,8 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_e1 < 255U) { - SIL_DW.temporalCounter_i1_e1++; + if (SIL_DW.temporalCounter_i1_j < 255U) { + SIL_DW.temporalCounter_i1_j++; } if (SIL_DW.is_active_c64_kb3_autopilot == 0U) { @@ -15049,16 +15116,16 @@ void SIL_step(void) } else if (SIL_DW.is_c64_kb3_autopilot == SIL_IN_bad) { if (SIL_DW.last_seq != SIL_DW.UnitDelay_DSTATE_b) { SIL_DW.is_c64_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_e1 = 0U; + SIL_DW.temporalCounter_i1_j = 0U; idx |= 256U; SIL_DW.last_seq = SIL_DW.UnitDelay_DSTATE_b; } } else if (SIL_DW.last_seq != SIL_DW.UnitDelay_DSTATE_b) { SIL_DW.is_c64_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_e1 = 0U; + SIL_DW.temporalCounter_i1_j = 0U; idx |= 256U; SIL_DW.last_seq = SIL_DW.UnitDelay_DSTATE_b; - } else if (SIL_DW.temporalCounter_i1_e1 >= 200U) { + } else if (SIL_DW.temporalCounter_i1_j >= 200U) { SIL_DW.is_c64_kb3_autopilot = SIL_IN_bad; SIL_DW.last_seq = SIL_DW.UnitDelay_DSTATE_b; } else { @@ -15070,29 +15137,29 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_o < 255U) { - SIL_DW.temporalCounter_i1_o++; + if (SIL_DW.temporalCounter_i1_ix < 255U) { + SIL_DW.temporalCounter_i1_ix++; } if (SIL_DW.is_active_c45_kb3_autopilot == 0U) { SIL_DW.is_active_c45_kb3_autopilot = 1U; SIL_DW.is_c45_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_p = SIL_DW.UnitDelay_DSTATE_oi; + SIL_DW.last_seq_dn = SIL_DW.UnitDelay_DSTATE_oi; } else if (SIL_DW.is_c45_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_p != SIL_DW.UnitDelay_DSTATE_oi) { + if (SIL_DW.last_seq_dn != SIL_DW.UnitDelay_DSTATE_oi) { SIL_DW.is_c45_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_o = 0U; + SIL_DW.temporalCounter_i1_ix = 0U; idx |= 512U; - SIL_DW.last_seq_p = SIL_DW.UnitDelay_DSTATE_oi; + SIL_DW.last_seq_dn = SIL_DW.UnitDelay_DSTATE_oi; } - } else if (SIL_DW.last_seq_p != SIL_DW.UnitDelay_DSTATE_oi) { + } else if (SIL_DW.last_seq_dn != SIL_DW.UnitDelay_DSTATE_oi) { SIL_DW.is_c45_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_o = 0U; + SIL_DW.temporalCounter_i1_ix = 0U; idx |= 512U; - SIL_DW.last_seq_p = SIL_DW.UnitDelay_DSTATE_oi; - } else if (SIL_DW.temporalCounter_i1_o >= 200U) { + SIL_DW.last_seq_dn = SIL_DW.UnitDelay_DSTATE_oi; + } else if (SIL_DW.temporalCounter_i1_ix >= 200U) { SIL_DW.is_c45_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_p = SIL_DW.UnitDelay_DSTATE_oi; + SIL_DW.last_seq_dn = SIL_DW.UnitDelay_DSTATE_oi; } else { idx |= 512U; } @@ -15102,29 +15169,29 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_j < 255U) { - SIL_DW.temporalCounter_i1_j++; + if (SIL_DW.temporalCounter_i1_bp < 255U) { + SIL_DW.temporalCounter_i1_bp++; } if (SIL_DW.is_active_c46_kb3_autopilot == 0U) { SIL_DW.is_active_c46_kb3_autopilot = 1U; SIL_DW.is_c46_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_l = SIL_DW.UnitDelay_DSTATE_e; + SIL_DW.last_seq_oy = SIL_DW.UnitDelay_DSTATE_e; } else if (SIL_DW.is_c46_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_l != SIL_DW.UnitDelay_DSTATE_e) { + if (SIL_DW.last_seq_oy != SIL_DW.UnitDelay_DSTATE_e) { SIL_DW.is_c46_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_j = 0U; + SIL_DW.temporalCounter_i1_bp = 0U; idx |= 1024U; - SIL_DW.last_seq_l = SIL_DW.UnitDelay_DSTATE_e; + SIL_DW.last_seq_oy = SIL_DW.UnitDelay_DSTATE_e; } - } else if (SIL_DW.last_seq_l != SIL_DW.UnitDelay_DSTATE_e) { + } else if (SIL_DW.last_seq_oy != SIL_DW.UnitDelay_DSTATE_e) { SIL_DW.is_c46_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_j = 0U; + SIL_DW.temporalCounter_i1_bp = 0U; idx |= 1024U; - SIL_DW.last_seq_l = SIL_DW.UnitDelay_DSTATE_e; - } else if (SIL_DW.temporalCounter_i1_j >= 200U) { + SIL_DW.last_seq_oy = SIL_DW.UnitDelay_DSTATE_e; + } else if (SIL_DW.temporalCounter_i1_bp >= 200U) { SIL_DW.is_c46_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_l = SIL_DW.UnitDelay_DSTATE_e; + SIL_DW.last_seq_oy = SIL_DW.UnitDelay_DSTATE_e; } else { idx |= 1024U; } @@ -15134,61 +15201,66 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_i < 255U) { - SIL_DW.temporalCounter_i1_i++; + if (SIL_DW.temporalCounter_i1_jw < 255U) { + SIL_DW.temporalCounter_i1_jw++; } if (SIL_DW.is_active_c47_kb3_autopilot == 0U) { SIL_DW.is_active_c47_kb3_autopilot = 1U; SIL_DW.is_c47_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_f = SIL_DW.UnitDelay_DSTATE_cg; + SIL_DW.last_seq_g = SIL_DW.UnitDelay_DSTATE_cg; } else if (SIL_DW.is_c47_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_f != SIL_DW.UnitDelay_DSTATE_cg) { + if (SIL_DW.last_seq_g != SIL_DW.UnitDelay_DSTATE_cg) { SIL_DW.is_c47_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_i = 0U; + SIL_DW.temporalCounter_i1_jw = 0U; idx |= 2048U; - SIL_DW.last_seq_f = SIL_DW.UnitDelay_DSTATE_cg; + SIL_DW.last_seq_g = SIL_DW.UnitDelay_DSTATE_cg; } - } else if (SIL_DW.last_seq_f != SIL_DW.UnitDelay_DSTATE_cg) { + } else if (SIL_DW.last_seq_g != SIL_DW.UnitDelay_DSTATE_cg) { SIL_DW.is_c47_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_i = 0U; + SIL_DW.temporalCounter_i1_jw = 0U; idx |= 2048U; - SIL_DW.last_seq_f = SIL_DW.UnitDelay_DSTATE_cg; - } else if (SIL_DW.temporalCounter_i1_i >= 200U) { + SIL_DW.last_seq_g = SIL_DW.UnitDelay_DSTATE_cg; + } else if (SIL_DW.temporalCounter_i1_jw >= 200U) { SIL_DW.is_c47_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_f = SIL_DW.UnitDelay_DSTATE_cg; + SIL_DW.last_seq_g = SIL_DW.UnitDelay_DSTATE_cg; } else { idx |= 2048U; } /* End of Chart: '/Chart' */ - /* Chart: '/Chart' incorporates: - * Chart: '/Chart' - */ - if (SIL_DW.temporalCounter_i1_gu < 255U) { - SIL_DW.temporalCounter_i1_gu++; + /* Chart: '/Chart' */ + if (rtb_not) { + idx |= 4096U; + } + + /* End of Chart: '/Chart' */ + + /* Chart: '/Chart' */ + if (SIL_DW.temporalCounter_i1_ec < 255U) { + SIL_DW.temporalCounter_i1_ec++; } if (SIL_DW.is_active_c54_kb3_autopilot == 0U) { SIL_DW.is_active_c54_kb3_autopilot = 1U; SIL_DW.is_c54_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_d = SIL_B.UnitDelay_f[0]; + SIL_DW.last_seq_e = SIL_B.UnitDelay_f[0]; } else if (SIL_DW.is_c54_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_d != SIL_B.UnitDelay_f[0]) { + if (SIL_DW.last_seq_e != SIL_B.UnitDelay_f[0]) { SIL_DW.is_c54_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_gu = 0U; + SIL_DW.temporalCounter_i1_ec = 0U; idx |= 8192U; - SIL_DW.last_seq_d = SIL_B.UnitDelay_f[0]; + SIL_DW.last_seq_e = SIL_B.UnitDelay_f[0]; } - } else if (SIL_DW.last_seq_d != SIL_B.UnitDelay_f[0]) { + } else if (SIL_DW.last_seq_e != SIL_B.UnitDelay_f[0]) { SIL_DW.is_c54_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_gu = 0U; + SIL_DW.temporalCounter_i1_ec = 0U; idx |= 8192U; - SIL_DW.last_seq_d = SIL_B.UnitDelay_f[0]; - } else if (SIL_DW.temporalCounter_i1_gu >= 200U) { + SIL_DW.last_seq_e = SIL_B.UnitDelay_f[0]; + } else if (SIL_DW.temporalCounter_i1_ec >= 200U) { SIL_DW.is_c54_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_d = SIL_B.UnitDelay_f[0]; + SIL_DW.last_seq_e = SIL_B.UnitDelay_f[0]; } else { idx |= 8192U; } @@ -15196,29 +15268,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_d < 255U) { - SIL_DW.temporalCounter_i1_d++; + if (SIL_DW.temporalCounter_i1_o < 255U) { + SIL_DW.temporalCounter_i1_o++; } if (SIL_DW.is_active_c55_kb3_autopilot == 0U) { SIL_DW.is_active_c55_kb3_autopilot = 1U; SIL_DW.is_c55_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_jv = SIL_B.UnitDelay_f[1]; + SIL_DW.last_seq_h = SIL_B.UnitDelay_f[1]; } else if (SIL_DW.is_c55_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_jv != SIL_B.UnitDelay_f[1]) { + if (SIL_DW.last_seq_h != SIL_B.UnitDelay_f[1]) { SIL_DW.is_c55_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_d = 0U; + SIL_DW.temporalCounter_i1_o = 0U; idx |= 16384U; - SIL_DW.last_seq_jv = SIL_B.UnitDelay_f[1]; + SIL_DW.last_seq_h = SIL_B.UnitDelay_f[1]; } - } else if (SIL_DW.last_seq_jv != SIL_B.UnitDelay_f[1]) { + } else if (SIL_DW.last_seq_h != SIL_B.UnitDelay_f[1]) { SIL_DW.is_c55_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_d = 0U; + SIL_DW.temporalCounter_i1_o = 0U; idx |= 16384U; - SIL_DW.last_seq_jv = SIL_B.UnitDelay_f[1]; - } else if (SIL_DW.temporalCounter_i1_d >= 200U) { + SIL_DW.last_seq_h = SIL_B.UnitDelay_f[1]; + } else if (SIL_DW.temporalCounter_i1_o >= 200U) { SIL_DW.is_c55_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_jv = SIL_B.UnitDelay_f[1]; + SIL_DW.last_seq_h = SIL_B.UnitDelay_f[1]; } else { idx |= 16384U; } @@ -15226,29 +15298,29 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_pj < 255U) { - SIL_DW.temporalCounter_i1_pj++; + if (SIL_DW.temporalCounter_i1_ps < 255U) { + SIL_DW.temporalCounter_i1_ps++; } if (SIL_DW.is_active_c56_kb3_autopilot == 0U) { SIL_DW.is_active_c56_kb3_autopilot = 1U; SIL_DW.is_c56_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_e = SIL_B.UnitDelay_f[2]; + SIL_DW.last_seq_a = SIL_B.UnitDelay_f[2]; } else if (SIL_DW.is_c56_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_e != SIL_B.UnitDelay_f[2]) { + if (SIL_DW.last_seq_a != SIL_B.UnitDelay_f[2]) { SIL_DW.is_c56_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_pj = 0U; + SIL_DW.temporalCounter_i1_ps = 0U; idx |= 32768U; - SIL_DW.last_seq_e = SIL_B.UnitDelay_f[2]; + SIL_DW.last_seq_a = SIL_B.UnitDelay_f[2]; } - } else if (SIL_DW.last_seq_e != SIL_B.UnitDelay_f[2]) { + } else if (SIL_DW.last_seq_a != SIL_B.UnitDelay_f[2]) { SIL_DW.is_c56_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_pj = 0U; + SIL_DW.temporalCounter_i1_ps = 0U; idx |= 32768U; - SIL_DW.last_seq_e = SIL_B.UnitDelay_f[2]; - } else if (SIL_DW.temporalCounter_i1_pj >= 200U) { + SIL_DW.last_seq_a = SIL_B.UnitDelay_f[2]; + } else if (SIL_DW.temporalCounter_i1_ps >= 200U) { SIL_DW.is_c56_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_e = SIL_B.UnitDelay_f[2]; + SIL_DW.last_seq_a = SIL_B.UnitDelay_f[2]; } else { idx |= 32768U; } @@ -15256,65 +15328,65 @@ void SIL_step(void) /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_at < 255U) { - SIL_DW.temporalCounter_i1_at++; + if (SIL_DW.temporalCounter_i1_jb < 255U) { + SIL_DW.temporalCounter_i1_jb++; } if (SIL_DW.is_active_c57_kb3_autopilot == 0U) { SIL_DW.is_active_c57_kb3_autopilot = 1U; SIL_DW.is_c57_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_o = SIL_B.UnitDelay_f[3]; - rtb_out_nq = (uint32_T)idx; + SIL_DW.last_seq_lo = SIL_B.UnitDelay_f[3]; + rtb_out_l = (uint32_T)idx; } else if (SIL_DW.is_c57_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_o != SIL_B.UnitDelay_f[3]) { + if (SIL_DW.last_seq_lo != SIL_B.UnitDelay_f[3]) { SIL_DW.is_c57_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_at = 0U; - rtb_out_nq = idx | 65536U; - SIL_DW.last_seq_o = SIL_B.UnitDelay_f[3]; + SIL_DW.temporalCounter_i1_jb = 0U; + rtb_out_l = idx | 65536U; + SIL_DW.last_seq_lo = SIL_B.UnitDelay_f[3]; } else { - rtb_out_nq = (uint32_T)idx; + rtb_out_l = (uint32_T)idx; } - } else if (SIL_DW.last_seq_o != SIL_B.UnitDelay_f[3]) { + } else if (SIL_DW.last_seq_lo != SIL_B.UnitDelay_f[3]) { SIL_DW.is_c57_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_at = 0U; - rtb_out_nq = idx | 65536U; - SIL_DW.last_seq_o = SIL_B.UnitDelay_f[3]; - } else if (SIL_DW.temporalCounter_i1_at >= 200U) { + SIL_DW.temporalCounter_i1_jb = 0U; + rtb_out_l = idx | 65536U; + SIL_DW.last_seq_lo = SIL_B.UnitDelay_f[3]; + } else if (SIL_DW.temporalCounter_i1_jb >= 200U) { SIL_DW.is_c57_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_o = SIL_B.UnitDelay_f[3]; - rtb_out_nq = (uint32_T)idx; + SIL_DW.last_seq_lo = SIL_B.UnitDelay_f[3]; + rtb_out_l = (uint32_T)idx; } else { - rtb_out_nq = idx | 65536U; + rtb_out_l = idx | 65536U; } /* End of Chart: '/Chart' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_l < 255U) { - SIL_DW.temporalCounter_i1_l++; + if (SIL_DW.temporalCounter_i1_d2 < 255U) { + SIL_DW.temporalCounter_i1_d2++; } if (SIL_DW.is_active_c58_kb3_autopilot == 0U) { SIL_DW.is_active_c58_kb3_autopilot = 1U; SIL_DW.is_c58_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_gc = SIL_B.UnitDelay_f[4]; + SIL_DW.last_seq_k = SIL_B.UnitDelay_f[4]; } else if (SIL_DW.is_c58_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_gc != SIL_B.UnitDelay_f[4]) { + if (SIL_DW.last_seq_k != SIL_B.UnitDelay_f[4]) { SIL_DW.is_c58_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_l = 0U; - rtb_out_nq |= 131072U; - SIL_DW.last_seq_gc = SIL_B.UnitDelay_f[4]; + SIL_DW.temporalCounter_i1_d2 = 0U; + rtb_out_l |= 131072U; + SIL_DW.last_seq_k = SIL_B.UnitDelay_f[4]; } - } else if (SIL_DW.last_seq_gc != SIL_B.UnitDelay_f[4]) { + } else if (SIL_DW.last_seq_k != SIL_B.UnitDelay_f[4]) { SIL_DW.is_c58_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_l = 0U; - rtb_out_nq |= 131072U; - SIL_DW.last_seq_gc = SIL_B.UnitDelay_f[4]; - } else if (SIL_DW.temporalCounter_i1_l >= 200U) { + SIL_DW.temporalCounter_i1_d2 = 0U; + rtb_out_l |= 131072U; + SIL_DW.last_seq_k = SIL_B.UnitDelay_f[4]; + } else if (SIL_DW.temporalCounter_i1_d2 >= 200U) { SIL_DW.is_c58_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_gc = SIL_B.UnitDelay_f[4]; + SIL_DW.last_seq_k = SIL_B.UnitDelay_f[4]; } else { - rtb_out_nq |= 131072U; + rtb_out_l |= 131072U; } /* End of Chart: '/Chart' */ @@ -15323,35 +15395,35 @@ void SIL_step(void) * Chart: '/Chart' * DataStoreRead: '/Data Store Read' */ - rtb_out_nq = (uint32_T)(SIL_DW.CC.recovery & 15) << 18 | rtb_out_nq | + rtb_out_l = (uint32_T)(SIL_DW.CC.recovery & 15) << 18 | rtb_out_l | (uint32_T)(SIL_B.stats & 63) << 22; /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_gn < 255U) { - SIL_DW.temporalCounter_i1_gn++; + if (SIL_DW.temporalCounter_i1_jm < 255U) { + SIL_DW.temporalCounter_i1_jm++; } if (SIL_DW.is_active_c42_kb3_autopilot == 0U) { SIL_DW.is_active_c42_kb3_autopilot = 1U; SIL_DW.is_c42_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_ag = SIL_B.good; + SIL_DW.last_seq_b = SIL_B.good; } else if (SIL_DW.is_c42_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_ag != SIL_B.good) { + if (SIL_DW.last_seq_b != SIL_B.good) { SIL_DW.is_c42_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_gn = 0U; - rtb_out_nq |= 268435456U; - SIL_DW.last_seq_ag = SIL_B.good; + SIL_DW.temporalCounter_i1_jm = 0U; + rtb_out_l |= 268435456U; + SIL_DW.last_seq_b = SIL_B.good; } - } else if (SIL_DW.last_seq_ag != SIL_B.good) { + } else if (SIL_DW.last_seq_b != SIL_B.good) { SIL_DW.is_c42_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_gn = 0U; - rtb_out_nq |= 268435456U; - SIL_DW.last_seq_ag = SIL_B.good; - } else if (SIL_DW.temporalCounter_i1_gn >= 200U) { + SIL_DW.temporalCounter_i1_jm = 0U; + rtb_out_l |= 268435456U; + SIL_DW.last_seq_b = SIL_B.good; + } else if (SIL_DW.temporalCounter_i1_jm >= 200U) { SIL_DW.is_c42_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_ag = SIL_B.good; + SIL_DW.last_seq_b = SIL_B.good; } else { - rtb_out_nq |= 268435456U; + rtb_out_l |= 268435456U; } /* End of Chart: '/Chart' */ @@ -15359,31 +15431,31 @@ void SIL_step(void) /* Chart: '/Chart' incorporates: * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_e5 < 255U) { - SIL_DW.temporalCounter_i1_e5++; + if (SIL_DW.temporalCounter_i1_i < 255U) { + SIL_DW.temporalCounter_i1_i++; } if (SIL_DW.is_active_c44_kb3_autopilot == 0U) { SIL_DW.is_active_c44_kb3_autopilot = 1U; SIL_DW.is_c44_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_j = SIL_DW.UnitDelay_DSTATE_l5; + SIL_DW.last_seq_l = SIL_DW.UnitDelay_DSTATE_l5; } else if (SIL_DW.is_c44_kb3_autopilot == SIL_IN_bad) { - if (SIL_DW.last_seq_j != SIL_DW.UnitDelay_DSTATE_l5) { + if (SIL_DW.last_seq_l != SIL_DW.UnitDelay_DSTATE_l5) { SIL_DW.is_c44_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_e5 = 0U; - rtb_out_nq |= 536870912U; - SIL_DW.last_seq_j = SIL_DW.UnitDelay_DSTATE_l5; + SIL_DW.temporalCounter_i1_i = 0U; + rtb_out_l |= 536870912U; + SIL_DW.last_seq_l = SIL_DW.UnitDelay_DSTATE_l5; } - } else if (SIL_DW.last_seq_j != SIL_DW.UnitDelay_DSTATE_l5) { + } else if (SIL_DW.last_seq_l != SIL_DW.UnitDelay_DSTATE_l5) { SIL_DW.is_c44_kb3_autopilot = SIL_IN_good; - SIL_DW.temporalCounter_i1_e5 = 0U; - rtb_out_nq |= 536870912U; - SIL_DW.last_seq_j = SIL_DW.UnitDelay_DSTATE_l5; - } else if (SIL_DW.temporalCounter_i1_e5 >= 200U) { + SIL_DW.temporalCounter_i1_i = 0U; + rtb_out_l |= 536870912U; + SIL_DW.last_seq_l = SIL_DW.UnitDelay_DSTATE_l5; + } else if (SIL_DW.temporalCounter_i1_i >= 200U) { SIL_DW.is_c44_kb3_autopilot = SIL_IN_bad; - SIL_DW.last_seq_j = SIL_DW.UnitDelay_DSTATE_l5; + SIL_DW.last_seq_l = SIL_DW.UnitDelay_DSTATE_l5; } else { - rtb_out_nq |= 536870912U; + rtb_out_l |= 536870912U; } /* End of Chart: '/Chart' */ @@ -15400,10 +15472,10 @@ void SIL_step(void) */ if (SIL_DW.CC.enable_rec) { /* BusAssignment: '/Bus Assignment' */ - SIL_B.BusAssignment_j.sensors_health = rtb_out_nq | 1073741824U; + SIL_B.BusAssignment_j.sensors_health = rtb_out_l | 1073741824U; } else { /* BusAssignment: '/Bus Assignment' */ - SIL_B.BusAssignment_j.sensors_health = rtb_out_nq; + SIL_B.BusAssignment_j.sensors_health = rtb_out_l; } /* End of Chart: '/Chart' */ @@ -15566,10 +15638,12 @@ void SIL_step(void) /* End of If: '/If' */ + /* UnitDelay: '/Unit Delay' */ + SIL_B.UnitDelay = SIL_DW.UnitDelay_DSTATE; + /* Lookup_n-D: '/1-D Lookup Table' */ - rtb_uDLookupTable_c = look1_iflf_pbinlcapw(SIL_B.BusAssignment_j.msl, - rtCP_uDLookupTable_bp01Data, rtCP_uDLookupTable_tableData, - &SIL_DW.m_bpIndex_m1, 5U); + rtb_uDLookupTable = look1_iflf_pbinlcapw(SIL_B.UnitDelay.abs_alt, + SIL_P.alt_lst, SIL_P.tas_qc, &SIL_DW.m_bpIndex_m1, 5U); /* Saturate: '/Saturation2' */ if (SIL_B.BusAssignment_j.qbar <= 6125.0F) { @@ -15580,13 +15654,11 @@ void SIL_step(void) /* End of Saturate: '/Saturation2' */ - /* Saturate: '/Saturation1' incorporates: - * UnitDelay: '/Unit Delay' - */ - if (SIL_DW.UnitDelay_DSTATE.v_gv <= 100.0F) { + /* Saturate: '/Saturation1' */ + if (SIL_B.UnitDelay.v_gv <= 100.0F) { rtb_Merge1_aq = 100.0F; } else { - rtb_Merge1_aq = SIL_DW.UnitDelay_DSTATE.v_gv; + rtb_Merge1_aq = SIL_B.UnitDelay.v_gv; } /* End of Saturate: '/Saturation1' */ @@ -15600,9 +15672,8 @@ void SIL_step(void) rtb_Merge1_aq; /* Lookup_n-D: '/IAS_lookup' */ - scale = look1_iflf_pbinlcapw(SIL_B.BusAssignment_j.msl, - rtCP_IAS_lookup_bp01Data, rtCP_IAS_lookup_tableData, - &SIL_DW.m_bpIndex_eh, 7U); + scale = look1_iflf_pbinlcapw(SIL_B.UnitDelay.abs_alt, SIL_P.alt_lst, + SIL_P.tas_gl, &SIL_DW.m_bpIndex_e, 5U); /* SwitchCase: '/Switch Case' incorporates: * DataStoreRead: '/Data Store Read' @@ -15618,7 +15689,7 @@ void SIL_step(void) /* Outputs for IfAction SubSystem: '/climb_char' incorporates: * ActionPort: '/Action Port' */ - scale = rtb_uDLookupTable_c; + scale = rtb_uDLookupTable; /* SignalConversion: '/sens_BusSelector' incorporates: * Inport: '/tas_qc' @@ -15692,14 +15763,14 @@ void SIL_step(void) /* Product: '/product' incorporates: * Lookup_n-D: '/Clda' */ - rtb_product_k = t * look1_iflf_binlxpw(SIL_B.BusAssignment_j.Mach, + rtb_product_mt = t * look1_iflf_binlxpw(SIL_B.BusAssignment_j.Mach, SIL_P.Ma_lst, SIL_P.Clda_lst, 10U); /* Saturate: '/Saturation1' */ if (SIL_B.BusAssignment_j.TAS <= 100.0F) { - rtb_table1D_thrAB_map_b = 100.0F; + rtb_table1D_thrAB_map_g = 100.0F; } else { - rtb_table1D_thrAB_map_b = SIL_B.BusAssignment_j.TAS; + rtb_table1D_thrAB_map_g = SIL_B.BusAssignment_j.TAS; } /* End of Saturate: '/Saturation1' */ @@ -15711,17 +15782,17 @@ void SIL_step(void) */ rtb_product1_i = SIL_P.RefSpan / 2.0F * look1_iflf_binlxpw (SIL_B.BusAssignment_j.Mach, SIL_P.Ma_lst, SIL_P.Clp_lst, 10U) * (t / - rtb_table1D_thrAB_map_b); + rtb_table1D_thrAB_map_g); /* Lookup_n-D: '/1-D Lookup Table' */ - rtb_table1D_thrAB_map_b = look1_iflf_pbinlcapw(rtb_table1D_thrAB_map_b, - rtCP_uDLookupTable_bp01Data_d, rtCP_uDLookupTable_tableData_n, + rtb_table1D_thrAB_map_g = look1_iflf_pbinlcapw(rtb_table1D_thrAB_map_g, + rtCP_uDLookupTable_bp01Data, rtCP_uDLookupTable_tableData, &SIL_DW.m_bpIndex_cs, 2U); /* Product: '/Product' incorporates: * Constant: '/Constant1' */ - rtb_Product_pqq = rtb_table1D_thrAB_map_b * SIL_P.max_da; + rtb_Product_pqq = rtb_table1D_thrAB_map_g * SIL_P.max_da; /* Saturate: '/Saturation2' */ if (SIL_B.BusAssignment_j.qbar <= 6125.0F) { @@ -15746,9 +15817,9 @@ void SIL_step(void) /* Saturate: '/Saturation1' */ if (SIL_B.BusAssignment_j.TAS <= 100.0F) { - rtb_table1D_thrAB_map_b = 100.0F; + rtb_table1D_thrAB_map_g = 100.0F; } else { - rtb_table1D_thrAB_map_b = SIL_B.BusAssignment_j.TAS; + rtb_table1D_thrAB_map_g = SIL_B.BusAssignment_j.TAS; } /* End of Saturate: '/Saturation1' */ @@ -15760,22 +15831,22 @@ void SIL_step(void) */ rtb_Product3_n = SIL_P.RefLen / 2.0F * look1_iflf_binlxpw (SIL_B.BusAssignment_j.Mach, SIL_P.Ma_lst, SIL_P.Cmq_lst, 10U) * (t / - rtb_table1D_thrAB_map_b); + rtb_table1D_thrAB_map_g); /* Lookup_n-D: '/1-D Lookup Table' */ - rtb_table1D_thrAB_map_b = look1_iflf_pbinlcapw(rtb_table1D_thrAB_map_b, + rtb_table1D_thrAB_map_g = look1_iflf_pbinlcapw(rtb_table1D_thrAB_map_g, rtCP_uDLookupTable_bp01Data_a, rtCP_uDLookupTable_tableData_m, - &SIL_DW.m_bpIndex_i, 2U); + &SIL_DW.m_bpIndex_io, 2U); /* Product: '/Product' incorporates: * Constant: '/Constant1' */ - t = rtb_table1D_thrAB_map_b * SIL_P.max_de; + t = rtb_table1D_thrAB_map_g * SIL_P.max_de; /* Product: '/Product1' incorporates: * Constant: '/Constant2' */ - rtb_Product1_eo = rtb_table1D_thrAB_map_b * SIL_P.min_de; + rtb_Product1_eo = rtb_table1D_thrAB_map_g * SIL_P.min_de; /* S-Function (sfix_look1_dyn): '/Lookup Table Dynamic' incorporates: * Constant: '/Constant11' @@ -15790,7 +15861,7 @@ void SIL_step(void) * */ LookUp_real32_T_real32_T( &(rtb_LookupTableDynamic), &SIL_P.max_thrust[0], - SIL_B.BusAssignment_j.msl, &SIL_P.h_thr2rpm[0], 2U); + SIL_B.UnitDelay.abs_alt, &SIL_P.h_thr2rpm[0], 2U); /* Outputs for IfAction SubSystem: '/AS' incorporates: * ActionPort: '/Action Port' @@ -15819,13 +15890,13 @@ void SIL_step(void) } else { switch (SIL_DW.is_c10_kb3_autopilot) { case SIL_IN_Linked: - SIL_B.ack_g = true; + SIL_B.ack_b = true; SIL_DW.is_c10_kb3_autopilot = SIL_IN_idle_n; SIL_B.id = 0U; break; case SIL_IN_Linked2: - SIL_B.ack_g = false; + SIL_B.ack_b = false; SIL_DW.is_c10_kb3_autopilot = SIL_IN_idle_n; SIL_B.id = 0U; break; @@ -15835,21 +15906,21 @@ void SIL_step(void) SIL_DW.is_c10_kb3_autopilot = SIL_IN_Linked; SIL_B.id = ((CommandMsg *)SIL_DW.cmd_msgDataPtr)->id; for (idx = 0; idx < 7; idx++) { - SIL_B.params_n[idx] = ((CommandMsg *)SIL_DW.cmd_msgDataPtr) + SIL_B.params_c[idx] = ((CommandMsg *)SIL_DW.cmd_msgDataPtr) ->params[idx]; } - SIL_B.ack_g = true; + SIL_B.ack_b = true; } else { if (SIL_sf_msg_pop_cmd2()) { SIL_DW.is_c10_kb3_autopilot = SIL_IN_Linked2; SIL_B.id = ((CommandMsg *)SIL_DW.cmd2_msgDataPtr)->id; for (idx = 0; idx < 7; idx++) { - SIL_B.params_n[idx] = ((CommandMsg *)SIL_DW.cmd2_msgDataPtr) + SIL_B.params_c[idx] = ((CommandMsg *)SIL_DW.cmd2_msgDataPtr) ->params[idx]; } - SIL_B.ack_g = false; + SIL_B.ack_b = false; } } break; @@ -15870,12 +15941,12 @@ void SIL_step(void) } else if (SIL_DW.is_c14_C2_proc_comm == SIL_IN_idle_p) { if (SIL_sf_msg_pop_set_cur()) { SIL_DW.is_c14_C2_proc_comm = SIL_IN_process_set_cur; - rtb_out_nq = *(uint16_T *)SIL_DW.set_cur_msgDataPtr + 1U; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + rtb_out_l = *(uint16_T *)SIL_DW.set_cur_msgDataPtr + 1U; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } - SIL_B.WP_cur = (uint16_T)rtb_out_nq; + SIL_B.WP_cur = (uint16_T)rtb_out_l; } } else { SIL_DW.is_c14_C2_proc_comm = SIL_IN_idle_p; @@ -15930,22 +16001,22 @@ void SIL_step(void) rtb_Merge1_h = 0U; /* If: '/If' */ - if (SIL_B.params_n[0] > 1.5F) { + if (SIL_B.params_c[0] > 1.5F) { /* Outputs for IfAction SubSystem: '/set_base_alt' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.base_asl = SIL_B.params_n[1]; + rtb_Merge_b.base_asl = SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/set_base_alt' */ - } else if (SIL_B.params_n[0] > 0.5F) { + } else if (SIL_B.params_c[0] > 0.5F) { /* Outputs for IfAction SubSystem: '/set_base_alt_baro' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.base_asl_baro = SIL_B.params_n[1]; + rtb_Merge_b.base_asl_baro = SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/set_base_alt_baro' */ } else { @@ -15972,7 +16043,7 @@ void SIL_step(void) * Gain: '/Gain1' */ rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.takeoff_tht = 0.0174532924F * SIL_B.params_n[0]; + rtb_Merge_b.takeoff_tht = 0.0174532924F * SIL_B.params_c[0]; /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: * Constant: '/Constant' @@ -15993,7 +16064,7 @@ void SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.dist_trans = SIL_B.params_n[1]; + rtb_Merge_b.dist_trans = SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/dist_trans' */ break; @@ -16005,7 +16076,7 @@ void SIL_step(void) /* If: '/If' incorporates: * If: '/If' */ - if (SIL_B.params_n[0] > 0.5F) { + if (SIL_B.params_c[0] > 0.5F) { /* Outputs for IfAction SubSystem: '/arm' incorporates: * ActionPort: '/Action Port' */ @@ -16089,7 +16160,7 @@ void SIL_step(void) rtb_Merge_b = rtb_Merge_k; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_Sum1_cv = floorf(SIL_B.params_n[0]); + rtb_Sum1_cv = floorf(SIL_B.params_c[0]); if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { rtb_Sum1_cv = 0.0F; } else { @@ -16126,7 +16197,7 @@ void SIL_step(void) rtb_Merge1_h = 0U; /* If: '/If' */ - if (SIL_B.params_n[0] > 1.5F) { + if (SIL_B.params_c[0] > 1.5F) { /* Outputs for IfAction SubSystem: '/operation' incorporates: * ActionPort: '/Action Port' */ @@ -16139,7 +16210,7 @@ void SIL_step(void) rtb_Merge_b.standby_cmd = false; /* End of Outputs for SubSystem: '/operation' */ - } else if (SIL_B.params_n[0] > 0.5F) { + } else if (SIL_B.params_c[0] > 0.5F) { /* Outputs for IfAction SubSystem: '/xbit' incorporates: * ActionPort: '/Action Port' */ @@ -16188,15 +16259,15 @@ void SIL_step(void) */ /* Outputs for Atomic SubSystem: '/set_speed' */ /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[0]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[0] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[0]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[0] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[0] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[0] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[0]; + rtb_Sum1_cv = SIL_B.params_c[0]; } if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { @@ -16218,13 +16289,13 @@ void SIL_step(void) /* If: '/If' incorporates: * Inport: '/In1' */ - if (SIL_B.params_n[1] > 0.0F) { + if (SIL_B.params_c[1] > 0.0F) { /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.as_c = SIL_B.params_n[1]; + rtb_Merge_b.as_c = SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/Subsystem' */ } else { @@ -16247,13 +16318,13 @@ void SIL_step(void) /* If: '/If' incorporates: * Inport: '/In1' */ - if (SIL_B.params_n[1] > 0.0F) { + if (SIL_B.params_c[1] > 0.0F) { /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.gs_c = SIL_B.params_n[1]; + rtb_Merge_b.gs_c = SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/Subsystem' */ } else { @@ -16276,13 +16347,13 @@ void SIL_step(void) /* If: '/If' incorporates: * Inport: '/In1' */ - if ((SIL_B.params_n[1] > -10.0F) && (SIL_B.params_n[1] < 10.0F)) { + if ((SIL_B.params_c[1] > -10.0F) && (SIL_B.params_c[1] < 10.0F)) { /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.hdot_c = SIL_B.params_n[1]; + rtb_Merge_b.hdot_c = SIL_B.params_c[1]; /* End of Outputs for SubSystem: '/Subsystem' */ } else { @@ -16312,12 +16383,12 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/set_speed' */ /* If: '/If' */ - if (SIL_B.params_n[2] > -0.9F) { + if (SIL_B.params_c[2] > -0.9F) { /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: * ActionPort: '/Action Port' */ /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_b.throttle_c = SIL_B.params_n[2]; + rtb_Merge_b.throttle_c = SIL_B.params_c[2]; /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } @@ -16337,15 +16408,15 @@ void SIL_step(void) * ActionPort: '/Action Port' */ /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[0]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[0] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[0]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[0] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[0] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[0] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[0]; + rtb_Sum1_cv = SIL_B.params_c[0]; } if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { @@ -16368,15 +16439,15 @@ void SIL_step(void) rtb_Merge_b = rtb_Merge_k; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[1]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[1] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[1]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[1] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[1] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[1] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[1]; + rtb_Sum1_cv = SIL_B.params_c[1]; } if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { @@ -16403,15 +16474,15 @@ void SIL_step(void) rtb_Merge_b = rtb_Merge_k; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[1]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[1] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[1]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[1] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[1] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[1] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[1]; + rtb_Sum1_cv = SIL_B.params_c[1]; } if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { @@ -16438,15 +16509,15 @@ void SIL_step(void) rtb_Merge_b = rtb_Merge_k; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[1]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[1] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[1]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[1] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[1] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[1] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[1]; + rtb_Sum1_cv = SIL_B.params_c[1]; } if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { @@ -16473,7 +16544,7 @@ void SIL_step(void) * DataTypeConversion: '/Data Type Conversion' */ rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.enable_rec = (SIL_B.params_n[1] != 0.0F); + rtb_Merge_b.enable_rec = (SIL_B.params_c[1] != 0.0F); /* End of Outputs for SubSystem: '/rec' */ break; @@ -16486,15 +16557,15 @@ void SIL_step(void) rtb_Merge_b = rtb_Merge_k; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[1]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[1] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[1]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[1] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[1] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[1] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[1]; + rtb_Sum1_cv = SIL_B.params_c[1]; } if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { @@ -16518,15 +16589,15 @@ void SIL_step(void) * ActionPort: '/Action Port' */ /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[1]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[1] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[1]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[1] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[1] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[1] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[1]; + rtb_Sum1_cv = SIL_B.params_c[1]; } if (rtb_Sum1_cv < 256.0F) { @@ -16546,15 +16617,15 @@ void SIL_step(void) rtb_Merge_b.ECU_CMD = rtb_recovery; /* DataTypeConversion: '/Data Type Conversion1' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[2]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[2] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[2]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[2] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[2] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[2] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[2]; + rtb_Sum1_cv = SIL_B.params_c[2]; } if (rtb_Sum1_cv < 65536.0F) { @@ -16589,15 +16660,15 @@ void SIL_step(void) rtb_Merge_b = rtb_Merge_k; /* DataTypeConversion: '/Data Type Conversion1' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[1]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[1] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[1]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[1] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[1] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[1] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[1]; + rtb_Sum1_cv = SIL_B.params_c[1]; } if (rtb_Sum1_cv < 256.0F) { @@ -16616,15 +16687,15 @@ void SIL_step(void) /* End of DataTypeConversion: '/Data Type Conversion1' */ /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[2]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[2] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[2]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[2] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[2] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[2] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[2]; + rtb_Sum1_cv = SIL_B.params_c[2]; } if (rtb_Sum1_cv < 256.0F) { @@ -16643,15 +16714,15 @@ void SIL_step(void) /* End of DataTypeConversion: '/Data Type Conversion' */ /* DataTypeConversion: '/Data Type Conversion2' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[3]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[3] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[3]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[3] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[3] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[3] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[3]; + rtb_Sum1_cv = SIL_B.params_c[3]; } if (rtb_Sum1_cv < 65536.0F) { @@ -16677,7 +16748,7 @@ void SIL_step(void) */ /* Gain: '/Gain1' */ for (idx = 0; idx < 5; idx++) { - rtb_Gain1_o0[idx] = SIL_B.params_n[idx + 1] * 0.0174532924F; + rtb_Gain1_o0[idx] = SIL_B.params_c[idx + 1] * 0.0174532924F; } /* End of Gain: '/Gain1' */ @@ -16704,7 +16775,7 @@ void SIL_step(void) * RelationalOperator: '/Compare' * RelationalOperator: '/Compare' */ - if ((SIL_B.params_n[1] == 107.0F) || (SIL_B.BusAssignment_j.IAS < + if ((SIL_B.params_c[1] == 107.0F) || (SIL_B.BusAssignment_j.IAS < SIL_P.recovery_ias)) { /* Outputs for IfAction SubSystem: '/recovery' incorporates: * ActionPort: '/Action Port' @@ -16740,7 +16811,7 @@ void SIL_step(void) * RelationalOperator: '/Compare' * RelationalOperator: '/Compare' */ - if ((SIL_B.params_n[1] == 108.0F) && (rtb_Merge_k.recovery == 7)) { + if ((SIL_B.params_c[1] == 108.0F) && (rtb_Merge_k.recovery == 7)) { /* Outputs for IfAction SubSystem: '/recovery' incorporates: * ActionPort: '/Action Port' */ @@ -16797,7 +16868,7 @@ void SIL_step(void) rtb_Merge_b = rtb_Merge_k; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_Sum1_cv = floorf(SIL_B.params_n[0]); + rtb_Sum1_cv = floorf(SIL_B.params_c[0]); if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { rtb_Sum1_cv = 0.0F; } else { @@ -16840,15 +16911,15 @@ void SIL_step(void) rtb_Merge_b = rtb_Merge_k; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[0]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[0] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[0]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[0] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[0] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[0] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[0]; + rtb_Sum1_cv = SIL_B.params_c[0]; } if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { @@ -16865,15 +16936,15 @@ void SIL_step(void) rtb_Sum1_cv); /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[1]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[1] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[1]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[1] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[1] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[1] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[1]; + rtb_Sum1_cv = SIL_B.params_c[1]; } if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { @@ -16890,15 +16961,15 @@ void SIL_step(void) rtb_Sum1_cv); /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[2]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[2] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[2]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[2] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[2] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[2] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[2]; + rtb_Sum1_cv = SIL_B.params_c[2]; } if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { @@ -16915,15 +16986,15 @@ void SIL_step(void) rtb_Sum1_cv); /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[3]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[3] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[3]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[3] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[3] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[3] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[3]; + rtb_Sum1_cv = SIL_B.params_c[3]; } if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { @@ -16960,7 +17031,7 @@ void SIL_step(void) * ActionPort: '/Action Port' */ /* Sum: '/Sum' */ - rtb_table1D_thrAB_map_b = rtb_Merge_k.trim_aoa + + rtb_table1D_thrAB_map_g = rtb_Merge_k.trim_aoa + SIL_B.BusAssignment_j.alpha; /* Switch: '/Switch' incorporates: @@ -16969,8 +17040,8 @@ void SIL_step(void) * RelationalOperator: '/Compare' * Sum: '/Sum' */ - if (rtb_table1D_thrAB_map_b > 3.14159274F) { - rtb_table1D_thrAB_map_b -= 6.28318548F; + if (rtb_table1D_thrAB_map_g > 3.14159274F) { + rtb_table1D_thrAB_map_g -= 6.28318548F; } /* End of Switch: '/Switch' */ @@ -16997,15 +17068,15 @@ void SIL_step(void) * Constant: '/Constant' * RelationalOperator: '/Compare' */ - if (rtb_table1D_thrAB_map_b < -3.14159274F) { + if (rtb_table1D_thrAB_map_g < -3.14159274F) { /* BusAssignment: '/Bus Assignment' incorporates: * Constant: '/Constant BP' * Sum: '/Sum1' */ - rtb_Merge_b.trim_aoa = 6.28318548F + rtb_table1D_thrAB_map_b; + rtb_Merge_b.trim_aoa = 6.28318548F + rtb_table1D_thrAB_map_g; } else { /* BusAssignment: '/Bus Assignment' */ - rtb_Merge_b.trim_aoa = rtb_table1D_thrAB_map_b; + rtb_Merge_b.trim_aoa = rtb_table1D_thrAB_map_g; } /* End of Switch: '/Switch1' */ @@ -17051,15 +17122,15 @@ void SIL_step(void) * ActionPort: '/Action Port' */ /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[0]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[0] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[0]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[0] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[0] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[0] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[0]; + rtb_Sum1_cv = SIL_B.params_c[0]; } if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { @@ -17116,15 +17187,15 @@ void SIL_step(void) rtb_Merge_b = rtb_Merge_k; /* DataTypeConversion: '/Data Type Conversion' */ - rtb_table1D_thrAB_map_b = fabsf(SIL_B.params_n[0]); - if (rtb_table1D_thrAB_map_b < 8.388608E+6F) { - if (rtb_table1D_thrAB_map_b >= 0.5F) { - rtb_Sum1_cv = floorf(SIL_B.params_n[0] + 0.5F); + rtb_table1D_thrAB_map_g = fabsf(SIL_B.params_c[0]); + if (rtb_table1D_thrAB_map_g < 8.388608E+6F) { + if (rtb_table1D_thrAB_map_g >= 0.5F) { + rtb_Sum1_cv = floorf(SIL_B.params_c[0] + 0.5F); } else { - rtb_Sum1_cv = SIL_B.params_n[0] * 0.0F; + rtb_Sum1_cv = SIL_B.params_c[0] * 0.0F; } } else { - rtb_Sum1_cv = SIL_B.params_n[0]; + rtb_Sum1_cv = SIL_B.params_c[0]; } if (rtIsNaNF(rtb_Sum1_cv) || rtIsInfF(rtb_Sum1_cv)) { @@ -17143,10 +17214,10 @@ void SIL_step(void) rtb_Merge_b.act_sw_chan = (uint8_T)(rtb_Sum1_cv < 0.0F ? (int32_T) (uint8_T)-(int8_T)(uint8_T)-rtb_Sum1_cv : (int32_T)(uint8_T) rtb_Sum1_cv); - rtb_Merge_b.act_sw_amp = 0.0174532924F * SIL_B.params_n[1]; - rtb_Merge_b.act_sw_freq0 = 6.28318548F * SIL_B.params_n[2]; - rtb_Merge_b.act_sw_freq1 = 6.28318548F * SIL_B.params_n[3]; - rtb_Merge_b.act_sw_k = 6.28318548F * SIL_B.params_n[4]; + rtb_Merge_b.act_sw_amp = 0.0174532924F * SIL_B.params_c[1]; + rtb_Merge_b.act_sw_freq0 = 6.28318548F * SIL_B.params_c[2]; + rtb_Merge_b.act_sw_freq1 = 6.28318548F * SIL_B.params_c[3]; + rtb_Merge_b.act_sw_k = 6.28318548F * SIL_B.params_c[4]; /* SignalConversion: '/OutportBuffer_InsertedFor_ack_at_inport_0' incorporates: * Constant: '/Constant' @@ -17167,7 +17238,7 @@ void SIL_step(void) /* BusAssignment: '/Bus Assignment' */ rtb_Merge_b = rtb_Merge_k; - rtb_Merge_b.fuel_est = SIL_B.params_n[0]; + rtb_Merge_b.fuel_est = SIL_B.params_c[0]; /* End of Outputs for SubSystem: '/set_fuel_est' */ break; @@ -17189,9 +17260,9 @@ void SIL_step(void) /* End of SwitchCase: '/Switch Case' */ /* Chart: '/proc_cmd' */ - if (SIL_B.ack_g) { - SIL_DW.ack_msgData_j.id = SIL_B.id; - SIL_DW.ack_msgData_j.rslt = rtb_Merge1_h; + if (SIL_B.ack_b) { + SIL_DW.ack_msgData_o.id = SIL_B.id; + SIL_DW.ack_msgData_o.rslt = rtb_Merge1_h; SIL_sf_msg_send_ack(); } @@ -17242,19 +17313,19 @@ void SIL_step(void) SIL_DW.is_active_c24_kb3_autopilot = 1U; SIL_DW.is_c24_kb3_autopilot = SIL_IN_standby; rtb_level1_lgx = standby; - rtb_standby_cmd = true; + rtb_not = true; rtb_xbit_cmd = false; } else { switch (SIL_DW.is_c24_kb3_autopilot) { case SIL_IN_operational: rtb_level1_lgx = operational; - rtb_standby_cmd = false; + rtb_not = false; rtb_xbit_cmd = false; if (!rtb_Merge1_b.armed) { if (rtb_Merge1_b.xbit_cmd && rtb_Merge1_b.standby_cmd) { SIL_DW.is_c24_kb3_autopilot = SIL_IN_xbit; rtb_level1_lgx = xbit; - rtb_standby_cmd = true; + rtb_not = true; rtb_xbit_cmd = true; } else if ((!rtb_Merge1_b.xbit_cmd) && (!rtb_Merge1_b.standby_cmd)) { @@ -17264,7 +17335,7 @@ void SIL_step(void) if ((!rtb_Merge1_b.xbit_cmd) && rtb_Merge1_b.standby_cmd) { SIL_DW.is_c24_kb3_autopilot = SIL_IN_standby; rtb_level1_lgx = standby; - rtb_standby_cmd = true; + rtb_not = true; } } } @@ -17272,7 +17343,7 @@ void SIL_step(void) case SIL_IN_standby: rtb_level1_lgx = standby; - rtb_standby_cmd = true; + rtb_not = true; rtb_xbit_cmd = false; if (!rtb_Merge1_b.armed) { if (rtb_Merge1_b.xbit_cmd && rtb_Merge1_b.standby_cmd) { @@ -17283,7 +17354,7 @@ void SIL_step(void) { SIL_DW.is_c24_kb3_autopilot = SIL_IN_operational; rtb_level1_lgx = operational; - rtb_standby_cmd = false; + rtb_not = false; } else { if ((!rtb_Merge1_b.xbit_cmd) && rtb_Merge1_b.standby_cmd) { SIL_DW.is_c24_kb3_autopilot = SIL_IN_standby; @@ -17295,7 +17366,7 @@ void SIL_step(void) default: rtb_level1_lgx = xbit; - rtb_standby_cmd = true; + rtb_not = true; rtb_xbit_cmd = true; if (!rtb_Merge1_b.armed) { if (rtb_Merge1_b.xbit_cmd && rtb_Merge1_b.standby_cmd) { @@ -17306,7 +17377,7 @@ void SIL_step(void) if (rtb_Compare_fv && (!rtb_Merge1_b.standby_cmd)) { SIL_DW.is_c24_kb3_autopilot = SIL_IN_operational; rtb_level1_lgx = operational; - rtb_standby_cmd = false; + rtb_not = false; rtb_xbit_cmd = false; } else { if (rtb_Compare_fv && rtb_Merge1_b.standby_cmd) { @@ -17327,7 +17398,7 @@ void SIL_step(void) SIL_B.BusAssignment = rtb_Merge1_b; SIL_B.BusAssignment.level1_lgx = rtb_level1_lgx; SIL_B.BusAssignment.xbit_cmd = rtb_xbit_cmd; - SIL_B.BusAssignment.standby_cmd = rtb_standby_cmd; + SIL_B.BusAssignment.standby_cmd = rtb_not; /* SwitchCase: '/Switch Case' */ s293_iter = SIL_DW.SwitchCase_ActiveSubsystem_g; @@ -17480,7 +17551,7 @@ void SIL_step(void) } else { SIL_DW.t += 0.005F; SIL_DW.freq += SIL_B.BusAssignment.act_sw_k * 0.005F; - SIL_update_k(SIL_B.BusAssignment.act_sw_amp * sinf(SIL_DW.freq * + SIL_update_a(SIL_B.BusAssignment.act_sw_amp * sinf(SIL_DW.freq * SIL_DW.t)); } @@ -17747,12 +17818,12 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/get_WP' */ while (SIL_B.is_mission) { - rtb_out_nq = SIL_B.cur_np + 1U; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + rtb_out_l = SIL_B.cur_np + 1U; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } - SIL_B.cur_np = (uint16_T)rtb_out_nq; + SIL_B.cur_np = (uint16_T)rtb_out_l; /* Outputs for Function Call SubSystem: '/get_WP' */ SIL_get_WP(SIL_B.cur_np, &SIL_B.is_mission, &SIL_B.command_j, @@ -17771,11 +17842,11 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/valid_test' */ if (SIL_B.Merge_p) { SIL_B.last_WP = SIL_B.cur_np; - SIL_DW.is_c48_mission_proc = SIL_IN_Idle_l; + SIL_DW.is_c48_mission_proc = SIL_IN_Idle_n; } else { SIL_DW.is_c48_mission_proc = SIL_IN_wait; } - } else if (SIL_DW.is_c48_mission_proc == SIL_IN_Idle_l) { + } else if (SIL_DW.is_c48_mission_proc == SIL_IN_Idle_n) { SIL_B.mission_mode = SIL_B.command_j; SIL_DW.cmd_msgData.id = SIL_B.command_j; for (idx = 0; idx < 7; idx++) { @@ -17783,12 +17854,12 @@ void SIL_step(void) } SIL_sf_msg_send_cmd(); - rtb_out_nq = SIL_B.cur_np + 1U; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + rtb_out_l = SIL_B.cur_np + 1U; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } - SIL_B.cur_np = (uint16_T)rtb_out_nq; + SIL_B.cur_np = (uint16_T)rtb_out_l; /* Outputs for Function Call SubSystem: '/get_WP' */ SIL_get_WP(SIL_B.cur_np, &SIL_B.is_mission, &SIL_B.command_j, @@ -17802,12 +17873,12 @@ void SIL_step(void) } SIL_sf_msg_send_cmd(); - rtb_out_nq = SIL_B.cur_np + 1U; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + rtb_out_l = SIL_B.cur_np + 1U; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } - SIL_B.cur_np = (uint16_T)rtb_out_nq; + SIL_B.cur_np = (uint16_T)rtb_out_l; /* Outputs for Function Call SubSystem: '/get_WP' */ SIL_get_WP(SIL_B.cur_np, &SIL_B.is_mission, &SIL_B.command_j, @@ -17827,12 +17898,12 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/get_WP' */ while (SIL_B.is_mission) { - rtb_out_nq = SIL_B.cur_np + 1U; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + rtb_out_l = SIL_B.cur_np + 1U; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } - SIL_B.cur_np = (uint16_T)rtb_out_nq; + SIL_B.cur_np = (uint16_T)rtb_out_l; /* Outputs for Function Call SubSystem: '/get_WP' */ SIL_get_WP(SIL_B.cur_np, &SIL_B.is_mission, &SIL_B.command_j, @@ -17851,7 +17922,7 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/valid_test' */ if (SIL_B.Merge_p) { SIL_B.last_WP = SIL_B.cur_np; - SIL_DW.is_c48_mission_proc = SIL_IN_Idle_l; + SIL_DW.is_c48_mission_proc = SIL_IN_Idle_n; } else { SIL_DW.is_c48_mission_proc = SIL_IN_wait; } @@ -17900,7 +17971,7 @@ void SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/takeoff_task' */ - SIL_DW.temporalCounter_i1_e = 0U; + SIL_DW.temporalCounter_i1_b = 0U; SIL_DW.is_active_c28_kb3_autopilot = 0U; SIL_DW.is_c28_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -17913,89 +17984,88 @@ void SIL_step(void) /* Chart: '/takeoff_task' incorporates: * Constant: '/Constant1' * Constant: '/Constant' - * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_e < 1023U) { - SIL_DW.temporalCounter_i1_e++; + if (SIL_DW.temporalCounter_i1_b < 1023U) { + SIL_DW.temporalCounter_i1_b++; } if (SIL_DW.is_active_c28_kb3_autopilot == 0U) { SIL_DW.is_active_c28_kb3_autopilot = 1U; SIL_DW.is_c28_kb3_autopilot = SIL_IN_WaitForLaunch; - SIL_B.mode_e = ENUM_mode_AUTO; - SIL_B.WP_out_f = SIL_B.BusAssignment_g.WP_cur; - SIL_B.landed_state_out_n = ENUM_LANDED_STATE_ON_GROUND; - SIL_B.AFCS_VERT_o = ENUM_AFCS_VERT_OFF; - SIL_B.AFCS_LNAV_p = ENUM_AFCS_LAT_OFF; + SIL_B.mode_f = ENUM_mode_AUTO; + SIL_B.WP_out_a = SIL_B.BusAssignment_g.WP_cur; + SIL_B.landed_state_out_h = ENUM_LANDED_STATE_ON_GROUND; + SIL_B.AFCS_VERT_d = ENUM_AFCS_VERT_OFF; + SIL_B.AFCS_LNAV_g = ENUM_AFCS_LAT_OFF; SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_COMMAND; - SIL_B.CSAS_roll_b = ENUM_CSAS_ROLL_OFF; - SIL_B.CSAS_yaw_l = ENUM_CSAS_YAW_OFF; - SIL_B.AT_j = ENUM_AT_COMMAND; + SIL_B.CSAS_roll_j = ENUM_CSAS_ROLL_OFF; + SIL_B.CSAS_yaw_m = ENUM_CSAS_YAW_OFF; + SIL_B.AT_l = ENUM_AT_COMMAND; SIL_B.de_c = SIL_P.de_takeoff; SIL_B.thr_c = SIL_P.max_thr; } else { switch (SIL_DW.is_c28_kb3_autopilot) { case SIL_IN_Active: - SIL_B.CSAS_roll_b = ENUM_CSAS_ROLL_ROLL_CTRL; + SIL_B.CSAS_roll_j = ENUM_CSAS_ROLL_ROLL_CTRL; SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; - SIL_B.CSAS_yaw_l = ENUM_CSAS_YAW_DAMPING; - SIL_B.phi_c_i = 0.0F; - if ((SIL_DW.temporalCounter_i1_e >= 1000U) && + SIL_B.CSAS_yaw_m = ENUM_CSAS_YAW_DAMPING; + SIL_B.phi_c_m = 0.0F; + if ((SIL_DW.temporalCounter_i1_b >= 1000U) && (SIL_B.BusAssignment_j.satnum > 6)) { SIL_DW.is_c28_kb3_autopilot = SIL_IN_LatGuide; - SIL_B.AFCS_LNAV_p = ENUM_AFCS_LAT_LNAV2PHI; + SIL_B.AFCS_LNAV_g = ENUM_AFCS_LAT_LNAV2PHI; } break; case SIL_IN_Done: - SIL_B.mode_e = ENUM_mode_AUTO; - SIL_B.landed_state_out_n = ENUM_LANDED_STATE_IN_AIR; + SIL_B.mode_f = ENUM_mode_AUTO; + SIL_B.landed_state_out_h = ENUM_LANDED_STATE_IN_AIR; break; case SIL_IN_LatGuide: - SIL_B.AFCS_LNAV_p = ENUM_AFCS_LAT_LNAV2PHI; - if (SIL_B.BusAssignment_j.TAS >= rtb_uDLookupTable_c) { + SIL_B.AFCS_LNAV_g = ENUM_AFCS_LAT_LNAV2PHI; + if (SIL_B.BusAssignment_j.TAS >= rtb_uDLookupTable) { SIL_DW.is_c28_kb3_autopilot = SIL_IN_Done; - SIL_B.mode_e = ENUM_mode_AUTO; - rtb_out_nq = SIL_B.WP_out_f + 1U; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + SIL_B.mode_f = ENUM_mode_AUTO; + rtb_out_l = SIL_B.WP_out_a + 1U; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } - SIL_B.WP_out_f = (uint16_T)rtb_out_nq; - SIL_B.landed_state_out_n = ENUM_LANDED_STATE_IN_AIR; + SIL_B.WP_out_a = (uint16_T)rtb_out_l; + SIL_B.landed_state_out_h = ENUM_LANDED_STATE_IN_AIR; } break; case SIL_IN_Launched: - SIL_B.mode_e = ENUM_mode_AUTO_TAKEOFF; - SIL_B.landed_state_out_n = ENUM_LANDED_STATE_TAKEOFF; - if (SIL_DW.temporalCounter_i1_e >= 200U) { + SIL_B.mode_f = ENUM_mode_AUTO_TAKEOFF; + SIL_B.landed_state_out_h = ENUM_LANDED_STATE_TAKEOFF; + if (SIL_DW.temporalCounter_i1_b >= 200U) { SIL_DW.is_c28_kb3_autopilot = SIL_IN_Active; - SIL_DW.temporalCounter_i1_e = 0U; - SIL_B.CSAS_roll_b = ENUM_CSAS_ROLL_ROLL_CTRL; + SIL_DW.temporalCounter_i1_b = 0U; + SIL_B.CSAS_roll_j = ENUM_CSAS_ROLL_ROLL_CTRL; SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; - SIL_B.CSAS_yaw_l = ENUM_CSAS_YAW_DAMPING; - SIL_B.phi_c_i = 0.0F; - SIL_B.tht_c_e = SIL_B.BusAssignment_g.takeoff_tht; + SIL_B.CSAS_yaw_m = ENUM_CSAS_YAW_DAMPING; + SIL_B.phi_c_m = 0.0F; + SIL_B.tht_c_a = SIL_B.BusAssignment_g.takeoff_tht; } break; default: - SIL_B.mode_e = ENUM_mode_AUTO; - SIL_B.landed_state_out_n = ENUM_LANDED_STATE_ON_GROUND; - SIL_B.AFCS_VERT_o = ENUM_AFCS_VERT_OFF; - SIL_B.AFCS_LNAV_p = ENUM_AFCS_LAT_OFF; + SIL_B.mode_f = ENUM_mode_AUTO; + SIL_B.landed_state_out_h = ENUM_LANDED_STATE_ON_GROUND; + SIL_B.AFCS_VERT_d = ENUM_AFCS_VERT_OFF; + SIL_B.AFCS_LNAV_g = ENUM_AFCS_LAT_OFF; SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_COMMAND; - SIL_B.CSAS_roll_b = ENUM_CSAS_ROLL_OFF; - SIL_B.CSAS_yaw_l = ENUM_CSAS_YAW_OFF; - SIL_B.AT_j = ENUM_AT_COMMAND; - if ((SIL_B.BusAssignment_j.ax > 30.0F) || - (SIL_DW.UnitDelay_DSTATE.v_g > 5.0F)) { + SIL_B.CSAS_roll_j = ENUM_CSAS_ROLL_OFF; + SIL_B.CSAS_yaw_m = ENUM_CSAS_YAW_OFF; + SIL_B.AT_l = ENUM_AT_COMMAND; + if ((SIL_B.BusAssignment_j.ax > 30.0F) || (SIL_B.UnitDelay.v_g + > 5.0F)) { SIL_DW.is_c28_kb3_autopilot = SIL_IN_Launched; - SIL_DW.temporalCounter_i1_e = 0U; - SIL_B.mode_e = ENUM_mode_AUTO_TAKEOFF; - SIL_B.landed_state_out_n = ENUM_LANDED_STATE_TAKEOFF; + SIL_DW.temporalCounter_i1_b = 0U; + SIL_B.mode_f = ENUM_mode_AUTO_TAKEOFF; + SIL_B.landed_state_out_h = ENUM_LANDED_STATE_TAKEOFF; } break; } @@ -18005,18 +18075,18 @@ void SIL_step(void) /* BusAssignment: '/Bus Assignment' */ SIL_B.merged = SIL_B.BusAssignment_g; - SIL_B.merged.mode = SIL_B.mode_e; - SIL_B.merged.AFCS_LAT = SIL_B.AFCS_LNAV_p; - SIL_B.merged.AFCS_VERT = SIL_B.AFCS_VERT_o; - SIL_B.merged.CSAS_roll = SIL_B.CSAS_roll_b; + SIL_B.merged.mode = SIL_B.mode_f; + SIL_B.merged.AFCS_LAT = SIL_B.AFCS_LNAV_g; + SIL_B.merged.AFCS_VERT = SIL_B.AFCS_VERT_d; + SIL_B.merged.CSAS_roll = SIL_B.CSAS_roll_j; SIL_B.merged.CSAS_pitch = SIL_B.CSAS_pitch; - SIL_B.merged.CSAS_yaw = SIL_B.CSAS_yaw_l; - SIL_B.merged.AT = SIL_B.AT_j; - SIL_B.merged.landed_state = SIL_B.landed_state_out_n; + SIL_B.merged.CSAS_yaw = SIL_B.CSAS_yaw_m; + SIL_B.merged.AT = SIL_B.AT_l; + SIL_B.merged.landed_state = SIL_B.landed_state_out_h; SIL_B.merged.throttle_c = SIL_B.thr_c; - SIL_B.merged.phi_c = SIL_B.phi_c_i; - SIL_B.merged.tht_c = SIL_B.tht_c_e; - SIL_B.merged.WP_cur = SIL_B.WP_out_f; + SIL_B.merged.phi_c = SIL_B.phi_c_m; + SIL_B.merged.tht_c = SIL_B.tht_c_a; + SIL_B.merged.WP_cur = SIL_B.WP_out_a; SIL_B.merged.de_c = SIL_B.de_c; /* End of Outputs for SubSystem: '/takeoff' */ @@ -18030,7 +18100,7 @@ void SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/landing_task' */ - SIL_DW.temporalCounter_i1_g = 0U; + SIL_DW.temporalCounter_i1_d = 0U; SIL_DW.is_active_c18_kb3_autopilot = 0U; SIL_DW.is_c18_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -18042,21 +18112,20 @@ void SIL_step(void) */ /* Chart: '/landing_task' incorporates: * Constant: '/Constant' - * UnitDelay: '/Unit Delay' */ - if (SIL_DW.temporalCounter_i1_g < 2047U) { - SIL_DW.temporalCounter_i1_g++; + if (SIL_DW.temporalCounter_i1_d < 2047U) { + SIL_DW.temporalCounter_i1_d++; } if (SIL_DW.is_active_c18_kb3_autopilot == 0U) { SIL_DW.is_active_c18_kb3_autopilot = 1U; SIL_DW.is_c18_kb3_autopilot = SIL_IN_level_flight; - SIL_B.mode_c = ENUM_mode_AUTO_MISSION; - SIL_B.WP_out_l = SIL_B.BusAssignment_g.WP_cur; + SIL_B.mode_p = ENUM_mode_AUTO_MISSION; + SIL_B.WP_out_h = SIL_B.BusAssignment_g.WP_cur; SIL_B.armed = true; SIL_B.landed_state_out = ENUM_LANDED_STATE_IN_AIR; SIL_B.AFCS_VERT = ENUM_AFCS_VERT_VNAV2THT; - SIL_B.AFCS_LNAV_j = ENUM_AFCS_LAT_LNAV2PHI; + SIL_B.AFCS_LNAV_i = ENUM_AFCS_LAT_LNAV2PHI; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; SIL_B.CSAS_yaw = ENUM_CSAS_YAW_DAMPING; @@ -18077,7 +18146,7 @@ void SIL_step(void) case SIL_IN_Recovery: SIL_B.AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; - if (SIL_DW.temporalCounter_i1_g >= 2000U) { + if (SIL_DW.temporalCounter_i1_d >= 2000U) { SIL_DW.is_c18_kb3_autopilot = SIL_IN_Landing; rtb_CSAS_pitch = ENUM_CSAS_PITCH_OFF; SIL_B.CSAS_roll = ENUM_CSAS_ROLL_OFF; @@ -18091,11 +18160,11 @@ void SIL_step(void) break; case SIL_IN_ShutdownEngine: - SIL_B.mode_c = ENUM_mode_AUTO_LAND; + SIL_B.mode_p = ENUM_mode_AUTO_LAND; SIL_B.armed = false; SIL_B.landed_state_out = ENUM_LANDED_STATE_LANDING; SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; - SIL_B.AFCS_LNAV_j = ENUM_AFCS_LAT_OFF; + SIL_B.AFCS_LNAV_i = ENUM_AFCS_LAT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; SIL_B.CSAS_yaw = ENUM_CSAS_YAW_DAMPING; @@ -18104,7 +18173,7 @@ void SIL_step(void) SIL_B.hdot_c = 0.0F; if (SIL_B.BusAssignment_j.IAS <= SIL_P.recovery_ias) { SIL_DW.is_c18_kb3_autopilot = SIL_IN_Recovery; - SIL_DW.temporalCounter_i1_g = 0U; + SIL_DW.temporalCounter_i1_d = 0U; SIL_B.AFCS_VERT = ENUM_AFCS_VERT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; SIL_B.tht_c = SIL_B.BusAssignment_j.tht; @@ -18117,25 +18186,25 @@ void SIL_step(void) break; default: - SIL_B.mode_c = ENUM_mode_AUTO_MISSION; + SIL_B.mode_p = ENUM_mode_AUTO_MISSION; SIL_B.armed = true; SIL_B.landed_state_out = ENUM_LANDED_STATE_IN_AIR; SIL_B.AFCS_VERT = ENUM_AFCS_VERT_VNAV2THT; - SIL_B.AFCS_LNAV_j = ENUM_AFCS_LAT_LNAV2PHI; + SIL_B.AFCS_LNAV_i = ENUM_AFCS_LAT_LNAV2PHI; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; SIL_B.CSAS_yaw = ENUM_CSAS_YAW_DAMPING; SIL_B.AT = ENUM_AT_AS; SIL_B.phi_c = 0.0F; SIL_B.hdot_c = 0.0F; - if (SIL_DW.UnitDelay_DSTATE.dist_offset < 0.0F) { + if (SIL_B.UnitDelay.dist_offset < 0.0F) { SIL_DW.is_c18_kb3_autopilot = SIL_IN_ShutdownEngine; - SIL_B.mode_c = ENUM_mode_AUTO_LAND; + SIL_B.mode_p = ENUM_mode_AUTO_LAND; SIL_B.armed = false; SIL_B.ECU_CMD = 67U; SIL_B.landed_state_out = ENUM_LANDED_STATE_LANDING; SIL_B.AFCS_VERT = ENUM_AFCS_VERT_HDOT2THT; - SIL_B.AFCS_LNAV_j = ENUM_AFCS_LAT_OFF; + SIL_B.AFCS_LNAV_i = ENUM_AFCS_LAT_OFF; rtb_CSAS_pitch = ENUM_CSAS_PITCH_THT_CTRL; SIL_B.CSAS_roll = ENUM_CSAS_ROLL_ROLL_CTRL; SIL_B.CSAS_yaw = ENUM_CSAS_YAW_DAMPING; @@ -18155,8 +18224,8 @@ void SIL_step(void) /* BusAssignment: '/Bus Assignment' */ SIL_B.merged = SIL_B.BusAssignment_g; - SIL_B.merged.mode = SIL_B.mode_c; - SIL_B.merged.AFCS_LAT = SIL_B.AFCS_LNAV_j; + SIL_B.merged.mode = SIL_B.mode_p; + SIL_B.merged.AFCS_LAT = SIL_B.AFCS_LNAV_i; SIL_B.merged.AFCS_VERT = SIL_B.AFCS_VERT; SIL_B.merged.CSAS_roll = SIL_B.CSAS_roll; SIL_B.merged.CSAS_pitch = rtb_CSAS_pitch; @@ -18166,7 +18235,7 @@ void SIL_step(void) SIL_B.merged.hdot_c = SIL_B.hdot_c; SIL_B.merged.phi_c = SIL_B.phi_c; SIL_B.merged.tht_c = SIL_B.tht_c; - SIL_B.merged.WP_cur = SIL_B.WP_out_l; + SIL_B.merged.WP_cur = SIL_B.WP_out_h; SIL_B.merged.recovery = rtb_recovery; SIL_B.merged.armed = SIL_B.armed; SIL_B.merged.ECU_CMD = SIL_B.ECU_CMD; @@ -18182,7 +18251,7 @@ void SIL_step(void) /* SystemReset for SwitchCase: '/Switch Case' incorporates: * Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_k = 0U; + SIL_DW.temporalCounter_i1_bk = 0U; SIL_DW.is_active_c29_kb3_autopilot = 0U; SIL_DW.is_c29_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -18192,17 +18261,15 @@ void SIL_step(void) /* Outputs for IfAction SubSystem: '/waypoint' incorporates: * ActionPort: '/Action Port' */ - /* Chart: '/Chart' incorporates: - * UnitDelay: '/Unit Delay' - */ - if (SIL_DW.temporalCounter_i1_k < 255U) { - SIL_DW.temporalCounter_i1_k++; + /* Chart: '/Chart' */ + if (SIL_DW.temporalCounter_i1_bk < 255U) { + SIL_DW.temporalCounter_i1_bk++; } if (SIL_DW.is_active_c29_kb3_autopilot == 0U) { SIL_DW.is_active_c29_kb3_autopilot = 1U; SIL_DW.is_c29_kb3_autopilot = SIL_IN_WP; - SIL_DW.temporalCounter_i1_k = 0U; + SIL_DW.temporalCounter_i1_bk = 0U; SIL_B.mode = ENUM_mode_AUTO_MISSION; SIL_B.WP_out = SIL_B.BusAssignment_g.WP_cur; SIL_B.AFCS_LNAV = ENUM_AFCS_LAT_LNAV2PHI; @@ -18211,7 +18278,7 @@ void SIL_step(void) &SIL_B.AT_out); } else if (SIL_DW.is_c29_kb3_autopilot == SIL_IN_NextWP) { SIL_DW.is_c29_kb3_autopilot = SIL_IN_WP; - SIL_DW.temporalCounter_i1_k = 0U; + SIL_DW.temporalCounter_i1_bk = 0U; SIL_B.mode = ENUM_mode_AUTO_MISSION; SIL_B.WP_out = SIL_B.BusAssignment_g.WP_cur; SIL_B.AFCS_LNAV = ENUM_AFCS_LAT_LNAV2PHI; @@ -18221,17 +18288,17 @@ void SIL_step(void) } else { SIL_B.mode = ENUM_mode_AUTO_MISSION; SIL_B.AFCS_LNAV = ENUM_AFCS_LAT_LNAV2PHI; - if ((SIL_DW.temporalCounter_i1_k >= 200U) && + if ((SIL_DW.temporalCounter_i1_bk >= 200U) && SIL_B.BusAssignment_g.autocont && - (SIL_DW.UnitDelay_DSTATE.dist_offset < + (SIL_B.UnitDelay.dist_offset < SIL_B.BusAssignment_g.dist_trans)) { SIL_DW.is_c29_kb3_autopilot = SIL_IN_NextWP; - rtb_out_nq = SIL_B.WP_out + 1U; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + rtb_out_l = SIL_B.WP_out + 1U; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } - SIL_B.WP_out = (uint16_T)rtb_out_nq; + SIL_B.WP_out = (uint16_T)rtb_out_l; } else { SIL_update_vert(SIL_B.BusAssignment_g.AFCS_VERT, SIL_B.BusAssignment_g.AT, &SIL_B.AFCS_VERT_out, @@ -18280,8 +18347,8 @@ void SIL_step(void) /* End of SwitchCase: '/Switch Case' */ /* Chart: '/Chart' */ - if (SIL_DW.temporalCounter_i1_h1 < 31U) { - SIL_DW.temporalCounter_i1_h1++; + if (SIL_DW.temporalCounter_i1_de < 63U) { + SIL_DW.temporalCounter_i1_de++; } if (SIL_DW.temporalCounter_i2 < 4095U) { @@ -18290,14 +18357,14 @@ void SIL_step(void) if (SIL_DW.is_active_c59_kb3_autopilot == 0U) { SIL_DW.is_active_c59_kb3_autopilot = 1U; - SIL_DW.is_c59_kb3_autopilot = SIL_IN_Idle_l; + SIL_DW.is_c59_kb3_autopilot = SIL_IN_Idle_n; SIL_B.recovery_out = SIL_B.merged.recovery; SIL_B.ch_out = SIL_B.merged.ccm_ch; SIL_B.peroid_out = SIL_B.merged.ccm_period; SIL_B.sw_out = SIL_B.merged.ccm_sw; } else { switch (SIL_DW.is_c59_kb3_autopilot) { - case SIL_IN_Idle_l: + case SIL_IN_Idle_n: SIL_Idle(); break; @@ -18307,7 +18374,7 @@ void SIL_step(void) SIL_DW.temporalCounter_i2 = 0U; SIL_B.recovery_out = 15U; SIL_DW.is_cut = SIL_IN_one; - SIL_DW.temporalCounter_i1_h1 = 0U; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 4U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -18337,7 +18404,7 @@ void SIL_step(void) } else { switch (SIL_DW.is_balloon) { case SIL_IN_five: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { + if (SIL_DW.temporalCounter_i1_de >= 50U) { SIL_DW.is_balloon = SIL_IN_six; SIL_B.ch_out = 10U; SIL_B.peroid_out = 20000U; @@ -18350,9 +18417,9 @@ void SIL_step(void) break; case SIL_IN_four: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { + if (SIL_DW.temporalCounter_i1_de >= 50U) { SIL_DW.is_balloon = SIL_IN_five; - SIL_DW.temporalCounter_i1_h1 = 0U; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 9U; SIL_B.peroid_out = 20000U; SIL_B.sw_out = 1U; @@ -18363,10 +18430,10 @@ void SIL_step(void) } break; - case SIL_IN_one_a: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { - SIL_DW.is_balloon = SIL_IN_two_p; - SIL_DW.temporalCounter_i1_h1 = 0U; + case SIL_IN_one_j: + if (SIL_DW.temporalCounter_i1_de >= 50U) { + SIL_DW.is_balloon = SIL_IN_two_g; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 10U; SIL_B.peroid_out = 20000U; SIL_B.sw_out = 1U; @@ -18383,10 +18450,10 @@ void SIL_step(void) SIL_B.sw_out = 0U; break; - case SIL_IN_three_d: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { + case SIL_IN_three_k: + if (SIL_DW.temporalCounter_i1_de >= 50U) { SIL_DW.is_balloon = SIL_IN_four; - SIL_DW.temporalCounter_i1_h1 = 0U; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 10U; SIL_B.peroid_out = 20000U; SIL_B.sw_out = 1U; @@ -18398,9 +18465,9 @@ void SIL_step(void) break; default: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { - SIL_DW.is_balloon = SIL_IN_three_d; - SIL_DW.temporalCounter_i1_h1 = 0U; + if (SIL_DW.temporalCounter_i1_de >= 50U) { + SIL_DW.is_balloon = SIL_IN_three_k; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 9U; SIL_B.peroid_out = 20000U; SIL_B.sw_out = 1U; @@ -18420,15 +18487,15 @@ void SIL_step(void) SIL_DW.is_c59_kb3_autopilot = SIL_IN_balloon; SIL_DW.temporalCounter_i2 = 0U; SIL_B.recovery_out = 7U; - SIL_DW.is_balloon = SIL_IN_one_a; - SIL_DW.temporalCounter_i1_h1 = 0U; + SIL_DW.is_balloon = SIL_IN_one_j; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 9U; SIL_B.peroid_out = 20000U; SIL_B.sw_out = 1U; } else { switch (SIL_DW.is_cover) { case SIL_IN_five: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { + if (SIL_DW.temporalCounter_i1_de >= 50U) { SIL_DW.is_cover = SIL_IN_six; SIL_B.ch_out = 6U; SIL_B.peroid_out = 50U; @@ -18441,9 +18508,9 @@ void SIL_step(void) break; case SIL_IN_four: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { + if (SIL_DW.temporalCounter_i1_de >= 50U) { SIL_DW.is_cover = SIL_IN_five; - SIL_DW.temporalCounter_i1_h1 = 0U; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 5U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -18454,10 +18521,10 @@ void SIL_step(void) } break; - case SIL_IN_one_a: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { - SIL_DW.is_cover = SIL_IN_two_p; - SIL_DW.temporalCounter_i1_h1 = 0U; + case SIL_IN_one_j: + if (SIL_DW.temporalCounter_i1_de >= 50U) { + SIL_DW.is_cover = SIL_IN_two_g; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 6U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -18474,10 +18541,10 @@ void SIL_step(void) SIL_B.sw_out = 0U; break; - case SIL_IN_three_d: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { + case SIL_IN_three_k: + if (SIL_DW.temporalCounter_i1_de >= 50U) { SIL_DW.is_cover = SIL_IN_four; - SIL_DW.temporalCounter_i1_h1 = 0U; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 6U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -18489,9 +18556,9 @@ void SIL_step(void) break; default: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { - SIL_DW.is_cover = SIL_IN_three_d; - SIL_DW.temporalCounter_i1_h1 = 0U; + if (SIL_DW.temporalCounter_i1_de >= 50U) { + SIL_DW.is_cover = SIL_IN_three_k; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 5U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -18516,9 +18583,9 @@ void SIL_step(void) } else { switch (SIL_DW.is_cut) { case SIL_IN_one: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { + if (SIL_DW.temporalCounter_i1_de >= 50U) { SIL_DW.is_cut = SIL_IN_two; - SIL_DW.temporalCounter_i1_h1 = 0U; + SIL_DW.temporalCounter_i1_de = 0U; SIL_B.ch_out = 4U; SIL_B.peroid_out = 50U; SIL_B.sw_out = 1U; @@ -18536,7 +18603,7 @@ void SIL_step(void) break; default: - if (SIL_DW.temporalCounter_i1_h1 >= 30U) { + if (SIL_DW.temporalCounter_i1_de >= 50U) { SIL_DW.is_cut = SIL_IN_three; SIL_B.ch_out = 4U; SIL_B.peroid_out = 50U; @@ -18575,8 +18642,8 @@ void SIL_step(void) rtb_recovery = 0U; rtb_sincos_o2_k_idx_0 = 0.0; rtb_q3dot = 0.0; - rtb_table1D_thrAB_map_b = 0.0F; - rtb_uDLookupTable_c = 0.0F; + rtb_table1D_thrAB_map_g = 0.0F; + rtb_uDLookupTable = 0.0F; elevation_baseline = 0.0F; rtb_Sum1_cv = 0.0F; heading = 0.0F; @@ -18594,15 +18661,15 @@ void SIL_step(void) rtb_sincos_o2_k_idx_0 = (real_T)dummyMission[cur_np - 1].latlon[0] * 1.0E-7; rtb_q3dot = (real_T)dummyMission[cur_np - 1].latlon[1] * 1.0E-7; - rtb_table1D_thrAB_map_b = dummyMission[cur_np - 1].params[4]; + rtb_table1D_thrAB_map_g = dummyMission[cur_np - 1].params[4]; idx = MAV_MAV_FRAME_GLOBAL_RELATIVE_ALT; if (dummyMission[cur_np - 1].frame == idx) { - rtb_table1D_thrAB_map_b = dummyMission[cur_np - 1].params[4] + + rtb_table1D_thrAB_map_g = dummyMission[cur_np - 1].params[4] + rtb_Merge_n.base_asl; } else { if (dummyMission[cur_np - 1].frame == (int32_T) MAV_MAV_FRAME_GLOBAL_RELATIVE_ALT_INT) { - rtb_table1D_thrAB_map_b = dummyMission[cur_np - 1].params[4] + + rtb_table1D_thrAB_map_g = dummyMission[cur_np - 1].params[4] + rtb_Merge_n.base_asl; } } @@ -18664,8 +18731,8 @@ void SIL_step(void) dummyMission[prev_np - 1].latlon[0] * 1.0E-7) * rtb_sincos_o2_f_idx_1); dist = sqrtf(rtb_Merge1_aq * rtb_Merge1_aq + heading * heading); - rtb_uDLookupTable_c = rt_atan2f_snf(rtb_Merge1_aq, heading); - elevation_baseline = rt_atan2f_snf(rtb_table1D_thrAB_map_b - + rtb_uDLookupTable = rt_atan2f_snf(rtb_Merge1_aq, heading); + elevation_baseline = rt_atan2f_snf(rtb_table1D_thrAB_map_g - elevation_baseline, dist); } @@ -18696,9 +18763,9 @@ void SIL_step(void) dist2 = sqrtf(rtb_Merge1_aq * rtb_Merge1_aq + heading * heading); heading = rt_atan2f_snf(rtb_Merge1_aq, heading); elevation_baseline2 = rt_atan2f_snf(elevation_baseline2 - - rtb_table1D_thrAB_map_b, dist2); + rtb_table1D_thrAB_map_g, dist2); if (rtb_recovery == 1) { - rtb_Merge1_aq = heading - rtb_uDLookupTable_c; + rtb_Merge1_aq = heading - rtb_uDLookupTable; if (rtb_Merge1_aq > 3.1415926535897931) { rtb_Merge1_aq -= 6.28318548F; } else { @@ -18724,12 +18791,12 @@ void SIL_step(void) } } } else { - heading = rtb_uDLookupTable_c; + heading = rtb_uDLookupTable; elevation_baseline2 = elevation_baseline; } if (prev_np == 0) { - rtb_uDLookupTable_c = heading; + rtb_uDLookupTable = heading; elevation_baseline = elevation_baseline2; } } @@ -18740,8 +18807,8 @@ void SIL_step(void) */ rtb_Merge_n.traj.lat1 = rtb_sincos_o2_k_idx_0; rtb_Merge_n.traj.lon1 = rtb_q3dot; - rtb_Merge_n.traj.h1 = rtb_table1D_thrAB_map_b; - rtb_Merge_n.traj.azimuth = rtb_uDLookupTable_c; + rtb_Merge_n.traj.h1 = rtb_table1D_thrAB_map_g; + rtb_Merge_n.traj.azimuth = rtb_uDLookupTable; rtb_Merge_n.traj.elevation_baseline = elevation_baseline; rtb_Merge_n.traj.radius = rtb_Sum1_cv; rtb_Merge_n.traj.heading = heading; @@ -18769,13 +18836,13 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/case_circle' */ /* Sum: '/Sum' */ - rtb_table1D_thrAB_map_b = rtb_Sum1_cv; + rtb_table1D_thrAB_map_g = rtb_Sum1_cv; /* Saturate: '/Saturation' incorporates: * Sum: '/Sum' */ if (rtb_Sum1_cv <= 0.001F) { - rtb_table1D_thrAB_map_b = 0.001F; + rtb_table1D_thrAB_map_g = 0.001F; } /* End of Saturate: '/Saturation' */ @@ -18788,7 +18855,7 @@ void SIL_step(void) * UnitDelay: '/Unit Delay' */ SIL_DW.UnitDelay_DSTATE.v_gv = sqrtf(-SIL_B.BusAssignment_j.v_d * - -SIL_B.BusAssignment_j.v_d + rtb_table1D_thrAB_map_b); + -SIL_B.BusAssignment_j.v_d + rtb_table1D_thrAB_map_g); /* If: '/If' incorporates: * Constant: '/Constant BP' @@ -18799,7 +18866,7 @@ void SIL_step(void) * ActionPort: '/Action Port' */ /* SignalConversion: '/OutportBufferForASL' */ - rtb_uDLookupTable_c = SIL_B.BusAssignment_j.msl; + rtb_uDLookupTable = SIL_B.BusAssignment_j.msl; /* BusCreator: '/Bus Creator' incorporates: * SignalConversion: '/sens_BusSelector' @@ -18815,7 +18882,7 @@ void SIL_step(void) * ActionPort: '/Action Port' */ /* SignalConversion: '/OutportBufferForASL' */ - rtb_uDLookupTable_c = SIL_B.BusAssignment_j.asl_baro; + rtb_uDLookupTable = SIL_B.BusAssignment_j.asl_baro; /* BusCreator: '/Bus Creator' incorporates: * SignalConversion: '/sens_BusSelector' @@ -18858,7 +18925,7 @@ void SIL_step(void) (rtb_Merge_n.traj.lat1 - SIL_B.BusAssignment_j.lat)); heading = (real32_T)((rtb_Merge_n.traj.lon1 - SIL_B.BusAssignment_j.lon) * (111321.543 * rtb_sincos_o2_k_idx_0)); - SIL_B.vert_offset = rtb_Merge_n.traj.h1 - rtb_uDLookupTable_c; + SIL_B.vert_offset = rtb_Merge_n.traj.h1 - rtb_uDLookupTable; if (rtb_Merge_n.traj.radius > 1.0F) { rtb_Compare_fv = true; rtb_Merge1_aq = rtb_Merge_n.traj.radius; @@ -19002,7 +19069,7 @@ void SIL_step(void) (rtb_Merge_n.traj.lat1 - SIL_B.BusAssignment_j.lat)); elevation_baseline = (real32_T)((rtb_Merge_n.traj.lon1 - SIL_B.BusAssignment_j.lon) * (111321.543 * rtb_sincos_o2_k_idx_0)); - rtb_Sum1_cv = rtb_Merge_n.traj.h1 - rtb_uDLookupTable_c; + rtb_Sum1_cv = rtb_Merge_n.traj.h1 - rtb_uDLookupTable; rtb_Merge1_aq = rtb_Merge_n.traj.heading - rtb_Merge_n.traj.azimuth; if (rtb_Merge1_aq > 3.1415926535897931) { rtb_Merge1_aq -= 6.28318548F; @@ -19181,7 +19248,7 @@ void SIL_step(void) (rtb_Merge_n.traj.lat1 - SIL_B.BusAssignment_j.lat)); elevation_baseline = (real32_T)((rtb_Merge_n.traj.lon1 - SIL_B.BusAssignment_j.lon) * (111321.543 * rtb_sincos_o2_k_idx_0)); - SIL_B.ht_diff = rtb_Merge_n.traj.h1 - rtb_uDLookupTable_c; + SIL_B.ht_diff = rtb_Merge_n.traj.h1 - rtb_uDLookupTable; SIL_B.dist = sqrtf(dist * dist + elevation_baseline * elevation_baseline); rtb_Sum1_cv = cosf(rtb_Merge_n.traj.azimuth); rtb_Merge1_aq = sinf(rtb_Merge_n.traj.azimuth); @@ -19237,14 +19304,14 @@ void SIL_step(void) } /* Sqrt: '/Sqrt1' */ - rtb_table1D_thrAB_map_b = sqrtf(rtb_table1D_thrAB_map_b); + rtb_table1D_thrAB_map_g = sqrtf(rtb_table1D_thrAB_map_g); /* Trigonometry: '/Trigonometric Function1' incorporates: * Gain: '/Gain' * UnitDelay: '/Unit Delay' */ SIL_DW.UnitDelay_DSTATE.gamma = rt_atan2f_snf(-SIL_B.BusAssignment_j.v_d, - rtb_table1D_thrAB_map_b); + rtb_table1D_thrAB_map_g); /* Trigonometry: '/Trigonometric Function' incorporates: * UnitDelay: '/Unit Delay' @@ -19273,8 +19340,8 @@ void SIL_step(void) * Sum: '/Sum2' * UnitDelay: '/Unit Delay' */ - SIL_DW.UnitDelay_DSTATE.v_g = rtb_table1D_thrAB_map_b; - SIL_DW.UnitDelay_DSTATE.abs_alt = rtb_uDLookupTable_c; + SIL_DW.UnitDelay_DSTATE.v_g = rtb_table1D_thrAB_map_g; + SIL_DW.UnitDelay_DSTATE.abs_alt = rtb_uDLookupTable; SIL_DW.UnitDelay_DSTATE.hdot = -SIL_B.BusAssignment_j.v_d; SIL_DW.UnitDelay_DSTATE.rdot = SIL_B.rdot; SIL_DW.UnitDelay_DSTATE.dist = SIL_B.dist; @@ -19625,7 +19692,7 @@ void SIL_step(void) * Sum: '/Sum' * UnitDelay: '/Unit Delay' */ - rtb_table1D_thrAB_map_b = 0.78125F / rtb_qbarSc * (rtb_Merge_a - + rtb_table1D_thrAB_map_g = 0.78125F / rtb_qbarSc * (rtb_Merge_a - SIL_DW.UnitDelay_DSTATE.gamma); /* Delay: '/Delay' incorporates: @@ -19651,7 +19718,7 @@ void SIL_step(void) } /* End of Switch: '/Switch2' */ - SIL_DW.Delay_DSTATE_b = rtb_Sum1_cv - rtb_table1D_thrAB_map_b; + SIL_DW.Delay_DSTATE_b = rtb_Sum1_cv - rtb_table1D_thrAB_map_g; } /* Sum: '/Sum1' incorporates: @@ -19661,8 +19728,8 @@ void SIL_step(void) * Product: '/Product2' * Sum: '/Sum2' */ - rtb_Sum1_oz = (rtb_qbarSc * rtb_table1D_thrAB_map_b * 0.005F + - SIL_DW.Delay_DSTATE_b) + rtb_table1D_thrAB_map_b; + rtb_Sum1_oz = (rtb_qbarSc * rtb_table1D_thrAB_map_g * 0.005F + + SIL_DW.Delay_DSTATE_b) + rtb_table1D_thrAB_map_g; /* Switch: '/Switch2' incorporates: * Constant: '/Constant' @@ -19803,7 +19870,7 @@ void SIL_step(void) * Sum: '/Sum3' */ SIL_DW.icLoad_e4 = 0U; - SIL_DW.Delay_DSTATE_b = rtb_Sum1_oz - rtb_table1D_thrAB_map_b; + SIL_DW.Delay_DSTATE_b = rtb_Sum1_oz - rtb_table1D_thrAB_map_g; /* End of Outputs for SubSystem: '/gamma2tht' */ break; @@ -20161,8 +20228,8 @@ void SIL_step(void) * Chart: '/psi_err2' */ SIL_psi_err_Reset(&rtb_out_d2); - SIL_psi_err_Reset(&rtb_out_fs); - SIL_psi_err_Reset(&rtb_out_g); + SIL_psi_err_Reset(&rtb_out_f); + SIL_psi_err_Reset(&rtb_out_gz); /* End of SystemReset for SubSystem: '/LNAV2PHI' */ } @@ -20462,10 +20529,10 @@ void SIL_step(void) rtb_err_psi1 = SIL_DW.UnitDelay_DSTATE.psi_t - SIL_B.BusAssignment_j.psi; /* Chart: '/psi_err1' */ - SIL_psi_err(rtb_err_psi1, &rtb_out_fs); + SIL_psi_err(rtb_err_psi1, &rtb_out_f); /* Chart: '/psi_err2' */ - SIL_psi_err(rtb_Sum_oi, &rtb_out_g); + SIL_psi_err(rtb_Sum_oi, &rtb_out_gz); /* End of Outputs for SubSystem: '/LNAV2PHI' */ break; @@ -20656,13 +20723,13 @@ void SIL_step(void) /* Product: '/Product3' incorporates: * Gain: '/Gain' */ - rtb_pdot_max = rtb_product_k * -rtb_Product_pqq; + rtb_pdot_max = rtb_product_mt * -rtb_Product_pqq; /* Delay: '/Delay' incorporates: * Product: '/Product2' */ if (SIL_DW.icLoad != 0) { - SIL_DW.Delay_DSTATE = rtb_product_k * rtb_Merge_nh_da_c; + SIL_DW.Delay_DSTATE = rtb_product_mt * rtb_Merge_nh_da_c; } /* SwitchCase: '/Switch Case' */ @@ -20887,7 +20954,7 @@ void SIL_step(void) rec_hi.pdot_c = rtb_Switch2_el; /* Product: '/Divide' */ - rtb_Sum_fo = rec_hi.pdot_c / rtb_product_k; + rtb_Sum_fo = rec_hi.pdot_c / rtb_product_mt; /* Switch: '/Switch2' incorporates: * Gain: '/Gain' @@ -23018,26 +23085,26 @@ void SIL_step(void) t = 0.5F * rtb_Divide2; /* Lookup_n-D: '/table1D_thrAB_map' */ - rtb_table1D_thrAB_map_b = look1_iflf_binlxpw(t, - rtCP_table1D_thrAB_map_bp01Data_d, rtCP_table1D_thrAB_map_tableData_b, + rtb_table1D_thrAB_map_g = look1_iflf_binlxpw(t, + rtCP_table1D_thrAB_map_bp01Data_k, rtCP_table1D_thrAB_map_tableData_a, 2U); /* Lookup_n-D: '/table1D_thr_map' */ - t = look1_iflf_binlxpw(t, rtCP_table1D_thr_map_bp01Data_m, - rtCP_table1D_thr_map_tableData_p, 2U); + t = look1_iflf_binlxpw(t, rtCP_table1D_thr_map_bp01Data_j, + rtCP_table1D_thr_map_tableData_d, 2U); /* Lookup_n-D: '/table3D_cft' */ bpIndices_q[0U] = plook_u32ff_binx(SIL_B.BusAssignment_j.Mach, - rtCP_table3D_cft_bp01Data_c, 9U, &rtb_Merge1_py); + rtCP_table3D_cft_bp01Data_j, 9U, &rtb_Merge1_py); rtb_Gain_fd[0U] = rtb_Merge1_py; bpIndices_q[1U] = plook_u32ff_binx(SIL_B.BusAssignment_j.asl_baro, - rtCP_table3D_cft_bp02Data_b, 15U, &rtb_Merge1_py); + rtCP_table3D_cft_bp02Data_n, 15U, &rtb_Merge1_py); rtb_Gain_fd[1U] = rtb_Merge1_py; - bpIndices_q[2U] = plook_u32ff_binx(t, rtCP_table3D_cft_bp03Data_m, 11U, + bpIndices_q[2U] = plook_u32ff_binx(t, rtCP_table3D_cft_bp03Data_j, 11U, &rtb_Merge1_py); rtb_Gain_fd[2U] = rtb_Merge1_py; t = intrp3d_fu32fl_pw(bpIndices_q, rtb_Gain_fd, - rtCP_table3D_cft_tableData_o, + rtCP_table3D_cft_tableData_n, rtCP_table3D_cft_dimSizes); /* If: '/If' incorporates: @@ -23183,11 +23250,11 @@ void SIL_step(void) SIL_B.Merge.enable_rec = rtb_Merge_i_enable_rec; SIL_B.Merge.enable_rc = rtb_Merge_i_enable_rc; SIL_B.Merge.fuel_est = rtb_Merge_i_fuel_est - (real32_T)(((1.0 - - rtb_table1D_thrAB_map_b) * t + look2_iflf_binlxpw + rtb_table1D_thrAB_map_g) * t + look2_iflf_binlxpw (SIL_B.BusAssignment_j.Mach, SIL_B.BusAssignment_j.asl_baro, - rtCP_table2D_cftAB_bp01Data_p, rtCP_table2D_cftAB_bp02Data_p, - rtCP_table2D_cftAB_tableData_c, rtCP_table2D_cftAB_maxIndex, 10U) * - rtb_table1D_thrAB_map_b) * 0.00027777777777777778 * 0.005); + rtCP_table2D_cftAB_bp01Data_k, rtCP_table2D_cftAB_bp02Data_l, + rtCP_table2D_cftAB_tableData_m, rtCP_table2D_cftAB_maxIndex, 10U) * + rtb_table1D_thrAB_map_g) * 0.00027777777777777778 * 0.005); SIL_B.Merge.del_c = rtb_Merge_i_de_c; SIL_B.Merge.der_c = rtb_Merge_i_de_c; SIL_B.Merge.dal_c = -rtb_Merge_i_da_c; @@ -23311,11 +23378,11 @@ void SIL_step(void) SIL_B.Merge.enable_rec = rtb_Merge_i_enable_rec; SIL_B.Merge.enable_rc = rtb_Merge_i_enable_rc; SIL_B.Merge.fuel_est = rtb_Merge_i_fuel_est - (real32_T)(((1.0 - - rtb_table1D_thrAB_map_b) * t + look2_iflf_binlxpw + rtb_table1D_thrAB_map_g) * t + look2_iflf_binlxpw (SIL_B.BusAssignment_j.Mach, SIL_B.BusAssignment_j.asl_baro, - rtCP_table2D_cftAB_bp01Data_p, rtCP_table2D_cftAB_bp02Data_p, - rtCP_table2D_cftAB_tableData_c, rtCP_table2D_cftAB_maxIndex, 10U) * - rtb_table1D_thrAB_map_b) * 0.00027777777777777778 * 0.005); + rtCP_table2D_cftAB_bp01Data_k, rtCP_table2D_cftAB_bp02Data_l, + rtCP_table2D_cftAB_tableData_m, rtCP_table2D_cftAB_maxIndex, 10U) * + rtb_table1D_thrAB_map_g) * 0.00027777777777777778 * 0.005); /* End of Outputs for SubSystem: '/no_mix' */ } @@ -23328,15 +23395,15 @@ void SIL_step(void) SIL_B.Subtract_m = (uint16_T)(SIL_B.Merge.WP_cur - 1); /* Chart: '/Chart_proc_mission_upload' */ - if (SIL_DW.temporalCounter_i1_n < 255U) { - SIL_DW.temporalCounter_i1_n++; + if (SIL_DW.temporalCounter_i1_n3 < 255U) { + SIL_DW.temporalCounter_i1_n3++; } SIL_DW.mission_cnt_isValid = false; SIL_DW.mission_item_isValid = false; if (SIL_DW.is_active_c29_mavlink_utils == 0U) { SIL_DW.is_active_c29_mavlink_utils = 1U; - SIL_DW.is_c29_mavlink_utils = SIL_IN_Idle_l; + SIL_DW.is_c29_mavlink_utils = SIL_IN_Idle_n; SIL_B.enable_cnt = true; SIL_B.enable_item = false; } else { @@ -23344,7 +23411,7 @@ void SIL_step(void) guard2 = false; guard3 = false; guard4 = false; - if (SIL_DW.is_c29_mavlink_utils == SIL_IN_Idle_l) { + if (SIL_DW.is_c29_mavlink_utils == SIL_IN_Idle_n) { if (SIL_sf_msg_pop_mission_cnt()) { SIL_B.mission_type = ((mavlink_mission_count_t *) SIL_DW.mission_cnt_msgDataPtr)->mission_type; @@ -23361,7 +23428,7 @@ void SIL_step(void) /* End of Outputs for SubSystem: '/dummy clear_mission' */ if (SIL_DW.count > 0) { SIL_DW.is_c29_mavlink_utils = SIL_IN_Uploading; - SIL_DW.temporalCounter_i1_n = 0U; + SIL_DW.temporalCounter_i1_n3 = 0U; SIL_DW.mission_req_int_msgData.seq = SIL_B.seq; SIL_DW.mission_req_int_msgData.mission_type = SIL_B.mission_type; SIL_sf_msg_send_mission_req_int(); @@ -23414,44 +23481,44 @@ void SIL_step(void) switch (SIL_B.mission_type) { case 1: if (SIL_B.seq < SIL_fence_default_len) { - SIL_B.ack_i = 0U; + SIL_B.ack_ip = 0U; SIL_DW.f.command = SIL_B.command; SIL_DW.f.param = SIL_B.param1; SIL_DW.f.latlon[0] = SIL_B.x; SIL_DW.f.latlon[1] = SIL_B.y; - rtb_out_nq = SIL_B.seq + 1U; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + rtb_out_l = SIL_B.seq + 1U; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } - dummyFenceCount = (uint16_T)rtb_out_nq; + dummyFenceCount = (uint16_T)rtb_out_l; dummyFence[dummyFenceCount - 1] = SIL_DW.f; } else { - SIL_B.ack_i = 1U; + SIL_B.ack_ip = 1U; } break; case 2: if (SIL_B.seq < SIL_rally_default_len) { - SIL_B.ack_i = 0U; + SIL_B.ack_ip = 0U; SIL_DW.r.latlon[0] = SIL_B.x; SIL_DW.r.latlon[1] = SIL_B.y; SIL_DW.r.alt = SIL_B.z; - rtb_out_nq = SIL_B.seq + 1U; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + rtb_out_l = SIL_B.seq + 1U; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } - dummyRallyCount = (uint16_T)rtb_out_nq; + dummyRallyCount = (uint16_T)rtb_out_l; dummyRally[dummyRallyCount - 1] = SIL_DW.r; } else { - SIL_B.ack_i = 1U; + SIL_B.ack_ip = 1U; } break; default: if (SIL_B.seq < SIL_mission_default_len) { - SIL_B.ack_i = 0U; + SIL_B.ack_ip = 0U; SIL_DW.m.frame = SIL_B.frame; SIL_DW.m.command = SIL_B.command; SIL_DW.m.autocont = SIL_B.autocontinue; @@ -23462,22 +23529,22 @@ void SIL_step(void) SIL_DW.m.latlon[0] = SIL_B.x; SIL_DW.m.latlon[1] = SIL_B.y; SIL_DW.m.params[4] = SIL_B.z; - rtb_out_nq = SIL_B.seq + 1U; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + rtb_out_l = SIL_B.seq + 1U; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } - dummyMissionCount = (uint16_T)rtb_out_nq; + dummyMissionCount = (uint16_T)rtb_out_l; dummyMission[dummyMissionCount - 1] = SIL_DW.m; } else { - SIL_B.ack_i = 1U; + SIL_B.ack_ip = 1U; } break; } /* End of Chart: '/chat_update_mission_item' */ /* End of Outputs for SubSystem: '/dummy update_mission_item' */ - if (SIL_B.ack_i == 0) { + if (SIL_B.ack_ip == 0) { SIL_B.seq++; SIL_DW.retry = 3U; if (SIL_B.seq >= SIL_DW.count) { @@ -23492,7 +23559,7 @@ void SIL_step(void) guard4 = true; } } else { - if (SIL_DW.temporalCounter_i1_n >= 200U) { + if (SIL_DW.temporalCounter_i1_n3 >= 200U) { guard4 = true; } } @@ -23510,14 +23577,14 @@ void SIL_step(void) } if (guard3) { - SIL_DW.is_c29_mavlink_utils = SIL_IN_Idle_l; + SIL_DW.is_c29_mavlink_utils = SIL_IN_Idle_n; SIL_B.enable_cnt = true; SIL_B.enable_item = false; } if (guard2) { SIL_DW.is_c29_mavlink_utils = SIL_IN_Uploading; - SIL_DW.temporalCounter_i1_n = 0U; + SIL_DW.temporalCounter_i1_n3 = 0U; SIL_DW.mission_req_int_msgData.seq = SIL_B.seq; SIL_DW.mission_req_int_msgData.mission_type = SIL_B.mission_type; SIL_sf_msg_send_mission_req_int(); @@ -23525,7 +23592,7 @@ void SIL_step(void) } if (guard1) { - SIL_DW.is_c29_mavlink_utils = SIL_IN_Idle_l; + SIL_DW.is_c29_mavlink_utils = SIL_IN_Idle_n; SIL_B.enable_cnt = true; SIL_B.enable_item = false; } @@ -23689,12 +23756,12 @@ void SIL_step(void) case 1: if (SIL_B.seq_e < dummyFenceCount) { SIL_B.ack_iw = 0U; - rtb_out_nq = SIL_B.seq_e + 1U; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + rtb_out_l = SIL_B.seq_e + 1U; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } - expl_temp_0 = &dummyFence[(int32_T)rtb_out_nq - 1]; + expl_temp_0 = &dummyFence[(int32_T)rtb_out_l - 1]; SIL_B.frame_l = 5U; SIL_B.command_p = expl_temp_0->command; SIL_B.autocont = 0U; @@ -23709,12 +23776,12 @@ void SIL_step(void) case 2: if (SIL_B.seq_e < dummyRallyCount) { SIL_B.ack_iw = 0U; - rtb_out_nq = SIL_B.seq_e + 1U; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + rtb_out_l = SIL_B.seq_e + 1U; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } - expl_temp_1 = &dummyRally[(int32_T)rtb_out_nq - 1]; + expl_temp_1 = &dummyRally[(int32_T)rtb_out_l - 1]; SIL_B.command_p = 5100U; SIL_B.x_k = expl_temp_1->latlon[0]; SIL_B.y_m = expl_temp_1->latlon[1]; @@ -23727,12 +23794,12 @@ void SIL_step(void) default: if (SIL_B.seq_e < dummyMissionCount) { SIL_B.ack_iw = 0U; - rtb_out_nq = SIL_B.seq_e + 1U; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + rtb_out_l = SIL_B.seq_e + 1U; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } - expl_temp = &dummyMission[(int32_T)rtb_out_nq - 1]; + expl_temp = &dummyMission[(int32_T)rtb_out_l - 1]; SIL_B.frame_l = expl_temp->frame; SIL_B.command_p = expl_temp->command; SIL_B.autocont = expl_temp->autocont; @@ -24125,7 +24192,10 @@ void SIL_step(void) /* DataTypeConversion: '/Data Type Conversion' incorporates: * Constant: '/Constant' */ - SIL_B.DataTypeConversion = (uint8_T)SIL_P.system_id; + SIL_B.DataTypeConversion_n = (uint8_T)SIL_P.system_id; + + /* DataTypeConversion: '/Data Type Conversion' */ + SIL_B.DataTypeConversion = SIL_B.Merge.recovery; /* Sum: '/Sum' incorporates: * Constant: '/Constant' @@ -24306,8 +24376,8 @@ void SIL_step(void) SIL_DW.param_set_isValid = false; if (SIL_DW.is_active_c31_mavlink_utils == 0U) { SIL_DW.is_active_c31_mavlink_utils = 1U; - SIL_DW.is_c31_mavlink_utils = SIL_IN_Idle_l; - } else if (SIL_DW.is_c31_mavlink_utils == SIL_IN_Idle_l) { + SIL_DW.is_c31_mavlink_utils = SIL_IN_Idle_n; + } else if (SIL_DW.is_c31_mavlink_utils == SIL_IN_Idle_n) { guard1 = false; if (SIL_sf_msg_pop_param_set()) { SIL_B.idx = *(uint16_T *)SIL_DW.param_set_msgDataPtr; @@ -24354,7 +24424,7 @@ void SIL_step(void) SIL_sf_msg_send_msg_d(); } } else if (SIL_DW.forone) { - SIL_DW.is_c31_mavlink_utils = SIL_IN_Idle_l; + SIL_DW.is_c31_mavlink_utils = SIL_IN_Idle_n; } else { if (SIL_DW.temporalCounter_i1_ia >= 40U) { SIL_B.idx++; @@ -24386,7 +24456,7 @@ void SIL_step(void) SIL_DW.msg_msgData_e.param_count = SIL_B.param_cnt; SIL_sf_msg_send_msg_d(); } else { - SIL_DW.is_c31_mavlink_utils = SIL_IN_Idle_l; + SIL_DW.is_c31_mavlink_utils = SIL_IN_Idle_n; } } } @@ -24440,8 +24510,8 @@ void SIL_step(void) SIL_DW.ap_ver_queue_isValid = false; if (SIL_DW.is_active_c36_kb3_autopilot == 0U) { SIL_DW.is_active_c36_kb3_autopilot = 1U; - SIL_DW.is_c36_kb3_autopilot = SIL_IN_Idle_l; - } else if (SIL_DW.is_c36_kb3_autopilot == SIL_IN_Idle_l) { + SIL_DW.is_c36_kb3_autopilot = SIL_IN_Idle_n; + } else if (SIL_DW.is_c36_kb3_autopilot == SIL_IN_Idle_n) { if (SIL_sf_msg_pop_command_ack_queue()) { SIL_B.command_ack = *(mavlink_command_ack_t *) SIL_DW.command_ack_queue_msgDataPtr; @@ -24452,7 +24522,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_command_ack_encode_Outputs_wrapper(&SIL_B.command_ack, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/cmd_ack_enc' */ @@ -24466,7 +24536,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_mission_current_encode_Outputs_wrapper(&SIL_B.mission_cur, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/mission_cur_enc' */ @@ -24480,7 +24550,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_mission_count_encode_Outputs_wrapper(&SIL_B.mission_cnt, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/mission_cnt_enc' */ @@ -24494,12 +24564,12 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_mission_item_int_encode_Outputs_wrapper(&SIL_B.mission_item_int, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/mission_item_int_enc' */ } else if (SIL_sf_msg_pop_mission_ack_queue()) { - SIL_B.mission_ack_a = *(mavlink_mission_ack_t *) + SIL_B.mission_ack_m = *(mavlink_mission_ack_t *) SIL_DW.mission_ack_queue_msgDataPtr; /* Outputs for Function Call SubSystem: '/mission_ack_enc' */ @@ -24507,13 +24577,13 @@ void SIL_step(void) * Constant: '/Constant BP' * Constant: '/Constant BP1' */ - mav_mission_ack_encode_Outputs_wrapper(&SIL_B.mission_ack_a, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + mav_mission_ack_encode_Outputs_wrapper(&SIL_B.mission_ack_m, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/mission_ack_enc' */ } else if (SIL_sf_msg_pop_mission_req_int_queue()) { - SIL_B.mission_req_int_o = *(mavlink_mission_request_int_t *) + SIL_B.mission_req_int_f = *(mavlink_mission_request_int_t *) SIL_DW.mission_req_int_queue_msgDataPtr; /* Outputs for Function Call SubSystem: '/mission_req_int_enc' */ @@ -24522,7 +24592,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_mission_request_int_encode_Outputs_wrapper - (&SIL_B.mission_req_int_o, &SIL_B.DataTypeConversion, + (&SIL_B.mission_req_int_f, &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); @@ -24537,12 +24607,12 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_param_value_encode_Outputs_wrapper(&SIL_B.param_val, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/param_val_enc' */ } else if (SIL_sf_msg_pop_ap_ver_queue()) { - SIL_B.ap_ver_h = *(mavlink_autopilot_version_t *) + SIL_B.ap_ver_f = *(mavlink_autopilot_version_t *) SIL_DW.ap_ver_queue_msgDataPtr; /* Outputs for Function Call SubSystem: '/ap_ver_enc' */ @@ -24550,8 +24620,8 @@ void SIL_step(void) * Constant: '/Constant BP' * Constant: '/Constant BP1' */ - mav_autopilot_version_encode_Outputs_wrapper(&SIL_B.ap_ver_h, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + mav_autopilot_version_encode_Outputs_wrapper(&SIL_B.ap_ver_f, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/ap_ver_enc' */ @@ -24607,7 +24677,7 @@ void SIL_step(void) */ ccm_state_enc_Outputs_wrapper (&SIL_B.BusConversion_InsertedFor_SFunction_at_inport_0_BusCreator1_h, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/ccm_state' */ @@ -24633,7 +24703,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_attitude_encode_Outputs_wrapper(&SIL_B.att, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/attitude_enc' */ @@ -24663,7 +24733,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_global_position_int_encode_Outputs_wrapper(&SIL_B.ins, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/glb_pos_int_enc' */ @@ -24695,8 +24765,8 @@ void SIL_step(void) */ SIL_B.Sqrt = sqrtf(SIL_B.vn * SIL_B.vn + SIL_B.ve * SIL_B.ve); SIL_B.gps.vel = (uint16_T)roundf(SIL_B.Sqrt * 100.0F); - SIL_B.vn_l = SIL_B.BusAssignment_j.v_n; - SIL_B.ve_p = SIL_B.BusAssignment_j.v_e; + SIL_B.vn_c = SIL_B.BusAssignment_j.v_n; + SIL_B.ve_i = SIL_B.BusAssignment_j.v_e; /* Chart: '/Chart' incorporates: * SubSystem: '/get_cog' @@ -24704,7 +24774,7 @@ void SIL_step(void) /* Gain: '/Gain' incorporates: * Trigonometry: '/Trigonometric Function' */ - SIL_B.Merge_f = 57.2957802F * rt_atan2f_snf(SIL_B.ve_p, SIL_B.vn_l); + SIL_B.Merge_f = 57.2957802F * rt_atan2f_snf(SIL_B.ve_i, SIL_B.vn_c); /* If: '/If' */ if (SIL_B.Merge_f < 0.0F) { @@ -24738,7 +24808,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_gps_raw_int_encode_Outputs_wrapper(&SIL_B.gps, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/gps_raw_int_enc' */ @@ -24751,6 +24821,7 @@ void SIL_step(void) */ /* SignalConversion: '/TmpSignal ConversionAt SFunction Inport3' incorporates: * Chart: '/Chart' + * Constant: '/Constant1' */ SIL_B.TmpSignalConversionAtSFunctionInport3[0] = SIL_B.DataTypeConversion1_nd; @@ -24764,7 +24835,8 @@ void SIL_step(void) SIL_B.DataTypeConversion1_c; SIL_B.TmpSignalConversionAtSFunctionInport3[5] = SIL_B.Sum_lp; SIL_B.TmpSignalConversionAtSFunctionInport3[6] = SIL_B.kg2cg; - SIL_B.TmpSignalConversionAtSFunctionInport3[7] = 0U; + SIL_B.TmpSignalConversionAtSFunctionInport3[7] = + SIL_B.DataTypeConversion; SIL_B.TmpSignalConversionAtSFunctionInport3[8] = 0U; for (idx = 0; idx < 7; idx++) { SIL_B.TmpSignalConversionAtSFunctionInport3[idx + 9] = 0U; @@ -24818,7 +24890,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_servo_output_raw_encode_Outputs_wrapper(&SIL_B.servos, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/svo_out_raw_enc' */ @@ -24848,7 +24920,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_nav_controller_output_encode_Outputs_wrapper(&SIL_B.nav, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/nav_ctrl_out_enc' */ @@ -24873,7 +24945,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_emb_atmo_com_encode_Outputs_wrapper(&SIL_B.atmos, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/emb_atmo_com_enc' */ @@ -24901,7 +24973,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_vfr_hud_encode_Outputs_wrapper(&SIL_B.hud, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/vfr_hud_enc' */ @@ -24929,9 +25001,9 @@ void SIL_step(void) /* Product: '/Divide' incorporates: * Constant: '/Constant' */ - rtb_out_nq = 1000U * SIL_B.mav_status.packet_rx_drop_count; - if (rtb_out_nq > 65535U) { - rtb_out_nq = 65535U; + rtb_out_l = 1000U * SIL_B.mav_status.packet_rx_drop_count; + if (rtb_out_l > 65535U) { + rtb_out_l = 65535U; } /* Chart: '/Chart' incorporates: @@ -24939,9 +25011,9 @@ void SIL_step(void) * Product: '/Divide' * Sum: '/Sum' */ - SIL_B.sys_status.drop_rate_comm = (uint16_T)(rtb_out_nq / - (((uint32_T)SIL_B.mav_status.packet_rx_drop_count + - SIL_B.mav_status.packet_rx_success_count) + 1U)); + SIL_B.sys_status.drop_rate_comm = (uint16_T)(rtb_out_l / (((uint32_T) + SIL_B.mav_status.packet_rx_drop_count + + SIL_B.mav_status.packet_rx_success_count) + 1U)); SIL_B.sys_status.errors_comm = SIL_B.mav_status.packet_rx_drop_count; SIL_B.sys_status.errors_count1 = SIL_B.BusAssignment_j.errors_count1; SIL_B.sys_status.errors_count2 = SIL_B.BusAssignment_j.errors_count2; @@ -24953,7 +25025,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_sys_status_encode_Outputs_wrapper(&SIL_B.sys_status, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/sys_stat_enc' */ @@ -24972,7 +25044,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_ext_sys_stat_encode_Outputs_wrapper(&SIL_B.ext_sys_stat, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/ext_sys_stat_enc' */ @@ -25071,7 +25143,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_ins1_encode_Outputs_wrapper(&SIL_B.BusAssignment_i, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/ins1_state' */ @@ -25086,7 +25158,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ turbine_state_enc_Outputs_wrapper(&SIL_B.SFunction, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merge.boot_time, &SIL_B.Merged_msg); @@ -25157,7 +25229,7 @@ void SIL_step(void) */ bmu_state_enc_Outputs_wrapper (&SIL_B.BusConversion_InsertedFor_SFunction_at_inport_0_BusCreator1, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/bmu_state' */ @@ -25256,7 +25328,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_ins2_encode_Outputs_wrapper(&SIL_B.BusAssignment_p, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/ins2_state' */ @@ -25277,7 +25349,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_scaled_pressure_encode_Outputs_wrapper(&SIL_B.pres, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/scal_pres_enc' */ @@ -25309,7 +25381,7 @@ void SIL_step(void) * Constant: '/Constant BP1' */ mav_heartbeat_encode_Outputs_wrapper(&SIL_B.heartbeat, - &SIL_B.DataTypeConversion, &rtCP_ConstantBP_Value_h, + &SIL_B.DataTypeConversion_n, &rtCP_ConstantBP_Value_h, &rtCP_ConstantBP1_Value_g, &SIL_B.Merged_msg); /* End of Outputs for SubSystem: '/heartbeat_enc' */ @@ -25329,7 +25401,7 @@ void SIL_step(void) &SIL_B.mav_msg2buff_o2, 256); /* End of Outputs for SubSystem: '/Function-Call Subsystem' */ - SIL_B.seq_gf++; + SIL_B.seq_ee++; rtb_Merge_h_boot_time = SIL_B.mav_msg2buff_o2 * 1000000U; if (transrate == 0U) { if (rtb_Merge_h_boot_time == 0U) { @@ -25348,7 +25420,7 @@ void SIL_step(void) } else { if ((uint32_T)((int32_T)SIL_DW.temporalCounter_i1 * 5000) >= SIL_DW.wait_time) { - SIL_DW.is_c36_kb3_autopilot = SIL_IN_Idle_l; + SIL_DW.is_c36_kb3_autopilot = SIL_IN_Idle_n; } } @@ -25750,7 +25822,9 @@ void SIL_step(void) /* Outport: '/C2out' */ SIL_Y.C2out = SIL_B.Merge; - /* SignalConversion: '/TmpSignal ConversionAtDelayInport1' */ + /* SignalConversion: '/TmpSignal ConversionAtDelayInport1' incorporates: + * Constant: '/Constant1' + */ rtb_pwms[0] = SIL_B.DataTypeConversion1_nd; rtb_pwms[1] = SIL_B.DataTypeConversion1_f; rtb_pwms[2] = SIL_B.DataTypeConversion1_g; @@ -25758,7 +25832,7 @@ void SIL_step(void) rtb_pwms[4] = SIL_B.DataTypeConversion1_c; rtb_pwms[5] = SIL_B.Sum_lp; rtb_pwms[6] = SIL_B.kg2cg; - rtb_pwms[7] = 0U; + rtb_pwms[7] = SIL_B.DataTypeConversion; rtb_pwms[8] = 0U; for (idx = 0; idx < 7; idx++) { rtb_pwms[idx + 9] = 0U; @@ -26397,7 +26471,7 @@ void SIL_step(void) if (rtmIsMajorTimeStep(SIL_M) && SIL_M->Timing.TaskCounters.TID[2] == 0) { /* Outport: '/seq' */ - SIL_Y.seq = SIL_B.seq_gf; + SIL_Y.seq = SIL_B.seq_ee; /* Outport: '/buff_len' */ SIL_Y.buff_len = SIL_B.mav_msg2buff_o2; @@ -26471,7 +26545,7 @@ void SIL_step(void) rtCP_table3D_Nh_tableData, rtCP_table3D_Nh_dimSizes); /* Product: '/product1' */ - SIL_B.product1_d = rtb_table2D_NhAB * SIL_B.subtract; + SIL_B.product1_c = rtb_table2D_NhAB * SIL_B.subtract; /* DotProduct: '/Dot Product' incorporates: * Lookup_n-D: '/table2D_NhAB' @@ -26481,13 +26555,13 @@ void SIL_step(void) rtCP_table2D_NhAB_tableData, rtCP_table2D_NhAB_maxIndex, 10U); /* Product: '/product' */ - SIL_B.product_ir = rtb_table2D_NhAB * rtb_table1D_thrAB_map; + SIL_B.product_ey = rtb_table2D_NhAB * rtb_table1D_thrAB_map; /* Sum: '/add' */ - SIL_B.add_g = SIL_B.product_ir + SIL_B.product1_d; + SIL_B.add_h = SIL_B.product_ey + SIL_B.product1_c; /* Outport: '/RPM' */ - SIL_Y.RPM = SIL_B.add_g; + SIL_Y.RPM = SIL_B.add_h; if (rtmIsMajorTimeStep(SIL_M) && SIL_M->Timing.TaskCounters.TID[1] == 0) { /* UnitDelay: '/Unit Delay' */ @@ -26723,6 +26797,10 @@ void SIL_step(void) /* Update for Backlash: '/Backlash2' */ SIL_DW.PrevY_p = SIL_B.Backlash2; + /* Update for Delay: '/Delay2' */ + SIL_DW.Delay2_DSTATE[0] = SIL_DW.Delay2_DSTATE[1]; + SIL_DW.Delay2_DSTATE[1] = SIL_B.Merge.recovery; + /* Update for Delay: '/Delay1' */ SIL_DW.Delay1_DSTATE[0] = SIL_DW.Delay1_DSTATE[1]; SIL_DW.Delay1_DSTATE[1] = SIL_B.Merge.armed; @@ -27058,24 +27136,24 @@ void SIL_initialize(void) SIL_B.BusAssignment_e = SIL_rtZC2; SIL_B.BusAssignment_g = SIL_rtZC2; SIL_B.mode = ENUM_mode_MANUAL; - SIL_B.mode_c = ENUM_mode_MANUAL; - SIL_B.mode_e = ENUM_mode_MANUAL; + SIL_B.mode_p = ENUM_mode_MANUAL; + SIL_B.mode_f = ENUM_mode_MANUAL; SIL_B.landed_state_out = ENUM_LANDED_STATE_UNDEFINED; - SIL_B.landed_state_out_n = ENUM_LANDED_STATE_UNDEFINED; + SIL_B.landed_state_out_h = ENUM_LANDED_STATE_UNDEFINED; SIL_B.CSAS_yaw = ENUM_CSAS_YAW_OFF; - SIL_B.CSAS_yaw_l = ENUM_CSAS_YAW_OFF; + SIL_B.CSAS_yaw_m = ENUM_CSAS_YAW_OFF; SIL_B.CSAS_roll = ENUM_CSAS_ROLL_OFF; - SIL_B.CSAS_roll_b = ENUM_CSAS_ROLL_OFF; + SIL_B.CSAS_roll_j = ENUM_CSAS_ROLL_OFF; SIL_B.CSAS_pitch = ENUM_CSAS_PITCH_OFF; SIL_B.AT_out = ENUM_AT_OFF; SIL_B.AT = ENUM_AT_OFF; - SIL_B.AT_j = ENUM_AT_OFF; + SIL_B.AT_l = ENUM_AT_OFF; SIL_B.AFCS_VERT_out = ENUM_AFCS_VERT_OFF; SIL_B.AFCS_VERT = ENUM_AFCS_VERT_OFF; - SIL_B.AFCS_VERT_o = ENUM_AFCS_VERT_OFF; + SIL_B.AFCS_VERT_d = ENUM_AFCS_VERT_OFF; SIL_B.AFCS_LNAV = ENUM_AFCS_LAT_OFF; - SIL_B.AFCS_LNAV_j = ENUM_AFCS_LAT_OFF; - SIL_B.AFCS_LNAV_p = ENUM_AFCS_LAT_OFF; + SIL_B.AFCS_LNAV_i = ENUM_AFCS_LAT_OFF; + SIL_B.AFCS_LNAV_g = ENUM_AFCS_LAT_OFF; } /* custom signals */ @@ -27124,8 +27202,8 @@ void SIL_initialize(void) { /* local block i/o variables */ - real32_T rtb_out_g; - real32_T rtb_out_fs; + real32_T rtb_out_gz; + real32_T rtb_out_f; real32_T rtb_out_d2; int32_T i; @@ -27929,97 +28007,97 @@ void SIL_initialize(void) SIL_DW.S = 110.4; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_id = 0U; + SIL_DW.temporalCounter_i1_jg = 0U; SIL_DW.is_active_c39_kb3_autopilot = 0U; SIL_DW.is_c39_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_a2 = 0U; + SIL_DW.temporalCounter_i1_e = 0U; SIL_DW.is_active_c41_kb3_autopilot = 0U; SIL_DW.is_c41_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_a = 0U; + SIL_DW.temporalCounter_i1_nd = 0U; SIL_DW.is_active_c43_kb3_autopilot = 0U; SIL_DW.is_c43_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_h3 = 0U; + SIL_DW.temporalCounter_i1_g = 0U; SIL_DW.is_active_c48_kb3_autopilot = 0U; SIL_DW.is_c48_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_g0 = 0U; + SIL_DW.temporalCounter_i1_fh = 0U; SIL_DW.is_active_c49_kb3_autopilot = 0U; SIL_DW.is_c49_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_b = 0U; + SIL_DW.temporalCounter_i1_n = 0U; SIL_DW.is_active_c50_kb3_autopilot = 0U; SIL_DW.is_c50_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_ga = 0U; + SIL_DW.temporalCounter_i1_a = 0U; SIL_DW.is_active_c60_kb3_autopilot = 0U; SIL_DW.is_c60_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_gg = 0U; + SIL_DW.temporalCounter_i1_mk = 0U; SIL_DW.is_active_c62_kb3_autopilot = 0U; SIL_DW.is_c62_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_e1 = 0U; + SIL_DW.temporalCounter_i1_j = 0U; SIL_DW.is_active_c64_kb3_autopilot = 0U; SIL_DW.is_c64_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_o = 0U; + SIL_DW.temporalCounter_i1_ix = 0U; SIL_DW.is_active_c45_kb3_autopilot = 0U; SIL_DW.is_c45_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_j = 0U; + SIL_DW.temporalCounter_i1_bp = 0U; SIL_DW.is_active_c46_kb3_autopilot = 0U; SIL_DW.is_c46_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_i = 0U; + SIL_DW.temporalCounter_i1_jw = 0U; SIL_DW.is_active_c47_kb3_autopilot = 0U; SIL_DW.is_c47_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_gu = 0U; + SIL_DW.temporalCounter_i1_ec = 0U; SIL_DW.is_active_c54_kb3_autopilot = 0U; SIL_DW.is_c54_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_d = 0U; + SIL_DW.temporalCounter_i1_o = 0U; SIL_DW.is_active_c55_kb3_autopilot = 0U; SIL_DW.is_c55_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_pj = 0U; + SIL_DW.temporalCounter_i1_ps = 0U; SIL_DW.is_active_c56_kb3_autopilot = 0U; SIL_DW.is_c56_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_at = 0U; + SIL_DW.temporalCounter_i1_jb = 0U; SIL_DW.is_active_c57_kb3_autopilot = 0U; SIL_DW.is_c57_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_l = 0U; + SIL_DW.temporalCounter_i1_d2 = 0U; SIL_DW.is_active_c58_kb3_autopilot = 0U; SIL_DW.is_c58_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_gn = 0U; + SIL_DW.temporalCounter_i1_jm = 0U; SIL_DW.is_active_c42_kb3_autopilot = 0U; SIL_DW.is_c42_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_e5 = 0U; + SIL_DW.temporalCounter_i1_i = 0U; SIL_DW.is_active_c44_kb3_autopilot = 0U; SIL_DW.is_c44_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -28069,7 +28147,7 @@ void SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/takeoff' */ /* SystemInitialize for Chart: '/takeoff_task' */ - SIL_DW.temporalCounter_i1_e = 0U; + SIL_DW.temporalCounter_i1_b = 0U; SIL_DW.is_active_c28_kb3_autopilot = 0U; SIL_DW.is_c28_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -28077,7 +28155,7 @@ void SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/landing' */ /* SystemInitialize for Chart: '/landing_task' */ - SIL_DW.temporalCounter_i1_g = 0U; + SIL_DW.temporalCounter_i1_d = 0U; SIL_DW.is_active_c18_kb3_autopilot = 0U; SIL_DW.is_c18_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -28085,7 +28163,7 @@ void SIL_initialize(void) /* SystemInitialize for IfAction SubSystem: '/waypoint' */ /* SystemInitialize for Chart: '/Chart' */ - SIL_DW.temporalCounter_i1_k = 0U; + SIL_DW.temporalCounter_i1_bk = 0U; SIL_DW.is_active_c29_kb3_autopilot = 0U; SIL_DW.is_c29_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -28100,7 +28178,7 @@ void SIL_initialize(void) SIL_DW.is_cut = SIL_IN_NO_ACTIVE_CHILD_l; SIL_DW.is_parachute = SIL_IN_NO_ACTIVE_CHILD_l; SIL_DW.temporalCounter_i2 = 0U; - SIL_DW.temporalCounter_i1_h1 = 0U; + SIL_DW.temporalCounter_i1_de = 0U; SIL_DW.is_active_c59_kb3_autopilot = 0U; SIL_DW.is_c59_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; @@ -28155,10 +28233,10 @@ void SIL_initialize(void) SIL_psi_err_Init(&rtb_out_d2); /* SystemInitialize for Chart: '/psi_err1' */ - SIL_psi_err_Init(&rtb_out_fs); + SIL_psi_err_Init(&rtb_out_f); /* SystemInitialize for Chart: '/psi_err2' */ - SIL_psi_err_Init(&rtb_out_g); + SIL_psi_err_Init(&rtb_out_gz); /* End of SystemInitialize for SubSystem: '/LNAV2PHI' */ @@ -28224,7 +28302,7 @@ void SIL_initialize(void) /* End of SystemInitialize for SubSystem: '/AS' */ /* SystemInitialize for Chart: '/Chart_proc_mission_upload' */ - SIL_DW.temporalCounter_i1_n = 0U; + SIL_DW.temporalCounter_i1_n3 = 0U; SIL_DW.is_active_c29_mavlink_utils = 0U; SIL_DW.is_c29_mavlink_utils = SIL_IN_NO_ACTIVE_CHILD_l; @@ -28259,7 +28337,7 @@ void SIL_initialize(void) SIL_DW.temporalCounter_i1 = 0U; SIL_DW.is_active_c36_kb3_autopilot = 0U; SIL_DW.is_c36_kb3_autopilot = SIL_IN_NO_ACTIVE_CHILD_l; - SIL_B.seq_gf = 0U; + SIL_B.seq_ee = 0U; /* SystemInitialize for Chart: '/traffic_ctrl' incorporates: * SubSystem: '/loop_download' diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL.h b/SIL/work/SIL_ert_shrlib_rtw/SIL.h index dd8ae93..1483f20 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL.h +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'SIL'. * - * Model version : 1.527 + * Model version : 1.537 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Dec 8 11:41:06 2020 + * C/C++ source code generated on : Tue Dec 8 17:00:08 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -326,8 +326,9 @@ typedef struct { mavlink_ins2_t BusAssignment_p; /* '/Bus Assignment' */ mavlink_ins1_t BusAssignment_i; /* '/Bus Assignment' */ mavlink_bmustate_t BusConversion_InsertedFor_SFunction_at_inport_0_BusCreator1; + TrajGen UnitDelay; /* '/Unit Delay' */ mavlink_autopilot_version_t ap_ver; /* '/send_auto_hw' */ - mavlink_autopilot_version_t ap_ver_h;/* '/traffic_ctrl' */ + mavlink_autopilot_version_t ap_ver_f;/* '/traffic_ctrl' */ mavlink_gps_raw_int_t gps; /* '/Chart' */ mavlink_mission_item_int_t mav_mission_item_int;/* '/mav_mission_item_int' */ mavlink_mission_item_int_t send_req; /* '/Chart' */ @@ -347,7 +348,7 @@ typedef struct { mavlink_ccmstate_t BusConversion_InsertedFor_SFunction_at_inport_0_BusCreator1_h; mavlink_attitude_t att; /* '/Chart' */ - CommandMsg msg_j; /* '/send_cmd' */ + CommandMsg msg_i; /* '/send_cmd' */ CommandMsg cmd; /* '/mission_proc' */ mavlink_vfr_hud_t hud; /* '/Chart' */ mavlink_status_t mav_status; /* '/mav_parser' */ @@ -362,7 +363,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_o;/* '/traffic_ctrl' */ + mavlink_mission_request_int_t mission_req_int_f;/* '/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' */ @@ -374,7 +375,7 @@ typedef struct { mavlink_mission_ack_t ack; /* '/merge_ack' */ mavlink_mission_ack_t send_ack_h; /* '/Chart_proc_mission_clr_all' */ mavlink_mission_ack_t send_ack_d; /* '/Chart_proc_mission_req' */ - mavlink_mission_ack_t mission_ack_a; /* '/traffic_ctrl' */ + mavlink_mission_ack_t mission_ack_m; /* '/traffic_ctrl' */ mavlink_extended_sys_state_t ext_sys_stat;/* '/Chart' */ real_T Sum[3]; /* '/Sum' */ real_T p1[3]; /* '/p1' */ @@ -440,6 +441,8 @@ typedef struct { real_T Product5; /* '/Product5' */ real_T Product6; /* '/Product6' */ real_T Sum3; /* '/Sum3' */ + real_T uDLookupTable; /* '/1-D Lookup Table' */ + real_T uDLookupTable1; /* '/1-D Lookup Table1' */ real_T MathFunction1[9]; /* '/Math Function1' */ real_T ubvbwb[3]; /* '/ub,vb,wb' */ real_T Product1_i2[3]; /* '/Product1' */ @@ -477,15 +480,17 @@ typedef struct { real_T table1D_mass; /* '/table1D_mass' */ real_T mass_e; /* '/Sum' */ real_T product; /* '/product' */ - real_T product_f; /* '/product' */ - real_T product_e; /* '/product' */ + real_T product_g; /* '/product' */ + real_T product_l; /* '/product' */ real_T add[9]; /* '/add' */ real_T MatrixConcatenation[18]; /* '/Matrix Concatenation' */ real_T Selector2[9]; /* '/Selector2' */ real_T Product2_b; /* '/Product2' */ - real_T product_p; /* '/product' */ + real_T product_h; /* '/product' */ + real_T saturation; /* '/saturation' */ real_T Product3_f; /* '/Product3' */ - real_T product_n; /* '/product' */ + real_T product_e; /* '/product' */ + real_T saturation_a; /* '/saturation' */ real_T dal; /* '/divide3' */ real_T Integrator_p; /* '/Integrator' */ real_T Backlash3; /* '/Backlash3' */ @@ -494,7 +499,7 @@ typedef struct { real_T Backlash4; /* '/Backlash4' */ real_T Sum2_k; /* '/Sum2' */ real_T da; /* '/Gain2' */ - real_T product_d; /* '/product' */ + real_T product_b; /* '/product' */ real_T del; /* '/divide' */ real_T Integrator_a; /* '/Integrator' */ real_T Backlash; /* '/Backlash' */ @@ -503,27 +508,28 @@ typedef struct { real_T Backlash1; /* '/Backlash1' */ real_T Sum_g; /* '/Sum' */ real_T de; /* '/Gain' */ - real_T product_m; /* '/product' */ - real_T product_g; /* '/product' */ + real_T product_d; /* '/product' */ + real_T product_hw; /* '/product' */ real_T Backlash2; /* '/Backlash2' */ - real_T product_o; /* '/product' */ + real_T product_bc; /* '/product' */ real_T pqr_n[3]; /* '/Sum1' */ - real_T saturation; /* '/saturation' */ - real_T product_b; /* '/product' */ + real_T saturation_e; /* '/saturation' */ + real_T product_o; /* '/product' */ real_T product1; /* '/product1' */ real_T product2; /* '/product2' */ - real_T add_k; /* '/add' */ - real_T product_d0; /* '/product' */ - real_T product_i; /* '/product' */ + real_T add_a; /* '/add' */ + real_T product_i; /* '/product' */ + real_T product_ed; /* '/product' */ real_T product1_o; /* '/product1' */ - real_T product_l; /* '/product' */ - real_T product2_o; /* '/product2' */ + real_T product_ie; /* '/product' */ + real_T product2_j; /* '/product2' */ real_T product3; /* '/product3' */ - real_T add_p; /* '/add' */ - real_T add_l; /* '/add' */ + real_T add_n; /* '/add' */ + real_T parachute; /* '/Switch1' */ + real_T add_d; /* '/add' */ real_T Merge_h[3]; /* '/Merge' */ real_T Product_j[3]; /* '/Product' */ - real_T if_m[3]; /* '/if' */ + real_T if_f[3]; /* '/if' */ real_T Sum_jo[3]; /* '/Sum' */ real_T jxk; /* '/j x k' */ real_T kxi; /* '/k x i' */ @@ -532,22 +538,22 @@ typedef struct { real_T ixk; /* '/i x k' */ real_T jxi; /* '/j x i' */ real_T Sum_p[3]; /* '/Sum' */ - real_T product_p1; /* '/product' */ - real_T product1_k; /* '/product1' */ - real_T product2_i; /* '/product2' */ - real_T product3_e; /* '/product3' */ + real_T product_iw; /* '/product' */ + real_T product1_g; /* '/product1' */ + real_T product2_n; /* '/product2' */ + real_T product3_o; /* '/product3' */ real_T product4; /* '/product4' */ - real_T add_b; /* '/add' */ - real_T product_od; /* '/product' */ - real_T product1_kh; /* '/product1' */ - real_T product2_b; /* '/product2' */ - real_T add_pc; /* '/add' */ - real_T product_lu; /* '/product' */ - real_T product1_b; /* '/product1' */ - real_T product2_p; /* '/product2' */ - real_T product3_c; /* '/product3' */ - real_T product4_k; /* '/product4' */ - real_T add_d; /* '/add' */ + real_T add_dx; /* '/add' */ + real_T product_k; /* '/product' */ + real_T product1_k; /* '/product1' */ + real_T product2_p; /* '/product2' */ + real_T add_p; /* '/add' */ + real_T product_f; /* '/product' */ + real_T product1_kt; /* '/product1' */ + real_T product2_e; /* '/product2' */ + real_T product3_l; /* '/product3' */ + real_T product4_d; /* '/product4' */ + real_T add_py; /* '/add' */ real_T Product1_h[3]; /* '/Product1' */ real_T Product3_mg[3]; /* '/Product3' */ real_T Sum1_a[3]; /* '/Sum1' */ @@ -644,9 +650,9 @@ typedef struct { real_T Product1_hk; /* '/Product1' */ real_T An; /* '/An' */ real_T Gain_l; /* '/Gain' */ - real_T product1_d; /* '/product1' */ - real_T product_ir; /* '/product' */ - real_T add_g; /* '/add' */ + real_T product1_c; /* '/product1' */ + real_T product_ey; /* '/product' */ + real_T add_h; /* '/add' */ real_T UnitDelay_i; /* '/Unit Delay' */ real_T subtract_i; /* '/subtract' */ real_T Gain1_h; /* '/Gain1' */ @@ -712,9 +718,8 @@ typedef struct { real_T Sum_in[3]; /* '/Sum' */ real_T TrigonometricFunction4; /* '/Trigonometric Function4' */ real_T subtract1; /* '/subtract1' */ - real_T subtract_p; /* '/subtract' */ - real_T add_n[3]; /* '/add' */ - real_T WindVelocity[3]; /* '/BusConversion_InsertedFor_atmosphere_at_inport_0' */ + real_T subtract_j; /* '/subtract' */ + real_T add_l[3]; /* '/add' */ real_T TmpSignalConversionAtSelectorInport1[3]; real_T SFunction_o1; /* '/S-Function' */ real_T SFunction_o2; /* '/S-Function' */ @@ -725,6 +730,10 @@ typedef struct { real_T Selector_m; /* '/Selector' */ real_T MatrixConcatenate[3]; /* '/Matrix Concatenate' */ real_T Acc_g[3]; /* '/To Body Axes' */ + real_T WindVelocity[3]; + real_T WindVelocity_g[3]; /* '/To Body Axes1' */ + real_T WindAngularRates[3]; + real_T WindAngularRates_a[3]; /* '/To Body Axes2' */ real_T hground_p; /* '/BusConversion_InsertedFor_atmosphere_at_inport_0' */ real_T Selector3_b[3]; /* '/Selector3' */ real_T Selector_p; /* '/Selector' */ @@ -746,7 +755,7 @@ typedef struct { real_T Product2_cg; /* '/Product2' */ real_T Product3_c; /* '/Product3' */ real_T CZ; /* '/Sum1' */ - CommandAck ack_h; /* '/proc_cmd' */ + CommandAck ack_i; /* '/proc_cmd' */ uint32_T TmpSignalConversionAtBytePackInport1[3]; uint32_T TmpSignalConversionAtBytePackInport1_l[2]; uint32_T TmpSignalConversionAtBytePackInport4[3]; @@ -807,8 +816,8 @@ typedef struct { real32_T f; /* '/Chart_proc_param_set' */ real32_T vn; /* '/Chart' */ real32_T ve; /* '/Chart' */ - real32_T vn_l; /* '/Chart' */ - real32_T ve_p; /* '/Chart' */ + real32_T vn_c; /* '/Chart' */ + real32_T ve_i; /* '/Chart' */ real32_T Merge_f; /* '/Merge' */ real32_T Sqrt; /* '/Sqrt' */ real32_T rdot; /* '/Merge2' */ @@ -828,11 +837,11 @@ typedef struct { real32_T phi_c; /* '/landing_task' */ real32_T tht_c; /* '/landing_task' */ real32_T thr_c; /* '/takeoff_task' */ - real32_T phi_c_i; /* '/takeoff_task' */ - real32_T tht_c_e; /* '/takeoff_task' */ + real32_T phi_c_m; /* '/takeoff_task' */ + real32_T tht_c_a; /* '/takeoff_task' */ real32_T de_c; /* '/takeoff_task' */ real32_T acts[3]; /* '/sweep_generator' */ - real32_T params_n[7]; /* '/proc_cmd' */ + real32_T params_c[7]; /* '/proc_cmd' */ real32_T Gain1_dw; /* '/Gain1' */ real32_T accel[3]; /* '/Product3' */ real32_T Gain1_a[3]; /* '/Gain1' */ @@ -920,28 +929,29 @@ typedef struct { int32_T y_m; /* '/chat_get_mission_item' */ int32_T ByteUnpack_o1[2]; /* '/Byte Unpack' */ ENUM_mode mode; /* '/Chart' */ - ENUM_mode mode_c; /* '/landing_task' */ - ENUM_mode mode_e; /* '/takeoff_task' */ + ENUM_mode mode_p; /* '/landing_task' */ + ENUM_mode mode_f; /* '/takeoff_task' */ ENUM_LANDED_STATE landed_state_out; /* '/landing_task' */ - ENUM_LANDED_STATE landed_state_out_n;/* '/takeoff_task' */ + ENUM_LANDED_STATE landed_state_out_h;/* '/takeoff_task' */ ENUM_CSAS_YAW CSAS_yaw; /* '/landing_task' */ - ENUM_CSAS_YAW CSAS_yaw_l; /* '/takeoff_task' */ + ENUM_CSAS_YAW CSAS_yaw_m; /* '/takeoff_task' */ ENUM_CSAS_ROLL CSAS_roll; /* '/landing_task' */ - ENUM_CSAS_ROLL CSAS_roll_b; /* '/takeoff_task' */ + ENUM_CSAS_ROLL CSAS_roll_j; /* '/takeoff_task' */ ENUM_CSAS_PITCH CSAS_pitch; /* '/takeoff_task' */ ENUM_AT AT_out; /* '/Chart' */ ENUM_AT AT; /* '/landing_task' */ - ENUM_AT AT_j; /* '/takeoff_task' */ + ENUM_AT AT_l; /* '/takeoff_task' */ ENUM_AFCS_VERT AFCS_VERT_out; /* '/Chart' */ ENUM_AFCS_VERT AFCS_VERT; /* '/landing_task' */ - ENUM_AFCS_VERT AFCS_VERT_o; /* '/takeoff_task' */ + ENUM_AFCS_VERT AFCS_VERT_d; /* '/takeoff_task' */ ENUM_AFCS_LAT AFCS_LNAV; /* '/Chart' */ - ENUM_AFCS_LAT AFCS_LNAV_j; /* '/landing_task' */ - ENUM_AFCS_LAT AFCS_LNAV_p; /* '/takeoff_task' */ + ENUM_AFCS_LAT AFCS_LNAV_i; /* '/landing_task' */ + ENUM_AFCS_LAT AFCS_LNAV_g; /* '/takeoff_task' */ uint16_T Merge1_e; /* '/Merge1' */ uint16_T TmpSignalConversionAtBytePackInport3_p[17]; uint16_T TmpSignalConversionAtBytePackInport5[10]; uint16_T Subtract_m; /* '/Subtract' */ + uint16_T DataTypeConversion; /* '/Data Type Conversion' */ uint16_T Sum_lp; /* '/Sum' */ uint16_T DataTypeConversion1_c; /* '/Data Type Conversion1' */ uint16_T DataTypeConversion1_o; /* '/Data Type Conversion1' */ @@ -971,8 +981,8 @@ typedef struct { uint16_T cur_np; /* '/mission_proc' */ uint16_T command_j; /* '/mav' */ uint16_T WP_out; /* '/Chart' */ - uint16_T WP_out_l; /* '/landing_task' */ - uint16_T WP_out_f; /* '/takeoff_task' */ + uint16_T WP_out_h; /* '/landing_task' */ + uint16_T WP_out_a; /* '/takeoff_task' */ uint16_T peroid_out; /* '/Chart' */ uint16_T WP_cur; /* '/proc_set_ cur' */ uint16_T id; /* '/proc_cmd' */ @@ -1049,6 +1059,7 @@ typedef struct { int16_T param_idx_p; /* '/find_idx_capi' */ int16_T ByteUnpack_o2[3]; /* '/Byte Unpack' */ int16_T temps[4]; /* '/Byte Unpack' */ + uint8_T recovery; /* '/Delay2' */ uint8_T UnitDelay_f[5]; /* '/Unit Delay' */ uint8_T Merge_gk[368]; /* '/Merge' */ uint8_T seq_m; /* '/rec_ctrl' */ @@ -1056,7 +1067,7 @@ typedef struct { uint8_T BytePack[70]; /* '/Byte Pack' */ uint8_T TmpSignalConversionAtBytePackInport6[6]; uint8_T BytePack_k[362]; /* '/Byte Pack' */ - uint8_T DataTypeConversion; /* '/Data Type Conversion' */ + uint8_T DataTypeConversion_n; /* '/Data Type Conversion' */ uint8_T u[4]; /* '/proc_param_value' */ uint8_T param_name[16]; /* '/find_val_capi' */ uint8_T param_value[4]; /* '/find_val_capi' */ @@ -1065,7 +1076,7 @@ typedef struct { uint8_T frame; /* '/Chart_proc_mission_upload' */ uint8_T autocontinue; /* '/Chart_proc_mission_upload' */ uint8_T ack_d; /* '/chat_clear_mission' */ - uint8_T ack_i; /* '/chat_update_mission_item' */ + uint8_T ack_ip; /* '/chat_update_mission_item' */ uint8_T id_g; /* '/Signal Copy' */ uint8_T seq_g; /* '/Unit Delay' */ uint8_T mission_type_g; /* '/Chart_proc_mission_clr_all' */ @@ -1081,7 +1092,7 @@ typedef struct { uint8_T BytePack_h[4]; /* '/Byte Pack' */ uint8_T name_g[16]; /* '/Chart_proc_param_req_read' */ uint8_T mav_char_in; /* '/Selector' */ - uint8_T seq_gf; /* '/traffic_ctrl' */ + uint8_T seq_ee; /* '/traffic_ctrl' */ uint8_T BitwiseOperator; /* '/Bitwise Operator' */ uint8_T DataTypeConversion_d; /* '/Data Type Conversion' */ uint8_T mav_msg2buff_o1[256]; /* '/mav_msg2buff' */ @@ -1142,7 +1153,7 @@ typedef struct { boolean_T is_mission; /* '/mav' */ boolean_T armed; /* '/landing_task' */ boolean_T valid_l; /* '/valid_checking' */ - boolean_T ack_g; /* '/proc_cmd' */ + boolean_T ack_b; /* '/proc_cmd' */ boolean_T LogicalOperator; /* '/Logical Operator' */ boolean_T enabled; /* '/tick' */ boolean_T enabled_j; /* '/tick' */ @@ -1179,7 +1190,7 @@ typedef struct { MavMission m; /* '/chat_update_mission_item' */ CommandMsg msg_msgData; /* '/send_cmd' */ CommandMsg cmd_msgData; /* '/mission_proc' */ - CommandMsg cmd_msgData_o; /* '/proc_cmd' */ + CommandMsg cmd_msgData_a; /* '/proc_cmd' */ CommandMsg cmd2_msgData; /* '/proc_cmd' */ mavlink_param_value_t msg_msgData_e; /* '/proc_param_value' */ mavlink_param_value_t param_val_queue_msgData;/* '/traffic_ctrl' */ @@ -1197,36 +1208,36 @@ typedef struct { real_T m_bpLambda[3]; /* '/table3D_CL_aos' */ real_T PrevY; /* '/Backlash3' */ real_T PrevY_i; /* '/Backlash4' */ - real_T m_bpLambda_i[3]; /* '/table3D_CL_da' */ + real_T m_bpLambda_j[3]; /* '/table3D_CL_da' */ real_T PrevY_b; /* '/Backlash' */ real_T PrevY_bo; /* '/Backlash1' */ - real_T m_bpLambda_j[3]; /* '/table3D_CL_de' */ + real_T m_bpLambda_l[3]; /* '/table3D_CL_de' */ real_T PrevY_p; /* '/Backlash2' */ - real_T m_bpLambda_l[3]; /* '/table3D_CL_dr' */ - real_T m_bpLambda_k[3]; /* '/table3D_CL_df' */ + real_T m_bpLambda_d[3]; /* '/table3D_CL_dr' */ + real_T m_bpLambda_g[3]; /* '/table3D_CL_df' */ real_T m_bpLambda_m[3]; /* '/table3D_CY_aos' */ - real_T m_bpLambda_lj[3]; /* '/table3D_CY_da' */ - real_T m_bpLambda_n[3]; /* '/table3D_CY_dr' */ - real_T m_bpLambda_ik[3]; /* '/table3D_CD_aos' */ - real_T m_bpLambda_d[3]; /* '/table3D_CD_da' */ - real_T m_bpLambda_li[3]; /* '/table3D_CD_de' */ - real_T m_bpLambda_g[3]; /* '/table3D_CD_dr' */ - real_T m_bpLambda_jp[3]; /* '/table3D_CD_df' */ - real_T m_bpLambda_gl[3]; /* '/table3D_Cl_aos' */ - real_T m_bpLambda_j5[3]; /* '/table3D_Cl_da' */ - real_T m_bpLambda_o[3]; /* '/table3D_Cl_dr' */ - real_T m_bpLambda_ls[3]; /* '/table3D_Cm_aos' */ - real_T m_bpLambda_ld[3]; /* '/table3D_Cm_da' */ - real_T m_bpLambda_p[3]; /* '/table3D_Cm_de' */ - real_T m_bpLambda_e[3]; /* '/table3D_Cm_dr' */ - real_T m_bpLambda_ib[3]; /* '/table3D_Cm_df' */ - real_T m_bpLambda_a[3]; /* '/table3D_Cn_aos' */ - real_T m_bpLambda_jw[3]; /* '/table3D_Cn_da' */ - real_T m_bpLambda_c[3]; /* '/table3D_Cn_dr' */ - real_T m_bpLambda_lq[3]; /* '/table3D_thrust' */ - real_T m_bpLambda_o1[3]; /* '/table3D_cft' */ + real_T m_bpLambda_n[3]; /* '/table3D_CY_da' */ + real_T m_bpLambda_k[3]; /* '/table3D_CY_dr' */ + real_T m_bpLambda_dx[3]; /* '/table3D_CD_aos' */ + real_T m_bpLambda_li[3]; /* '/table3D_CD_da' */ + real_T m_bpLambda_gw[3]; /* '/table3D_CD_de' */ + real_T m_bpLambda_jp[3]; /* '/table3D_CD_dr' */ + real_T m_bpLambda_n4[3]; /* '/table3D_CD_df' */ + real_T m_bpLambda_j5[3]; /* '/table3D_Cl_aos' */ + real_T m_bpLambda_a[3]; /* '/table3D_Cl_da' */ + real_T m_bpLambda_mn[3]; /* '/table3D_Cl_dr' */ + real_T m_bpLambda_d1[3]; /* '/table3D_Cm_aos' */ + real_T m_bpLambda_p[3]; /* '/table3D_Cm_da' */ + real_T m_bpLambda_e[3]; /* '/table3D_Cm_de' */ + real_T m_bpLambda_kw[3]; /* '/table3D_Cm_dr' */ + real_T m_bpLambda_jk[3]; /* '/table3D_Cm_df' */ + real_T m_bpLambda_jw[3]; /* '/table3D_Cn_aos' */ + real_T m_bpLambda_la[3]; /* '/table3D_Cn_da' */ + real_T m_bpLambda_nv[3]; /* '/table3D_Cn_dr' */ + real_T m_bpLambda_o[3]; /* '/table3D_thrust' */ + real_T m_bpLambda_ke[3]; /* '/table3D_cft' */ real_T Product2_DWORK4[9]; /* '/Product2' */ - real_T m_bpLambda_kx[3]; /* '/table3D_Nh' */ + real_T m_bpLambda_nk[3]; /* '/table3D_Nh' */ real_T R; /* '/stdatmo' */ real_T gamma; /* '/stdatmo' */ real_T g0; /* '/stdatmo' */ @@ -1251,7 +1262,7 @@ typedef struct { real_T Product_DWORK4[9]; /* '/Product' */ real_T Product_DWORK4_h[9]; /* '/Product' */ CommandAck ack_msgData; /* '/Chart_send_ack' */ - CommandAck ack_msgData_j; /* '/proc_cmd' */ + CommandAck ack_msgData_o; /* '/proc_cmd' */ mavlink_mission_count_t mission_cnt_msgData;/* '/Chart_proc_mission_upload' */ mavlink_mission_count_t send_cnt_msgData;/* '/Chart' */ mavlink_mission_count_t send_cnt_msgData_d;/* '/Chart_proc_mission_req_lst' */ @@ -1421,7 +1432,7 @@ typedef struct { void* msgs_msgInterface; /* '/proc_queue' */ void* msgs_msgHandle; /* '/proc_queue' */ void* msgs_msgDataPtr; /* '/proc_queue' */ - void* msg_msgInterface_e; /* '/send_cmd' */ + void* msg_msgInterface_b; /* '/send_cmd' */ void* ap_ver_msgInterface; /* '/send_auto_hw' */ void* send_req_msgInterface; /* '/Chart' */ void* send_ack_msgInterface; /* '/Chart_proc_mission_clr_all' */ @@ -1458,21 +1469,21 @@ typedef struct { void* command_ack_queue_msgInterface;/* '/traffic_ctrl' */ void* command_ack_queue_msgHandle; /* '/traffic_ctrl' */ void* command_ack_queue_msgDataPtr; /* '/traffic_ctrl' */ - void* send_ack_msgInterface_k; /* '/Chart_send_ack' */ - void* ack_msgInterface_d; /* '/Chart_send_ack' */ + void* send_ack_msgInterface_b; /* '/Chart_send_ack' */ + void* ack_msgInterface_c; /* '/Chart_send_ack' */ void* ack_msgHandle; /* '/Chart_send_ack' */ void* ack_msgDataPtr; /* '/Chart_send_ack' */ void* cmd_msgInterface; /* '/mission_proc' */ void* set_cur_msgInterface_b; /* '/proc_set_ cur' */ void* set_cur_msgHandle; /* '/proc_set_ cur' */ void* set_cur_msgDataPtr; /* '/proc_set_ cur' */ - void* cmd_msgInterface_l; /* '/proc_cmd' */ + void* cmd_msgInterface_f; /* '/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_n; /* '/proc_cmd' */ void* Assertion_slioAccessor; /* '/Assertion' */ void* Assertion_slioAccessor_a; /* '/Assertion' */ real32_T DiscreteTransferFcn_states_m[2];/* '/Discrete Transfer Fcn' */ @@ -1487,7 +1498,7 @@ typedef struct { uint32_T UnitDelay_DSTATE_g; /* '/Unit Delay' */ uint32_T UnitDelay_DSTATE_c; /* '/Unit Delay' */ uint32_T UnitDelay_DSTATE_o; /* '/Unit Delay' */ - real32_T m_bpLambda_e5[3]; /* '/table3D_cft' */ + real32_T m_bpLambda_dl[3]; /* '/table3D_cft' */ real32_T last_az; /* '/nav_corner' */ real32_T last_hdg; /* '/nav_corner' */ real32_T t; /* '/sweep_generator' */ @@ -1505,37 +1516,37 @@ typedef struct { real32_T Tbn_prev[9]; /* '/EKF14s' */ int32_T counter; /* synthesized block */ uint32_T m_bpIndex[3]; /* '/table3D_CL_aos' */ - uint32_T m_bpIndex_e[3]; /* '/table3D_CL_da' */ - uint32_T m_bpIndex_f[3]; /* '/table3D_CL_de' */ - uint32_T m_bpIndex_c[3]; /* '/table3D_CL_dr' */ - uint32_T m_bpIndex_fh[3]; /* '/table3D_CL_df' */ - uint32_T m_bpIndex_a[3]; /* '/table3D_CY_aos' */ - uint32_T m_bpIndex_k[3]; /* '/table3D_CY_da' */ - uint32_T m_bpIndex_d[3]; /* '/table3D_CY_dr' */ - uint32_T m_bpIndex_l[3]; /* '/table3D_CD_aos' */ - uint32_T m_bpIndex_g[3]; /* '/table3D_CD_da' */ - uint32_T m_bpIndex_m[3]; /* '/table3D_CD_de' */ - uint32_T m_bpIndex_b[3]; /* '/table3D_CD_dr' */ - uint32_T m_bpIndex_fs[3]; /* '/table3D_CD_df' */ - uint32_T m_bpIndex_c3[3]; /* '/table3D_Cl_aos' */ - uint32_T m_bpIndex_d4[3]; /* '/table3D_Cl_da' */ - uint32_T m_bpIndex_ks[3]; /* '/table3D_Cl_dr' */ - uint32_T m_bpIndex_j[3]; /* '/table3D_Cm_aos' */ - uint32_T m_bpIndex_o[3]; /* '/table3D_Cm_da' */ - uint32_T m_bpIndex_cl[3]; /* '/table3D_Cm_de' */ - uint32_T m_bpIndex_gc[3]; /* '/table3D_Cm_dr' */ - uint32_T m_bpIndex_dd[3]; /* '/table3D_Cm_df' */ - uint32_T m_bpIndex_h[3]; /* '/table3D_Cn_aos' */ - uint32_T m_bpIndex_jg[3]; /* '/table3D_Cn_da' */ - uint32_T m_bpIndex_fc[3]; /* '/table3D_Cn_dr' */ - uint32_T m_bpIndex_gm[3]; /* '/table3D_thrust' */ - uint32_T m_bpIndex_d2[3]; /* '/table3D_cft' */ - uint32_T m_bpIndex_af[3]; /* '/table3D_Nh' */ + uint32_T m_bpIndex_f[3]; /* '/table3D_CL_da' */ + uint32_T m_bpIndex_c[3]; /* '/table3D_CL_de' */ + uint32_T m_bpIndex_l[3]; /* '/table3D_CL_dr' */ + uint32_T m_bpIndex_m[3]; /* '/table3D_CL_df' */ + uint32_T m_bpIndex_b[3]; /* '/table3D_CY_aos' */ + uint32_T m_bpIndex_d[3]; /* '/table3D_CY_da' */ + uint32_T m_bpIndex_i[3]; /* '/table3D_CY_dr' */ + uint32_T m_bpIndex_g[3]; /* '/table3D_CD_aos' */ + uint32_T m_bpIndex_mu[3]; /* '/table3D_CD_da' */ + uint32_T m_bpIndex_bq[3]; /* '/table3D_CD_de' */ + uint32_T m_bpIndex_fs[3]; /* '/table3D_CD_dr' */ + uint32_T m_bpIndex_lo[3]; /* '/table3D_CD_df' */ + uint32_T m_bpIndex_d4[3]; /* '/table3D_Cl_aos' */ + uint32_T m_bpIndex_da[3]; /* '/table3D_Cl_da' */ + uint32_T m_bpIndex_p[3]; /* '/table3D_Cl_dr' */ + uint32_T m_bpIndex_md[3]; /* '/table3D_Cm_aos' */ + uint32_T m_bpIndex_cl[3]; /* '/table3D_Cm_da' */ + uint32_T m_bpIndex_gc[3]; /* '/table3D_Cm_de' */ + uint32_T m_bpIndex_gq[3]; /* '/table3D_Cm_dr' */ + uint32_T m_bpIndex_h[3]; /* '/table3D_Cm_df' */ + uint32_T m_bpIndex_j[3]; /* '/table3D_Cn_aos' */ + uint32_T m_bpIndex_mq[3]; /* '/table3D_Cn_da' */ + uint32_T m_bpIndex_o[3]; /* '/table3D_Cn_dr' */ + uint32_T m_bpIndex_du[3]; /* '/table3D_thrust' */ + uint32_T m_bpIndex_hv[3]; /* '/table3D_cft' */ + uint32_T m_bpIndex_jw[3]; /* '/table3D_Nh' */ uint32_T m_bpIndex_m1; /* '/1-D Lookup Table' */ - uint32_T m_bpIndex_eh; /* '/IAS_lookup' */ + uint32_T m_bpIndex_e; /* '/IAS_lookup' */ uint32_T m_bpIndex_cs; /* '/1-D Lookup Table' */ - uint32_T m_bpIndex_i; /* '/1-D Lookup Table' */ - uint32_T m_bpIndex_ck[3]; /* '/table3D_cft' */ + uint32_T m_bpIndex_io; /* '/1-D Lookup Table' */ + uint32_T m_bpIndex_iv[3]; /* '/table3D_cft' */ uint32_T wait_time; /* '/traffic_ctrl' */ uint32_T temporalCounter_i1; /* '/traffic_ctrl' */ uint32_T temporalCounter_i1_h; /* '/tick' */ @@ -1561,19 +1572,19 @@ typedef struct { uint16_T UnitDelay1_DSTATE; /* '/Unit Delay1' */ uint16_T UnitDelay2_1_DSTATE[18]; /* '/Unit Delay2' */ uint16_T last_seq; /* '/Chart' */ - uint16_T last_seq_g; /* '/Chart' */ - uint16_T last_seq_b; /* '/Chart' */ - uint16_T last_seq_h; /* '/Chart' */ - uint16_T last_seq_i; /* '/Chart' */ - uint16_T last_seq_be; /* '/Chart' */ - uint16_T last_seq_j; /* '/Chart' */ - uint16_T last_seq_a; /* '/Chart' */ - uint16_T last_seq_ag; /* '/Chart' */ - uint16_T last_seq_gd; /* '/Chart' */ - uint16_T last_seq_f; /* '/Chart' */ - uint16_T last_seq_l; /* '/Chart' */ - uint16_T last_seq_p; /* '/Chart' */ - uint16_T last_seq_i1; /* '/Chart' */ + uint16_T last_seq_i; /* '/Chart' */ + uint16_T last_seq_n; /* '/Chart' */ + uint16_T last_seq_o; /* '/Chart' */ + uint16_T last_seq_c; /* '/Chart' */ + uint16_T last_seq_iy; /* '/Chart' */ + uint16_T last_seq_l; /* '/Chart' */ + uint16_T last_seq_d; /* '/Chart' */ + uint16_T last_seq_b; /* '/Chart' */ + uint16_T last_seq_p; /* '/Chart' */ + uint16_T last_seq_g; /* '/Chart' */ + uint16_T last_seq_oy; /* '/Chart' */ + uint16_T last_seq_dn; /* '/Chart' */ + uint16_T last_seq_ng; /* '/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' */ @@ -1585,13 +1596,14 @@ typedef struct { uint16_T resp_msgData; /* '/Chart_proc_param_set' */ uint16_T resp_msgData_f; /* '/Chart' */ uint16_T resp_msgData_n; /* '/Chart_proc_param_req_read' */ - uint16_T temporalCounter_i1_g; /* '/landing_task' */ - uint16_T temporalCounter_i1_e; /* '/takeoff_task' */ + uint16_T temporalCounter_i1_d; /* '/landing_task' */ + uint16_T temporalCounter_i1_b; /* '/takeoff_task' */ uint16_T temporalCounter_i2; /* '/Chart' */ uint16_T set_cur_msgData_e; /* '/proc_set_ cur' */ uint16_T last_cnt; /* '/check_conn' */ uint16_T temporalCounter_i1_ff; /* '/check_conn' */ uint16_T temporalCounter_i1_c; /* '/check_gps_valid' */ + uint8_T Delay2_DSTATE[2]; /* '/Delay2' */ uint8_T UnitDelay_DSTATE_hx[5]; /* '/Unit Delay' */ uint8_T UnitDelay2_3_DSTATE; /* '/Unit Delay2' */ uint8_T UnitDelay2_2_DSTATE; /* '/Unit Delay2' */ @@ -1626,66 +1638,66 @@ typedef struct { uint8_T temporalCounter_i2_b; /* '/rec_ctrl' */ uint8_T is_active_c64_kb3_autopilot; /* '/Chart' */ uint8_T is_c64_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_e1; /* '/Chart' */ + uint8_T temporalCounter_i1_j; /* '/Chart' */ uint8_T is_active_c62_kb3_autopilot; /* '/Chart' */ uint8_T is_c62_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_gg; /* '/Chart' */ + uint8_T temporalCounter_i1_mk; /* '/Chart' */ uint8_T is_active_c60_kb3_autopilot; /* '/Chart' */ uint8_T is_c60_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_ga; /* '/Chart' */ + uint8_T temporalCounter_i1_a; /* '/Chart' */ uint8_T is_active_c50_kb3_autopilot; /* '/Chart' */ uint8_T is_c50_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_b; /* '/Chart' */ + uint8_T temporalCounter_i1_n; /* '/Chart' */ uint8_T is_active_c49_kb3_autopilot; /* '/Chart' */ uint8_T is_c49_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_g0; /* '/Chart' */ + uint8_T temporalCounter_i1_fh; /* '/Chart' */ uint8_T is_active_c48_kb3_autopilot; /* '/Chart' */ uint8_T is_c48_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_h3; /* '/Chart' */ + uint8_T temporalCounter_i1_g; /* '/Chart' */ uint8_T is_active_c44_kb3_autopilot; /* '/Chart' */ uint8_T is_c44_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_e5; /* '/Chart' */ + uint8_T temporalCounter_i1_i; /* '/Chart' */ uint8_T is_active_c43_kb3_autopilot; /* '/Chart' */ uint8_T is_c43_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_a; /* '/Chart' */ + uint8_T temporalCounter_i1_nd; /* '/Chart' */ uint8_T is_active_c42_kb3_autopilot; /* '/Chart' */ uint8_T is_c42_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_gn; /* '/Chart' */ + uint8_T temporalCounter_i1_jm; /* '/Chart' */ uint8_T is_active_c41_kb3_autopilot; /* '/Chart' */ uint8_T is_c41_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_a2; /* '/Chart' */ + uint8_T temporalCounter_i1_e; /* '/Chart' */ uint8_T is_active_c58_kb3_autopilot; /* '/Chart' */ uint8_T is_c58_kb3_autopilot; /* '/Chart' */ - uint8_T last_seq_gc; /* '/Chart' */ - uint8_T temporalCounter_i1_l; /* '/Chart' */ + uint8_T last_seq_k; /* '/Chart' */ + uint8_T temporalCounter_i1_d2; /* '/Chart' */ uint8_T is_active_c57_kb3_autopilot; /* '/Chart' */ uint8_T is_c57_kb3_autopilot; /* '/Chart' */ - uint8_T last_seq_o; /* '/Chart' */ - uint8_T temporalCounter_i1_at; /* '/Chart' */ + uint8_T last_seq_lo; /* '/Chart' */ + uint8_T temporalCounter_i1_jb; /* '/Chart' */ uint8_T is_active_c56_kb3_autopilot; /* '/Chart' */ uint8_T is_c56_kb3_autopilot; /* '/Chart' */ - uint8_T last_seq_e; /* '/Chart' */ - uint8_T temporalCounter_i1_pj; /* '/Chart' */ + uint8_T last_seq_a; /* '/Chart' */ + uint8_T temporalCounter_i1_ps; /* '/Chart' */ uint8_T is_active_c55_kb3_autopilot; /* '/Chart' */ uint8_T is_c55_kb3_autopilot; /* '/Chart' */ - uint8_T last_seq_jv; /* '/Chart' */ - uint8_T temporalCounter_i1_d; /* '/Chart' */ + uint8_T last_seq_h; /* '/Chart' */ + uint8_T temporalCounter_i1_o; /* '/Chart' */ uint8_T is_active_c54_kb3_autopilot; /* '/Chart' */ uint8_T is_c54_kb3_autopilot; /* '/Chart' */ - uint8_T last_seq_d; /* '/Chart' */ - uint8_T temporalCounter_i1_gu; /* '/Chart' */ + uint8_T last_seq_e; /* '/Chart' */ + uint8_T temporalCounter_i1_ec; /* '/Chart' */ uint8_T is_active_c47_kb3_autopilot; /* '/Chart' */ uint8_T is_c47_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_i; /* '/Chart' */ + uint8_T temporalCounter_i1_jw; /* '/Chart' */ uint8_T is_active_c46_kb3_autopilot; /* '/Chart' */ uint8_T is_c46_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_j; /* '/Chart' */ + uint8_T temporalCounter_i1_bp; /* '/Chart' */ uint8_T is_active_c45_kb3_autopilot; /* '/Chart' */ uint8_T is_c45_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_o; /* '/Chart' */ + uint8_T temporalCounter_i1_ix; /* '/Chart' */ uint8_T is_active_c39_kb3_autopilot; /* '/Chart' */ uint8_T is_c39_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_id; /* '/Chart' */ + uint8_T temporalCounter_i1_jg; /* '/Chart' */ uint8_T is_active_c31_mavlink_utils; /* '/proc_param_value' */ uint8_T is_c31_mavlink_utils; /* '/proc_param_value' */ uint8_T temporalCounter_i1_ia; /* '/proc_param_value' */ @@ -1693,7 +1705,7 @@ typedef struct { uint8_T is_active_c29_mavlink_utils; /* '/Chart_proc_mission_upload' */ uint8_T is_c29_mavlink_utils; /* '/Chart_proc_mission_upload' */ uint8_T retry; /* '/Chart_proc_mission_upload' */ - uint8_T temporalCounter_i1_n; /* '/Chart_proc_mission_upload' */ + uint8_T temporalCounter_i1_n3; /* '/Chart_proc_mission_upload' */ uint8_T is_active_c22_mavlink_utils; /* '/merge_ack' */ uint8_T is_active_c36_kb3_autopilot; /* '/traffic_ctrl' */ uint8_T is_c36_kb3_autopilot; /* '/traffic_ctrl' */ @@ -1716,7 +1728,7 @@ typedef struct { uint8_T is_c48_mission_proc; /* '/mission_proc' */ uint8_T is_active_c29_kb3_autopilot; /* '/Chart' */ uint8_T is_c29_kb3_autopilot; /* '/Chart' */ - uint8_T temporalCounter_i1_k; /* '/Chart' */ + uint8_T temporalCounter_i1_bk; /* '/Chart' */ uint8_T is_active_c18_kb3_autopilot; /* '/landing_task' */ uint8_T is_c18_kb3_autopilot; /* '/landing_task' */ uint8_T is_active_c28_kb3_autopilot; /* '/takeoff_task' */ @@ -1731,7 +1743,7 @@ typedef struct { uint8_T is_cover; /* '/Chart' */ uint8_T is_balloon; /* '/Chart' */ uint8_T is_cut; /* '/Chart' */ - uint8_T temporalCounter_i1_h1; /* '/Chart' */ + uint8_T temporalCounter_i1_de; /* '/Chart' */ uint8_T is_active_c14_C2_proc_comm; /* '/proc_set_ cur' */ uint8_T is_c14_C2_proc_comm; /* '/proc_set_ cur' */ uint8_T is_active_c54_update_rc_h; /* '/valid_checking' */ @@ -1960,7 +1972,6 @@ typedef struct { const real_T Selector1[3]; /* '/Selector1' */ const real_T Selector[3]; /* '/Selector' */ const real_T Selector2[3]; /* '/Selector2' */ - const real_T WindAngularRates[3]; /* '/BusConversion_InsertedFor_atmosphere_at_inport_0' */ const real_T Selector4; /* '/Selector4' */ const uint16_T Width; /* '/Width' */ const uint16_T Width1; /* '/Width1' */ @@ -2050,6 +2061,9 @@ struct P_SIL_T_ { real_T AccelScaleMatrix[9]; /* Variable: AccelScaleMatrix * Referenced by: '/Scale factors & Cross-coupling errors' */ + real_T CD_paracute; /* Variable: CD_paracute + * Referenced by: '/Constant10' + */ real_T GyroBias[3]; /* Variable: GyroBias * Referenced by: '/Measurement bias' */ @@ -2135,6 +2149,11 @@ struct P_SIL_T_ { * '/Constant2' * '/Sc_Iyy' */ + real32_T alt_lst[6]; /* Variable: alt_lst + * Referenced by: + * '/1-D Lookup Table' + * '/IAS_lookup' + */ real32_T aoa_scale; /* Variable: aoa_scale * Referenced by: '/Gain' */ @@ -2283,6 +2302,12 @@ struct P_SIL_T_ { * '/Constant' * '/Constant' */ + real32_T tas_gl[6]; /* Variable: tas_gl + * Referenced by: '/IAS_lookup' + */ + real32_T tas_qc[6]; /* Variable: tas_qc + * Referenced by: '/1-D Lookup Table' + */ real32_T w_as; /* Variable: w_as * Referenced by: '/Constant Single6' */ @@ -2320,6 +2345,9 @@ struct P_SIL_T_ { * '/system_id' * '/system_id' */ + boolean_T use_ext_ins; /* Variable: use_ext_ins + * Referenced by: '/Constant2' + */ }; /* Type definition for custom storage class: Struct */ diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.c b/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.c index 738c43f..60a158b 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.c +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'SIL'. * - * Model version : 1.527 + * Model version : 1.537 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Dec 8 11:41:06 2020 + * C/C++ source code generated on : Tue Dec 8 17:00:08 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -56,217 +56,227 @@ static const rtwCAPI_ModelParameters rtModelParameters[] = { { 1, TARGET_STRING("AccelScaleMatrix"), 0, 1, 0 }, - { 2, TARGET_STRING("GyroBias"), 0, 0, 0 }, + { 2, TARGET_STRING("CD_paracute"), 0, 2, 0 }, - { 3, TARGET_STRING("GyroGBias"), 0, 0, 0 }, + { 3, TARGET_STRING("GyroBias"), 0, 0, 0 }, - { 4, TARGET_STRING("GyroScaleMatrix"), 0, 1, 0 }, + { 4, TARGET_STRING("GyroGBias"), 0, 0, 0 }, - { 5, TARGET_STRING("IMUloc"), 0, 0, 0 }, + { 5, TARGET_STRING("GyroScaleMatrix"), 0, 1, 0 }, - { 6, TARGET_STRING("mass0"), 0, 2, 0 }, + { 6, TARGET_STRING("IMUloc"), 0, 0, 0 }, - { 7, TARGET_STRING("throttle_k"), 0, 2, 0 }, + { 7, TARGET_STRING("mass0"), 0, 2, 0 }, - { 8, TARGET_STRING("throttle_rate"), 0, 2, 0 }, + { 8, TARGET_STRING("throttle_k"), 0, 2, 0 }, - { 9, TARGET_STRING("wind_east"), 0, 0, 0 }, + { 9, TARGET_STRING("throttle_rate"), 0, 2, 0 }, - { 10, TARGET_STRING("wind_level"), 0, 0, 0 }, + { 10, TARGET_STRING("wind_east"), 0, 0, 0 }, - { 11, TARGET_STRING("wind_north"), 0, 0, 0 }, + { 11, TARGET_STRING("wind_level"), 0, 0, 0 }, - { 12, TARGET_STRING("CLa"), 1, 2, 0 }, + { 12, TARGET_STRING("wind_north"), 0, 0, 0 }, - { 13, TARGET_STRING("Clda_lst"), 1, 3, 0 }, + { 13, TARGET_STRING("CLa"), 1, 2, 0 }, - { 14, TARGET_STRING("Clp_lst"), 1, 3, 0 }, + { 14, TARGET_STRING("Clda_lst"), 1, 3, 0 }, - { 15, TARGET_STRING("Cmde_lst"), 1, 3, 0 }, + { 15, TARGET_STRING("Clp_lst"), 1, 3, 0 }, - { 16, TARGET_STRING("Cmq_lst"), 1, 3, 0 }, + { 16, TARGET_STRING("Cmde_lst"), 1, 3, 0 }, - { 17, TARGET_STRING("Gamma_L1"), 1, 2, 0 }, + { 17, TARGET_STRING("Cmq_lst"), 1, 3, 0 }, - { 18, TARGET_STRING("Ixx"), 1, 2, 0 }, + { 18, TARGET_STRING("Gamma_L1"), 1, 2, 0 }, - { 19, TARGET_STRING("Iyy"), 1, 2, 0 }, + { 19, TARGET_STRING("Ixx"), 1, 2, 0 }, - { 20, TARGET_STRING("Ma_lst"), 1, 3, 0 }, + { 20, TARGET_STRING("Iyy"), 1, 2, 0 }, - { 21, TARGET_STRING("RefArea"), 1, 2, 0 }, + { 21, TARGET_STRING("Ma_lst"), 1, 3, 0 }, - { 22, TARGET_STRING("RefLen"), 1, 2, 0 }, + { 22, TARGET_STRING("RefArea"), 1, 2, 0 }, - { 23, TARGET_STRING("RefSpan"), 1, 2, 0 }, + { 23, TARGET_STRING("RefLen"), 1, 2, 0 }, - { 24, TARGET_STRING("aoa_scale"), 1, 2, 0 }, + { 24, TARGET_STRING("RefSpan"), 1, 2, 0 }, - { 25, TARGET_STRING("aos_scale"), 1, 2, 0 }, + { 25, TARGET_STRING("alt_lst"), 1, 4, 0 }, - { 26, TARGET_STRING("dal0"), 1, 2, 0 }, + { 26, TARGET_STRING("aoa_scale"), 1, 2, 0 }, - { 27, TARGET_STRING("dar0"), 1, 2, 0 }, + { 27, TARGET_STRING("aos_scale"), 1, 2, 0 }, - { 28, TARGET_STRING("de_takeoff"), 1, 2, 0 }, + { 28, TARGET_STRING("dal0"), 1, 2, 0 }, - { 29, TARGET_STRING("deadband_da"), 1, 2, 0 }, + { 29, TARGET_STRING("dar0"), 1, 2, 0 }, - { 30, TARGET_STRING("deadband_de"), 1, 2, 0 }, + { 30, TARGET_STRING("de_takeoff"), 1, 2, 0 }, - { 31, TARGET_STRING("deadband_dr"), 1, 2, 0 }, + { 31, TARGET_STRING("deadband_da"), 1, 2, 0 }, - { 32, TARGET_STRING("del0"), 1, 2, 0 }, + { 32, TARGET_STRING("deadband_de"), 1, 2, 0 }, - { 33, TARGET_STRING("der0"), 1, 2, 0 }, + { 33, TARGET_STRING("deadband_dr"), 1, 2, 0 }, - { 34, TARGET_STRING("dr0"), 1, 2, 0 }, + { 34, TARGET_STRING("del0"), 1, 2, 0 }, - { 35, TARGET_STRING("h_thr2rpm"), 1, 0, 0 }, + { 35, TARGET_STRING("der0"), 1, 2, 0 }, - { 36, TARGET_STRING("k_dal"), 1, 2, 0 }, + { 36, TARGET_STRING("dr0"), 1, 2, 0 }, - { 37, TARGET_STRING("k_dar"), 1, 2, 0 }, + { 37, TARGET_STRING("h_thr2rpm"), 1, 0, 0 }, - { 38, TARGET_STRING("k_del"), 1, 2, 0 }, + { 38, TARGET_STRING("k_dal"), 1, 2, 0 }, - { 39, TARGET_STRING("k_der"), 1, 2, 0 }, + { 39, TARGET_STRING("k_dar"), 1, 2, 0 }, - { 40, TARGET_STRING("k_dr"), 1, 2, 0 }, + { 40, TARGET_STRING("k_del"), 1, 2, 0 }, - { 41, TARGET_STRING("ksi_v2tht"), 1, 2, 0 }, + { 41, TARGET_STRING("k_der"), 1, 2, 0 }, - { 42, TARGET_STRING("m"), 1, 2, 0 }, + { 42, TARGET_STRING("k_dr"), 1, 2, 0 }, - { 43, TARGET_STRING("max_az"), 1, 2, 0 }, + { 43, TARGET_STRING("ksi_v2tht"), 1, 2, 0 }, - { 44, TARGET_STRING("max_da"), 1, 2, 0 }, + { 44, TARGET_STRING("m"), 1, 2, 0 }, - { 45, TARGET_STRING("max_de"), 1, 2, 0 }, + { 45, TARGET_STRING("max_az"), 1, 2, 0 }, - { 46, TARGET_STRING("max_dr"), 1, 2, 0 }, + { 46, TARGET_STRING("max_da"), 1, 2, 0 }, - { 47, TARGET_STRING("max_hdot"), 1, 2, 0 }, + { 47, TARGET_STRING("max_de"), 1, 2, 0 }, - { 48, TARGET_STRING("max_p"), 1, 2, 0 }, + { 48, TARGET_STRING("max_dr"), 1, 2, 0 }, - { 49, TARGET_STRING("max_phi"), 1, 2, 0 }, + { 49, TARGET_STRING("max_hdot"), 1, 2, 0 }, - { 50, TARGET_STRING("max_q"), 1, 2, 0 }, + { 50, TARGET_STRING("max_p"), 1, 2, 0 }, - { 51, TARGET_STRING("max_rpm"), 1, 0, 0 }, + { 51, TARGET_STRING("max_phi"), 1, 2, 0 }, - { 52, TARGET_STRING("max_thr"), 1, 2, 0 }, + { 52, TARGET_STRING("max_q"), 1, 2, 0 }, - { 53, TARGET_STRING("max_thrust"), 1, 0, 0 }, + { 53, TARGET_STRING("max_rpm"), 1, 0, 0 }, - { 54, TARGET_STRING("max_tht"), 1, 2, 0 }, + { 54, TARGET_STRING("max_thr"), 1, 2, 0 }, - { 55, TARGET_STRING("min_de"), 1, 2, 0 }, + { 55, TARGET_STRING("max_thrust"), 1, 0, 0 }, - { 56, TARGET_STRING("min_hdot"), 1, 2, 0 }, + { 56, TARGET_STRING("max_tht"), 1, 2, 0 }, - { 57, TARGET_STRING("min_rpm"), 1, 0, 0 }, + { 57, TARGET_STRING("min_de"), 1, 2, 0 }, - { 58, TARGET_STRING("min_tht"), 1, 2, 0 }, + { 58, TARGET_STRING("min_hdot"), 1, 2, 0 }, - { 59, TARGET_STRING("recovery_ias"), 1, 2, 0 }, + { 59, TARGET_STRING("min_rpm"), 1, 0, 0 }, - { 60, TARGET_STRING("w_as"), 1, 2, 0 }, + { 60, TARGET_STRING("min_tht"), 1, 2, 0 }, - { 61, TARGET_STRING("w_v"), 1, 2, 0 }, + { 61, TARGET_STRING("recovery_ias"), 1, 2, 0 }, - { 62, TARGET_STRING("w_v2tht"), 1, 2, 0 }, + { 62, TARGET_STRING("tas_gl"), 1, 4, 0 }, - { 63, TARGET_STRING("w_x"), 1, 2, 0 }, + { 63, TARGET_STRING("tas_qc"), 1, 4, 0 }, - { 64, TARGET_STRING("w_y"), 1, 2, 0 }, + { 64, TARGET_STRING("w_as"), 1, 2, 0 }, - { 65, TARGET_STRING("washout_r_den"), 1, 0, 0 }, + { 65, TARGET_STRING("w_v"), 1, 2, 0 }, - { 66, TARGET_STRING("washout_r_num"), 1, 4, 0 }, + { 66, TARGET_STRING("w_v2tht"), 1, 2, 0 }, - { 67, TARGET_STRING("system_id"), 2, 2, 0 }, + { 67, TARGET_STRING("w_x"), 1, 2, 0 }, - { 68, TARGET_STRING("Att0"), 0, 0, 0 }, + { 68, TARGET_STRING("w_y"), 1, 2, 0 }, - { 69, TARGET_STRING("BoosterUncertGain"), 0, 2, 0 }, + { 69, TARGET_STRING("washout_r_den"), 1, 0, 0 }, - { 70, TARGET_STRING("CD0UncertVal"), 0, 2, 0 }, + { 70, TARGET_STRING("washout_r_num"), 1, 5, 0 }, - { 71, TARGET_STRING("CG_bias_m"), 0, 0, 0 }, + { 71, TARGET_STRING("system_id"), 2, 2, 0 }, - { 72, TARGET_STRING("CL0UncertVal"), 0, 2, 0 }, + { 72, TARGET_STRING("use_ext_ins"), 3, 2, 0 }, - { 73, TARGET_STRING("CLaUncertGain"), 0, 2, 0 }, + { 73, TARGET_STRING("Att0"), 0, 0, 0 }, - { 74, TARGET_STRING("CLdeUncertGain"), 0, 2, 0 }, + { 74, TARGET_STRING("BoosterUncertGain"), 0, 2, 0 }, - { 75, TARGET_STRING("CLqUncertGain"), 0, 2, 0 }, + { 75, TARGET_STRING("CD0UncertVal"), 0, 2, 0 }, - { 76, TARGET_STRING("CY0UncertVal"), 0, 2, 0 }, + { 76, TARGET_STRING("CG_bias_m"), 0, 0, 0 }, - { 77, TARGET_STRING("CYbUncertGain"), 0, 2, 0 }, + { 77, TARGET_STRING("CL0UncertVal"), 0, 2, 0 }, - { 78, TARGET_STRING("CYdrUncertGain"), 0, 2, 0 }, + { 78, TARGET_STRING("CLaUncertGain"), 0, 2, 0 }, - { 79, TARGET_STRING("CYpUncertGain"), 0, 2, 0 }, + { 79, TARGET_STRING("CLdeUncertGain"), 0, 2, 0 }, - { 80, TARGET_STRING("CYrUncertGain"), 0, 2, 0 }, + { 80, TARGET_STRING("CLqUncertGain"), 0, 2, 0 }, - { 81, TARGET_STRING("Cl0UncertVal"), 0, 2, 0 }, + { 81, TARGET_STRING("CY0UncertVal"), 0, 2, 0 }, - { 82, TARGET_STRING("ClbUncertGain"), 0, 2, 0 }, + { 82, TARGET_STRING("CYbUncertGain"), 0, 2, 0 }, - { 83, TARGET_STRING("CldaUncertGain"), 0, 2, 0 }, + { 83, TARGET_STRING("CYdrUncertGain"), 0, 2, 0 }, - { 84, TARGET_STRING("CldrUncertGain"), 0, 2, 0 }, + { 84, TARGET_STRING("CYpUncertGain"), 0, 2, 0 }, - { 85, TARGET_STRING("ClpUncertGain"), 0, 2, 0 }, + { 85, TARGET_STRING("CYrUncertGain"), 0, 2, 0 }, - { 86, TARGET_STRING("ClrUncertGain"), 0, 2, 0 }, + { 86, TARGET_STRING("Cl0UncertVal"), 0, 2, 0 }, - { 87, TARGET_STRING("Cm0UncertVal"), 0, 2, 0 }, + { 87, TARGET_STRING("ClbUncertGain"), 0, 2, 0 }, - { 88, TARGET_STRING("CmaUncertGain"), 0, 2, 0 }, + { 88, TARGET_STRING("CldaUncertGain"), 0, 2, 0 }, - { 89, TARGET_STRING("CmdeUncertGain"), 0, 2, 0 }, + { 89, TARGET_STRING("CldrUncertGain"), 0, 2, 0 }, - { 90, TARGET_STRING("CmqUncertGain"), 0, 2, 0 }, + { 90, TARGET_STRING("ClpUncertGain"), 0, 2, 0 }, - { 91, TARGET_STRING("Cn0UncertVal"), 0, 2, 0 }, + { 91, TARGET_STRING("ClrUncertGain"), 0, 2, 0 }, - { 92, TARGET_STRING("CnbUncertGain"), 0, 2, 0 }, + { 92, TARGET_STRING("Cm0UncertVal"), 0, 2, 0 }, - { 93, TARGET_STRING("CndaUncertGain"), 0, 2, 0 }, + { 93, TARGET_STRING("CmaUncertGain"), 0, 2, 0 }, - { 94, TARGET_STRING("CndrUncertGain"), 0, 2, 0 }, + { 94, TARGET_STRING("CmdeUncertGain"), 0, 2, 0 }, - { 95, TARGET_STRING("CnpUncertGain"), 0, 2, 0 }, + { 95, TARGET_STRING("CmqUncertGain"), 0, 2, 0 }, - { 96, TARGET_STRING("CnrUncertGain"), 0, 2, 0 }, + { 96, TARGET_STRING("Cn0UncertVal"), 0, 2, 0 }, - { 97, TARGET_STRING("InertiaMoments_bias_kg_m2"), 0, 1, 0 }, + { 97, TARGET_STRING("CnbUncertGain"), 0, 2, 0 }, - { 98, TARGET_STRING("ThrustUncertGain"), 0, 2, 0 }, + { 98, TARGET_STRING("CndaUncertGain"), 0, 2, 0 }, - { 99, TARGET_STRING("X0"), 0, 0, 0 }, + { 99, TARGET_STRING("CndrUncertGain"), 0, 2, 0 }, - { 100, TARGET_STRING("booster_att_rad"), 0, 0, 0 }, + { 100, TARGET_STRING("CnpUncertGain"), 0, 2, 0 }, - { 101, TARGET_STRING("booster_pos_m"), 0, 0, 0 }, + { 101, TARGET_STRING("CnrUncertGain"), 0, 2, 0 }, - { 102, TARGET_STRING("engine_att_rad"), 0, 0, 0 }, + { 102, TARGET_STRING("InertiaMoments_bias_kg_m2"), 0, 1, 0 }, - { 103, TARGET_STRING("engine_pos_m"), 0, 0, 0 }, + { 103, TARGET_STRING("ThrustUncertGain"), 0, 2, 0 }, - { 104, TARGET_STRING("force_CG"), 0, 2, 0 }, + { 104, TARGET_STRING("X0"), 0, 0, 0 }, - { 105, TARGET_STRING("force_CG_pos_m"), 0, 0, 0 }, + { 105, TARGET_STRING("booster_att_rad"), 0, 0, 0 }, - { 106, TARGET_STRING("hground"), 0, 2, 0 }, + { 106, TARGET_STRING("booster_pos_m"), 0, 0, 0 }, - { 107, TARGET_STRING("transrate"), 3, 2, 0 }, + { 107, TARGET_STRING("engine_att_rad"), 0, 0, 0 }, + + { 108, TARGET_STRING("engine_pos_m"), 0, 0, 0 }, + + { 109, TARGET_STRING("force_CG"), 0, 2, 0 }, + + { 110, TARGET_STRING("force_CG_pos_m"), 0, 0, 0 }, + + { 111, TARGET_STRING("hground"), 0, 2, 0 }, + + { 112, TARGET_STRING("transrate"), 4, 2, 0 }, { 0, (NULL), 0, 0, 0 } }; @@ -277,112 +287,117 @@ static const rtwCAPI_ModelParameters rtModelParameters[] = { static void* rtDataAddrMap[] = { &SIL_P.AccelBias[0], /* 0: Model Parameter */ &SIL_P.AccelScaleMatrix[0], /* 1: Model Parameter */ - &SIL_P.GyroBias[0], /* 2: Model Parameter */ - &SIL_P.GyroGBias[0], /* 3: Model Parameter */ - &SIL_P.GyroScaleMatrix[0], /* 4: Model Parameter */ - &SIL_P.IMUloc[0], /* 5: Model Parameter */ - &SIL_P.mass0, /* 6: Model Parameter */ - &SIL_P.throttle_k, /* 7: Model Parameter */ - &SIL_P.throttle_rate, /* 8: Model Parameter */ - &SIL_P.wind_east[0], /* 9: Model Parameter */ - &SIL_P.wind_level[0], /* 10: Model Parameter */ - &SIL_P.wind_north[0], /* 11: Model Parameter */ - &SIL_P.CLa, /* 12: Model Parameter */ - &SIL_P.Clda_lst[0], /* 13: Model Parameter */ - &SIL_P.Clp_lst[0], /* 14: Model Parameter */ - &SIL_P.Cmde_lst[0], /* 15: Model Parameter */ - &SIL_P.Cmq_lst[0], /* 16: Model Parameter */ - &SIL_P.Gamma_L1, /* 17: Model Parameter */ - &SIL_P.Ixx, /* 18: Model Parameter */ - &SIL_P.Iyy, /* 19: Model Parameter */ - &SIL_P.Ma_lst[0], /* 20: Model Parameter */ - &SIL_P.RefArea, /* 21: Model Parameter */ - &SIL_P.RefLen, /* 22: Model Parameter */ - &SIL_P.RefSpan, /* 23: Model Parameter */ - &SIL_P.aoa_scale, /* 24: Model Parameter */ - &SIL_P.aos_scale, /* 25: Model Parameter */ - &SIL_P.dal0, /* 26: Model Parameter */ - &SIL_P.dar0, /* 27: Model Parameter */ - &SIL_P.de_takeoff, /* 28: Model Parameter */ - &SIL_P.deadband_da, /* 29: Model Parameter */ - &SIL_P.deadband_de, /* 30: Model Parameter */ - &SIL_P.deadband_dr, /* 31: Model Parameter */ - &SIL_P.del0, /* 32: Model Parameter */ - &SIL_P.der0, /* 33: Model Parameter */ - &SIL_P.dr0, /* 34: Model Parameter */ - &SIL_P.h_thr2rpm[0], /* 35: Model Parameter */ - &SIL_P.k_dal, /* 36: Model Parameter */ - &SIL_P.k_dar, /* 37: Model Parameter */ - &SIL_P.k_del, /* 38: Model Parameter */ - &SIL_P.k_der, /* 39: Model Parameter */ - &SIL_P.k_dr, /* 40: Model Parameter */ - &SIL_P.ksi_v2tht, /* 41: Model Parameter */ - &SIL_P.m, /* 42: Model Parameter */ - &SIL_P.max_az, /* 43: Model Parameter */ - &SIL_P.max_da, /* 44: Model Parameter */ - &SIL_P.max_de, /* 45: Model Parameter */ - &SIL_P.max_dr, /* 46: Model Parameter */ - &SIL_P.max_hdot, /* 47: Model Parameter */ - &SIL_P.max_p, /* 48: Model Parameter */ - &SIL_P.max_phi, /* 49: Model Parameter */ - &SIL_P.max_q, /* 50: Model Parameter */ - &SIL_P.max_rpm[0], /* 51: Model Parameter */ - &SIL_P.max_thr, /* 52: Model Parameter */ - &SIL_P.max_thrust[0], /* 53: Model Parameter */ - &SIL_P.max_tht, /* 54: Model Parameter */ - &SIL_P.min_de, /* 55: Model Parameter */ - &SIL_P.min_hdot, /* 56: Model Parameter */ - &SIL_P.min_rpm[0], /* 57: Model Parameter */ - &SIL_P.min_tht, /* 58: Model Parameter */ - &SIL_P.recovery_ias, /* 59: Model Parameter */ - &SIL_P.w_as, /* 60: Model Parameter */ - &SIL_P.w_v, /* 61: Model Parameter */ - &SIL_P.w_v2tht, /* 62: Model Parameter */ - &SIL_P.w_x, /* 63: Model Parameter */ - &SIL_P.w_y, /* 64: Model Parameter */ - &SIL_P.washout_r_den[0], /* 65: Model Parameter */ - &SIL_P.washout_r_num[0], /* 66: Model Parameter */ - &SIL_P.system_id, /* 67: Model Parameter */ - Att0, /* 68: Model Parameter */ - &BoosterUncertGain, /* 69: Model Parameter */ - &CD0UncertVal, /* 70: Model Parameter */ - CG_bias_m, /* 71: Model Parameter */ - &CL0UncertVal, /* 72: Model Parameter */ - &CLaUncertGain, /* 73: Model Parameter */ - &CLdeUncertGain, /* 74: Model Parameter */ - &CLqUncertGain, /* 75: Model Parameter */ - &CY0UncertVal, /* 76: Model Parameter */ - &CYbUncertGain, /* 77: Model Parameter */ - &CYdrUncertGain, /* 78: Model Parameter */ - &CYpUncertGain, /* 79: Model Parameter */ - &CYrUncertGain, /* 80: Model Parameter */ - &Cl0UncertVal, /* 81: Model Parameter */ - &ClbUncertGain, /* 82: Model Parameter */ - &CldaUncertGain, /* 83: Model Parameter */ - &CldrUncertGain, /* 84: Model Parameter */ - &ClpUncertGain, /* 85: Model Parameter */ - &ClrUncertGain, /* 86: Model Parameter */ - &Cm0UncertVal, /* 87: Model Parameter */ - &CmaUncertGain, /* 88: Model Parameter */ - &CmdeUncertGain, /* 89: Model Parameter */ - &CmqUncertGain, /* 90: Model Parameter */ - &Cn0UncertVal, /* 91: Model Parameter */ - &CnbUncertGain, /* 92: Model Parameter */ - &CndaUncertGain, /* 93: Model Parameter */ - &CndrUncertGain, /* 94: Model Parameter */ - &CnpUncertGain, /* 95: Model Parameter */ - &CnrUncertGain, /* 96: Model Parameter */ - InertiaMoments_bias_kg_m2, /* 97: Model Parameter */ - &ThrustUncertGain, /* 98: Model Parameter */ - X0, /* 99: Model Parameter */ - booster_att_rad, /* 100: Model Parameter */ - booster_pos_m, /* 101: Model Parameter */ - engine_att_rad, /* 102: Model Parameter */ - engine_pos_m, /* 103: Model Parameter */ - &force_CG, /* 104: Model Parameter */ - force_CG_pos_m, /* 105: Model Parameter */ - &hground, /* 106: Model Parameter */ - &transrate, /* 107: Model Parameter */ + &SIL_P.CD_paracute, /* 2: Model Parameter */ + &SIL_P.GyroBias[0], /* 3: Model Parameter */ + &SIL_P.GyroGBias[0], /* 4: Model Parameter */ + &SIL_P.GyroScaleMatrix[0], /* 5: Model Parameter */ + &SIL_P.IMUloc[0], /* 6: Model Parameter */ + &SIL_P.mass0, /* 7: Model Parameter */ + &SIL_P.throttle_k, /* 8: Model Parameter */ + &SIL_P.throttle_rate, /* 9: Model Parameter */ + &SIL_P.wind_east[0], /* 10: Model Parameter */ + &SIL_P.wind_level[0], /* 11: Model Parameter */ + &SIL_P.wind_north[0], /* 12: Model Parameter */ + &SIL_P.CLa, /* 13: Model Parameter */ + &SIL_P.Clda_lst[0], /* 14: Model Parameter */ + &SIL_P.Clp_lst[0], /* 15: Model Parameter */ + &SIL_P.Cmde_lst[0], /* 16: Model Parameter */ + &SIL_P.Cmq_lst[0], /* 17: Model Parameter */ + &SIL_P.Gamma_L1, /* 18: Model Parameter */ + &SIL_P.Ixx, /* 19: Model Parameter */ + &SIL_P.Iyy, /* 20: Model Parameter */ + &SIL_P.Ma_lst[0], /* 21: Model Parameter */ + &SIL_P.RefArea, /* 22: Model Parameter */ + &SIL_P.RefLen, /* 23: Model Parameter */ + &SIL_P.RefSpan, /* 24: Model Parameter */ + &SIL_P.alt_lst[0], /* 25: Model Parameter */ + &SIL_P.aoa_scale, /* 26: Model Parameter */ + &SIL_P.aos_scale, /* 27: Model Parameter */ + &SIL_P.dal0, /* 28: Model Parameter */ + &SIL_P.dar0, /* 29: Model Parameter */ + &SIL_P.de_takeoff, /* 30: Model Parameter */ + &SIL_P.deadband_da, /* 31: Model Parameter */ + &SIL_P.deadband_de, /* 32: Model Parameter */ + &SIL_P.deadband_dr, /* 33: Model Parameter */ + &SIL_P.del0, /* 34: Model Parameter */ + &SIL_P.der0, /* 35: Model Parameter */ + &SIL_P.dr0, /* 36: Model Parameter */ + &SIL_P.h_thr2rpm[0], /* 37: Model Parameter */ + &SIL_P.k_dal, /* 38: Model Parameter */ + &SIL_P.k_dar, /* 39: Model Parameter */ + &SIL_P.k_del, /* 40: Model Parameter */ + &SIL_P.k_der, /* 41: Model Parameter */ + &SIL_P.k_dr, /* 42: Model Parameter */ + &SIL_P.ksi_v2tht, /* 43: Model Parameter */ + &SIL_P.m, /* 44: Model Parameter */ + &SIL_P.max_az, /* 45: Model Parameter */ + &SIL_P.max_da, /* 46: Model Parameter */ + &SIL_P.max_de, /* 47: Model Parameter */ + &SIL_P.max_dr, /* 48: Model Parameter */ + &SIL_P.max_hdot, /* 49: Model Parameter */ + &SIL_P.max_p, /* 50: Model Parameter */ + &SIL_P.max_phi, /* 51: Model Parameter */ + &SIL_P.max_q, /* 52: Model Parameter */ + &SIL_P.max_rpm[0], /* 53: Model Parameter */ + &SIL_P.max_thr, /* 54: Model Parameter */ + &SIL_P.max_thrust[0], /* 55: Model Parameter */ + &SIL_P.max_tht, /* 56: Model Parameter */ + &SIL_P.min_de, /* 57: Model Parameter */ + &SIL_P.min_hdot, /* 58: Model Parameter */ + &SIL_P.min_rpm[0], /* 59: Model Parameter */ + &SIL_P.min_tht, /* 60: Model Parameter */ + &SIL_P.recovery_ias, /* 61: Model Parameter */ + &SIL_P.tas_gl[0], /* 62: Model Parameter */ + &SIL_P.tas_qc[0], /* 63: Model Parameter */ + &SIL_P.w_as, /* 64: Model Parameter */ + &SIL_P.w_v, /* 65: Model Parameter */ + &SIL_P.w_v2tht, /* 66: Model Parameter */ + &SIL_P.w_x, /* 67: Model Parameter */ + &SIL_P.w_y, /* 68: Model Parameter */ + &SIL_P.washout_r_den[0], /* 69: Model Parameter */ + &SIL_P.washout_r_num[0], /* 70: Model Parameter */ + &SIL_P.system_id, /* 71: Model Parameter */ + &SIL_P.use_ext_ins, /* 72: Model Parameter */ + Att0, /* 73: Model Parameter */ + &BoosterUncertGain, /* 74: Model Parameter */ + &CD0UncertVal, /* 75: Model Parameter */ + CG_bias_m, /* 76: Model Parameter */ + &CL0UncertVal, /* 77: Model Parameter */ + &CLaUncertGain, /* 78: Model Parameter */ + &CLdeUncertGain, /* 79: Model Parameter */ + &CLqUncertGain, /* 80: Model Parameter */ + &CY0UncertVal, /* 81: Model Parameter */ + &CYbUncertGain, /* 82: Model Parameter */ + &CYdrUncertGain, /* 83: Model Parameter */ + &CYpUncertGain, /* 84: Model Parameter */ + &CYrUncertGain, /* 85: Model Parameter */ + &Cl0UncertVal, /* 86: Model Parameter */ + &ClbUncertGain, /* 87: Model Parameter */ + &CldaUncertGain, /* 88: Model Parameter */ + &CldrUncertGain, /* 89: Model Parameter */ + &ClpUncertGain, /* 90: Model Parameter */ + &ClrUncertGain, /* 91: Model Parameter */ + &Cm0UncertVal, /* 92: Model Parameter */ + &CmaUncertGain, /* 93: Model Parameter */ + &CmdeUncertGain, /* 94: Model Parameter */ + &CmqUncertGain, /* 95: Model Parameter */ + &Cn0UncertVal, /* 96: Model Parameter */ + &CnbUncertGain, /* 97: Model Parameter */ + &CndaUncertGain, /* 98: Model Parameter */ + &CndrUncertGain, /* 99: Model Parameter */ + &CnpUncertGain, /* 100: Model Parameter */ + &CnrUncertGain, /* 101: Model Parameter */ + InertiaMoments_bias_kg_m2, /* 102: Model Parameter */ + &ThrustUncertGain, /* 103: Model Parameter */ + X0, /* 104: Model Parameter */ + booster_att_rad, /* 105: Model Parameter */ + booster_pos_m, /* 106: Model Parameter */ + engine_att_rad, /* 107: Model Parameter */ + engine_pos_m, /* 108: Model Parameter */ + &force_CG, /* 109: Model Parameter */ + force_CG_pos_m, /* 110: Model Parameter */ + &hground, /* 111: Model Parameter */ + &transrate, /* 112: Model Parameter */ }; /* Declare Data Run-Time Dimension Buffer Addresses statically */ @@ -402,6 +417,8 @@ static TARGET_CONST rtwCAPI_DataTypeMap rtDataTypeMap[] = { { "unsigned short", "uint16_T", 0, 0, sizeof(uint16_T), SS_UINT16, 0, 0 }, + { "unsigned char", "boolean_T", 0, 0, sizeof(boolean_T), SS_BOOLEAN, 0, 0 }, + { "unsigned int", "uint32_T", 0, 0, sizeof(uint32_T), SS_UINT32, 0, 0 } }; @@ -426,7 +443,9 @@ static const rtwCAPI_DimensionMap rtDimensionMap[] = { { rtwCAPI_VECTOR, 6, 2, 0 }, - { rtwCAPI_VECTOR, 8, 2, 0 } + { rtwCAPI_VECTOR, 8, 2, 0 }, + + { rtwCAPI_VECTOR, 10, 2, 0 } }; /* Dimension Array- use dimArrayIndex to access elements of this array */ @@ -440,7 +459,9 @@ static const uint_T rtDimensionArray[] = { 1, /* 6 */ 11, /* 7 */ 1, /* 8 */ - 2 /* 9 */ + 6, /* 9 */ + 1, /* 10 */ + 2 /* 11 */ }; /* Fixed Point Map */ @@ -473,7 +494,7 @@ static rtwCAPI_ModelMappingStaticInfo mmiStatic = { (NULL), 0 }, { rtBlockParameters, 0, - rtModelParameters, 108 }, + rtModelParameters, 113 }, { (NULL), 0 }, @@ -481,10 +502,10 @@ static rtwCAPI_ModelMappingStaticInfo mmiStatic = { rtElementMap, rtSampleTimeMap, rtDimensionArray }, "float", - { 2867524716U, - 2836882080U, - 1168751364U, - 1565834496U }, + { 465138852U, + 4187206040U, + 2268910348U, + 4291241177U }, (NULL), 0, 0 }; diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.h b/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.h index 0ad9792..c9b7d17 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.h +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'SIL'. * - * Model version : 1.527 + * Model version : 1.537 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Dec 8 11:41:06 2020 + * C/C++ source code generated on : Tue Dec 8 17:00:08 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL_data.c b/SIL/work/SIL_ert_shrlib_rtw/SIL_data.c index 3ba89e4..b61fed2 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL_data.c +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL_data.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'SIL'. * - * Model version : 1.527 + * Model version : 1.537 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Dec 8 11:41:06 2020 + * C/C++ source code generated on : Tue Dec 8 17:00:08 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -46,8 +46,6 @@ const ConstB_SIL_T SIL_ConstB = { { 1.0, 0.0, 0.96 }, /* '/Selector' */ { -0.5, -0.5, 0.6 }, /* '/Selector2' */ - - { 0.0, 0.0, 0.0 }, /* '/BusConversion_InsertedFor_atmosphere_at_inport_0' */ 1.0, /* '/Selector4' */ 70U, /* '/Width' */ 76U, /* '/Width1' */ @@ -72,6 +70,11 @@ P_SIL_T SIL_P = { */ { 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 }, + /* Variable: CD_paracute + * Referenced by: '/Constant10' + */ + 1.0, + /* Variable: GyroBias * Referenced by: '/Measurement bias' */ @@ -205,6 +208,13 @@ P_SIL_T SIL_P = { */ 1.7F, + /* Variable: alt_lst + * Referenced by: + * '/1-D Lookup Table' + * '/IAS_lookup' + */ + { 0.0F, 1500.0F, 5000.0F, 11000.0F, 12000.0F, 13000.0F }, + /* Variable: aoa_scale * Referenced by: '/Gain' */ @@ -425,6 +435,16 @@ P_SIL_T SIL_P = { */ 85.0F, + /* Variable: tas_gl + * Referenced by: '/IAS_lookup' + */ + { 100.0F, 100.0F, 150.0F, 200.0F, 220.0F, 230.0F }, + + /* Variable: tas_qc + * Referenced by: '/1-D Lookup Table' + */ + { 200.0F, 200.0F, 240.0F, 240.0F, 240.0F, 240.0F }, + /* Variable: w_as * Referenced by: '/Constant Single6' */ @@ -476,7 +496,12 @@ P_SIL_T SIL_P = { * '/system_id' * '/system_id' */ - 1U + 1U, + + /* Variable: use_ext_ins + * Referenced by: '/Constant2' + */ + 1 }; /* Constant parameters (default storage) */ diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL_private.h b/SIL/work/SIL_ert_shrlib_rtw/SIL_private.h index d4243b4..1df321e 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL_private.h +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL_private.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'SIL'. * - * Model version : 1.527 + * Model version : 1.537 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Dec 8 11:41:06 2020 + * C/C++ source code generated on : Tue Dec 8 17:00:08 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) @@ -167,10 +167,6 @@ extern const real_T rtCP_pooled_CZNBGvU8AdwP[8]; extern const real_T rtCP_pooled_XV5wljJs37pb[8]; extern const real_T rtCP_pooled_0HfvtrFi8uTo[1920]; extern const real_T rtCP_pooled_aDZD8UOYGVWw[160]; -extern const real32_T rtCP_pooled_Yvl18BcVpm9d[6]; -extern const real32_T rtCP_pooled_mUCG6SnXIkCg[6]; -extern const real32_T rtCP_pooled_4Tcn651nWPEA[8]; -extern const real32_T rtCP_pooled_KC2WXQzXgX8x[8]; extern const real32_T rtCP_pooled_HF8NWw8ahBZB[3]; extern const real32_T rtCP_pooled_NsfoROSYwB8n[3]; extern const real32_T rtCP_pooled_A05DoahVwG6e[160]; @@ -730,22 +726,10 @@ extern const uint8_T rtCP_pooled_mhMab4fllVU3; #define rtCP_table2D_NhAB_bp02Data rtCP_pooled_9d1wyEHLKC6F /* Expression: kb3_propulsion_mdl.indep_alt_m * Referenced by: '/table2D_NhAB' */ -#define rtCP_uDLookupTable_tableData rtCP_pooled_Yvl18BcVpm9d /* Computed Parameter: rtCP_uDLookupTable_tableData - * Referenced by: '/1-D Lookup Table' - */ -#define rtCP_uDLookupTable_bp01Data rtCP_pooled_mUCG6SnXIkCg /* Computed Parameter: rtCP_uDLookupTable_bp01Data - * Referenced by: '/1-D Lookup Table' - */ -#define rtCP_IAS_lookup_tableData rtCP_pooled_4Tcn651nWPEA /* Computed Parameter: rtCP_IAS_lookup_tableData - * Referenced by: '/IAS_lookup' - */ -#define rtCP_IAS_lookup_bp01Data rtCP_pooled_KC2WXQzXgX8x /* Computed Parameter: rtCP_IAS_lookup_bp01Data - * Referenced by: '/IAS_lookup' - */ -#define rtCP_uDLookupTable_tableData_n rtCP_pooled_HF8NWw8ahBZB /* Computed Parameter: rtCP_uDLookupTable_tableData_n +#define rtCP_uDLookupTable_tableData rtCP_pooled_HF8NWw8ahBZB /* Computed Parameter: rtCP_uDLookupTable_tableData * Referenced by: '/1-D Lookup Table' */ -#define rtCP_uDLookupTable_bp01Data_d rtCP_pooled_NsfoROSYwB8n /* Computed Parameter: rtCP_uDLookupTable_bp01Data_d +#define rtCP_uDLookupTable_bp01Data rtCP_pooled_NsfoROSYwB8n /* Computed Parameter: rtCP_uDLookupTable_bp01Data * Referenced by: '/1-D Lookup Table' */ #define rtCP_uDLookupTable_tableData_m rtCP_pooled_HF8NWw8ahBZB /* Computed Parameter: rtCP_uDLookupTable_tableData_m @@ -754,37 +738,37 @@ extern const uint8_T rtCP_pooled_mhMab4fllVU3; #define rtCP_uDLookupTable_bp01Data_a rtCP_pooled_NsfoROSYwB8n /* Computed Parameter: rtCP_uDLookupTable_bp01Data_a * Referenced by: '/1-D Lookup Table' */ -#define rtCP_table2D_cftAB_tableData_c rtCP_pooled_A05DoahVwG6e /* Computed Parameter: rtCP_table2D_cftAB_tableData_c +#define rtCP_table2D_cftAB_tableData_m rtCP_pooled_A05DoahVwG6e /* Computed Parameter: rtCP_table2D_cftAB_tableData_m * Referenced by: '/table2D_cftAB' */ -#define rtCP_table2D_cftAB_bp01Data_p rtCP_pooled_CjwZJxM33sUf /* Computed Parameter: rtCP_table2D_cftAB_bp01Data_p +#define rtCP_table2D_cftAB_bp01Data_k rtCP_pooled_CjwZJxM33sUf /* Computed Parameter: rtCP_table2D_cftAB_bp01Data_k * Referenced by: '/table2D_cftAB' */ -#define rtCP_table2D_cftAB_bp02Data_p rtCP_pooled_4R9HnDqNNfyC /* Computed Parameter: rtCP_table2D_cftAB_bp02Data_p +#define rtCP_table2D_cftAB_bp02Data_l rtCP_pooled_4R9HnDqNNfyC /* Computed Parameter: rtCP_table2D_cftAB_bp02Data_l * Referenced by: '/table2D_cftAB' */ -#define rtCP_table1D_thrAB_map_tableData_b rtCP_pooled_YtY2876fJdi4/* Computed Parameter: rtCP_table1D_thrAB_map_tableData_b +#define rtCP_table1D_thrAB_map_tableData_a rtCP_pooled_YtY2876fJdi4/* Computed Parameter: rtCP_table1D_thrAB_map_tableData_a * Referenced by: '/table1D_thrAB_map' */ -#define rtCP_table1D_thrAB_map_bp01Data_d rtCP_pooled_8oAFyuceoFlQ/* Computed Parameter: rtCP_table1D_thrAB_map_bp01Data_d +#define rtCP_table1D_thrAB_map_bp01Data_k rtCP_pooled_8oAFyuceoFlQ/* Computed Parameter: rtCP_table1D_thrAB_map_bp01Data_k * Referenced by: '/table1D_thrAB_map' */ -#define rtCP_table1D_thr_map_tableData_p rtCP_pooled_iDGBVG9z8tBx/* Computed Parameter: rtCP_table1D_thr_map_tableData_p +#define rtCP_table1D_thr_map_tableData_d rtCP_pooled_iDGBVG9z8tBx/* Computed Parameter: rtCP_table1D_thr_map_tableData_d * Referenced by: '/table1D_thr_map' */ -#define rtCP_table1D_thr_map_bp01Data_m rtCP_pooled_8oAFyuceoFlQ /* Computed Parameter: rtCP_table1D_thr_map_bp01Data_m +#define rtCP_table1D_thr_map_bp01Data_j rtCP_pooled_8oAFyuceoFlQ /* Computed Parameter: rtCP_table1D_thr_map_bp01Data_j * Referenced by: '/table1D_thr_map' */ -#define rtCP_table3D_cft_tableData_o rtCP_pooled_89Nhzifd6aSY /* Computed Parameter: rtCP_table3D_cft_tableData_o +#define rtCP_table3D_cft_tableData_n rtCP_pooled_89Nhzifd6aSY /* Computed Parameter: rtCP_table3D_cft_tableData_n * Referenced by: '/table3D_cft' */ -#define rtCP_table3D_cft_bp01Data_c rtCP_pooled_ohnMAdtcG72M /* Computed Parameter: rtCP_table3D_cft_bp01Data_c +#define rtCP_table3D_cft_bp01Data_j rtCP_pooled_ohnMAdtcG72M /* Computed Parameter: rtCP_table3D_cft_bp01Data_j * Referenced by: '/table3D_cft' */ -#define rtCP_table3D_cft_bp02Data_b rtCP_pooled_4R9HnDqNNfyC /* Computed Parameter: rtCP_table3D_cft_bp02Data_b +#define rtCP_table3D_cft_bp02Data_n rtCP_pooled_4R9HnDqNNfyC /* Computed Parameter: rtCP_table3D_cft_bp02Data_n * Referenced by: '/table3D_cft' */ -#define rtCP_table3D_cft_bp03Data_m rtCP_pooled_aoFl7QCPgCDt /* Computed Parameter: rtCP_table3D_cft_bp03Data_m +#define rtCP_table3D_cft_bp03Data_j rtCP_pooled_aoFl7QCPgCDt /* Computed Parameter: rtCP_table3D_cft_bp03Data_j * Referenced by: '/table3D_cft' */ #define rtCP_table2D_cftAB_maxIndex rtCP_pooled_a3Su5DwHejJI /* Computed Parameter: rtCP_table2D_cftAB_maxIndex @@ -904,10 +888,10 @@ extern const uint8_T rtCP_pooled_mhMab4fllVU3; #define rtCP_table3D_thrust_dimSizes rtCP_pooled_rsQCCyrSe0iD /* Computed Parameter: rtCP_table3D_thrust_dimSizes * Referenced by: '/table3D_thrust' */ -#define rtCP_table2D_cftAB_maxIndex_p rtCP_pooled_a3Su5DwHejJI /* Computed Parameter: rtCP_table2D_cftAB_maxIndex_p +#define rtCP_table2D_cftAB_maxIndex_b rtCP_pooled_a3Su5DwHejJI /* Computed Parameter: rtCP_table2D_cftAB_maxIndex_b * Referenced by: '/table2D_cftAB' */ -#define rtCP_table3D_cft_dimSizes_p rtCP_pooled_rsQCCyrSe0iD /* Computed Parameter: rtCP_table3D_cft_dimSizes_p +#define rtCP_table3D_cft_dimSizes_l rtCP_pooled_rsQCCyrSe0iD /* Computed Parameter: rtCP_table3D_cft_dimSizes_l * Referenced by: '/table3D_cft' */ #define rtCP_table3D_Nh_dimSizes rtCP_pooled_rsQCCyrSe0iD /* Computed Parameter: rtCP_table3D_Nh_dimSizes diff --git a/SIL/work/SIL_ert_shrlib_rtw/SIL_types.h b/SIL/work/SIL_ert_shrlib_rtw/SIL_types.h index cf9a9e3..7abc7e6 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/SIL_types.h +++ b/SIL/work/SIL_ert_shrlib_rtw/SIL_types.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'SIL'. * - * Model version : 1.527 + * Model version : 1.537 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Dec 8 11:41:06 2020 + * C/C++ source code generated on : Tue Dec 8 17:00:08 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) diff --git a/SIL/work/SIL_ert_shrlib_rtw/buildInfo.mat b/SIL/work/SIL_ert_shrlib_rtw/buildInfo.mat index e3a2e51..bb3c78f 100644 Binary files a/SIL/work/SIL_ert_shrlib_rtw/buildInfo.mat and b/SIL/work/SIL_ert_shrlib_rtw/buildInfo.mat differ diff --git a/SIL/work/SIL_ert_shrlib_rtw/rtmodel.h b/SIL/work/SIL_ert_shrlib_rtw/rtmodel.h index c602e4e..7094efd 100644 --- a/SIL/work/SIL_ert_shrlib_rtw/rtmodel.h +++ b/SIL/work/SIL_ert_shrlib_rtw/rtmodel.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'SIL'. * - * Model version : 1.527 + * Model version : 1.537 * Simulink Coder version : 9.0 (R2018b) 24-May-2018 - * C/C++ source code generated on : Tue Dec 8 11:41:06 2020 + * C/C++ source code generated on : Tue Dec 8 17:00:08 2020 * * Target selection: ert_shrlib.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) diff --git a/SIL/work/SIL_win64.dll b/SIL/work/SIL_win64.dll index dfee696..0585d41 100644 Binary files a/SIL/work/SIL_win64.dll and b/SIL/work/SIL_win64.dll differ