From 3a6bdb80239b3750b3764dea9a5bc9d04ddccec3 Mon Sep 17 00:00:00 2001 From: cfif Date: Tue, 14 Jul 2026 09:53:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=B4=D0=B0=D1=82=D1=87=D0=B8=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=B8=20IO=20UDS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HVAC_model.c | 41682 ++++++++++++++++++++++------------------- HVAC_model.h | 7425 ++++---- HVAC_model_data.c | 364 +- HVAC_model_private.h | 218 +- HVAC_model_types.h | 260 +- Model_Task.c | 17 + Model_Task.h | 6 + 7 files changed, 26771 insertions(+), 23201 deletions(-) diff --git a/HVAC_model.c b/HVAC_model.c index ed82201..1d5b31a 100644 --- a/HVAC_model.c +++ b/HVAC_model.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.1202 + * Model version : 1.1314 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Fri Jun 26 14:54:36 2026 + * C/C++ source code generated on : Sat Jul 11 14:20:55 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -53,11 +53,9 @@ /* Named constants for Chart: '/13,1,3,15 Valve control' */ #define IN_Entry_2W ((uint8_t)1U) #define IN_Entry_3W ((uint8_t)1U) -#define IN_ExitSeq_2W ((uint8_t)2U) -#define IN_ExitSeq_3W ((uint8_t)2U) -#define IN_NO_ACTIVE_CHILD_o ((uint8_t)0U) -#define IN_Wait_2W ((uint8_t)3U) -#define IN_Wait_3W ((uint8_t)3U) +#define IN_NO_ACTIVE_CHILD_c ((uint8_t)0U) +#define IN_Wait_2W ((uint8_t)2U) +#define IN_Wait_3W ((uint8_t)2U) /* Named constants for Chart: '/Chart' */ #define IN_COND_1 ((uint8_t)1U) @@ -88,7 +86,11 @@ #define IN_Rear_A_C_OFF ((uint8_t)1U) #define IN_Rear_A_C_ON ((uint8_t)2U) -/* Named constants for Chart: '/Full_Rec_Active' */ +/* Named constants for Chart: '/AC_Max_Active' */ +#define IN_AC_MAX_OFF ((uint8_t)1U) +#define IN_AC_MAX_ON ((uint8_t)2U) + +/* Named constants for Chart: '/Defrost_Active' */ #define IN_REC_OFF ((uint8_t)1U) #define IN_REC_ON ((uint8_t)2U) @@ -234,9 +236,9 @@ const ActuatorCmdBusInput HVAC_model_rtZActuatorCmdBusInput = { }; /* ActuatorCmdBusInput ground */ /* Exported block states */ -ActuatorCmdBus Actuator_Ch0_Command_Model;/* '/Data Store Memory15' */ -ActuatorCmdBus Actuator_Ch1_Command_Model;/* '/Data Store Memory15' */ -ActuatorCmdBus Actuator_Ch2_Command_Model;/* '/Data Store Memory15' */ +ActuatorCmdBus Actuator_Ch0_Command_Model;/* '/Data Store Memory272' */ +ActuatorCmdBus Actuator_Ch1_Command_Model;/* '/Data Store Memory273' */ +ActuatorCmdBus Actuator_Ch2_Command_Model;/* '/Data Store Memory274' */ ActuatorCmdBusInput Actuator_Ch0_Status_Model;/* '/Data Store Memory61' */ ActuatorCmdBusInput Actuator_Ch1_Status_Model;/* '/Data Store Memory62' */ ActuatorCmdBusInput Actuator_Ch2_Status_Model;/* '/Data Store Memory63' */ @@ -260,13 +262,18 @@ RT_MODEL *const rtM = &rtM_; /* Forward declaration for local functions */ static void E_COMP_MANAGER(bool *Enable_Comp_PID, const int16_t *g_assEVA_TG_AMB_F_n, const int16_t *g_assEVA_TG_AMB_R_h); +static void enter_atomic_REAR_ONLY(void); +static void enter_atomic_FRONT_ONLY(void); +static void enter_atomic_FULL_SYNC(void); +static void enter_atomic_SEPARATE_FRONT_AND_REAR(void); +static void enter_atomic_NO_SYNC(void); static double find_index(int16_t delta); -int16_t look1_is16lu64n32tu16Ds32Is16_binlcs(int16_t u0, const int16_t bp0[], - const uint16_t table[], uint32_t maxIndex) +int8_t look1_iu8lu64n56ts8Ds16_binlcs(uint8_t u0, const uint8_t bp0[], const + int8_t table[], uint32_t maxIndex) { uint64_t frac; uint32_t iLeft; - uint16_t yL_0d0; + int8_t yL_0d0; /* Column-major Lookup 1-D Search method: 'binary' @@ -306,13 +313,78 @@ int16_t look1_is16lu64n32tu16Ds32Is16_binlcs(int16_t u0, const int16_t bp0[], bpIdx = (iRght + iLeft) >> 1U; } - int16_t bpLeftVar; + uint8_t bpLeftVar; bpLeftVar = bp0[iLeft]; - frac = ((uint64_t)(uint32_t)(u0 - bpLeftVar) << 32) / (uint32_t)(bp0[iLeft + + frac = ((uint64_t)((uint32_t)u0 - bpLeftVar) << 56) / ((uint32_t)bp0[iLeft + 1U] - bpLeftVar); } else { iLeft = maxIndex - 1U; - frac = 4294967296ULL; + frac = 72057594037927936ULL; + } + + /* Column-major Interpolation 1-D + Interpolation method: 'Linear point-slope' + Use last breakpoint for index at or above upper limit: 'off' + Rounding mode: 'simplest' + Overflow mode: 'wrapping' + */ + yL_0d0 = table[iLeft]; + return (int8_t)((int8_t)(((int16_t)(table[iLeft + 1U] - yL_0d0) * (int64_t) + frac) >> 56) + yL_0d0); +} + +int16_t look1_iu8lu64n48ts16Ds32_binlcs(uint8_t u0, const uint8_t bp0[], const + int16_t table[], uint32_t maxIndex) +{ + uint64_t frac; + uint32_t iLeft; + int16_t yL_0d0; + + /* Column-major Lookup 1-D + Search method: 'binary' + Use previous index: 'off' + Interpolation method: 'Linear point-slope' + Extrapolation method: 'Clip' + Use last breakpoint for index at or above upper limit: 'off' + Remove protection against out-of-range input in generated code: 'off' + Rounding mode: 'simplest' + */ + /* Prelookup - Index and Fraction + Index Search method: 'binary' + Extrapolation method: 'Clip' + Use previous index: 'off' + Use last breakpoint for index at or above upper limit: 'off' + Remove protection against out-of-range input in generated code: 'off' + Rounding mode: 'simplest' + */ + if (u0 <= bp0[0U]) { + iLeft = 0U; + frac = 0ULL; + } else if (u0 < bp0[maxIndex]) { + uint32_t bpIdx; + uint32_t iRght; + + /* Binary Search */ + bpIdx = maxIndex >> 1U; + iLeft = 0U; + iRght = maxIndex; + while (iRght - iLeft > 1U) { + if (u0 < bp0[bpIdx]) { + iRght = bpIdx; + } else { + iLeft = bpIdx; + } + + bpIdx = (iRght + iLeft) >> 1U; + } + + uint8_t bpLeftVar; + bpLeftVar = bp0[iLeft]; + frac = ((uint64_t)((uint32_t)u0 - bpLeftVar) << 48) / ((uint32_t)bp0[iLeft + + 1U] - bpLeftVar); + } else { + iLeft = maxIndex - 1U; + frac = 281474976710656ULL; } /* Column-major Interpolation 1-D @@ -323,31 +395,7 @@ int16_t look1_is16lu64n32tu16Ds32Is16_binlcs(int16_t u0, const int16_t bp0[], */ yL_0d0 = table[iLeft]; return (int16_t)((int16_t)(((table[iLeft + 1U] - yL_0d0) * (int64_t)frac) >> - 32) + (int16_t)yL_0d0); -} - -uint32_t binsearch_u32s16(int16_t u_2, const int16_t bp[], uint32_t startIndex, - uint32_t maxIndex) -{ - uint32_t bpIdx; - uint32_t bpIndex; - uint32_t iRght; - - /* Binary Search */ - bpIdx = startIndex; - bpIndex = 0U; - iRght = maxIndex; - while (iRght - bpIndex > 1U) { - if (u_2 < bp[bpIdx]) { - iRght = bpIdx; - } else { - bpIndex = bpIdx; - } - - bpIdx = (iRght + bpIndex) >> 1U; - } - - return bpIndex; + 48) + yL_0d0); } int16_t look1_is16lu64n32Ds32_binlcs(int16_t u0, const int16_t bp0[], const @@ -833,6 +881,98 @@ uint8_t look1_iu16lu64n48tu8_binlcse(uint16_t u0, const uint16_t bp0[], const return y; } +int16_t look1_iu16tdIs16_binlcs(uint16_t u0, const uint16_t bp0[], const double + table[], uint32_t maxIndex) +{ + double frac; + double yL_0d0; + int32_t tmp_1; + uint32_t iLeft; + int16_t tmp; + int16_t tmp_0; + + /* Column-major Lookup 1-D + Search method: 'binary' + Use previous index: 'off' + Interpolation method: 'Linear point-slope' + Extrapolation method: 'Clip' + Use last breakpoint for index at or above upper limit: 'off' + Remove protection against out-of-range input in generated code: 'off' + */ + /* Prelookup - Index and Fraction + Index Search method: 'binary' + Extrapolation method: 'Clip' + Use previous index: 'off' + Use last breakpoint for index at or above upper limit: 'off' + Remove protection against out-of-range input in generated code: 'off' + */ + if (u0 <= bp0[0U]) { + iLeft = 0U; + frac = 0.0; + } else if (u0 < bp0[maxIndex]) { + uint32_t bpIdx; + uint32_t iRght; + + /* Binary Search */ + bpIdx = maxIndex >> 1U; + iLeft = 0U; + iRght = maxIndex; + while (iRght - iLeft > 1U) { + if (u0 < bp0[bpIdx]) { + iRght = bpIdx; + } else { + iLeft = bpIdx; + } + + bpIdx = (iRght + iLeft) >> 1U; + } + + uint16_t bpLeftVar; + bpLeftVar = bp0[iLeft]; + frac = (double)((uint32_t)u0 - bpLeftVar) / (double)((uint32_t)bp0[iLeft + + 1U] - bpLeftVar); + } else { + iLeft = maxIndex - 1U; + frac = 1.0; + } + + /* Column-major Interpolation 1-D + Interpolation method: 'Linear point-slope' + Use last breakpoint for index at or above upper limit: 'off' + Overflow mode: 'saturate' + */ + yL_0d0 = table[iLeft]; + if (yL_0d0 < 32768.0) { + if (yL_0d0 >= -32768.0) { + tmp = (int16_t)yL_0d0; + } else { + tmp = INT16_MIN; + } + } else { + tmp = INT16_MAX; + } + + frac *= table[iLeft + 1U] - yL_0d0; + if (frac < 32768.0) { + if (frac >= -32768.0) { + tmp_0 = (int16_t)frac; + } else { + tmp_0 = INT16_MIN; + } + } else { + tmp_0 = INT16_MAX; + } + + tmp_1 = tmp + tmp_0; + if (tmp_1 > 32767) { + tmp_1 = 32767; + } else if (tmp_1 < -32768) { + tmp_1 = -32768; + } + + return (int16_t)tmp_1; +} + int16_t look1_iu16lu64n48ts16Ds32_binlcs(uint16_t u0, const uint16_t bp0[], const int16_t table[], uint32_t maxIndex) { @@ -1037,98 +1177,6 @@ double look1_bs16ts16DdId_binlc(double u0, const int16_t bp0[], const int16_t return ((double)table[iLeft + 1U] - (double)uCast) * frac + (double)uCast; } -int16_t look1_iu16tdIs16_binlcs(uint16_t u0, const uint16_t bp0[], const double - table[], uint32_t maxIndex) -{ - double frac; - double yL_0d0; - int32_t tmp_1; - uint32_t iLeft; - int16_t tmp; - int16_t tmp_0; - - /* Column-major Lookup 1-D - Search method: 'binary' - Use previous index: 'off' - Interpolation method: 'Linear point-slope' - Extrapolation method: 'Clip' - Use last breakpoint for index at or above upper limit: 'off' - Remove protection against out-of-range input in generated code: 'off' - */ - /* Prelookup - Index and Fraction - Index Search method: 'binary' - Extrapolation method: 'Clip' - Use previous index: 'off' - Use last breakpoint for index at or above upper limit: 'off' - Remove protection against out-of-range input in generated code: 'off' - */ - if (u0 <= bp0[0U]) { - iLeft = 0U; - frac = 0.0; - } else if (u0 < bp0[maxIndex]) { - uint32_t bpIdx; - uint32_t iRght; - - /* Binary Search */ - bpIdx = maxIndex >> 1U; - iLeft = 0U; - iRght = maxIndex; - while (iRght - iLeft > 1U) { - if (u0 < bp0[bpIdx]) { - iRght = bpIdx; - } else { - iLeft = bpIdx; - } - - bpIdx = (iRght + iLeft) >> 1U; - } - - uint16_t bpLeftVar; - bpLeftVar = bp0[iLeft]; - frac = (double)((uint32_t)u0 - bpLeftVar) / (double)((uint32_t)bp0[iLeft + - 1U] - bpLeftVar); - } else { - iLeft = maxIndex - 1U; - frac = 1.0; - } - - /* Column-major Interpolation 1-D - Interpolation method: 'Linear point-slope' - Use last breakpoint for index at or above upper limit: 'off' - Overflow mode: 'saturate' - */ - yL_0d0 = table[iLeft]; - if (yL_0d0 < 32768.0) { - if (yL_0d0 >= -32768.0) { - tmp = (int16_t)yL_0d0; - } else { - tmp = INT16_MIN; - } - } else { - tmp = INT16_MAX; - } - - frac *= table[iLeft + 1U] - yL_0d0; - if (frac < 32768.0) { - if (frac >= -32768.0) { - tmp_0 = (int16_t)frac; - } else { - tmp_0 = INT16_MIN; - } - } else { - tmp_0 = INT16_MAX; - } - - tmp_1 = tmp + tmp_0; - if (tmp_1 > 32767) { - tmp_1 = 32767; - } else if (tmp_1 < -32768) { - tmp_1 = -32768; - } - - return (int16_t)tmp_1; -} - double look1_iu16td_binlc(uint16_t u0, const uint16_t bp0[], const double table[], uint32_t maxIndex) { @@ -1190,7 +1238,7 @@ double look1_iu16td_binlc(uint16_t u0, const uint16_t bp0[], const double table[ return (table[iLeft + 1U] - yL_0d0) * frac + yL_0d0; } -uint32_t plook_u32s16_bincka(int16_t u_3, const int16_t bp[], uint32_t maxIndex) +uint32_t plook_u32s16_bincka(int16_t u_2, const int16_t bp[], uint32_t maxIndex) { uint32_t bpIndex; @@ -1201,10 +1249,10 @@ uint32_t plook_u32s16_bincka(int16_t u_3, const int16_t bp[], uint32_t maxIndex) Use last breakpoint for index at or above upper limit: 'on' Remove protection against out-of-range input in generated code: 'off' */ - if (u_3 <= bp[0U]) { + if (u_2 <= bp[0U]) { bpIndex = 0U; - } else if (u_3 < bp[maxIndex]) { - bpIndex = binsearch_u32s16(u_3, bp, maxIndex >> 1U, maxIndex); + } else if (u_2 < bp[maxIndex]) { + bpIndex = binsearch_u32s16(u_2, bp, maxIndex >> 1U, maxIndex); } else { bpIndex = maxIndex; } @@ -1212,14 +1260,38 @@ uint32_t plook_u32s16_bincka(int16_t u_3, const int16_t bp[], uint32_t maxIndex) return bpIndex; } +uint32_t binsearch_u32s16(int16_t u_3, const int16_t bp[], uint32_t startIndex, + uint32_t maxIndex) +{ + uint32_t bpIdx; + uint32_t bpIndex; + uint32_t iRght; + + /* Binary Search */ + bpIdx = startIndex; + bpIndex = 0U; + iRght = maxIndex; + while (iRght - bpIndex > 1U) { + if (u_3 < bp[bpIdx]) { + iRght = bpIdx; + } else { + bpIndex = bpIdx; + } + + bpIdx = (iRght + bpIndex) >> 1U; + } + + return bpIndex; +} + /* * Output and update for atomic system: - * '/get_tg_FLL_for_LVL' - * '/get_tg_FLL_for_LVL' - * '/get_tg_for_LVL' - * '/get_tg_FLL_for_LVL' - * '/get_tg_FLL_for_LVL' - * '/get_tg_for_LVL' + * '/get_tg_FLL_for_LVL' + * '/get_tg_FLL_for_LVL' + * '/get_tg_for_LVL' + * '/get_tg_FLL_for_LVL' + * '/get_tg_FLL_for_LVL' + * '/get_tg_for_LVL' */ void get_tg_FLL_for_LVL(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp, int16_t *rty_vals) @@ -1264,12 +1336,12 @@ void get_tg_FLL_for_LVL(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp, int16_t /* * Output and update for atomic system: - * '/get_tg_FLL_for_LVL' - * '/get_tg_FLL_for_LVL' - * '/get_tg_FLL_for_LVL' - * '/get_tg_FLL_for_LVL' - * '/get_tg_FLL_for_LVL' - * '/get_tg_FLL_for_LVL' + * '/get_tg_FLL_for_LVL' + * '/get_tg_FLL_for_LVL' + * '/get_tg_FLL_for_LVL' + * '/get_tg_FLL_for_LVL' + * '/get_tg_FLL_for_LVL' + * '/get_tg_FLL_for_LVL' */ void get_tg_FLL_for_LVL_j(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp, int16_t * rty_vals) @@ -1314,10 +1386,10 @@ void get_tg_FLL_for_LVL_j(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp, int16_t /* * Output and update for atomic system: - * '/g_assFLOW_BI_AMB_TGT' * '/g_assFLOW_BI_AMB_TGT' - * '/g_assFLOW_BI_AMB_TGT' + * '/g_assFLOW_BI_AMB_TGT' * '/g_assFLOW_BI_AMB_TGT' + * '/g_assFLOW_BI_AMB_TGT' */ void g_assFLOW_BI_AMB_TGT_n(uint8_t rtu_LVL, int16_t *rty_c_g_assFLOW_BI_AMB_TGT) { @@ -1334,21 +1406,21 @@ void g_assFLOW_BI_AMB_TGT_n(uint8_t rtu_LVL, int16_t *rty_c_g_assFLOW_BI_AMB_TGT /* * Output and update for action system: - * '/Bilevel' * '/Bilevel' + * '/Bilevel' */ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtu_setTempFL, uint8_t rtu_setTempFR) { int32_t tmp; int32_t tmp_0; - int16_t rtb_u_eg; + int16_t rtb_u_e; uint16_t rtb_FLF_NEW; uint16_t rtb_FRF_NEW; uint16_t rtb_Switch2_a5_idx_0; uint16_t rtb_Switch2_a5_idx_1; uint16_t rtb_Switch2_cd_0; - int8_t rtb_X; + int8_t rtb_X_l; uint8_t rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MIN; uint8_t rtb_c_g_aucFLOW_BI_FOOT_VALVE_MAX; uint8_t rtb_c_g_aucFLOW_BI_FOOT_VALVE_MAX_n; @@ -1358,55 +1430,55 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t uint8_t rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN; uint8_t rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN_a; - /* MATLAB Function: '/get_tg_FLL_for_LVL' */ + /* MATLAB Function: '/get_tg_FLL_for_LVL' */ /* : c_g_assFLOW_BI_TEMP_TGT = g_assFLOW_BI_TEMP_TGT(LVL + 1); */ - get_tg_FLL_for_LVL(rtu_LVL, rtu_setTempFL, &rtb_u_eg); + get_tg_FLL_for_LVL(rtu_LVL, rtu_setTempFL, &rtb_u_e); - /* MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ + /* MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { tmp_0 = 255; } - /* Sum: '/ 1' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* Sum: '/ 1' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ - rtb_u_eg = (int16_t)(g_assFLOW_BI_TEMP_TGT[tmp_0 - 1] - rtb_u_eg); + rtb_u_e = (int16_t)(g_assFLOW_BI_TEMP_TGT[tmp_0 - 1] - rtb_u_e); - /* Gain: '/Gain6' */ - tmp_0 = 13107 * rtb_u_eg; - rtb_X = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & + /* Gain: '/Gain6' */ + tmp_0 = 13107 * rtb_u_e; + rtb_X_l = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & 65535U) != 0U) || (tmp_0 > 0))) + (tmp_0 >> 17)); - /* Switch: '/Switch1' incorporates: - * Gain: '/Gain6' - * Sum: '/Add' + /* Switch: '/Switch1' incorporates: + * Gain: '/Gain6' + * Sum: '/Add' */ /* : c_g_aucFLOW_BI_FOOT_PLUS = g_aucFLOW_BI_FOOT_PLUS(LVL + 1); */ - if (rtb_X >= 0) { + if (rtb_X_l >= 0) { rtb_FLF_NEW = rty_Out1[4]; } else { - /* MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_LEFT' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_LEFT' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { tmp_0 = 255; } - /* Gain: '/Gain6' incorporates: - * MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_LEFT' - * Product: '/Product3' + /* Gain: '/Gain6' incorporates: + * MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_LEFT' + * Product: '/Product3' */ - tmp_0 = g_aucFLOW_BI_FOOT_PLUS[tmp_0 - 1] * rtb_X * 13107; + tmp_0 = g_aucFLOW_BI_FOOT_PLUS[tmp_0 - 1] * rtb_X_l * 13107; rtb_FLF_NEW = (uint16_t)((int16_t)rty_Out1[4] - (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && (((uint32_t)tmp_0 & 65535U) != 0U)) + (tmp_0 >> 17))); } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX1' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX1' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI_FOOT_VALVE_MAX = g_aucFLOW_BI_FOOT_VALVE_MAX(LVL + 1); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -1416,10 +1488,10 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI_FOOT_VALVE_MAX_n = g_aucFLOW_BI_FOOT_VALVE_MAX[tmp_0 - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX1' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX1' */ - /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN1' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN1' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI2_FOOT_VALVE_MIN = g_aucFLOW_BI_FOOT_VALVE_MIN(LVL +1); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -1429,14 +1501,14 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MIN = g_aucFLOW_BI_FOOT_VALVE_MIN[tmp_0 - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN1' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN1' */ - /* MATLAB Function: '/get_tg_FLL_for_LVL' */ + /* MATLAB Function: '/get_tg_FLL_for_LVL' */ /* : c_g_assFLOW_BI_TEMP_TGT = g_assFLOW_BI_TEMP_TGT(LVL + 1 + 6); */ - get_tg_FLL_for_LVL_j(rtu_LVL, rtu_setTempFR, &rtb_u_eg); + get_tg_FLL_for_LVL_j(rtu_LVL, rtu_setTempFR, &rtb_u_e); - /* MATLAB Function: '/g_assFLOW_BI_TEMP_TGT_RIGHT' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_assFLOW_BI_TEMP_TGT_RIGHT' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { @@ -1448,26 +1520,26 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t tmp = 255; } - /* Sum: '/ 1' incorporates: - * MATLAB Function: '/g_assFLOW_BI_TEMP_TGT_RIGHT' + /* Sum: '/ 1' incorporates: + * MATLAB Function: '/g_assFLOW_BI_TEMP_TGT_RIGHT' */ - rtb_u_eg = (int16_t)(g_assFLOW_BI_TEMP_TGT[tmp - 1] - rtb_u_eg); + rtb_u_e = (int16_t)(g_assFLOW_BI_TEMP_TGT[tmp - 1] - rtb_u_e); - /* Gain: '/Gain6' */ - tmp_0 = 13107 * rtb_u_eg; - rtb_X = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & + /* Gain: '/Gain6' */ + tmp_0 = 13107 * rtb_u_e; + rtb_X_l = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & 65535U) != 0U) || (tmp_0 > 0))) + (tmp_0 >> 17)); - /* Switch: '/Switch3' incorporates: - * Gain: '/Gain7' - * Sum: '/Add1' + /* Switch: '/Switch3' incorporates: + * Gain: '/Gain7' + * Sum: '/Add1' */ /* : c_g_aucFLOW_BI_FOOT_PLUS = g_aucFLOW_BI_FOOT_PLUS(LVL + 1 + 6); */ - if (rtb_X >= 0) { + if (rtb_X_l >= 0) { rtb_FRF_NEW = rty_Out1[6]; } else { - /* MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_RIGHT' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_RIGHT' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { @@ -1479,19 +1551,19 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t tmp = 255; } - /* Gain: '/Gain7' incorporates: - * MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_RIGHT' - * Product: '/Product4' + /* Gain: '/Gain7' incorporates: + * MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_RIGHT' + * Product: '/Product4' */ - tmp_0 = g_aucFLOW_BI_FOOT_PLUS[tmp - 1] * rtb_X * 13107; + tmp_0 = g_aucFLOW_BI_FOOT_PLUS[tmp - 1] * rtb_X_l * 13107; rtb_FRF_NEW = (uint16_t)((int16_t)rty_Out1[6] - (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && (((uint32_t)tmp_0 & 65535U) != 0U)) + (tmp_0 >> 17))); } - /* End of Switch: '/Switch3' */ + /* End of Switch: '/Switch3' */ - /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX2' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX2' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI_FOOT_VALVE_MAX = g_aucFLOW_BI_FOOT_VALVE_MAX(LVL + 1 + 6); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -1506,10 +1578,10 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI_FOOT_VALVE_MAX = g_aucFLOW_BI_FOOT_VALVE_MAX[tmp - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX2' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX2' */ - /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN2' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN2' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI_FOOT_VALVE_MIN = g_aucFLOW_BI_FOOT_VALVE_MIN(LVL + 1 + 6); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -1524,45 +1596,45 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI_FOOT_VALVE_MIN = g_aucFLOW_BI_FOOT_VALVE_MIN[tmp - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN2' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN2' */ - /* MATLAB Function: '/g_assFLOW_BI_AMB_TGT' */ + /* MATLAB Function: '/g_assFLOW_BI_AMB_TGT' */ /* : c_g_aucFLOW_BI_VENT_PLUS = g_aucFLOW_BI_VENT_PLUS(LVL + 1); */ - g_assFLOW_BI_AMB_TGT_n(rtu_LVL, &rtb_u_eg); + g_assFLOW_BI_AMB_TGT_n(rtu_LVL, &rtb_u_e); - /* MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { tmp_0 = 255; } - /* Gain: '/Gain2' incorporates: - * Sum: '/deg' + /* Gain: '/Gain2' incorporates: + * Sum: '/deg' */ - tmp = (int16_t)(rtb_u_eg - rtu_Amb_Fb) * 13107; + tmp = (int16_t)(rtb_u_e - rtu_Amb_Fb) * 13107; - /* Product: '/Умножили' incorporates: - * Gain: '/Gain' - * Gain: '/Gain2' - * MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' + /* Product: '/Умножили' incorporates: + * Gain: '/Gain' + * Gain: '/Gain2' + * MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' */ - rtb_u_eg = (int16_t)((int8_t)(((((uint32_t)tmp & 65536U) != 0U) && - ((((uint32_t)tmp & 65535U) != 0U) || (tmp > 0))) + (tmp >> 17)) * (int32_t) - ((g_aucFLOW_BI_VENT_PLUS[tmp_0 - 1] * 205U + 1024U) >> 11)); + rtb_u_e = (int16_t)((int8_t)(((((uint32_t)tmp & 65536U) != 0U) && ((((uint32_t) + tmp & 65535U) != 0U) || (tmp > 0))) + (tmp >> 17)) * (int32_t) + ((g_aucFLOW_BI_VENT_PLUS[tmp_0 - 1] * 205U + 1024U) >> 11)); - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * Sum: '/ ' - * Switch: '/Switch2' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * Sum: '/ ' + * Switch: '/Switch2' */ - rtb_Switch2_a5_idx_0 = (uint16_t)((uint16_t)((rty_Out1[0] - rtb_u_eg) >> 1) << + rtb_Switch2_a5_idx_0 = (uint16_t)((uint16_t)((rty_Out1[0] - rtb_u_e) >> 1) << 1); - rtb_Switch2_a5_idx_1 = (uint16_t)((uint16_t)((rty_Out1[1] - rtb_u_eg) >> 1) << + rtb_Switch2_a5_idx_1 = (uint16_t)((uint16_t)((rty_Out1[1] - rtb_u_e) >> 1) << 1); - /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI_VENT_VALVE_MAX = g_aucFLOW_BI_VENT_VALVE_MAX(LVL + 1); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -1572,10 +1644,10 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX_h = g_aucFLOW_BI_VENT_VALVE_MAX[tmp_0 - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' */ - /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI_VENT_VALVE_MIN = g_aucFLOW_BI_VENT_VALVE_MIN(LVL + 1); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -1585,14 +1657,14 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN_a = g_aucFLOW_BI_VENT_VALVE_MIN[tmp_0 - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' */ - /* MATLAB Function: '/g_assFLOW_BI_AMB_TGT' */ + /* MATLAB Function: '/g_assFLOW_BI_AMB_TGT' */ /* : c_g_aucFLOW_BI_VENT_PLUS = g_aucFLOW_BI_VENT_PLUS(LVL + 1 + 6); */ - g_assFLOW_BI_AMB_TGT_n(rtu_LVL, &rtb_u_eg); + g_assFLOW_BI_AMB_TGT_n(rtu_LVL, &rtb_u_e); - /* MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { @@ -1604,23 +1676,23 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t tmp = 255; } - /* Gain: '/Gain2' incorporates: - * Sum: '/deg' + /* Gain: '/Gain2' incorporates: + * Sum: '/deg' */ - tmp_0 = (int16_t)(rtb_u_eg - rtu_Amb_Fb) * 13107; + tmp_0 = (int16_t)(rtb_u_e - rtu_Amb_Fb) * 13107; - /* Product: '/Умножили' incorporates: - * Gain: '/Gain' - * Gain: '/Gain2' - * MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' + /* Product: '/Умножили' incorporates: + * Gain: '/Gain' + * Gain: '/Gain2' + * MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' */ - rtb_u_eg = (int16_t)((int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && + rtb_u_e = (int16_t)((int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & 65535U) != 0U) || (tmp_0 > 0))) + (tmp_0 >> 17)) * - (int32_t)((g_aucFLOW_BI_VENT_PLUS[tmp - 1] * 205U + 1024U) + (int32_t)((g_aucFLOW_BI_VENT_PLUS[tmp - 1] * 205U + 1024U) >> 11)); - /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI_VENT_VALVE_MAX = g_aucFLOW_BI_VENT_VALVE_MAX(LVL + 1 + 6); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -1635,10 +1707,10 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX = g_aucFLOW_BI_VENT_VALVE_MAX[tmp - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' */ - /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI_VENT_VALVE_MIN = g_aucFLOW_BI_VENT_VALVE_MIN(LVL + 1 + 6); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -1653,175 +1725,175 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN = g_aucFLOW_BI_VENT_VALVE_MIN[tmp - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' */ - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * Sum: '/ ' - * Switch: '/Switch2' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * Sum: '/ ' + * Switch: '/Switch2' */ - rtb_Switch2_cd_0 = (uint16_t)((uint16_t)((rty_Out1[0] - rtb_u_eg) >> 1) << 1); + rtb_Switch2_cd_0 = (uint16_t)((uint16_t)((rty_Out1[0] - rtb_u_e) >> 1) << 1); - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch2_a5_idx_0 > rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX_h) { - /* Assignment: '/Присваивание в [1-2]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [1-2]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[0] = rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX_h; } else if (rtb_Switch2_a5_idx_0 < rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN_a) { - /* Switch: '/Switch' incorporates: - * Assignment: '/Присваивание в [1-2]' - * SignalConversion generated from: '/Out1' + /* Switch: '/Switch' incorporates: + * Assignment: '/Присваивание в [1-2]' + * SignalConversion generated from: '/Out1' */ rty_Out1[0] = rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN_a; } else { - /* Assignment: '/Присваивание в [1-2]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [1-2]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[0] = rtb_Switch2_a5_idx_0; } - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch2_cd_0 > rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX) { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[2] = rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX; } else if (rtb_Switch2_cd_0 < rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN) { - /* Switch: '/Switch' incorporates: - * Assignment: '/Присваивание в [3-4]' - * SignalConversion generated from: '/Out1' + /* Switch: '/Switch' incorporates: + * Assignment: '/Присваивание в [3-4]' + * SignalConversion generated from: '/Out1' */ rty_Out1[2] = rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN; } else { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[2] = rtb_Switch2_cd_0; } - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * Sum: '/ ' - * Switch: '/Switch2' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * Sum: '/ ' + * Switch: '/Switch2' */ - rtb_Switch2_cd_0 = (uint16_t)((uint16_t)((rty_Out1[1] - rtb_u_eg) >> 1) << 1); + rtb_Switch2_cd_0 = (uint16_t)((uint16_t)((rty_Out1[1] - rtb_u_e) >> 1) << 1); - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch2_a5_idx_1 > rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX_h) { - /* Assignment: '/Присваивание в [1-2]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [1-2]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[1] = rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX_h; } else if (rtb_Switch2_a5_idx_1 < rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN_a) { - /* Switch: '/Switch' incorporates: - * Assignment: '/Присваивание в [1-2]' - * SignalConversion generated from: '/Out1' + /* Switch: '/Switch' incorporates: + * Assignment: '/Присваивание в [1-2]' + * SignalConversion generated from: '/Out1' */ rty_Out1[1] = rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN_a; } else { - /* Assignment: '/Присваивание в [1-2]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [1-2]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[1] = rtb_Switch2_a5_idx_1; } - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch2_cd_0 > rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX) { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[3] = rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX; } else if (rtb_Switch2_cd_0 < rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN) { - /* Switch: '/Switch' incorporates: - * Assignment: '/Присваивание в [3-4]' - * SignalConversion generated from: '/Out1' + /* Switch: '/Switch' incorporates: + * Assignment: '/Присваивание в [3-4]' + * SignalConversion generated from: '/Out1' */ rty_Out1[3] = rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN; } else { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[3] = rtb_Switch2_cd_0; } - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_FLF_NEW > rtb_c_g_aucFLOW_BI_FOOT_VALVE_MAX_n) { - /* Assignment: '/Присваивание в [5]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [5]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[4] = rtb_c_g_aucFLOW_BI_FOOT_VALVE_MAX_n; } else if (rtb_FLF_NEW < rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MIN) { - /* Switch: '/Switch' incorporates: - * Assignment: '/Присваивание в [5]' - * SignalConversion generated from: '/Out1' + /* Switch: '/Switch' incorporates: + * Assignment: '/Присваивание в [5]' + * SignalConversion generated from: '/Out1' */ rty_Out1[4] = rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MIN; } else { - /* Assignment: '/Присваивание в [5]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [5]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[4] = rtb_FLF_NEW; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_FRF_NEW > rtb_c_g_aucFLOW_BI_FOOT_VALVE_MAX) { - /* Assignment: '/Присваивание в [7]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [7]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[6] = rtb_c_g_aucFLOW_BI_FOOT_VALVE_MAX; } else if (rtb_FRF_NEW < rtb_c_g_aucFLOW_BI_FOOT_VALVE_MIN) { - /* Switch: '/Switch' incorporates: - * Assignment: '/Присваивание в [7]' - * SignalConversion generated from: '/Out1' + /* Switch: '/Switch' incorporates: + * Assignment: '/Присваивание в [7]' + * SignalConversion generated from: '/Out1' */ rty_Out1[6] = rtb_c_g_aucFLOW_BI_FOOT_VALVE_MIN; } else { - /* Assignment: '/Присваивание в [7]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [7]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[6] = rtb_FRF_NEW; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ } /* * Output and update for atomic system: - * '/g_assFLOW_BI_AMB_TGT' * '/g_assFLOW_BI_AMB_TGT' - * '/g_assFLOW_BI_AMB_TGT' + * '/g_assFLOW_BI_AMB_TGT' * '/g_assFLOW_BI_AMB_TGT' + * '/g_assFLOW_BI_AMB_TGT' */ void g_assFLOW_BI_AMB_TGT_e(uint8_t rtu_LVL, int16_t *rty_c_g_assFLOW_BI2_AMB_TGT) @@ -1839,21 +1911,21 @@ void g_assFLOW_BI_AMB_TGT_e(uint8_t rtu_LVL, int16_t /* * Output and update for action system: - * '/Bilevel2' * '/Bilevel2' + * '/Bilevel2' */ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtu_setTempFL, uint8_t rtu_setTempFR) { int32_t tmp; int32_t tmp_0; - int16_t rtb_u_abl; + int16_t rtb_u_j2; uint16_t rtb_FLF_NEW; uint16_t rtb_FRF_NEW; uint16_t rtb_Switch2_i_idx_0; uint16_t rtb_Switch2_i_idx_1; uint16_t rtb_Switch2_p4_0; - int8_t rtb_X; + int8_t rtb_X_b; uint8_t rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MAX; uint8_t rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MAX_l; uint8_t rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MIN; @@ -1863,55 +1935,55 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t uint8_t rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN; uint8_t rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN_f; - /* MATLAB Function: '/get_tg_FLL_for_LVL' */ + /* MATLAB Function: '/get_tg_FLL_for_LVL' */ /* : c_g_assFLOW_BI2_TEMP_TGT = g_assFLOW_BI2_TEMP_TGT(LVL + 1); */ - get_tg_FLL_for_LVL(rtu_LVL, rtu_setTempFL, &rtb_u_abl); + get_tg_FLL_for_LVL(rtu_LVL, rtu_setTempFL, &rtb_u_j2); - /* MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ + /* MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { tmp_0 = 255; } - /* Sum: '/ 1' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* Sum: '/ 1' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ - rtb_u_abl = (int16_t)(g_assFLOW_BI2_TEMP_TGT[tmp_0 - 1] - rtb_u_abl); + rtb_u_j2 = (int16_t)(g_assFLOW_BI2_TEMP_TGT[tmp_0 - 1] - rtb_u_j2); - /* Gain: '/Gain6' */ - tmp_0 = 13107 * rtb_u_abl; - rtb_X = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & + /* Gain: '/Gain6' */ + tmp_0 = 13107 * rtb_u_j2; + rtb_X_b = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & 65535U) != 0U) || (tmp_0 > 0))) + (tmp_0 >> 17)); - /* Switch: '/Switch1' incorporates: - * Gain: '/Gain6' - * Sum: '/Add' + /* Switch: '/Switch1' incorporates: + * Gain: '/Gain6' + * Sum: '/Add' */ /* : c_g_aucFLOW_BI2_FOOT_PLUS = g_aucFLOW_BI2_FOOT_PLUS(LVL + 1); */ - if (rtb_X >= 0) { + if (rtb_X_b >= 0) { rtb_FLF_NEW = rty_Out1[4]; } else { - /* MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_LEFT' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_LEFT' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { tmp_0 = 255; } - /* Gain: '/Gain6' incorporates: - * MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_LEFT' - * Product: '/Product3' + /* Gain: '/Gain6' incorporates: + * MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_LEFT' + * Product: '/Product3' */ - tmp_0 = g_aucFLOW_BI2_FOOT_PLUS[tmp_0 - 1] * rtb_X * 13107; + tmp_0 = g_aucFLOW_BI2_FOOT_PLUS[tmp_0 - 1] * rtb_X_b * 13107; rtb_FLF_NEW = (uint16_t)((int16_t)rty_Out1[4] - (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && (((uint32_t)tmp_0 & 65535U) != 0U)) + (tmp_0 >> 17))); } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX1' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX1' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI2_FOOT_VALVE_MAX = g_aucFLOW_BI2_FOOT_VALVE_MAX(LVL + 1); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -1921,10 +1993,10 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MAX_l = g_aucFLOW_BI2_FOOT_VALVE_MAX[tmp_0 - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX1' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX1' */ - /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN1' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN1' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI2_FOOT_VALVE_MIN = g_aucFLOW_BI2_FOOT_VALVE_MIN(LVL + 1); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -1934,14 +2006,14 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MIN = g_aucFLOW_BI2_FOOT_VALVE_MIN[tmp_0 - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN1' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN1' */ - /* MATLAB Function: '/get_tg_FLL_for_LVL' */ + /* MATLAB Function: '/get_tg_FLL_for_LVL' */ /* : c_g_assFLOW_BI2_TEMP_TGT = g_assFLOW_BI2_TEMP_TGT(LVL + 1 + 6); */ - get_tg_FLL_for_LVL_j(rtu_LVL, rtu_setTempFR, &rtb_u_abl); + get_tg_FLL_for_LVL_j(rtu_LVL, rtu_setTempFR, &rtb_u_j2); - /* MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_RIGHT' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_RIGHT' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { @@ -1953,26 +2025,26 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t tmp = 255; } - /* Sum: '/ 1' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_RIGHT' + /* Sum: '/ 1' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_RIGHT' */ - rtb_u_abl = (int16_t)(g_assFLOW_BI2_TEMP_TGT[tmp - 1] - rtb_u_abl); + rtb_u_j2 = (int16_t)(g_assFLOW_BI2_TEMP_TGT[tmp - 1] - rtb_u_j2); - /* Gain: '/Gain6' */ - tmp_0 = 13107 * rtb_u_abl; - rtb_X = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & + /* Gain: '/Gain6' */ + tmp_0 = 13107 * rtb_u_j2; + rtb_X_b = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & 65535U) != 0U) || (tmp_0 > 0))) + (tmp_0 >> 17)); - /* Switch: '/Switch3' incorporates: - * Gain: '/Gain7' - * Sum: '/Add1' + /* Switch: '/Switch3' incorporates: + * Gain: '/Gain7' + * Sum: '/Add1' */ /* : c_g_aucFLOW_BI2_FOOT_PLUS = g_aucFLOW_BI2_FOOT_PLUS(LVL + 1 + 6); */ - if (rtb_X >= 0) { + if (rtb_X_b >= 0) { rtb_FRF_NEW = rty_Out1[6]; } else { - /* MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_RIGHT' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_RIGHT' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { @@ -1984,19 +2056,19 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t tmp = 255; } - /* Gain: '/Gain7' incorporates: - * MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_RIGHT' - * Product: '/Product4' + /* Gain: '/Gain7' incorporates: + * MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_RIGHT' + * Product: '/Product4' */ - tmp_0 = g_aucFLOW_BI2_FOOT_PLUS[tmp - 1] * rtb_X * 13107; + tmp_0 = g_aucFLOW_BI2_FOOT_PLUS[tmp - 1] * rtb_X_b * 13107; rtb_FRF_NEW = (uint16_t)((int16_t)rty_Out1[6] - (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && (((uint32_t)tmp_0 & 65535U) != 0U)) + (tmp_0 >> 17))); } - /* End of Switch: '/Switch3' */ + /* End of Switch: '/Switch3' */ - /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX2' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX2' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI2_FOOT_VALVE_MAX = g_aucFLOW_BI2_FOOT_VALVE_MAX(LVL + 1 + 6); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -2011,10 +2083,10 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MAX = g_aucFLOW_BI2_FOOT_VALVE_MAX[tmp - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX2' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX2' */ - /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN2' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN2' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI2_FOOT_VALVE_MIN = g_aucFLOW_BI2_FOOT_VALVE_MIN(LVL + 1 + 6); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -2029,46 +2101,46 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MIN_l = g_aucFLOW_BI2_FOOT_VALVE_MIN[tmp - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN2' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN2' */ - /* MATLAB Function: '/g_assFLOW_BI_AMB_TGT' */ + /* MATLAB Function: '/g_assFLOW_BI_AMB_TGT' */ /* : c_g_aucFLOW_BI2_VENT_PLUS = g_aucFLOW_BI2_VENT_PLUS(LVL + 1); */ - g_assFLOW_BI_AMB_TGT_e(rtu_LVL, &rtb_u_abl); + g_assFLOW_BI_AMB_TGT_e(rtu_LVL, &rtb_u_j2); - /* MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { tmp_0 = 255; } - /* Gain: '/Gain2' incorporates: - * Sum: '/deg' + /* Gain: '/Gain2' incorporates: + * Sum: '/deg' */ - tmp = (int16_t)(rtb_u_abl - rtu_Amb_Fb) * 13107; + tmp = (int16_t)(rtb_u_j2 - rtu_Amb_Fb) * 13107; - /* Product: '/Умножили' incorporates: - * Gain: '/Gain' - * Gain: '/Gain2' - * MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' + /* Product: '/Умножили' incorporates: + * Gain: '/Gain' + * Gain: '/Gain2' + * MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' */ - rtb_u_abl = (int16_t)((int8_t)(((((uint32_t)tmp & 65536U) != 0U) && + rtb_u_j2 = (int16_t)((int8_t)(((((uint32_t)tmp & 65536U) != 0U) && ((((uint32_t)tmp & 65535U) != 0U) || (tmp > 0))) + (tmp >> 17)) * (int32_t) - ((g_aucFLOW_BI2_VENT_PLUS[tmp_0 - 1] * 205U + 1024U) >> - 11)); + ((g_aucFLOW_BI2_VENT_PLUS[tmp_0 - 1] * 205U + 1024U) >> + 11)); - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * Sum: '/ ' - * Switch: '/Switch2' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * Sum: '/ ' + * Switch: '/Switch2' */ - rtb_Switch2_i_idx_0 = (uint16_t)((uint16_t)((rty_Out1[0] - rtb_u_abl) >> 1) << + rtb_Switch2_i_idx_0 = (uint16_t)((uint16_t)((rty_Out1[0] - rtb_u_j2) >> 1) << 1); - rtb_Switch2_i_idx_1 = (uint16_t)((uint16_t)((rty_Out1[1] - rtb_u_abl) >> 1) << + rtb_Switch2_i_idx_1 = (uint16_t)((uint16_t)((rty_Out1[1] - rtb_u_j2) >> 1) << 1); - /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI2_VENT_VALVE_MAX = g_aucFLOW_BI2_VENT_VALVE_MAX(LVL + 1); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -2078,10 +2150,10 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX_k = g_aucFLOW_BI2_VENT_VALVE_MAX[tmp_0 - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' */ - /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI2_VENT_VALVE_MIN = g_aucFLOW_BI2_VENT_VALVE_MIN(LVL + 1); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -2091,14 +2163,14 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN_f = g_aucFLOW_BI2_VENT_VALVE_MIN[tmp_0 - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' */ - /* MATLAB Function: '/g_assFLOW_BI_AMB_TGT' */ + /* MATLAB Function: '/g_assFLOW_BI_AMB_TGT' */ /* : c_g_aucFLOW_BI2_VENT_PLUS = g_aucFLOW_BI2_VENT_PLUS(LVL + 1 + 6); */ - g_assFLOW_BI_AMB_TGT_e(rtu_LVL, &rtb_u_abl); + g_assFLOW_BI_AMB_TGT_e(rtu_LVL, &rtb_u_j2); - /* MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { @@ -2110,23 +2182,23 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t tmp = 255; } - /* Gain: '/Gain2' incorporates: - * Sum: '/deg' + /* Gain: '/Gain2' incorporates: + * Sum: '/deg' */ - tmp_0 = (int16_t)(rtb_u_abl - rtu_Amb_Fb) * 13107; + tmp_0 = (int16_t)(rtb_u_j2 - rtu_Amb_Fb) * 13107; - /* Product: '/Умножили' incorporates: - * Gain: '/Gain' - * Gain: '/Gain2' - * MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' + /* Product: '/Умножили' incorporates: + * Gain: '/Gain' + * Gain: '/Gain2' + * MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' */ - rtb_u_abl = (int16_t)((int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && + rtb_u_j2 = (int16_t)((int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & 65535U) != 0U) || (tmp_0 > 0))) + (tmp_0 >> 17)) * - (int32_t)((g_aucFLOW_BI2_VENT_PLUS[tmp - 1] * 205U + + (int32_t)((g_aucFLOW_BI2_VENT_PLUS[tmp - 1] * 205U + 1024U) >> 11)); - /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI2_VENT_VALVE_MAX = g_aucFLOW_BI2_VENT_VALVE_MAX(LVL + 1 + 6); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -2141,10 +2213,10 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX = g_aucFLOW_BI2_VENT_VALVE_MAX[tmp - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' */ - /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_BI2_VENT_VALVE_MIN = g_aucFLOW_BI2_VENT_VALVE_MIN(LVL + 1 + 6); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -2159,175 +2231,175 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN = g_aucFLOW_BI2_VENT_VALVE_MIN[tmp - 1]; - /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' */ + /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' */ - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * Sum: '/ ' - * Switch: '/Switch2' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * Sum: '/ ' + * Switch: '/Switch2' */ - rtb_Switch2_p4_0 = (uint16_t)((uint16_t)((rty_Out1[0] - rtb_u_abl) >> 1) << 1); + rtb_Switch2_p4_0 = (uint16_t)((uint16_t)((rty_Out1[0] - rtb_u_j2) >> 1) << 1); - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch2_i_idx_0 > rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX_k) { - /* Assignment: '/Присваивание в [1-2]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [1-2]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[0] = rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX_k; } else if (rtb_Switch2_i_idx_0 < rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN_f) { - /* Switch: '/Switch' incorporates: - * Assignment: '/Присваивание в [1-2]' - * SignalConversion generated from: '/Out1' + /* Switch: '/Switch' incorporates: + * Assignment: '/Присваивание в [1-2]' + * SignalConversion generated from: '/Out1' */ rty_Out1[0] = rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN_f; } else { - /* Assignment: '/Присваивание в [1-2]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [1-2]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[0] = rtb_Switch2_i_idx_0; } - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch2_p4_0 > rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX) { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[2] = rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX; } else if (rtb_Switch2_p4_0 < rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN) { - /* Switch: '/Switch' incorporates: - * Assignment: '/Присваивание в [3-4]' - * SignalConversion generated from: '/Out1' + /* Switch: '/Switch' incorporates: + * Assignment: '/Присваивание в [3-4]' + * SignalConversion generated from: '/Out1' */ rty_Out1[2] = rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN; } else { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[2] = rtb_Switch2_p4_0; } - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * Sum: '/ ' - * Switch: '/Switch2' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * Sum: '/ ' + * Switch: '/Switch2' */ - rtb_Switch2_p4_0 = (uint16_t)((uint16_t)((rty_Out1[1] - rtb_u_abl) >> 1) << 1); + rtb_Switch2_p4_0 = (uint16_t)((uint16_t)((rty_Out1[1] - rtb_u_j2) >> 1) << 1); - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch2_i_idx_1 > rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX_k) { - /* Assignment: '/Присваивание в [1-2]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [1-2]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[1] = rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX_k; } else if (rtb_Switch2_i_idx_1 < rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN_f) { - /* Switch: '/Switch' incorporates: - * Assignment: '/Присваивание в [1-2]' - * SignalConversion generated from: '/Out1' + /* Switch: '/Switch' incorporates: + * Assignment: '/Присваивание в [1-2]' + * SignalConversion generated from: '/Out1' */ rty_Out1[1] = rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN_f; } else { - /* Assignment: '/Присваивание в [1-2]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [1-2]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[1] = rtb_Switch2_i_idx_1; } - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_Switch2_p4_0 > rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX) { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[3] = rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX; } else if (rtb_Switch2_p4_0 < rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN) { - /* Switch: '/Switch' incorporates: - * Assignment: '/Присваивание в [3-4]' - * SignalConversion generated from: '/Out1' + /* Switch: '/Switch' incorporates: + * Assignment: '/Присваивание в [3-4]' + * SignalConversion generated from: '/Out1' */ rty_Out1[3] = rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN; } else { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[3] = rtb_Switch2_p4_0; } - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_FLF_NEW > rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MAX_l) { - /* Assignment: '/Присваивание в [5]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [5]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[4] = rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MAX_l; } else if (rtb_FLF_NEW < rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MIN) { - /* Switch: '/Switch' incorporates: - * Assignment: '/Присваивание в [5]' - * SignalConversion generated from: '/Out1' + /* Switch: '/Switch' incorporates: + * Assignment: '/Присваивание в [5]' + * SignalConversion generated from: '/Out1' */ rty_Out1[4] = rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MIN; } else { - /* Assignment: '/Присваивание в [5]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [5]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[4] = rtb_FLF_NEW; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ if (rtb_FRF_NEW > rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MAX) { - /* Assignment: '/Присваивание в [7]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [7]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[6] = rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MAX; } else if (rtb_FRF_NEW < rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MIN_l) { - /* Switch: '/Switch' incorporates: - * Assignment: '/Присваивание в [7]' - * SignalConversion generated from: '/Out1' + /* Switch: '/Switch' incorporates: + * Assignment: '/Присваивание в [7]' + * SignalConversion generated from: '/Out1' */ rty_Out1[6] = rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MIN_l; } else { - /* Assignment: '/Присваивание в [7]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [7]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[6] = rtb_FRF_NEW; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ } /* * Output and update for atomic system: - * '/g_aucFLOW_AF_FOOT_VALVE_MAX' * '/g_aucFLOW_AF_FOOT_VALVE_MAX' - * '/g_aucFLOW_AF_FOOT_VALVE_MAX' + * '/g_aucFLOW_AF_FOOT_VALVE_MAX' * '/g_aucFLOW_AF_FOOT_VALVE_MAX' + * '/g_aucFLOW_AF_FOOT_VALVE_MAX' */ void g_aucFLOW_AF_FOOT_VALVE_MAX_e(uint8_t rtu_LVL, uint8_t *rty_c_g_aucFLOW_AF_FOOT_VALVE_MAX) @@ -2345,12 +2417,12 @@ void g_aucFLOW_AF_FOOT_VALVE_MAX_e(uint8_t rtu_LVL, uint8_t /* * Output and update for atomic system: - * '/g_assFLOW_AF_AMB_TGT' * '/g_assFLOW_AF_AMB_TGT' - * '/g_assFLOW_AF_AMB_TGT' - * '/g_assFLOW_AF_AMB_TGT' + * '/g_assFLOW_AF_AMB_TGT' + * '/g_assFLOW_AF_AMB_TGT' * '/g_assFLOW_AF_AMB_TGT' - * '/g_assFLOW_AF_AMB_TGT' + * '/g_assFLOW_AF_AMB_TGT' + * '/g_assFLOW_AF_AMB_TGT' */ void g_assFLOW_AF_AMB_TGT_g(uint8_t rtu_LVL, int16_t *rty_c_g_assFLOW_AF_AMB_TGT) { @@ -2367,8 +2439,8 @@ void g_assFLOW_AF_AMB_TGT_g(uint8_t rtu_LVL, int16_t *rty_c_g_assFLOW_AF_AMB_TGT /* * Output and update for action system: - * '/Afoot' * '/Afoot' + * '/Afoot' */ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtu_setTempFL, uint8_t rtu_setTempFR) @@ -2384,11 +2456,11 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t uint16_t rtb_Switch2_ar_idx_1; uint16_t rtb_Switch2_j3_idx_0; uint16_t rtb_Switch2_j3_idx_1; - int8_t rtb_X; + int8_t rtb_X_c; uint8_t rtb_c_g_aucFLOW_AF_FOOT_VALVE_MAX; uint8_t rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k; - /* MATLAB Function: '/get_tg_for_LVL' */ + /* MATLAB Function: '/get_tg_for_LVL' */ /* : c_g_aucFLOW_AF_BLR_AF_TGT = g_aucFLOW_AF_BLR_AF_TGT(LVL + 1); */ /* : table = [ */ /* : g_assVTG_FL_LV0; */ @@ -2408,14 +2480,14 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t tmp[6 * i + 5] = g_assVTG_FL_LV5[i]; } - /* MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ + /* MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ i = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { i = 255; } - /* MATLAB Function: '/get_tg_for_LVL' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/get_tg_for_LVL' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { @@ -2430,56 +2502,56 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t qY = 0U; } - /* Gain: '/Gain6' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' - * MATLAB Function: '/get_tg_for_LVL' - * Sum: '/ 1' + /* Gain: '/Gain6' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + * MATLAB Function: '/get_tg_for_LVL' + * Sum: '/ 1' */ i = (int16_t)(g_aucFLOW_AF_BLR_AF_TGT[i - 1] - tmp[(((int32_t)qY - 1) * 6 + tmp_0) - 1]) * 13107; - rtb_X = (int8_t)(((((uint32_t)i & 65536U) != 0U) && ((((uint32_t)i & 65535U) + rtb_X_c = (int8_t)(((((uint32_t)i & 65536U) != 0U) && ((((uint32_t)i & 65535U) != 0U) || (i > 0))) + (i >> 17)); - /* Switch: '/Switch1' incorporates: - * Gain: '/Gain6' - * Sum: '/Add' + /* Switch: '/Switch1' incorporates: + * Gain: '/Gain6' + * Sum: '/Add' */ /* : c_g_aucFLOW_AF_FOOT_PLUS = g_aucFLOW_AF_FOOT_PLUS(LVL + 1); */ - if (rtb_X >= 0) { + if (rtb_X_c >= 0) { rtb_FLF_NEW = rty_Out1[4]; } else { - /* MATLAB Function: '/g_aucFLOW_AF_FOOT_PLUS' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_AF_FOOT_PLUS' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ i = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { i = 255; } - /* Gain: '/Gain6' incorporates: - * MATLAB Function: '/g_aucFLOW_AF_FOOT_PLUS' - * Product: '/Product3' + /* Gain: '/Gain6' incorporates: + * MATLAB Function: '/g_aucFLOW_AF_FOOT_PLUS' + * Product: '/Product3' */ - i = g_aucFLOW_AF_FOOT_PLUS[i - 1] * rtb_X * 13107; + i = g_aucFLOW_AF_FOOT_PLUS[i - 1] * rtb_X_c * 13107; rtb_FLF_NEW = (uint16_t)((int16_t)rty_Out1[4] - (int8_t)(((((uint32_t)i & 65536U) != 0U) && (((uint32_t)i & 65535U) != 0U)) + (i >> 17))); } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* MATLAB Function: '/g_aucFLOW_AF_FOOT_VALVE_MAX' */ + /* MATLAB Function: '/g_aucFLOW_AF_FOOT_VALVE_MAX' */ g_aucFLOW_AF_FOOT_VALVE_MAX_e(rtu_LVL, &rtb_c_g_aucFLOW_AF_FOOT_VALVE_MAX); - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ if (rtb_FLF_NEW > rtb_c_g_aucFLOW_AF_FOOT_VALVE_MAX) { rtb_FLF_NEW = rtb_c_g_aucFLOW_AF_FOOT_VALVE_MAX; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* MATLAB Function: '/get_vtg_for_LVL' */ + /* MATLAB Function: '/get_vtg_for_LVL' */ /* : c_g_aucFLOW_AF_BLR_AF_TGT = g_aucFLOW_AF_BLR_AF_TGT(LVL + 1); */ /* : table = [ */ /* : g_assVTG_FR_LV0; */ @@ -2499,16 +2571,16 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t tmp[6 * i + 5] = g_assVTG_FR_LV5[i]; } - /* MATLAB Function: '/g_aucFLOW_AF_BLR_AF_TGT' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_AF_BLR_AF_TGT' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ i = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { i = 255; } - /* MATLAB Function: '/get_vtg_for_LVL' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/get_vtg_for_LVL' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { @@ -2520,28 +2592,28 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t qY = 0U; } - /* Sum: '/ 1' incorporates: - * MATLAB Function: '/g_aucFLOW_AF_BLR_AF_TGT' - * MATLAB Function: '/get_vtg_for_LVL' + /* Sum: '/ 1' incorporates: + * MATLAB Function: '/g_aucFLOW_AF_BLR_AF_TGT' + * MATLAB Function: '/get_vtg_for_LVL' */ rtb_deg_en = (int16_t)(g_aucFLOW_AF_BLR_AF_TGT[i - 1] - tmp[(((int32_t)qY - 1) * 6 + tmp_0) - 1]); - /* Gain: '/Gain6' */ + /* Gain: '/Gain6' */ i = 13107 * rtb_deg_en; - rtb_X = (int8_t)(((((uint32_t)i & 65536U) != 0U) && ((((uint32_t)i & 65535U) + rtb_X_c = (int8_t)(((((uint32_t)i & 65536U) != 0U) && ((((uint32_t)i & 65535U) != 0U) || (i > 0))) + (i >> 17)); - /* Switch: '/Switch3' incorporates: - * Gain: '/Gain7' - * Sum: '/Add1' + /* Switch: '/Switch3' incorporates: + * Gain: '/Gain7' + * Sum: '/Add1' */ /* : c_g_aucFLOW_AF_FOOT_PLUS = g_aucFLOW_AF_FOOT_PLUS(LVL + 1 + 6); */ - if (rtb_X >= 0) { + if (rtb_X_c >= 0) { rtb_FRF_NEW = rty_Out1[6]; } else { - /* MATLAB Function: '/g_aucFLOW_AF_FOOT_PLUS' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_AF_FOOT_PLUS' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ i = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { @@ -2553,62 +2625,62 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t tmp_0 = 255; } - /* Gain: '/Gain7' incorporates: - * MATLAB Function: '/g_aucFLOW_AF_FOOT_PLUS' - * Product: '/Product4' + /* Gain: '/Gain7' incorporates: + * MATLAB Function: '/g_aucFLOW_AF_FOOT_PLUS' + * Product: '/Product4' */ - i = g_aucFLOW_AF_FOOT_PLUS[tmp_0 - 1] * rtb_X * 13107; + i = g_aucFLOW_AF_FOOT_PLUS[tmp_0 - 1] * rtb_X_c * 13107; rtb_FRF_NEW = (uint16_t)((int16_t)rty_Out1[6] - (int8_t)(((((uint32_t)i & 65536U) != 0U) && (((uint32_t)i & 65535U) != 0U)) + (i >> 17))); } - /* End of Switch: '/Switch3' */ + /* End of Switch: '/Switch3' */ - /* MATLAB Function: '/g_aucFLOW_AF_FOOT_VALVE_MAX' */ + /* MATLAB Function: '/g_aucFLOW_AF_FOOT_VALVE_MAX' */ g_aucFLOW_AF_FOOT_VALVE_MAX_e(rtu_LVL, &rtb_c_g_aucFLOW_AF_FOOT_VALVE_MAX); - /* MATLAB Function: '/g_assFLOW_AF_AMB_TGT' */ + /* MATLAB Function: '/g_assFLOW_AF_AMB_TGT' */ /* : c_g_aucFLOW_AF_VENT_PLUS = g_aucFLOW_AF_VENT_PLUS(LVL + 1); */ g_assFLOW_AF_AMB_TGT_g(rtu_LVL, &rtb_deg_en); - /* Sum: '/deg' */ + /* Sum: '/deg' */ rtb_deg_en -= rtu_Amb_Fb; - /* Gain: '/Gain2' */ + /* Gain: '/Gain2' */ i = 13107 * rtb_deg_en; - rtb_X = (int8_t)(((((uint32_t)i & 65536U) != 0U) && ((((uint32_t)i & 65535U) + rtb_X_c = (int8_t)(((((uint32_t)i & 65536U) != 0U) && ((((uint32_t)i & 65535U) != 0U) || (i > 0))) + (i >> 17)); - /* Switch: '/if (deg < 0)' incorporates: - * Sum: '/ ' - * Switch: '/Switch2' + /* Switch: '/if (deg < 0)' incorporates: + * Sum: '/ ' + * Switch: '/Switch2' */ - if (rtb_X >= 0) { + if (rtb_X_c >= 0) { rtb_Switch2_ar_idx_0 = rty_Out1[0]; rtb_Switch2_ar_idx_1 = rty_Out1[1]; } else { - /* MATLAB Function: '/g_aucFLOW_AF_VENT_PLUS' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_AF_VENT_PLUS' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ i = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { i = 255; } - /* Product: '/Умножили' incorporates: - * Gain: '/Gain' - * MATLAB Function: '/g_aucFLOW_AF_VENT_PLUS' + /* Product: '/Умножили' incorporates: + * Gain: '/Gain' + * MATLAB Function: '/g_aucFLOW_AF_VENT_PLUS' */ rtb_deg_en = (int16_t)((int32_t)((g_aucFLOW_AF_VENT_PLUS[i - 1] * 205U + - 1024U) >> 11) * rtb_X); + 1024U) >> 11) * rtb_X_c); rtb_Switch2_ar_idx_0 = (uint16_t)(rty_Out1[0] - rtb_deg_en); rtb_Switch2_ar_idx_1 = (uint16_t)(rty_Out1[1] - rtb_deg_en); } - /* End of Switch: '/if (deg < 0)' */ + /* End of Switch: '/if (deg < 0)' */ - /* MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_AF_VENT_VALVE_MAX = g_aucFLOW_AF_VENT_VALVE_MAX(LVL + 1); */ i = (int32_t)(rtu_LVL + 1U); @@ -2618,10 +2690,10 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k = g_aucFLOW_AF_VENT_VALVE_MAX[i - 1]; - /* End of MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' */ + /* End of MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' */ - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ if (rtb_Switch2_ar_idx_0 > rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k) { rtb_Switch2_ar_idx_0 = rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k; @@ -2631,30 +2703,30 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_Switch2_ar_idx_1 = rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* MATLAB Function: '/g_assFLOW_AF_AMB_TGT' */ + /* MATLAB Function: '/g_assFLOW_AF_AMB_TGT' */ /* : c_g_aucFLOW_AF_VENT_PLUS = g_aucFLOW_AF_VENT_PLUS(LVL + 1 + 6); */ g_assFLOW_AF_AMB_TGT_g(rtu_LVL, &rtb_deg_en); - /* Gain: '/Gain2' incorporates: - * Sum: '/deg' + /* Gain: '/Gain2' incorporates: + * Sum: '/deg' */ i = (int16_t)(rtb_deg_en - rtu_Amb_Fb) * 13107; - rtb_X = (int8_t)(((((uint32_t)i & 65536U) != 0U) && ((((uint32_t)i & 65535U) + rtb_X_c = (int8_t)(((((uint32_t)i & 65536U) != 0U) && ((((uint32_t)i & 65535U) != 0U) || (i > 0))) + (i >> 17)); - /* Switch: '/if (deg < 0)' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Sum: '/ ' - * Switch: '/Switch2' + /* Switch: '/if (deg < 0)' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Sum: '/ ' + * Switch: '/Switch2' */ - if (rtb_X >= 0) { + if (rtb_X_c >= 0) { rtb_Switch2_j3_idx_0 = rty_Out1[0]; rtb_Switch2_j3_idx_1 = rty_Out1[1]; } else { - /* MATLAB Function: '/g_aucFLOW_AF_VENT_PLUS' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_AF_VENT_PLUS' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ i = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { @@ -2666,20 +2738,20 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t tmp_0 = 255; } - /* Product: '/Умножили' incorporates: - * Gain: '/Gain' - * MATLAB Function: '/g_aucFLOW_AF_VENT_PLUS' + /* Product: '/Умножили' incorporates: + * Gain: '/Gain' + * MATLAB Function: '/g_aucFLOW_AF_VENT_PLUS' */ rtb_deg_en = (int16_t)((int32_t)((g_aucFLOW_AF_VENT_PLUS[tmp_0 - 1] * 205U + - 1024U) >> 11) * rtb_X); + 1024U) >> 11) * rtb_X_c); rtb_Switch2_j3_idx_0 = (uint16_t)((int16_t)rty_Out1[0] - rtb_deg_en); rtb_Switch2_j3_idx_1 = (uint16_t)((int16_t)rty_Out1[1] - rtb_deg_en); } - /* End of Switch: '/if (deg < 0)' */ + /* End of Switch: '/if (deg < 0)' */ - /* MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' incorporates: - * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' incorporates: + * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_AF_VENT_VALVE_MAX = g_aucFLOW_AF_VENT_VALVE_MAX(LVL + 1 + 6); */ i = (int32_t)(rtu_LVL + 1U); @@ -2694,80 +2766,80 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k = g_aucFLOW_AF_VENT_VALVE_MAX[tmp_0 - 1]; - /* End of MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' */ + /* End of MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' */ - /* Assignment: '/Присваивание в [1-2]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch2' + /* Assignment: '/Присваивание в [1-2]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch2' */ rty_Out1[0] = rtb_Switch2_ar_idx_0; - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ if (rtb_Switch2_j3_idx_0 > rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k) { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[2] = rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k; } else { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[2] = rtb_Switch2_j3_idx_0; } - /* Assignment: '/Присваивание в [1-2]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch2' + /* Assignment: '/Присваивание в [1-2]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch2' */ rty_Out1[1] = rtb_Switch2_ar_idx_1; - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ if (rtb_Switch2_j3_idx_1 > rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k) { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[3] = rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k; } else { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[3] = rtb_Switch2_j3_idx_1; } - /* Assignment: '/Присваивание в [5]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [5]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[4] = rtb_FLF_NEW; - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ if (rtb_FRF_NEW > rtb_c_g_aucFLOW_AF_FOOT_VALVE_MAX) { - /* Assignment: '/Присваивание в [7]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [7]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[6] = rtb_c_g_aucFLOW_AF_FOOT_VALVE_MAX; } else { - /* Assignment: '/Присваивание в [7]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [7]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[6] = rtb_FRF_NEW; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ } /* * Output and update for atomic system: - * '/g_aucFLOW_AFSM_FOOT_VALVE_MAX' - * '/g_aucFLOW_AF_FOOT_VALVE_MAX' - * '/g_aucFLOW_AFSM_FOOT_VALVE_MAX' - * '/g_aucFLOW_AF_FOOT_VALVE_MAX' + * '/g_aucFLOW_AFSM_FOOT_VALVE_MAX' + * '/g_aucFLOW_AF_FOOT_VALVE_MAX' + * '/g_aucFLOW_AFSM_FOOT_VALVE_MAX' + * '/g_aucFLOW_AF_FOOT_VALVE_MAX' */ void g_aucFLOW_AFSM_FOOT_VALVE_MAX_f(uint8_t rtu_LVL, uint8_t *rty_c_g_aucFLOW_AFSM_FOOT_VALVE_MAX) @@ -2785,8 +2857,8 @@ void g_aucFLOW_AFSM_FOOT_VALVE_MAX_f(uint8_t rtu_LVL, uint8_t /* * Output and update for action system: - * '/Afoot_Summer' * '/Afoot_Summer' + * '/Afoot_Summer' */ void Afoot_Summer(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t rtu_setTempFL, uint8_t rtu_setTempFR) @@ -2798,77 +2870,77 @@ void Afoot_Summer(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint16_t rtb_FRF_NEW; uint16_t rtb_Switch2_j1_idx_0; uint16_t rtb_Switch2_j1_idx_1; - uint16_t rtb_Switch2_l_idx_0; - uint16_t rtb_Switch2_l_idx_1; - int8_t rtb_X; + uint16_t rtb_Switch2_lt_idx_0; + uint16_t rtb_Switch2_lt_idx_1; + int8_t rtb_X_m; uint8_t rtb_c_g_aucFLOW_AFSM_FOOT_VALVE_MAX; uint8_t rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g; - /* MATLAB Function: '/get_tg_for_LVL' */ + /* MATLAB Function: '/get_tg_for_LVL' */ /* : c_g_assFLOW_AFSM_TEMP_TGT = g_assFLOW_AFSM_TEMP_TGT(LVL + 1); */ get_tg_FLL_for_LVL(rtu_LVL, rtu_setTempFL, &rtb_deg_c); - /* MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' */ + /* MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { tmp_0 = 255; } - /* Sum: '/ 1' incorporates: - * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' + /* Sum: '/ 1' incorporates: + * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' */ rtb_deg_c = (int16_t)(g_assFLOW_AFSM_TEMP_TGT[tmp_0 - 1] - rtb_deg_c); - /* Gain: '/Gain6' */ + /* Gain: '/Gain6' */ tmp_0 = 13107 * rtb_deg_c; - rtb_X = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & + rtb_X_m = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & 65535U) != 0U) || (tmp_0 > 0))) + (tmp_0 >> 17)); - /* Switch: '/Switch1' incorporates: - * Gain: '/Gain6' - * Sum: '/Add' + /* Switch: '/Switch1' incorporates: + * Gain: '/Gain6' + * Sum: '/Add' */ /* : c_g_aucFLOW_AFSM_FOOT_PLUS = g_aucFLOW_AFSM_FOOT_PLUS(LVL + 1); */ - if (rtb_X >= 0) { + if (rtb_X_m >= 0) { rtb_FLF_NEW = rty_Out1[4]; } else { - /* MATLAB Function: '/g_aucFLOW_AFSM_FOOT_PLUS' incorporates: - * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_AFSM_FOOT_PLUS' incorporates: + * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { tmp_0 = 255; } - /* Gain: '/Gain6' incorporates: - * MATLAB Function: '/g_aucFLOW_AFSM_FOOT_PLUS' - * Product: '/Product3' + /* Gain: '/Gain6' incorporates: + * MATLAB Function: '/g_aucFLOW_AFSM_FOOT_PLUS' + * Product: '/Product3' */ - tmp_0 = g_aucFLOW_AFSM_FOOT_PLUS[tmp_0 - 1] * rtb_X * 13107; + tmp_0 = g_aucFLOW_AFSM_FOOT_PLUS[tmp_0 - 1] * rtb_X_m * 13107; rtb_FLF_NEW = (uint16_t)((int16_t)rty_Out1[4] - (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && (((uint32_t)tmp_0 & 65535U) != 0U)) + (tmp_0 >> 17))); } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* MATLAB Function: '/g_aucFLOW_AFSM_FOOT_VALVE_MAX' */ + /* MATLAB Function: '/g_aucFLOW_AFSM_FOOT_VALVE_MAX' */ g_aucFLOW_AFSM_FOOT_VALVE_MAX_f(rtu_LVL, &rtb_c_g_aucFLOW_AFSM_FOOT_VALVE_MAX); - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ if (rtb_FLF_NEW > rtb_c_g_aucFLOW_AFSM_FOOT_VALVE_MAX) { rtb_FLF_NEW = rtb_c_g_aucFLOW_AFSM_FOOT_VALVE_MAX; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* MATLAB Function: '/get_tg_FLL_for_LVL' */ + /* MATLAB Function: '/get_tg_FLL_for_LVL' */ /* : c_g_assFLOW_AFSM_TEMP_TGT = g_assFLOW_AFSM_TEMP_TGT(LVL + 1 + 6); */ get_tg_FLL_for_LVL_j(rtu_LVL, rtu_setTempFR, &rtb_deg_c); - /* MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT' incorporates: - * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT' incorporates: + * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { @@ -2880,24 +2952,24 @@ void Afoot_Summer(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], tmp = 255; } - /* Gain: '/Gain6' incorporates: - * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT' - * Sum: '/ 1' + /* Gain: '/Gain6' incorporates: + * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT' + * Sum: '/ 1' */ tmp_0 = (int16_t)(g_assFLOW_AFSM_TEMP_TGT[tmp - 1] - rtb_deg_c) * 13107; - rtb_X = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & + rtb_X_m = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & 65535U) != 0U) || (tmp_0 > 0))) + (tmp_0 >> 17)); - /* Switch: '/Switch3' incorporates: - * Gain: '/Gain7' - * Sum: '/Add1' + /* Switch: '/Switch3' incorporates: + * Gain: '/Gain7' + * Sum: '/Add1' */ /* : c_g_aucFLOW_AFSM_FOOT_PLUS = g_aucFLOW_AFSM_FOOT_PLUS(LVL + 1 + 6); */ - if (rtb_X >= 0) { + if (rtb_X_m >= 0) { rtb_FRF_NEW = rty_Out1[6]; } else { - /* MATLAB Function: '/g_aucFLOW_AFSM_FOOT_PLUS' incorporates: - * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_AFSM_FOOT_PLUS' incorporates: + * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { @@ -2909,22 +2981,22 @@ void Afoot_Summer(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], tmp = 255; } - /* Gain: '/Gain7' incorporates: - * MATLAB Function: '/g_aucFLOW_AFSM_FOOT_PLUS' - * Product: '/Product4' + /* Gain: '/Gain7' incorporates: + * MATLAB Function: '/g_aucFLOW_AFSM_FOOT_PLUS' + * Product: '/Product4' */ - tmp_0 = g_aucFLOW_AFSM_FOOT_PLUS[tmp - 1] * rtb_X * 13107; + tmp_0 = g_aucFLOW_AFSM_FOOT_PLUS[tmp - 1] * rtb_X_m * 13107; rtb_FRF_NEW = (uint16_t)((int16_t)rty_Out1[6] - (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && (((uint32_t)tmp_0 & 65535U) != 0U)) + (tmp_0 >> 17))); } - /* End of Switch: '/Switch3' */ + /* End of Switch: '/Switch3' */ - /* MATLAB Function: '/g_aucFLOW_AF_FOOT_VALVE_MAX' */ + /* MATLAB Function: '/g_aucFLOW_AF_FOOT_VALVE_MAX' */ g_aucFLOW_AFSM_FOOT_VALVE_MAX_f(rtu_LVL, &rtb_c_g_aucFLOW_AFSM_FOOT_VALVE_MAX); - /* MATLAB Function: '/g_assFLOW_AFSM_AMB_TGT' incorporates: - * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_assFLOW_AFSM_AMB_TGT' incorporates: + * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_AFSM_VENT_PLUS = g_aucFLOW_AFSM_VENT_PLUS(LVL + 1); */ /* : c_g_assFLOW_AFSM_AMB_TGT = g_assFLOW_AFSM_AMB_TGT(LVL + 1); */ @@ -2933,46 +3005,46 @@ void Afoot_Summer(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], tmp_0 = 255; } - /* Sum: '/deg' incorporates: - * MATLAB Function: '/g_assFLOW_AFSM_AMB_TGT' + /* Sum: '/deg' incorporates: + * MATLAB Function: '/g_assFLOW_AFSM_AMB_TGT' */ rtb_deg_c = (int16_t)(g_assFLOW_AFSM_AMB_TGT[tmp_0 - 1] - rtu_Amb_Fb); - /* Gain: '/Gain2' */ + /* Gain: '/Gain2' */ tmp_0 = 13107 * rtb_deg_c; - rtb_X = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & + rtb_X_m = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & 65535U) != 0U) || (tmp_0 > 0))) + (tmp_0 >> 17)); - /* Switch: '/if (deg < 0)' incorporates: - * Sum: '/ ' - * Switch: '/Switch2' + /* Switch: '/if (deg < 0)' incorporates: + * Sum: '/ ' + * Switch: '/Switch2' */ - if (rtb_X >= 0) { - rtb_Switch2_l_idx_0 = rty_Out1[0]; - rtb_Switch2_l_idx_1 = rty_Out1[1]; + if (rtb_X_m >= 0) { + rtb_Switch2_lt_idx_0 = rty_Out1[0]; + rtb_Switch2_lt_idx_1 = rty_Out1[1]; } else { - /* MATLAB Function: '/g_aucFLOW_AFSM_VENT_PLUS' incorporates: - * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_AFSM_VENT_PLUS' incorporates: + * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { tmp_0 = 255; } - /* Product: '/Умножили' incorporates: - * Gain: '/Gain' - * MATLAB Function: '/g_aucFLOW_AFSM_VENT_PLUS' + /* Product: '/Умножили' incorporates: + * Gain: '/Gain' + * MATLAB Function: '/g_aucFLOW_AFSM_VENT_PLUS' */ rtb_deg_c = (int16_t)((int32_t)((g_aucFLOW_AFSM_VENT_PLUS[tmp_0 - 1] * 205U - + 1024U) >> 11) * rtb_X); - rtb_Switch2_l_idx_0 = (uint16_t)(rty_Out1[0] - rtb_deg_c); - rtb_Switch2_l_idx_1 = (uint16_t)(rty_Out1[1] - rtb_deg_c); + + 1024U) >> 11) * rtb_X_m); + rtb_Switch2_lt_idx_0 = (uint16_t)(rty_Out1[0] - rtb_deg_c); + rtb_Switch2_lt_idx_1 = (uint16_t)(rty_Out1[1] - rtb_deg_c); } - /* End of Switch: '/if (deg < 0)' */ + /* End of Switch: '/if (deg < 0)' */ - /* MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' incorporates: - * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' incorporates: + * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_AFSM_VENT_VALVE_MAX = g_aucFLOW_AFSM_VENT_VALVE_MAX(LVL + 1); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -2983,43 +3055,43 @@ void Afoot_Summer(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g = g_aucFLOW_AFSM_VENT_VALVE_MAX[tmp_0 - 1]; - /* End of MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' */ + /* End of MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' */ - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ - if (rtb_Switch2_l_idx_0 > rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g) { - rtb_Switch2_l_idx_0 = rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g; + if (rtb_Switch2_lt_idx_0 > rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g) { + rtb_Switch2_lt_idx_0 = rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g; } - if (rtb_Switch2_l_idx_1 > rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g) { - rtb_Switch2_l_idx_1 = rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g; + if (rtb_Switch2_lt_idx_1 > rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g) { + rtb_Switch2_lt_idx_1 = rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* MATLAB Function: '/g_assFLOW_AF_AMB_TGT' */ + /* MATLAB Function: '/g_assFLOW_AF_AMB_TGT' */ /* : c_g_aucFLOW_AFSM_VENT_PLUS = g_aucFLOW_AFSM_VENT_PLUS(LVL + 1 + 6); */ g_assFLOW_AF_AMB_TGT_g(rtu_LVL, &rtb_deg_c); - /* Gain: '/Gain2' incorporates: - * Sum: '/deg' + /* Gain: '/Gain2' incorporates: + * Sum: '/deg' */ tmp_0 = (int16_t)(rtb_deg_c - rtu_Amb_Fb) * 13107; - rtb_X = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & + rtb_X_m = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 & 65535U) != 0U) || (tmp_0 > 0))) + (tmp_0 >> 17)); - /* Switch: '/if (deg < 0)' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Sum: '/ ' - * Switch: '/Switch2' + /* Switch: '/if (deg < 0)' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Sum: '/ ' + * Switch: '/Switch2' */ - if (rtb_X >= 0) { + if (rtb_X_m >= 0) { rtb_Switch2_j1_idx_0 = rty_Out1[0]; rtb_Switch2_j1_idx_1 = rty_Out1[1]; } else { - /* MATLAB Function: '/g_aucFLOW_AF_VENT_PLUS' incorporates: - * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_AF_VENT_PLUS' incorporates: + * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' */ tmp_0 = (int32_t)(rtu_LVL + 1U); if (rtu_LVL + 1U > 255U) { @@ -3031,20 +3103,20 @@ void Afoot_Summer(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], tmp = 255; } - /* Product: '/Умножили' incorporates: - * Gain: '/Gain' - * MATLAB Function: '/g_aucFLOW_AF_VENT_PLUS' + /* Product: '/Умножили' incorporates: + * Gain: '/Gain' + * MATLAB Function: '/g_aucFLOW_AF_VENT_PLUS' */ rtb_deg_c = (int16_t)((int32_t)((g_aucFLOW_AFSM_VENT_PLUS[tmp - 1] * 205U + - 1024U) >> 11) * rtb_X); + 1024U) >> 11) * rtb_X_m); rtb_Switch2_j1_idx_0 = (uint16_t)((int16_t)rty_Out1[0] - rtb_deg_c); rtb_Switch2_j1_idx_1 = (uint16_t)((int16_t)rty_Out1[1] - rtb_deg_c); } - /* End of Switch: '/if (deg < 0)' */ + /* End of Switch: '/if (deg < 0)' */ - /* MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' incorporates: - * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' + /* MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' incorporates: + * MATLAB Function: '/g_assFLOW_AFSM_TEMP_TGT_LEFT' */ /* : c_g_aucFLOW_AFSM_VENT_VALVE_MAX = g_aucFLOW_AFSM_VENT_VALVE_MAX(LVL + 1 + 6); */ tmp_0 = (int32_t)(rtu_LVL + 1U); @@ -3059,72 +3131,72 @@ void Afoot_Summer(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g = g_aucFLOW_AFSM_VENT_VALVE_MAX[tmp - 1]; - /* End of MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' */ + /* End of MATLAB Function: '/g_aucFLOW_AF_VENT_VALVE_MAX' */ - /* Assignment: '/Присваивание в [1-2]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch2' + /* Assignment: '/Присваивание в [1-2]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch2' */ - rty_Out1[0] = rtb_Switch2_l_idx_0; + rty_Out1[0] = rtb_Switch2_lt_idx_0; - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ if (rtb_Switch2_j1_idx_0 > rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g) { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[2] = rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g; } else { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[2] = rtb_Switch2_j1_idx_0; } - /* Assignment: '/Присваивание в [1-2]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch2' + /* Assignment: '/Присваивание в [1-2]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch2' */ - rty_Out1[1] = rtb_Switch2_l_idx_1; + rty_Out1[1] = rtb_Switch2_lt_idx_1; - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ if (rtb_Switch2_j1_idx_1 > rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g) { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[3] = rtb_c_g_aucFLOW_AFSM_VENT_VALVE_MAX_g; } else { - /* Assignment: '/Присваивание в [3-4]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[3] = rtb_Switch2_j1_idx_1; } - /* Assignment: '/Присваивание в [5]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [5]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[4] = rtb_FLF_NEW; - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ if (rtb_FRF_NEW > rtb_c_g_aucFLOW_AFSM_FOOT_VALVE_MAX) { - /* Assignment: '/Присваивание в [7]' incorporates: - * SignalConversion generated from: '/Out1' + /* Assignment: '/Присваивание в [7]' incorporates: + * SignalConversion generated from: '/Out1' */ rty_Out1[6] = rtb_c_g_aucFLOW_AFSM_FOOT_VALVE_MAX; } else { - /* Assignment: '/Присваивание в [7]' incorporates: - * SignalConversion generated from: '/Out1' - * Switch: '/Switch' + /* Assignment: '/Присваивание в [7]' incorporates: + * SignalConversion generated from: '/Out1' + * Switch: '/Switch' */ rty_Out1[6] = rtb_FRF_NEW; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ } double rt_roundd(double u_0) @@ -3147,8 +3219,8 @@ double rt_roundd(double u_0) /* * Output and update for atomic system: - * '/Начальные положения заслонок left' - * '/Начальные положения заслонок right' + * '/Начальные положения заслонок left' + * '/Начальные положения заслонок right' */ void left(uint8_t rtu_idx, uint16_t rty_vals[9]) { @@ -3177,2407 +3249,144 @@ void left(uint8_t rtu_idx, uint16_t rty_vals[9]) } /* - * Output and update for atomic system: - * '/g_assSTART_ENTER_INCAR' - * '/g_assSTART_ENTER_INCAR' + * Output and update for action system: + * '/If Action Subsystem' + * '/If Action Subsystem' + * '/If Action Subsystem' + * '/If Action Subsystem' */ -void g_assSTART_ENTER_INCAR_f(uint8_t rtu_LVL, int16_t *rty_out) +void IfActionSubsystem(uint8_t rtu_In1, int8_t *rty_Out1, int16_t *rty_Out2) { - int32_t tmp; + /* Lookup_n-D: '/1-D Lookup Table1' */ + *rty_Out1 = look1_iu8lu64n56ts8Ds16_binlcs(rtu_In1, rtConstP.pooled91, + &g_ascFOOT_STEP_VALVE_M1[0], 10U); - /* : out = int16(g_assSTART_ENTER_INCAR(LVL+1)); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_assSTART_ENTER_INCAR[tmp - 1]; + /* Lookup_n-D: '/1-D Lookup Table2' */ + *rty_Out2 = look1_iu8lu64n48ts16Ds32_binlcs(rtu_In1, rtConstP.pooled91, + &g_assFOOT_STEP_BLR_M1[0], 10U); } /* * Output and update for action system: - * '/Level 2' - * '/Level 2' + * '/If Action Subsystem1' + * '/If Action Subsystem1' + * '/If Action Subsystem1' + * '/If Action Subsystem1' + * '/If Action Subsystem1' + * '/If Action Subsystem1' + * '/If Action Subsystem1' + * '/If Action Subsystem1' + * '/If Action Subsystem1' + * '/If Action Subsystem1' + * ... */ -void Level2(int8_t *rty_step) +void IfActionSubsystem1(int8_t *rty_Out1, int16_t *rty_Out2) { - /* SignalConversion generated from: '/step' incorporates: + /* SignalConversion generated from: '/Out1' incorporates: * Constant: '/Constant' */ - *rty_step = 3; -} + *rty_Out1 = 0; -/* - * Output and update for atomic system: - * '/g_assSTART_ENTER_COOLANT ' - * '/g_assSTART_ENTER_COOLANT ' - * '/g_assSTART_ENTER_COOLANT ' - */ -void g_assSTART_ENTER_COOLANT_j(uint8_t rtu_LVL, int16_t *rty_out) -{ - int32_t q0; - uint32_t qY; - - /* : out = int16(g_assSTART_ENTER_COOLANT(LVL + 1 - 3)); */ - q0 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - q0 = 255; - } - - /* MW:begin MISRA2012:D4.1 CERT-C:INT30-C 'Justifying MISRA CPP rule violation' */ - qY = (uint32_t)q0 - 3U; - - /* MW:end MISRA2012:D4.1 CERT-C:INT30-C */ - if ((uint32_t)q0 - 3U > (uint32_t)q0) { - qY = 0U; - } - - *rty_out = g_assSTART_ENTER_COOLANT[(int32_t)qY - 1]; + /* SignalConversion generated from: '/Out2' incorporates: + * Constant: '/Constant1' + */ + *rty_Out2 = 0; } /* * Output and update for action system: - * '/Level 4' - * '/Level 5' + * '/If Action Subsystem2' + * '/If Action Subsystem2' + * '/If Action Subsystem2' + * '/If Action Subsystem2' */ -void Level4(int8_t *rty_step1, const uint8_t *rtd_CCU_MODE_FL, const int16_t - *rtd_ECT, const uint8_t *rtd_LEVEL, const uint8_t *rtd_LO_HI_MODE_FL) +void IfActionSubsystem2(uint8_t rtu_In1, int8_t *rty_Out1, int16_t *rty_Out2) { - int16_t rtb_out_jr; + /* Lookup_n-D: '/1-D Lookup Table' */ + *rty_Out1 = look1_iu8lu64n56ts8Ds16_binlcs(rtu_In1, rtConstP.pooled91, + &g_ascFOOT_STEP_VALVE_P1[0], 10U); - /* MATLAB Function: '/g_assSTART_ENTER_COOLANT ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - g_assSTART_ENTER_COOLANT_j(*rtd_LEVEL, &rtb_out_jr); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/LOW' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/mode driver' - * Logic: '/AND' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator2' - * RelationalOperator: '/Relational Operator3' - */ - if ((*rtd_ECT < rtb_out_jr) && (*rtd_CCU_MODE_FL == 1) && (*rtd_LO_HI_MODE_FL - != 1)) { - *rty_step1 = 0; - } else { - *rty_step1 = -1; - } - - /* End of Switch: '/Switch' */ + /* Lookup_n-D: '/1-D Lookup Table2' */ + *rty_Out2 = look1_iu8lu64n48ts16Ds32_binlcs(rtu_In1, rtConstP.pooled91, + &g_assFOOT_STEP_BLR_P1[0], 10U); } /* * Output and update for action system: - * '/Level 0' - * '/Level 1' - * '/Level 2' - * '/Level 0' - * '/Level 1' + * '/If Action Subsystem' + * '/If Action Subsystem' + * '/If Action Subsystem' + * '/If Action Subsystem' */ -void Level0(int8_t *rty_step) +void IfActionSubsystem_b(uint8_t rtu_In1, int8_t *rty_Out1, int16_t *rty_Out2) { - /* SignalConversion generated from: '/step' incorporates: - * Constant: '/Constant' - */ - *rty_step = 1; -} + /* Lookup_n-D: '/1-D Lookup Table1' */ + *rty_Out1 = look1_iu8lu64n56ts8Ds16_binlcs(rtu_In1, rtConstP.pooled91, + &g_ascFOOT_STEP_VALVE_M2[0], 10U); -/* - * Output and update for atomic system: - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * ... - */ -void incarfilterdown(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - - /* : out = g_aucSTART_INCAR_FLT_DN(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_aucSTART_INCAR_FLT_DN[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * ... - */ -void incarfilterup(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - - /* : out = g_aucSTART_INCAR_FLT_UP(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_aucSTART_INCAR_FLT_UP[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/g_assSTART_COOLANT_STEP0_TO_1 ' - * '/g_assSTART_COOLANT_STEP0_TO_1 ' - */ -void g_assSTART_COOLANT_STEP0_TO_1_a(uint8_t rtu_LVL, int16_t *rty_out) -{ - int32_t q0; - uint32_t qY; - - /* : out = int16(g_assSTART_COOLANT_STEP0_TO_1(LVL + 1 - 2)); */ - q0 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - q0 = 255; - } - - /* MW:begin MISRA2012:D4.1 CERT-C:INT30-C 'Justifying MISRA CPP rule violation' */ - qY = (uint32_t)q0 - 2U; - - /* MW:end MISRA2012:D4.1 CERT-C:INT30-C */ - if ((uint32_t)q0 - 2U > (uint32_t)q0) { - qY = 0U; - } - - *rty_out = g_assSTART_COOLANT_STEP0_TO_1[(int32_t)qY - 1]; -} - -/* - * Output and update for atomic system: - * '/3 way valve status' - * '/3 way valve status' - * '/3 way valve status' - * '/3 way valve status' - * '/3 way valve status' - */ -void uwayvalvestatus(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - - /* : out = g_aucSTART_3WAY_OPEN(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_aucSTART_3WAY_OPEN[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/Dtg_FrontLower_X' - * '/Dtg_FrontLower_X' - * '/Dtg_FrontLower_X' - */ -void Dtg_FrontLower_X(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - - /* : out = g_aucSTART_DUCT_TGT_STEP2_FX_L(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_aucSTART_DUCT_TGT_STEP2_FX_L[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/Dtg_FrontUpper_X' - * '/Dtg_FrontUpper_X' - * '/Dtg_FrontUpper_X' - */ -void Dtg_FrontUpper_X(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - - /* : out = g_aucSTART_DUCT_TGT_STEP2_FX_U(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_aucSTART_DUCT_TGT_STEP2_FX_U[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - */ -void Incartempgotofromstep1tostep2(uint8_t rtu_LVL, int16_t *rty_out) -{ - int32_t tmp; - - /* : out = int16(g_assSTART_INCAR_STEP1_TO_2(LVL + 1)); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_assSTART_INCAR_STEP1_TO_2[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/blower FR' - * '/blower FR' - */ -void blowerFR(uint8_t rtu_LVL, uint16_t *rty_out) -{ - int32_t tmp; - - /* : out = g_ausSTART_BLR_AF_STEP12_F(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_ausSTART_BLR_AF_STEP12_F[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/mode FR step 1' - * '/mode FR step 1' - * '/mode FR step 1' - * '/mode FR step 1' - * '/mode FR step 1' - */ -void modeFRstep1(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - - /* : out = g_aucSTART_VALVE_IDX_STEP1(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_aucSTART_VALVE_IDX_STEP1[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/window heating' - * '/window heating' - * '/window heating' - * '/window heating' - * '/window heating' - */ -void windowheating(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - - /* : out = g_aucSTART_ELEC_WINDOW(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_aucSTART_ELEC_WINDOW[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - */ -void Timegotofromstep1tostep2(uint8_t rtu_LVL, int16_t *rty_out) -{ - int32_t tmp; - uint16_t tmp_0; - - /* : out = int16(g_ausSTART_TIME_STEP1_TO_2(LVL + 1)); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = g_ausSTART_TIME_STEP1_TO_2[tmp - 1]; - if (tmp_0 > 32767) { - tmp_0 = 32767U; - } - - *rty_out = (int16_t)tmp_0; -} - -/* - * Output and update for atomic system: - * '/ECT min max' - * '/ECT min max' - * '/ECT min max' - */ -void ECTminmax(uint8_t rtu_LVL, int16_t rty_out[2]) -{ - int32_t q0; - uint32_t qY; - - /* : min = int16(g_assSTART_COOLANT_STEP0_TO_1(LVL + 1 - 2)); */ - /* : max = int16(g_assSTART_COOLANT_TO_STEP2(1)); */ - /* : out = [min, max]; */ - q0 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - q0 = 255; - } - - /* MW:begin MISRA2012:D4.1 CERT-C:INT30-C 'Justifying MISRA CPP rule violation' */ - qY = (uint32_t)q0 - 2U; - - /* MW:end MISRA2012:D4.1 CERT-C:INT30-C */ - if ((uint32_t)q0 - 2U > (uint32_t)q0) { - qY = 0U; - } - - rty_out[0] = g_assSTART_COOLANT_STEP0_TO_1[(int32_t)qY - 1]; - rty_out[1] = g_assSTART_COOLANT_TO_STEP2[0]; -} - -/* - * Output and update for atomic system: - * '/blower min max' - * '/blower min max' - * '/blower min max' - */ -void blowerminmax(uint8_t rtu_LVL, uint16_t rty_out[2]) -{ - int32_t tmp; - - /* : min = 20; */ - /* : max = g_ausSTART_BLR_AF_STEP12_F(LVL + 1); */ - /* : out = [min, max]; */ - rty_out[0] = 20U; - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - rty_out[1] = g_ausSTART_BLR_AF_STEP12_F[tmp - 1]; + /* Lookup_n-D: '/1-D Lookup Table2' */ + *rty_Out2 = look1_iu8lu64n48ts16Ds32_binlcs(rtu_In1, rtConstP.pooled91, + &g_assFOOT_STEP_BLR_M2[0], 10U); } /* * Output and update for action system: - * '/Level 4' - * '/Level 5' + * '/If Action Subsystem2' + * '/If Action Subsystem2' + * '/If Action Subsystem2' + * '/If Action Subsystem2' */ -void Level4_h(int8_t *rty_step, uint16_t *rtd_Blower_FL, uint16_t *rtd_Blower_FR, - uint8_t *rtd_Dtg_FLL, uint8_t *rtd_Dtg_FLR, uint8_t *rtd_Dtg_FUL, - uint8_t *rtd_Dtg_FUR, const int16_t *rtd_ECT, uint8_t - *rtd_El_window_heating, const int16_t *rtd_Incar_FL, uint8_t - *rtd_Incar_filter_down_value, uint8_t *rtd_Incar_filter_up_value, - const uint8_t *rtd_LEVEL, uint8_t *rtd_Mode_FL, uint8_t - *rtd_Mode_FR, double *rtd_Recirculation, uint8_t *rtd_Valve_3_way, - const int8_t *rtd_step_start_controle_front, const uint32_t - *rtd_t_now, DW_Level4_o *localDW) +void IfActionSubsystem2_o(uint8_t rtu_In1, int8_t *rty_Out1, int16_t *rty_Out2) { - int32_t tmp; - int16_t rtb_out_o4[2]; - int16_t rtb_out_dh; - int16_t rtb_out_oj; - uint16_t rtb_out_nk[2]; - uint8_t rtb_out_pa; - bool rtb_Equal_eo; - bool rtb_RelationalOperator1_a; + /* Lookup_n-D: '/1-D Lookup Table' */ + *rty_Out1 = look1_iu8lu64n56ts8Ds16_binlcs(rtu_In1, rtConstP.pooled91, + &g_ascFOOT_STEP_VALVE_P2[0], 10U); - /* DataStoreWrite: '/Data Store Write8' incorporates: - * DataStoreRead: '/Data Store Read10' - * MATLAB Function: '/3 way valve status' - */ - uwayvalvestatus(*rtd_LEVEL, rtd_Valve_3_way); - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup(*rtd_LEVEL, rtd_Incar_filter_up_value); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown(*rtd_LEVEL, rtd_Incar_filter_down_value); - - /* MATLAB Function: '/mode FR step 1' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - modeFRstep1(*rtd_LEVEL, &rtb_out_pa); - - /* DataStoreWrite: '/Data Store Write2' */ - *rtd_Mode_FR = rtb_out_pa; - - /* DataStoreWrite: '/Data Store Write3' */ - *rtd_Mode_FL = rtb_out_pa; - - /* MATLAB Function: '/window heating' incorporates: - * DataStoreRead: '/Data Store Read6' - */ - windowheating(*rtd_LEVEL, &rtb_out_pa); - - /* DataStoreWrite: '/Data Store Write4' */ - *rtd_El_window_heating = rtb_out_pa; - - /* MATLAB Function: '/blower min max' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerminmax(*rtd_LEVEL, rtb_out_nk); - - /* MATLAB Function: '/ECT min max' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - ECTminmax(*rtd_LEVEL, rtb_out_o4); - - /* Lookup_n-D: '/blower для текущего ECT' incorporates: - * DataStoreRead: '/engine coolant temp' - */ - rtb_out_oj = look1_is16lu64n32tu16Ds32Is16_binlcs(*rtd_ECT, rtb_out_o4, - rtb_out_nk, 1U); - - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreWrite: '/Data Store Write5' - */ - *rtd_Blower_FR = (uint16_t)rtb_out_oj; - - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreWrite: '/Data Store Write5' - */ - *rtd_Blower_FL = *rtd_Blower_FR; - - /* MATLAB Function: '/Dtg_FrontUpper_X' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - /* : out = g_aucSTART_DUCT_TGT_STEP2_FX_U(LVL + 1); */ - tmp = (int32_t)(*rtd_LEVEL + 1U); - if (*rtd_LEVEL + 1U > 255U) { - tmp = 255; - } - - rtb_out_pa = g_aucSTART_DUCT_TGT_STEP2_FX_U[tmp - 1]; - - /* DataStoreWrite: '/Data Store Write10' */ - *rtd_Dtg_FUR = rtb_out_pa; - - /* DataStoreWrite: '/Data Store Write11' */ - *rtd_Dtg_FUL = rtb_out_pa; - - /* MATLAB Function: '/Dtg_FrontLower_X' incorporates: - * DataStoreRead: '/Data Store Read8' - * DataStoreRead: '/Data Store Read9' - * MATLAB Function: '/Dtg_FrontUpper_X' - */ - /* : out = g_aucSTART_DUCT_TGT_STEP2_FX_L(LVL + 1); */ - tmp = (int32_t)(*rtd_LEVEL + 1U); - if (*rtd_LEVEL + 1U > 255U) { - tmp = 255; - } - - rtb_out_pa = g_aucSTART_DUCT_TGT_STEP2_FX_L[tmp - 1]; - - /* End of MATLAB Function: '/Dtg_FrontLower_X' */ - - /* DataStoreWrite: '/Data Store Write12' */ - *rtd_Dtg_FLR = rtb_out_pa; - - /* DataStoreWrite: '/Data Store Write13' */ - *rtd_Dtg_FLL = rtb_out_pa; - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - *rtd_Recirculation = 1.0; - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - rtb_Equal_eo = (*rtd_step_start_controle_front == 1); - - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - Incartempgotofromstep1tostep2(*rtd_LEVEL, &rtb_out_dh); - - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep1tostep2(*rtd_LEVEL, &rtb_out_oj); - - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreRead: '/Data Store Read4' - * Gain: '/из сек в мс' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_RelationalOperator1_a = (*rtd_t_now - - localDW->t_start_delay_private_DSTATE > (uint32_t)(1000 * rtb_out_oj)); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (rtb_Equal_eo && (!localDW->Cond_prev_private_DSTATE)) { - localDW->t_start_delay_private_DSTATE = *rtd_t_now; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * Constant: '/go to next step' - * Constant: '/stay at step 1' - * DataStoreRead: '/incar temp' - * Logic: '/Logical Operator' - * RelationalOperator: '/Relational Operator' - */ - if ((*rtd_Incar_FL > rtb_out_dh) || rtb_RelationalOperator1_a) { - *rty_step = 2; - } else { - *rty_step = 1; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Cond_prev_private ' */ - localDW->Cond_prev_private_DSTATE = rtb_Equal_eo; -} - -/* - * Output and update for atomic system: - * '/3 way valve status' - * '/3 way valve status' - * '/3 way valve status' - * '/3 way valve status' - * '/3 way valve status' - */ -void uwayvalvestatus_j(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = g_aucSTART_3WAY_OPEN(LVL + 1 + 6); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_aucSTART_3WAY_OPEN[tmp_0 - 1]; -} - -/* - * Output and update for atomic system: - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - */ -void timeforstep(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = g_aucSTART_DUCT_TGT_STEP2_FX_L(LVL + 1 + 6); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_aucSTART_DUCT_TGT_STEP2_FX_L[tmp_0 - 1]; -} - -/* - * Output and update for atomic system: - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - */ -void timeforstep_c(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = g_aucSTART_DUCT_TGT_STEP2_FX_U(LVL + 1 + 6); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_aucSTART_DUCT_TGT_STEP2_FX_U[tmp_0 - 1]; -} - -/* - * Output and update for atomic system: - * '/Time goto from step 2 to step 3 ' - * '/Time goto from step 2 to step 3 ' - * '/Time goto from step 2 to step 3 ' - * '/Time goto from step 2 to step 3 ' - * '/Time goto from step 2 to step 3 ' - */ -void Timegotofromstep2tostep3(uint8_t rtu_LVL, int16_t *rty_out) -{ - int32_t tmp; - uint16_t tmp_0; - - /* : out = int16(g_ausSTART_TIME_STEP2_TO_3(LVL + 1)); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = g_ausSTART_TIME_STEP2_TO_3[tmp - 1]; - if (tmp_0 > 32767) { - tmp_0 = 32767U; - } - - *rty_out = (int16_t)tmp_0; -} - -/* - * Output and update for atomic system: - * '/blower step' - * '/blower step' - * '/blower step' - * '/blower step' - * '/blower step' - */ -void blowerstep(uint8_t rtu_LVL, uint16_t *rty_out) -{ - int32_t tmp; - - /* : out = g_ausSTART_BLR_SPD_STEP2_F(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_ausSTART_BLR_SPD_STEP2_F[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' - */ -void blowertimeforstep(uint8_t rtu_LVL, uint16_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = g_ausSTART_BLR_SPD_STEP2_F(LVL + 1 + 6); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_ausSTART_BLR_SPD_STEP2_F[tmp_0 - 1]; -} - -/* - * Output and update for atomic system: - * '/step' - * '/step' - * '/step' - * '/step' - * '/step' - */ -void step_h(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - - /* : out = g_aucSTART_VALVE_CHANGE_SPD_F(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_aucSTART_VALVE_CHANGE_SPD_F[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - */ -void timeforstep_p(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = g_aucSTART_VALVE_CHANGE_SPD_F(LVL + 1 + 6); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_aucSTART_VALVE_CHANGE_SPD_F[tmp_0 - 1]; -} - -/* - * Output and update for atomic system: - * '/window heating' - * '/window heating' - * '/window heating' - * '/window heating' - */ -void windowheating_e(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = g_aucSTART_ELEC_WINDOW(LVL + 1 + 6); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_aucSTART_ELEC_WINDOW[tmp_0 - 1]; -} - -/* - * Output and update for atomic system: - * '/autodemist (autodefog)' - * '/autodemist (autodefog)' - * '/autodemist (autodefog)' - */ -void autodemistautodefog(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - - /* : out = g_aucSTART_AUTODEMIST2_STEP2(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_aucSTART_AUTODEMIST2_STEP2[tmp - 1]; + /* Lookup_n-D: '/1-D Lookup Table2' */ + *rty_Out2 = look1_iu8lu64n48ts16Ds32_binlcs(rtu_In1, rtConstP.pooled91, + &g_assFOOT_STEP_BLR_P2[0], 10U); } /* * Output and update for action system: - * '/Level 3' - * '/Level 4' + * '/If Action Subsystem' + * '/If Action Subsystem' + * '/If Action Subsystem' + * '/If Action Subsystem' */ -void Level3(int8_t *rty_step, uint8_t *rtd_Autodefog, uint16_t *rtd_Blower_FL, - uint16_t *rtd_Blower_FR, const uint16_t *rtd_Blower_logic_FL, - uint8_t *rtd_Dtg_FLL, uint8_t *rtd_Dtg_FLR, uint8_t *rtd_Dtg_FUL, - uint8_t *rtd_Dtg_FUR, const uint8_t *rtd_Dtg_logic_FLL, const - uint8_t *rtd_Dtg_logic_FUL, uint8_t *rtd_El_window_heating, const - bool *rtd_HI_logic_on, uint8_t *rtd_Incar_filter_down_value, uint8_t - *rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, uint8_t - *rtd_Mode_FL, uint8_t *rtd_Mode_FR, const uint8_t *rtd_Mode_logic_FL, - double *rtd_Recirculation, uint8_t *rtd_Valve_3_way, const int8_t - *rtd_step_start_controle_front, const uint32_t *rtd_t_now, DW_Level3 - *localDW) +void IfActionSubsystem_n(uint8_t rtu_In1, int8_t *rty_Out1, int16_t *rty_Out2) { - int32_t tmp; - int16_t rtb_out_axx; - uint16_t rtb_out_pb; - uint16_t rtb_out_pv; - uint8_t rtb_out_co; - uint8_t rtb_out_hp; - uint8_t rtb_out_po; - bool rtb_Cond_prev_private_dr; - bool rtb_RelationalOperator1_a; + /* Lookup_n-D: '/1-D Lookup Table1' */ + *rty_Out1 = look1_iu8lu64n56ts8Ds16_binlcs(rtu_In1, rtConstP.pooled91, + &g_ascFOOT_STEP_VALVE_M3[0], 10U); - /* DataStoreWrite: '/Data Store Write8' incorporates: - * DataStoreRead: '/Data Store Read10' - * MATLAB Function: '/3 way valve status' - */ - uwayvalvestatus_j(*rtd_LEVEL, rtd_Valve_3_way); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read9' - */ - Dtg_FrontLower_X(*rtd_LEVEL, &rtb_out_po); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read9' - */ - timeforstep(*rtd_LEVEL, &rtb_out_hp); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write12' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint8_t)(*rtd_Dtg_FLL - *rtd_Dtg_logic_FLL) <= 0.01) { - *rtd_Dtg_FLR = *rtd_Dtg_logic_FLL; - } else { - if (*rtd_Dtg_FLL <= *rtd_Dtg_logic_FLL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - tmp = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - tmp = -1; - } - - *rtd_Dtg_FLR = (uint8_t)((double)rtb_out_po / (double)rtb_out_hp / 1000.0 * - (double)(*rtd_t_now - localDW->UnitDelay_DSTATE) * (double)tmp + (double)* - rtd_Dtg_FLL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write13' incorporates: - * DataStoreWrite: '/Data Store Write12' - */ - *rtd_Dtg_FLL = *rtd_Dtg_FLR; - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - Dtg_FrontUpper_X(*rtd_LEVEL, &rtb_out_po); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - timeforstep_c(*rtd_LEVEL, &rtb_out_hp); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write10' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint8_t)(*rtd_Dtg_FUL - *rtd_Dtg_logic_FUL) <= 0.01) { - *rtd_Dtg_FUR = *rtd_Dtg_logic_FUL; - } else { - if (*rtd_Dtg_FUL <= *rtd_Dtg_logic_FUL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - tmp = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - tmp = -1; - } - - *rtd_Dtg_FUR = (uint8_t)((double)rtb_out_po / (double)rtb_out_hp / 1000.0 * - (double)(*rtd_t_now - localDW->UnitDelay_DSTATE_e) * (double)tmp + (double)* - rtd_Dtg_FUL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * DataStoreWrite: '/Data Store Write10' - */ - *rtd_Dtg_FUL = *rtd_Dtg_FUR; - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup(*rtd_LEVEL, rtd_Incar_filter_up_value); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown(*rtd_LEVEL, rtd_Incar_filter_down_value); - - /* DataStoreWrite: '/Data Store Write14' incorporates: - * DataStoreRead: '/Data Store Read3' - * MATLAB Function: '/autodemist (autodefog)' - */ - autodemistautodefog(*rtd_LEVEL, rtd_Autodefog); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_out_po = (uint8_t)(*rtd_Mode_FL - *rtd_Mode_logic_FL); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - step_h(*rtd_LEVEL, &rtb_out_hp); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - timeforstep_p(*rtd_LEVEL, &rtb_out_co); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write2' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if (rtb_out_po <= 0.01) { - *rtd_Mode_FR = *rtd_Mode_logic_FL; - } else { - if (*rtd_Mode_FL <= *rtd_Mode_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - tmp = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - tmp = -1; - } - - *rtd_Mode_FR = (uint8_t)((double)rtb_out_hp / (double)rtb_out_co / 1000.0 * - (double)(*rtd_t_now - localDW->UnitDelay_DSTATE_g) * (double)tmp + (double)* - rtd_Mode_FL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreWrite: '/Data Store Write2' - */ - *rtd_Mode_FL = *rtd_Mode_FR; - - /* MATLAB Function: '/window heating' incorporates: - * DataStoreRead: '/Data Store Read6' - */ - windowheating_e(*rtd_LEVEL, &rtb_out_po); - - /* DataStoreWrite: '/Data Store Write4' */ - *rtd_El_window_heating = rtb_out_po; - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_out_pv = (uint16_t)(*rtd_Blower_FL - *rtd_Blower_logic_FL); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - rtb_Cond_prev_private_dr = (rtb_out_pv <= 0.01); - - /* MATLAB Function: '/blower step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstep(*rtd_LEVEL, &rtb_out_pb); - - /* MATLAB Function: '/blower time for step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowertimeforstep(*rtd_LEVEL, &rtb_out_pv); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write5' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if (rtb_Cond_prev_private_dr) { - *rtd_Blower_FR = *rtd_Blower_logic_FL; - } else { - if (*rtd_Blower_FL <= *rtd_Blower_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - tmp = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - tmp = -1; - } - - *rtd_Blower_FR = (uint16_t)((double)rtb_out_pb / (double)rtb_out_pv / 1000.0 - * (double)(*rtd_t_now - localDW->UnitDelay_DSTATE_gq) * (double)tmp + - (double)*rtd_Blower_FL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreWrite: '/Data Store Write5' - */ - *rtd_Blower_FL = *rtd_Blower_FR; - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - *rtd_Recirculation = 1.0; - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - rtb_Cond_prev_private_dr = (*rtd_step_start_controle_front == 2); - - /* MATLAB Function: '/Time goto from step 2 to step 3 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep2tostep3(*rtd_LEVEL, &rtb_out_axx); - - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreRead: '/Data Store Read4' - * Gain: '/из сек в мс' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_RelationalOperator1_a = (*rtd_t_now - - localDW->t_start_delay_private_DSTATE > (uint32_t)(1000 * rtb_out_axx)); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (rtb_Cond_prev_private_dr && (!localDW->Cond_prev_private_DSTATE)) { - localDW->t_start_delay_private_DSTATE = *rtd_t_now; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * Constant: '/go to next step' - * Constant: '/stay at step' - * DataStoreRead: '/Data Store Read' - * Logic: '/Logical Operator' - */ - if (rtb_RelationalOperator1_a || (*rtd_HI_logic_on)) { - *rty_step = 3; - } else { - *rty_step = 2; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - localDW->UnitDelay_DSTATE = *rtd_t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - localDW->UnitDelay_DSTATE_e = *rtd_t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - localDW->UnitDelay_DSTATE_g = *rtd_t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - localDW->UnitDelay_DSTATE_gq = *rtd_t_now; - - /* Update for UnitDelay: '/Cond_prev_private ' */ - localDW->Cond_prev_private_DSTATE = rtb_Cond_prev_private_dr; -} - -/* - * Output and update for atomic system: - * '/g_ausSTART_ENTER_SETTEMP' - * '/g_ausSTART_ENTER_SETTEMP' - * '/g_ausSTART_ENTER_SETTEMP' - */ -void g_ausSTART_ENTER_SETTEMP_m(uint8_t rtu_LVL, int16_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - uint16_t tmp_1; - - /* : out = int16(g_ausSTART_ENTER_SETTEMP(LVL+1+6)); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - tmp_1 = g_ausSTART_ENTER_SETTEMP[tmp_0 - 1]; - if (tmp_1 > 32767) { - tmp_1 = 32767U; - } - - *rty_out = (int16_t)tmp_1; -} - -/* - * Output and update for atomic system: - * '/g_assSTART_ENTER_INCAR' - * '/g_assSTART_ENTER_INCAR' - * '/g_assSTART_ENTER_INCAR' - * '/g_assSTART_ENTER_INCAR' - * '/g_assSTART_ENTER_INCAR' - */ -void g_assSTART_ENTER_INCAR_c(uint8_t rtu_LVL, int16_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = int16(g_assSTART_ENTER_INCAR(LVL+1+6)); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_assSTART_ENTER_INCAR[tmp_0 - 1]; -} - -/* - * Output and update for atomic system: - * '/g_assSTART_ENTER_COOLANT ' - * '/g_assSTART_ENTER_COOLANT ' - * '/g_assSTART_ENTER_COOLANT ' - */ -void g_assSTART_ENTER_COOLANT_c(uint8_t rtu_LVL, int16_t *rty_out) -{ - int32_t tmp; - - /* : out = int16(g_assSTART_ENTER_COOLANT(LVL + 1)); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_assSTART_ENTER_COOLANT[tmp - 1]; + /* Lookup_n-D: '/1-D Lookup Table2' */ + *rty_Out2 = look1_iu8lu64n48ts16Ds32_binlcs(rtu_In1, rtConstP.pooled91, + &g_assFOOT_STEP_BLR_M3[0], 10U); } /* * Output and update for action system: - * '/Level 4' - * '/Level 5' + * '/If Action Subsystem2' + * '/If Action Subsystem2' + * '/If Action Subsystem2' + * '/If Action Subsystem2' */ -void Level4_l(int8_t *rty_step1, const uint8_t *rtd_CCU_MODE_RR, const int16_t - *rtd_ECT, const int16_t *rtd_Incar_RR, const uint8_t *rtd_LEVEL, - const uint8_t *rtd_LO_HI_MODE_FL) +void IfActionSubsystem2_c(uint8_t rtu_In1, int8_t *rty_Out1, int16_t *rty_Out2) { - int16_t rtb_out_es; - int16_t rtb_out_gs; + /* Lookup_n-D: '/1-D Lookup Table' */ + *rty_Out1 = look1_iu8lu64n56ts8Ds16_binlcs(rtu_In1, rtConstP.pooled91, + &g_ascFOOT_STEP_VALVE_P3[0], 10U); - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - g_assSTART_ENTER_INCAR_c(*rtd_LEVEL, &rtb_out_es); - - /* MATLAB Function: '/g_assSTART_ENTER_COOLANT ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - g_assSTART_ENTER_COOLANT_c(*rtd_LEVEL, &rtb_out_gs); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/LOW' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read5' - * Logic: '/AND' - * Logic: '/AND1' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * RelationalOperator: '/Relational Operator3' - */ - if (((*rtd_Incar_RR < rtb_out_es) || (*rtd_ECT < rtb_out_gs)) && - (*rtd_CCU_MODE_RR == 1) && (*rtd_LO_HI_MODE_FL != 1)) { - *rty_step1 = 0; - } else { - *rty_step1 = -1; - } - - /* End of Switch: '/Switch' */ + /* Lookup_n-D: '/1-D Lookup Table2' */ + *rty_Out2 = look1_iu8lu64n48ts16Ds32_binlcs(rtu_In1, rtConstP.pooled91, + &g_assFOOT_STEP_BLR_P3[0], 10U); } /* * Output and update for atomic system: - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - */ -void incarfilterdown_c(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = g_aucSTART_INCAR_FLT_DN(LVL + 1 + 6); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_aucSTART_INCAR_FLT_DN[tmp_0 - 1]; -} - -/* - * Output and update for atomic system: - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - */ -void incarfilterup_b(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = g_aucSTART_INCAR_FLT_UP(LVL + 1 + 6); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_aucSTART_INCAR_FLT_UP[tmp_0 - 1]; -} - -/* - * Output and update for atomic system: - * '/g_assSTART_COOLANT_STEP0_TO_1 ' - * '/g_assSTART_COOLANT_STEP0_TO_1 ' - * '/g_assSTART_COOLANT_STEP0_TO_1 ' - */ -void g_assSTART_COOLANT_STEP0_TO_1_k(uint8_t rtu_LVL, int16_t *rty_out) -{ - int32_t tmp; - - /* : out = int16(g_assSTART_COOLANT_STEP0_TO_1(LVL + 3)); */ - tmp = (int32_t)(rtu_LVL + 3U); - if (rtu_LVL + 3U > 255U) { - tmp = 255; - } - - *rty_out = g_assSTART_COOLANT_STEP0_TO_1[tmp - 1]; -} - -/* - * Output and update for action system: - * '/Level 4' - * '/Level 5' - */ -void Level4_c(int8_t *rty_step1, uint16_t *rtd_Blower_RL, uint16_t - *rtd_Blower_RR, uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, const - int16_t *rtd_ECT, uint8_t *rtd_Incar_filter_down_value, uint8_t - *rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, uint8_t - *rtd_Mode_RL, uint8_t *rtd_Mode_RR, uint8_t *rtd_Valve_2_way, - uint8_t *rtd_Valve_3_way) -{ - int16_t rtb_out_nk; - - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' - */ - *rtd_Blower_RR = 10U; - - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' - */ - *rtd_Blower_RL = 10U; - - /* DataStoreWrite: '/Data Store Write10' incorporates: - * Constant: '/Constant4' - */ - *rtd_Dtg_RR = 80U; - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant5' - */ - *rtd_Dtg_RL = 80U; - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup_b(*rtd_LEVEL, rtd_Incar_filter_up_value); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown_c(*rtd_LEVEL, rtd_Incar_filter_down_value); - - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Mode - foot' - */ - *rtd_Mode_RR = 60U; - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Mode - foot' - */ - *rtd_Mode_RL = 60U; - - /* DataStoreWrite: '/Data Store Write8' incorporates: - * Constant: '/Valve open' - */ - *rtd_Valve_3_way = 1U; - - /* DataStoreWrite: '/Data Store Write9' incorporates: - * Constant: '/Valve open' - */ - *rtd_Valve_2_way = 1U; - - /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - g_assSTART_COOLANT_STEP0_TO_1_k(*rtd_LEVEL, &rtb_out_nk); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Engine coolant temp' - * RelationalOperator: '/Relational Operator' - */ - *rty_step1 = (int8_t)(*rtd_ECT > rtb_out_nk); -} - -/* - * Output and update for atomic system: - * '/2 way valve' - * '/2 way valve' - * '/2 way valve' - * '/2 way valve' - * '/2 way valve' - * '/2 way valve' - * '/2 way valve' - * '/2 way valve' - * '/2 way valve' - * '/2 way valve' - * ... - */ -void uwayvalve(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - - /* : out = g_aucSTART_2WAY_OPEN(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_aucSTART_2WAY_OPEN[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/Dtg_rear' - * '/Dtg_rear' - * '/Dtg_rear' - * '/Dtg_rear' - * '/Dtg_rear' - * '/Dtg_rear' - */ -void Dtg_rear(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - - /* : out = g_aucSTART_DUCT_TGT_STEP2_RX(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_aucSTART_DUCT_TGT_STEP2_RX[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - */ -void Incartempgotofromstep1tostep2_n(uint8_t rtu_LVL, int16_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = int16(g_assSTART_INCAR_STEP1_TO_2(LVL + 1 + 6)); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_assSTART_INCAR_STEP1_TO_2[tmp_0 - 1]; -} - -/* - * Output and update for atomic system: - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * ... - */ -void Timegotofromstep1tostep2_p(uint8_t rtu_LVL, int16_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - uint16_t tmp_1; - - /* : out = int16(g_ausSTART_TIME_STEP1_TO_2(LVL + 1 + 6)); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - tmp_1 = g_ausSTART_TIME_STEP1_TO_2[tmp_0 - 1]; - if (tmp_1 > 32767) { - tmp_1 = 32767U; - } - - *rty_out = (int16_t)tmp_1; -} - -/* - * Output and update for atomic system: - * '/mode rear step 1' - * '/mode rear step 1' - * '/mode rear step 1' - * '/mode rear step 1' - * '/mode rear step 1' - * '/mode rear step 1' - */ -void moderearstep1(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = g_aucSTART_VALVE_IDX_STEP1(LVL + 1 + 6); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_aucSTART_VALVE_IDX_STEP1[tmp_0 - 1]; -} - -/* - * Output and update for action system: - * '/Level 0' - * '/Level 1' - */ -void Level0_o(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR, - uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, const int16_t - *rtd_Incar_RR, uint8_t *rtd_Incar_filter_down_value, uint8_t - *rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, uint8_t - *rtd_Mode_RL, uint8_t *rtd_Mode_RR, double *rtd_Recirculation, - uint8_t *rtd_Valve_2_way, const int8_t - *rtd_step_start_controle_rear, const uint32_t *rtd_t_now, - DW_Level0_f *localDW) -{ - int32_t tmp; - uint32_t rtb_dt_ay; - int16_t rtb_out_dr; - int16_t rtb_out_iq; - uint16_t rtb_out_jhh; - uint8_t rtb_out_gq; - bool rtb_Equal_n; - - /* DataStoreWrite: '/Data Store Write9' incorporates: - * DataStoreRead: '/Data Store Read6' - * MATLAB Function: '/2 way valve' - */ - uwayvalve(*rtd_LEVEL, rtd_Valve_2_way); - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup_b(*rtd_LEVEL, rtd_Incar_filter_up_value); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown_c(*rtd_LEVEL, rtd_Incar_filter_down_value); - - /* MATLAB Function: '/mode rear step 1' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - moderearstep1(*rtd_LEVEL, &rtb_out_gq); - - /* DataStoreWrite: '/Data Store Write2' */ - *rtd_Mode_RR = rtb_out_gq; - - /* DataStoreWrite: '/Data Store Write3' */ - *rtd_Mode_RL = rtb_out_gq; - - /* MATLAB Function: '/blower rear' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - /* : out = g_ausSTART_BLR_AF_STEP12_R(LVL + 1); */ - tmp = (int32_t)(*rtd_LEVEL + 1U); - if (*rtd_LEVEL + 1U > 255U) { - tmp = 255; - } - - rtb_out_jhh = g_ausSTART_BLR_AF_STEP12_R[tmp - 1]; - - /* End of MATLAB Function: '/blower rear' */ - - /* DataStoreWrite: '/Data Store Write5' */ - *rtd_Blower_RR = rtb_out_jhh; - - /* DataStoreWrite: '/Data Store Write6' */ - *rtd_Blower_RL = rtb_out_jhh; - - /* MATLAB Function: '/Dtg_rear' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - Dtg_rear(*rtd_LEVEL, &rtb_out_gq); - - /* DataStoreWrite: '/Data Store Write10' */ - *rtd_Dtg_RR = rtb_out_gq; - - /* DataStoreWrite: '/Data Store Write11' */ - *rtd_Dtg_RL = rtb_out_gq; - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - *rtd_Recirculation = 1.0; - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - rtb_Equal_n = (*rtd_step_start_controle_rear == 1); - - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - Incartempgotofromstep1tostep2_n(*rtd_LEVEL, &rtb_out_dr); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_dt_ay = *rtd_t_now - localDW->t_start_delay_private_DSTATE; - - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep1tostep2_p(*rtd_LEVEL, &rtb_out_iq); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (rtb_Equal_n && (!localDW->Cond_prev_private_DSTATE)) { - localDW->t_start_delay_private_DSTATE = *rtd_t_now; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * Constant: '/go to next step' - * Constant: '/stay at step 1' - * DataStoreRead: '/incar temp' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - */ - if ((*rtd_Incar_RR < rtb_out_dr) || (rtb_dt_ay > (uint16_t)(1000 * rtb_out_iq))) - { - *rty_step = 2; - } else { - *rty_step = 1; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Cond_prev_private ' */ - localDW->Cond_prev_private_DSTATE = rtb_Equal_n; -} - -/* - * Output and update for atomic system: - * '/blower start finish' - * '/blower start finish' - * '/blower start finish' - * '/blower start finish' - */ -void blowerstartfinish(uint8_t rtu_LVL, uint16_t rty_out[2]) -{ - int32_t tmp; - int32_t tmp_0; - - /* : start = g_ausSTART_BLR_AF_STEP12_R(LVL + 1); */ - /* : finish = g_ausSTART_BLR_AF_STEP12_R(LVL + 1 + 6); */ - /* : out = [start, finish]; */ - tmp_0 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp_0 = 255; - } - - rty_out[0] = g_ausSTART_BLR_AF_STEP12_R[tmp_0 - 1]; - tmp_0 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp_0 = 255; - } - - tmp = (int32_t)((uint32_t)tmp_0 + 6U); - if ((uint32_t)tmp_0 + 6U > 255U) { - tmp = 255; - } - - rty_out[1] = g_ausSTART_BLR_AF_STEP12_R[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/ECT min max' - * '/ECT min max' - * '/ECT min max' - */ -void ECTminmax_b(uint8_t rtu_LVL, int16_t rty_out[2]) -{ - int32_t tmp; - - /* : min = int16(g_assSTART_COOLANT_STEP0_TO_1(LVL + 3)); */ - /* : max = int16(g_assSTART_COOLANT_TO_STEP2(3)); */ - /* : out = [min, max]; */ - tmp = (int32_t)(rtu_LVL + 3U); - if (rtu_LVL + 3U > 255U) { - tmp = 255; - } - - rty_out[0] = g_assSTART_COOLANT_STEP0_TO_1[tmp - 1]; - rty_out[1] = g_assSTART_COOLANT_TO_STEP2[2]; -} - -/* - * Output and update for action system: - * '/Level 4' - * '/Level 5' - */ -void Level4_n(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR, - uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, const int16_t *rtd_ECT, - const int16_t *rtd_Incar_RR, uint8_t *rtd_Incar_filter_down_value, - uint8_t *rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, - uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR, double - *rtd_Recirculation, uint8_t *rtd_Valve_2_way, const int8_t - *rtd_step_start_controle_rear, const uint32_t *rtd_t_now, - DW_Level4_oa *localDW) -{ - uint32_t rtb_dt_ls; - int16_t rtb_out_fm[2]; - int16_t rtb_out_cq; - int16_t rtb_out_em; - uint16_t rtb_out_hq[2]; - uint8_t rtb_out_mu0; - bool rtb_Equal_n; - - /* DataStoreWrite: '/Data Store Write9' incorporates: - * DataStoreRead: '/Data Store Read6' - * MATLAB Function: '/2 way valve' - */ - uwayvalve(*rtd_LEVEL, rtd_Valve_2_way); - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup_b(*rtd_LEVEL, rtd_Incar_filter_up_value); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown_c(*rtd_LEVEL, rtd_Incar_filter_down_value); - - /* MATLAB Function: '/mode rear step 1' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - moderearstep1(*rtd_LEVEL, &rtb_out_mu0); - - /* DataStoreWrite: '/Data Store Write2' */ - *rtd_Mode_RR = rtb_out_mu0; - - /* DataStoreWrite: '/Data Store Write3' */ - *rtd_Mode_RL = rtb_out_mu0; - - /* MATLAB Function: '/blower start finish' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstartfinish(*rtd_LEVEL, rtb_out_hq); - - /* MATLAB Function: '/ECT min max' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - ECTminmax_b(*rtd_LEVEL, rtb_out_fm); - - /* Lookup_n-D: '/blower для текущего ECT' incorporates: - * DataStoreRead: '/engine coolant temp' - */ - rtb_out_em = look1_is16lu64n32tu16Ds32Is16_binlcs(*rtd_ECT, rtb_out_fm, - rtb_out_hq, 1U); - - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreWrite: '/Data Store Write5' - */ - *rtd_Blower_RR = (uint16_t)rtb_out_em; - - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreWrite: '/Data Store Write5' - */ - *rtd_Blower_RL = *rtd_Blower_RR; - - /* MATLAB Function: '/Dtg_rear' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - Dtg_rear(*rtd_LEVEL, &rtb_out_mu0); - - /* DataStoreWrite: '/Data Store Write10' */ - *rtd_Dtg_RR = rtb_out_mu0; - - /* DataStoreWrite: '/Data Store Write11' */ - *rtd_Dtg_RL = rtb_out_mu0; - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - *rtd_Recirculation = 1.0; - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - rtb_Equal_n = (*rtd_step_start_controle_rear == 1); - - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - Incartempgotofromstep1tostep2_n(*rtd_LEVEL, &rtb_out_cq); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_dt_ls = *rtd_t_now - localDW->t_start_delay_private_DSTATE; - - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep1tostep2_p(*rtd_LEVEL, &rtb_out_em); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (rtb_Equal_n && (!localDW->Cond_prev_private_DSTATE)) { - localDW->t_start_delay_private_DSTATE = *rtd_t_now; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * Constant: '/go to next step' - * Constant: '/stay at step 1' - * DataStoreRead: '/incar temp' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - */ - if ((*rtd_Incar_RR > rtb_out_cq) || (rtb_dt_ls > (uint16_t)(1000 * rtb_out_em))) - { - *rty_step = 2; - } else { - *rty_step = 1; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Cond_prev_private ' */ - localDW->Cond_prev_private_DSTATE = rtb_Equal_n; -} - -/* - * Output and update for atomic system: - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - */ -void timeforstep_h(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = g_aucSTART_DUCT_TGT_STEP2_RX(LVL + 1 + 6); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_aucSTART_DUCT_TGT_STEP2_RX[tmp_0 - 1]; -} - -/* - * Output and update for atomic system: - * '/blower step' - * '/blower step' - * '/blower step' - * '/blower step' - * '/blower step' - * '/blower step' - */ -void blowerstep_e(uint8_t rtu_LVL, uint16_t *rty_out) -{ - int32_t tmp; - - /* : out = g_ausSTART_BLR_SPD_STEP2_R(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_ausSTART_BLR_SPD_STEP2_R[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' - */ -void blowertimeforstep_o(uint8_t rtu_LVL, uint16_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = g_ausSTART_BLR_SPD_STEP2_R(LVL + 1 + 6); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_ausSTART_BLR_SPD_STEP2_R[tmp_0 - 1]; -} - -/* - * Output and update for atomic system: - * '/step' - * '/step' - * '/step' - * '/step' - * '/step' - * '/step' - */ -void step_i3(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - - /* : out = g_aucSTART_VALVE_CHANGE_SPD_R(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_aucSTART_VALVE_CHANGE_SPD_R[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - */ -void timeforstep_m(uint8_t rtu_LVL, uint8_t *rty_out) -{ - int32_t tmp; - int32_t tmp_0; - - /* : out = g_aucSTART_VALVE_CHANGE_SPD_R(LVL + 1 + 6); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - tmp_0 = (int32_t)((uint32_t)tmp + 6U); - if ((uint32_t)tmp + 6U > 255U) { - tmp_0 = 255; - } - - *rty_out = g_aucSTART_VALVE_CHANGE_SPD_R[tmp_0 - 1]; -} - -/* - * Output and update for action system: - * '/Level 3' - * '/Level 4' - * '/Level 5' - */ -void Level3_j(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR, - const uint16_t *rtd_Blower_logic_RR, uint8_t *rtd_Dtg_RL, uint8_t * - rtd_Dtg_RR, const uint8_t *rtd_Dtg_logic_RR, const bool - *rtd_HI_logic_on, uint8_t *rtd_Incar_filter_down_value, uint8_t - *rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, uint8_t - *rtd_Mode_RL, uint8_t *rtd_Mode_RR, const uint8_t - *rtd_Mode_logic_RR, double *rtd_Recirculation, uint8_t - *rtd_Valve_2_way, const int8_t *rtd_step_start_controle_rear, - const uint32_t *rtd_t_now, DW_Level3_j *localDW) -{ - int32_t tmp; - uint32_t rtb_dt_de; - int16_t rtb_out_lu; - uint16_t rtb_out_cq; - uint16_t rtb_out_dw0; - uint8_t rtb_out_ek; - uint8_t rtb_out_k0n; - bool rtb_Cond_prev_private_j; - - /* DataStoreWrite: '/Data Store Write9' incorporates: - * DataStoreRead: '/Data Store Read6' - * MATLAB Function: '/2 way valve' - */ - uwayvalve(*rtd_LEVEL, rtd_Valve_2_way); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - Dtg_rear(*rtd_LEVEL, &rtb_out_k0n); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - timeforstep_h(*rtd_LEVEL, &rtb_out_ek); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write10' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint8_t)(*rtd_Dtg_RR - *rtd_Dtg_logic_RR) <= 0.01) { - *rtd_Dtg_RR = *rtd_Dtg_logic_RR; - } else { - if (*rtd_Dtg_RR <= *rtd_Dtg_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - tmp = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - tmp = -1; - } - - *rtd_Dtg_RR = (uint8_t)((double)rtb_out_k0n / (double)rtb_out_ek / 1000.0 * - (double)(*rtd_t_now - localDW->UnitDelay_DSTATE) * (double)tmp + (double)* - rtd_Dtg_RR); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * DataStoreWrite: '/Data Store Write10' - */ - *rtd_Dtg_RL = *rtd_Dtg_RR; - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup_b(*rtd_LEVEL, rtd_Incar_filter_up_value); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown_c(*rtd_LEVEL, rtd_Incar_filter_down_value); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_out_k0n = (uint8_t)(*rtd_Mode_RR - *rtd_Mode_logic_RR); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - rtb_Cond_prev_private_j = (rtb_out_k0n <= 0.01); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - step_i3(*rtd_LEVEL, &rtb_out_ek); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - timeforstep_m(*rtd_LEVEL, &rtb_out_k0n); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write2' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if (rtb_Cond_prev_private_j) { - *rtd_Mode_RR = *rtd_Mode_logic_RR; - } else { - if (*rtd_Mode_RR <= *rtd_Mode_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - tmp = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - tmp = -1; - } - - *rtd_Mode_RR = (uint8_t)((double)rtb_out_ek / (double)rtb_out_k0n / 1000.0 * - (double)(*rtd_t_now - localDW->UnitDelay_DSTATE_a) * (double)tmp + (double)* - rtd_Mode_RR); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreWrite: '/Data Store Write2' - */ - *rtd_Mode_RL = *rtd_Mode_RR; - - /* MATLAB Function: '/blower step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstep_e(*rtd_LEVEL, &rtb_out_cq); - - /* MATLAB Function: '/blower time for step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowertimeforstep_o(*rtd_LEVEL, &rtb_out_dw0); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write5' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint16_t)(*rtd_Blower_RR - *rtd_Blower_logic_RR) <= 0.01) { - *rtd_Blower_RR = *rtd_Blower_logic_RR; - } else { - if (*rtd_Blower_RR <= *rtd_Blower_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - tmp = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - tmp = -1; - } - - *rtd_Blower_RR = (uint16_t)((double)rtb_out_cq / (double)rtb_out_dw0 / - 1000.0 * (double)(*rtd_t_now - localDW->UnitDelay_DSTATE_ar) * (double)tmp - + (double)*rtd_Blower_RR); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreWrite: '/Data Store Write5' - */ - *rtd_Blower_RL = *rtd_Blower_RR; - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - *rtd_Recirculation = 1.0; - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - rtb_Cond_prev_private_j = (*rtd_step_start_controle_rear == 2); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_dt_de = *rtd_t_now - localDW->t_start_delay_private_DSTATE; - - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep1tostep2_p(*rtd_LEVEL, &rtb_out_lu); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (rtb_Cond_prev_private_j && (!localDW->Cond_prev_private_DSTATE)) { - localDW->t_start_delay_private_DSTATE = *rtd_t_now; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * Constant: '/go to next step' - * Constant: '/stay at step' - * DataStoreRead: '/Data Store Read' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * RelationalOperator: '/Relational Operator1' - */ - if ((rtb_dt_de > (uint16_t)(1000 * rtb_out_lu)) || (*rtd_HI_logic_on)) { - *rty_step = 3; - } else { - *rty_step = 2; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - localDW->UnitDelay_DSTATE = *rtd_t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - localDW->UnitDelay_DSTATE_a = *rtd_t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - localDW->UnitDelay_DSTATE_ar = *rtd_t_now; - - /* Update for UnitDelay: '/Cond_prev_private ' */ - localDW->Cond_prev_private_DSTATE = rtb_Cond_prev_private_j; -} - -/* - * Output and update for atomic system: - * '/correction rate' - * '/correction rate' + * '/correction rate' + * '/correction rate' */ void correctionrate(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y) { @@ -5611,12 +3420,10 @@ void correctionrate(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y) /* * Output and update for atomic system: - * '/is_ending_with_5' - * '/is_ending_with_5' - * '/is_ending_with_5' - * '/is_ending_with_5' - * '/is_ending_with_5' - * '/is_ending_with_5' + * '/is_ending_with_5' + * '/is_ending_with_5' + * '/is_ending_with_5' + * '/is_ending_with_5' */ void is_ending_with_5(uint16_t rtu_SET, bool *rty_is_ending_with_5) { @@ -5627,21 +3434,10 @@ void is_ending_with_5(uint16_t rtu_SET, bool *rty_is_ending_with_5) /* * Output and update for atomic system: - * '/AMBRATE_RISING_DIFF[8]' - * '/AMBRATE_RISING_DIFF[8]' - */ -void AMBRATE_RISING_DIFF8(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_F) -{ - /* : f_g_ausINCARRATE_FALLING_DIFF_F = g_ausINCARRATE_FALLING_DIFF_F(8); */ - *rty_f_g_ausINCARRATE_FALLING_DIFF_F = g_ausINCARRATE_FALLING_DIFF_F[7]; -} - -/* - * Output and update for atomic system: - * '/обычное понижение темп.' - * '/обычное повышение темп.' - * '/обычное понижение темп.' - * '/обычное повышение темп.' + * '/обычное понижение темп.' + * '/обычное повышение темп.' + * '/обычное понижение темп.' + * '/обычное повышение темп.' */ void u(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_F) { @@ -5658,12 +3454,12 @@ void u(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_F) /* * Output and update for atomic system: - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' */ -void u_m(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_F) +void u_j(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_F) { int32_t tmp; @@ -5678,49 +3474,111 @@ void u_m(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_F) /* * Output and update for action system: - * '/Продолжаем в ускоренном' - * '/Продолжаем в ускоренном' + * '/включен ускоренный режим' + * '/включен ускоренный режим' */ -void u_h(uint8_t rtu_lvl, uint16_t *rty_out) +void u_c(int16_t rtu_temp_raw, uint8_t rtu_lvl, uint16_t *rty_out, double + *rtd_KEEP_FALLING_FL_UNTIL_LIMIT, const double *rtd_Temp_FL_store) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/ускоренное повышение темп.' + /* If: '/If' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read temp' + * MATLAB Function: '/AMBRATE_RISING_DIFF[8]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' */ - u_m(rtu_lvl, rty_out); -} + /* : f_g_ausINCARRATE_FALLING_DIFF_F = g_ausINCARRATE_FALLING_DIFF_F(8); */ + if (fabs((double)rtu_temp_raw - *rtd_Temp_FL_store) <= + g_ausINCARRATE_FALLING_DIFF_F[7]) { + /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + *rtd_KEEP_FALLING_FL_UNTIL_LIMIT = 0.0; -/* - * Output and update for atomic system: - * '/AMBRATE_FALLING_DIFF[7]' - * '/AMBRATE_FALLING_DIFF[7]' - */ -void AMBRATE_FALLING_DIFF7(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_F) -{ - /* : f_g_ausINCARRATE_FALLING_DIFF_F = g_ausINCARRATE_FALLING_DIFF_F(7); */ - *rty_f_g_ausINCARRATE_FALLING_DIFF_F = g_ausINCARRATE_FALLING_DIFF_F[6]; + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/обычное понижение темп.' + * Merge: '/Merge' + */ + u(rtu_lvl, rty_out); + + /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: + * ActionPort: '/Action Port' + */ + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/ускоренное повышение темп.' + * Merge: '/Merge' + */ + u_j(rtu_lvl, rty_out); + + /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ + } + + /* End of If: '/If' */ } /* * Output and update for action system: - * '/обычный режим повышения' - * '/обычный режим повышения' + * '/обычный режим' + * '/обычный режим' */ -void u_i(uint8_t rtu_lvl, uint16_t *rty_out) +void u_l(int16_t rtu_temp_raw, uint8_t rtu_lvl, uint16_t *rty_riseperminute, + double *rtd_KEEP_FALLING_FL_UNTIL_LIMIT, const double + *rtd_Temp_FL_store) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/обычное повышение темп.' + /* If: '/If' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * MATLAB Function: '/AMBRATE_FALLING_DIFF[7]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' */ - u(rtu_lvl, rty_out); + /* : f_g_ausINCARRATE_FALLING_DIFF_F = g_ausINCARRATE_FALLING_DIFF_F(7); */ + if (fabs((double)rtu_temp_raw - *rtd_Temp_FL_store) > + g_ausINCARRATE_FALLING_DIFF_F[6]) { + /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + *rtd_KEEP_FALLING_FL_UNTIL_LIMIT = 1.0; + + /* SignalConversion generated from: '/rise per minute' incorporates: + * MATLAB Function: '/ускоренное повышение темп.' + * Merge: '/Merge' + */ + u_j(rtu_lvl, rty_riseperminute); + + /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: + * ActionPort: '/Action Port' + */ + /* SignalConversion generated from: '/rise per minute' incorporates: + * MATLAB Function: '/обычное повышение темп.' + * Merge: '/Merge' + */ + u(rtu_lvl, rty_riseperminute); + + /* End of Outputs for SubSystem: '/обычный режим повышения' */ + } + + /* End of If: '/If' */ } /* * Output and update for atomic system: - * '/обычное повышение темп.' - * '/обычное повышение темп.' - * '/обычное повышение темп.' - * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' */ -void u_e(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_F) +void u_h(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_F) { int32_t tmp; @@ -5735,12 +3593,12 @@ void u_e(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_F) /* * Output and update for atomic system: - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' */ -void u_c(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_F) +void u_k(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_F) { int32_t tmp; @@ -5755,21 +3613,21 @@ void u_c(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_F) /* * Output and update for action system: - * '/Продолжаем в ускоренном' - * '/Продолжаем в ускоренном' + * '/Продолжаем в ускоренном' + * '/Продолжаем в ускоренном' */ -void u_cc(uint8_t rtu_lvl, uint16_t *rty_out) +void u_lz(uint8_t rtu_lvl, uint16_t *rty_out) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/ускоренное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/ускоренное повышение темп.' */ - u_c(rtu_lvl, rty_out); + u_k(rtu_lvl, rty_out); } /* * Output and update for atomic system: - * '/g_ausINCARRATE_RISING_DIFF_F[8]' - * '/g_ausINCARRATE_RISING_DIFF_F[8]' + * '/g_ausINCARRATE_RISING_DIFF_F[8]' + * '/g_ausINCARRATE_RISING_DIFF_F[8]' */ void g_ausINCARRATE_RISING_DIFF_F8(uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_F) { @@ -5779,8 +3637,8 @@ void g_ausINCARRATE_RISING_DIFF_F8(uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_F) /* * Output and update for atomic system: - * '/INCARRATE_RISING_DIFF_F[7]' - * '/INCARRATE_RISING_DIFF_F[7]' + * '/INCARRATE_RISING_DIFF_F[7]' + * '/INCARRATE_RISING_DIFF_F[7]' */ void INCARRATE_RISING_DIFF_F7(uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_F) { @@ -5790,23 +3648,34 @@ void INCARRATE_RISING_DIFF_F7(uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_F) /* * Output and update for action system: - * '/обычный режим повышения' - * '/обычный режим повышения' + * '/обычный режим повышения' + * '/обычный режим повышения' */ -void u_mu(uint8_t rtu_lvl, uint16_t *rty_out) +void u_f(uint8_t rtu_lvl, uint16_t *rty_out) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/обычное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/обычное повышение темп.' */ - u_e(rtu_lvl, rty_out); + u_h(rtu_lvl, rty_out); +} + +/* + * Output and update for action system: + * '/Инициализация RL' + * '/Инициализация RR' + */ +void RL(int16_t rtu_temp_in, double *rty_temp_out) +{ + /* DataTypeConversion: '/Data Type Conversion' */ + *rty_temp_out = rtu_temp_in; } /* * Output and update for atomic system: - * '/AMBRATE_RISING_DIFF[8]' - * '/AMBRATE_RISING_DIFF[8]' + * '/AMBRATE_RISING_DIFF[8]' + * '/AMBRATE_RISING_DIFF[8]' */ -void AMBRATE_RISING_DIFF8_m(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R) +void AMBRATE_RISING_DIFF8(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R) { /* : f_g_ausINCARRATE_FALLING_DIFF_R = g_ausINCARRATE_FALLING_DIFF_R(8); */ *rty_f_g_ausINCARRATE_FALLING_DIFF_R = g_ausINCARRATE_FALLING_DIFF_R[7]; @@ -5814,12 +3683,12 @@ void AMBRATE_RISING_DIFF8_m(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R) /* * Output and update for atomic system: - * '/обычное понижение темп.' - * '/обычное повышение темп.' - * '/обычное понижение темп.' - * '/обычное повышение темп.' + * '/обычное понижение темп.' + * '/обычное повышение темп.' + * '/обычное понижение темп.' + * '/обычное повышение темп.' */ -void u_a(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_R) +void u_kk(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_R) { int32_t tmp; @@ -5834,12 +3703,12 @@ void u_a(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_R) /* * Output and update for atomic system: - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' */ -void u_l(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R) +void u_b(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R) { int32_t tmp; @@ -5854,23 +3723,23 @@ void u_l(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R) /* * Output and update for action system: - * '/Продолжаем в ускоренном' - * '/Продолжаем в ускоренном' + * '/Продолжаем в ускоренном' + * '/Продолжаем в ускоренном' */ -void u_g(uint8_t rtu_lvl, uint16_t *rty_out) +void u_hr(uint8_t rtu_lvl, uint16_t *rty_out) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/ускоренное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/ускоренное повышение темп.' */ - u_l(rtu_lvl, rty_out); + u_b(rtu_lvl, rty_out); } /* * Output and update for atomic system: - * '/AMBRATE_FALLING_DIFF[7]' - * '/AMBRATE_FALLING_DIFF[7]' + * '/AMBRATE_FALLING_DIFF[7]' + * '/AMBRATE_FALLING_DIFF[7]' */ -void AMBRATE_FALLING_DIFF7_a(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R) +void AMBRATE_FALLING_DIFF7(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R) { /* : f_g_ausINCARRATE_FALLING_DIFF_R = g_ausINCARRATE_FALLING_DIFF_R(7); */ *rty_f_g_ausINCARRATE_FALLING_DIFF_R = g_ausINCARRATE_FALLING_DIFF_R[6]; @@ -5878,25 +3747,25 @@ void AMBRATE_FALLING_DIFF7_a(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R) /* * Output and update for action system: - * '/обычный режим повышения' - * '/обычный режим повышения' + * '/обычный режим повышения' + * '/обычный режим повышения' */ -void u_b(uint8_t rtu_lvl, uint16_t *rty_out) +void u_g(uint8_t rtu_lvl, uint16_t *rty_out) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/обычное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/обычное повышение темп.' */ - u_a(rtu_lvl, rty_out); + u_kk(rtu_lvl, rty_out); } /* * Output and update for atomic system: - * '/обычное повышение темп.' - * '/обычное повышение темп.' - * '/обычное повышение темп.' - * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' */ -void u_j(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_R) +void u_m(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_R) { int32_t tmp; @@ -5911,12 +3780,12 @@ void u_j(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_R) /* * Output and update for atomic system: - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' */ -void u_d(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_R) +void u_o(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_R) { int32_t tmp; @@ -5931,21 +3800,21 @@ void u_d(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_R) /* * Output and update for action system: - * '/Продолжаем в ускоренном' - * '/Продолжаем в ускоренном' + * '/Продолжаем в ускоренном' + * '/Продолжаем в ускоренном' */ -void u_jk(uint8_t rtu_lvl, uint16_t *rty_out) +void u_gq(uint8_t rtu_lvl, uint16_t *rty_out) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/ускоренное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/ускоренное повышение темп.' */ - u_d(rtu_lvl, rty_out); + u_o(rtu_lvl, rty_out); } /* * Output and update for atomic system: - * '/g_ausINCARRATE_RISING_DIFF_R[8]' - * '/g_ausINCARRATE_RISING_DIFF_R[8]' + * '/g_ausINCARRATE_RISING_DIFF_R[8]' + * '/g_ausINCARRATE_RISING_DIFF_R[8]' */ void g_ausINCARRATE_RISING_DIFF_R8(uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_R) { @@ -5955,8 +3824,8 @@ void g_ausINCARRATE_RISING_DIFF_R8(uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_R) /* * Output and update for atomic system: - * '/INCARRATE_RISING_DIFF_R[7]' - * '/INCARRATE_RISING_DIFF_R[7]' + * '/INCARRATE_RISING_DIFF_R[7]' + * '/INCARRATE_RISING_DIFF_R[7]' */ void INCARRATE_RISING_DIFF_R7(uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_R) { @@ -5966,15 +3835,15 @@ void INCARRATE_RISING_DIFF_R7(uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_R) /* * Output and update for action system: - * '/обычный режим повышения' - * '/обычный режим повышения' + * '/обычный режим повышения' + * '/обычный режим повышения' */ -void u_ew(uint8_t rtu_lvl, uint16_t *rty_out) +void u_b3(uint8_t rtu_lvl, uint16_t *rty_out) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/обычное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/обычное повышение темп.' */ - u_j(rtu_lvl, rty_out); + u_m(rtu_lvl, rty_out); } /* @@ -6375,8 +4244,8 @@ void Zone_Climate_Logic_Auto_FL2(double rtu_btn_def, uint8_t rtu_btn_face, /* * Output and update for atomic system: - * '/AF for Bi Level' - * '/AF for Bi Level' + * '/AF for Bi Level' + * '/AF for Bi Level' */ void AFforBiLevel(uint8_t rtu_blower_speed, uint16_t *rty_out) { @@ -6393,8 +4262,8 @@ void AFforBiLevel(uint8_t rtu_blower_speed, uint16_t *rty_out) /* * Output and update for atomic system: - * '/AF for Def' - * '/AF for Def' + * '/AF for Def' + * '/AF for Def' */ void AFforDef(uint8_t rtu_blower_speed, uint16_t *rty_out) { @@ -6411,8 +4280,8 @@ void AFforDef(uint8_t rtu_blower_speed, uint16_t *rty_out) /* * Output and update for atomic system: - * '/AF for Foor + Def' - * '/AF for Foor + Def' + * '/AF for Foor + Def' + * '/AF for Foor + Def' */ void AFforFoorDef(uint8_t rtu_blower_speed, uint16_t *rty_out) { @@ -6429,8 +4298,8 @@ void AFforFoorDef(uint8_t rtu_blower_speed, uint16_t *rty_out) /* * Output and update for atomic system: - * '/AF for Foot' - * '/AF for Foot' + * '/AF for Foot' + * '/AF for Foot' */ void AFforFoot(uint8_t rtu_blower_speed, uint16_t *rty_out) { @@ -6447,8 +4316,8 @@ void AFforFoot(uint8_t rtu_blower_speed, uint16_t *rty_out) /* * Output and update for atomic system: - * '/AF for Hi_Level' - * '/AF for Hi_Level' + * '/AF for Hi_Level' + * '/AF for Hi_Level' */ void AFforHi_Level(uint8_t rtu_blower_speed, uint16_t *rty_out) { @@ -6465,8 +4334,8 @@ void AFforHi_Level(uint8_t rtu_blower_speed, uint16_t *rty_out) /* * Output and update for atomic system: - * '/AF for Tri-Level' - * '/AF for Tri-Level' + * '/AF for Tri-Level' + * '/AF for Tri-Level' */ void AFforTriLevel(uint8_t rtu_blower_speed, uint16_t *rty_out) { @@ -6483,8 +4352,8 @@ void AFforTriLevel(uint8_t rtu_blower_speed, uint16_t *rty_out) /* * Output and update for atomic system: - * '/AF for Vent mode' - * '/AF for Vent mode' + * '/AF for Vent mode' + * '/AF for Vent mode' */ void AFforVentmode(uint8_t rtu_blower_speed, uint16_t *rty_out) { @@ -6501,29 +4370,29 @@ void AFforVentmode(uint8_t rtu_blower_speed, uint16_t *rty_out) /* * Output and update for enable system: - * '/Rear Left AF - manual directions' - * '/Rear Right AF - manual directions' + * '/Rear Left AF - manual directions' + * '/Rear Right AF - manual directions' */ void RearLeftAFmanualdirections(bool rtu_Enable, uint8_t rtu_blowerspeed, uint8_t rtu_faceison, uint8_t rtu_footison, uint16_t *rty_AFout) { int32_t tmp; - /* Outputs for Enabled SubSystem: '/Rear Left AF - manual directions' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Rear Left AF - manual directions' incorporates: + * EnablePort: '/Enable' */ if (rtu_Enable) { - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant1' - * Constant: '/Constant2' - * Constant: '/Constant3' - * Gain: '/Gain2' - * MATLAB Function: '/AF for Bi Level R' - * MATLAB Function: '/AF for Foot R' - * MATLAB Function: '/AF for Vent mode R' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * Sum: '/Add' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Gain: '/Gain2' + * MATLAB Function: '/AF for Bi Level R' + * MATLAB Function: '/AF for Foot R' + * MATLAB Function: '/AF for Vent mode R' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' + * Sum: '/Add' */ /* : out = uint16(g_ausFLOW_RE_BI2BLR_AF(blower_speed + 1)); */ /* : out = uint16(g_ausFLOW_RE_FO2BLR_AF(blower_speed + 1)); */ @@ -6535,7 +4404,7 @@ void RearLeftAFmanualdirections(bool rtu_Enable, uint8_t rtu_blowerspeed, break; case 1: - /* MATLAB Function: '/AF for Vent mode R' */ + /* MATLAB Function: '/AF for Vent mode R' */ tmp = (int32_t)(rtu_blowerspeed + 1U); if (rtu_blowerspeed + 1U > 255U) { tmp = 255; @@ -6545,7 +4414,7 @@ void RearLeftAFmanualdirections(bool rtu_Enable, uint8_t rtu_blowerspeed, break; case 2: - /* MATLAB Function: '/AF for Foot R' */ + /* MATLAB Function: '/AF for Foot R' */ tmp = (int32_t)(rtu_blowerspeed + 1U); if (rtu_blowerspeed + 1U > 255U) { tmp = 255; @@ -6555,7 +4424,7 @@ void RearLeftAFmanualdirections(bool rtu_Enable, uint8_t rtu_blowerspeed, break; default: - /* MATLAB Function: '/AF for Bi Level R' */ + /* MATLAB Function: '/AF for Bi Level R' */ tmp = (int32_t)(rtu_blowerspeed + 1U); if (rtu_blowerspeed + 1U > 255U) { tmp = 255; @@ -6565,16 +4434,16 @@ void RearLeftAFmanualdirections(bool rtu_Enable, uint8_t rtu_blowerspeed, break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ } - /* End of Outputs for SubSystem: '/Rear Left AF - manual directions' */ + /* End of Outputs for SubSystem: '/Rear Left AF - manual directions' */ } /* * Output and update for atomic system: - * '/func g_ascAUTO_STEP_AF_F' - * '/func g_ascAUTO_STEP_AF_F' + * '/func g_ascAUTO_STEP_AF_F' + * '/func g_ascAUTO_STEP_AF_F' */ void funcg_ascAUTO_STEP_AF_F(int8_t rtu_AF_STEP, int8_t *rty_y) { @@ -6584,509 +4453,14 @@ void funcg_ascAUTO_STEP_AF_F(int8_t rtu_AF_STEP, int8_t *rty_y) /* * Output and update for atomic system: - * '/X1-X4 для Vtg_FX_incar' - * '/X1-X4 для Vtg_RX_incar' + * '/обычное понижение темп.' + * '/обычное повышение темп.' + * '/обычное понижение темп.' + * '/обычное повышение темп.' + * '/обычное понижение темп.' + * '/обычное повышение темп.' */ -void X1X4Vtg_FX_incar(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]) -{ - int32_t i; - int32_t tmp_3; - int32_t tmp_4; - int32_t tmp_5; - int32_t tmp_6; - int32_t tmp_7; - int16_t tmp[42]; - int16_t tmp_0[42]; - int16_t tmp_1[42]; - int16_t tmp_2[42]; - - /* : all_lvl_x1 = [g_assVR_INC_X1_LV0; g_assVR_INC_X1_LV1; g_assVR_INC_X1_LV2; g_assVR_INC_X1_LV3; g_assVR_INC_X1_LV4; g_assVR_INC_X1_LV5]; */ - /* : all_lvl_x2 = [g_assVR_INC_X2_LV0; g_assVR_INC_X2_LV1; g_assVR_INC_X2_LV2; g_assVR_INC_X2_LV3; g_assVR_INC_X2_LV4; g_assVR_INC_X2_LV5]; */ - /* : all_lvl_x3 = [g_assVR_INC_X3_LV0; g_assVR_INC_X3_LV1; g_assVR_INC_X3_LV2; g_assVR_INC_X3_LV3; g_assVR_INC_X3_LV4; g_assVR_INC_X3_LV5]; */ - /* : all_lvl_x4 = [g_assVR_INC_X4_LV0; g_assVR_INC_X4_LV1; g_assVR_INC_X4_LV2; g_assVR_INC_X4_LV3; g_assVR_INC_X4_LV5; g_assVR_INC_X4_LV4]; */ - /* : y = [all_lvl_x1(LVL + 1, idivide(SET - 16 + 1, 2)), all_lvl_x2(LVL + 1, idivide(SET - 16 + 1, 2)), 0, all_lvl_x3(LVL + 1, idivide(SET - 16 + 1, 2)), all_lvl_x4(LVL + 1, idivide(SET - 16 + 1, 2))]; */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assVR_INC_X1_LV0[i]; - tmp_3 = 6 * i + 1; - tmp[tmp_3] = g_assVR_INC_X1_LV1[i]; - tmp_4 = 6 * i + 2; - tmp[tmp_4] = g_assVR_INC_X1_LV2[i]; - tmp_5 = 6 * i + 3; - tmp[tmp_5] = g_assVR_INC_X1_LV3[i]; - tmp_6 = 6 * i + 4; - tmp[tmp_6] = g_assVR_INC_X1_LV4[i]; - tmp_7 = 6 * i + 5; - tmp[tmp_7] = g_assVR_INC_X1_LV5[i]; - tmp_0[6 * i] = g_assVR_INC_X2_LV0[i]; - tmp_0[tmp_3] = g_assVR_INC_X2_LV1[i]; - tmp_0[tmp_4] = g_assVR_INC_X2_LV2[i]; - tmp_0[tmp_5] = g_assVR_INC_X2_LV3[i]; - tmp_0[tmp_6] = g_assVR_INC_X2_LV4[i]; - tmp_0[tmp_7] = g_assVR_INC_X2_LV5[i]; - tmp_1[6 * i] = g_assVR_INC_X3_LV0[i]; - tmp_1[tmp_3] = g_assVR_INC_X3_LV1[i]; - tmp_1[tmp_4] = g_assVR_INC_X3_LV2[i]; - tmp_1[tmp_5] = g_assVR_INC_X3_LV3[i]; - tmp_1[tmp_6] = g_assVR_INC_X3_LV4[i]; - tmp_1[tmp_7] = g_assVR_INC_X3_LV5[i]; - tmp_2[6 * i] = g_assVR_INC_X4_LV0[i]; - tmp_2[tmp_3] = g_assVR_INC_X4_LV1[i]; - tmp_2[tmp_4] = g_assVR_INC_X4_LV2[i]; - tmp_2[tmp_5] = g_assVR_INC_X4_LV3[i]; - tmp_2[tmp_6] = g_assVR_INC_X4_LV5[i]; - tmp_2[tmp_7] = g_assVR_INC_X4_LV4[i]; - } - - i = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - i = -32768; - } - - tmp_3 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_3 = -32768; - } - - tmp_4 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_4 = -32768; - } - - tmp_5 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_5 = -32768; - } - - tmp_6 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp_6 = 255; - } - - rty_y[0] = tmp[(((int32_t)trunc(((double)i + 1.0) / 2.0) - 1) * 6 + tmp_6) - 1]; - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - rty_y[1] = tmp_0[(((int32_t)trunc(((double)tmp_3 + 1.0) / 2.0) - 1) * 6 + i) - - 1]; - rty_y[2] = 0; - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - rty_y[3] = tmp_1[(((int32_t)trunc(((double)tmp_4 + 1.0) / 2.0) - 1) * 6 + i) - - 1]; - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - rty_y[4] = tmp_2[(((int32_t)trunc(((double)tmp_5 + 1.0) / 2.0) - 1) * 6 + i) - - 1]; -} - -/* - * Output and update for atomic system: - * '/Y1-Y4 для Vtg_FX_incar' - * '/Y1-Y4 для Vtg_RX_incar' - */ -void Y1Y4Vtg_FX_incar(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]) -{ - int32_t i; - int32_t tmp_3; - int32_t tmp_4; - int32_t tmp_5; - int32_t tmp_6; - int32_t tmp_7; - int16_t tmp[42]; - int16_t tmp_0[42]; - int16_t tmp_1[42]; - int16_t tmp_2[42]; - - /* : all_lvl_y1 = [g_assVR_INC_Y1_LV0; g_assVR_INC_Y1_LV1; g_assVR_INC_Y1_LV2; g_assVR_INC_Y1_LV3; g_assVR_INC_Y1_LV4; g_assVR_INC_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assVR_INC_Y2_LV0; g_assVR_INC_Y2_LV1; g_assVR_INC_Y2_LV2; g_assVR_INC_Y2_LV3; g_assVR_INC_Y2_LV4; g_assVR_INC_Y2_LV5]; */ - /* : all_lvl_y3 = [g_assVR_INC_Y3_LV0; g_assVR_INC_Y3_LV1; g_assVR_INC_Y3_LV2; g_assVR_INC_Y3_LV3; g_assVR_INC_Y3_LV4; g_assVR_INC_Y3_LV5]; */ - /* : all_lvl_y4 = [g_assVR_INC_Y4_LV0; g_assVR_INC_Y4_LV1; g_assVR_INC_Y4_LV2; g_assVR_INC_Y4_LV3; g_assVR_INC_Y4_LV4; g_assVR_INC_Y4_LV5]; */ - /* : y = [all_lvl_y1(LVL + 1, idivide(SET - 16 + 1, 2)), all_lvl_y2(LVL + 1, idivide(SET - 16 + 1, 2)), 0, all_lvl_y3(LVL + 1, idivide(SET - 16 + 1, 2)), all_lvl_y4(LVL + 1, idivide(SET - 16 + 1, 2))]; */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assVR_INC_Y1_LV0[i]; - tmp_3 = 6 * i + 1; - tmp[tmp_3] = g_assVR_INC_Y1_LV1[i]; - tmp_4 = 6 * i + 2; - tmp[tmp_4] = g_assVR_INC_Y1_LV2[i]; - tmp_5 = 6 * i + 3; - tmp[tmp_5] = g_assVR_INC_Y1_LV3[i]; - tmp_6 = 6 * i + 4; - tmp[tmp_6] = g_assVR_INC_Y1_LV4[i]; - tmp_7 = 6 * i + 5; - tmp[tmp_7] = g_assVR_INC_Y1_LV5[i]; - tmp_0[6 * i] = g_assVR_INC_Y2_LV0[i]; - tmp_0[tmp_3] = g_assVR_INC_Y2_LV1[i]; - tmp_0[tmp_4] = g_assVR_INC_Y2_LV2[i]; - tmp_0[tmp_5] = g_assVR_INC_Y2_LV3[i]; - tmp_0[tmp_6] = g_assVR_INC_Y2_LV4[i]; - tmp_0[tmp_7] = g_assVR_INC_Y2_LV5[i]; - tmp_1[6 * i] = g_assVR_INC_Y3_LV0[i]; - tmp_1[tmp_3] = g_assVR_INC_Y3_LV1[i]; - tmp_1[tmp_4] = g_assVR_INC_Y3_LV2[i]; - tmp_1[tmp_5] = g_assVR_INC_Y3_LV3[i]; - tmp_1[tmp_6] = g_assVR_INC_Y3_LV4[i]; - tmp_1[tmp_7] = g_assVR_INC_Y3_LV5[i]; - tmp_2[6 * i] = g_assVR_INC_Y4_LV0[i]; - tmp_2[tmp_3] = g_assVR_INC_Y4_LV1[i]; - tmp_2[tmp_4] = g_assVR_INC_Y4_LV2[i]; - tmp_2[tmp_5] = g_assVR_INC_Y4_LV3[i]; - tmp_2[tmp_6] = g_assVR_INC_Y4_LV4[i]; - tmp_2[tmp_7] = g_assVR_INC_Y4_LV5[i]; - } - - i = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - i = -32768; - } - - tmp_3 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_3 = -32768; - } - - tmp_4 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_4 = -32768; - } - - tmp_5 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_5 = -32768; - } - - tmp_6 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp_6 = 255; - } - - rty_y[0] = tmp[(((int32_t)trunc(((double)i + 1.0) / 2.0) - 1) * 6 + tmp_6) - 1]; - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - rty_y[1] = tmp_0[(((int32_t)trunc(((double)tmp_3 + 1.0) / 2.0) - 1) * 6 + i) - - 1]; - rty_y[2] = 0; - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - rty_y[3] = tmp_1[(((int32_t)trunc(((double)tmp_4 + 1.0) / 2.0) - 1) * 6 + i) - - 1]; - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - rty_y[4] = tmp_2[(((int32_t)trunc(((double)tmp_5 + 1.0) / 2.0) - 1) * 6 + i) - - 1]; -} - -/* - * Output and update for atomic system: - * '/Amb_Tg ' - * '/Amb_Tg ' - */ -void Amb_Tg(uint8_t rtu_LVL, int16_t *rty_y) -{ - int32_t tmp; - - /* : y = g_assAMB_LV_TG(LVL + 1); */ - tmp = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp = 255; - } - - *rty_y = g_assAMB_LV_TG[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/Y1-Y2 для Vtg_RL_amb' - * '/Y1-Y4 для Vtg_RX_amb' - */ -void Y1Y2Vtg_RL_amb(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]) -{ - int32_t i; - int32_t tmp_1; - int32_t tmp_2; - int32_t tmp_3; - int32_t tmp_4; - int32_t tmp_5; - int16_t tmp[42]; - int16_t tmp_0[42]; - - /* : all_lvl_y1 = [g_assVR_AMB_Y1_LV0; g_assVR_AMB_Y1_LV1; g_assVR_AMB_Y1_LV2; g_assVR_AMB_Y1_LV3; g_assVR_AMB_Y1_LV4; g_assVR_AMB_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assVR_AMB_Y2_LV0; g_assVR_AMB_Y2_LV1; g_assVR_AMB_Y2_LV2; g_assVR_AMB_Y2_LV3; g_assVR_AMB_Y2_LV4; g_assVR_AMB_Y2_LV5]; */ - /* : y = [all_lvl_y1(LVL + 1, idivide(SET - 16 + 1, 2)), 0, all_lvl_y2(LVL + 1, idivide(SET - 16 + 1, 2))]; */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assVR_AMB_Y1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assVR_AMB_Y1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assVR_AMB_Y1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assVR_AMB_Y1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assVR_AMB_Y1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assVR_AMB_Y1_LV5[i]; - tmp_0[6 * i] = g_assVR_AMB_Y2_LV0[i]; - tmp_0[tmp_1] = g_assVR_AMB_Y2_LV1[i]; - tmp_0[tmp_2] = g_assVR_AMB_Y2_LV2[i]; - tmp_0[tmp_3] = g_assVR_AMB_Y2_LV3[i]; - tmp_0[tmp_4] = g_assVR_AMB_Y2_LV4[i]; - tmp_0[tmp_5] = g_assVR_AMB_Y2_LV5[i]; - } - - i = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - i = -32768; - } - - tmp_1 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_1 = -32768; - } - - tmp_2 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp_2 = 255; - } - - rty_y[0] = tmp[(((int32_t)trunc(((double)i + 1.0) / 2.0) - 1) * 6 + tmp_2) - 1]; - rty_y[1] = 0; - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - rty_y[2] = tmp_0[(((int32_t)trunc(((double)tmp_1 + 1.0) / 2.0) - 1) * 6 + i) - - 1]; -} - -/* - * Output and update for atomic system: - * '/X1-X2 для Vtg_FX_sun' - * '/X1-X4 для Vtg_RX_sun' - */ -void X1X2Vtg_FX_sun(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]) -{ - int32_t i; - int32_t tmp_1; - int32_t tmp_2; - int32_t tmp_3; - int32_t tmp_4; - int32_t tmp_5; - int16_t tmp[42]; - int16_t tmp_0[42]; - - /* : all_lvl_x1 = [g_assVR_SUN_X1_LV0; g_assVR_SUN_X1_LV1; g_assVR_SUN_X1_LV2; g_assVR_SUN_X1_LV3; g_assVR_SUN_X1_LV4; g_assVR_SUN_X1_LV5]; */ - /* : all_lvl_x2 = [g_assVR_SUN_X2_LV0; g_assVR_SUN_X2_LV1; g_assVR_SUN_X2_LV2; g_assVR_SUN_X2_LV3; g_assVR_SUN_X2_LV4; g_assVR_SUN_X2_LV5]; */ - /* : y = [0, all_lvl_x1(LVL + 1, idivide(SET - 16 + 1, 2)),all_lvl_x2(LVL + 1, idivide(SET - 16 + 1, 2))]; */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assVR_SUN_X1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assVR_SUN_X1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assVR_SUN_X1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assVR_SUN_X1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assVR_SUN_X1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assVR_SUN_X1_LV5[i]; - tmp_0[6 * i] = g_assVR_SUN_X2_LV0[i]; - tmp_0[tmp_1] = g_assVR_SUN_X2_LV1[i]; - tmp_0[tmp_2] = g_assVR_SUN_X2_LV2[i]; - tmp_0[tmp_3] = g_assVR_SUN_X2_LV3[i]; - tmp_0[tmp_4] = g_assVR_SUN_X2_LV4[i]; - tmp_0[tmp_5] = g_assVR_SUN_X2_LV5[i]; - } - - i = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - i = -32768; - } - - tmp_1 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_1 = -32768; - } - - rty_y[0] = 0; - tmp_2 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp_2 = 255; - } - - rty_y[1] = tmp[(((int32_t)trunc(((double)i + 1.0) / 2.0) - 1) * 6 + tmp_2) - 1]; - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - rty_y[2] = tmp_0[(((int32_t)trunc(((double)tmp_1 + 1.0) / 2.0) - 1) * 6 + i) - - 1]; -} - -/* - * Output and update for atomic system: - * '/Y1-Y2 для Vtg_RX_sun' - * '/Y1-Y4 для Vtg_RX_sun' - */ -void Y1Y2Vtg_RX_sun(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]) -{ - int32_t i; - int32_t tmp_1; - int32_t tmp_2; - int32_t tmp_3; - int32_t tmp_4; - int32_t tmp_5; - int16_t tmp[42]; - int16_t tmp_0[42]; - - /* : all_lvl_y1 = [g_assVR_SUN_Y1_LV0; g_assVR_SUN_Y1_LV1; g_assVR_SUN_Y1_LV2; g_assVR_SUN_Y1_LV3; g_assVR_SUN_Y1_LV4; g_assVR_SUN_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assVR_SUN_Y2_LV0; g_assVR_SUN_Y2_LV1; g_assVR_SUN_Y2_LV2; g_assVR_SUN_Y2_LV3; g_assVR_SUN_Y2_LV4; g_assVR_SUN_Y2_LV5]; */ - /* : y = [0, all_lvl_y1(LVL + 1, idivide(SET - 16 + 1, 2)), all_lvl_y2(LVL + 1, idivide(SET - 16 + 1, 2))]; */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assVR_SUN_Y1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assVR_SUN_Y1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assVR_SUN_Y1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assVR_SUN_Y1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assVR_SUN_Y1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assVR_SUN_Y1_LV5[i]; - tmp_0[6 * i] = g_assVR_SUN_Y2_LV0[i]; - tmp_0[tmp_1] = g_assVR_SUN_Y2_LV1[i]; - tmp_0[tmp_2] = g_assVR_SUN_Y2_LV2[i]; - tmp_0[tmp_3] = g_assVR_SUN_Y2_LV3[i]; - tmp_0[tmp_4] = g_assVR_SUN_Y2_LV4[i]; - tmp_0[tmp_5] = g_assVR_SUN_Y2_LV5[i]; - } - - i = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - i = -32768; - } - - tmp_1 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_1 = -32768; - } - - rty_y[0] = 0; - tmp_2 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp_2 = 255; - } - - rty_y[1] = tmp[(((int32_t)trunc(((double)i + 1.0) / 2.0) - 1) * 6 + tmp_2) - 1]; - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - rty_y[2] = tmp_0[(((int32_t)trunc(((double)tmp_1 + 1.0) / 2.0) - 1) * 6 + i) - - 1]; -} - -/* - * Output and update for atomic system: - * '/Vtg_RX_plus_max' - * '/Vtg_RX_plus_max' - */ -void Vtg_RX_plus_max(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y) -{ - int32_t i; - int32_t tmp_0; - int16_t tmp[42]; - - /* : all_min = [g_assVR_MIN_LV0; g_assVR_MIN_LV1; g_assVR_MIN_LV2; g_assVR_MIN_LV3; g_assVR_MIN_LV4; g_assVR_MIN_LV5]; */ - /* : all_max = [g_assVR_MAX_LV0; g_assVR_MAX_LV1; g_assVR_MAX_LV2; g_assVR_MAX_LV3; g_assVR_MAX_LV4; g_assVR_MAX_LV5]; */ - /* : y = all_max(LVL + 1, idivide(SET - 16 + 1, 2)); */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assVR_MAX_LV0[i]; - tmp[6 * i + 1] = g_assVR_MAX_LV1[i]; - tmp[6 * i + 2] = g_assVR_MAX_LV2[i]; - tmp[6 * i + 3] = g_assVR_MAX_LV3[i]; - tmp[6 * i + 4] = g_assVR_MAX_LV4[i]; - tmp[6 * i + 5] = g_assVR_MAX_LV5[i]; - } - - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - tmp_0 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_0 = -32768; - } - - *rty_y = tmp[(((int32_t)trunc(((double)tmp_0 + 1.0) / 2.0) - 1) * 6 + i) - 1]; -} - -/* - * Output and update for atomic system: - * '/Vtg_RX_plus_min' - * '/Vtg_RX_plus_min' - */ -void Vtg_RX_plus_min(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y) -{ - int32_t i; - int32_t tmp_0; - int16_t tmp[42]; - - /* : all_min = [g_assVR_MIN_LV0; g_assVR_MIN_LV1; g_assVR_MIN_LV2; g_assVR_MIN_LV3; g_assVR_MIN_LV4; g_assVR_MIN_LV5]; */ - /* : all_max = [g_assVR_MAX_LV0; g_assVR_MAX_LV1; g_assVR_MAX_LV2; g_assVR_MAX_LV3; g_assVR_MAX_LV4; g_assVR_MAX_LV5]; */ - /* : y = all_min(LVL + 1, idivide(SET - 16 + 1, 2)); */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assVR_MIN_LV0[i]; - tmp[6 * i + 1] = g_assVR_MIN_LV1[i]; - tmp[6 * i + 2] = g_assVR_MIN_LV2[i]; - tmp[6 * i + 3] = g_assVR_MIN_LV3[i]; - tmp[6 * i + 4] = g_assVR_MIN_LV4[i]; - tmp[6 * i + 5] = g_assVR_MIN_LV5[i]; - } - - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - tmp_0 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_0 = -32768; - } - - *rty_y = tmp[(((int32_t)trunc(((double)tmp_0 + 1.0) / 2.0) - 1) * 6 + i) - 1]; -} - -/* - * Output and update for atomic system: - * '/обычное понижение темп.' - * '/обычное повышение темп.' - * '/обычное понижение темп.' - * '/обычное повышение темп.' - * '/обычное понижение темп.' - * '/обычное повышение темп.' - */ -void u_bs(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_FALLING) +void u_m2(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_FALLING) { int32_t tmp; @@ -7101,132 +4475,132 @@ void u_bs(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_FALLING) /* * Output and update for action system: - * '/включен ускоренный режим' - * '/включен ускоренный режим' - * '/включен ускоренный режим' + * '/включен ускоренный режим' + * '/включен ускоренный режим' + * '/включен ускоренный режим' */ -void u_de(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_out, const double +void u_kb(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_out, const double *rtd_AMB_store, double *rtd_KEEP_FALLING_UNTIL_LIMIT) { int32_t tmp; - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * DataStoreRead: '/Read Amb' - * MATLAB Function: '/AMBRATE_RISING_DIFF[8]' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' + /* If: '/If' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * MATLAB Function: '/AMBRATE_RISING_DIFF[8]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' */ /* : f_g_aucAMBRATE_FALLING_DIFF = g_aucAMBRATE_FALLING_DIFF(8); */ if (fabs((double)rtu_amb_raw - *rtd_AMB_store) <= g_aucAMBRATE_FALLING_DIFF[7]) { - /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ *rtd_KEEP_FALLING_UNTIL_LIMIT = 0.0; - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/обычное понижение темп.' - * Merge: '/Merge' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/обычное понижение темп.' + * Merge: '/Merge' */ - u_bs(rtu_lvl, rty_out); + u_m2(rtu_lvl, rty_out); - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ + /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/ускоренное повышение темп.' */ + /* MATLAB Function: '/ускоренное повышение темп.' */ /* : f_g_aucAMBRATE_FALLING_DIFF = g_aucAMBRATE_FALLING_DIFF(lvl + 1); */ tmp = rtu_lvl + 1; if (rtu_lvl + 1 > 32767) { tmp = 32767; } - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/ускоренное повышение темп.' - * Merge: '/Merge' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/ускоренное повышение темп.' + * Merge: '/Merge' */ *rty_out = g_aucAMBRATE_FALLING_DIFF[tmp - 1]; - /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ + /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ } /* * Output and update for action system: - * '/обычный режим' - * '/обычный режим' - * '/обычный режим' + * '/обычный режим' + * '/обычный режим' + * '/обычный режим' */ -void u_co(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_riseperminute, +void u_my(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_riseperminute, const double *rtd_AMB_store, double *rtd_KEEP_FALLING_UNTIL_LIMIT) { int32_t tmp; - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * DataStoreRead: '/Read Amb' - * MATLAB Function: '/AMBRATE_FALLING_DIFF[7]' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' + /* If: '/If' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * MATLAB Function: '/AMBRATE_FALLING_DIFF[7]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' */ /* : f_g_aucAMBRATE_FALLING_DIFF = g_aucAMBRATE_FALLING_DIFF(7); */ if (fabs((double)rtu_amb_raw - *rtd_AMB_store) > g_aucAMBRATE_FALLING_DIFF[6]) { - /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ *rtd_KEEP_FALLING_UNTIL_LIMIT = 1.0; - /* MATLAB Function: '/ускоренное повышение темп.' */ + /* MATLAB Function: '/ускоренное повышение темп.' */ /* : f_g_aucAMBRATE_FALLING_DIFF_LVL = g_aucAMBRATE_FALLING_DIFF(lvl + 1); */ tmp = rtu_lvl + 1; if (rtu_lvl + 1 > 32767) { tmp = 32767; } - /* SignalConversion generated from: '/rise per minute' incorporates: - * MATLAB Function: '/ускоренное повышение темп.' - * Merge: '/Merge' + /* SignalConversion generated from: '/rise per minute' incorporates: + * MATLAB Function: '/ускоренное повышение темп.' + * Merge: '/Merge' */ *rty_riseperminute = g_aucAMBRATE_FALLING_DIFF[tmp - 1]; - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ + /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion generated from: '/rise per minute' incorporates: - * MATLAB Function: '/обычное повышение темп.' - * Merge: '/Merge' + /* SignalConversion generated from: '/rise per minute' incorporates: + * MATLAB Function: '/обычное повышение темп.' + * Merge: '/Merge' */ - u_bs(rtu_lvl, rty_riseperminute); + u_m2(rtu_lvl, rty_riseperminute); - /* End of Outputs for SubSystem: '/обычный режим повышения' */ + /* End of Outputs for SubSystem: '/обычный режим повышения' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ } /* * Output and update for atomic system: - * '/обычное повышение темп.' - * '/обычное повышение темп.' - * '/обычное повышение темп.' - * '/обычное повышение темп.' - * '/обычное повышение темп.' - * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' */ -void u_bq(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING) +void u_h3(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING) { int32_t tmp; @@ -7241,14 +4615,14 @@ void u_bq(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING) /* * Output and update for atomic system: - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' - * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' + * '/ускоренное повышение темп.' */ -void u_gw(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING_DIFF_LVL) +void u_fr(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING_DIFF_LVL) { int32_t tmp; @@ -7263,137 +4637,137 @@ void u_gw(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING_DIFF_LVL) /* * Output and update for action system: - * '/включен ускоренный режим' - * '/включен ускоренный режим' - * '/включен ускоренный режим' + * '/включен ускоренный режим' + * '/включен ускоренный режим' + * '/включен ускоренный режим' */ -void u_hd(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_out, const double - *rtd_AMB_store, double *rtd_KEEP_RISING_UNTIL_LIMIT) +void u_p(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_out, const double + *rtd_AMB_store, double *rtd_KEEP_RISING_UNTIL_LIMIT) { - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * DataStoreRead: '/Read Amb' - * MATLAB Function: '/AMBRATE_RISING_DIFF[8]' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' + /* If: '/If' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * MATLAB Function: '/AMBRATE_RISING_DIFF[8]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' */ /* : f_g_aucAMBRATE_RISING_DIFF = g_aucAMBRATE_RISING_DIFF(8); */ if (fabs((double)rtu_amb_raw - *rtd_AMB_store) <= g_aucAMBRATE_RISING_DIFF[7]) { - /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ *rtd_KEEP_RISING_UNTIL_LIMIT = 0.0; - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/обычное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/обычное повышение темп.' */ - u_bq(rtu_lvl, rty_out); + u_h3(rtu_lvl, rty_out); - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ + /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/ускоренное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/ускоренное повышение темп.' */ - u_gw(rtu_lvl, rty_out); + u_fr(rtu_lvl, rty_out); - /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ + /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ } /* * Output and update for action system: - * '/обычный режим' - * '/обычный режим' - * '/обычный режим' + * '/обычный режим' + * '/обычный режим' + * '/обычный режим' */ -void u_a5(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_riseperminute, +void u_g2(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_riseperminute, const double *rtd_AMB_store, double *rtd_KEEP_RISING_UNTIL_LIMIT) { - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * DataStoreRead: '/Read Amb' - * MATLAB Function: '/AMBRATE_RISING_DIFF[7]' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' + /* If: '/If' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * MATLAB Function: '/AMBRATE_RISING_DIFF[7]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' */ /* : f_g_aucAMBRATE_RISING_DIFF = g_aucAMBRATE_RISING_DIFF(7); */ if (fabs((double)rtu_amb_raw - *rtd_AMB_store) > g_aucAMBRATE_RISING_DIFF[6]) { - /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ *rtd_KEEP_RISING_UNTIL_LIMIT = 1.0; - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/ускоренное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/ускоренное повышение темп.' */ - u_gw(rtu_lvl, rty_riseperminute); + u_fr(rtu_lvl, rty_riseperminute); - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ + /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/обычное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/обычное повышение темп.' */ - u_bq(rtu_lvl, rty_riseperminute); + u_h3(rtu_lvl, rty_riseperminute); - /* End of Outputs for SubSystem: '/обычный режим повышения' */ + /* End of Outputs for SubSystem: '/обычный режим повышения' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ } /* * Output and update for action system: - * '/If Action Subsystem' - * '/If Action Subsystem' - * '/If Action Subsystem' + * '/If Action Subsystem' + * '/If Action Subsystem' + * '/If Action Subsystem' */ -void IfActionSubsystem(int8_t *rty_Out1, double *rtd_ErrorHomming_private, +void IfActionSubsystem_h(int8_t *rty_Out1, double *rtd_ErrorHomming_private, double *rtd_Start_timer_n, int8_t *rtd_stepSig_private) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ *rtd_stepSig_private = 1; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read1' - * Sum: '/step inc' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read1' + * Sum: '/step inc' */ (*rtd_ErrorHomming_private)++; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant3' */ *rtd_Start_timer_n = 0.0; - /* SignalConversion generated from: '/Out1' incorporates: - * Constant: '/Constant1' + /* SignalConversion generated from: '/Out1' incorporates: + * Constant: '/Constant1' */ *rty_Out1 = 2; } /* * System initialize for atomic system: - * '/MATLAB Function' - * '/MATLAB Function' - * '/MATLAB Function' + * '/MATLAB Function' + * '/MATLAB Function' + * '/MATLAB Function' */ void MATLABFunction_Init(DW_MATLABFunction *localDW) { @@ -7403,9 +4777,9 @@ void MATLABFunction_Init(DW_MATLABFunction *localDW) /* * Output and update for atomic system: - * '/MATLAB Function' - * '/MATLAB Function' - * '/MATLAB Function' + * '/MATLAB Function' + * '/MATLAB Function' + * '/MATLAB Function' */ void MATLABFunction(double rtu_cond, uint32_t rtu_t_now, uint32_t *rty_dt, DW_MATLABFunction *localDW) @@ -7452,11 +4826,11 @@ void MATLABFunction(double rtu_cond, uint32_t rtu_t_now, uint32_t *rty_dt, /* * Output and update for action system: - * '/If Action Subsystem1' - * '/If Action Subsystem1' - * '/If Action Subsystem1' + * '/If Action Subsystem1' + * '/If Action Subsystem1' + * '/If Action Subsystem1' */ -void IfActionSubsystem1(int8_t *rty_Output, uint8_t +void IfActionSubsystem1_h(int8_t *rty_Output, uint8_t *rtd_CCU_ActuatorErrF_Stat_private, uint8_t rtd_COM_private[9], uint8_t rtd_ErrorActuator[9], uint8_t rtd_ErrorCalibration_private[9], const double *rtd_LOGGER_LIN, uint8_t rtd_MODE_private[9], uint8_t @@ -7465,32 +4839,32 @@ void IfActionSubsystem1(int8_t *rty_Output, uint8_t int32_t i; bool tmp; - /* Logic: '/Logical Operator' incorporates: - * DataStoreRead: '/Data Store Read' + /* Logic: '/Logical Operator' incorporates: + * DataStoreRead: '/Data Store Read' */ tmp = (rtd_ErrorCalibration_private[0] != 0); for (i = 0; i < 8; i++) { tmp = (tmp || (rtd_ErrorCalibration_private[i + 1] != 0)); } - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write1' - * Logic: '/Logical Operator' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreWrite: '/Data Store Write1' + * Logic: '/Logical Operator' */ *rtd_CCU_ActuatorErrF_Stat_private = tmp; for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write2' incorporates: - * DataStoreRead: '/Data Store Read' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * DataStoreRead: '/Data Store Read' */ rtd_COM_private[i] = rtd_ErrorCalibration_private[i]; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtd_MODE_private[i] = 2U; } - /* MATLAB Function: '/Write ERROR' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read6' + /* MATLAB Function: '/Write ERROR' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read6' */ /* : if(LOGGER==1) */ if (*rtd_LOGGER_LIN == 1.0) { @@ -7505,140 +4879,72 @@ void IfActionSubsystem1(int8_t *rty_Output, uint8_t } } - /* End of MATLAB Function: '/Write ERROR' */ + /* End of MATLAB Function: '/Write ERROR' */ for (i = 0; i < 9; i++) { uint8_t rtd_ErrorCalibration_private_0; - /* Logic: '/Logical Operator1' incorporates: - * DataStoreRead: '/Data Store Read' + /* Logic: '/Logical Operator1' incorporates: + * DataStoreRead: '/Data Store Read' */ rtd_ErrorCalibration_private_0 = rtd_ErrorCalibration_private[i]; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write3' - * Logic: '/Logical Operator1' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write3' + * Logic: '/Logical Operator1' */ rtd_ErrorActuator[i] = (uint8_t)((rtd_ErrorCalibration_private_0 != 0) || (rtd_ErrorActuator[i] != 0)); - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtd_dtc_state_error_model[i + 54] = rtd_ErrorCalibration_private_0; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtd_ErrorCalibration_private[i] = 0U; } - /* SignalConversion generated from: '/Output' incorporates: - * Constant: '/Constant' + /* SignalConversion generated from: '/Output' incorporates: + * Constant: '/Constant' */ *rty_Output = 4; } /* * Output and update for atomic system: - * '/MODE_for_set_and_lvl' - * '/MODE_for_set_and_lvl1' + * '/valves for mode' + * '/valves_front_right' */ -void MODE_for_set_and_lvl(uint8_t rtu_LVL, int16_t rtu_SET, uint8_t - *rty_get_mode) +void valvesformode(uint8_t rtu_MODE, uint16_t rty_get_valves[9]) { int32_t i; int32_t tmp_0; - uint8_t tmp[78]; + uint16_t tmp[45]; /* : modes_array = [ */ - /* : g_aucMODE_BY_SET_F_LV0; */ - /* : g_aucMODE_BY_SET_F_LV1; */ - /* : g_aucMODE_BY_SET_F_LV2; */ - /* : g_aucMODE_BY_SET_F_LV3; */ - /* : g_aucMODE_BY_SET_F_LV4; */ - /* : g_aucMODE_BY_SET_F_LV5]; */ - /* : get_mode = modes_array(LVL + 1, SET - 16); */ - for (i = 0; i < 13; i++) { - tmp[6 * i] = g_aucMODE_BY_SET_F_LV0[i]; - tmp[6 * i + 1] = g_aucMODE_BY_SET_F_LV1[i]; - tmp[6 * i + 2] = g_aucMODE_BY_SET_F_LV2[i]; - tmp[6 * i + 3] = g_aucMODE_BY_SET_F_LV3[i]; - tmp[6 * i + 4] = g_aucMODE_BY_SET_F_LV4[i]; - tmp[6 * i + 5] = g_aucMODE_BY_SET_F_LV5[i]; - } - - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - tmp_0 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_0 = -32768; - } - - *rty_get_mode = tmp[((tmp_0 - 1) * 6 + i) - 1]; -} - -/* - * Output and update for atomic system: - * '/increase' - * '/increase' - */ -void increase(int16_t rtu_duct_tg, const uint16_t rtu_mode_array[7], uint16_t - *rty_y) -{ - /* : threshold_low = mode_array(2); */ - /* : threshold_high = mode_array(4); */ - /* : value_low = mode_array(5); */ - /* : value_mid = mode_array(6); */ - /* : value_high = mode_array(7); */ - /* : if duct_tg < threshold_low */ - if (rtu_duct_tg < rtu_mode_array[1]) { - /* : y = value_low; */ - *rty_y = rtu_mode_array[4]; - } else if (rtu_duct_tg < rtu_mode_array[3]) { - /* : elseif duct_tg < threshold_high */ - /* : y = value_mid; */ - *rty_y = rtu_mode_array[5]; - } else { - /* : else */ - /* : y = value_high; */ - *rty_y = rtu_mode_array[6]; + /* : g_ausFLOW_FR_VE2VALVE; */ + /* : g_ausFLOW_FR_BIVALVE; */ + /* : g_ausFLOW_FR_BI2VALVE; */ + /* : g_ausFLOW_FR_AF2VALVE; */ + /* : g_ausFLOW_FR_AF2VALVE_SUMMER]; */ + /* : index = idivide(MODE, 10); */ + /* : get_valves = modes_array(index, :); */ + tmp_0 = (int32_t)trunc((double)rtu_MODE / 10.0); + for (i = 0; i < 9; i++) { + tmp[5 * i] = g_ausFLOW_FR_VE2VALVE[i]; + tmp[5 * i + 1] = g_ausFLOW_FR_BIVALVE[i]; + tmp[5 * i + 2] = g_ausFLOW_FR_BI2VALVE[i]; + tmp[5 * i + 3] = g_ausFLOW_FR_AF2VALVE[i]; + tmp[5 * i + 4] = g_ausFLOW_FR_AF2VALVE_SUMMER[i]; + rty_get_valves[i] = tmp[(5 * i + tmp_0) - 1]; } } /* * Output and update for atomic system: - * '/decrease' - * '/decrease' + * '/valves_rear_left' + * '/valves_rear_right' */ -void decrease(int16_t rtu_duct_tg, const uint16_t rtu_mode_array[7], uint16_t - *rty_y) -{ - /* : threshold_low = mode_array(1); */ - /* : threshold_high = mode_array(3); */ - /* : value_low = mode_array(5); */ - /* : value_mid = mode_array(6); */ - /* : value_high = mode_array(7); */ - /* : if duct_tg < threshold_low */ - if (rtu_duct_tg < rtu_mode_array[0]) { - /* : y = value_low; */ - *rty_y = rtu_mode_array[4]; - } else if (rtu_duct_tg < rtu_mode_array[2]) { - /* : elseif duct_tg < threshold_high */ - /* : y = value_mid; */ - *rty_y = rtu_mode_array[5]; - } else { - /* : else */ - /* : y = value_high; */ - *rty_y = rtu_mode_array[6]; - } -} - -/* - * Output and update for atomic system: - * '/valves_rear_left' - * '/valves_rear_right' - */ -void valves_rear_left(uint16_t rtu_MODE, uint16_t rty_get_valves[6]) +void valves_rear_left(uint8_t rtu_MODE, uint16_t rty_get_valves[6]) { int32_t q0; uint32_t qY; @@ -7683,8 +4989,154 @@ void valves_rear_left(uint16_t rtu_MODE, uint16_t rty_get_valves[6]) /* * Output and update for atomic system: - * '/Valves for Bi Level' - * '/Valves for Bi Level' + * '/MODE_for_set_and_lvl' + * '/MODE_for_set_and_lvl1' + */ +void MODE_for_set_and_lvl(uint8_t rtu_LVL, int16_t rtu_SET, uint8_t + *rty_get_mode) +{ + int32_t i; + int32_t tmp_0; + uint8_t tmp[78]; + + /* : modes_array = [ */ + /* : g_aucMODE_BY_SET_F_LV0; */ + /* : g_aucMODE_BY_SET_F_LV1; */ + /* : g_aucMODE_BY_SET_F_LV2; */ + /* : g_aucMODE_BY_SET_F_LV3; */ + /* : g_aucMODE_BY_SET_F_LV4; */ + /* : g_aucMODE_BY_SET_F_LV5]; */ + /* : get_mode = modes_array(LVL + 1, SET - 16); */ + for (i = 0; i < 13; i++) { + tmp[6 * i] = g_aucMODE_BY_SET_F_LV0[i]; + tmp[6 * i + 1] = g_aucMODE_BY_SET_F_LV1[i]; + tmp[6 * i + 2] = g_aucMODE_BY_SET_F_LV2[i]; + tmp[6 * i + 3] = g_aucMODE_BY_SET_F_LV3[i]; + tmp[6 * i + 4] = g_aucMODE_BY_SET_F_LV4[i]; + tmp[6 * i + 5] = g_aucMODE_BY_SET_F_LV5[i]; + } + + i = (int32_t)(rtu_LVL + 1U); + if (rtu_LVL + 1U > 255U) { + i = 255; + } + + tmp_0 = rtu_SET - 16; + if (rtu_SET - 16 < -32768) { + tmp_0 = -32768; + } + + *rty_get_mode = tmp[((tmp_0 - 1) * 6 + i) - 1]; +} + +/* + * Output and update for atomic system: + * '/increase' + * '/increase' + */ +void increase(int16_t rtu_duct_tg, const uint16_t rtu_mode_array[7], uint16_t + *rty_y) +{ + /* : threshold_low = mode_array(2); */ + /* : threshold_high = mode_array(4); */ + /* : value_low = mode_array(5); */ + /* : value_mid = mode_array(6); */ + /* : value_high = mode_array(7); */ + /* : if duct_tg < threshold_low */ + if (rtu_duct_tg < rtu_mode_array[1]) { + /* : y = value_low; */ + *rty_y = rtu_mode_array[4]; + } else if (rtu_duct_tg < rtu_mode_array[3]) { + /* : elseif duct_tg < threshold_high */ + /* : y = value_mid; */ + *rty_y = rtu_mode_array[5]; + } else { + /* : else */ + /* : y = value_high; */ + *rty_y = rtu_mode_array[6]; + } +} + +/* + * Output and update for atomic system: + * '/decrease' + * '/decrease' + */ +void decrease(int16_t rtu_duct_tg, const uint16_t rtu_mode_array[7], uint16_t + *rty_y) +{ + /* : threshold_low = mode_array(1); */ + /* : threshold_high = mode_array(3); */ + /* : value_low = mode_array(5); */ + /* : value_mid = mode_array(6); */ + /* : value_high = mode_array(7); */ + /* : if duct_tg < threshold_low */ + if (rtu_duct_tg < rtu_mode_array[0]) { + /* : y = value_low; */ + *rty_y = rtu_mode_array[4]; + } else if (rtu_duct_tg < rtu_mode_array[2]) { + /* : elseif duct_tg < threshold_high */ + /* : y = value_mid; */ + *rty_y = rtu_mode_array[5]; + } else { + /* : else */ + /* : y = value_high; */ + *rty_y = rtu_mode_array[6]; + } +} + +/* + * Output and update for atomic system: + * '/valves_rear_left' + * '/valves_rear_right' + */ +void valves_rear_left_d(uint16_t rtu_MODE, uint16_t rty_get_valves[6]) +{ + int32_t q0; + uint32_t qY; + uint16_t tmp[54]; + + /* : modes_array = [ */ + /* : g_ausFLOW_RE_VENT; */ + /* : g_ausFLOW_RE_BI2VALVE; */ + /* : g_ausFLOW_RE_FO2VALVE; */ + /* : g_ausFLOW_RE_VENT_2; */ + /* : g_ausFLOW_RE_BI2VALVE_2; */ + /* : g_ausFLOW_RE_VENT_3; */ + /* : g_ausFLOW_RE_BI2VALVE_3; */ + /* : g_ausFLOW_RE_VENT_MANUAL; */ + /* : g_ausFLOW_RE_BI2VALVE_MANUAL; */ + /* : ]; */ + /* : index = idivide(MODE, 10) - 11; */ + /* : get_valves = modes_array(index, :); */ + q0 = (int32_t)trunc((double)rtu_MODE / 10.0); + + /* MW:begin MISRA2012:D4.1 CERT-C:INT30-C 'Justifying MISRA CPP rule violation' */ + qY = (uint32_t)q0 - 11U; + + /* MW:end MISRA2012:D4.1 CERT-C:INT30-C */ + if ((uint32_t)q0 - 11U > (uint32_t)q0) { + qY = 0U; + } + + for (q0 = 0; q0 < 6; q0++) { + tmp[9 * q0] = g_ausFLOW_RE_VENT[q0]; + tmp[9 * q0 + 1] = g_ausFLOW_RE_BI2VALVE[q0]; + tmp[9 * q0 + 2] = g_ausFLOW_RE_FO2VALVE[q0]; + tmp[9 * q0 + 3] = g_ausFLOW_RE_VENT_2[q0]; + tmp[9 * q0 + 4] = g_ausFLOW_RE_BI2VALVE_2[q0]; + tmp[9 * q0 + 5] = g_ausFLOW_RE_VENT_3[q0]; + tmp[9 * q0 + 6] = g_ausFLOW_RE_BI2VALVE_3[q0]; + tmp[9 * q0 + 7] = g_ausFLOW_RE_VENT_MANUAL[q0]; + tmp[9 * q0 + 8] = g_ausFLOW_RE_BI2VALVE_MANUAL[q0]; + rty_get_valves[q0] = tmp[(9 * q0 + (int32_t)qY) - 1]; + } +} + +/* + * Output and update for atomic system: + * '/Valves for Bi Level' + * '/Valves for Bi Level' */ void ValvesforBiLevel(uint16_t rty_out[9]) { @@ -7698,23 +5150,8 @@ void ValvesforBiLevel(uint16_t rty_out[9]) /* * Output and update for atomic system: - * '/Valves for Def' - * '/Valves for Def' - */ -void ValvesforDef(uint16_t rty_out[9]) -{ - int32_t i; - for (i = 0; i < 9; i++) { - rty_out[i] = g_ausFLOW_FR_DE2VALVE[i]; - } - - /* : out = g_ausFLOW_FR_DE2VALVE; */ -} - -/* - * Output and update for atomic system: - * '/Valves for Foot + Def' - * '/Valves for Foot + Def' + * '/Valves for Foot + Def' + * '/Valves for Foot + Def' */ void ValvesforFootDef(uint16_t rty_out[9]) { @@ -7728,8 +5165,8 @@ void ValvesforFootDef(uint16_t rty_out[9]) /* * Output and update for atomic system: - * '/Valves for Hi_Level' - * '/Valves for Hi_Level' + * '/Valves for Hi_Level' + * '/Valves for Hi_Level' */ void ValvesforHi_Level(uint16_t rty_out[9]) { @@ -7743,8 +5180,8 @@ void ValvesforHi_Level(uint16_t rty_out[9]) /* * Output and update for atomic system: - * '/Valves for Tri-Level' - * '/Valves for Tri-Level' + * '/Valves for Tri-Level' + * '/Valves for Tri-Level' */ void ValvesforTriLevel(uint16_t rty_out[9]) { @@ -7758,8 +5195,8 @@ void ValvesforTriLevel(uint16_t rty_out[9]) /* * Output and update for atomic system: - * '/AF for Bi Level' - * '/AF for Bi Level' + * '/AF for Bi Level' + * '/AF for Bi Level' */ void AFforBiLevel_a(uint16_t rty_out[6]) { @@ -7773,8 +5210,8 @@ void AFforBiLevel_a(uint16_t rty_out[6]) /* * Output and update for atomic system: - * '/valves for Vent mode' - * '/valves for Vent mode' + * '/valves for Vent mode' + * '/valves for Vent mode' */ void valvesforVentmode(uint16_t rty_out[6]) { @@ -7799,7 +5236,7 @@ static void E_COMP_MANAGER(bool *Enable_Comp_PID, const int16_t /* : sf_internal_predicateOutput = (FRONT_Start_request ==1 || REAR_Start_request == 1 || Chiller_Start_request ==1) && Pressure_Hi_Fault == 0 && Pressure_Condition_table_OK == 1 && eCompChiller_Err==false && BCM_T15_Stat == 1; */ if ((rtDW.FRONT_Start_request || rtDW.REAR_Start_request || rtDW.Chiller_Start_request) && (!rtDW.Pressure_Hi_Fault) && - rtDW.Pressure_Condition_table_OK && (!rtDW.eCompChiller_Err) && + rtDW.Pressure_Condition_table_OK && (rtDW.eCompChiller_Err == 0.0) && (rtDW.BCM_T15_Stat == 1)) { rtDW.is_E_COMP_MANAGER = IN_COMP_ON; @@ -7825,7 +5262,7 @@ static void E_COMP_MANAGER(bool *Enable_Comp_PID, const int16_t */ if ((tmp && tmp_0 && (!rtDW.Chiller_Start_request)) || rtDW.Pressure_Hi_Fault || (!rtDW.Pressure_Condition_table_OK) || - rtDW.eCompChiller_Err || (rtDW.BCM_T15_Stat == 0)) { + (rtDW.eCompChiller_Err == 1.0) || (rtDW.BCM_T15_Stat == 0)) { rtDW.is_E_COMP_MANAGER = IN_COMP_OFF; /* : Enable_Comp_PID = false; */ @@ -7952,6 +5389,196 @@ static void E_COMP_MANAGER(bool *Enable_Comp_PID, const int16_t } } +/* Function for Chart: '/Synchronization stateflow chart' */ +static void enter_atomic_REAR_ONLY(void) +{ + /* : sync_state = 3; */ + /* : sync_front = 0; */ + rtB.sync_front = 0U; + + /* : sync_rear = 1; */ + rtB.sync_rear = 1U; + + /* : sync_all = 0; */ + rtB.sync_all = 0U; + + /* : enable_full_sync=0; */ + rtDW.enable_full_sync = 0U; + + /* : enable_rear_sync = 0; */ + rtDW.enable_rear_sync = 0U; + + /* : enable_front_sync = 0; */ + rtDW.enable_front_sync = 0U; + + /* : disable_front_sync = 0; */ + rtDW.disable_front_sync = 0U; + + /* : disable_rear_sync = 0; */ + rtDW.disable_rear_sync = 0U; + + /* : changed_FR_params = 0; */ + rtDW.changed_FR_params = 0U; + + /* : changed_RL_params = 0; */ + rtDW.changed_RL_params = 0U; + + /* : changed_RR_params = 0 */ + rtDW.changed_RR_params = 0U; +} + +/* Function for Chart: '/Synchronization stateflow chart' */ +static void enter_atomic_FRONT_ONLY(void) +{ + /* : sync_state = 1; */ + /* : sync_front = 1; */ + rtB.sync_front = 1U; + + /* : sync_rear = 0; */ + rtB.sync_rear = 0U; + + /* : sync_all = 0; */ + rtB.sync_all = 0U; + + /* : enable_full_sync=0; */ + rtDW.enable_full_sync = 0U; + + /* : enable_rear_sync = 0; */ + rtDW.enable_rear_sync = 0U; + + /* : enable_front_sync = 0; */ + rtDW.enable_front_sync = 0U; + + /* : disable_front_sync = 0; */ + rtDW.disable_front_sync = 0U; + + /* : disable_rear_sync = 0; */ + rtDW.disable_rear_sync = 0U; + + /* : changed_FR_params = 0; */ + rtDW.changed_FR_params = 0U; + + /* : changed_RL_params = 0; */ + rtDW.changed_RL_params = 0U; + + /* : changed_RR_params = 0 */ + rtDW.changed_RR_params = 0U; +} + +/* Function for Chart: '/Synchronization stateflow chart' */ +static void enter_atomic_FULL_SYNC(void) +{ + /* : sync_state = 2; */ + /* : sync_front = 0; */ + rtB.sync_front = 0U; + + /* : sync_rear = 0; */ + rtB.sync_rear = 0U; + + /* : sync_all = 1; */ + rtB.sync_all = 1U; + + /* : enable_full_sync=0; */ + rtDW.enable_full_sync = 0U; + + /* : enable_rear_sync = 0; */ + rtDW.enable_rear_sync = 0U; + + /* : enable_front_sync = 0; */ + rtDW.enable_front_sync = 0U; + + /* : disable_front_sync = 0; */ + rtDW.disable_front_sync = 0U; + + /* : disable_rear_sync = 0; */ + rtDW.disable_rear_sync = 0U; + + /* : changed_FR_params = 0; */ + rtDW.changed_FR_params = 0U; + + /* : changed_RL_params = 0; */ + rtDW.changed_RL_params = 0U; + + /* : changed_RR_params = 0 */ + rtDW.changed_RR_params = 0U; +} + +/* Function for Chart: '/Synchronization stateflow chart' */ +static void enter_atomic_SEPARATE_FRONT_AND_REAR(void) +{ + /* : sync_state = 4; */ + /* : sync_front = 1; */ + rtB.sync_front = 1U; + + /* : sync_rear = 1; */ + rtB.sync_rear = 1U; + + /* : sync_all = 0; */ + rtB.sync_all = 0U; + + /* : enable_full_sync=0; */ + rtDW.enable_full_sync = 0U; + + /* : enable_rear_sync = 0; */ + rtDW.enable_rear_sync = 0U; + + /* : enable_front_sync = 0; */ + rtDW.enable_front_sync = 0U; + + /* : disable_front_sync = 0; */ + rtDW.disable_front_sync = 0U; + + /* : disable_rear_sync = 0; */ + rtDW.disable_rear_sync = 0U; + + /* : changed_FR_params = 0; */ + rtDW.changed_FR_params = 0U; + + /* : changed_RL_params = 0; */ + rtDW.changed_RL_params = 0U; + + /* : changed_RR_params = 0 */ + rtDW.changed_RR_params = 0U; +} + +/* Function for Chart: '/Synchronization stateflow chart' */ +static void enter_atomic_NO_SYNC(void) +{ + /* : sync_state = 0; */ + /* : sync_front = 0; */ + rtB.sync_front = 0U; + + /* : sync_rear = 0; */ + rtB.sync_rear = 0U; + + /* : sync_all = 0; */ + rtB.sync_all = 0U; + + /* : enable_full_sync=0; */ + rtDW.enable_full_sync = 0U; + + /* : enable_rear_sync = 0; */ + rtDW.enable_rear_sync = 0U; + + /* : enable_front_sync = 0; */ + rtDW.enable_front_sync = 0U; + + /* : disable_front_sync = 0; */ + rtDW.disable_front_sync = 0U; + + /* : disable_rear_sync = 0; */ + rtDW.disable_rear_sync = 0U; + + /* : changed_FR_params = 0; */ + rtDW.changed_FR_params = 0U; + + /* : changed_RL_params = 0; */ + rtDW.changed_RL_params = 0U; + + /* : changed_RR_params = 0; */ + rtDW.changed_RR_params = 0U; +} + /* * Function for Chart: '/Chart' * function idx = find_index(delta) @@ -7980,186 +5607,191 @@ static double find_index(int16_t delta) /* Model step function */ void HVAC_model_step(void) { - double rtb_Divide1_e[9]; + double rtb_Divide1_pb[9]; double rtb_f_lower_upper_bounds[2]; - double Blower_AF_FL; - double Blower_AF_FR; + double rtb_DataTypeConversion7; + double rtb_Divide; double rtb_Divide1; double rtb_Divide10; double rtb_Divide11; double rtb_Divide1_cf; - double rtb_Divide1_ea; - double rtb_Divide1_l5; double rtb_Divide3; - double rtb_Divide3_hk; + double rtb_Divide4; + double rtb_Divide5; + double rtb_Divide6; + double rtb_Divide7; double rtb_Divide8; - double rtb_u8Vtg_FX_plus; - int64_t rtb_IntegralGain; - int64_t rtb_SumI2_b; - int64_t rtb_SumI2_c; - int64_t rtb_SumI2_e; - int64_t rtb_SumI2_je; - int64_t rtb_SumI2_o; + double rtb_Filter_g; + double rtb_NProdOut; + double rtb_NProdOut_c_tmp; + double rtb_Switch; int32_t i; int32_t i_0; int32_t rpm_phys; - int32_t rtb_Gain2; - int32_t rtb_Gain3; - int32_t rtb_Gain4; - int32_t rtb_Gain5; - int32_t rtb_Gain_pl; - int32_t rtb_Switch_fs; - uint32_t rtb_Gain_fc_tmp_tmp; - uint32_t rtb_Gain_fc_tmp_tmp_0; + uint32_t rtb_Saturation1_h_tmp_tmp; + uint32_t rtb_Saturation1_h_tmp_tmp_0; uint32_t rtb_Subtract; - uint32_t rtb_dt_an; - int16_t Vtg_RLU[78]; - int16_t tmp[42]; - int16_t tmp_0[42]; - int16_t rtb_MultiportSwitch1[7]; + uint32_t rtb_dt_nx; + int16_t rtb_MultiportSwitch1_p2[7]; int16_t rtb_uDLookupTable7_g[7]; - int16_t tmp_3[6]; - int16_t Duct_FRL_Tg_DBG[5]; + int16_t tmp_2[6]; int16_t Duct_FRU_Tg_DBG[5]; - int16_t rtb_VectorConcatenate_bp[5]; - int16_t rtb_VectorConcatenate_j[5]; + int16_t Duct_RR_Tg_DBG[5]; + int16_t rtb_VectorConcatenate_gl[5]; + int16_t rtb_VectorConcatenate_ic[5]; int16_t rtb_VectorConcatenate_jn[5]; int16_t rtb_VectorConcatenate_lo[5]; - int16_t rtb_VectorConcatenate_bl[3]; - int16_t rtb_VectorConcatenate_e0[3]; - int16_t rtb_VectorConcatenate_km[3]; - int16_t rtb_VectorConcatenate_lg[3]; - int16_t rtb_out_mt[2]; + int16_t rtb_VectorConcatenate_gu[3]; + int16_t rtb_VectorConcatenate_jb[3]; + int16_t rtb_VectorConcatenate_l0[3]; + int16_t rtb_VectorConcatenate_mx[3]; + int16_t Duct1_R; + int16_t Duct2_R; int16_t Duct3_R; int16_t Duct4_R; + int16_t Duct6_F; int16_t g_assEVA_TG_AMB_F_n; int16_t g_assEVA_TG_AMB_R_h; int16_t rtb_Bias1_h; - int16_t rtb_Bias2; + int16_t rtb_Bias2_n; int16_t rtb_Bias3; int16_t rtb_Bias4; int16_t rtb_Bias5; int16_t rtb_Bias_ct; int16_t rtb_FLU_tg_correct; - int16_t rtb_FLU_tg_correct_b; - int16_t rtb_FLU_tg_correct_de; - int16_t rtb_FLU_tg_correct_g; - int16_t rtb_MultiportSwitch1_h; - int16_t rtb_MultiportSwitch_ae; + int16_t rtb_FLU_tg_correct_a; + int16_t rtb_FLU_tg_correct_i; + int16_t rtb_FLU_tg_correct_l; + int16_t rtb_FLU_tg_correct_me; + int16_t rtb_Merge_h; + int16_t rtb_MultiportSwitch1_oi; + int16_t rtb_MultiportSwitch_fb; + int16_t rtb_MultiportSwitch_i; + int16_t rtb_MultiportSwitch_j; + int16_t rtb_MultiportSwitch_kf; + int16_t rtb_MultiportSwitch_m; + int16_t rtb_MultiportSwitch_m5; + int16_t rtb_MultiportSwitch_nz; int16_t rtb_MultiportSwitch_o; - int16_t rtb_Selector_p; - int16_t rtb_u5FLU_tg_incar; - int16_t rtb_u5FLU_tg_incar_l; - int16_t rtb_u6FLU_tg_amb; - int16_t rtb_u6FLU_tg_amb_hq; - int16_t rtb_y_ar; - int16_t rtb_y_bf; - int16_t rtb_y_ck; - int16_t rtb_y_fe; - int16_t rtb_y_h5; - int16_t rtb_y_lg; - uint16_t tmp_1[45]; - uint16_t tmp_2[42]; - uint16_t rtb_out_c[9]; - uint16_t rtb_out_dwb[9]; - uint16_t rtb_out_f1[9]; - uint16_t rtb_out_ff[9]; - uint16_t rtb_out_fl[9]; - uint16_t rtb_out_fw[9]; + int16_t rtb_MultiportSwitch_pp; + int16_t rtb_X; + int16_t rtb_u5FLU_tg_incar_ce; + int16_t rtb_u5FLU_tg_incar_o; + int16_t rtb_u5FRU_tg_incar; + int16_t rtb_u5R_tg_incar; + int16_t rtb_u6FLU_tg_amb_e; + int16_t rtb_u6FLU_tg_amb_f; + int16_t rtb_u6FLU_tg_amb_hk; + int16_t rtb_u6FLU_tg_amb_i; + int16_t rtb_u6FLU_tg_amb_l; + int16_t rtb_u6FLU_tg_amb_o; + int16_t rtb_u6FRU_tg_amb; + int16_t rtb_u6FRU_tg_amb_h; + uint16_t tmp_0[99]; + uint16_t tmp[45]; + uint16_t tmp_1[42]; + uint16_t rtb_get_valves[9]; + uint16_t rtb_out_a2[9]; + uint16_t rtb_out_j[9]; + uint16_t rtb_out_lf[9]; + uint16_t rtb_out_nf[9]; + uint16_t rtb_out_oz[9]; uint16_t rtb_get_mode[7]; - uint16_t rtb_Gain1_nj[6]; + uint16_t rtb_Gain1_i4[6]; uint16_t rtb_TmpSignalConversionAt1DLookupTable7Inport1[6]; - uint16_t rtb_out_g4[2]; uint16_t Gain; uint16_t Gain1; - uint16_t rtb_out_aq0; - uint16_t rtb_out_ddc; - uint16_t rtb_out_e5; - uint16_t rtb_out_eu; - uint16_t rtb_out_p4; - int8_t rtb_y_b2; - int8_t tmp_4; + uint16_t rtb_Saturation2_a; + uint16_t rtb_out_ee; + uint16_t rtb_out_nq; + uint16_t rtb_out_os; + uint16_t rtb_out_p1; + int8_t rtb_y_c; + int8_t tmp_3; uint8_t rtb_get_modes_for_levels[78]; uint8_t Actuator_pos_percent_Ch1[9]; uint8_t rtb_DataTypeConversion_bh[9]; uint8_t rtb_DataTypeConversion_bq[9]; uint8_t rtb_DataTypeConversion_fb[9]; uint8_t rtb_DataTypeConversion2_ie[6]; - uint8_t Blower_AF_RL; + uint8_t CCU_AC_MAX; + uint8_t CCU_Defrost; uint8_t Comp_Max_RPM_Allowed; uint8_t EN_BATTChiller; uint8_t ShutOffRear_EN; - uint8_t Valve_2_way; - uint8_t rtb_Merge_g; - uint8_t rtb_Merge_hu; - uint8_t rtb_Merge_j; - uint8_t rtb_Merge_m2; + uint8_t fan_speed_out; + uint8_t rtb_DataTypeConversion1_ay; + uint8_t rtb_DataTypeConversion1_h2; + uint8_t rtb_DataTypeConversion3_j0; + uint8_t rtb_Gain2_hu; + uint8_t rtb_Merge_aj; + uint8_t rtb_Merge_gk; + uint8_t rtb_Merge_gw; + uint8_t rtb_Merge_p3; + uint8_t rtb_Saturation4; uint8_t rtb_Saturation4_l; - uint8_t rtb_Saturation9; - uint8_t rtb_Switch3_ed; - uint8_t rtb_Switch_gs; - uint8_t rtb_Switch_m5; + uint8_t rtb_Sum1; + uint8_t rtb_Sum_i1; + uint8_t rtb_Switch3_e; + uint8_t rtb_Switch_db; uint8_t rtb_timer_out; - uint8_t rtb_u_gnq; - bool rtb_LogicalOperator3_i5[9]; - bool rtb_Compare_le[8]; - bool rtb_LogicalOperator3_n1[6]; + uint8_t rtb_u_pc; + bool rtb_LogicalOperator3_nq[9]; + bool rtb_Compare_fe[8]; + bool rtb_LogicalOperator3_k[6]; bool Enable_Comp_PID; - bool eComp_stop; bool guard1; bool guard2; - bool guard3; - bool guard4; - bool rtb_Compare; - bool rtb_Compare_ah; + bool rtb_Compare_af; + bool rtb_Compare_an; bool rtb_Compare_au; - bool rtb_Compare_b; - bool rtb_Compare_bu; - bool rtb_Compare_ck; - bool rtb_Compare_dd; - bool rtb_Compare_dq; - bool rtb_Compare_e; - bool rtb_Compare_e3; - bool rtb_Compare_em; - bool rtb_Compare_eu; - bool rtb_Compare_fr; - bool rtb_Compare_g4; - bool rtb_Compare_gl; - bool rtb_Compare_gs; + bool rtb_Compare_ba; + bool rtb_Compare_bn; + bool rtb_Compare_bq; + bool rtb_Compare_d5; + bool rtb_Compare_dn; + bool rtb_Compare_ec; + bool rtb_Compare_et; + bool rtb_Compare_fq; + bool rtb_Compare_gp; + bool rtb_Compare_gy; bool rtb_Compare_h2; - bool rtb_Compare_i; + bool rtb_Compare_hj; + bool rtb_Compare_hv; bool rtb_Compare_i5; - bool rtb_Compare_j; - bool rtb_Compare_jt; - bool rtb_Compare_kmz; - bool rtb_Compare_kt; - bool rtb_Compare_l; - bool rtb_Compare_lb; - bool rtb_Compare_m; - bool rtb_Compare_n2; - bool rtb_Compare_nq; - bool rtb_Compare_ofn; - bool rtb_Compare_p; - bool rtb_Compare_p1p; - bool rtb_FailCond; - bool rtb_FailCond_fn; - bool rtb_FailCond_gk; - bool rtb_FailCond_h; - bool rtb_FailCond_lt; + bool rtb_Compare_ie; + bool rtb_Compare_ij; + bool rtb_Compare_iy; + bool rtb_Compare_kf; + bool rtb_Compare_m0e; + bool rtb_Compare_mg; + bool rtb_Compare_ni; + bool rtb_Compare_od; + bool rtb_Compare_og; + bool rtb_Compare_oj; + bool rtb_Compare_oo; + bool rtb_Compare_pt; + bool rtb_FailCond_e; + bool rtb_FailCond_fa; + bool rtb_FailCond_hy; + bool rtb_FailCond_jb; + bool rtb_FailCond_k; + bool rtb_FailCond_l; + bool rtb_FailCond_n; bool rtb_LogicalOperator1; bool rtb_LogicalOperator10; bool rtb_LogicalOperator11; - bool rtb_LogicalOperator1_f; - bool rtb_LogicalOperator1_f1; - bool rtb_LogicalOperator1_m2; + bool rtb_LogicalOperator1_dv; bool rtb_LogicalOperator1_n; bool rtb_LogicalOperator3; - bool rtb_LogicalOperator3_nz; - bool rtb_LogicalOperator3_p5; + bool rtb_LogicalOperator3_cz; bool rtb_LogicalOperator4_fo; - bool rtb_LogicalOperator5; bool rtb_LogicalOperator6; + bool rtb_LogicalOperator6_m; bool rtb_LogicalOperator8; + bool rtb_LogicalOperator8_i; + bool rtb_LogicalOperator_fc; + bool rtb_err; /* Gain: '/Gain' incorporates: * DataStoreRead: '/Data Store Read' @@ -8171,100 +5803,6 @@ void HVAC_model_step(void) */ Gain1 = (uint16_t)(10U * rtDW.PWM_rear); - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' - */ - rtb_Divide1 = (double)rtDW.ADC_Data_Model.Sensor_AC_Pressure / 4095.0 * 5.0; - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare = (rtb_Divide1 < 0.1); - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_ah = (rtb_Divide1 > 4.9); - - /* Logic: '/Logical Operator' */ - rtb_FailCond = (rtb_Compare || rtb_Compare_ah); - - /* Logic: '/Logical Operator1' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator1 = (rtb_FailCond && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE >= 3000U)); - - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' - */ - rtb_Divide1_cf = (double)rtDW.ADC_Data_Model.Sensor_Evap_Temp / 4095.0 * 5.0; - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_eu = (rtb_Divide1_cf < 0.1); - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_e3 = (rtb_Divide1_cf > 4.9); - - /* Logic: '/Logical Operator' */ - rtb_FailCond_fn = (rtb_Compare_eu || rtb_Compare_e3); - - /* Logic: '/Logical Operator1' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator1_f1 = (rtb_FailCond_fn && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_g >= 3000U)); - - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' - */ - rtb_Divide1_ea = (double)rtDW.ADC_Data_Model.Sensor_Rear_Evap_Temp / 4095.0 * - 5.0; - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_fr = (rtb_Divide1_ea < 0.1); - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_b = (rtb_Divide1_ea > 4.9); - - /* Logic: '/Logical Operator' */ - rtb_FailCond_gk = (rtb_Compare_fr || rtb_Compare_b); - - /* Logic: '/Logical Operator1' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator1_f = (rtb_FailCond_gk && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_c >= 3000U)); - /* Lookup_n-D: '/g_assEVA_TG_AMB_F' incorporates: * DataStoreRead: '/Data Store Read45' */ @@ -8290,9 +5828,6 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read59' * DataTypeConversion: '/Data Type Conversion' * DataTypeConversion: '/Data Type Conversion3' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' * Gain: '/Gain2' * Gain: '/Gain3' * Lookup_n-D: '/1-D Lookup Table' @@ -8343,8 +5878,8 @@ void HVAC_model_step(void) rtB.Eva_Ctrl = 0U; rtDW.is_COMP_PROTECTION = IN_PROT_LEVEL_0; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* : Logic_Ac_Comp_Protection_Level = 0; */ rtDW.dbg_Logic_Ac_model.Logic_Ac_Comp_Protection_Level = 0U; @@ -8364,15 +5899,15 @@ void HVAC_model_step(void) */ /* : sf_internal_predicateOutput = Pressure_sen < P_Hi_CutOff; */ if (rtDW.AMB > 400) { - rtb_FLU_tg_correct_g = g_assAC_PRESSURE_HYS_HI_ENG_ON[0]; + rtb_FLU_tg_correct_l = g_assAC_PRESSURE_HYS_HI_ENG_ON[0]; } else { - rtb_FLU_tg_correct_g = g_assAC_PRESSURE_HYS_HI_ENG_ON[2]; + rtb_FLU_tg_correct_l = g_assAC_PRESSURE_HYS_HI_ENG_ON[2]; } /* Gain: '/Gain2' incorporates: * Switch: '/Switch' */ - i = 15857 * rtb_FLU_tg_correct_g; + i = 15857 * rtb_FLU_tg_correct_l; if (rtDW.Pressure < ((((uint32_t)i & 8192U) != 0U) && ((((uint32_t)i & 8191U) != 0U) || (i > 0))) + (i >> 14)) { rtDW.is_PRESSURE_MONITOR = IN_PRESSURE_OK; @@ -8433,9 +5968,8 @@ void HVAC_model_step(void) } if ((rtDW.CCU_AC_FRONT != 0) && ((Gain >= (int32_t)rtb_Subtract) && - ((!rtb_LogicalOperator1) && (!rtb_LogicalOperator1_f1) && (rtDW.Eva_F - > 0) && ((rtDW.AMB > g_assAC_CUT_OFF_AMB_F[0]) && - rtDW.Pressure_Condition_table_OK)))) { + ((rtDW.Eva_F > 0) && ((rtDW.AMB > g_assAC_CUT_OFF_AMB_F[0]) && + rtDW.Pressure_Condition_table_OK)))) { rtDW.is_FRONT_CONTOUR = IN_Front_A_C_ON; /* : FRONT_Start_request = true; */ @@ -8450,10 +5984,9 @@ void HVAC_model_step(void) } if ((rtDW.CCU_AC_FRONT == 0) || ((Gain < (int32_t)rtb_Subtract) || - (rtb_LogicalOperator1 || rtb_LogicalOperator1_f1 || (rtDW.Eva_F <= 0) - || ((rtDW.AMB <= g_assAC_CUT_OFF_AMB_F[0]) || ((rtDW.AMB > - g_assAC_CUT_OFF_AMB_F[0]) && (!rtDW.Pressure_Condition_table_OK)))))) - { + ((rtDW.Eva_F <= 0) || ((rtDW.AMB <= g_assAC_CUT_OFF_AMB_F[0]) || + ((rtDW.AMB > g_assAC_CUT_OFF_AMB_F[0]) && + (!rtDW.Pressure_Condition_table_OK)))))) { rtDW.is_FRONT_CONTOUR = IN_Front_A_C_OFF; /* : FRONT_Start_request = false; */ @@ -8469,9 +6002,8 @@ void HVAC_model_step(void) } if ((rtDW.CCU_AC_REAR != 0) && ((Gain1 >= (int32_t)rtb_Subtract) && - ((!rtb_LogicalOperator1) && (!rtb_LogicalOperator1_f) && (rtDW.Eva_R > - 0) && ((rtDW.AMB > g_assAC_CUT_OFF_AMB_F[1]) && - rtDW.Pressure_Condition_table_OK)))) { + ((rtDW.Eva_R > 0) && ((rtDW.AMB > g_assAC_CUT_OFF_AMB_F[1]) && + rtDW.Pressure_Condition_table_OK)))) { rtDW.is_REAR_CONTOUR = IN_Rear_A_C_ON; /* : REAR_Start_request = true; */ @@ -8486,10 +6018,9 @@ void HVAC_model_step(void) } if ((rtDW.CCU_AC_REAR == 0) || ((Gain1 < (int32_t)rtb_Subtract) || - (rtb_LogicalOperator1 || rtb_LogicalOperator1_f || (rtDW.Eva_R <= 0) || - ((rtDW.AMB <= g_assAC_CUT_OFF_AMB_F[1]) || ((rtDW.AMB > - g_assAC_CUT_OFF_AMB_F[1]) && (!rtDW.Pressure_Condition_table_OK)))))) - { + ((rtDW.Eva_R <= 0) || ((rtDW.AMB <= g_assAC_CUT_OFF_AMB_F[1]) || + ((rtDW.AMB > g_assAC_CUT_OFF_AMB_F[1]) && + (!rtDW.Pressure_Condition_table_OK)))))) { rtDW.is_REAR_CONTOUR = IN_Rear_A_C_OFF; /* : REAR_Start_request = false; */ @@ -8500,7 +6031,7 @@ void HVAC_model_step(void) if (rtDW.is_CHILLER_CONTOUR == IN_Chiller_OFF) { /* : sf_internal_predicateOutput = eCompChiller_Req==1 && Pressure_Condition_table_OK == 1 && Error_PressSen == 0 && BCM_T15_Stat==1; */ if ((rtDW.eCompChiller_Req == 1) && rtDW.Pressure_Condition_table_OK && - (!rtb_LogicalOperator1) && (rtDW.BCM_T15_Stat == 1)) { + (rtDW.BCM_T15_Stat == 1)) { rtDW.is_CHILLER_CONTOUR = IN_Chiller_ON; /* : Chiller_Start_request = true; */ @@ -8510,7 +6041,7 @@ void HVAC_model_step(void) /* case IN_Chiller_ON: */ /* : sf_internal_predicateOutput = eCompChiller_Req==0 || Pressure_Condition_table_OK == 0 || Error_PressSen == 1; */ } else if ((rtDW.eCompChiller_Req == 0) || - (!rtDW.Pressure_Condition_table_OK) || rtb_LogicalOperator1) { + (!rtDW.Pressure_Condition_table_OK)) { rtDW.is_CHILLER_CONTOUR = IN_Chiller_OFF; /* : Chiller_Start_request = false; */ @@ -8520,8 +6051,8 @@ void HVAC_model_step(void) E_COMP_MANAGER(&Enable_Comp_PID, &g_assEVA_TG_AMB_F_n, &g_assEVA_TG_AMB_R_h); switch (rtDW.is_COMP_PROTECTION) { case IN_PROT_LEVEL_0: - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ rtDW.dbg_Logic_Ac_model.Logic_Ac_Comp_Protection_Level = 0U; Comp_Max_RPM_Allowed = 170U; @@ -8531,8 +6062,8 @@ void HVAC_model_step(void) if ((rtDW.eComp_InputC >= 40960) || (rtDW.eComp_Temp >= 1100)) { rtDW.is_COMP_PROTECTION = IN_PROT_LEVEL_1; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* : Logic_Ac_Comp_Protection_Level = 1; */ rtDW.dbg_Logic_Ac_model.Logic_Ac_Comp_Protection_Level = 1U; @@ -8546,8 +6077,8 @@ void HVAC_model_step(void) break; case IN_PROT_LEVEL_1: - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ rtDW.dbg_Logic_Ac_model.Logic_Ac_Comp_Protection_Level = 1U; Comp_Max_RPM_Allowed = 140U; @@ -8557,8 +6088,8 @@ void HVAC_model_step(void) if ((rtDW.eComp_InputC < 39680) && (rtDW.eComp_Temp < 1090)) { rtDW.is_COMP_PROTECTION = IN_PROT_LEVEL_0; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* : Logic_Ac_Comp_Protection_Level = 0; */ rtDW.dbg_Logic_Ac_model.Logic_Ac_Comp_Protection_Level = 0U; @@ -8573,8 +6104,8 @@ void HVAC_model_step(void) } else if ((rtDW.eComp_InputC >= 46080) || (rtDW.eComp_Temp >= 1200)) { rtDW.is_COMP_PROTECTION = IN_PROT_LEVEL_2; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* : Logic_Ac_Comp_Protection_Level = 2; */ rtDW.dbg_Logic_Ac_model.Logic_Ac_Comp_Protection_Level = 2U; @@ -8588,8 +6119,8 @@ void HVAC_model_step(void) break; default: - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* case IN_PROT_LEVEL_2: */ rtDW.dbg_Logic_Ac_model.Logic_Ac_Comp_Protection_Level = 2U; @@ -8600,8 +6131,8 @@ void HVAC_model_step(void) if ((rtDW.eComp_InputC < 44800) && (rtDW.eComp_Temp < 1190)) { rtDW.is_COMP_PROTECTION = IN_PROT_LEVEL_1; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* : Logic_Ac_Comp_Protection_Level = 1; */ rtDW.dbg_Logic_Ac_model.Logic_Ac_Comp_Protection_Level = 1U; @@ -8623,8 +6154,8 @@ void HVAC_model_step(void) */ EN_BATTChiller = rtB.Chiller_eTXV; - /* MATLAB Function: '/MATLAB Function1' incorporates: - * DataStoreRead: '/Data Store Read' + /* MATLAB Function: '/MATLAB Function1' incorporates: + * DataStoreRead: '/Data Store Read' * MATLAB Function: '/MATLAB Function' */ /* : if isempty(t_start) */ @@ -8637,8 +6168,8 @@ void HVAC_model_step(void) } /* : if Enable_Comp_PID == 0 */ - rtb_LogicalOperator1_n = !Enable_Comp_PID; - if (rtb_LogicalOperator1_n) { + rtb_LogicalOperator3 = !Enable_Comp_PID; + if (rtb_LogicalOperator3) { /* : t_start = t_now; */ rtDW.t_start = rtDW.t_now; @@ -8674,121 +6205,170 @@ void HVAC_model_step(void) } } - /* End of MATLAB Function: '/MATLAB Function1' */ + /* End of MATLAB Function: '/MATLAB Function1' */ - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read32' - * Gain: '/Gain2' - * RelationalOperator: '/Compare' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read32' + * Gain: '/Gain2' + * RelationalOperator: '/Compare' */ if (rtDW.Engine_speed > 500.0) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' */ if (rtb_timer_out <= 0) { Comp_Max_RPM_Allowed = 120U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } else { - /* Gain: '/Gain2' incorporates: - * Constant: '/Constant4' + /* Gain: '/Gain2' incorporates: + * Constant: '/Constant4' */ rtb_Subtract = 41943U * g_usCMP_MAX_ENG_OFF; Comp_Max_RPM_Allowed = (uint8_t)((uint32_t)((rtb_Subtract & 1048576U) != 0U) + (rtb_Subtract >> 21)); } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ /* Sum: '/Sum' incorporates: * DataStoreWrite: '/Data Store Write14' */ g_assEVA_TG_AMB_F_n += rtB.Comp_Target_Temp; - /* Sum: '/Sum' incorporates: + /* Sum: '/Sum' incorporates: * DataStoreWrite: '/Data Store Write14' */ - rtb_Selector_p = (int16_t)(g_assEVA_TG_AMB_F_n - rtB.Comp_Feedback_Temp); + rtb_Merge_h = (int16_t)(rtB.Comp_Feedback_Temp - g_assEVA_TG_AMB_F_n); - /* DiscreteIntegrator: '/Integrator' */ + /* DiscreteIntegrator: '/Integrator' */ if (Enable_Comp_PID || (rtDW.Integrator_PrevResetState != 0)) { - rtDW.Integrator_DSTATE_l = 0; + rtDW.Integrator_DSTATE = 0.0; } - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' - * Gain: '/Proportional Gain' + /* DiscreteIntegrator: '/Filter' */ + if (Enable_Comp_PID || (rtDW.Filter_PrevResetState != 0)) { + rtDW.Filter_DSTATE = 0.0; + } + + /* Product: '/NProd Out' incorporates: + * Constant: '/Constant8' + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion' + * DiscreteIntegrator: '/Filter' + * Product: '/DProd Out' + * Sum: '/SumD' */ - rtb_SumI2_e = (((int64_t)(-2 * rtb_Selector_p) << 16) + - rtDW.Integrator_DSTATE_l) >> 16; - if (rtb_SumI2_e < 0LL) { - rtb_SumI2_e = 0LL; - } else if (rtb_SumI2_e > 255LL) { - rtb_SumI2_e = 255LL; + rtb_NProdOut = ((double)(rtb_Merge_h * g_assPID_COMPRESSOR[2]) - + rtDW.Filter_DSTATE) * (double)g_assPID_COMPRESSOR[3]; + + /* Sum: '/Sum' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion' + * DiscreteIntegrator: '/Integrator' + * Product: '/PProd Out' + */ + rtb_Divide1_cf = ((double)(rtb_Merge_h * g_assPID_COMPRESSOR[0]) + + rtDW.Integrator_DSTATE) + rtb_NProdOut; + if (rtb_Divide1_cf < 256.0) { + if (rtb_Divide1_cf >= 0.0) { + rtb_Saturation4 = (uint8_t)rtb_Divide1_cf; + } else { + rtb_Saturation4 = 0U; + } + } else { + rtb_Saturation4 = UINT8_MAX; } - /* Switch: '/Switch3' incorporates: - * Constant: '/Constant3' - * Constant: '/Constant5' + /* Switch: '/Switch3' incorporates: + * Constant: '/Constant3' + * Constant: '/Constant5' */ if (Enable_Comp_PID) { - rtb_Switch3_ed = 16U; + rtb_Switch3_e = 16U; } else { - rtb_Switch3_ed = 0U; + rtb_Switch3_e = 0U; } - /* End of Switch: '/Switch3' */ + /* End of Switch: '/Switch3' */ - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Sum: '/Sum' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Sum: '/Sum' + * Switch: '/Switch' */ - if ((uint8_t)rtb_SumI2_e > Comp_Max_RPM_Allowed) { - rtb_timer_out = Comp_Max_RPM_Allowed; - } else if ((uint8_t)rtb_SumI2_e < rtb_Switch3_ed) { - /* Switch: '/Switch' */ - rtb_timer_out = rtb_Switch3_ed; + if (rtb_Saturation4 > Comp_Max_RPM_Allowed) { + rtb_Sum1 = Comp_Max_RPM_Allowed; + } else if (rtb_Saturation4 < rtb_Switch3_e) { + /* Switch: '/Switch' */ + rtb_Sum1 = rtb_Switch3_e; } else { - rtb_timer_out = (uint8_t)rtb_SumI2_e; + rtb_Sum1 = rtb_Saturation4; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* RateLimiter: '/Rate Limiter' */ - i = rtb_timer_out - rtDW.PrevY; - if (i > 2) { - rtb_timer_out = (uint8_t)(rtDW.PrevY + 2); - } else if (i < -2) { - rtb_timer_out = (uint8_t)(rtDW.PrevY - 2); + /* RateLimiter: '/Rate Limiter' */ + rtb_FLU_tg_correct_l = g_assPID_COMPRESSOR[4]; + if (g_assPID_COMPRESSOR[4] < 0) { + rtb_FLU_tg_correct_l = 0; + } else if (g_assPID_COMPRESSOR[4] > 255) { + rtb_FLU_tg_correct_l = 255; } - rtDW.PrevY = rtb_timer_out; + if (fabs(-(double)g_assPID_COMPRESSOR[5]) >= 0.5) { + i = (int32_t)floor(-(double)g_assPID_COMPRESSOR[5] + 0.5); + } else { + i = 0; + } - /* End of RateLimiter: '/Rate Limiter' */ + if (i < 256) { + if (i >= 0) { + rtb_timer_out = (uint8_t)i; + } else { + rtb_timer_out = 0U; + } + } else { + rtb_timer_out = UINT8_MAX; + } - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant' + i = rtb_Sum1 - rtDW.PrevY; + if (i > (uint8_t)rtb_FLU_tg_correct_l) { + rtb_Sum_i1 = (uint8_t)(rtDW.PrevY + (uint8_t)rtb_FLU_tg_correct_l); + } else if (i < -rtb_timer_out) { + rtb_Sum_i1 = (uint8_t)(rtDW.PrevY - rtb_timer_out); + } else { + rtb_Sum_i1 = rtb_Sum1; + } + + rtDW.PrevY = rtb_Sum_i1; + + /* End of RateLimiter: '/Rate Limiter' */ + + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' */ if (rtB.Chiller_Only_Flag > 0.0) { rtb_timer_out = g_ucAC_EXTRA_RPM; + } else { + rtb_timer_out = rtb_Sum_i1; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* Gain: '/Gain1' incorporates: - * Constant: '/Constant2' + /* Gain: '/Gain1' incorporates: + * Constant: '/Constant2' */ for (i = 0; i < 6; i++) { - rtb_Gain1_nj[i] = (uint16_t)((41943U * g_ausCMP_RPM_RESONANCE[i]) >> 21); + rtb_Gain1_i4[i] = (uint16_t)((41943U * g_ausCMP_RPM_RESONANCE[i]) >> 21); } - /* End of Gain: '/Gain1' */ + /* End of Gain: '/Gain1' */ - /* MATLAB Function: '/MATLAB Function' */ + /* MATLAB Function: '/MATLAB Function' */ /* : rpm_phys = double(rpm_in); */ rpm_phys = rtb_timer_out; @@ -8799,42 +6379,42 @@ void HVAC_model_step(void) /* : low3 = double(res_cal(5)); */ /* : high3 = double(res_cal(6)); */ /* : if (rpm_phys >= low1) && (rpm_phys <= high1) */ - if ((rtb_timer_out >= rtb_Gain1_nj[0]) && (rtb_timer_out <= rtb_Gain1_nj[1])) + if ((rtb_timer_out >= rtb_Gain1_i4[0]) && (rtb_timer_out <= rtb_Gain1_i4[1])) { /* : if (rpm_phys - low1) < (high1 - rpm_phys) */ - if (rtb_timer_out - rtb_Gain1_nj[0] < rtb_Gain1_nj[1] - rtb_timer_out) { + if (rtb_timer_out - rtb_Gain1_i4[0] < rtb_Gain1_i4[1] - rtb_timer_out) { /* : rpm_phys = low1; */ - rpm_phys = rtb_Gain1_nj[0]; + rpm_phys = rtb_Gain1_i4[0]; } else { /* : else */ /* : rpm_phys = high1; */ - rpm_phys = rtb_Gain1_nj[1]; + rpm_phys = rtb_Gain1_i4[1]; } } /* : if (rpm_phys >= low2) && (rpm_phys <= high2) */ - if ((rpm_phys >= rtb_Gain1_nj[2]) && (rpm_phys <= rtb_Gain1_nj[3])) { + if ((rpm_phys >= rtb_Gain1_i4[2]) && (rpm_phys <= rtb_Gain1_i4[3])) { /* : if (rpm_phys - low2) < (high2 - rpm_phys) */ - if (rpm_phys - rtb_Gain1_nj[2] < rtb_Gain1_nj[3] - rpm_phys) { + if (rpm_phys - rtb_Gain1_i4[2] < rtb_Gain1_i4[3] - rpm_phys) { /* : rpm_phys = low2; */ - rpm_phys = rtb_Gain1_nj[2]; + rpm_phys = rtb_Gain1_i4[2]; } else { /* : else */ /* : rpm_phys = high2; */ - rpm_phys = rtb_Gain1_nj[3]; + rpm_phys = rtb_Gain1_i4[3]; } } /* : if (rpm_phys >= low3) && (rpm_phys <= high3) */ - if ((rpm_phys >= rtb_Gain1_nj[4]) && (rpm_phys <= rtb_Gain1_nj[5])) { + if ((rpm_phys >= rtb_Gain1_i4[4]) && (rpm_phys <= rtb_Gain1_i4[5])) { /* : if (rpm_phys - low3) < (high3 - rpm_phys) */ - if (rpm_phys - rtb_Gain1_nj[4] < rtb_Gain1_nj[5] - rpm_phys) { + if (rpm_phys - rtb_Gain1_i4[4] < rtb_Gain1_i4[5] - rpm_phys) { /* : rpm_phys = low3; */ - rpm_phys = rtb_Gain1_nj[4]; + rpm_phys = rtb_Gain1_i4[4]; } else { /* : else */ /* : rpm_phys = high3; */ - rpm_phys = rtb_Gain1_nj[5]; + rpm_phys = rtb_Gain1_i4[5]; } } @@ -8849,50 +6429,37 @@ void HVAC_model_step(void) * Constant: '/Constant' * DataStoreRead: '/Data Store Read31' * DataStoreRead: '/Data Store Read32' - * DataStoreWrite: '/Data Store Write25' - * DataTypeConversion: '/Data Type Conversion' * Lookup_n-D: '/Fan_Speed_By_Pressure' * RelationalOperator: '/Compare' */ /* : fan_speed_out = uint8(0); */ - Valve_2_way = 0U; + fan_speed_out = 0U; /* : comp_emergency_stop = false; */ - eComp_stop = false; - /* : if (comp_state ~= 1) */ - if (!rtb_LogicalOperator1_n) { + if ((!rtb_LogicalOperator3) && (rtDW.Pressure > g_assPRESSURE_TO_FAN_X[0])) { /* : if pressure_failed */ - if (rtb_LogicalOperator1) { - /* : fan_speed_out = uint8(100); */ - Valve_2_way = 100U; - - /* : comp_emergency_stop = true; */ - eComp_stop = true; - - /* : if pressure_val <= g_assPRESSURE_TO_FAN_X */ - } else if (rtDW.Pressure > g_assPRESSURE_TO_FAN_X[0]) { - /* : fan_speed_out = uint8(fan_speed_table); */ - rtb_FLU_tg_correct_g = look1_is16lu64n32tu8Ds16Is16_binlcs(rtDW.Pressure, - &g_assPRESSURE_TO_FAN_X[0], &g_aucPRESSURE_TO_FAN_Y[0], 6U); - if (rtb_FLU_tg_correct_g < 0) { - rtb_FLU_tg_correct_g = 0; - } else if (rtb_FLU_tg_correct_g > 255) { - rtb_FLU_tg_correct_g = 255; - } - - Valve_2_way = (uint8_t)rtb_FLU_tg_correct_g; - - /* : if engine_on == false */ - if ((rtDW.Engine_speed <= 500.0) && (rtb_FLU_tg_correct_g > - g_ucFAN_MAX_ENG_OFF)) { - /* : if(fan_speed_out>g_ucFAN_MAX_ENG_OFF) */ - /* : fan_speed_out = uint8(g_ucFAN_MAX_ENG_OFF); */ - Valve_2_way = g_ucFAN_MAX_ENG_OFF; - } - } else { - /* : fan_speed_out = uint8(0); */ + /* : if pressure_val <= g_assPRESSURE_TO_FAN_X */ + /* : fan_speed_out = uint8(fan_speed_table); */ + rtb_FLU_tg_correct_l = look1_is16lu64n32tu8Ds16Is16_binlcs(rtDW.Pressure, + &g_assPRESSURE_TO_FAN_X[0], &g_aucPRESSURE_TO_FAN_Y[0], 6U); + if (rtb_FLU_tg_correct_l < 0) { + rtb_FLU_tg_correct_l = 0; + } else if (rtb_FLU_tg_correct_l > 255) { + rtb_FLU_tg_correct_l = 255; } + + fan_speed_out = (uint8_t)rtb_FLU_tg_correct_l; + + /* : if engine_on == false */ + if ((rtDW.Engine_speed <= 500.0) && (rtb_FLU_tg_correct_l > + g_ucFAN_MAX_ENG_OFF)) { + /* : if(fan_speed_out>g_ucFAN_MAX_ENG_OFF) */ + /* : fan_speed_out = uint8(g_ucFAN_MAX_ENG_OFF); */ + fan_speed_out = g_ucFAN_MAX_ENG_OFF; + } + } else { + /* : fan_speed_out = uint8(0); */ } /* DataTypeConversion: '/Data Type Conversion1' incorporates: @@ -8905,116 +6472,122 @@ void HVAC_model_step(void) */ ShutOffRear_EN = rtB.REAR_eTXV; - /* Switch: '/Switch4' */ + /* Switch: '/Switch4' */ if (rtB.Chiller_Only_Flag > 0.0) { - /* BusCreator: '/Bus Creator' incorporates: - * Constant: '/Constant' - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * Constant: '/Constant' + * DataStoreWrite: '/Data Store Write' */ rtDW.dbg_Logic_Ac_model.Logic_Ac_Comp_LimitRpm_ro = g_ucAC_EXTRA_RPM; } else { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ rtDW.dbg_Logic_Ac_model.Logic_Ac_Comp_LimitRpm_ro = Comp_Max_RPM_Allowed; } - /* End of Switch: '/Switch4' */ + /* End of Switch: '/Switch4' */ - /* Switch: '/Switch' incorporates: - * RelationalOperator: '/u_GTE_up' - * Sum: '/Sum' + /* Switch: '/Switch' incorporates: + * RelationalOperator: '/u_GTE_up' + * Sum: '/Sum' */ - if ((uint8_t)rtb_SumI2_e < Comp_Max_RPM_Allowed) { - /* Switch: '/Switch1' incorporates: - * RelationalOperator: '/u_GT_lo' + if (rtb_Saturation4 < Comp_Max_RPM_Allowed) { + /* Switch: '/Switch1' incorporates: + * RelationalOperator: '/u_GT_lo' */ - if ((uint8_t)rtb_SumI2_e > rtb_Switch3_ed) { - Comp_Max_RPM_Allowed = (uint8_t)rtb_SumI2_e; + if (rtb_Saturation4 > rtb_Switch3_e) { + Comp_Max_RPM_Allowed = rtb_Saturation4; } else { - Comp_Max_RPM_Allowed = rtb_Switch3_ed; + Comp_Max_RPM_Allowed = rtb_Switch3_e; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Sum: '/Diff' incorporates: - * Sum: '/Sum' + /* Sum: '/Diff' incorporates: + * Sum: '/Sum' */ - Comp_Max_RPM_Allowed = (uint8_t)((uint8_t)rtb_SumI2_e - Comp_Max_RPM_Allowed); + Comp_Max_RPM_Allowed = (uint8_t)(rtb_Saturation4 - Comp_Max_RPM_Allowed); - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant2' - * RelationalOperator: '/fix for DT propagation issue' + /* RelationalOperator: '/fix for DT propagation issue' */ + rtb_LogicalOperator_fc = (Comp_Max_RPM_Allowed > 0); + + /* Sum: '/SumI3' */ + i = rtb_Sum_i1 - rtb_Sum1; + if (i < 0) { + i = 0; + } + + /* Sum: '/SumI1' incorporates: + * Constant: '/Constant7' + * DataStoreWrite: '/Data Store Write14' + * DataTypeConversion: '/Data Type Conversion' + * Product: '/IProd Out' + * Sum: '/SumI3' + * Sum: '/Sum' */ - if (Comp_Max_RPM_Allowed > 0) { - rtb_y_b2 = 1; + rtb_DataTypeConversion7 = (double)(int16_t)(rtB.Comp_Feedback_Temp - + g_assEVA_TG_AMB_F_n) * ((double)g_assPID_COMPRESSOR[1] / 100.0) + (double)i; + + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant2' + */ + if (rtb_LogicalOperator_fc) { + rtb_y_c = 1; } else { - rtb_y_b2 = -1; + rtb_y_c = -1; } - /* End of Switch: '/Switch1' */ - - /* Gain: '/Integral Gain' incorporates: - * Gain: '/Gain' + /* Switch: '/Switch2' incorporates: + * Constant: '/Clamping_zero' + * Constant: '/Constant3' + * Constant: '/Constant4' + * RelationalOperator: '/fix for DT propagation issue1' */ - rtb_Gain_pl = -26214 * rtb_Selector_p; - - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant3' - * Constant: '/Constant4' - * Gain: '/Gain' - * RelationalOperator: '/fix for DT propagation issue1' - */ - if (rtb_Gain_pl > 0) { - tmp_4 = 1; + if (rtb_DataTypeConversion7 > 0.0) { + tmp_3 = 1; } else { - tmp_4 = -1; + tmp_3 = -1; } - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - * Gain: '/Gain' - * Logic: '/AND3' - * RelationalOperator: '/Equal1' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch2' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + * Logic: '/AND3' + * RelationalOperator: '/Equal1' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch1' + * Switch: '/Switch2' */ - if ((Comp_Max_RPM_Allowed != 0) && (rtb_y_b2 == tmp_4)) { - rtb_Switch_fs = 0; + if ((Comp_Max_RPM_Allowed != 0) && (rtb_y_c == tmp_3)) { + rtb_Switch = 0.0; } else { - rtb_Switch_fs = rtb_Gain_pl; + rtb_Switch = rtb_DataTypeConversion7; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ /* RelationalOperator: '/Compare' incorporates: * Constant: '/Constant' * DataStoreRead: '/Data Store Read12' */ - rtb_LogicalOperator5 = (rtDW.CAN_LoHi_Front == 11); - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read12' - */ - rtb_Compare_dq = (rtDW.CAN_LoHi_Front == 22); + rtb_Compare_i5 = (rtDW.CAN_LoHi_Front == 11); /* Chart: '/13,1,3,15 Valve control' incorporates: - * DataStoreRead: '/Data Store Read11' + * DataStoreRead: '/Data Store Read15' * DataStoreRead: '/Data Store Read34' - * DataStoreRead: '/Data Store Read35' * DataStoreRead: '/Data Store Read36' + * DataStoreWrite: '/Data Store Write1' */ if (rtDW.is_active_c775_HVAC_model == 0U) { rtDW.is_active_c775_HVAC_model = 1U; rtDW.is_ThreeWay_Logic = IN_Wait_3W; /* : Cmd_3Way = 2; */ - rtB.Cmd_3Way = 2U; + rtb_Sum1 = 2U; /* : Cmd_FrontTemp = -1; */ /* : Cmd_RearTemp_3W = -1; */ @@ -9027,175 +6600,40 @@ void HVAC_model_step(void) /* : Cmd_RearTemp_2W = -1; */ rtDW.Cmd_RearTemp_2W = -1.0; } else { - switch (rtDW.is_ThreeWay_Logic) { - case IN_Entry_3W: - /* : sf_internal_predicateOutput = D_tg_RR > g_assTHREEWAY_DUCT_TGT_R(1) && LO_MODE_FULL == false && (t_now - t_start_1) > 60000 && LO_HI_MODE_RR ~= 2 && HI_MODE_FRONT ==false; */ - rtb_dt_an = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start_1; - rtb_Subtract = rtb_dt_an; - if (rtb_dt_an > rtDW.t_now) { - rtb_Subtract = 0U; - } + if (rtDW.is_ThreeWay_Logic == IN_Entry_3W) { + rtb_Sum1 = 1U; - rtb_LogicalOperator1_n = !rtb_Compare_dq; - if ((rtDW.Duct_RR_Tg > g_assTHREEWAY_DUCT_TGT_R[0]) && - (rtb_LogicalOperator1_n && (rtb_Subtract > 60000U) && - (rtDW.LO_HI_MODE_RR != 2) && (!rtb_LogicalOperator5))) { - rtDW.is_ThreeWay_Logic = IN_ExitSeq_3W; - - /* : Cmd_3Way = 1; */ - rtB.Cmd_3Way = 1U; - - /* : Cmd_FrontTemp = 0; */ - /* : Cmd_RearTemp_3W = 0; */ - rtDW.Cmd_RearTemp_3W = 0.0; - - /* : t_start_2 = t_now; */ - rtDW.t_start_2 = rtDW.t_now; - } else { - /* : sf_internal_predicateOutput = (D_tg_RR > g_assTHREEWAY_DUCT_TGT_R(1) && LO_MODE_FULL == false && ECT>g_ssTHREEWAY_WATER && (t_now - t_start_1) <= 60000) || (LO_HI_MODE_RR == 2 && HI_MODE_FRONT == true); */ - if (rtDW.Duct_RR_Tg > g_assTHREEWAY_DUCT_TGT_R[0]) { - if (rtb_dt_an > rtDW.t_now) { - rtb_dt_an = 0U; - } - - if (rtb_LogicalOperator1_n && (rtDW.ECT > g_ssTHREEWAY_WATER) && - (rtb_dt_an <= 60000U)) { - rtb_LogicalOperator5 = true; - } else { - rtb_LogicalOperator5 = ((rtDW.LO_HI_MODE_RR == 2) && - rtb_LogicalOperator5); - } - } else { - rtb_LogicalOperator5 = ((rtDW.LO_HI_MODE_RR == 2) && - rtb_LogicalOperator5); - } - - if (rtb_LogicalOperator5) { - rtDW.is_ThreeWay_Logic = IN_Wait_3W; - - /* : Cmd_3Way = 2; */ - rtB.Cmd_3Way = 2U; - - /* : Cmd_FrontTemp = -1; */ - /* : Cmd_RearTemp_3W = -1; */ - rtDW.Cmd_RearTemp_3W = -1.0; - } - } - break; - - case IN_ExitSeq_3W: - /* : sf_internal_predicateOutput = (t_now - t_start_2) >= 3000 || LO_HI_MODE_RR == 2; */ - rtb_Subtract = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start_2; - if (rtb_Subtract > rtDW.t_now) { - rtb_Subtract = 0U; - } - - if ((rtb_Subtract >= 3000U) || (rtDW.LO_HI_MODE_RR == 2)) { - /* : Cmd_FrontTemp = -1; */ - /* : Cmd_RearTemp_3W = -1 */ + /* : sf_internal_predicateOutput = D_tg_RR > g_assTHREEWAY_DUCT_TGT_R(1) && LO_MODE_FULL == false && ECT>g_ssTHREEWAY_WATER; */ + if ((rtDW.Duct_RR_Tg > g_assTHREEWAY_DUCT_TGT_R[0]) && ((!rtb_Compare_i5) && + (rtDW.ECT > g_ssTHREEWAY_WATER))) { rtDW.is_ThreeWay_Logic = IN_Wait_3W; /* : Cmd_3Way = 2; */ - rtB.Cmd_3Way = 2U; + rtb_Sum1 = 2U; /* : Cmd_FrontTemp = -1; */ /* : Cmd_RearTemp_3W = -1; */ rtDW.Cmd_RearTemp_3W = -1.0; - } else { - /* : Cmd_3Way = 1; */ - rtB.Cmd_3Way = 1U; - - /* : Cmd_FrontTemp = 0; */ - /* : Cmd_RearTemp_3W = 0; */ - rtDW.Cmd_RearTemp_3W = 0.0; - - /* : t_start_2 = t_now; */ - rtDW.t_start_2 = rtDW.t_now; } - break; - - default: + } else { /* case IN_Wait_3W: */ - /* : sf_internal_predicateOutput = (D_tg_RR <= g_assTHREEWAY_DUCT_TGT_R(2) || LO_MODE_FULL == true || ECT<=g_ssTHREEWAY_WATER)&& (LO_HI_MODE_RR ~= 2 || HI_MODE_FRONT ==false); */ - if ((rtDW.Duct_RR_Tg <= g_assTHREEWAY_DUCT_TGT_R[1]) || (rtb_Compare_dq || - (rtDW.ECT <= g_ssTHREEWAY_WATER))) { - rtb_LogicalOperator5 = ((rtDW.LO_HI_MODE_RR != 2) || - (!rtb_LogicalOperator5)); - } else { - rtb_LogicalOperator5 = false; - } + rtb_Sum1 = 2U; - if (rtb_LogicalOperator5) { + /* : sf_internal_predicateOutput = D_tg_RR <= g_assTHREEWAY_DUCT_TGT_R(2) || LO_MODE_FULL == true || ECT<=g_ssTHREEWAY_WATER; */ + if ((rtDW.Duct_RR_Tg <= g_assTHREEWAY_DUCT_TGT_R[1]) || (rtb_Compare_i5 || + (rtDW.ECT <= g_ssTHREEWAY_WATER))) { rtDW.is_ThreeWay_Logic = IN_Entry_3W; /* : Cmd_3Way = 1; */ - rtB.Cmd_3Way = 1U; + rtb_Sum1 = 1U; /* : t_start_1 = t_now; */ - rtDW.t_start_1 = rtDW.t_now; } - break; } - switch (rtDW.is_TwoWay_Logic) { - case IN_Entry_2W: - /* : sf_internal_predicateOutput = D_tg_RR > g_assTWOWAY_REAR_DUCTTGT_R(1) && (t_now - t_start_3) > 60000 && LO_HI_MODE_RR ~= 2; */ - rtb_Subtract = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start_3; - if (rtb_Subtract > rtDW.t_now) { - rtb_Subtract = 0U; - } - - if ((rtDW.Duct_RR_Tg > g_assTWOWAY_REAR_DUCTTGT_R[0]) && ((rtb_Subtract > - 60000U) && (rtDW.LO_HI_MODE_RR != 2))) { - /* : Cmd_RearTemp_2W = -1; */ - rtDW.is_TwoWay_Logic = IN_ExitSeq_2W; - - /* : Cmd_2Way = 0; */ - rtB.Cmd_2Way = 0U; - - /* : Cmd_RearTemp_2W = 0; */ - rtDW.Cmd_RearTemp_2W = 0.0; - - /* : t_start_4 = t_now; */ - rtDW.t_start_4 = rtDW.t_now; - } else { - /* : sf_internal_predicateOutput = (D_tg_RR > g_assTWOWAY_REAR_DUCTTGT_R(1) && (t_now - t_start_3) <= 60000) || LO_HI_MODE_RR == 2; */ - if (rtDW.Duct_RR_Tg > g_assTWOWAY_REAR_DUCTTGT_R[0]) { - rtb_Subtract = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start_3; - if (rtb_Subtract > rtDW.t_now) { - rtb_Subtract = 0U; - } - - if (rtb_Subtract <= 60000U) { - rtb_LogicalOperator5 = true; - } else { - rtb_LogicalOperator5 = (rtDW.LO_HI_MODE_RR == 2); - } - } else { - rtb_LogicalOperator5 = (rtDW.LO_HI_MODE_RR == 2); - } - - if (rtb_LogicalOperator5) { - /* : Cmd_RearTemp_2W = -1; */ - rtDW.is_TwoWay_Logic = IN_Wait_2W; - - /* : Cmd_2Way = 1; */ - rtB.Cmd_2Way = 1U; - - /* : Cmd_RearTemp_2W = -1; */ - rtDW.Cmd_RearTemp_2W = -1.0; - } - } - break; - - case IN_ExitSeq_2W: - /* : sf_internal_predicateOutput = (t_now - t_start_4) >= 3000 || LO_HI_MODE_RR == 2; */ - rtb_Subtract = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start_4; - if (rtb_Subtract > rtDW.t_now) { - rtb_Subtract = 0U; - } - - if ((rtb_Subtract >= 3000U) || (rtDW.LO_HI_MODE_RR == 2)) { + if (rtDW.is_TwoWay_Logic == IN_Entry_2W) { + /* : sf_internal_predicateOutput = D_tg_RR > g_assTWOWAY_REAR_DUCTTGT_R(1); */ + if (rtDW.Duct_RR_Tg > g_assTWOWAY_REAR_DUCTTGT_R[0]) { /* : Cmd_RearTemp_2W = -1; */ rtDW.is_TwoWay_Logic = IN_Wait_2W; @@ -9205,38 +6643,31 @@ void HVAC_model_step(void) /* : Cmd_RearTemp_2W = -1; */ rtDW.Cmd_RearTemp_2W = -1.0; } - break; - default: /* case IN_Wait_2W: */ - /* : sf_internal_predicateOutput = D_tg_RR <= g_assTWOWAY_REAR_DUCTTGT_R(2) && LO_HI_MODE_RR ~= 2; */ - if ((rtDW.Duct_RR_Tg <= g_assTWOWAY_REAR_DUCTTGT_R[1]) && - (rtDW.LO_HI_MODE_RR != 2)) { - rtDW.is_TwoWay_Logic = IN_Entry_2W; + /* : sf_internal_predicateOutput = D_tg_RR <= g_assTWOWAY_REAR_DUCTTGT_R(2); */ + } else if (rtDW.Duct_RR_Tg <= g_assTWOWAY_REAR_DUCTTGT_R[1]) { + rtDW.is_TwoWay_Logic = IN_Entry_2W; - /* : Cmd_2Way = 0; */ - rtB.Cmd_2Way = 0U; + /* : Cmd_2Way = 0; */ + rtB.Cmd_2Way = 0U; - /* : t_start_3 = t_now; */ - rtDW.t_start_3 = rtDW.t_now; - - /* : if RL_Seat_Occupied == 0 */ - if (rtDW.SeatOccupied == 0) { - /* : Cmd_RearTemp_2W = 10; */ - rtDW.Cmd_RearTemp_2W = 10.0; - } else { - /* : else */ - /* : Cmd_RearTemp_2W = 10; */ - rtDW.Cmd_RearTemp_2W = 10.0; - } + /* : t_start_3 = t_now; */ + /* : if RL_Seat_Occupied == 0 */ + if (rtDW.SeatOccupied == 0) { + /* : Cmd_RearTemp_2W = 10; */ + rtDW.Cmd_RearTemp_2W = 10.0; } else { - /* : Cmd_2Way = 1; */ - rtB.Cmd_2Way = 1U; - - /* : Cmd_RearTemp_2W = -1; */ - rtDW.Cmd_RearTemp_2W = -1.0; + /* : else */ + /* : Cmd_RearTemp_2W = 10; */ + rtDW.Cmd_RearTemp_2W = 10.0; } - break; + } else { + /* : Cmd_2Way = 1; */ + rtB.Cmd_2Way = 1U; + + /* : Cmd_RearTemp_2W = -1; */ + rtDW.Cmd_RearTemp_2W = -1.0; } /* : if Cmd_RearTemp_3W == 0 || Cmd_RearTemp_2W == 0 */ @@ -9244,14 +6675,64 @@ void HVAC_model_step(void) /* End of Chart: '/13,1,3,15 Valve control' */ - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' + /* Saturate: '/Saturation4' incorporates: + * DataStoreRead: '/Data Store Read28' */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV0[i]; + if (rtDW.LEVEL <= 5) { + rtb_Saturation4 = rtDW.LEVEL; + } else { + rtb_Saturation4 = 5U; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of Saturate: '/Saturation4' */ + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' + */ + switch (rtb_Saturation4) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV5[i]; + } + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ /* Saturate: '/Saturation' incorporates: * DataStoreRead: '/Data Store Read16' @@ -9266,639 +6747,1203 @@ void HVAC_model_step(void) /* End of Saturate: '/Saturation' */ - /* Gain: '/Gain' incorporates: - * Gain: '/Gain2' + /* Gain: '/Gain' incorporates: + * Gain: '/Gain2' */ rtb_Subtract = 52429U * Gain; - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * Gain: '/Gain' - * Gain: '/Gain2' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * Gain: '/Gain' + * Gain: '/Gain2' */ - rtb_dt_an = rtb_Subtract >> 19; + rtb_dt_nx = rtb_Subtract >> 19; - /* Gain: '/Gain1' incorporates: - * Bias: '/Bias' - * DataTypeConversion: '/Data Type Conversion2' - * Gain: '/Gain3' + /* Gain: '/Gain1' incorporates: + * Bias: '/Bias' + * DataTypeConversion: '/Data Type Conversion2' + * Gain: '/Gain3' */ - i = ((int32_t)rtb_dt_an + -15) << 14; + i = ((int32_t)rtb_dt_nx + -15) << 14; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataTypeConversion: '/Data Type Conversion3' - * Gain: '/Gain1' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataTypeConversion: '/Data Type Conversion3' + * Gain: '/Gain1' */ - Comp_Max_RPM_Allowed = (uint8_t)((((uint32_t)i & 16384U) != 0U) + (i >> 15)); + rtb_Switch3_e = (uint8_t)((((uint32_t)i & 16384U) != 0U) + (i >> 15)); - /* Selector: '/Selector' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtb_Selector_p = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; + rtb_Merge_h = rtb_uDLookupTable7_g[rtb_Switch3_e - 1]; - /* Saturate: '/Saturation4' incorporates: - * DataStoreRead: '/Data Store Read28' - */ - if (rtDW.LEVEL <= 5) { - rtb_Switch3_ed = rtDW.LEVEL; - } else { - rtb_Switch3_ed = 5U; - } - - /* End of Saturate: '/Saturation4' */ - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table' - * Lookup_n-D: '/1-D Lookup Table1' - * Lookup_n-D: '/1-D Lookup Table2' - * Lookup_n-D: '/1-D Lookup Table3' - * Lookup_n-D: '/1-D Lookup Table4' - * Lookup_n-D: '/1-D Lookup Table5' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table' + * Lookup_n-D: '/1-D Lookup Table1' + * Lookup_n-D: '/1-D Lookup Table2' + * Lookup_n-D: '/1-D Lookup Table3' + * Lookup_n-D: '/1-D Lookup Table4' + * Lookup_n-D: '/1-D Lookup Table5' * Saturate: '/Saturation' */ - switch (rtb_Switch3_ed) { + switch (rtb_Saturation4) { case 0: g_assEVA_TG_AMB_R_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain, - rtConstP.pooled72, &g_assTG_FLU_LV0[0], 12U); + rtConstP.pooled63, &g_assTG_FLU_LV0[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table' - * Lookup_n-D: '/1-D Lookup Table' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table' + * Lookup_n-D: '/1-D Lookup Table' * Saturate: '/Saturation' */ rtb_MultiportSwitch_o = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assINCAR_TG_FL_LV0[0], 12U); + rtConstP.pooled45, &g_assINCAR_TG_FL_LV0[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_Y1_LV0[i]; + } break; case 1: g_assEVA_TG_AMB_R_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain, - rtConstP.pooled72, &g_assTG_FLU_LV1[0], 12U); + rtConstP.pooled63, &g_assTG_FLU_LV1[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table1' - * Lookup_n-D: '/1-D Lookup Table1' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table1' + * Lookup_n-D: '/1-D Lookup Table1' * Saturate: '/Saturation' */ rtb_MultiportSwitch_o = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assINCAR_TG_FL_LV1[0], 12U); + rtConstP.pooled45, &g_assINCAR_TG_FL_LV1[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant1' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_Y1_LV1[i]; + } break; case 2: g_assEVA_TG_AMB_R_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain, - rtConstP.pooled72, &g_assTG_FLU_LV2[0], 12U); + rtConstP.pooled63, &g_assTG_FLU_LV2[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table2' - * Lookup_n-D: '/1-D Lookup Table2' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table2' + * Lookup_n-D: '/1-D Lookup Table2' * Saturate: '/Saturation' */ rtb_MultiportSwitch_o = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assINCAR_TG_FL_LV2[0], 12U); + rtConstP.pooled45, &g_assINCAR_TG_FL_LV2[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant2' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_Y1_LV2[i]; + } break; case 3: g_assEVA_TG_AMB_R_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain, - rtConstP.pooled72, &g_assTG_FLU_LV3[0], 12U); + rtConstP.pooled63, &g_assTG_FLU_LV3[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table3' - * Lookup_n-D: '/1-D Lookup Table3' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table3' + * Lookup_n-D: '/1-D Lookup Table3' * Saturate: '/Saturation' */ rtb_MultiportSwitch_o = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assINCAR_TG_FL_LV3[0], 12U); + rtConstP.pooled45, &g_assINCAR_TG_FL_LV3[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant3' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_Y1_LV3[i]; + } break; case 4: g_assEVA_TG_AMB_R_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain, - rtConstP.pooled72, &g_assTG_FLU_LV4[0], 12U); + rtConstP.pooled63, &g_assTG_FLU_LV4[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table4' - * Lookup_n-D: '/1-D Lookup Table4' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table4' + * Lookup_n-D: '/1-D Lookup Table4' * Saturate: '/Saturation' */ rtb_MultiportSwitch_o = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assINCAR_TG_FL_LV4[0], 12U); + rtConstP.pooled45, &g_assINCAR_TG_FL_LV4[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant4' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_Y1_LV4[i]; + } break; default: g_assEVA_TG_AMB_R_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain, - rtConstP.pooled72, &g_assTG_FLU_LV5[0], 12U); + rtConstP.pooled63, &g_assTG_FLU_LV5[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table5' - * Lookup_n-D: '/1-D Lookup Table5' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table5' + * Lookup_n-D: '/1-D Lookup Table5' * Saturate: '/Saturation' */ rtb_MultiportSwitch_o = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assINCAR_TG_FL_LV5[0], 12U); + rtConstP.pooled45, &g_assINCAR_TG_FL_LV5[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant5' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_Y1_LV5[i]; + } break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_Y1_LV0[i]; + rtb_VectorConcatenate_lo[0] = rtb_uDLookupTable7_g[rtb_Switch3_e - 1]; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_Y2_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_Y2_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_Y2_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_Y2_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_Y2_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_Y2_LV5[rtb_Switch3_e - 1]; + break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch2' */ - /* Selector: '/Selector' incorporates: - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[0] = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_Y2_LV0[Comp_Max_RPM_Allowed - 1]; - - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ rtb_VectorConcatenate_lo[2] = 0; - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant14' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch3' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_Y3_LV0[Comp_Max_RPM_Allowed - 1]; + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_Y3_LV0[rtb_Switch3_e - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant20' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_Y4_LV0[Comp_Max_RPM_Allowed - 1]; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_Y4_LV0[rtb_Switch3_e - 1]; - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' - */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_X1_LV0[i]; + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_X1_LV0[i]; + } + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_Y3_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_Y4_LV1[rtb_Switch3_e - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant1' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_X1_LV1[i]; + } + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_Y3_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_Y4_LV2[rtb_Switch3_e - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant2' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_X1_LV2[i]; + } + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_Y3_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_Y4_LV3[rtb_Switch3_e - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant3' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_X1_LV3[i]; + } + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_Y3_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_Y4_LV4[rtb_Switch3_e - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant4' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_X1_LV4[i]; + } + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_Y3_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_Y4_LV5[rtb_Switch3_e - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant5' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_X1_LV5[i]; + } + break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch3' */ - /* Selector: '/Selector' incorporates: - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_jn[0] = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; + rtb_VectorConcatenate_jn[0] = rtb_uDLookupTable7_g[rtb_Switch3_e - 1]; - /* MultiPortSwitch: '/Multiport Switch2' incorporates: - * Constant: '/Constant6' - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector1' - * Selector: '/Selector' - * Selector: '/Selector1' - */ - rtb_FLU_tg_correct_de = g_assDTG_FU_INC_X2_LV0[Comp_Max_RPM_Allowed - 1]; + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_FU_INC_X2_LV0[rtb_Switch3_e - 1]; + break; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - */ - rtb_VectorConcatenate_jn[1] = rtb_FLU_tg_correct_de; + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_FU_INC_X2_LV1[rtb_Switch3_e - 1]; + break; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_FU_INC_X2_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_FU_INC_X2_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_FU_INC_X2_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_FU_INC_X2_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ rtb_VectorConcatenate_jn[2] = 0; - /* MultiPortSwitch: '/Multiport Switch3' incorporates: - * Constant: '/Constant14' - * Constant: '/Constant14' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch3' - * Selector: '/Selector2' - * Selector: '/Selector' - * Selector: '/Selector2' - */ - rtb_Bias2 = g_assDTG_FU_INC_X3_LV0[Comp_Max_RPM_Allowed - 1]; + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FU_INC_X3_LV0[rtb_Switch3_e - 1]; - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant14' - * MultiPortSwitch: '/Multiport Switch3' - */ - rtb_VectorConcatenate_jn[3] = rtb_Bias2; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_FU_INC_X4_LV0[rtb_Switch3_e - 1]; + break; - /* MultiPortSwitch: '/Multiport Switch4' incorporates: - * Constant: '/Constant20' - * Constant: '/Constant20' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector3' - * Selector: '/Selector' - * Selector: '/Selector3' - */ - rtb_Bias4 = g_assDTG_FU_INC_X4_LV0[Comp_Max_RPM_Allowed - 1]; + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FU_INC_X3_LV1[rtb_Switch3_e - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant20' - * MultiPortSwitch: '/Multiport Switch4' - */ - rtb_VectorConcatenate_jn[4] = rtb_Bias4; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_FU_INC_X4_LV1[rtb_Switch3_e - 1]; + break; - /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FU_INC_X3_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_FU_INC_X4_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FU_INC_X3_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_FU_INC_X4_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FU_INC_X3_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_FU_INC_X4_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FU_INC_X3_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_FU_INC_X4_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: * DataStoreRead: '/Data Store Read21' - * Sum: '/2.5. X = Inc_Tg - Incar_fb' + * Sum: '/2.5. X = Inc_Tg - Incar_fb' */ - rtb_u5FLU_tg_incar = look1_is16lu64n32Ds32_binlcn((int16_t) + rtb_u5FLU_tg_incar_o = look1_is16lu64n32Ds32_binlcn((int16_t) (rtb_MultiportSwitch_o - rtDW.Incar_FL), rtb_VectorConcatenate_jn, rtb_VectorConcatenate_lo, 4U); - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_Y1_LV0[i]; + switch (rtb_Saturation4) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_Y1_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_Y1_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_Y1_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_Y1_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_Y1_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_Y1_LV5[i]; + } + break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* Selector: '/Selector' incorporates: - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_lg[0] = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; + rtb_VectorConcatenate_mx[0] = rtb_uDLookupTable7_g[rtb_Switch3_e - 1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_lg[1] = 0; + rtb_VectorConcatenate_mx[1] = 0; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FU_AMB_Y2_LV0[Comp_Max_RPM_Allowed - 1]; - - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant2' - * Constant: '/Constant3' - * Constant: '/Constant4' - * Constant: '/Constant5' - */ - switch (rtb_Switch3_ed) { + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_FU_AMB_Y2_LV0[rtb_Switch3_e - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ for (i = 0; i < 7; i++) { rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_X1_LV0[i]; } break; case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_FU_AMB_Y2_LV1[rtb_Switch3_e - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant1' + */ for (i = 0; i < 7; i++) { rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_X1_LV1[i]; } break; case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_FU_AMB_Y2_LV2[rtb_Switch3_e - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant2' + */ for (i = 0; i < 7; i++) { rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_X1_LV2[i]; } break; case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_FU_AMB_Y2_LV3[rtb_Switch3_e - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant3' + */ for (i = 0; i < 7; i++) { rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_X1_LV3[i]; } break; case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_FU_AMB_Y2_LV4[rtb_Switch3_e - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant4' + */ for (i = 0; i < 7; i++) { rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_X1_LV4[i]; } break; default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_FU_AMB_Y2_LV5[rtb_Switch3_e - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant5' + */ for (i = 0; i < 7; i++) { rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_X1_LV5[i]; } break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch2' */ - /* Selector: '/Selector' incorporates: - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[0] = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; + rtb_VectorConcatenate_jb[0] = rtb_uDLookupTable7_g[rtb_Switch3_e - 1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_e0[1] = 0; + rtb_VectorConcatenate_jb[1] = 0; - /* MultiPortSwitch: '/Multiport Switch2' */ - switch (rtb_Switch3_ed) { + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { case 0: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_AMB_X2_LV0[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[2] = g_assDTG_FU_AMB_X2_LV0[rtb_Switch3_e - 1]; break; case 1: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant7' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_AMB_X2_LV1[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[2] = g_assDTG_FU_AMB_X2_LV1[rtb_Switch3_e - 1]; break; case 2: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant8' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_AMB_X2_LV2[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[2] = g_assDTG_FU_AMB_X2_LV2[rtb_Switch3_e - 1]; break; case 3: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant9' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_AMB_X2_LV3[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[2] = g_assDTG_FU_AMB_X2_LV3[rtb_Switch3_e - 1]; break; case 4: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant10' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_AMB_X2_LV4[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[2] = g_assDTG_FU_AMB_X2_LV4[rtb_Switch3_e - 1]; break; default: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant11' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_AMB_X2_LV5[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[2] = g_assDTG_FU_AMB_X2_LV5[rtb_Switch3_e - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch2' */ + /* End of MultiPortSwitch: '/Multiport Switch2' */ - /* Sum: '/2.6. X = Amb_Tg - Amb_Fb' incorporates: - * Bias: '/Bias' - * Constant: '/Constant' + /* Sum: '/2.6. X = Amb_Tg - Amb_Fb' incorporates: + * Bias: '/Bias' + * Constant: '/Constant' * DataStoreRead: '/Data Store Read20' - * Selector: '/Selector1' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + * Selector: '/Selector1' + * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + * Sum: '/2.6. X = Amb_Tg - Amb_Fb' */ - rtb_Bias5 = (int16_t)(g_assAMB_LV_TG[rtb_Switch3_ed] - rtDW.AMB); + rtb_FLU_tg_correct_a = (int16_t)(g_assAMB_LV_TG[rtb_Saturation4] - rtDW.AMB); - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: + * Sum: '/2.6. X = Amb_Tg - Amb_Fb' */ - rtb_y_lg = look1_is16lu64n32Ds32_binlcn(rtb_Bias5, rtb_VectorConcatenate_e0, - rtb_VectorConcatenate_lg, 2U); + rtb_u6FLU_tg_amb_e = look1_is16lu64n32Ds32_binlcn(rtb_FLU_tg_correct_a, + rtb_VectorConcatenate_jb, rtb_VectorConcatenate_mx, 2U); - /* MultiPortSwitch: '/Multiport Switch1' */ - switch (rtb_Switch3_ed) { + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_gu[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { case 0: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FU_SUN_Y1_LV0[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[1] = g_assDTG_FU_SUN_Y1_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_FU_SUN_Y2_LV0[rtb_Switch3_e - 1]; break; case 1: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant1' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FU_SUN_Y1_LV1[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[1] = g_assDTG_FU_SUN_Y1_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_FU_SUN_Y2_LV1[rtb_Switch3_e - 1]; break; case 2: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant2' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FU_SUN_Y1_LV2[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[1] = g_assDTG_FU_SUN_Y1_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_FU_SUN_Y2_LV2[rtb_Switch3_e - 1]; break; case 3: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant3' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FU_SUN_Y1_LV3[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[1] = g_assDTG_FU_SUN_Y1_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_FU_SUN_Y2_LV3[rtb_Switch3_e - 1]; break; case 4: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant4' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FU_SUN_Y1_LV4[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[1] = g_assDTG_FU_SUN_Y1_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_FU_SUN_Y2_LV4[rtb_Switch3_e - 1]; break; default: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant5' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FU_SUN_Y1_LV5[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[1] = g_assDTG_FU_SUN_Y1_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_FU_SUN_Y2_LV5[rtb_Switch3_e - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_e0[1] = 0; + rtb_VectorConcatenate_l0[0] = 0; - /* MultiPortSwitch: '/Multiport Switch2' */ - switch (rtb_Switch3_ed) { + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { case 0: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_SUN_Y2_LV0[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV0[rtb_Switch3_e - 1]; break; case 1: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant7' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_SUN_Y2_LV1[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV1[rtb_Switch3_e - 1]; break; case 2: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant8' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_SUN_Y2_LV2[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV2[rtb_Switch3_e - 1]; break; case 3: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant9' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_SUN_Y2_LV3[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV3[rtb_Switch3_e - 1]; break; case 4: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant10' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_SUN_Y2_LV4[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV4[rtb_Switch3_e - 1]; break; default: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant11' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_SUN_Y2_LV5[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV5[rtb_Switch3_e - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch2' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lg[0] = g_assDTG_FU_AMB_X1_LV0[Comp_Max_RPM_Allowed - 1]; - - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_lg[1] = 0; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FU_AMB_X2_LV0[Comp_Max_RPM_Allowed - 1]; - - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: + /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: * DataStoreRead: '/Data Store Read26' */ - rtb_y_bf = look1_bs16ts16Dd_binlc(rtDW.Sun_L, rtb_VectorConcatenate_lg, - rtb_VectorConcatenate_e0, 2U); + rtb_u6FLU_tg_amb_i = look1_bs16ts16Dd_binlc(rtDW.Sun_L, + rtb_VectorConcatenate_l0, rtb_VectorConcatenate_gu, 2U); - /* Sum: '/FLU_tg_correct' */ + /* Sum: '/FLU_tg_correct' */ rtb_FLU_tg_correct = (int16_t)((int16_t)((int16_t)(g_assEVA_TG_AMB_R_h + - rtb_u5FLU_tg_incar) + rtb_y_lg) + rtb_y_bf); + rtb_u5FLU_tg_incar_o) + rtb_u6FLU_tg_amb_e) + rtb_u6FLU_tg_amb_i); - /* Switch: '/Switch2' incorporates: - * DataStoreWrite: '/Data Store Write2' - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * DataStoreWrite: '/Data Store Write' + * RelationalOperator: '/LowerRelop1' */ - if (rtb_FLU_tg_correct > rtb_Selector_p) { - rtb_FLU_tg_correct = rtb_Selector_p; + if (rtb_FLU_tg_correct > rtb_Merge_h) { + rtb_FLU_tg_correct = rtb_Merge_h; } else { - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV0[i]; + switch (rtb_Saturation4) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV5[i]; + } + break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* Selector: '/Selector' incorporates: - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - rtb_FLU_tg_correct_g = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; + rtb_FLU_tg_correct_l = rtb_uDLookupTable7_g[rtb_Switch3_e - 1]; - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write2' - * RelationalOperator: '/UpperRelop' - * Selector: '/Selector' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write' + * RelationalOperator: '/UpperRelop' + * Selector: '/Selector' */ - if (rtb_FLU_tg_correct < rtb_FLU_tg_correct_g) { - rtb_FLU_tg_correct = rtb_FLU_tg_correct_g; + if (rtb_FLU_tg_correct < rtb_FLU_tg_correct_l) { + rtb_FLU_tg_correct = rtb_FLU_tg_correct_l; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' + /* If: '/If' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV0[i]; + if ((rtDW.step_start_controle_front == 0) || (rtDW.step_start_controle_front == + 1) || (rtDW.step_start_controle_front == 2)) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write2' incorporates: + * DataStoreRead: '/dtg from Start Control' + * DataTypeConversion: '/Data Type Conversion' + */ + rtb_FLU_tg_correct = (int16_t)rtDW.Dtg_FUL; + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of If: '/If' */ + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' + */ + switch (rtb_Saturation4) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV5[i]; + } + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ /* Saturate: '/Saturation1' incorporates: * DataStoreRead: '/Data Store Read17' @@ -9913,2539 +7958,5842 @@ void HVAC_model_step(void) /* End of Saturate: '/Saturation1' */ - /* Gain: '/Gain' incorporates: - * Gain: '/Gain2' + /* Gain: '/Gain' incorporates: + * Gain: '/Gain2' */ - rtb_Gain_fc_tmp_tmp = 52429U * Gain1; + rtb_Saturation1_h_tmp_tmp = 52429U * Gain1; - /* DataTypeConversion: '/Data Type Conversion3' incorporates: - * Gain: '/Gain' - * Gain: '/Gain2' + /* DataTypeConversion: '/Data Type Conversion3' incorporates: + * Gain: '/Gain' + * Gain: '/Gain2' */ - rtb_Gain_fc_tmp_tmp_0 = rtb_Gain_fc_tmp_tmp >> 19; + rtb_Saturation1_h_tmp_tmp_0 = rtb_Saturation1_h_tmp_tmp >> 19; - /* Gain: '/Gain1' incorporates: - * Bias: '/Bias' - * DataTypeConversion: '/Data Type Conversion3' - * Gain: '/Gain3' + /* Gain: '/Gain1' incorporates: + * Bias: '/Bias' + * DataTypeConversion: '/Data Type Conversion3' + * Gain: '/Gain3' */ - i = ((int32_t)rtb_Gain_fc_tmp_tmp_0 + -15) << 14; + i = ((int32_t)rtb_Saturation1_h_tmp_tmp_0 + -15) << 14; - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataTypeConversion: '/Data Type Conversion3' - * Gain: '/Gain1' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataTypeConversion: '/Data Type Conversion3' + * Gain: '/Gain1' */ - Blower_AF_RL = (uint8_t)((((uint32_t)i & 16384U) != 0U) + (i >> 15)); + rtb_DataTypeConversion1_h2 = (uint8_t)((((uint32_t)i & 16384U) != 0U) + (i >> + 15)); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table' - * Lookup_n-D: '/1-D Lookup Table1' - * Lookup_n-D: '/1-D Lookup Table2' - * Lookup_n-D: '/1-D Lookup Table3' - * Lookup_n-D: '/1-D Lookup Table4' - * Lookup_n-D: '/1-D Lookup Table5' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table' + * Lookup_n-D: '/1-D Lookup Table1' + * Lookup_n-D: '/1-D Lookup Table2' + * Lookup_n-D: '/1-D Lookup Table3' + * Lookup_n-D: '/1-D Lookup Table4' + * Lookup_n-D: '/1-D Lookup Table5' * Saturate: '/Saturation1' */ - switch (rtb_Switch3_ed) { + switch (rtb_Saturation4) { case 0: - rtb_y_h5 = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, rtConstP.pooled72, - &g_assTG_FRU_LV0[0], 12U); + rtb_MultiportSwitch_m = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, + rtConstP.pooled63, &g_assTG_FRU_LV0[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table' - * Lookup_n-D: '/1-D Lookup Table' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table' + * Lookup_n-D: '/1-D Lookup Table' * Saturate: '/Saturation1' */ - rtb_y_ck = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assINCAR_TG_FR_LV0[0], 12U); + rtb_MultiportSwitch_nz = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled45, &g_assINCAR_TG_FR_LV0[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = + g_assDTG_FU_INC_Y1_LV0[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = + g_assDTG_FU_INC_Y2_LV0[rtb_DataTypeConversion1_h2 - 1]; break; case 1: - rtb_y_h5 = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, rtConstP.pooled72, - &g_assTG_FRU_LV1[0], 12U); + rtb_MultiportSwitch_m = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, + rtConstP.pooled63, &g_assTG_FRU_LV1[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table1' - * Lookup_n-D: '/1-D Lookup Table1' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table1' + * Lookup_n-D: '/1-D Lookup Table1' * Saturate: '/Saturation1' */ - rtb_y_ck = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assINCAR_TG_FR_LV1[0], 12U); + rtb_MultiportSwitch_nz = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled45, &g_assINCAR_TG_FR_LV1[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = + g_assDTG_FU_INC_Y1_LV1[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = + g_assDTG_FU_INC_Y2_LV1[rtb_DataTypeConversion1_h2 - 1]; break; case 2: - rtb_y_h5 = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, rtConstP.pooled72, - &g_assTG_FRU_LV2[0], 12U); + rtb_MultiportSwitch_m = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, + rtConstP.pooled63, &g_assTG_FRU_LV2[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table2' - * Lookup_n-D: '/1-D Lookup Table2' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table2' + * Lookup_n-D: '/1-D Lookup Table2' * Saturate: '/Saturation1' */ - rtb_y_ck = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assINCAR_TG_FR_LV2[0], 12U); + rtb_MultiportSwitch_nz = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled45, &g_assINCAR_TG_FR_LV2[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = + g_assDTG_FU_INC_Y1_LV2[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = + g_assDTG_FU_INC_Y2_LV2[rtb_DataTypeConversion1_h2 - 1]; break; case 3: - rtb_y_h5 = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, rtConstP.pooled72, - &g_assTG_FRU_LV3[0], 12U); + rtb_MultiportSwitch_m = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, + rtConstP.pooled63, &g_assTG_FRU_LV3[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table3' - * Lookup_n-D: '/1-D Lookup Table3' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table3' + * Lookup_n-D: '/1-D Lookup Table3' * Saturate: '/Saturation1' */ - rtb_y_ck = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assINCAR_TG_FR_LV3[0], 12U); + rtb_MultiportSwitch_nz = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled45, &g_assINCAR_TG_FR_LV3[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = + g_assDTG_FU_INC_Y1_LV3[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = + g_assDTG_FU_INC_Y2_LV3[rtb_DataTypeConversion1_h2 - 1]; break; case 4: - rtb_y_h5 = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, rtConstP.pooled72, - &g_assTG_FRU_LV4[0], 12U); + rtb_MultiportSwitch_m = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, + rtConstP.pooled63, &g_assTG_FRU_LV4[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table4' - * Lookup_n-D: '/1-D Lookup Table4' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table4' + * Lookup_n-D: '/1-D Lookup Table4' * Saturate: '/Saturation1' */ - rtb_y_ck = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assINCAR_TG_FR_LV4[0], 12U); + rtb_MultiportSwitch_nz = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled45, &g_assINCAR_TG_FR_LV4[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = + g_assDTG_FU_INC_Y1_LV4[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = + g_assDTG_FU_INC_Y2_LV4[rtb_DataTypeConversion1_h2 - 1]; break; default: - rtb_y_h5 = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, rtConstP.pooled72, - &g_assTG_FRU_LV5[0], 12U); + rtb_MultiportSwitch_m = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, + rtConstP.pooled63, &g_assTG_FRU_LV5[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table5' - * Lookup_n-D: '/1-D Lookup Table5' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table5' + * Lookup_n-D: '/1-D Lookup Table5' * Saturate: '/Saturation1' */ - rtb_y_ck = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assINCAR_TG_FR_LV5[0], 12U); + rtb_MultiportSwitch_nz = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled45, &g_assINCAR_TG_FR_LV5[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = + g_assDTG_FU_INC_Y1_LV5[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = + g_assDTG_FU_INC_Y2_LV5[rtb_DataTypeConversion1_h2 - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - */ - rtb_VectorConcatenate_jn[0] = g_assDTG_FU_INC_Y1_LV0[Blower_AF_RL - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[1] = g_assDTG_FU_INC_Y2_LV0[Blower_AF_RL - 1]; - - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ rtb_VectorConcatenate_jn[2] = 0; - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant14' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch3' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[3] = g_assDTG_FU_INC_Y3_LV0[Blower_AF_RL - 1]; + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_jn[3] = + g_assDTG_FU_INC_Y3_LV0[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant20' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[4] = g_assDTG_FU_INC_Y4_LV0[Blower_AF_RL - 1]; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_jn[4] = + g_assDTG_FU_INC_Y4_LV0[rtb_DataTypeConversion1_h2 - 1]; - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - * Selector: '/Selector' - * Selector: '/Selector' - */ - rtb_Bias_ct = g_assDTG_FU_INC_X1_LV0[Blower_AF_RL - 1]; + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[0] = + g_assDTG_FU_INC_X1_LV0[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' - */ - rtb_VectorConcatenate_lo[0] = rtb_Bias_ct; + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[1] = + g_assDTG_FU_INC_X2_LV0[rtb_DataTypeConversion1_h2 - 1]; + break; - /* MultiPortSwitch: '/Multiport Switch2' incorporates: - * Constant: '/Constant6' - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector1' - * Selector: '/Selector1' - * Selector: '/Selector' - */ - rtb_FLU_tg_correct_b = g_assDTG_FU_INC_X2_LV0[Blower_AF_RL - 1]; + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_jn[3] = + g_assDTG_FU_INC_Y3_LV1[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - */ - rtb_VectorConcatenate_lo[1] = rtb_FLU_tg_correct_b; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_jn[4] = + g_assDTG_FU_INC_Y4_LV1[rtb_DataTypeConversion1_h2 - 1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[0] = + g_assDTG_FU_INC_X1_LV1[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[1] = + g_assDTG_FU_INC_X2_LV1[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_jn[3] = + g_assDTG_FU_INC_Y3_LV2[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_jn[4] = + g_assDTG_FU_INC_Y4_LV2[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[0] = + g_assDTG_FU_INC_X1_LV2[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[1] = + g_assDTG_FU_INC_X2_LV2[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_jn[3] = + g_assDTG_FU_INC_Y3_LV3[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_jn[4] = + g_assDTG_FU_INC_Y4_LV3[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[0] = + g_assDTG_FU_INC_X1_LV3[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[1] = + g_assDTG_FU_INC_X2_LV3[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_jn[3] = + g_assDTG_FU_INC_Y3_LV4[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_jn[4] = + g_assDTG_FU_INC_Y4_LV4[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[0] = + g_assDTG_FU_INC_X1_LV4[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[1] = + g_assDTG_FU_INC_X2_LV4[rtb_DataTypeConversion1_h2 - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_jn[3] = + g_assDTG_FU_INC_Y3_LV5[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_jn[4] = + g_assDTG_FU_INC_Y4_LV5[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[0] = + g_assDTG_FU_INC_X1_LV5[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[1] = + g_assDTG_FU_INC_X2_LV5[rtb_DataTypeConversion1_h2 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ rtb_VectorConcatenate_lo[2] = 0; - /* MultiPortSwitch: '/Multiport Switch3' incorporates: - * Constant: '/Constant14' - * Constant: '/Constant14' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch3' - * Selector: '/Selector2' - * Selector: '/Selector2' - * Selector: '/Selector' - */ - rtb_Bias1_h = g_assDTG_FU_INC_X3_LV0[Blower_AF_RL - 1]; + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_lo[3] = + g_assDTG_FU_INC_X3_LV0[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant14' - * MultiPortSwitch: '/Multiport Switch3' - */ - rtb_VectorConcatenate_lo[3] = rtb_Bias1_h; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[4] = + g_assDTG_FU_INC_X4_LV0[rtb_DataTypeConversion1_h2 - 1]; + break; - /* MultiPortSwitch: '/Multiport Switch4' incorporates: - * Constant: '/Constant20' - * Constant: '/Constant20' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector3' - * Selector: '/Selector3' - * Selector: '/Selector' - */ - Duct3_R = g_assDTG_FU_INC_X4_LV0[Blower_AF_RL - 1]; + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_lo[3] = + g_assDTG_FU_INC_X3_LV1[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant20' - * MultiPortSwitch: '/Multiport Switch4' - */ - rtb_VectorConcatenate_lo[4] = Duct3_R; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[4] = + g_assDTG_FU_INC_X4_LV1[rtb_DataTypeConversion1_h2 - 1]; + break; - /* Lookup_n-D: '/2.5 FRU_tg_incar' incorporates: + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_lo[3] = + g_assDTG_FU_INC_X3_LV2[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[4] = + g_assDTG_FU_INC_X4_LV2[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_lo[3] = + g_assDTG_FU_INC_X3_LV3[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[4] = + g_assDTG_FU_INC_X4_LV3[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_lo[3] = + g_assDTG_FU_INC_X3_LV4[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[4] = + g_assDTG_FU_INC_X4_LV4[rtb_DataTypeConversion1_h2 - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_lo[3] = + g_assDTG_FU_INC_X3_LV5[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[4] = + g_assDTG_FU_INC_X4_LV5[rtb_DataTypeConversion1_h2 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* Lookup_n-D: '/2.5 FRU_tg_incar' incorporates: * DataStoreRead: '/Data Store Read22' - * Sum: '/2.5. X = Inc_Tg - Incar_fb' + * Sum: '/2.5. X = Inc_Tg - Incar_fb' */ - rtb_y_fe = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_ck - rtDW.Incar_FR), - rtb_VectorConcatenate_lo, rtb_VectorConcatenate_jn, 4U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FU_AMB_Y1_LV0[Blower_AF_RL - 1]; - - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_e0[1] = 0; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_AMB_Y2_LV0[Blower_AF_RL - 1]; - - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - * Selector: '/Selector' - * Selector: '/Selector' - */ - rtb_u6FLU_tg_amb_hq = g_assDTG_FU_AMB_X1_LV0[Blower_AF_RL - 1]; - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' - */ - rtb_VectorConcatenate_lg[0] = rtb_u6FLU_tg_amb_hq; - - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_lg[1] = 0; - - /* MultiPortSwitch: '/Multiport Switch2' incorporates: - * Constant: '/Constant6' - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - * Selector: '/Selector1' - * Selector: '/Selector1' - */ - rtb_u5FLU_tg_incar_l = g_assDTG_FU_AMB_X2_LV0[Blower_AF_RL - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - */ - rtb_VectorConcatenate_lg[2] = rtb_u5FLU_tg_incar_l; - - /* Lookup_n-D: '/2.6 FRU_tg_amb' */ - rtb_y_ar = look1_is16lu64n32Ds32_binlcn(rtb_Bias5, rtb_VectorConcatenate_lg, - rtb_VectorConcatenate_e0, 2U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FU_SUN_Y1_LV0[Blower_AF_RL - 1]; - - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_e0[1] = 0; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FU_SUN_Y2_LV0[Blower_AF_RL - 1]; - - /* Selector: '/Selector' */ - rtb_VectorConcatenate_lg[0] = rtb_u6FLU_tg_amb_hq; - - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_lg[1] = 0; - - /* Selector: '/Selector1' */ - rtb_VectorConcatenate_lg[2] = rtb_u5FLU_tg_incar_l; - - /* Lookup_n-D: '/2.6 FRU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read27' - */ - rtb_u6FLU_tg_amb = look1_bs16ts16Dd_binlc(rtDW.Sun_R, rtb_VectorConcatenate_lg, - rtb_VectorConcatenate_e0, 2U); - - /* Sum: '/FLU_tg_correct1' */ - rtb_Selector_p = (int16_t)((int16_t)((int16_t)(rtb_y_h5 + rtb_y_fe) + rtb_y_ar) - + rtb_u6FLU_tg_amb); - - /* Selector: '/Selector' incorporates: - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' - */ - rtb_FLU_tg_correct_g = rtb_uDLookupTable7_g[Blower_AF_RL - 1]; - - /* Switch: '/Switch2' incorporates: - * DataStoreWrite: '/Data Store Write3' - * RelationalOperator: '/LowerRelop1' - * Selector: '/Selector' - */ - if (rtb_Selector_p > rtb_FLU_tg_correct_g) { - rtb_Selector_p = rtb_FLU_tg_correct_g; - } else { - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' - */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV0[i]; - } - - /* End of MultiPortSwitch: '/Multiport Switch1' */ - - /* Selector: '/Selector' incorporates: - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' - */ - rtb_FLU_tg_correct_g = rtb_uDLookupTable7_g[Blower_AF_RL - 1]; - - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write3' - * RelationalOperator: '/UpperRelop' - * Selector: '/Selector' - */ - if (rtb_Selector_p < rtb_FLU_tg_correct_g) { - rtb_Selector_p = rtb_FLU_tg_correct_g; - } - - /* End of Switch: '/Switch' */ - } - - /* End of Switch: '/Switch2' */ - - /* DataStoreWrite: '/Data Store Write5' */ - rtDW.Duct_RR_Tg = 0; - - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' - */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV0[i]; - } - - /* End of MultiPortSwitch: '/Multiport Switch1' */ - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table' - * Lookup_n-D: '/1-D Lookup Table1' - * Lookup_n-D: '/1-D Lookup Table2' - * Lookup_n-D: '/1-D Lookup Table3' - * Lookup_n-D: '/1-D Lookup Table4' - * Lookup_n-D: '/1-D Lookup Table5' - * Saturate: '/Saturation' - */ - switch (rtb_Switch3_ed) { - case 0: - rtb_u6FLU_tg_amb_hq = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assTG_FLL_LV0[0], 12U); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table' - * Lookup_n-D: '/1-D Lookup Table' - * Saturate: '/Saturation' - */ - rtb_u5FLU_tg_incar_l = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assINCAR_TG_FL_LV0[0], 12U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV0[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV0[Comp_Max_RPM_Allowed - - 1]; - break; - - case 1: - rtb_u6FLU_tg_amb_hq = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assTG_FLL_LV1[0], 12U); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table1' - * Lookup_n-D: '/1-D Lookup Table1' - * Saturate: '/Saturation' - */ - rtb_u5FLU_tg_incar_l = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assINCAR_TG_FL_LV1[0], 12U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant1' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV1[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant7' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV1[Comp_Max_RPM_Allowed - - 1]; - break; - - case 2: - rtb_u6FLU_tg_amb_hq = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assTG_FLL_LV2[0], 12U); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table2' - * Lookup_n-D: '/1-D Lookup Table2' - * Saturate: '/Saturation' - */ - rtb_u5FLU_tg_incar_l = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assINCAR_TG_FL_LV2[0], 12U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant2' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV2[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant8' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV2[Comp_Max_RPM_Allowed - - 1]; - break; - - case 3: - rtb_u6FLU_tg_amb_hq = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assTG_FLL_LV3[0], 12U); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table3' - * Lookup_n-D: '/1-D Lookup Table3' - * Saturate: '/Saturation' - */ - rtb_u5FLU_tg_incar_l = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assINCAR_TG_FL_LV3[0], 12U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant3' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV3[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant9' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV3[Comp_Max_RPM_Allowed - - 1]; - break; - - case 4: - rtb_u6FLU_tg_amb_hq = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assTG_FLL_LV4[0], 12U); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table4' - * Lookup_n-D: '/1-D Lookup Table4' - * Saturate: '/Saturation' - */ - rtb_u5FLU_tg_incar_l = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assINCAR_TG_FL_LV4[0], 12U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant4' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV4[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant10' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV4[Comp_Max_RPM_Allowed - - 1]; - break; - - default: - rtb_u6FLU_tg_amb_hq = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assTG_FLL_LV5[0], 12U); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table5' - * Lookup_n-D: '/1-D Lookup Table5' - * Saturate: '/Saturation' - */ - rtb_u5FLU_tg_incar_l = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, - rtConstP.pooled51, &g_assINCAR_TG_FL_LV5[0], 12U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant5' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV5[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant11' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV5[Comp_Max_RPM_Allowed - - 1]; - break; - } - - /* End of MultiPortSwitch: '/Multiport Switch' */ - - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_jn[2] = 0; - - /* MultiPortSwitch: '/Multiport Switch3' */ - switch (rtb_Switch3_ed) { - case 0: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant14' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV0[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant20' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV0[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV0[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector1' */ - rtb_VectorConcatenate_lo[1] = rtb_FLU_tg_correct_de; - break; - - case 1: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant15' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV1[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant21' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV1[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant1' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV1[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant7' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV1[Comp_Max_RPM_Allowed - - 1]; - break; - - case 2: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant16' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV2[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant22' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV2[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant2' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV2[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant8' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV2[Comp_Max_RPM_Allowed - - 1]; - break; - - case 3: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant17' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV3[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant23' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV3[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant3' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV3[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant9' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV3[Comp_Max_RPM_Allowed - - 1]; - break; - - case 4: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant12' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV4[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant18' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV4[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant4' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV4[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant10' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV4[Comp_Max_RPM_Allowed - - 1]; - break; - - default: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant13' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV5[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant19' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV5[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant5' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV5[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant11' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV5[Comp_Max_RPM_Allowed - - 1]; - break; - } - - /* End of MultiPortSwitch: '/Multiport Switch3' */ - - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_lo[2] = 0; - - /* MultiPortSwitch: '/Multiport Switch3' */ - switch (rtb_Switch3_ed) { - case 0: - /* Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[3] = rtb_Bias2; - - /* Selector: '/Selector3' */ - rtb_VectorConcatenate_lo[4] = rtb_Bias4; - break; - - case 1: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant15' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV1[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant21' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV1[Comp_Max_RPM_Allowed - - 1]; - break; - - case 2: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant16' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV2[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant22' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV2[Comp_Max_RPM_Allowed - - 1]; - break; - - case 3: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant17' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV3[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant23' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV3[Comp_Max_RPM_Allowed - - 1]; - break; - - case 4: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant12' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV4[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant18' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV4[Comp_Max_RPM_Allowed - - 1]; - break; - - default: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant13' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV5[Comp_Max_RPM_Allowed - - 1]; - - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant19' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV5[Comp_Max_RPM_Allowed - - 1]; - break; - } - - /* Lookup_n-D: '/2.5 FLL_tg_incar' incorporates: - * DataStoreRead: '/Data Store Read21' - * Sum: '/2.5. X = Inc_Tg - Incar_fb' - */ - rtb_MultiportSwitch_ae = look1_is16lu64n32Ds32_binlcn((int16_t) - (rtb_u5FLU_tg_incar_l - rtDW.Incar_FL), rtb_VectorConcatenate_lo, + rtb_u5FRU_tg_incar = look1_is16lu64n32Ds32_binlcn((int16_t) + (rtb_MultiportSwitch_nz - rtDW.Incar_FR), rtb_VectorConcatenate_lo, rtb_VectorConcatenate_jn, 4U); - /* MultiPortSwitch: '/Multiport Switch1' */ - switch (rtb_Switch3_ed) { + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { case 0: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV0[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[0] = + g_assDTG_FU_AMB_Y1_LV0[rtb_DataTypeConversion1_h2 - 1]; break; case 1: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant1' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV1[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[0] = + g_assDTG_FU_AMB_Y1_LV1[rtb_DataTypeConversion1_h2 - 1]; break; case 2: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant2' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV2[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[0] = + g_assDTG_FU_AMB_Y1_LV2[rtb_DataTypeConversion1_h2 - 1]; break; case 3: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant3' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV3[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[0] = + g_assDTG_FU_AMB_Y1_LV3[rtb_DataTypeConversion1_h2 - 1]; break; case 4: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant4' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV4[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[0] = + g_assDTG_FU_AMB_Y1_LV4[rtb_DataTypeConversion1_h2 - 1]; break; default: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant5' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV5[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[0] = + g_assDTG_FU_AMB_Y1_LV5[rtb_DataTypeConversion1_h2 - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_e0[1] = 0; + rtb_VectorConcatenate_jb[1] = 0; - /* MultiPortSwitch: '/Multiport Switch2' */ - switch (rtb_Switch3_ed) { + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { case 0: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV0[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[2] = + g_assDTG_FU_AMB_Y2_LV0[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' */ - rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV0[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_mx[0] = + g_assDTG_FU_AMB_X1_LV0[rtb_DataTypeConversion1_h2 - 1]; break; case 1: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant7' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV1[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[2] = + g_assDTG_FU_AMB_Y2_LV1[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant1' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' */ - rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV1[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_mx[0] = + g_assDTG_FU_AMB_X1_LV1[rtb_DataTypeConversion1_h2 - 1]; break; case 2: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant8' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV2[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[2] = + g_assDTG_FU_AMB_Y2_LV2[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant2' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' */ - rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV2[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_mx[0] = + g_assDTG_FU_AMB_X1_LV2[rtb_DataTypeConversion1_h2 - 1]; break; case 3: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant9' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV3[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[2] = + g_assDTG_FU_AMB_Y2_LV3[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant3' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' */ - rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV3[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_mx[0] = + g_assDTG_FU_AMB_X1_LV3[rtb_DataTypeConversion1_h2 - 1]; break; case 4: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant10' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV4[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[2] = + g_assDTG_FU_AMB_Y2_LV4[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant4' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' */ - rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV4[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_mx[0] = + g_assDTG_FU_AMB_X1_LV4[rtb_DataTypeConversion1_h2 - 1]; break; default: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant11' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV5[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_jb[2] = + g_assDTG_FU_AMB_Y2_LV5[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant5' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' */ - rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV5[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_mx[0] = + g_assDTG_FU_AMB_X1_LV5[rtb_DataTypeConversion1_h2 - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch2' */ + /* End of MultiPortSwitch: '/Multiport Switch2' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_lg[1] = 0; + rtb_VectorConcatenate_mx[1] = 0; - /* MultiPortSwitch: '/Multiport Switch2' */ - switch (rtb_Switch3_ed) { + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { case 0: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV0[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_mx[2] = + g_assDTG_FU_AMB_X2_LV0[rtb_DataTypeConversion1_h2 - 1]; break; case 1: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant7' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV1[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_mx[2] = + g_assDTG_FU_AMB_X2_LV1[rtb_DataTypeConversion1_h2 - 1]; break; case 2: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant8' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV2[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_mx[2] = + g_assDTG_FU_AMB_X2_LV2[rtb_DataTypeConversion1_h2 - 1]; break; case 3: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant9' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV3[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_mx[2] = + g_assDTG_FU_AMB_X2_LV3[rtb_DataTypeConversion1_h2 - 1]; break; case 4: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant10' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV4[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_mx[2] = + g_assDTG_FU_AMB_X2_LV4[rtb_DataTypeConversion1_h2 - 1]; break; default: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant11' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV5[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_mx[2] = + g_assDTG_FU_AMB_X2_LV5[rtb_DataTypeConversion1_h2 - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch2' */ + /* End of MultiPortSwitch: '/Multiport Switch2' */ - /* Lookup_n-D: '/2.6 FLL_tg_amb' */ - rtb_MultiportSwitch1_h = look1_is16lu64n32Ds32_binlcn(rtb_Bias5, - rtb_VectorConcatenate_lg, rtb_VectorConcatenate_e0, 2U); + /* Lookup_n-D: '/2.6 FRU_tg_amb' */ + rtb_u6FRU_tg_amb_h = look1_is16lu64n32Ds32_binlcn(rtb_FLU_tg_correct_a, + rtb_VectorConcatenate_mx, rtb_VectorConcatenate_jb, 2U); - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_bl[0] = 0; + rtb_VectorConcatenate_gu[0] = 0; - /* MultiPortSwitch: '/Multiport Switch1' */ - switch (rtb_Switch3_ed) { + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { case 0: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_bl[1] = g_assDTG_FL_SUN_Y1_LV0[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[1] = + g_assDTG_FU_SUN_Y1_LV0[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_bl[2] = g_assDTG_FL_SUN_Y2_LV0[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[2] = + g_assDTG_FU_SUN_Y2_LV0[rtb_DataTypeConversion1_h2 - 1]; break; case 1: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant1' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_bl[1] = g_assDTG_FL_SUN_Y1_LV1[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[1] = + g_assDTG_FU_SUN_Y1_LV1[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant7' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_bl[2] = g_assDTG_FL_SUN_Y2_LV1[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[2] = + g_assDTG_FU_SUN_Y2_LV1[rtb_DataTypeConversion1_h2 - 1]; break; case 2: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant2' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_bl[1] = g_assDTG_FL_SUN_Y1_LV2[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[1] = + g_assDTG_FU_SUN_Y1_LV2[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant8' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_bl[2] = g_assDTG_FL_SUN_Y2_LV2[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[2] = + g_assDTG_FU_SUN_Y2_LV2[rtb_DataTypeConversion1_h2 - 1]; break; case 3: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant3' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_bl[1] = g_assDTG_FL_SUN_Y1_LV3[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[1] = + g_assDTG_FU_SUN_Y1_LV3[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant9' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_bl[2] = g_assDTG_FL_SUN_Y2_LV3[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[2] = + g_assDTG_FU_SUN_Y2_LV3[rtb_DataTypeConversion1_h2 - 1]; break; case 4: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant4' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_bl[1] = g_assDTG_FL_SUN_Y1_LV4[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[1] = + g_assDTG_FU_SUN_Y1_LV4[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant10' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_bl[2] = g_assDTG_FL_SUN_Y2_LV4[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[2] = + g_assDTG_FU_SUN_Y2_LV4[rtb_DataTypeConversion1_h2 - 1]; break; default: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant5' - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion2' */ - rtb_VectorConcatenate_bl[1] = g_assDTG_FL_SUN_Y1_LV5[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[1] = + g_assDTG_FU_SUN_Y1_LV5[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant11' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_bl[2] = g_assDTG_FL_SUN_Y2_LV5[Comp_Max_RPM_Allowed - - 1]; + rtb_VectorConcatenate_gu[2] = + g_assDTG_FU_SUN_Y2_LV5[rtb_DataTypeConversion1_h2 - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_km[0] = 0; + rtb_VectorConcatenate_l0[0] = 0; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_l0[1] = + g_assDTG_FU_SUN_X1_LV0[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = + g_assDTG_FU_SUN_X2_LV0[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_l0[1] = + g_assDTG_FU_SUN_X1_LV1[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = + g_assDTG_FU_SUN_X2_LV1[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_l0[1] = + g_assDTG_FU_SUN_X1_LV2[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = + g_assDTG_FU_SUN_X2_LV2[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_l0[1] = + g_assDTG_FU_SUN_X1_LV3[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = + g_assDTG_FU_SUN_X2_LV3[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_l0[1] = + g_assDTG_FU_SUN_X1_LV4[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = + g_assDTG_FU_SUN_X2_LV4[rtb_DataTypeConversion1_h2 - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_VectorConcatenate_l0[1] = + g_assDTG_FU_SUN_X1_LV5[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = + g_assDTG_FU_SUN_X2_LV5[rtb_DataTypeConversion1_h2 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Lookup_n-D: '/2.6 FRU_tg_amb' incorporates: + * DataStoreRead: '/Data Store Read27' */ - rtb_VectorConcatenate_km[1] = g_assDTG_FL_AMB_X1_LV0[Comp_Max_RPM_Allowed - 1]; + rtb_u6FRU_tg_amb = look1_bs16ts16Dd_binlc(rtDW.Sun_R, rtb_VectorConcatenate_l0, + rtb_VectorConcatenate_gu, 2U); - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion1' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Sum: '/FLU_tg_correct1' */ + rtb_Merge_h = (int16_t)((int16_t)((int16_t)(rtb_MultiportSwitch_m + + rtb_u5FRU_tg_incar) + rtb_u6FRU_tg_amb_h) + rtb_u6FRU_tg_amb); + + /* Switch: '/Switch2' incorporates: + * DataStoreWrite: '/Data Store Write1' + * DataTypeConversion: '/Data Type Conversion2' + * RelationalOperator: '/LowerRelop1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_km[2] = g_assDTG_FL_AMB_X2_LV0[Comp_Max_RPM_Allowed - 1]; - - /* Lookup_n-D: '/2.6 FLL_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read26' - */ - rtb_Bias3 = look1_bs16ts16Dd_binlc(rtDW.Sun_L, rtb_VectorConcatenate_km, - rtb_VectorConcatenate_bl, 2U); - - /* Sum: '/FLU_tg_correct' */ - rtb_FLU_tg_correct_de = (int16_t)((int16_t)((int16_t)(rtb_u6FLU_tg_amb_hq + - rtb_MultiportSwitch_ae) + rtb_MultiportSwitch1_h) + rtb_Bias3); - - /* Selector: '/Selector' incorporates: - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_FLU_tg_correct_g = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; - - /* Switch: '/Switch2' incorporates: - * DataStoreWrite: '/Data Store Write6' - * RelationalOperator: '/LowerRelop1' - * Selector: '/Selector' - */ - if (rtb_FLU_tg_correct_de > rtb_FLU_tg_correct_g) { - rtb_FLU_tg_correct_de = rtb_FLU_tg_correct_g; + if (rtb_Merge_h > rtb_uDLookupTable7_g[rtb_DataTypeConversion1_h2 - 1]) { + rtb_Merge_h = rtb_uDLookupTable7_g[rtb_DataTypeConversion1_h2 - 1]; } else { - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV0[i]; + switch (rtb_Saturation4) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV5[i]; + } + break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* Selector: '/Selector' incorporates: - * DataTypeConversion: '/Data Type Conversion1' - * Selector: '/Selector' - */ - rtb_FLU_tg_correct_g = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; + /* Selector: '/Selector' */ + rtb_FLU_tg_correct_l = rtb_uDLookupTable7_g[rtb_DataTypeConversion1_h2 - 1]; - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write6' - * RelationalOperator: '/UpperRelop' - * Selector: '/Selector' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write1' + * RelationalOperator: '/UpperRelop' + * Selector: '/Selector' */ - if (rtb_FLU_tg_correct_de < rtb_FLU_tg_correct_g) { - rtb_FLU_tg_correct_de = rtb_FLU_tg_correct_g; + if (rtb_Merge_h < rtb_FLU_tg_correct_l) { + rtb_Merge_h = rtb_FLU_tg_correct_l; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' + /* If: '/If' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV0[i]; + if ((rtDW.step_start_controle_front == 0) || (rtDW.step_start_controle_front == + 1) || (rtDW.step_start_controle_front == 2)) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write3' incorporates: + * DataStoreRead: '/dtg from Start Control' + * DataTypeConversion: '/Data Type Conversion' + */ + rtb_Merge_h = (int16_t)rtDW.Dtg_FUR; + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of If: '/If' */ - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table' - * Lookup_n-D: '/1-D Lookup Table1' - * Lookup_n-D: '/1-D Lookup Table2' - * Lookup_n-D: '/1-D Lookup Table3' - * Lookup_n-D: '/1-D Lookup Table4' - * Lookup_n-D: '/1-D Lookup Table5' - * Saturate: '/Saturation1' + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' */ - switch (rtb_Switch3_ed) { + switch (rtb_Saturation4) { case 0: - rtb_Bias2 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assTG_FRL_LV0[0], 12U); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table' - * Lookup_n-D: '/1-D Lookup Table' - * Saturate: '/Saturation1' - */ - rtb_Bias4 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assINCAR_TG_FR_LV0[0], 12U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV0[Blower_AF_RL - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV0[Blower_AF_RL - 1]; + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MAX_LV0[i]; + } break; case 1: - rtb_Bias2 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assTG_FRL_LV1[0], 12U); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table1' - * Lookup_n-D: '/1-D Lookup Table1' - * Saturate: '/Saturation1' - */ - rtb_Bias4 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assINCAR_TG_FR_LV1[0], 12U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant1' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV1[Blower_AF_RL - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant7' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV1[Blower_AF_RL - 1]; + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MAX_LV1[i]; + } break; case 2: - rtb_Bias2 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assTG_FRL_LV2[0], 12U); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table2' - * Lookup_n-D: '/1-D Lookup Table2' - * Saturate: '/Saturation1' - */ - rtb_Bias4 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assINCAR_TG_FR_LV2[0], 12U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant2' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV2[Blower_AF_RL - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant8' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV2[Blower_AF_RL - 1]; + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MAX_LV2[i]; + } break; case 3: - rtb_Bias2 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assTG_FRL_LV3[0], 12U); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table3' - * Lookup_n-D: '/1-D Lookup Table3' - * Saturate: '/Saturation1' - */ - rtb_Bias4 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assINCAR_TG_FR_LV3[0], 12U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant3' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV3[Blower_AF_RL - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant9' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV3[Blower_AF_RL - 1]; + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MAX_LV3[i]; + } break; case 4: - rtb_Bias2 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assTG_FRL_LV4[0], 12U); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table4' - * Lookup_n-D: '/1-D Lookup Table4' - * Saturate: '/Saturation1' - */ - rtb_Bias4 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assINCAR_TG_FR_LV4[0], 12U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant4' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV4[Blower_AF_RL - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant10' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV4[Blower_AF_RL - 1]; + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MAX_LV4[i]; + } break; default: - rtb_Bias2 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assTG_FRL_LV5[0], 12U); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table5' - * Lookup_n-D: '/1-D Lookup Table5' - * Saturate: '/Saturation1' - */ - rtb_Bias4 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, - &g_assINCAR_TG_FR_LV5[0], 12U); - - /* Selector: '/Selector' incorporates: - * Constant: '/Constant5' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV5[Blower_AF_RL - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant11' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV5[Blower_AF_RL - 1]; + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MAX_LV5[i]; + } break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* Saturate: '/Saturation2' incorporates: + * DataStoreRead: '/Data Store Read18' + */ + if (rtDW.CCU_SET_RL > 290) { + rtb_Saturation2_a = 290U; + } else if (rtDW.CCU_SET_RL < 170) { + rtb_Saturation2_a = 170U; + } else { + rtb_Saturation2_a = rtDW.CCU_SET_RL; + } + + /* End of Saturate: '/Saturation2' */ + + /* Gain: '/Gain1' incorporates: + * Bias: '/Bias' + * DataTypeConversion: '/Data Type Conversion2' + * Gain: '/Gain' + * Saturate: '/Saturation1' + */ + i = ((int32_t)((52429U * rtb_Saturation2_a) >> 19) + -15) << 14; + + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Saturate: '/Saturation' + * Saturate: '/Saturation1' + */ + rtb_Sum_i1 = (uint8_t)((((uint32_t)i & 16384U) != 0U) + (i >> 15)); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table' + * Lookup_n-D: '/1-D Lookup Table1' + * Lookup_n-D: '/1-D Lookup Table2' + * Lookup_n-D: '/1-D Lookup Table3' + * Lookup_n-D: '/1-D Lookup Table4' + * Lookup_n-D: '/1-D Lookup Table5' + * Saturate: '/Saturation2' + */ + switch (rtb_Saturation4) { + case 0: + rtb_MultiportSwitch_fb = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assTG_RL_LV0[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table' + * Lookup_n-D: '/1-D Lookup Table' + * Saturate: '/Saturation2' + */ + rtb_MultiportSwitch_kf = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RL_LV0[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_R_INC_Y1_LV0[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_R_INC_Y2_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + rtb_MultiportSwitch_fb = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assTG_RL_LV1[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table1' + * Lookup_n-D: '/1-D Lookup Table1' + * Saturate: '/Saturation2' + */ + rtb_MultiportSwitch_kf = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RL_LV1[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_R_INC_Y1_LV1[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_R_INC_Y2_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + rtb_MultiportSwitch_fb = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assTG_RL_LV2[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table2' + * Lookup_n-D: '/1-D Lookup Table2' + * Saturate: '/Saturation2' + */ + rtb_MultiportSwitch_kf = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RL_LV2[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_R_INC_Y1_LV2[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_R_INC_Y2_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + rtb_MultiportSwitch_fb = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assTG_RL_LV3[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table3' + * Lookup_n-D: '/1-D Lookup Table3' + * Saturate: '/Saturation2' + */ + rtb_MultiportSwitch_kf = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RL_LV3[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_R_INC_Y1_LV3[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_R_INC_Y2_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + rtb_MultiportSwitch_fb = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assTG_RL_LV4[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table4' + * Lookup_n-D: '/1-D Lookup Table4' + * Saturate: '/Saturation2' + */ + rtb_MultiportSwitch_kf = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RL_LV4[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_R_INC_Y1_LV4[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_R_INC_Y2_LV4[rtb_Sum_i1 - 1]; + break; + + default: + rtb_MultiportSwitch_fb = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assTG_RL_LV5[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table5' + * Lookup_n-D: '/1-D Lookup Table5' + * Saturate: '/Saturation2' + */ + rtb_MultiportSwitch_kf = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RL_LV5[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_R_INC_Y1_LV5[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_R_INC_Y2_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ rtb_VectorConcatenate_jn[2] = 0; - /* MultiPortSwitch: '/Multiport Switch3' */ - switch (rtb_Switch3_ed) { + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Saturation4) { case 0: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant14' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' */ - rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV0[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jn[3] = g_assDTG_R_INC_Y3_LV0[rtb_Sum_i1 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant20' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV0[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jn[4] = g_assDTG_R_INC_Y4_LV0[rtb_Sum_i1 - 1]; - /* Selector: '/Selector' */ - rtb_VectorConcatenate_lo[0] = rtb_Bias_ct; + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[0] = g_assDTG_R_INC_X1_LV0[rtb_Sum_i1 - 1]; - /* Selector: '/Selector1' */ - rtb_VectorConcatenate_lo[1] = rtb_FLU_tg_correct_b; + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_R_INC_X2_LV0[rtb_Sum_i1 - 1]; break; case 1: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant15' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' */ - rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV1[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jn[3] = g_assDTG_R_INC_Y3_LV1[rtb_Sum_i1 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant21' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV1[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jn[4] = g_assDTG_R_INC_Y4_LV1[rtb_Sum_i1 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant1' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV1[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[0] = g_assDTG_R_INC_X1_LV1[rtb_Sum_i1 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant7' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV1[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[1] = g_assDTG_R_INC_X2_LV1[rtb_Sum_i1 - 1]; break; case 2: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant16' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' */ - rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV2[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jn[3] = g_assDTG_R_INC_Y3_LV2[rtb_Sum_i1 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant22' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV2[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jn[4] = g_assDTG_R_INC_Y4_LV2[rtb_Sum_i1 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant2' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV2[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[0] = g_assDTG_R_INC_X1_LV2[rtb_Sum_i1 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant8' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV2[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[1] = g_assDTG_R_INC_X2_LV2[rtb_Sum_i1 - 1]; break; case 3: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant17' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' */ - rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV3[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jn[3] = g_assDTG_R_INC_Y3_LV3[rtb_Sum_i1 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant23' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV3[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jn[4] = g_assDTG_R_INC_Y4_LV3[rtb_Sum_i1 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant3' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV3[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[0] = g_assDTG_R_INC_X1_LV3[rtb_Sum_i1 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant9' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV3[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[1] = g_assDTG_R_INC_X2_LV3[rtb_Sum_i1 - 1]; break; case 4: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant12' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' */ - rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV4[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jn[3] = g_assDTG_R_INC_Y3_LV4[rtb_Sum_i1 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant18' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV4[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jn[4] = g_assDTG_R_INC_Y4_LV4[rtb_Sum_i1 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant4' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV4[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[0] = g_assDTG_R_INC_X1_LV4[rtb_Sum_i1 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant10' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV4[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[1] = g_assDTG_R_INC_X2_LV4[rtb_Sum_i1 - 1]; break; default: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant13' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' */ - rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV5[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jn[3] = g_assDTG_R_INC_Y3_LV5[rtb_Sum_i1 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant19' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV5[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jn[4] = g_assDTG_R_INC_Y4_LV5[rtb_Sum_i1 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant5' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV5[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[0] = g_assDTG_R_INC_X1_LV5[rtb_Sum_i1 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant11' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV5[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[1] = g_assDTG_R_INC_X2_LV5[rtb_Sum_i1 - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch3' */ + /* End of MultiPortSwitch: '/Multiport Switch3' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ rtb_VectorConcatenate_lo[2] = 0; - /* MultiPortSwitch: '/Multiport Switch3' */ - switch (rtb_Switch3_ed) { + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Saturation4) { case 0: - /* Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[3] = rtb_Bias1_h; + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_R_INC_X3_LV0[rtb_Sum_i1 - 1]; - /* Selector: '/Selector3' */ - rtb_VectorConcatenate_lo[4] = Duct3_R; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_R_INC_X4_LV0[rtb_Sum_i1 - 1]; break; case 1: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant15' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' */ - rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV1[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[3] = g_assDTG_R_INC_X3_LV1[rtb_Sum_i1 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant21' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV1[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[4] = g_assDTG_R_INC_X4_LV1[rtb_Sum_i1 - 1]; break; case 2: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant16' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' */ - rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV2[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[3] = g_assDTG_R_INC_X3_LV2[rtb_Sum_i1 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant22' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV2[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[4] = g_assDTG_R_INC_X4_LV2[rtb_Sum_i1 - 1]; break; case 3: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant17' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' */ - rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV3[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[3] = g_assDTG_R_INC_X3_LV3[rtb_Sum_i1 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant23' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV3[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[4] = g_assDTG_R_INC_X4_LV3[rtb_Sum_i1 - 1]; break; case 4: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant12' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' */ - rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV4[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[3] = g_assDTG_R_INC_X3_LV4[rtb_Sum_i1 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant18' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV4[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[4] = g_assDTG_R_INC_X4_LV4[rtb_Sum_i1 - 1]; break; default: - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant13' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' */ - rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV5[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[3] = g_assDTG_R_INC_X3_LV5[rtb_Sum_i1 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant19' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' */ - rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV5[Blower_AF_RL - 1]; + rtb_VectorConcatenate_lo[4] = g_assDTG_R_INC_X4_LV5[rtb_Sum_i1 - 1]; break; } - /* Lookup_n-D: '/2.5 FRL_tg_incar' incorporates: + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* Lookup_n-D: '/2.5 R_tg_incar' incorporates: + * DataStoreRead: '/Data Store Read23' + * Sum: '/2.5. X = Inc_Tg - Incar_fb' + */ + rtb_u5R_tg_incar = look1_is16lu64n32Ds32_binlcn((int16_t) + (rtb_MultiportSwitch_kf - rtDW.Incar_RL), rtb_VectorConcatenate_lo, + rtb_VectorConcatenate_jn, 4U); + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_R_AMB_Y1_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_R_AMB_Y1_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_R_AMB_Y1_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_R_AMB_Y1_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_R_AMB_Y1_LV4[rtb_Sum_i1 - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_R_AMB_Y1_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_jb[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_R_AMB_Y2_LV0[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_R_AMB_X1_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_R_AMB_Y2_LV1[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_R_AMB_X1_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_R_AMB_Y2_LV2[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_R_AMB_X1_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_R_AMB_Y2_LV3[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_R_AMB_X1_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_R_AMB_Y2_LV4[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_R_AMB_X1_LV4[rtb_Sum_i1 - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_R_AMB_Y2_LV5[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_R_AMB_X1_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_mx[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_R_AMB_X2_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_R_AMB_X2_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_R_AMB_X2_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_R_AMB_X2_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_R_AMB_X2_LV4[rtb_Sum_i1 - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_R_AMB_X2_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* Lookup_n-D: '/2.6 FLU_tg_amb' */ + rtb_u6FLU_tg_amb_hk = look1_is16lu64n32Ds32_binlcn(rtb_FLU_tg_correct_a, + rtb_VectorConcatenate_mx, rtb_VectorConcatenate_jb, 2U); + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_gu[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_R_SUN_Y1_LV0[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_R_SUN_Y2_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_R_SUN_Y1_LV1[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_R_SUN_Y2_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_R_SUN_Y1_LV2[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_R_SUN_Y2_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_R_SUN_Y1_LV3[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_R_SUN_Y2_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_R_SUN_Y1_LV4[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_R_SUN_Y2_LV4[rtb_Sum_i1 - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_R_SUN_Y1_LV5[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_R_SUN_Y2_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_l0[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV0[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV1[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV2[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV3[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV4[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV4[rtb_Sum_i1 - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV5[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: + * DataStoreRead: '/Data Store Read26' + */ + rtb_u6FLU_tg_amb_o = look1_bs16ts16Dd_binlc(rtDW.Sun_L, + rtb_VectorConcatenate_l0, rtb_VectorConcatenate_gu, 2U); + + /* Sum: '/FLU_tg_correct' */ + rtb_FLU_tg_correct_me = (int16_t)((int16_t)((int16_t)(rtb_MultiportSwitch_fb + + rtb_u5R_tg_incar) + rtb_u6FLU_tg_amb_hk) + rtb_u6FLU_tg_amb_o); + + /* Switch: '/Switch2' incorporates: + * DataStoreWrite: '/Data Store Write2' + * RelationalOperator: '/LowerRelop1' + * Selector: '/Selector' + */ + if (rtb_FLU_tg_correct_me > rtb_uDLookupTable7_g[rtb_Sum_i1 - 1]) { + rtb_FLU_tg_correct_me = rtb_uDLookupTable7_g[rtb_Sum_i1 - 1]; + } else { + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' + */ + switch (rtb_Saturation4) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MIN_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MIN_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MIN_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MIN_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MIN_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MIN_LV5[i]; + } + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Selector: '/Selector' */ + rtb_FLU_tg_correct_l = rtb_uDLookupTable7_g[rtb_Sum_i1 - 1]; + + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write2' + * RelationalOperator: '/UpperRelop' + * Selector: '/Selector' + */ + if (rtb_FLU_tg_correct_me < rtb_FLU_tg_correct_l) { + rtb_FLU_tg_correct_me = rtb_FLU_tg_correct_l; + } + + /* End of Switch: '/Switch' */ + } + + /* End of Switch: '/Switch2' */ + + /* If: '/If' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + */ + if ((rtDW.step_start_controle_rear == 0) || (rtDW.step_start_controle_rear == + 1) || (rtDW.step_start_controle_rear == 2)) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write4' incorporates: + * DataStoreRead: '/dtg from Start Control' + * DataTypeConversion: '/Data Type Conversion' + */ + rtb_FLU_tg_correct_me = (int16_t)rtDW.Dtg_RL; + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } + + /* End of If: '/If' */ + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' + */ + switch (rtb_Saturation4) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MAX_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MAX_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MAX_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MAX_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MAX_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MAX_LV5[i]; + } + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Saturate: '/Saturation3' incorporates: + * DataStoreRead: '/Data Store Read19' + */ + if (rtDW.CCU_SET_RR > 290) { + rtb_Saturation2_a = 290U; + } else if (rtDW.CCU_SET_RR < 170) { + rtb_Saturation2_a = 170U; + } else { + rtb_Saturation2_a = rtDW.CCU_SET_RR; + } + + /* End of Saturate: '/Saturation3' */ + + /* Gain: '/Gain1' incorporates: + * Bias: '/Bias' + * DataTypeConversion: '/Data Type Conversion2' + * Gain: '/Gain' + * Saturate: '/Saturation1' + */ + i = ((int32_t)((52429U * rtb_Saturation2_a) >> 19) + -15) << 14; + + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Saturate: '/Saturation' + * Saturate: '/Saturation1' + */ + rtb_Sum_i1 = (uint8_t)((((uint32_t)i & 16384U) != 0U) + (i >> 15)); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table' + * Lookup_n-D: '/1-D Lookup Table1' + * Lookup_n-D: '/1-D Lookup Table2' + * Lookup_n-D: '/1-D Lookup Table3' + * Lookup_n-D: '/1-D Lookup Table4' + * Lookup_n-D: '/1-D Lookup Table5' + * Saturate: '/Saturation3' + */ + switch (rtb_Saturation4) { + case 0: + rtb_MultiportSwitch_pp = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assTG_RR_LV0[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table' + * Lookup_n-D: '/1-D Lookup Table' + * Saturate: '/Saturation3' + */ + rtb_MultiportSwitch_m5 = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RR_LV0[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_R_INC_Y1_LV0[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_R_INC_Y2_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + rtb_MultiportSwitch_pp = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assTG_RR_LV1[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table1' + * Lookup_n-D: '/1-D Lookup Table1' + * Saturate: '/Saturation3' + */ + rtb_MultiportSwitch_m5 = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RR_LV1[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_R_INC_Y1_LV1[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_R_INC_Y2_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + rtb_MultiportSwitch_pp = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assTG_RR_LV2[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table2' + * Lookup_n-D: '/1-D Lookup Table2' + * Saturate: '/Saturation3' + */ + rtb_MultiportSwitch_m5 = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RR_LV2[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_R_INC_Y1_LV2[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_R_INC_Y2_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + rtb_MultiportSwitch_pp = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assTG_RR_LV3[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table3' + * Lookup_n-D: '/1-D Lookup Table3' + * Saturate: '/Saturation3' + */ + rtb_MultiportSwitch_m5 = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RR_LV3[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_R_INC_Y1_LV3[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_R_INC_Y2_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + rtb_MultiportSwitch_pp = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assTG_RR_LV4[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table4' + * Lookup_n-D: '/1-D Lookup Table4' + * Saturate: '/Saturation3' + */ + rtb_MultiportSwitch_m5 = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RR_LV4[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_R_INC_Y1_LV4[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_R_INC_Y2_LV4[rtb_Sum_i1 - 1]; + break; + + default: + rtb_MultiportSwitch_pp = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assTG_RR_LV5[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table5' + * Lookup_n-D: '/1-D Lookup Table5' + * Saturate: '/Saturation3' + */ + rtb_MultiportSwitch_m5 = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RR_LV5[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_R_INC_Y1_LV5[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_R_INC_Y2_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_jn[2] = 0; + + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_R_INC_Y3_LV0[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_R_INC_Y4_LV0[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[0] = g_assDTG_R_INC_X1_LV0[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_R_INC_X2_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_R_INC_Y3_LV1[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_R_INC_Y4_LV1[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[0] = g_assDTG_R_INC_X1_LV1[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_R_INC_X2_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_R_INC_Y3_LV2[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_R_INC_Y4_LV2[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[0] = g_assDTG_R_INC_X1_LV2[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_R_INC_X2_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_R_INC_Y3_LV3[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_R_INC_Y4_LV3[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[0] = g_assDTG_R_INC_X1_LV3[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_R_INC_X2_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_R_INC_Y3_LV4[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_R_INC_Y4_LV4[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[0] = g_assDTG_R_INC_X1_LV4[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_R_INC_X2_LV4[rtb_Sum_i1 - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_R_INC_Y3_LV5[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_R_INC_Y4_LV5[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[0] = g_assDTG_R_INC_X1_LV5[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_R_INC_X2_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_lo[2] = 0; + + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_R_INC_X3_LV0[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_R_INC_X4_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_R_INC_X3_LV1[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_R_INC_X4_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_R_INC_X3_LV2[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_R_INC_X4_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_R_INC_X3_LV3[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_R_INC_X4_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_R_INC_X3_LV4[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_R_INC_X4_LV4[rtb_Sum_i1 - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_R_INC_X3_LV5[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_R_INC_X4_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: + * DataStoreRead: '/Data Store Read24' + * Sum: '/2.5. X = Inc_Tg - Incar_fb' + */ + rtb_X = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_MultiportSwitch_m5 - + rtDW.Incar_RR), rtb_VectorConcatenate_lo, rtb_VectorConcatenate_jn, 4U); + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_R_AMB_Y1_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_R_AMB_Y1_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_R_AMB_Y1_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_R_AMB_Y1_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_R_AMB_Y1_LV4[rtb_Sum_i1 - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_R_AMB_Y1_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_jb[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_R_AMB_Y2_LV0[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_R_AMB_X1_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_R_AMB_Y2_LV1[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_R_AMB_X1_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_R_AMB_Y2_LV2[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_R_AMB_X1_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_R_AMB_Y2_LV3[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_R_AMB_X1_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_R_AMB_Y2_LV4[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_R_AMB_X1_LV4[rtb_Sum_i1 - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_R_AMB_Y2_LV5[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_R_AMB_X1_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_mx[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_R_AMB_X2_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_R_AMB_X2_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_R_AMB_X2_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_R_AMB_X2_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_R_AMB_X2_LV4[rtb_Sum_i1 - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_R_AMB_X2_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* Lookup_n-D: '/2.6 FLU_tg_amb' */ + rtb_MultiportSwitch_i = look1_is16lu64n32Ds32_binlcn(rtb_FLU_tg_correct_a, + rtb_VectorConcatenate_mx, rtb_VectorConcatenate_jb, 2U); + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_gu[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_R_SUN_Y1_LV0[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_R_SUN_Y2_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_R_SUN_Y1_LV1[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_R_SUN_Y2_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_R_SUN_Y1_LV2[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_R_SUN_Y2_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_R_SUN_Y1_LV3[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_R_SUN_Y2_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_R_SUN_Y1_LV4[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_R_SUN_Y2_LV4[rtb_Sum_i1 - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_R_SUN_Y1_LV5[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_R_SUN_Y2_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_l0[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV0[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV0[rtb_Sum_i1 - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV1[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV1[rtb_Sum_i1 - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV2[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV2[rtb_Sum_i1 - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV3[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV3[rtb_Sum_i1 - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV4[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV4[rtb_Sum_i1 - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FU_SUN_X1_LV5[rtb_Sum_i1 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FU_SUN_X2_LV5[rtb_Sum_i1 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: + * DataStoreRead: '/Data Store Read27' + */ + rtb_u6FLU_tg_amb_f = look1_bs16ts16Dd_binlc(rtDW.Sun_R, + rtb_VectorConcatenate_l0, rtb_VectorConcatenate_gu, 2U); + + /* Sum: '/FLU_tg_correct' */ + rtDW.Duct_RR_Tg = (int16_t)((int16_t)((int16_t)(rtb_MultiportSwitch_pp + rtb_X) + + rtb_MultiportSwitch_i) + rtb_u6FLU_tg_amb_f); + + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * Selector: '/Selector' + */ + if (rtDW.Duct_RR_Tg > rtb_uDLookupTable7_g[rtb_Sum_i1 - 1]) { + /* Sum: '/FLU_tg_correct' */ + rtDW.Duct_RR_Tg = rtb_uDLookupTable7_g[rtb_Sum_i1 - 1]; + } else { + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' + */ + switch (rtb_Saturation4) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MIN_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MIN_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MIN_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MIN_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MIN_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_R_MIN_LV5[i]; + } + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Selector: '/Selector' */ + rtb_FLU_tg_correct_l = rtb_uDLookupTable7_g[rtb_Sum_i1 - 1]; + + /* Switch: '/Switch' incorporates: + * RelationalOperator: '/UpperRelop' + * Selector: '/Selector' + */ + if (rtDW.Duct_RR_Tg < rtb_FLU_tg_correct_l) { + /* Sum: '/FLU_tg_correct' */ + rtDW.Duct_RR_Tg = rtb_FLU_tg_correct_l; + } + + /* End of Switch: '/Switch' */ + } + + /* End of Switch: '/Switch2' */ + + /* If: '/If' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + */ + if ((rtDW.step_start_controle_rear == 0) || (rtDW.step_start_controle_rear == + 1) || (rtDW.step_start_controle_rear == 2)) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* Sum: '/FLU_tg_correct' incorporates: + * DataStoreRead: '/dtg from Start Control' + * DataStoreWrite: '/Data Store Write5' + * DataTypeConversion: '/Data Type Conversion' + */ + rtDW.Duct_RR_Tg = (int16_t)rtDW.Dtg_RR; + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } + + /* End of If: '/If' */ + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' + */ + switch (rtb_Saturation4) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV0[i]; + } + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant' + * Lookup_n-D: '/1-D Lookup Table' + * Saturate: '/Saturation' + */ + rtb_u6FLU_tg_amb_l = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, + rtConstP.pooled45, &g_assTG_FLL_LV0[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table' + * Saturate: '/Saturation' + */ + rtb_u5FLU_tg_incar_ce = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, + rtConstP.pooled45, &g_assINCAR_TG_FL_LV0[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV1[i]; + } + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant1' + * Lookup_n-D: '/1-D Lookup Table1' + * Saturate: '/Saturation' + */ + rtb_u6FLU_tg_amb_l = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, + rtConstP.pooled45, &g_assTG_FLL_LV1[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table1' + * Saturate: '/Saturation' + */ + rtb_u5FLU_tg_incar_ce = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, + rtConstP.pooled45, &g_assINCAR_TG_FL_LV1[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV2[i]; + } + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant2' + * Lookup_n-D: '/1-D Lookup Table2' + * Saturate: '/Saturation' + */ + rtb_u6FLU_tg_amb_l = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, + rtConstP.pooled45, &g_assTG_FLL_LV2[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table2' + * Saturate: '/Saturation' + */ + rtb_u5FLU_tg_incar_ce = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, + rtConstP.pooled45, &g_assINCAR_TG_FL_LV2[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV3[i]; + } + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant3' + * Lookup_n-D: '/1-D Lookup Table3' + * Saturate: '/Saturation' + */ + rtb_u6FLU_tg_amb_l = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, + rtConstP.pooled45, &g_assTG_FLL_LV3[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table3' + * Saturate: '/Saturation' + */ + rtb_u5FLU_tg_incar_ce = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, + rtConstP.pooled45, &g_assINCAR_TG_FL_LV3[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV4[i]; + } + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant4' + * Lookup_n-D: '/1-D Lookup Table4' + * Saturate: '/Saturation' + */ + rtb_u6FLU_tg_amb_l = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, + rtConstP.pooled45, &g_assTG_FLL_LV4[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table4' + * Saturate: '/Saturation' + */ + rtb_u5FLU_tg_incar_ce = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, + rtConstP.pooled45, &g_assINCAR_TG_FL_LV4[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV4[rtb_Switch3_e - 1]; + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV5[i]; + } + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant5' + * Lookup_n-D: '/1-D Lookup Table5' + * Saturate: '/Saturation' + */ + rtb_u6FLU_tg_amb_l = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, + rtConstP.pooled45, &g_assTG_FLL_LV5[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table5' + * Saturate: '/Saturation' + */ + rtb_u5FLU_tg_incar_ce = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, + rtConstP.pooled45, &g_assINCAR_TG_FL_LV5[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[0] = g_assDTG_FL_INC_Y1_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = g_assDTG_FL_INC_Y2_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_jn[2] = 0; + + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = g_assDTG_FL_INC_Y4_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[0] = g_assDTG_FU_INC_X1_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = g_assDTG_FU_INC_X2_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_lo[2] = 0; + + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = g_assDTG_FU_INC_X4_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* Lookup_n-D: '/2.5 FLL_tg_incar' incorporates: + * DataStoreRead: '/Data Store Read21' + * Sum: '/2.5. X = Inc_Tg - Incar_fb' + */ + rtb_MultiportSwitch_j = look1_is16lu64n32Ds32_binlcn((int16_t) + (rtb_u5FLU_tg_incar_ce - rtDW.Incar_FL), rtb_VectorConcatenate_lo, + rtb_VectorConcatenate_jn, 4U); + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_FL_AMB_Y1_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_FL_AMB_Y1_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_FL_AMB_Y1_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_FL_AMB_Y1_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_FL_AMB_Y1_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assDTG_FL_AMB_Y1_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_jb[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_FL_AMB_Y2_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_FL_AMB_X1_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_FL_AMB_Y2_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_FL_AMB_X1_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_FL_AMB_Y2_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_FL_AMB_X1_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_FL_AMB_Y2_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_FL_AMB_X1_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_FL_AMB_Y2_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_FL_AMB_X1_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assDTG_FL_AMB_Y2_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assDTG_FL_AMB_X1_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_mx[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_FL_AMB_X2_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_FL_AMB_X2_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_FL_AMB_X2_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_FL_AMB_X2_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_FL_AMB_X2_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assDTG_FL_AMB_X2_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* Lookup_n-D: '/2.6 FLL_tg_amb' */ + rtb_MultiportSwitch1_oi = look1_is16lu64n32Ds32_binlcn(rtb_FLU_tg_correct_a, + rtb_VectorConcatenate_mx, rtb_VectorConcatenate_jb, 2U); + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_gu[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_FL_SUN_Y1_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_FL_SUN_Y2_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_FL_SUN_Y1_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_FL_SUN_Y2_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_FL_SUN_Y1_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_FL_SUN_Y2_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_FL_SUN_Y1_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_FL_SUN_Y2_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_FL_SUN_Y1_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_FL_SUN_Y2_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assDTG_FL_SUN_Y1_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assDTG_FL_SUN_Y2_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_l0[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FL_SUN_X1_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FL_SUN_X2_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FL_SUN_X1_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FL_SUN_X2_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FL_SUN_X1_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FL_SUN_X2_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FL_SUN_X1_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FL_SUN_X2_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FL_SUN_X1_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FL_SUN_X2_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assDTG_FL_SUN_X1_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assDTG_FL_SUN_X2_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Lookup_n-D: '/2.6 FLL_tg_amb' incorporates: + * DataStoreRead: '/Data Store Read26' + */ + rtb_Bias3 = look1_bs16ts16Dd_binlc(rtDW.Sun_L, rtb_VectorConcatenate_l0, + rtb_VectorConcatenate_gu, 2U); + + /* Sum: '/FLU_tg_correct' */ + rtb_FLU_tg_correct_i = (int16_t)((int16_t)((int16_t)(rtb_u6FLU_tg_amb_l + + rtb_MultiportSwitch_j) + rtb_MultiportSwitch1_oi) + rtb_Bias3); + + /* Switch: '/Switch2' incorporates: + * DataStoreWrite: '/Data Store Write4' + * DataTypeConversion: '/Data Type Conversion1' + * RelationalOperator: '/LowerRelop1' + * Selector: '/Selector' + * Selector: '/Selector' + */ + if (rtb_FLU_tg_correct_i > rtb_uDLookupTable7_g[rtb_Switch3_e - 1]) { + rtb_FLU_tg_correct_i = rtb_uDLookupTable7_g[rtb_Switch3_e - 1]; + } else { + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' + */ + switch (rtb_Saturation4) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV5[i]; + } + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Selector: '/Selector' */ + rtb_FLU_tg_correct_l = rtb_uDLookupTable7_g[rtb_Switch3_e - 1]; + + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write4' + * RelationalOperator: '/UpperRelop' + * Selector: '/Selector' + */ + if (rtb_FLU_tg_correct_i < rtb_FLU_tg_correct_l) { + rtb_FLU_tg_correct_i = rtb_FLU_tg_correct_l; + } + + /* End of Switch: '/Switch' */ + } + + /* End of Switch: '/Switch2' */ + + /* If: '/If' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/mode from Start Control' + * DataStoreWrite: '/Data Store Write6' + * DataTypeConversion: '/Data Type Conversion' + * Logic: '/Logical Operator' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * Sum: '/Sum' + */ + if ((rtDW.step_start_controle_front == 0) || (rtDW.step_start_controle_front == + 1) || (rtDW.step_start_controle_front == 2)) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + rtb_FLU_tg_correct_i = (int16_t)rtDW.Dtg_FLL; + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } + + rtb_FLU_tg_correct_i += rtDW.Dtg_individual_foot_FL; + + /* End of If: '/If' */ + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' + */ + switch (rtb_Saturation4) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV0[i]; + } + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant' + * Lookup_n-D: '/1-D Lookup Table' + * Saturate: '/Saturation1' + */ + rtb_Bias2_n = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled45, + &g_assTG_FRL_LV0[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table' + * Saturate: '/Saturation1' + */ + rtb_Bias4 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled45, + &g_assINCAR_TG_FR_LV0[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[0] = + g_assDTG_FL_INC_Y1_LV0[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = + g_assDTG_FL_INC_Y2_LV0[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV1[i]; + } + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant1' + * Lookup_n-D: '/1-D Lookup Table1' + * Saturate: '/Saturation1' + */ + rtb_Bias2_n = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled45, + &g_assTG_FRL_LV1[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table1' + * Saturate: '/Saturation1' + */ + rtb_Bias4 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled45, + &g_assINCAR_TG_FR_LV1[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[0] = + g_assDTG_FL_INC_Y1_LV1[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = + g_assDTG_FL_INC_Y2_LV1[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV2[i]; + } + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant2' + * Lookup_n-D: '/1-D Lookup Table2' + * Saturate: '/Saturation1' + */ + rtb_Bias2_n = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled45, + &g_assTG_FRL_LV2[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table2' + * Saturate: '/Saturation1' + */ + rtb_Bias4 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled45, + &g_assINCAR_TG_FR_LV2[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[0] = + g_assDTG_FL_INC_Y1_LV2[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = + g_assDTG_FL_INC_Y2_LV2[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV3[i]; + } + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant3' + * Lookup_n-D: '/1-D Lookup Table3' + * Saturate: '/Saturation1' + */ + rtb_Bias2_n = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled45, + &g_assTG_FRL_LV3[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table3' + * Saturate: '/Saturation1' + */ + rtb_Bias4 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled45, + &g_assINCAR_TG_FR_LV3[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[0] = + g_assDTG_FL_INC_Y1_LV3[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = + g_assDTG_FL_INC_Y2_LV3[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV4[i]; + } + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant4' + * Lookup_n-D: '/1-D Lookup Table4' + * Saturate: '/Saturation1' + */ + rtb_Bias2_n = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled45, + &g_assTG_FRL_LV4[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table4' + * Saturate: '/Saturation1' + */ + rtb_Bias4 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled45, + &g_assINCAR_TG_FR_LV4[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[0] = + g_assDTG_FL_INC_Y1_LV4[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = + g_assDTG_FL_INC_Y2_LV4[rtb_DataTypeConversion1_h2 - 1]; + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV5[i]; + } + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant5' + * Lookup_n-D: '/1-D Lookup Table5' + * Saturate: '/Saturation1' + */ + rtb_Bias2_n = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled45, + &g_assTG_FRL_LV5[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table5' + * Saturate: '/Saturation1' + */ + rtb_Bias4 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled45, + &g_assINCAR_TG_FR_LV5[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[0] = + g_assDTG_FL_INC_Y1_LV5[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[1] = + g_assDTG_FL_INC_Y2_LV5[rtb_DataTypeConversion1_h2 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_jn[2] = 0; + + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = + g_assDTG_FL_INC_Y3_LV0[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = + g_assDTG_FL_INC_Y4_LV0[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[0] = + g_assDTG_FU_INC_X1_LV0[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = + g_assDTG_FU_INC_X2_LV0[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = + g_assDTG_FL_INC_Y3_LV1[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = + g_assDTG_FL_INC_Y4_LV1[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[0] = + g_assDTG_FU_INC_X1_LV1[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = + g_assDTG_FU_INC_X2_LV1[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = + g_assDTG_FL_INC_Y3_LV2[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = + g_assDTG_FL_INC_Y4_LV2[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[0] = + g_assDTG_FU_INC_X1_LV2[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = + g_assDTG_FU_INC_X2_LV2[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = + g_assDTG_FL_INC_Y3_LV3[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = + g_assDTG_FL_INC_Y4_LV3[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[0] = + g_assDTG_FU_INC_X1_LV3[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = + g_assDTG_FU_INC_X2_LV3[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = + g_assDTG_FL_INC_Y3_LV4[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = + g_assDTG_FL_INC_Y4_LV4[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[0] = + g_assDTG_FU_INC_X1_LV4[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = + g_assDTG_FU_INC_X2_LV4[rtb_DataTypeConversion1_h2 - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = + g_assDTG_FL_INC_Y3_LV5[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[4] = + g_assDTG_FL_INC_Y4_LV5[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[0] = + g_assDTG_FU_INC_X1_LV5[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[1] = + g_assDTG_FU_INC_X2_LV5[rtb_DataTypeConversion1_h2 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_lo[2] = 0; + + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = + g_assDTG_FU_INC_X3_LV0[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = + g_assDTG_FU_INC_X4_LV0[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = + g_assDTG_FU_INC_X3_LV1[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = + g_assDTG_FU_INC_X4_LV1[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = + g_assDTG_FU_INC_X3_LV2[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = + g_assDTG_FU_INC_X4_LV2[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = + g_assDTG_FU_INC_X3_LV3[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = + g_assDTG_FU_INC_X4_LV3[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = + g_assDTG_FU_INC_X3_LV4[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = + g_assDTG_FU_INC_X4_LV4[rtb_DataTypeConversion1_h2 - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = + g_assDTG_FU_INC_X3_LV5[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[4] = + g_assDTG_FU_INC_X4_LV5[rtb_DataTypeConversion1_h2 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* Lookup_n-D: '/2.5 FRL_tg_incar' incorporates: * DataStoreRead: '/Data Store Read22' - * Sum: '/2.5. X = Inc_Tg - Incar_fb' + * Sum: '/2.5. X = Inc_Tg - Incar_fb' */ rtb_Bias1_h = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_Bias4 - rtDW.Incar_FR), rtb_VectorConcatenate_lo, rtb_VectorConcatenate_jn, 4U); - /* MultiPortSwitch: '/Multiport Switch1' */ - switch (rtb_Switch3_ed) { + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { case 0: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV0[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jb[0] = + g_assDTG_FL_AMB_Y1_LV0[rtb_DataTypeConversion1_h2 - 1]; break; case 1: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant1' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV1[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jb[0] = + g_assDTG_FL_AMB_Y1_LV1[rtb_DataTypeConversion1_h2 - 1]; break; case 2: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant2' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV2[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jb[0] = + g_assDTG_FL_AMB_Y1_LV2[rtb_DataTypeConversion1_h2 - 1]; break; case 3: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant3' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV3[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jb[0] = + g_assDTG_FL_AMB_Y1_LV3[rtb_DataTypeConversion1_h2 - 1]; break; case 4: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant4' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV4[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jb[0] = + g_assDTG_FL_AMB_Y1_LV4[rtb_DataTypeConversion1_h2 - 1]; break; default: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant5' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV5[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jb[0] = + g_assDTG_FL_AMB_Y1_LV5[rtb_DataTypeConversion1_h2 - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_e0[1] = 0; + rtb_VectorConcatenate_jb[1] = 0; - /* MultiPortSwitch: '/Multiport Switch2' */ - switch (rtb_Switch3_ed) { + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { case 0: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV0[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jb[2] = + g_assDTG_FL_AMB_Y2_LV0[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV0[Blower_AF_RL - 1]; + rtb_VectorConcatenate_mx[0] = + g_assDTG_FL_AMB_X1_LV0[rtb_DataTypeConversion1_h2 - 1]; break; case 1: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant7' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV1[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jb[2] = + g_assDTG_FL_AMB_Y2_LV1[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant1' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV1[Blower_AF_RL - 1]; + rtb_VectorConcatenate_mx[0] = + g_assDTG_FL_AMB_X1_LV1[rtb_DataTypeConversion1_h2 - 1]; break; case 2: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant8' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV2[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jb[2] = + g_assDTG_FL_AMB_Y2_LV2[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant2' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV2[Blower_AF_RL - 1]; + rtb_VectorConcatenate_mx[0] = + g_assDTG_FL_AMB_X1_LV2[rtb_DataTypeConversion1_h2 - 1]; break; case 3: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant9' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV3[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jb[2] = + g_assDTG_FL_AMB_Y2_LV3[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant3' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV3[Blower_AF_RL - 1]; + rtb_VectorConcatenate_mx[0] = + g_assDTG_FL_AMB_X1_LV3[rtb_DataTypeConversion1_h2 - 1]; break; case 4: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant10' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV4[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jb[2] = + g_assDTG_FL_AMB_Y2_LV4[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant4' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV4[Blower_AF_RL - 1]; + rtb_VectorConcatenate_mx[0] = + g_assDTG_FL_AMB_X1_LV4[rtb_DataTypeConversion1_h2 - 1]; break; default: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant11' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV5[Blower_AF_RL - 1]; + rtb_VectorConcatenate_jb[2] = + g_assDTG_FL_AMB_Y2_LV5[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant5' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' */ - rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV5[Blower_AF_RL - 1]; + rtb_VectorConcatenate_mx[0] = + g_assDTG_FL_AMB_X1_LV5[rtb_DataTypeConversion1_h2 - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch2' */ + /* End of MultiPortSwitch: '/Multiport Switch2' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_lg[1] = 0; + rtb_VectorConcatenate_mx[1] = 0; - /* MultiPortSwitch: '/Multiport Switch2' */ - switch (rtb_Switch3_ed) { + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Saturation4) { case 0: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV0[Blower_AF_RL - 1]; + rtb_VectorConcatenate_mx[2] = + g_assDTG_FL_AMB_X2_LV0[rtb_DataTypeConversion1_h2 - 1]; break; case 1: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant7' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV1[Blower_AF_RL - 1]; + rtb_VectorConcatenate_mx[2] = + g_assDTG_FL_AMB_X2_LV1[rtb_DataTypeConversion1_h2 - 1]; break; case 2: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant8' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV2[Blower_AF_RL - 1]; + rtb_VectorConcatenate_mx[2] = + g_assDTG_FL_AMB_X2_LV2[rtb_DataTypeConversion1_h2 - 1]; break; case 3: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant9' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV3[Blower_AF_RL - 1]; + rtb_VectorConcatenate_mx[2] = + g_assDTG_FL_AMB_X2_LV3[rtb_DataTypeConversion1_h2 - 1]; break; case 4: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant10' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV4[Blower_AF_RL - 1]; + rtb_VectorConcatenate_mx[2] = + g_assDTG_FL_AMB_X2_LV4[rtb_DataTypeConversion1_h2 - 1]; break; default: - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant11' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV5[Blower_AF_RL - 1]; + rtb_VectorConcatenate_mx[2] = + g_assDTG_FL_AMB_X2_LV5[rtb_DataTypeConversion1_h2 - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch2' */ + /* End of MultiPortSwitch: '/Multiport Switch2' */ - /* Lookup_n-D: '/2.6 FLL_tg_amb' */ - rtb_Bias_ct = look1_is16lu64n32Ds32_binlcn(rtb_Bias5, rtb_VectorConcatenate_lg, - rtb_VectorConcatenate_e0, 2U); + /* Lookup_n-D: '/2.6 FLL_tg_amb' */ + rtb_Bias_ct = look1_is16lu64n32Ds32_binlcn(rtb_FLU_tg_correct_a, + rtb_VectorConcatenate_mx, rtb_VectorConcatenate_jb, 2U); - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_bl[0] = 0; + rtb_VectorConcatenate_gu[0] = 0; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_bl[1] = g_assDTG_FL_SUN_Y1_LV0[Blower_AF_RL - 1]; - - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_bl[2] = g_assDTG_FL_SUN_Y2_LV0[Blower_AF_RL - 1]; - - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_km[0] = 0; - - /* MultiPortSwitch: '/Multiport Switch1' */ - switch (rtb_Switch3_ed) { + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { case 0: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_km[1] = g_assDTG_FL_AMB_X1_LV0[Blower_AF_RL - 1]; + rtb_VectorConcatenate_gu[1] = + g_assDTG_FL_SUN_Y1_LV0[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_km[2] = g_assDTG_FL_AMB_X2_LV0[Blower_AF_RL - 1]; + rtb_VectorConcatenate_gu[2] = + g_assDTG_FL_SUN_Y2_LV0[rtb_DataTypeConversion1_h2 - 1]; break; case 1: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant1' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_km[1] = g_assDTG_FL_AMB_X1_LV1[Blower_AF_RL - 1]; + rtb_VectorConcatenate_gu[1] = + g_assDTG_FL_SUN_Y1_LV1[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant7' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_km[2] = g_assDTG_FL_AMB_X2_LV1[Blower_AF_RL - 1]; + rtb_VectorConcatenate_gu[2] = + g_assDTG_FL_SUN_Y2_LV1[rtb_DataTypeConversion1_h2 - 1]; break; case 2: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant2' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_km[1] = g_assDTG_FL_AMB_X1_LV2[Blower_AF_RL - 1]; + rtb_VectorConcatenate_gu[1] = + g_assDTG_FL_SUN_Y1_LV2[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant8' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_km[2] = g_assDTG_FL_AMB_X2_LV2[Blower_AF_RL - 1]; + rtb_VectorConcatenate_gu[2] = + g_assDTG_FL_SUN_Y2_LV2[rtb_DataTypeConversion1_h2 - 1]; break; case 3: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant3' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_km[1] = g_assDTG_FL_AMB_X1_LV3[Blower_AF_RL - 1]; + rtb_VectorConcatenate_gu[1] = + g_assDTG_FL_SUN_Y1_LV3[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant9' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_km[2] = g_assDTG_FL_AMB_X2_LV3[Blower_AF_RL - 1]; + rtb_VectorConcatenate_gu[2] = + g_assDTG_FL_SUN_Y2_LV3[rtb_DataTypeConversion1_h2 - 1]; break; case 4: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant4' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_km[1] = g_assDTG_FL_AMB_X1_LV4[Blower_AF_RL - 1]; + rtb_VectorConcatenate_gu[1] = + g_assDTG_FL_SUN_Y1_LV4[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant10' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_km[2] = g_assDTG_FL_AMB_X2_LV4[Blower_AF_RL - 1]; + rtb_VectorConcatenate_gu[2] = + g_assDTG_FL_SUN_Y2_LV4[rtb_DataTypeConversion1_h2 - 1]; break; default: - /* Selector: '/Selector' incorporates: - * Constant: '/Constant5' - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_km[1] = g_assDTG_FL_AMB_X1_LV5[Blower_AF_RL - 1]; + rtb_VectorConcatenate_gu[1] = + g_assDTG_FL_SUN_Y1_LV5[rtb_DataTypeConversion1_h2 - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant11' - * DataTypeConversion: '/Data Type Conversion2' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - rtb_VectorConcatenate_km[2] = g_assDTG_FL_AMB_X2_LV5[Blower_AF_RL - 1]; + rtb_VectorConcatenate_gu[2] = + g_assDTG_FL_SUN_Y2_LV5[rtb_DataTypeConversion1_h2 - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* Lookup_n-D: '/2.6 FLL_tg_amb' incorporates: + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_l0[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Saturation4) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = + g_assDTG_FL_SUN_X1_LV0[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = + g_assDTG_FL_SUN_X2_LV0[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = + g_assDTG_FL_SUN_X1_LV1[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = + g_assDTG_FL_SUN_X2_LV1[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = + g_assDTG_FL_SUN_X1_LV2[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = + g_assDTG_FL_SUN_X2_LV2[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = + g_assDTG_FL_SUN_X1_LV3[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = + g_assDTG_FL_SUN_X2_LV3[rtb_DataTypeConversion1_h2 - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = + g_assDTG_FL_SUN_X1_LV4[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = + g_assDTG_FL_SUN_X2_LV4[rtb_DataTypeConversion1_h2 - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = + g_assDTG_FL_SUN_X1_LV5[rtb_DataTypeConversion1_h2 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = + g_assDTG_FL_SUN_X2_LV5[rtb_DataTypeConversion1_h2 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Lookup_n-D: '/2.6 FLL_tg_amb' incorporates: * DataStoreRead: '/Data Store Read27' */ - rtb_Bias5 = look1_bs16ts16Dd_binlc(rtDW.Sun_R, rtb_VectorConcatenate_km, - rtb_VectorConcatenate_bl, 2U); + rtb_Bias5 = look1_bs16ts16Dd_binlc(rtDW.Sun_R, rtb_VectorConcatenate_l0, + rtb_VectorConcatenate_gu, 2U); - /* Sum: '/FLU_tg_correct' */ - rtb_FLU_tg_correct_b = (int16_t)((int16_t)((int16_t)(rtb_Bias2 + rtb_Bias1_h) + /* Sum: '/FLU_tg_correct' */ + rtb_FLU_tg_correct_a = (int16_t)((int16_t)((int16_t)(rtb_Bias2_n + rtb_Bias1_h) + rtb_Bias_ct) + rtb_Bias5); - /* Selector: '/Selector' incorporates: - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' + /* Switch: '/Switch2' incorporates: + * DataStoreWrite: '/Data Store Write5' + * DataTypeConversion: '/Data Type Conversion2' + * RelationalOperator: '/LowerRelop1' + * Selector: '/Selector' + * Selector: '/Selector' */ - rtb_FLU_tg_correct_g = rtb_uDLookupTable7_g[Blower_AF_RL - 1]; - - /* Switch: '/Switch2' incorporates: - * DataStoreWrite: '/Data Store Write7' - * RelationalOperator: '/LowerRelop1' - * Selector: '/Selector' - */ - if (rtb_FLU_tg_correct_b > rtb_FLU_tg_correct_g) { - rtb_FLU_tg_correct_b = rtb_FLU_tg_correct_g; + if (rtb_FLU_tg_correct_a > rtb_uDLookupTable7_g[rtb_DataTypeConversion1_h2 - 1]) + { + rtb_FLU_tg_correct_a = rtb_uDLookupTable7_g[rtb_DataTypeConversion1_h2 - 1]; } else { - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV0[i]; + switch (rtb_Saturation4) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV5[i]; + } + break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* Selector: '/Selector' incorporates: - * DataTypeConversion: '/Data Type Conversion2' - * Selector: '/Selector' - */ - rtb_FLU_tg_correct_g = rtb_uDLookupTable7_g[Blower_AF_RL - 1]; + /* Selector: '/Selector' */ + rtb_FLU_tg_correct_l = rtb_uDLookupTable7_g[rtb_DataTypeConversion1_h2 - 1]; - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write7' - * RelationalOperator: '/UpperRelop' - * Selector: '/Selector' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write5' + * RelationalOperator: '/UpperRelop' + * Selector: '/Selector' */ - if (rtb_FLU_tg_correct_b < rtb_FLU_tg_correct_g) { - rtb_FLU_tg_correct_b = rtb_FLU_tg_correct_g; + if (rtb_FLU_tg_correct_a < rtb_FLU_tg_correct_l) { + rtb_FLU_tg_correct_a = rtb_FLU_tg_correct_l; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_lo[0] = rtb_u6FLU_tg_amb_hq; + /* If: '/If' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/mode from Start Control' + * DataStoreWrite: '/Data Store Write7' + * DataTypeConversion: '/Data Type Conversion' + * Logic: '/Logical Operator' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * Sum: '/Sum' + */ + if ((rtDW.step_start_controle_front == 0) || (rtDW.step_start_controle_front == + 1) || (rtDW.step_start_controle_front == 2)) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + rtb_FLU_tg_correct_a = (int16_t)rtDW.Dtg_FLR; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_lo[1] = rtb_MultiportSwitch_ae; + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_lo[2] = rtb_MultiportSwitch1_h; + rtb_FLU_tg_correct_a += rtDW.Dtg_individual_foot_FR; - /* SignalConversion generated from: '/Vector Concatenate' */ + /* End of If: '/If' */ + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_lo[0] = rtb_u6FLU_tg_amb_l; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_lo[1] = rtb_MultiportSwitch_j; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_lo[2] = rtb_MultiportSwitch1_oi; + + /* SignalConversion generated from: '/Vector Concatenate' */ rtb_VectorConcatenate_lo[3] = rtb_Bias3; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_lo[4] = rtb_u5FLU_tg_incar_l; + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_lo[4] = rtb_u5FLU_tg_incar_ce; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_jn[2] = rtb_y_lg; + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_jn[0] = rtb_Bias2_n; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_jn[3] = rtb_y_bf; + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_jn[1] = rtb_Bias1_h; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_j[0] = rtb_Bias2; + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_jn[2] = rtb_Bias_ct; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_j[1] = rtb_Bias1_h; + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_jn[3] = rtb_Bias5; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_j[2] = rtb_Bias_ct; + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_jn[4] = rtb_Bias4; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_j[3] = rtb_Bias5; + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_ic[0] = rtb_MultiportSwitch_pp; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_j[4] = rtb_Bias4; + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_ic[1] = rtb_X; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_bp[0] = rtb_y_h5; + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_ic[2] = rtb_MultiportSwitch_i; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_bp[1] = rtb_y_fe; + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_ic[3] = rtb_u6FLU_tg_amb_f; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_bp[2] = rtb_y_ar; + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_ic[4] = rtb_MultiportSwitch_m5; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_bp[3] = rtb_u6FLU_tg_amb; + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_gl[0] = rtb_MultiportSwitch_m; - /* SignalConversion generated from: '/Vector Concatenate' */ - rtb_VectorConcatenate_bp[4] = rtb_y_ck; + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_gl[1] = rtb_u5FRU_tg_incar; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_gl[2] = rtb_u6FRU_tg_amb_h; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_gl[3] = rtb_u6FRU_tg_amb; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_gl[4] = rtb_MultiportSwitch_nz; for (i = 0; i < 5; i++) { - /* DataStoreWrite: '/Data Store Write' */ - Duct_FRL_Tg_DBG[i] = rtb_VectorConcatenate_j[i]; + /* DataStoreWrite: '/Data Store Write' */ + Duct_RR_Tg_DBG[i] = rtb_VectorConcatenate_ic[i]; - /* DataStoreWrite: '/Data Store Write' */ - Duct_FRU_Tg_DBG[i] = rtb_VectorConcatenate_bp[i]; + /* DataStoreWrite: '/Data Store Write' */ + Duct_FRU_Tg_DBG[i] = rtb_VectorConcatenate_gl[i]; } - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(Gain, &rtb_LogicalOperator5); + /* MATLAB Function: '/is_ending_with_5' */ + is_ending_with_5(Gain, &rtb_LogicalOperator_fc); - /* MATLAB Function: '/correction rate' incorporates: - * Gain: '/Gain2' + /* MATLAB Function: '/correction rate' incorporates: + * Gain: '/Gain2' */ /* : correct_after_time = [g_assCORRECT_DUCT_MAX_LV0; g_assCORRECT_DUCT_MAX_LV1; g_assCORRECT_DUCT_MAX_LV2; g_assCORRECT_DUCT_MAX_LV3; g_assCORRECT_DUCT_MAX_LV4; g_assCORRECT_DUCT_MAX_LV5]; */ /* : y = correct_after_time(LVL + 1, idivide(SET - 16 + 1, 2)); */ - correctionrate((int16_t)(rtb_dt_an + (uint32_t)((rtb_Subtract & 262144U) != 0U)), - rtb_Switch3_ed, &rtb_Bias5); + correctionrate((int16_t)(rtb_dt_nx + (uint32_t)((rtb_Subtract & 262144U) != 0U)), + rtb_Saturation4, &rtb_Bias3); - /* MATLAB Function: '/is_ending_with_5' */ + /* MATLAB Function: '/is_ending_with_5' */ /* : correct_after_time = [g_assCORRECT_DUCT_TIME_FL_LV0; g_assCORRECT_DUCT_TIME_FL_LV1; g_assCORRECT_DUCT_TIME_FL_LV2; g_assCORRECT_DUCT_TIME_FL_LV3; g_assCORRECT_DUCT_TIME_FL_LV4; g_assCORRECT_DUCT_TIME_FL_LV5]; */ /* : y = correct_after_time(LVL + 1, idivide(SET - 16 + 1, 2)); */ - is_ending_with_5(Gain1, &rtb_LogicalOperator5); + is_ending_with_5(Gain1, &rtb_LogicalOperator_fc); - /* MATLAB Function: '/correction rate' incorporates: - * Gain: '/Gain2' + /* MATLAB Function: '/correction rate' incorporates: + * Gain: '/Gain2' */ /* : correct_after_time = [g_assCORRECT_DUCT_MAX_LV0; g_assCORRECT_DUCT_MAX_LV1; g_assCORRECT_DUCT_MAX_LV2; g_assCORRECT_DUCT_MAX_LV3; g_assCORRECT_DUCT_MAX_LV4; g_assCORRECT_DUCT_MAX_LV5]; */ /* : y = correct_after_time(LVL + 1, idivide(SET - 16 + 1, 2)); */ - correctionrate((int16_t)(rtb_Gain_fc_tmp_tmp_0 + (uint32_t) - ((rtb_Gain_fc_tmp_tmp & 262144U) != 0U)), rtb_Switch3_ed, &rtb_Bias5); + correctionrate((int16_t)(rtb_Saturation1_h_tmp_tmp_0 + (uint32_t) + ((rtb_Saturation1_h_tmp_tmp & 262144U) != 0U)), rtb_Saturation4, &rtb_Bias3); - /* Outputs for Enabled SubSystem: '/Front Left AF - manual directions' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Front Left AF - manual directions' incorporates: + * EnablePort: '/Enable' */ - /* RelationalOperator: '/Equal2' incorporates: - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read44' + /* RelationalOperator: '/Equal2' incorporates: + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read44' */ /* : correct_after_time = [g_assCORRECT_DUCT_TIME_FR_LV0; g_assCORRECT_DUCT_TIME_FR_LV1; g_assCORRECT_DUCT_TIME_FR_LV2; g_assCORRECT_DUCT_TIME_FR_LV3; g_assCORRECT_DUCT_TIME_FR_LV4; g_assCORRECT_DUCT_TIME_FR_LV5]; */ /* : y = correct_after_time(LVL + 1, idivide(SET - 16 + 1, 2)); */ if (rtDW.CCU_MODE_FL == 0) { - /* MATLAB Function: '/AF for Bi Level' incorporates: + /* MATLAB Function: '/AF for Bi Level' incorporates: * DataStoreRead: '/Data Store Read11' */ AFforBiLevel(rtDW.CCU_BLOWERS_FL, &Gain); - /* MATLAB Function: '/AF for Def' incorporates: + /* MATLAB Function: '/AF for Def' incorporates: * DataStoreRead: '/Data Store Read11' */ AFforDef(rtDW.CCU_BLOWERS_FL, &Gain1); - /* MATLAB Function: '/AF for Foor + Def' incorporates: + /* MATLAB Function: '/AF for Foor + Def' incorporates: * DataStoreRead: '/Data Store Read11' */ - AFforFoorDef(rtDW.CCU_BLOWERS_FL, &rtb_out_eu); + AFforFoorDef(rtDW.CCU_BLOWERS_FL, &rtb_Saturation2_a); - /* MATLAB Function: '/AF for Foot' incorporates: + /* MATLAB Function: '/AF for Foot' incorporates: * DataStoreRead: '/Data Store Read11' */ - AFforFoot(rtDW.CCU_BLOWERS_FL, &rtb_out_aq0); + AFforFoot(rtDW.CCU_BLOWERS_FL, &rtb_out_os); - /* MATLAB Function: '/AF for Hi_Level' incorporates: + /* MATLAB Function: '/AF for Hi_Level' incorporates: * DataStoreRead: '/Data Store Read11' */ - AFforHi_Level(rtDW.CCU_BLOWERS_FL, &rtb_out_ddc); + AFforHi_Level(rtDW.CCU_BLOWERS_FL, &rtb_out_nq); - /* MATLAB Function: '/AF for Tri-Level' incorporates: + /* MATLAB Function: '/AF for Tri-Level' incorporates: * DataStoreRead: '/Data Store Read11' */ AFforTriLevel(rtDW.CCU_BLOWERS_FL, &rtB.MultiportSwitch_o2); - /* MATLAB Function: '/AF for Vent mode' incorporates: + /* MATLAB Function: '/AF for Vent mode' incorporates: * DataStoreRead: '/Data Store Read11' */ - AFforVentmode(rtDW.CCU_BLOWERS_FL, &rtb_out_p4); + AFforVentmode(rtDW.CCU_BLOWERS_FL, &rtb_out_ee); - /* RelationalOperator: '/Relational Operator2' incorporates: - * Constant: '/Constant2' + /* RelationalOperator: '/Relational Operator2' incorporates: + * Constant: '/Constant2' * DataStoreRead: '/Data Store Read9' */ - rtb_LogicalOperator5 = (rtDW.CCU_FOOT_FL == 1); + rtb_LogicalOperator_fc = (rtDW.CCU_FOOT_FL == 1); - /* DataTypeConversion: '/Data Type Conversion5' */ - rtb_Switch_gs = rtb_LogicalOperator5; - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read6' * DataStoreRead: '/Data Store Read8' - * DataTypeConversion: '/Data Type Conversion5' - * Gain: '/Gain1' - * Gain: '/Gain2' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * Sum: '/Add' + * DataTypeConversion: '/Data Type Conversion5' + * Gain: '/Gain1' + * Gain: '/Gain2' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * Sum: '/Add' */ switch ((int32_t)(((uint32_t)((rtDW.CCU_FACE_FL == 1) << 1) + (uint32_t) - (rtDW.CCU_DEF_FL == 1)) + (uint32_t)(rtb_LogicalOperator5 - << 2))) { + (rtDW.CCU_DEF_FL == 1)) + (uint32_t) + (rtb_LogicalOperator_fc << 2))) { case 0: - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant3' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant3' */ rtB.MultiportSwitch_o2 = 0U; break; case 1: - /* MultiPortSwitch: '/Multiport Switch' */ + /* MultiPortSwitch: '/Multiport Switch' */ rtB.MultiportSwitch_o2 = Gain1; break; case 2: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_o2 = rtb_out_p4; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_o2 = rtb_out_ee; break; case 3: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_o2 = rtb_out_ddc; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_o2 = rtb_out_nq; break; case 4: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_o2 = rtb_out_aq0; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_o2 = rtb_out_os; break; case 5: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_o2 = rtb_out_eu; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_o2 = rtb_Saturation2_a; break; case 6: - /* MultiPortSwitch: '/Multiport Switch' */ + /* MultiPortSwitch: '/Multiport Switch' */ rtB.MultiportSwitch_o2 = Gain; break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ } - /* End of RelationalOperator: '/Equal2' */ - /* End of Outputs for SubSystem: '/Front Left AF - manual directions' */ + /* End of RelationalOperator: '/Equal2' */ + /* End of Outputs for SubSystem: '/Front Left AF - manual directions' */ - /* MATLAB Function: '/func g_ascAUTO_STEP_AF_F' incorporates: - * DataStoreRead: '/Data Store Read' - * DataTypeConversion: '/Data Type Conversion1' + /* MATLAB Function: '/func g_ascAUTO_STEP_AF_F' incorporates: + * DataStoreRead: '/Data Store Read' + * DataTypeConversion: '/Data Type Conversion1' */ - funcg_ascAUTO_STEP_AF_F((int8_t)rtDW.CCU_AUTOMODE_FL, &rtb_y_b2); + funcg_ascAUTO_STEP_AF_F((int8_t)rtDW.CCU_AUTOMODE_FL, &rtb_y_c); - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' + /* Saturate: '/Saturation9' incorporates: + * DataStoreRead: '/Data Store Read42' */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV0[i]; + if (rtDW.LEVEL <= 5) { + rtb_Sum_i1 = rtDW.LEVEL; + } else { + rtb_Sum_i1 = 5U; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of Saturate: '/Saturation9' */ + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' + */ + switch (rtb_Sum_i1) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV5[i]; + } + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ /* Saturate: '/Saturation5' incorporates: * DataStoreRead: '/Data Store Read30' @@ -12460,487 +13808,1195 @@ void HVAC_model_step(void) /* End of Saturate: '/Saturation5' */ - /* Gain: '/Gain4' incorporates: - * Bias: '/Bias1' - * DataTypeConversion: '/Data Type Conversion4' - * Gain: '/Gain3' - * Gain: '/Gain' + /* Gain: '/Gain4' incorporates: + * Bias: '/Bias1' + * DataTypeConversion: '/Data Type Conversion4' + * Gain: '/Gain3' + * Saturate: '/Saturation1' */ - rtb_Gain_pl = ((int32_t)((52429U * Gain) >> 19) + -15) << 14; + i = ((int32_t)((52429U * Gain) >> 19) + -15) << 14; - /* DataTypeConversion: '/Data Type Conversion3' incorporates: - * Gain: '/Gain' - * Saturate: '/Saturation1' + /* DataTypeConversion: '/Data Type Conversion3' incorporates: + * Saturate: '/Saturation1' + * Saturate: '/Saturation1' */ - Comp_Max_RPM_Allowed = (uint8_t)((((uint32_t)rtb_Gain_pl & 16384U) != 0U) + - (rtb_Gain_pl >> 15)); + rtb_Saturation4 = (uint8_t)((((uint32_t)i & 16384U) != 0U) + (i >> 15)); - /* Selector: '/Selector' */ - rtb_Bias5 = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; + /* Selector: '/Selector' */ + rtb_Bias5 = rtb_uDLookupTable7_g[rtb_Saturation4 - 1]; - /* Saturate: '/Saturation9' incorporates: - * DataStoreRead: '/Data Store Read42' - */ - if (rtDW.LEVEL <= 5) { - rtb_Saturation9 = rtDW.LEVEL; - } else { - rtb_Saturation9 = 5U; - } - - /* End of Saturate: '/Saturation9' */ - - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Lookup_n-D: '/1-D Lookup Table10' - * Lookup_n-D: '/1-D Lookup Table11' - * Lookup_n-D: '/1-D Lookup Table6' - * Lookup_n-D: '/1-D Lookup Table7' - * Lookup_n-D: '/1-D Lookup Table8' - * Lookup_n-D: '/1-D Lookup Table9' + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Lookup_n-D: '/1-D Lookup Table10' + * Lookup_n-D: '/1-D Lookup Table11' + * Lookup_n-D: '/1-D Lookup Table6' + * Lookup_n-D: '/1-D Lookup Table7' + * Lookup_n-D: '/1-D Lookup Table8' + * Lookup_n-D: '/1-D Lookup Table9' * Saturate: '/Saturation5' */ - switch (rtb_Saturation9) { + switch (rtb_Sum_i1) { case 0: - rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled72, + rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled63, &g_assVTG_FL_LV0[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table6' - * Lookup_n-D: '/1-D Lookup Table' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table6' + * Lookup_n-D: '/1-D Lookup Table' * Saturate: '/Saturation5' */ - rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, rtConstP.pooled51, + rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, rtConstP.pooled45, &g_assINCAR_TG_FL_LV0[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[0] = g_assVF_INC_Y1_LV0[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVF_INC_Y2_LV0[rtb_Saturation4 - 1]; break; case 1: - rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled72, + rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled63, &g_assVTG_FL_LV1[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table7' - * Lookup_n-D: '/1-D Lookup Table1' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table7' + * Lookup_n-D: '/1-D Lookup Table1' * Saturate: '/Saturation5' */ - rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, rtConstP.pooled51, + rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, rtConstP.pooled45, &g_assINCAR_TG_FL_LV1[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[0] = g_assVF_INC_Y1_LV1[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVF_INC_Y2_LV1[rtb_Saturation4 - 1]; break; case 2: - rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled72, + rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled63, &g_assVTG_FL_LV1[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table8' - * Lookup_n-D: '/1-D Lookup Table2' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table8' + * Lookup_n-D: '/1-D Lookup Table2' * Saturate: '/Saturation5' */ - rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, rtConstP.pooled51, + rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, rtConstP.pooled45, &g_assINCAR_TG_FL_LV2[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[0] = g_assVF_INC_Y1_LV2[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVF_INC_Y2_LV2[rtb_Saturation4 - 1]; break; case 3: - rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled72, + rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled63, &g_assVTG_FL_LV3[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table9' - * Lookup_n-D: '/1-D Lookup Table3' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table9' + * Lookup_n-D: '/1-D Lookup Table3' * Saturate: '/Saturation5' */ - rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, rtConstP.pooled51, + rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, rtConstP.pooled45, &g_assINCAR_TG_FL_LV3[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[0] = g_assVF_INC_Y1_LV3[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVF_INC_Y2_LV3[rtb_Saturation4 - 1]; break; case 4: - rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled72, + rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled63, &g_assVTG_FL_LV4[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table10' - * Lookup_n-D: '/1-D Lookup Table4' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table10' + * Lookup_n-D: '/1-D Lookup Table4' * Saturate: '/Saturation5' */ - rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, rtConstP.pooled51, + rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, rtConstP.pooled45, &g_assINCAR_TG_FL_LV4[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[0] = g_assVF_INC_Y1_LV4[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVF_INC_Y2_LV4[rtb_Saturation4 - 1]; break; default: - rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled72, + rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled63, &g_assVTG_FL_LV5[0], 12U); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table11' - * Lookup_n-D: '/1-D Lookup Table5' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table11' + * Lookup_n-D: '/1-D Lookup Table5' * Saturate: '/Saturation5' */ - rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, rtConstP.pooled51, + rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain, rtConstP.pooled45, &g_assINCAR_TG_FL_LV5[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[0] = g_assVF_INC_Y1_LV5[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVF_INC_Y2_LV5[rtb_Saturation4 - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_bp[0] = g_assVF_INC_Y1_LV0[Comp_Max_RPM_Allowed - 1]; + rtb_VectorConcatenate_gl[2] = 0; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[3] = g_assVF_INC_Y3_LV0[rtb_Saturation4 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[4] = g_assVF_INC_Y4_LV0[rtb_Saturation4 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[0] = g_assVF_INC_X1_LV0[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[1] = g_assVF_INC_X2_LV0[rtb_Saturation4 - 1]; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[3] = g_assVF_INC_Y3_LV1[rtb_Saturation4 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[4] = g_assVF_INC_Y4_LV1[rtb_Saturation4 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[0] = g_assVF_INC_X1_LV1[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[1] = g_assVF_INC_X2_LV1[rtb_Saturation4 - 1]; + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[3] = g_assVF_INC_Y3_LV2[rtb_Saturation4 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[4] = g_assVF_INC_Y4_LV2[rtb_Saturation4 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[0] = g_assVF_INC_X1_LV2[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[1] = g_assVF_INC_X2_LV2[rtb_Saturation4 - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[3] = g_assVF_INC_Y3_LV3[rtb_Saturation4 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[4] = g_assVF_INC_Y4_LV3[rtb_Saturation4 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[0] = g_assVF_INC_X1_LV3[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[1] = g_assVF_INC_X2_LV3[rtb_Saturation4 - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[3] = g_assVF_INC_Y3_LV4[rtb_Saturation4 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[4] = g_assVF_INC_Y4_LV4[rtb_Saturation4 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[0] = g_assVF_INC_X1_LV4[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[1] = g_assVF_INC_X2_LV4[rtb_Saturation4 - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[3] = g_assVF_INC_Y3_LV5[rtb_Saturation4 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[4] = g_assVF_INC_Y4_LV5[rtb_Saturation4 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[0] = g_assVF_INC_X1_LV5[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[1] = g_assVF_INC_X2_LV5[rtb_Saturation4 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_bp[1] = g_assVF_INC_Y2_LV0[Comp_Max_RPM_Allowed - 1]; + rtb_VectorConcatenate_ic[2] = 0; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_bp[2] = 0; + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[3] = g_assVF_INC_X3_LV0[rtb_Saturation4 - 1]; - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant14' - * MultiPortSwitch: '/Multiport Switch3' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_bp[3] = g_assVF_INC_Y3_LV0[Comp_Max_RPM_Allowed - 1]; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[4] = g_assVF_INC_X4_LV0[rtb_Saturation4 - 1]; + break; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant20' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_bp[4] = g_assVF_INC_Y4_LV0[Comp_Max_RPM_Allowed - 1]; + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[3] = g_assVF_INC_X3_LV1[rtb_Saturation4 - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_j[0] = g_assVF_INC_X1_LV0[Comp_Max_RPM_Allowed - 1]; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[4] = g_assVF_INC_X4_LV1[rtb_Saturation4 - 1]; + break; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_j[1] = g_assVF_INC_X2_LV0[Comp_Max_RPM_Allowed - 1]; + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[3] = g_assVF_INC_X3_LV2[rtb_Saturation4 - 1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_j[2] = 0; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[4] = g_assVF_INC_X4_LV2[rtb_Saturation4 - 1]; + break; - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant14' - * MultiPortSwitch: '/Multiport Switch3' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_j[3] = g_assVF_INC_X3_LV0[Comp_Max_RPM_Allowed - 1]; + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[3] = g_assVF_INC_X3_LV3[rtb_Saturation4 - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant20' - * MultiPortSwitch: '/Multiport Switch4' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_j[4] = g_assVF_INC_X4_LV0[Comp_Max_RPM_Allowed - 1]; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[4] = g_assVF_INC_X4_LV3[rtb_Saturation4 - 1]; + break; - /* Lookup_n-D: '/2.5 Vtg_Fx_tg_incar' incorporates: + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[3] = g_assVF_INC_X3_LV4[rtb_Saturation4 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[4] = g_assVF_INC_X4_LV4[rtb_Saturation4 - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[3] = g_assVF_INC_X3_LV5[rtb_Saturation4 - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[4] = g_assVF_INC_X4_LV5[rtb_Saturation4 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* Lookup_n-D: '/2.5 Vtg_Fx_tg_incar' incorporates: * DataStoreRead: '/Data Store Read35' - * Sum: '/2.5. X = Incar_Tg - Incar_fb' + * Sum: '/2.5. X = Incar_Tg - Incar_fb' */ rtb_Bias4 = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_Bias1_h - rtDW.Incar_FL), - rtb_VectorConcatenate_j, rtb_VectorConcatenate_bp, 4U); + rtb_VectorConcatenate_ic, rtb_VectorConcatenate_gl, 4U); - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assVF_AMB_Y1_LV0[rtb_Saturation4 - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assVF_AMB_Y1_LV1[rtb_Saturation4 - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assVF_AMB_Y1_LV2[rtb_Saturation4 - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assVF_AMB_Y1_LV3[rtb_Saturation4 - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assVF_AMB_Y1_LV4[rtb_Saturation4 - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assVF_AMB_Y1_LV5[rtb_Saturation4 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_e0[0] = g_assVF_AMB_Y1_LV0[Comp_Max_RPM_Allowed - 1]; + rtb_VectorConcatenate_jb[1] = 0; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assVF_AMB_Y2_LV0[rtb_Saturation4 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assVF_AMB_X1_LV0[rtb_Saturation4 - 1]; + break; + + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assVF_AMB_Y2_LV1[rtb_Saturation4 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assVF_AMB_X1_LV1[rtb_Saturation4 - 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assVF_AMB_Y2_LV2[rtb_Saturation4 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assVF_AMB_X1_LV2[rtb_Saturation4 - 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assVF_AMB_Y2_LV3[rtb_Saturation4 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assVF_AMB_X1_LV3[rtb_Saturation4 - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assVF_AMB_Y2_LV4[rtb_Saturation4 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assVF_AMB_X1_LV4[rtb_Saturation4 - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assVF_AMB_Y2_LV5[rtb_Saturation4 - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assVF_AMB_X1_LV5[rtb_Saturation4 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_e0[1] = 0; + rtb_VectorConcatenate_mx[1] = 0; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_e0[2] = g_assVF_AMB_Y2_LV0[Comp_Max_RPM_Allowed - 1]; + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assVF_AMB_X2_LV0[rtb_Saturation4 - 1]; + break; - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' - * Selector: '/Selector' - * Selector: '/Selector' - */ - rtb_u6FLU_tg_amb_hq = g_assVF_AMB_X1_LV0[Comp_Max_RPM_Allowed - 1]; + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assVF_AMB_X2_LV1[rtb_Saturation4 - 1]; + break; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' - */ - rtb_VectorConcatenate_lg[0] = rtb_u6FLU_tg_amb_hq; + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assVF_AMB_X2_LV2[rtb_Saturation4 - 1]; + break; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_lg[1] = 0; + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assVF_AMB_X2_LV3[rtb_Saturation4 - 1]; + break; - /* MultiPortSwitch: '/Multiport Switch2' incorporates: - * Constant: '/Constant6' - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - * Selector: '/Selector1' - * Selector: '/Selector1' - */ - rtb_u5FLU_tg_incar_l = g_assVF_AMB_X2_LV0[Comp_Max_RPM_Allowed - 1]; + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assVF_AMB_X2_LV4[rtb_Saturation4 - 1]; + break; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - */ - rtb_VectorConcatenate_lg[2] = rtb_u5FLU_tg_incar_l; + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assVF_AMB_X2_LV5[rtb_Saturation4 - 1]; + break; + } - /* Sum: '/2.6. X = Amb_Tg - Amb_Fb' incorporates: - * Bias: '/Bias1' - * Constant: '/Constant1' + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* Sum: '/2.6. X = Amb_Tg - Amb_Fb' incorporates: + * Bias: '/Bias1' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read34' - * Selector: '/Selector2' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + * Selector: '/Selector2' + * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + * Sum: '/2.6. X = Amb_Tg - Amb_Fb' */ - rtb_u6FLU_tg_amb = (int16_t)(g_assAMB_LV_TG[rtb_Saturation9] - rtDW.AMB); + rtb_FLU_tg_correct_l = (int16_t)(g_assAMB_LV_TG[rtb_Sum_i1] - rtDW.AMB); - /* Lookup_n-D: '/2.6 Vtg_Fx_tg_amb' incorporates: - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + /* Lookup_n-D: '/2.6 Vtg_Fx_tg_amb' incorporates: + * Sum: '/2.6. X = Amb_Tg - Amb_Fb' */ - rtb_Bias2 = look1_is16lu64n32Ds32_binlcn(rtb_u6FLU_tg_amb, - rtb_VectorConcatenate_lg, rtb_VectorConcatenate_e0, 2U); + rtb_Bias2_n = look1_is16lu64n32Ds32_binlcn(rtb_FLU_tg_correct_l, + rtb_VectorConcatenate_mx, rtb_VectorConcatenate_jb, 2U); - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' - * Selector: '/Selector' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_e0[0] = g_assVF_SUN_Y1_LV0[Comp_Max_RPM_Allowed - 1]; + rtb_VectorConcatenate_gu[0] = 0; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assVF_SUN_Y1_LV0[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVF_SUN_Y2_LV0[rtb_Saturation4 - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assVF_SUN_Y1_LV1[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVF_SUN_Y2_LV1[rtb_Saturation4 - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assVF_SUN_Y1_LV2[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVF_SUN_Y2_LV2[rtb_Saturation4 - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assVF_SUN_Y1_LV3[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVF_SUN_Y2_LV3[rtb_Saturation4 - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assVF_SUN_Y1_LV4[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVF_SUN_Y2_LV4[rtb_Saturation4 - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assVF_SUN_Y1_LV5[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVF_SUN_Y2_LV5[rtb_Saturation4 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_e0[1] = 0; + rtb_VectorConcatenate_l0[0] = 0; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - * Selector: '/Selector' - */ - rtb_VectorConcatenate_e0[2] = g_assVF_SUN_Y2_LV0[Comp_Max_RPM_Allowed - 1]; + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assVF_SUN_X1_LV0[rtb_Saturation4 - 1]; - /* Selector: '/Selector' */ - rtb_VectorConcatenate_lg[0] = rtb_u6FLU_tg_amb_hq; + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVF_SUN_X2_LV0[rtb_Saturation4 - 1]; + break; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_lg[1] = 0; + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assVF_SUN_X1_LV1[rtb_Saturation4 - 1]; - /* Selector: '/Selector1' */ - rtb_VectorConcatenate_lg[2] = rtb_u5FLU_tg_incar_l; + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVF_SUN_X2_LV1[rtb_Saturation4 - 1]; + break; - /* Lookup_n-D: '/2.6 Vtg_Fx_tg_amb' incorporates: + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assVF_SUN_X1_LV2[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVF_SUN_X2_LV2[rtb_Saturation4 - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assVF_SUN_X1_LV3[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVF_SUN_X2_LV3[rtb_Saturation4 - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assVF_SUN_X1_LV4[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVF_SUN_X2_LV4[rtb_Saturation4 - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assVF_SUN_X1_LV5[rtb_Saturation4 - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVF_SUN_X2_LV5[rtb_Saturation4 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Lookup_n-D: '/2.6 Vtg_Fx_tg_amb' incorporates: * DataStoreRead: '/Data Store Read39' */ - rtb_Bias3 = look1_bs16ts16Dd_binlc(rtDW.Sun_L, rtb_VectorConcatenate_lg, - rtb_VectorConcatenate_e0, 2U); + rtb_Bias3 = look1_bs16ts16Dd_binlc(rtDW.Sun_L, rtb_VectorConcatenate_l0, + rtb_VectorConcatenate_gu, 2U); - /* Sum: '/2.8. Vtg_FX_plus' */ - rtb_u5FLU_tg_incar_l = (int16_t)((int16_t)((int16_t)(rtb_Bias_ct + rtb_Bias4) - + rtb_Bias2) + rtb_Bias3); + /* Sum: '/2.8. Vtg_FX_plus' */ + rtb_u6FLU_tg_amb_f = (int16_t)((int16_t)((int16_t)(rtb_Bias_ct + rtb_Bias4) + + rtb_Bias2_n) + rtb_Bias3); - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ - if (rtb_u5FLU_tg_incar_l <= rtb_Bias5) { - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' + if (rtb_u6FLU_tg_amb_f <= rtb_Bias5) { + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV0[i]; + switch (rtb_Sum_i1) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV5[i]; + } + break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* Selector: '/Selector' incorporates: - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Selector: '/Selector' */ - rtb_Bias5 = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; + rtb_Bias5 = rtb_uDLookupTable7_g[rtb_Saturation4 - 1]; - /* Switch: '/Switch' incorporates: - * RelationalOperator: '/UpperRelop' - * Selector: '/Selector' + /* Switch: '/Switch' incorporates: + * RelationalOperator: '/UpperRelop' + * Selector: '/Selector' */ - if (rtb_u5FLU_tg_incar_l >= rtb_Bias5) { - rtb_Bias5 = rtb_u5FLU_tg_incar_l; + if (rtb_u6FLU_tg_amb_f >= rtb_Bias5) { + rtb_Bias5 = rtb_u6FLU_tg_amb_f; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* DataTypeConversion: '/Data Type Conversion3' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - Comp_Max_RPM_Allowed = (uint8_t)rtb_Bias5; - - /* Switch: '/Switch' incorporates: + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' * Constant: '/manual' + * DataStoreRead: '/AF from Start Control' + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read46' - * DataStoreWrite: '/Data Store Write19' - * DataTypeConversion: '/Data Type Conversion3' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion3' - * Gain: '/Gain' - * Product: '/Product' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion3' + * Gain: '/Gain' + * Logic: '/Logical Operator' + * Product: '/Product' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' * RelationalOperator: '/Equal1' - * Sum: '/Add' + * Sum: '/Add' + * Switch: '/Switch' */ - if (rtDW.CCU_MODE_FL == 0) { - Blower_AF_FL = (uint8_t)rtB.MultiportSwitch_o2; + if ((rtDW.step_start_controle_front == 0) || (rtDW.step_start_controle_front == + 1) || (rtDW.step_start_controle_front == 2)) { + Comp_Max_RPM_Allowed = rtDW.Blower_FL; + } else if (rtDW.CCU_MODE_FL == 0) { + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion3' + */ + Comp_Max_RPM_Allowed = (uint8_t)rtB.MultiportSwitch_o2; } else { - Blower_AF_FL = 0.01 * (double)rtb_y_b2 * (double)(uint8_t)rtb_Bias5 + - (double)(uint8_t)rtb_Bias5; + Comp_Max_RPM_Allowed = (uint8_t)(0.01 * (double)rtb_y_c * (double)(uint8_t) + rtb_Bias5 + (double)(uint8_t)rtb_Bias5); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Outputs for Enabled SubSystem: '/Front Right AF - manual directions' incorporates: - * EnablePort: '/Enable' + /* Sum: '/Sum' incorporates: + * DataStoreRead: '/Data Store Read2' + * DataStoreWrite: '/Data Store Write19' */ - /* RelationalOperator: '/Equal3' incorporates: - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read45' + rtb_Saturation4 = (uint8_t)(Comp_Max_RPM_Allowed + + rtDW.Blower_individual_foot_FL); + + /* Outputs for Enabled SubSystem: '/Front Right AF - manual directions' incorporates: + * EnablePort: '/Enable' + */ + /* RelationalOperator: '/Equal3' incorporates: + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read45' */ if (rtDW.CCU_MODE_FR == 0) { - /* MATLAB Function: '/AF for Bi Level' incorporates: + /* MATLAB Function: '/AF for Bi Level' incorporates: * DataStoreRead: '/Data Store Read7' */ AFforBiLevel(rtDW.CCU_BLOWERS_FR, &Gain1); - /* MATLAB Function: '/AF for Def' incorporates: + /* MATLAB Function: '/AF for Def' incorporates: * DataStoreRead: '/Data Store Read7' */ - AFforDef(rtDW.CCU_BLOWERS_FR, &rtb_out_eu); + AFforDef(rtDW.CCU_BLOWERS_FR, &rtb_Saturation2_a); - /* MATLAB Function: '/AF for Foor + Def' incorporates: + /* MATLAB Function: '/AF for Foor + Def' incorporates: * DataStoreRead: '/Data Store Read7' */ - AFforFoorDef(rtDW.CCU_BLOWERS_FR, &rtb_out_aq0); + AFforFoorDef(rtDW.CCU_BLOWERS_FR, &rtb_out_os); - /* MATLAB Function: '/AF for Foot' incorporates: + /* MATLAB Function: '/AF for Foot' incorporates: * DataStoreRead: '/Data Store Read7' */ - AFforFoot(rtDW.CCU_BLOWERS_FR, &rtb_out_ddc); + AFforFoot(rtDW.CCU_BLOWERS_FR, &rtb_out_nq); - /* MATLAB Function: '/AF for Hi_Level' incorporates: + /* MATLAB Function: '/AF for Hi_Level' incorporates: * DataStoreRead: '/Data Store Read7' */ - AFforHi_Level(rtDW.CCU_BLOWERS_FR, &rtb_out_p4); + AFforHi_Level(rtDW.CCU_BLOWERS_FR, &rtb_out_ee); - /* MATLAB Function: '/AF for Tri-Level' incorporates: + /* MATLAB Function: '/AF for Tri-Level' incorporates: * DataStoreRead: '/Data Store Read7' */ AFforTriLevel(rtDW.CCU_BLOWERS_FR, &rtB.MultiportSwitch_a); - /* MATLAB Function: '/AF for Vent mode' incorporates: + /* MATLAB Function: '/AF for Vent mode' incorporates: * DataStoreRead: '/Data Store Read7' */ - AFforVentmode(rtDW.CCU_BLOWERS_FR, &rtb_out_e5); + AFforVentmode(rtDW.CCU_BLOWERS_FR, &rtb_out_p1); - /* RelationalOperator: '/Relational Operator2' incorporates: - * Constant: '/Constant2' + /* RelationalOperator: '/Relational Operator2' incorporates: + * Constant: '/Constant2' * DataStoreRead: '/Data Store Read14' */ - rtb_LogicalOperator5 = (rtDW.CCU_FOOT_FR == 1); + rtb_LogicalOperator_fc = (rtDW.CCU_FOOT_FR == 1); - /* DataTypeConversion: '/Data Type Conversion5' */ - rtb_Switch_gs = rtb_LogicalOperator5; - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read12' * DataStoreRead: '/Data Store Read13' - * DataTypeConversion: '/Data Type Conversion5' - * Gain: '/Gain1' - * Gain: '/Gain2' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * Sum: '/Add' + * DataTypeConversion: '/Data Type Conversion5' + * Gain: '/Gain1' + * Gain: '/Gain2' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * Sum: '/Add' */ switch ((int32_t)(((uint32_t)((rtDW.CCU_FACE_FR == 1) << 1) + (uint32_t) - (rtDW.CCU_DEF_FR == 1)) + (uint32_t)(rtb_LogicalOperator5 - << 2))) { + (rtDW.CCU_DEF_FR == 1)) + (uint32_t) + (rtb_LogicalOperator_fc << 2))) { case 0: - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant3' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant3' */ rtB.MultiportSwitch_a = 0U; break; case 1: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_a = rtb_out_eu; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_a = rtb_Saturation2_a; break; case 2: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_a = rtb_out_e5; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_a = rtb_out_p1; break; case 3: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_a = rtb_out_p4; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_a = rtb_out_ee; break; case 4: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_a = rtb_out_ddc; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_a = rtb_out_nq; break; case 5: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_a = rtb_out_aq0; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_a = rtb_out_os; break; case 6: - /* MultiPortSwitch: '/Multiport Switch' */ + /* MultiPortSwitch: '/Multiport Switch' */ rtB.MultiportSwitch_a = Gain1; break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ } - /* End of RelationalOperator: '/Equal3' */ - /* End of Outputs for SubSystem: '/Front Right AF - manual directions' */ + /* End of RelationalOperator: '/Equal3' */ + /* End of Outputs for SubSystem: '/Front Right AF - manual directions' */ - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' */ /* : y = g_ascAUTO_STEP_AF_F(AF_STEP); */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV0[i]; + switch (rtb_Sum_i1) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV5[i]; + } + break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ /* Saturate: '/Saturation6' incorporates: * DataStoreRead: '/Data Store Read31' @@ -12955,274 +15011,1039 @@ void HVAC_model_step(void) /* End of Saturate: '/Saturation6' */ - /* Selector: '/Selector' */ - rtb_Bias5 = rtb_uDLookupTable7_g[6]; + /* Gain: '/Gain4' incorporates: + * Bias: '/Bias1' + * DataTypeConversion: '/Data Type Conversion4' + * Gain: '/Gain3' + * Saturate: '/Saturation1' + */ + i = ((int32_t)((52429U * Gain1) >> 19) + -15) << 14; - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Lookup_n-D: '/1-D Lookup Table6' + /* DataTypeConversion: '/Data Type Conversion3' incorporates: + * Saturate: '/Saturation1' + * Saturate: '/Saturation1' + */ + rtb_Switch3_e = (uint8_t)((((uint32_t)i & 16384U) != 0U) + (i >> 15)); + + /* Selector: '/Selector' */ + rtb_Bias5 = rtb_uDLookupTable7_g[rtb_Switch3_e - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Lookup_n-D: '/1-D Lookup Table10' + * Lookup_n-D: '/1-D Lookup Table11' + * Lookup_n-D: '/1-D Lookup Table6' + * Lookup_n-D: '/1-D Lookup Table7' + * Lookup_n-D: '/1-D Lookup Table8' + * Lookup_n-D: '/1-D Lookup Table9' * Saturate: '/Saturation6' */ - rtb_MultiportSwitch1_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, - rtConstP.pooled72, &g_assVTG_FR_LV0[0], 12U); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Lookup_n-D: '/1-D Lookup Table' - * Lookup_n-D: '/1-D Lookup Table1' - * Lookup_n-D: '/1-D Lookup Table2' - * Lookup_n-D: '/1-D Lookup Table3' - * Lookup_n-D: '/1-D Lookup Table4' - * Lookup_n-D: '/1-D Lookup Table5' - * Saturate: '/Saturation6' - */ - switch (rtb_Saturation9) { + switch (rtb_Sum_i1) { case 0: - rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, - rtConstP.pooled51, &g_assINCAR_TG_FR_LV0[0], 12U); + rtb_MultiportSwitch1_oi = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, + rtConstP.pooled63, &g_assVTG_FR_LV0[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table6' + * Lookup_n-D: '/1-D Lookup Table' + * Saturate: '/Saturation6' + */ + rtb_MultiportSwitch_j = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled45, &g_assINCAR_TG_FR_LV0[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[0] = g_assVF_INC_Y1_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVF_INC_Y2_LV0[rtb_Switch3_e - 1]; break; case 1: - rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, - rtConstP.pooled51, &g_assINCAR_TG_FR_LV1[0], 12U); + rtb_MultiportSwitch1_oi = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, + rtConstP.pooled63, &g_assVTG_FR_LV1[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table7' + * Lookup_n-D: '/1-D Lookup Table1' + * Saturate: '/Saturation6' + */ + rtb_MultiportSwitch_j = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled45, &g_assINCAR_TG_FR_LV1[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[0] = g_assVF_INC_Y1_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVF_INC_Y2_LV1[rtb_Switch3_e - 1]; break; case 2: - rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, - rtConstP.pooled51, &g_assINCAR_TG_FR_LV2[0], 12U); + rtb_MultiportSwitch1_oi = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, + rtConstP.pooled63, &g_assVTG_FR_LV1[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table8' + * Lookup_n-D: '/1-D Lookup Table2' + * Saturate: '/Saturation6' + */ + rtb_MultiportSwitch_j = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled45, &g_assINCAR_TG_FR_LV2[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[0] = g_assVF_INC_Y1_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVF_INC_Y2_LV2[rtb_Switch3_e - 1]; break; case 3: - rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, - rtConstP.pooled51, &g_assINCAR_TG_FR_LV3[0], 12U); + rtb_MultiportSwitch1_oi = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, + rtConstP.pooled63, &g_assVTG_FR_LV3[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table9' + * Lookup_n-D: '/1-D Lookup Table3' + * Saturate: '/Saturation6' + */ + rtb_MultiportSwitch_j = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled45, &g_assINCAR_TG_FR_LV3[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[0] = g_assVF_INC_Y1_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVF_INC_Y2_LV3[rtb_Switch3_e - 1]; break; case 4: - rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, - rtConstP.pooled51, &g_assINCAR_TG_FR_LV4[0], 12U); + rtb_MultiportSwitch1_oi = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, + rtConstP.pooled63, &g_assVTG_FR_LV4[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table10' + * Lookup_n-D: '/1-D Lookup Table4' + * Saturate: '/Saturation6' + */ + rtb_MultiportSwitch_j = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled45, &g_assINCAR_TG_FR_LV4[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[0] = g_assVF_INC_Y1_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVF_INC_Y2_LV4[rtb_Switch3_e - 1]; break; default: - rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, - rtConstP.pooled51, &g_assINCAR_TG_FR_LV5[0], 12U); + rtb_MultiportSwitch1_oi = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, + rtConstP.pooled63, &g_assVTG_FR_LV5[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table11' + * Lookup_n-D: '/1-D Lookup Table5' + * Saturate: '/Saturation6' + */ + rtb_MultiportSwitch_j = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled45, &g_assINCAR_TG_FR_LV5[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[0] = g_assVF_INC_Y1_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVF_INC_Y2_LV5[rtb_Switch3_e - 1]; break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_VectorConcatenate_bp[0] = g_assVF_INC_Y1_LV0[6]; + rtb_VectorConcatenate_gl[2] = 0; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - */ - rtb_VectorConcatenate_bp[1] = g_assVF_INC_Y2_LV0[6]; + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[3] = g_assVF_INC_Y3_LV0[rtb_Switch3_e - 1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_bp[2] = 0; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[4] = g_assVF_INC_Y4_LV0[rtb_Switch3_e - 1]; - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant14' - * MultiPortSwitch: '/Multiport Switch3' - */ - rtb_VectorConcatenate_bp[3] = g_assVF_INC_Y3_LV0[6]; + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[0] = g_assVF_INC_X1_LV0[rtb_Switch3_e - 1]; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant20' - * MultiPortSwitch: '/Multiport Switch4' - */ - rtb_VectorConcatenate_bp[4] = g_assVF_INC_Y4_LV0[6]; + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[1] = g_assVF_INC_X2_LV0[rtb_Switch3_e - 1]; + break; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' - */ - rtb_VectorConcatenate_j[0] = g_assVF_INC_X1_LV0[6]; + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[3] = g_assVF_INC_Y3_LV1[rtb_Switch3_e - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - */ - rtb_VectorConcatenate_j[1] = g_assVF_INC_X2_LV0[6]; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[4] = g_assVF_INC_Y4_LV1[rtb_Switch3_e - 1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_j[2] = 0; + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[0] = g_assVF_INC_X1_LV1[rtb_Switch3_e - 1]; - /* Selector: '/Selector2' incorporates: - * Constant: '/Constant14' - * MultiPortSwitch: '/Multiport Switch3' - */ - rtb_VectorConcatenate_j[3] = g_assVF_INC_X3_LV0[6]; + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[1] = g_assVF_INC_X2_LV1[rtb_Switch3_e - 1]; + break; - /* Selector: '/Selector3' incorporates: - * Constant: '/Constant20' - * MultiPortSwitch: '/Multiport Switch4' - */ - rtb_VectorConcatenate_j[4] = g_assVF_INC_X4_LV0[6]; + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[3] = g_assVF_INC_Y3_LV2[rtb_Switch3_e - 1]; - /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: - * DataStoreRead: '/Data Store Read36' - * Sum: '/2.5. X = Inc_Tg - Incar_fb' - */ - rtb_u5FLU_tg_incar_l = look1_is16lu64n32Ds32_binlcn((int16_t) - (rtb_MultiportSwitch_ae - rtDW.Incar_FR), rtb_VectorConcatenate_j, - rtb_VectorConcatenate_bp, 4U); + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[4] = g_assVF_INC_Y4_LV2[rtb_Switch3_e - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' - */ - rtb_VectorConcatenate_e0[0] = g_assVF_AMB_Y1_LV0[6]; + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[0] = g_assVF_INC_X1_LV2[rtb_Switch3_e - 1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_e0[1] = 0; + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[1] = g_assVF_INC_X2_LV2[rtb_Switch3_e - 1]; + break; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - */ - rtb_VectorConcatenate_e0[2] = g_assVF_AMB_Y2_LV0[6]; + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[3] = g_assVF_INC_Y3_LV3[rtb_Switch3_e - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' - */ - rtb_VectorConcatenate_lg[0] = g_assVF_AMB_X1_LV0[6]; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[4] = g_assVF_INC_Y4_LV3[rtb_Switch3_e - 1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_lg[1] = 0; + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[0] = g_assVF_INC_X1_LV3[rtb_Switch3_e - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - */ - rtb_VectorConcatenate_lg[2] = g_assVF_AMB_X2_LV0[6]; + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[1] = g_assVF_INC_X2_LV3[rtb_Switch3_e - 1]; + break; - /* Lookup_n-D: '/2.6 FLU_tg_amb' */ - rtb_u6FLU_tg_amb_hq = look1_is16lu64n32Ds32_binlcn(rtb_u6FLU_tg_amb, - rtb_VectorConcatenate_lg, rtb_VectorConcatenate_e0, 2U); + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[3] = g_assVF_INC_Y3_LV4[rtb_Switch3_e - 1]; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' - */ - rtb_VectorConcatenate_e0[0] = g_assVF_SUN_Y1_LV0[6]; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[4] = g_assVF_INC_Y4_LV4[rtb_Switch3_e - 1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_e0[1] = 0; + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[0] = g_assVF_INC_X1_LV4[rtb_Switch3_e - 1]; - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - */ - rtb_VectorConcatenate_e0[2] = g_assVF_SUN_Y2_LV0[6]; + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[1] = g_assVF_INC_X2_LV4[rtb_Switch3_e - 1]; + break; - /* Selector: '/Selector' incorporates: - * Constant: '/Constant' - * MultiPortSwitch: '/Multiport Switch1' - */ - rtb_VectorConcatenate_lg[0] = g_assVF_AMB_X1_LV0[6]; + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[3] = g_assVF_INC_Y3_LV5[rtb_Switch3_e - 1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant24' - */ - rtb_VectorConcatenate_lg[1] = 0; + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[4] = g_assVF_INC_Y4_LV5[rtb_Switch3_e - 1]; - /* MultiPortSwitch: '/Multiport Switch2' incorporates: - * Constant: '/Constant6' - */ - for (i = 0; i < 7; i++) { - rtb_uDLookupTable7_g[i] = g_assVF_AMB_X2_LV0[i]; + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[0] = g_assVF_INC_X1_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[1] = g_assVF_INC_X2_LV5[rtb_Switch3_e - 1]; + break; } - /* Selector: '/Selector1' incorporates: - * Constant: '/Constant6' - * MultiPortSwitch: '/Multiport Switch2' - */ - rtb_VectorConcatenate_lg[2] = g_assVF_AMB_X2_LV0[6]; + /* End of MultiPortSwitch: '/Multiport Switch3' */ - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_ic[2] = 0; + + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[3] = g_assVF_INC_X3_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[4] = g_assVF_INC_X4_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[3] = g_assVF_INC_X3_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[4] = g_assVF_INC_X4_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[3] = g_assVF_INC_X3_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[4] = g_assVF_INC_X4_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[3] = g_assVF_INC_X3_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[4] = g_assVF_INC_X4_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[3] = g_assVF_INC_X3_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[4] = g_assVF_INC_X4_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[3] = g_assVF_INC_X3_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_ic[4] = g_assVF_INC_X4_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: + * DataStoreRead: '/Data Store Read36' + * Sum: '/2.5. X = Inc_Tg - Incar_fb' + */ + rtb_u5FLU_tg_incar_ce = look1_is16lu64n32Ds32_binlcn((int16_t) + (rtb_MultiportSwitch_j - rtDW.Incar_FR), rtb_VectorConcatenate_ic, + rtb_VectorConcatenate_gl, 4U); + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assVF_AMB_Y1_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assVF_AMB_Y1_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assVF_AMB_Y1_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assVF_AMB_Y1_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assVF_AMB_Y1_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[0] = g_assVF_AMB_Y1_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_jb[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assVF_AMB_Y2_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assVF_AMB_X1_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assVF_AMB_Y2_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assVF_AMB_X1_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assVF_AMB_Y2_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assVF_AMB_X1_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assVF_AMB_Y2_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assVF_AMB_X1_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assVF_AMB_Y2_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assVF_AMB_X1_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jb[2] = g_assVF_AMB_Y2_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[0] = g_assVF_AMB_X1_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_mx[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assVF_AMB_X2_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assVF_AMB_X2_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assVF_AMB_X2_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assVF_AMB_X2_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assVF_AMB_X2_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_mx[2] = g_assVF_AMB_X2_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* Lookup_n-D: '/2.6 FLU_tg_amb' */ + rtb_u6FLU_tg_amb_l = look1_is16lu64n32Ds32_binlcn(rtb_FLU_tg_correct_l, + rtb_VectorConcatenate_mx, rtb_VectorConcatenate_jb, 2U); + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_gu[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assVF_SUN_Y1_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVF_SUN_Y2_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assVF_SUN_Y1_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVF_SUN_Y2_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assVF_SUN_Y1_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVF_SUN_Y2_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assVF_SUN_Y1_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVF_SUN_Y2_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assVF_SUN_Y1_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVF_SUN_Y2_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[1] = g_assVF_SUN_Y1_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVF_SUN_Y2_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_l0[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assVF_SUN_X1_LV0[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVF_SUN_X2_LV0[rtb_Switch3_e - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assVF_SUN_X1_LV1[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVF_SUN_X2_LV1[rtb_Switch3_e - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assVF_SUN_X1_LV2[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVF_SUN_X2_LV2[rtb_Switch3_e - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assVF_SUN_X1_LV3[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVF_SUN_X2_LV3[rtb_Switch3_e - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assVF_SUN_X1_LV4[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVF_SUN_X2_LV4[rtb_Switch3_e - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[1] = g_assVF_SUN_X1_LV5[rtb_Switch3_e - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVF_SUN_X2_LV5[rtb_Switch3_e - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: * DataStoreRead: '/Data Store Read41' */ - rtb_u6FLU_tg_amb = look1_bs16ts16Dd_binlc(rtDW.Sun_R, rtb_VectorConcatenate_lg, - rtb_VectorConcatenate_e0, 2U); + rtb_u6FLU_tg_amb_f = look1_bs16ts16Dd_binlc(rtDW.Sun_R, + rtb_VectorConcatenate_l0, rtb_VectorConcatenate_gu, 2U); - /* Sum: '/FLU_tg_correct' */ - rtb_FLU_tg_correct_g = (int16_t)((int16_t)((int16_t)(rtb_MultiportSwitch1_h + - rtb_u5FLU_tg_incar_l) + rtb_u6FLU_tg_amb_hq) + rtb_u6FLU_tg_amb); + /* Sum: '/FLU_tg_correct' */ + rtb_MultiportSwitch_j = (int16_t)((int16_t)((int16_t)(rtb_MultiportSwitch1_oi + + rtb_u5FLU_tg_incar_ce) + rtb_u6FLU_tg_amb_l) + rtb_u6FLU_tg_amb_f); - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' */ - if (rtb_FLU_tg_correct_g <= rtb_Bias5) { - /* MultiPortSwitch: '/Multiport Switch1' incorporates: - * Constant: '/Constant' + if (rtb_MultiportSwitch_j <= rtb_Bias5) { + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' */ - for (i = 0; i < 7; i++) { - rtb_MultiportSwitch1[i] = g_assVF_MIN_LV0[i]; + switch (rtb_Sum_i1) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV5[i]; + } + break; } - /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* Switch: '/Switch' incorporates: - * RelationalOperator: '/UpperRelop' - * Selector: '/Selector' + /* Selector: '/Selector' incorporates: + * Selector: '/Selector' */ - if (rtb_FLU_tg_correct_g < rtb_MultiportSwitch1[6]) { - rtb_Bias5 = rtb_MultiportSwitch1[6]; - } else { - rtb_Bias5 = rtb_FLU_tg_correct_g; + rtb_Bias5 = rtb_uDLookupTable7_g[rtb_Switch3_e - 1]; + + /* Switch: '/Switch' incorporates: + * RelationalOperator: '/UpperRelop' + * Selector: '/Selector' + */ + if (rtb_MultiportSwitch_j >= rtb_Bias5) { + rtb_Bias5 = rtb_MultiportSwitch_j; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write1' - */ - rtb_Switch3_ed = (uint8_t)rtb_Bias5; - - /* Switch: '/Switch1' incorporates: + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' * Constant: '/manual1' - * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/AF from Start Control' + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write20' - * DataTypeConversion: '/Data Type Conversion2' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * MATLAB Function: '/func g_ascAUTO_STEP_AF_F' - * Product: '/Product' + * Logic: '/Logical Operator' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' * RelationalOperator: '/Equal2' - * Sum: '/Add' + * Switch: '/Switch1' */ - if (rtDW.CCU_MODE_FR == 0) { - Blower_AF_FR = (uint8_t)rtB.MultiportSwitch_a; + if ((rtDW.step_start_controle_front == 0) || (rtDW.step_start_controle_front == + 1) || (rtDW.step_start_controle_front == 2)) { + Comp_Max_RPM_Allowed = rtDW.Blower_FR; } else { - Blower_AF_FR = (double)g_ascAUTO_STEP_AF_F[rtDW.CCU_AUTOMODE_FR - 1] * 0.01 * - (double)(uint8_t)rtb_Bias5 + (double)(uint8_t)rtb_Bias5; + if (rtDW.CCU_MODE_FR == 0) { + /* Switch: '/Switch1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_DataTypeConversion7 = (uint8_t)rtB.MultiportSwitch_a; + } else { + /* Switch: '/Switch1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * MATLAB Function: '/func g_ascAUTO_STEP_AF_F' + * Product: '/Product' + * Sum: '/Add' + */ + rtb_DataTypeConversion7 = (double)g_ascAUTO_STEP_AF_F[rtDW.CCU_AUTOMODE_FR + - 1] * 0.01 * (double)(uint8_t)rtb_Bias5 + (double)(uint8_t)rtb_Bias5; + } + + Comp_Max_RPM_Allowed = (uint8_t)rtb_DataTypeConversion7; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch' */ - /* Outputs for Enabled SubSystem: '/Rear Left AF - manual directions' */ - /* RelationalOperator: '/Equal2' incorporates: - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read44' + /* Sum: '/Sum' incorporates: + * DataStoreRead: '/Data Store Read2' + * DataStoreWrite: '/Data Store Write20' + */ + rtb_Switch3_e = (uint8_t)(Comp_Max_RPM_Allowed + + rtDW.Blower_individual_foot_FR); + + /* Outputs for Enabled SubSystem: '/Rear Left AF - manual directions' */ + /* RelationalOperator: '/Equal2' incorporates: + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read44' * DataStoreRead: '/Data Store Read18' * DataStoreRead: '/Data Store Read19' * DataStoreRead: '/Data Store Read20' @@ -13230,226 +16051,1155 @@ void HVAC_model_step(void) RearLeftAFmanualdirections((rtDW.CCU_MODE_RL == 0), rtDW.CCU_BLOWERS_RL, rtDW.CCU_FACE_RL, rtDW.CCU_FOOT_RL, &rtB.MultiportSwitch_j); - /* End of Outputs for SubSystem: '/Rear Left AF - manual directions' */ + /* End of Outputs for SubSystem: '/Rear Left AF - manual directions' */ /* Saturate: '/Saturation7' incorporates: * DataStoreRead: '/Data Store Read32' */ /* : y = g_ascAUTO_STEP_AF_R(AF_STEP); */ if (rtDW.CCU_SET_RL > 290) { - rtb_out_eu = 290U; + rtb_Saturation2_a = 290U; } else if (rtDW.CCU_SET_RL < 170) { - rtb_out_eu = 170U; + rtb_Saturation2_a = 170U; } else { - rtb_out_eu = rtDW.CCU_SET_RL; + rtb_Saturation2_a = rtDW.CCU_SET_RL; } /* End of Saturate: '/Saturation7' */ - /* Gain: '/Gain2' */ - rtb_Subtract = 52429U * rtb_out_eu; - rtb_y_fe = (int16_t)((uint32_t)((rtb_Subtract & 262144U) != 0U) + - (rtb_Subtract >> 19)); - - /* MATLAB Function: '/Vtg_RX_plus_max' */ - Vtg_RX_plus_max(rtb_y_fe, rtb_Saturation9, &rtb_y_bf); - - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(rtb_out_eu, &rtb_LogicalOperator5); - - /* MATLAB Function: '/2.3 Vtg_RL' incorporates: - * MATLAB Function: '/2.1 Incar target Left' + /* Gain: '/Gain2' incorporates: + * Bias: '/Bias2' + * DataTypeConversion: '/Data Type Conversion2' + * Gain: '/Gain1' + * Saturate: '/Saturation1' */ - /* : Vtg_RLU = [g_assVTG_RL_LV0; g_assVTG_RL_LV1; g_assVTG_RL_LV2; g_assVTG_RL_LV3; g_assVTG_RL_LV4; g_assVTG_RL_LV5]; */ - for (i = 0; i < 13; i++) { - Vtg_RLU[6 * i] = g_assVTG_RL_LV0[i]; - Vtg_RLU[6 * i + 1] = g_assVTG_RL_LV1[i]; - Vtg_RLU[6 * i + 2] = g_assVTG_RL_LV2[i]; - Vtg_RLU[6 * i + 3] = g_assVTG_RL_LV3[i]; - Vtg_RLU[6 * i + 4] = g_assVTG_RL_LV4[i]; - Vtg_RLU[6 * i + 5] = g_assVTG_RL_LV5[i]; + i = ((int32_t)((52429U * rtb_Saturation2_a) >> 19) + -15) << 14; + + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Saturate: '/Saturation2' + * Saturate: '/Saturation1' + */ + rtb_DataTypeConversion1_h2 = (uint8_t)((((uint32_t)i & 16384U) != 0U) + (i >> + 15)); + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Lookup_n-D: '/1-D Lookup Table10' + * Lookup_n-D: '/1-D Lookup Table11' + * Lookup_n-D: '/1-D Lookup Table6' + * Lookup_n-D: '/1-D Lookup Table7' + * Lookup_n-D: '/1-D Lookup Table8' + * Lookup_n-D: '/1-D Lookup Table9' + * Saturate: '/Saturation7' + */ + switch (rtb_Sum_i1) { + case 0: + rtb_MultiportSwitch_j = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assVTG_RL_LV0[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table6' + * Lookup_n-D: '/1-D Lookup Table' + * Saturate: '/Saturation7' + */ + rtb_Bias5 = look1_iu16bs16lu64n32ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled45, &g_assINCAR_TG_RL_LV0[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_gl[0] = g_assVR_INC_Y1_LV0[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVR_INC_Y2_LV0[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 1: + rtb_MultiportSwitch_j = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assVTG_RL_LV1[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table7' + * Lookup_n-D: '/1-D Lookup Table1' + * Saturate: '/Saturation7' + */ + rtb_Bias5 = look1_iu16bs16lu64n32ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled45, &g_assINCAR_TG_RL_LV1[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_gl[0] = g_assVR_INC_Y1_LV1[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVR_INC_Y2_LV1[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 2: + rtb_MultiportSwitch_j = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assVTG_RL_LV1[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table8' + * Lookup_n-D: '/1-D Lookup Table2' + * Saturate: '/Saturation7' + */ + rtb_Bias5 = look1_iu16bs16lu64n32ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled45, &g_assINCAR_TG_RL_LV2[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_gl[0] = g_assVR_INC_Y1_LV2[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVR_INC_Y2_LV2[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 3: + rtb_MultiportSwitch_j = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assVTG_RL_LV3[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table9' + * Lookup_n-D: '/1-D Lookup Table3' + * Saturate: '/Saturation7' + */ + rtb_Bias5 = look1_iu16bs16lu64n32ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled45, &g_assINCAR_TG_RL_LV3[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_gl[0] = g_assVR_INC_Y1_LV3[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVR_INC_Y2_LV3[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 4: + rtb_MultiportSwitch_j = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assVTG_RL_LV4[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table10' + * Lookup_n-D: '/1-D Lookup Table4' + * Saturate: '/Saturation7' + */ + rtb_Bias5 = look1_iu16bs16lu64n32ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled45, &g_assINCAR_TG_RL_LV4[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_gl[0] = g_assVR_INC_Y1_LV4[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVR_INC_Y2_LV4[rtb_DataTypeConversion1_h2 + - 1]; + break; + + default: + rtb_MultiportSwitch_j = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assVTG_RL_LV5[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table11' + * Lookup_n-D: '/1-D Lookup Table5' + * Saturate: '/Saturation7' + */ + rtb_Bias5 = look1_iu16bs16lu64n32ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled45, &g_assINCAR_TG_RL_LV5[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_gl[0] = g_assVR_INC_Y1_LV5[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVR_INC_Y2_LV5[rtb_DataTypeConversion1_h2 + - 1]; + break; } - /* : if set_has_half && (SET - 16 + 1 <= length(Vtg_RLU)) */ - rtb_LogicalOperator1_n = (rtb_LogicalOperator5 && (rtb_y_fe - 15 <= 13)); - if (rtb_LogicalOperator1_n) { - /* : y = (Vtg_RLU(LVL + 1, SET - 16) + Vtg_RLU(LVL + 1, SET - 16 + 1)) / 2; */ - i = Vtg_RLU[(rtb_y_fe - 17) * 6 + rtb_Saturation9] + Vtg_RLU[(rtb_y_fe - 16) - * 6 + rtb_Saturation9]; - if (i > 32767) { - i = 32767; - } else if (i < -32768) { - i = -32768; - } + /* End of MultiPortSwitch: '/Multiport Switch1' */ - rtb_Bias5 = (int16_t)rt_roundd((double)i / 2.0); - } else { - /* : else */ - /* : y = Vtg_RLU(LVL + 1, SET - 16); */ - rtb_Bias5 = Vtg_RLU[(rtb_y_fe - 17) * 6 + rtb_Saturation9]; + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_gl[2] = 0; + + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + */ + rtb_VectorConcatenate_gl[3] = g_assVR_INC_Y3_LV0[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_gl[4] = g_assVR_INC_Y4_LV0[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[0] = g_assVR_INC_X1_LV0[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[1] = g_assVR_INC_X2_LV0[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + */ + rtb_VectorConcatenate_gl[3] = g_assVR_INC_Y3_LV1[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_gl[4] = g_assVR_INC_Y4_LV1[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[0] = g_assVR_INC_X1_LV1[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[1] = g_assVR_INC_X2_LV1[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + */ + rtb_VectorConcatenate_gl[3] = g_assVR_INC_Y3_LV2[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_gl[4] = g_assVR_INC_Y4_LV2[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[0] = g_assVR_INC_X1_LV2[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[1] = g_assVR_INC_X2_LV2[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + */ + rtb_VectorConcatenate_gl[3] = g_assVR_INC_Y3_LV3[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_gl[4] = g_assVR_INC_Y4_LV3[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[0] = g_assVR_INC_X1_LV3[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[1] = g_assVR_INC_X2_LV3[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + */ + rtb_VectorConcatenate_gl[3] = g_assVR_INC_Y3_LV4[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_gl[4] = g_assVR_INC_Y4_LV4[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[0] = g_assVR_INC_X1_LV4[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[1] = g_assVR_INC_X2_LV4[rtb_DataTypeConversion1_h2 + - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + */ + rtb_VectorConcatenate_gl[3] = g_assVR_INC_Y3_LV5[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_gl[4] = g_assVR_INC_Y4_LV5[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[0] = g_assVR_INC_X1_LV5[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[1] = g_assVR_INC_X2_LV5[rtb_DataTypeConversion1_h2 + - 1]; + break; } - /* End of MATLAB Function: '/2.3 Vtg_RL' */ + /* End of MultiPortSwitch: '/Multiport Switch3' */ - /* MATLAB Function: '/2.1 Incar target Left' */ - /* : incar_tg_all = [g_assINCAR_TG_RL_LV0; g_assINCAR_TG_RL_LV1; g_assINCAR_TG_RL_LV2; g_assINCAR_TG_RL_LV3; g_assINCAR_TG_RL_LV4; g_assINCAR_TG_RL_LV5]; */ - for (i = 0; i < 13; i++) { - Vtg_RLU[6 * i] = g_assINCAR_TG_RL_LV0[i]; - Vtg_RLU[6 * i + 1] = g_assINCAR_TG_RL_LV1[i]; - Vtg_RLU[6 * i + 2] = g_assINCAR_TG_RL_LV2[i]; - Vtg_RLU[6 * i + 3] = g_assINCAR_TG_RL_LV3[i]; - Vtg_RLU[6 * i + 4] = g_assINCAR_TG_RL_LV4[i]; - Vtg_RLU[6 * i + 5] = g_assINCAR_TG_RL_LV5[i]; + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_ic[2] = 0; + + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + */ + rtb_VectorConcatenate_ic[3] = g_assVR_INC_X3_LV0[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[4] = g_assVR_INC_X4_LV0[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + */ + rtb_VectorConcatenate_ic[3] = g_assVR_INC_X3_LV1[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[4] = g_assVR_INC_X4_LV1[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + */ + rtb_VectorConcatenate_ic[3] = g_assVR_INC_X3_LV2[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[4] = g_assVR_INC_X4_LV2[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + */ + rtb_VectorConcatenate_ic[3] = g_assVR_INC_X3_LV3[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[4] = g_assVR_INC_X4_LV3[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + */ + rtb_VectorConcatenate_ic[3] = g_assVR_INC_X3_LV4[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[4] = g_assVR_INC_X4_LV4[rtb_DataTypeConversion1_h2 + - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + */ + rtb_VectorConcatenate_ic[3] = g_assVR_INC_X3_LV5[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[4] = g_assVR_INC_X4_LV5[rtb_DataTypeConversion1_h2 + - 1]; + break; } - /* : if set_has_half && (SET - 16 + 1 <= length(incar_tg_all)) */ - if (rtb_LogicalOperator1_n) { - /* : y = (incar_tg_all(LVL + 1, SET - 16) + incar_tg_all(LVL + 1, SET - 16 + 1)) / 2; */ - i = Vtg_RLU[(rtb_y_fe - 17) * 6 + rtb_Saturation9] + Vtg_RLU[(rtb_y_fe - 16) - * 6 + rtb_Saturation9]; - if (i > 32767) { - i = 32767; - } else if (i < -32768) { - i = -32768; - } + /* End of MultiPortSwitch: '/Multiport Switch3' */ - rtb_FLU_tg_correct_g = (int16_t)rt_roundd((double)i / 2.0); - } else { - /* : else */ - /* : y = incar_tg_all(LVL + 1, SET - 16); */ - rtb_FLU_tg_correct_g = Vtg_RLU[(rtb_y_fe - 17) * 6 + rtb_Saturation9]; + /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: + * DataStoreRead: '/Data Store Read37' + * Sum: '/2.5. X = Incar_Tg - Incar_fb' + */ + rtb_Bias5 = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_Bias5 - rtDW.Incar_RL), + rtb_VectorConcatenate_ic, rtb_VectorConcatenate_gl, 4U); + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + */ + rtb_VectorConcatenate_jb[0] = g_assVR_AMB_Y1_LV0[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + */ + rtb_VectorConcatenate_jb[0] = g_assVR_AMB_Y1_LV1[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + */ + rtb_VectorConcatenate_jb[0] = g_assVR_AMB_Y1_LV2[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + */ + rtb_VectorConcatenate_jb[0] = g_assVR_AMB_Y1_LV3[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + */ + rtb_VectorConcatenate_jb[0] = g_assVR_AMB_Y1_LV4[rtb_DataTypeConversion1_h2 + - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + */ + rtb_VectorConcatenate_jb[0] = g_assVR_AMB_Y1_LV5[rtb_DataTypeConversion1_h2 + - 1]; + break; } - /* MATLAB Function: '/Y1-Y4 для Vtg_FX_incar' */ - Y1Y4Vtg_FX_incar(rtb_y_fe, rtb_Saturation9, rtb_VectorConcatenate_j); + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* MATLAB Function: '/X1-X4 для Vtg_FX_incar' */ - X1X4Vtg_FX_incar(rtb_y_fe, rtb_Saturation9, rtb_VectorConcatenate_bp); + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_jb[1] = 0; - /* MATLAB Function: '/Amb_Tg ' */ - Amb_Tg(rtb_Saturation9, &rtb_y_lg); + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + */ + rtb_VectorConcatenate_jb[2] = g_assVR_AMB_Y2_LV0[rtb_DataTypeConversion1_h2 + - 1]; - /* MATLAB Function: '/Y1-Y2 для Vtg_RL_amb' */ - Y1Y2Vtg_RL_amb(rtb_y_fe, rtb_Saturation9, rtb_VectorConcatenate_lg); + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assVR_AMB_X1_LV0[rtb_DataTypeConversion1_h2 + - 1]; + break; - /* MATLAB Function: '/X1-X2 для Vtg_RL_amb' */ - /* : all_lvl_x1 = [g_assVR_AMB_X1_LV0; g_assVR_AMB_X1_LV1; g_assVR_AMB_X1_LV2; g_assVR_AMB_X1_LV3; g_assVR_AMB_X1_LV4; g_assVR_AMB_X1_LV5]; */ - /* : all_lvl_x2 = [g_assVR_AMB_X2_LV0; g_assVR_AMB_X2_LV1; g_assVR_AMB_X2_LV2; g_assVR_AMB_X2_LV3; g_assVR_AMB_X2_LV4; g_assVR_AMB_X2_LV5]; */ - /* : y = [all_lvl_x1(LVL + 1, idivide(SET - 16 + 1, 2)), 0, all_lvl_x2(LVL + 1, idivide(SET - 16 + 1, 2))]; */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assVR_AMB_X1_LV0[i]; - i_0 = 6 * i + 1; - tmp[i_0] = g_assVR_AMB_X1_LV1[i]; - rtb_Gain_pl = 6 * i + 2; - tmp[rtb_Gain_pl] = g_assVR_AMB_X1_LV2[i]; - rtb_Gain4 = 6 * i + 3; - tmp[rtb_Gain4] = g_assVR_AMB_X1_LV3[i]; - rtb_Gain5 = 6 * i + 4; - tmp[rtb_Gain5] = g_assVR_AMB_X1_LV4[i]; - rtb_Gain2 = 6 * i + 5; - tmp[rtb_Gain2] = g_assVR_AMB_X1_LV5[i]; - tmp_0[6 * i] = g_assVR_AMB_X2_LV0[i]; - tmp_0[i_0] = g_assVR_AMB_X2_LV1[i]; - tmp_0[rtb_Gain_pl] = g_assVR_AMB_X2_LV2[i]; - tmp_0[rtb_Gain4] = g_assVR_AMB_X2_LV3[i]; - tmp_0[rtb_Gain5] = g_assVR_AMB_X2_LV4[i]; - tmp_0[rtb_Gain2] = g_assVR_AMB_X2_LV5[i]; + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + */ + rtb_VectorConcatenate_jb[2] = g_assVR_AMB_Y2_LV1[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assVR_AMB_X1_LV1[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + */ + rtb_VectorConcatenate_jb[2] = g_assVR_AMB_Y2_LV2[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assVR_AMB_X1_LV2[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + */ + rtb_VectorConcatenate_jb[2] = g_assVR_AMB_Y2_LV3[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assVR_AMB_X1_LV3[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + */ + rtb_VectorConcatenate_jb[2] = g_assVR_AMB_Y2_LV4[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assVR_AMB_X1_LV4[rtb_DataTypeConversion1_h2 + - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + */ + rtb_VectorConcatenate_jb[2] = g_assVR_AMB_Y2_LV5[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assVR_AMB_X1_LV5[rtb_DataTypeConversion1_h2 + - 1]; + break; } - i = ((int32_t)trunc((((double)rtb_y_fe - 16.0) + 1.0) / 2.0) - 1) * 6 + - rtb_Saturation9; - rtb_VectorConcatenate_e0[0] = tmp[i]; - rtb_VectorConcatenate_e0[1] = 0; - rtb_VectorConcatenate_e0[2] = tmp_0[i]; + /* End of MultiPortSwitch: '/Multiport Switch2' */ - /* End of MATLAB Function: '/X1-X2 для Vtg_RL_amb' */ + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_mx[1] = 0; - /* MATLAB Function: '/Y1-Y2 для Vtg_RX_sun' */ - Y1Y2Vtg_RX_sun(rtb_y_fe, rtb_Saturation9, rtb_VectorConcatenate_bl); + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + */ + rtb_VectorConcatenate_mx[2] = g_assVR_AMB_X2_LV0[rtb_DataTypeConversion1_h2 + - 1]; + break; - /* MATLAB Function: '/X1-X2 для Vtg_FX_sun' */ - X1X2Vtg_FX_sun(rtb_y_fe, rtb_Saturation9, rtb_VectorConcatenate_km); + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + */ + rtb_VectorConcatenate_mx[2] = g_assVR_AMB_X2_LV1[rtb_DataTypeConversion1_h2 + - 1]; + break; - /* MATLAB Function: '/Vtg_RX_plus_min' */ - Vtg_RX_plus_min(rtb_y_fe, rtb_Saturation9, &rtb_y_h5); + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + */ + rtb_VectorConcatenate_mx[2] = g_assVR_AMB_X2_LV2[rtb_DataTypeConversion1_h2 + - 1]; + break; - /* Switch: '/Switch2' incorporates: + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + */ + rtb_VectorConcatenate_mx[2] = g_assVR_AMB_X2_LV3[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + */ + rtb_VectorConcatenate_mx[2] = g_assVR_AMB_X2_LV4[rtb_DataTypeConversion1_h2 + - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + */ + rtb_VectorConcatenate_mx[2] = g_assVR_AMB_X2_LV5[rtb_DataTypeConversion1_h2 + - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* Lookup_n-D: '/2.6 FLU_tg_amb' */ + rtb_MultiportSwitch_m = look1_is16lu64n32Ds32_binlcn(rtb_FLU_tg_correct_l, + rtb_VectorConcatenate_mx, rtb_VectorConcatenate_jb, 2U); + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_gu[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + */ + rtb_VectorConcatenate_gu[1] = g_assVR_SUN_Y1_LV0[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVR_SUN_Y2_LV0[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + */ + rtb_VectorConcatenate_gu[1] = g_assVR_SUN_Y1_LV1[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVR_SUN_Y2_LV1[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + */ + rtb_VectorConcatenate_gu[1] = g_assVR_SUN_Y1_LV2[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVR_SUN_Y2_LV2[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + */ + rtb_VectorConcatenate_gu[1] = g_assVR_SUN_Y1_LV3[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVR_SUN_Y2_LV3[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + */ + rtb_VectorConcatenate_gu[1] = g_assVR_SUN_Y1_LV4[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVR_SUN_Y2_LV4[rtb_DataTypeConversion1_h2 + - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + */ + rtb_VectorConcatenate_gu[1] = g_assVR_SUN_Y1_LV5[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gu[2] = g_assVR_SUN_Y2_LV5[rtb_DataTypeConversion1_h2 + - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_l0[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + */ + rtb_VectorConcatenate_l0[1] = g_assVR_SUN_X1_LV0[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVR_SUN_X2_LV0[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + */ + rtb_VectorConcatenate_l0[1] = g_assVR_SUN_X1_LV1[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVR_SUN_X2_LV1[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + */ + rtb_VectorConcatenate_l0[1] = g_assVR_SUN_X1_LV2[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVR_SUN_X2_LV2[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + */ + rtb_VectorConcatenate_l0[1] = g_assVR_SUN_X1_LV3[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVR_SUN_X2_LV3[rtb_DataTypeConversion1_h2 + - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + */ + rtb_VectorConcatenate_l0[1] = g_assVR_SUN_X1_LV4[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVR_SUN_X2_LV4[rtb_DataTypeConversion1_h2 + - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + */ + rtb_VectorConcatenate_l0[1] = g_assVR_SUN_X1_LV5[rtb_DataTypeConversion1_h2 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_l0[2] = g_assVR_SUN_X2_LV5[rtb_DataTypeConversion1_h2 + - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: + * DataStoreRead: '/Data Store Read39' + */ + rtb_MultiportSwitch_nz = look1_bs16ts16Dd_binlc(rtDW.Sun_L, + rtb_VectorConcatenate_l0, rtb_VectorConcatenate_gu, 2U); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' * Constant: '/manual2' - * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/AF from Start Control' + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read2' * DataStoreWrite: '/Data Store Write21' - * DataTypeConversion: '/Data Type Conversion4' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - * DataTypeConversion: '/Data Type Conversion2' - * Gain: '/Gain' - * MATLAB Function: '/func g_ascAUTO_STEP_AF_F' - * Product: '/Product' + * Logic: '/Logical Operator' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' * RelationalOperator: '/Equal3' - * Sum: '/Add' + * Switch: '/Switch2' */ - if (rtDW.CCU_MODE_RL == 0) { - Blower_AF_RL = (uint8_t)rtB.MultiportSwitch_j; + if ((rtDW.step_start_controle_rear == 0) || (rtDW.step_start_controle_rear == + 1) || (rtDW.step_start_controle_rear == 2)) { + rtb_DataTypeConversion1_h2 = rtDW.Blower_RL; } else { - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read39' - */ - rtb_u8Vtg_FX_plus = look1_bs16ts16DdId_binlc(rtDW.Sun_L, - rtb_VectorConcatenate_km, rtb_VectorConcatenate_bl, 2U); + if (rtDW.CCU_MODE_RL == 0) { + /* Switch: '/Switch2' incorporates: + * DataTypeConversion: '/Data Type Conversion4' + */ + rtb_DataTypeConversion7 = (uint8_t)rtB.MultiportSwitch_j; + } else { + /* Sum: '/2.8. Vtg_FX_plus' incorporates: + * Switch: '/Switch2' + */ + rtb_u5FRU_tg_incar = (int16_t)((int16_t)((int16_t)(rtb_MultiportSwitch_j + + rtb_Bias5) + rtb_MultiportSwitch_m) + rtb_MultiportSwitch_nz); - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read34' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' - */ - rtb_y_fe = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_lg - rtDW.AMB), - rtb_VectorConcatenate_e0, rtb_VectorConcatenate_lg, 2U); + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' + * Switch: '/Switch2' + */ + switch (rtb_Sum_i1) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_MAX_LV0[i]; + } + break; - /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: - * DataStoreRead: '/Data Store Read37' - * Sum: '/2.5. X = Incar_Tg - Incar_fb' - */ - rtb_FLU_tg_correct_g = look1_is16lu64n32Ds32_binlcn((int16_t) - (rtb_FLU_tg_correct_g - rtDW.Incar_RL), rtb_VectorConcatenate_bp, - rtb_VectorConcatenate_j, 4U); + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_MAX_LV1[i]; + } + break; - /* Sum: '/2.8. Vtg_FX_plus' */ - rtb_u8Vtg_FX_plus += (double)((rtb_Bias5 + rtb_FLU_tg_correct_g) + rtb_y_fe); + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_MAX_LV2[i]; + } + break; - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' - */ - if (rtb_u8Vtg_FX_plus > rtb_y_bf) { - rtb_u8Vtg_FX_plus = rtb_y_bf; - } else if (rtb_u8Vtg_FX_plus < rtb_y_h5) { - /* Switch: '/Switch' */ - rtb_u8Vtg_FX_plus = rtb_y_h5; - } + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_MAX_LV3[i]; + } + break; - /* End of Switch: '/Switch2' */ + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_MAX_LV4[i]; + } + break; - /* DataTypeConversion: '/Data Type Conversion2' */ - rtb_Divide1_l5 = fabs(rtb_u8Vtg_FX_plus); - if (rtb_Divide1_l5 < 4.503599627370496E+15) { - if (rtb_Divide1_l5 >= 0.5) { - rtb_u8Vtg_FX_plus = floor(rtb_u8Vtg_FX_plus + 0.5); - } else { - rtb_u8Vtg_FX_plus = 0.0; + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_MAX_LV5[i]; + } + break; } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Selector: '/Selector' incorporates: + * Switch: '/Switch2' + */ + rtb_MultiportSwitch_i = rtb_uDLookupTable7_g[rtb_DataTypeConversion1_h2 - + 1]; + + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * Switch: '/Switch2' + */ + if (rtb_u5FRU_tg_incar <= rtb_MultiportSwitch_i) { + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' + */ + switch (rtb_Sum_i1) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_MIN_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_MIN_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_MIN_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_MIN_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_MIN_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_MIN_LV5[i]; + } + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Selector: '/Selector' incorporates: + * Selector: '/Selector' + */ + rtb_MultiportSwitch_i = rtb_uDLookupTable7_g[rtb_DataTypeConversion1_h2 + - 1]; + + /* Switch: '/Switch' incorporates: + * RelationalOperator: '/UpperRelop' + * Selector: '/Selector' + */ + if (rtb_u5FRU_tg_incar >= rtb_MultiportSwitch_i) { + rtb_MultiportSwitch_i = rtb_u5FRU_tg_incar; + } + + /* End of Switch: '/Switch' */ + } + + /* End of Switch: '/Switch2' */ + + /* Switch: '/Switch2' incorporates: + * DataStoreRead: '/Data Store Read' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * DataTypeConversion: '/Data Type Conversion2' + * Gain: '/Gain' + * MATLAB Function: '/func g_ascAUTO_STEP_AF_F' + * Product: '/Product' + * Sum: '/Add' + */ + rtb_DataTypeConversion7 = (double)g_ascAUTO_STEP_AF_R[(int8_t) + rtDW.CCU_AUTOMODE_RL - 1] * 0.01 * (double)(uint8_t) + rtb_MultiportSwitch_i + (double)(uint8_t)rtb_MultiportSwitch_i; } - Blower_AF_RL = (uint8_t)((double)g_ascAUTO_STEP_AF_R[(int8_t) - rtDW.CCU_AUTOMODE_RL - 1] * 0.01 * (double)(uint8_t)rtb_u8Vtg_FX_plus + - (double)(uint8_t)rtb_u8Vtg_FX_plus); + rtb_DataTypeConversion1_h2 = (uint8_t)rtb_DataTypeConversion7; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch' */ - /* Outputs for Enabled SubSystem: '/Rear Right AF - manual directions' */ - /* RelationalOperator: '/Equal1' incorporates: - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read45' + /* Outputs for Enabled SubSystem: '/Rear Right AF - manual directions' */ + /* RelationalOperator: '/Equal1' incorporates: + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read45' * DataStoreRead: '/Data Store Read15' * DataStoreRead: '/Data Store Read16' * DataStoreRead: '/Data Store Read17' @@ -13457,217 +17207,1221 @@ void HVAC_model_step(void) RearLeftAFmanualdirections((rtDW.CCU_MODE_RR == 0), rtDW.CCU_BLOWERS_RR, rtDW.CCU_FACE_RR, rtDW.CCU_FOOT_RR, &rtB.MultiportSwitch_of); - /* End of Outputs for SubSystem: '/Rear Right AF - manual directions' */ + /* End of Outputs for SubSystem: '/Rear Right AF - manual directions' */ - /* MATLAB Function: '/func g_ascAUTO_STEP_AF_F' incorporates: - * DataStoreRead: '/Data Store Read' - * DataTypeConversion: '/Data Type Conversion1' + /* MATLAB Function: '/func g_ascAUTO_STEP_AF_F' incorporates: + * DataStoreRead: '/Data Store Read' + * DataTypeConversion: '/Data Type Conversion1' */ - funcg_ascAUTO_STEP_AF_F((int8_t)rtDW.CCU_AUTOMODE_RR, &rtb_y_b2); + funcg_ascAUTO_STEP_AF_F((int8_t)rtDW.CCU_AUTOMODE_RR, &rtb_y_c); /* Saturate: '/Saturation8' incorporates: * DataStoreRead: '/Data Store Read33' */ if (rtDW.CCU_SET_RR > 290) { - rtb_out_eu = 290U; + rtb_Saturation2_a = 290U; } else if (rtDW.CCU_SET_RR < 170) { - rtb_out_eu = 170U; + rtb_Saturation2_a = 170U; } else { - rtb_out_eu = rtDW.CCU_SET_RR; + rtb_Saturation2_a = rtDW.CCU_SET_RR; } /* End of Saturate: '/Saturation8' */ - /* Gain: '/Gain2' */ - rtb_Subtract = 52429U * rtb_out_eu; - rtb_y_bf = (int16_t)((uint32_t)((rtb_Subtract & 262144U) != 0U) + - (rtb_Subtract >> 19)); - - /* MATLAB Function: '/Vtg_RX_plus_max' */ - Vtg_RX_plus_max(rtb_y_bf, rtb_Saturation9, &rtb_y_fe); - - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(rtb_out_eu, &rtb_LogicalOperator5); - - /* MATLAB Function: '/2.3 Vtg_RR' incorporates: - * MATLAB Function: '/2.1 Incar target Rear Right' + /* Gain: '/Gain4' incorporates: + * Bias: '/Bias1' + * DataTypeConversion: '/Data Type Conversion4' + * Gain: '/Gain2' + * Saturate: '/Saturation1' */ - /* : Vtg_RR = [g_assVTG_RR_LV0; g_assVTG_RR_LV1; g_assVTG_RR_LV2; g_assVTG_RR_LV3; g_assVTG_RR_LV4; g_assVTG_RR_LV5]; */ - for (i = 0; i < 13; i++) { - Vtg_RLU[6 * i] = g_assVTG_RR_LV0[i]; - Vtg_RLU[6 * i + 1] = g_assVTG_RR_LV1[i]; - Vtg_RLU[6 * i + 2] = g_assVTG_RR_LV2[i]; - Vtg_RLU[6 * i + 3] = g_assVTG_RR_LV3[i]; - Vtg_RLU[6 * i + 4] = g_assVTG_RR_LV4[i]; - Vtg_RLU[6 * i + 5] = g_assVTG_RR_LV5[i]; + i = ((int32_t)((52429U * rtb_Saturation2_a) >> 19) + -15) << 14; + + /* DataTypeConversion: '/Data Type Conversion3' incorporates: + * Saturate: '/Saturation1' + */ + rtb_DataTypeConversion3_j0 = (uint8_t)((((uint32_t)i & 16384U) != 0U) + (i >> + 15)); + + /* MultiPortSwitch: '/Multiport Switch2' incorporates: + * Lookup_n-D: '/1-D Lookup Table1' + * Lookup_n-D: '/1-D Lookup Table12' + * Lookup_n-D: '/1-D Lookup Table2' + * Lookup_n-D: '/1-D Lookup Table3' + * Lookup_n-D: '/1-D Lookup Table4' + * Lookup_n-D: '/1-D Lookup Table5' + * Saturate: '/Saturation8' + */ + switch (rtb_Sum_i1) { + case 0: + rtb_u5FRU_tg_incar = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assVTG_RR_LV0[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table3' + * Lookup_n-D: '/1-D Lookup Table' + * Saturate: '/Saturation8' + */ + rtb_MultiportSwitch_i = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RR_LV0[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_gl[0] = g_assVR_INC_Y1_LV0[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVR_INC_Y2_LV0[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 1: + rtb_u5FRU_tg_incar = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assVTG_RR_LV1[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table4' + * Lookup_n-D: '/1-D Lookup Table1' + * Saturate: '/Saturation8' + */ + rtb_MultiportSwitch_i = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RR_LV1[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_gl[0] = g_assVR_INC_Y1_LV1[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVR_INC_Y2_LV1[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 2: + rtb_u5FRU_tg_incar = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assVTG_RR_LV1[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table5' + * Lookup_n-D: '/1-D Lookup Table2' + * Saturate: '/Saturation8' + */ + rtb_MultiportSwitch_i = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RR_LV2[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_gl[0] = g_assVR_INC_Y1_LV2[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVR_INC_Y2_LV2[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 3: + rtb_u5FRU_tg_incar = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assVTG_RR_LV3[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table12' + * Lookup_n-D: '/1-D Lookup Table3' + * Saturate: '/Saturation8' + */ + rtb_MultiportSwitch_i = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RR_LV3[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_gl[0] = g_assVR_INC_Y1_LV3[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVR_INC_Y2_LV3[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 4: + rtb_u5FRU_tg_incar = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assVTG_RR_LV4[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table1' + * Lookup_n-D: '/1-D Lookup Table4' + * Saturate: '/Saturation8' + */ + rtb_MultiportSwitch_i = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RR_LV4[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_gl[0] = g_assVR_INC_Y1_LV4[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVR_INC_Y2_LV4[rtb_DataTypeConversion3_j0 + - 1]; + break; + + default: + rtb_u5FRU_tg_incar = look1_iu16lu64n48ts16Ds32_binlcs(rtb_Saturation2_a, + rtConstP.pooled63, &g_assVTG_RR_LV5[0], 12U); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Lookup_n-D: '/1-D Lookup Table2' + * Lookup_n-D: '/1-D Lookup Table5' + * Saturate: '/Saturation8' + */ + rtb_MultiportSwitch_i = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_Saturation2_a, rtConstP.pooled45, &g_assINCAR_TG_RR_LV5[0], 12U); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_gl[0] = g_assVR_INC_Y1_LV5[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_gl[1] = g_assVR_INC_Y2_LV5[rtb_DataTypeConversion3_j0 + - 1]; + break; } - /* : if set_has_half && (SET - 16 + 1 <= length(Vtg_RR)) */ - rtb_LogicalOperator1_n = (rtb_LogicalOperator5 && (rtb_y_bf - 15 <= 13)); - if (rtb_LogicalOperator1_n) { - /* : y = (Vtg_RR(LVL + 1, SET - 16) + Vtg_RR(LVL + 1, SET - 16 + 1)) / 2; */ - i = Vtg_RLU[(rtb_y_bf - 17) * 6 + rtb_Saturation9] + Vtg_RLU[(rtb_y_bf - 16) - * 6 + rtb_Saturation9]; - if (i > 32767) { - i = 32767; - } else if (i < -32768) { - i = -32768; + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_gl[2] = 0; + + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + */ + rtb_VectorConcatenate_gl[3] = g_assVR_INC_Y3_LV0[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_gl[4] = g_assVR_INC_Y4_LV0[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[0] = g_assVR_INC_X1_LV0[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[1] = g_assVR_INC_X2_LV0[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + */ + rtb_VectorConcatenate_gl[3] = g_assVR_INC_Y3_LV1[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_gl[4] = g_assVR_INC_Y4_LV1[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[0] = g_assVR_INC_X1_LV1[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[1] = g_assVR_INC_X2_LV1[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + */ + rtb_VectorConcatenate_gl[3] = g_assVR_INC_Y3_LV2[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_gl[4] = g_assVR_INC_Y4_LV2[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[0] = g_assVR_INC_X1_LV2[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[1] = g_assVR_INC_X2_LV2[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + */ + rtb_VectorConcatenate_gl[3] = g_assVR_INC_Y3_LV3[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_gl[4] = g_assVR_INC_Y4_LV3[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[0] = g_assVR_INC_X1_LV3[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[1] = g_assVR_INC_X2_LV3[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + */ + rtb_VectorConcatenate_gl[3] = g_assVR_INC_Y3_LV4[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_gl[4] = g_assVR_INC_Y4_LV4[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[0] = g_assVR_INC_X1_LV4[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[1] = g_assVR_INC_X2_LV4[rtb_DataTypeConversion3_j0 + - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + */ + rtb_VectorConcatenate_gl[3] = g_assVR_INC_Y3_LV5[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_gl[4] = g_assVR_INC_Y4_LV5[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[0] = g_assVR_INC_X1_LV5[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[1] = g_assVR_INC_X2_LV5[rtb_DataTypeConversion3_j0 + - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_ic[2] = 0; + + /* MultiPortSwitch: '/Multiport Switch3' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + */ + rtb_VectorConcatenate_ic[3] = g_assVR_INC_X3_LV0[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[4] = g_assVR_INC_X4_LV0[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + */ + rtb_VectorConcatenate_ic[3] = g_assVR_INC_X3_LV1[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant21' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[4] = g_assVR_INC_X4_LV1[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 2: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant16' + */ + rtb_VectorConcatenate_ic[3] = g_assVR_INC_X3_LV2[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant22' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[4] = g_assVR_INC_X4_LV2[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 3: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant17' + */ + rtb_VectorConcatenate_ic[3] = g_assVR_INC_X3_LV3[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant23' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[4] = g_assVR_INC_X4_LV3[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 4: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant12' + */ + rtb_VectorConcatenate_ic[3] = g_assVR_INC_X3_LV4[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant18' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[4] = g_assVR_INC_X4_LV4[rtb_DataTypeConversion3_j0 + - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + */ + rtb_VectorConcatenate_ic[3] = g_assVR_INC_X3_LV5[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant19' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector2' + */ + rtb_VectorConcatenate_ic[4] = g_assVR_INC_X4_LV5[rtb_DataTypeConversion3_j0 + - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch3' */ + + /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: + * DataStoreRead: '/Data Store Read38' + * Sum: '/2.5. X = Inc_Tg - Incar_fb' + */ + rtb_MultiportSwitch_i = look1_is16lu64n32Ds32_binlcn((int16_t) + (rtb_MultiportSwitch_i - rtDW.Incar_RR), rtb_VectorConcatenate_ic, + rtb_VectorConcatenate_gl, 4U); + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + */ + rtb_VectorConcatenate_jb[0] = g_assVR_AMB_Y1_LV0[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + */ + rtb_VectorConcatenate_jb[0] = g_assVR_AMB_Y1_LV1[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + */ + rtb_VectorConcatenate_jb[0] = g_assVR_AMB_Y1_LV2[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + */ + rtb_VectorConcatenate_jb[0] = g_assVR_AMB_Y1_LV3[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + */ + rtb_VectorConcatenate_jb[0] = g_assVR_AMB_Y1_LV4[rtb_DataTypeConversion3_j0 + - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + */ + rtb_VectorConcatenate_jb[0] = g_assVR_AMB_Y1_LV5[rtb_DataTypeConversion3_j0 + - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_jb[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + */ + rtb_VectorConcatenate_jb[2] = g_assVR_AMB_Y2_LV0[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assVR_AMB_X1_LV0[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + */ + rtb_VectorConcatenate_jb[2] = g_assVR_AMB_Y2_LV1[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assVR_AMB_X1_LV1[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + */ + rtb_VectorConcatenate_jb[2] = g_assVR_AMB_Y2_LV2[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assVR_AMB_X1_LV2[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + */ + rtb_VectorConcatenate_jb[2] = g_assVR_AMB_Y2_LV3[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assVR_AMB_X1_LV3[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + */ + rtb_VectorConcatenate_jb[2] = g_assVR_AMB_Y2_LV4[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assVR_AMB_X1_LV4[rtb_DataTypeConversion3_j0 + - 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + */ + rtb_VectorConcatenate_jb[2] = g_assVR_AMB_Y2_LV5[rtb_DataTypeConversion3_j0 + - 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[0] = g_assVR_AMB_X1_LV5[rtb_DataTypeConversion3_j0 + - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_mx[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' incorporates: + * Constant: '/Constant10' + * Constant: '/Constant11' + * Constant: '/Constant6' + * Constant: '/Constant7' + * Constant: '/Constant8' + * Constant: '/Constant9' + */ + switch (rtb_Sum_i1) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_AMB_X2_LV0[i]; } - rtb_Bias5 = (int16_t)rt_roundd((double)i / 2.0); - } else { - /* : else */ - /* : y = Vtg_RR(LVL + 1, SET - 16); */ - rtb_Bias5 = Vtg_RLU[(rtb_y_bf - 17) * 6 + rtb_Saturation9]; - } + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + */ + rtb_VectorConcatenate_mx[2] = g_assVR_AMB_X2_LV0[rtb_DataTypeConversion3_j0 + - 1]; + break; - /* End of MATLAB Function: '/2.3 Vtg_RR' */ - - /* MATLAB Function: '/2.1 Incar target Rear Right' */ - /* : incar_tg_all = [g_assINCAR_TG_RR_LV0; g_assINCAR_TG_RR_LV1; g_assINCAR_TG_RR_LV2; g_assINCAR_TG_RR_LV3; g_assINCAR_TG_RR_LV4; g_assINCAR_TG_RR_LV5]; */ - for (i = 0; i < 13; i++) { - Vtg_RLU[6 * i] = g_assINCAR_TG_RR_LV0[i]; - Vtg_RLU[6 * i + 1] = g_assINCAR_TG_RR_LV1[i]; - Vtg_RLU[6 * i + 2] = g_assINCAR_TG_RR_LV2[i]; - Vtg_RLU[6 * i + 3] = g_assINCAR_TG_RR_LV3[i]; - Vtg_RLU[6 * i + 4] = g_assINCAR_TG_RR_LV4[i]; - Vtg_RLU[6 * i + 5] = g_assINCAR_TG_RR_LV5[i]; - } - - /* : if set_has_half && (SET - 16 + 1 <= length(incar_tg_all)) */ - if (rtb_LogicalOperator1_n) { - /* : y = (incar_tg_all(LVL + 1, SET - 16) + incar_tg_all(LVL + 1, SET - 16 + 1)) / 2; */ - i = Vtg_RLU[(rtb_y_bf - 17) * 6 + rtb_Saturation9] + Vtg_RLU[(rtb_y_bf - 16) - * 6 + rtb_Saturation9]; - if (i > 32767) { - i = 32767; - } else if (i < -32768) { - i = -32768; + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_AMB_X2_LV1[i]; } - rtb_FLU_tg_correct_g = (int16_t)rt_roundd((double)i / 2.0); - } else { - /* : else */ - /* : y = incar_tg_all(LVL + 1, SET - 16); */ - rtb_FLU_tg_correct_g = Vtg_RLU[(rtb_y_bf - 17) * 6 + rtb_Saturation9]; + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + */ + rtb_VectorConcatenate_mx[2] = g_assVR_AMB_X2_LV1[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_AMB_X2_LV2[i]; + } + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + */ + rtb_VectorConcatenate_mx[2] = g_assVR_AMB_X2_LV2[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_AMB_X2_LV3[i]; + } + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + */ + rtb_VectorConcatenate_mx[2] = g_assVR_AMB_X2_LV3[rtb_DataTypeConversion3_j0 + - 1]; + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_AMB_X2_LV4[i]; + } + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + */ + rtb_VectorConcatenate_mx[2] = g_assVR_AMB_X2_LV4[rtb_DataTypeConversion3_j0 + - 1]; + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVR_AMB_X2_LV5[i]; + } + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + */ + rtb_VectorConcatenate_mx[2] = g_assVR_AMB_X2_LV5[rtb_DataTypeConversion3_j0 + - 1]; + break; } - /* MATLAB Function: '/Y1-Y4 для Vtg_RX_incar' */ - Y1Y4Vtg_FX_incar(rtb_y_bf, rtb_Saturation9, rtb_VectorConcatenate_j); + /* End of MultiPortSwitch: '/Multiport Switch2' */ - /* MATLAB Function: '/X1-X4 для Vtg_RX_incar' */ - X1X4Vtg_FX_incar(rtb_y_bf, rtb_Saturation9, rtb_VectorConcatenate_bp); + /* Lookup_n-D: '/2.6 FLU_tg_amb' */ + rtb_u6FRU_tg_amb_h = look1_is16lu64n32Ds32_binlcn(rtb_FLU_tg_correct_l, + rtb_VectorConcatenate_mx, rtb_VectorConcatenate_jb, 2U); - /* MATLAB Function: '/Amb_Tg ' */ - Amb_Tg(rtb_Saturation9, &rtb_y_ck); - - /* MATLAB Function: '/Y1-Y4 для Vtg_RX_amb' */ - Y1Y2Vtg_RL_amb(rtb_y_bf, rtb_Saturation9, rtb_VectorConcatenate_lg); - - /* MATLAB Function: '/X1-X4 для Vtg_RX_amb' */ - /* : all_lvl_x1 = [g_assVR_AMB_X1_LV0; g_assVR_AMB_X1_LV1; g_assVR_AMB_X1_LV2; g_assVR_AMB_X1_LV3; g_assVR_AMB_X1_LV4; g_assVR_AMB_X1_LV5]; */ - /* : all_lvl_x2 = [g_assVR_AMB_X2_LV0; g_assVR_AMB_X2_LV1; g_assVR_AMB_X2_LV2; g_assVR_AMB_X2_LV3; g_assVR_AMB_X2_LV4; g_assVR_AMB_X2_LV5]; */ - /* : y = [all_lvl_x1(LVL + 1, idivide(SET - 16 + 1, 2)), 0, all_lvl_x2(LVL + 1, idivide(SET - 16 + 1, 2))]; */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assVR_AMB_X1_LV0[i]; - i_0 = 6 * i + 1; - tmp[i_0] = g_assVR_AMB_X1_LV1[i]; - rtb_Gain_pl = 6 * i + 2; - tmp[rtb_Gain_pl] = g_assVR_AMB_X1_LV2[i]; - rtb_Gain4 = 6 * i + 3; - tmp[rtb_Gain4] = g_assVR_AMB_X1_LV3[i]; - rtb_Gain5 = 6 * i + 4; - tmp[rtb_Gain5] = g_assVR_AMB_X1_LV4[i]; - rtb_Gain2 = 6 * i + 5; - tmp[rtb_Gain2] = g_assVR_AMB_X1_LV5[i]; - tmp_0[6 * i] = g_assVR_AMB_X2_LV0[i]; - tmp_0[i_0] = g_assVR_AMB_X2_LV1[i]; - tmp_0[rtb_Gain_pl] = g_assVR_AMB_X2_LV2[i]; - tmp_0[rtb_Gain4] = g_assVR_AMB_X2_LV3[i]; - tmp_0[rtb_Gain5] = g_assVR_AMB_X2_LV4[i]; - tmp_0[rtb_Gain2] = g_assVR_AMB_X2_LV5[i]; - } - - i = ((int32_t)trunc((((double)rtb_y_bf - 16.0) + 1.0) / 2.0) - 1) * 6 + - rtb_Saturation9; - rtb_VectorConcatenate_e0[0] = tmp[i]; - rtb_VectorConcatenate_e0[1] = 0; - rtb_VectorConcatenate_e0[2] = tmp_0[i]; - - /* End of MATLAB Function: '/X1-X4 для Vtg_RX_amb' */ - - /* MATLAB Function: '/Y1-Y4 для Vtg_RX_sun' */ - Y1Y2Vtg_RX_sun(rtb_y_bf, rtb_Saturation9, rtb_VectorConcatenate_bl); - - /* MATLAB Function: '/X1-X4 для Vtg_RX_sun' */ - X1X2Vtg_FX_sun(rtb_y_bf, rtb_Saturation9, rtb_VectorConcatenate_km); - - /* MATLAB Function: '/Vtg_RX_plus_min' */ - Vtg_RX_plus_min(rtb_y_bf, rtb_Saturation9, &rtb_y_ar); - - /* Switch: '/Switch3' incorporates: + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' * Constant: '/manual3' + * DataStoreRead: '/AF from Start Control' + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read3' * DataStoreWrite: '/Data Store Write22' - * DataTypeConversion: '/Data Type Conversion5' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - * Gain: '/Gain' - * Product: '/Product' + * Logic: '/Logical Operator' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' * RelationalOperator: '/Equal4' - * Sum: '/Add' + * Switch: '/Switch3' */ - if (rtDW.CCU_MODE_RR == 0) { - rtb_Saturation9 = (uint8_t)rtB.MultiportSwitch_of; + if ((rtDW.step_start_controle_rear == 0) || (rtDW.step_start_controle_rear == + 1) || (rtDW.step_start_controle_rear == 2)) { + rtb_DataTypeConversion3_j0 = rtDW.Blower_RR; } else { - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read41' - */ - rtb_u8Vtg_FX_plus = look1_bs16ts16DdId_binlc(rtDW.Sun_R, - rtb_VectorConcatenate_km, rtb_VectorConcatenate_bl, 2U); + if (rtDW.CCU_MODE_RR == 0) { + /* Switch: '/Switch3' incorporates: + * DataTypeConversion: '/Data Type Conversion5' + */ + rtb_DataTypeConversion7 = (uint8_t)rtB.MultiportSwitch_of; + } else { + /* MultiPortSwitch: '/Multiport Switch2' incorporates: + * Constant: '/Constant10' + * Constant: '/Constant11' + * Constant: '/Constant6' + * Constant: '/Constant7' + * Constant: '/Constant8' + * Constant: '/Constant9' + * Switch: '/Switch3' + */ + switch (rtb_Sum_i1) { + case 0: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_SUN_X2_LV0[i]; + } + break; - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read34' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' - */ - rtb_y_bf = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_ck - rtDW.AMB), - rtb_VectorConcatenate_e0, rtb_VectorConcatenate_lg, 2U); + case 1: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_SUN_X2_LV1[i]; + } + break; - /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: - * DataStoreRead: '/Data Store Read38' - * Sum: '/2.5. X = Inc_Tg - Incar_fb' - */ - rtb_FLU_tg_correct_g = look1_is16lu64n32Ds32_binlcn((int16_t) - (rtb_FLU_tg_correct_g - rtDW.Incar_RR), rtb_VectorConcatenate_bp, - rtb_VectorConcatenate_j, 4U); + case 2: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_SUN_X2_LV2[i]; + } + break; - /* Sum: '/FLU_tg_correct' */ - rtb_Bias5 = (int16_t)floor((double)((rtb_Bias5 + rtb_FLU_tg_correct_g) + - rtb_y_bf) + rtb_u8Vtg_FX_plus); + case 3: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_SUN_X2_LV3[i]; + } + break; - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' - */ - if (rtb_Bias5 > rtb_y_fe) { - rtb_Bias5 = rtb_y_fe; - } else if (rtb_Bias5 < rtb_y_ar) { - /* Switch: '/Switch' */ - rtb_Bias5 = rtb_y_ar; + case 4: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_SUN_X2_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_SUN_X2_LV5[i]; + } + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* Selector: '/Selector1' incorporates: + * Switch: '/Switch3' + */ + rtb_VectorConcatenate_mx[2] = + rtb_MultiportSwitch1_p2[rtb_DataTypeConversion3_j0 - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Switch: '/Switch3' + */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[1] = + g_assVR_SUN_X1_LV0[rtb_DataTypeConversion3_j0 - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[1] = + g_assVR_SUN_X1_LV1[rtb_DataTypeConversion3_j0 - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[1] = + g_assVR_SUN_X1_LV2[rtb_DataTypeConversion3_j0 - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[1] = + g_assVR_SUN_X1_LV3[rtb_DataTypeConversion3_j0 - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[1] = + g_assVR_SUN_X1_LV4[rtb_DataTypeConversion3_j0 - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_mx[1] = + g_assVR_SUN_X1_LV5[rtb_DataTypeConversion3_j0 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + * Switch: '/Switch3' + */ + rtb_VectorConcatenate_mx[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' incorporates: + * Constant: '/Constant10' + * Constant: '/Constant11' + * Constant: '/Constant6' + * Constant: '/Constant7' + * Constant: '/Constant8' + * Constant: '/Constant9' + * Switch: '/Switch3' + */ + switch (rtb_Sum_i1) { + case 0: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_SUN_Y2_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_SUN_Y2_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_SUN_Y2_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_SUN_Y2_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_SUN_Y2_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_SUN_Y2_LV5[i]; + } + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* Selector: '/Selector1' incorporates: + * Selector: '/Selector1' + * Switch: '/Switch3' + */ + rtb_VectorConcatenate_jb[2] = + rtb_MultiportSwitch1_p2[rtb_DataTypeConversion3_j0 - 1]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Switch: '/Switch3' + */ + switch (rtb_Sum_i1) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_jb[1] = + g_assVR_SUN_Y1_LV0[rtb_DataTypeConversion3_j0 - 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_jb[1] = + g_assVR_SUN_Y1_LV1[rtb_DataTypeConversion3_j0 - 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_jb[1] = + g_assVR_SUN_Y1_LV2[rtb_DataTypeConversion3_j0 - 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_jb[1] = + g_assVR_SUN_Y1_LV3[rtb_DataTypeConversion3_j0 - 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_jb[1] = + g_assVR_SUN_Y1_LV4[rtb_DataTypeConversion3_j0 - 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * Selector: '/Selector1' + */ + rtb_VectorConcatenate_jb[1] = + g_assVR_SUN_Y1_LV5[rtb_DataTypeConversion3_j0 - 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + * Switch: '/Switch3' + */ + rtb_VectorConcatenate_jb[0] = 0; + + /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: + * DataStoreRead: '/Data Store Read41' + * Switch: '/Switch3' + */ + rtb_DataTypeConversion7 = look1_bs16ts16DdId_binlc(rtDW.Sun_R, + rtb_VectorConcatenate_mx, rtb_VectorConcatenate_jb, 2U); + + /* Sum: '/FLU_tg_correct' incorporates: + * Switch: '/Switch3' + */ + rtb_FLU_tg_correct_l = (int16_t)floor((double)((rtb_u5FRU_tg_incar + + rtb_MultiportSwitch_i) + rtb_u6FRU_tg_amb_h) + rtb_DataTypeConversion7); + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' + * Switch: '/Switch3' + */ + switch (rtb_Sum_i1) { + case 0: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_MAX_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_MAX_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_MAX_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_MAX_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_MAX_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_MAX_LV5[i]; + } + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Selector: '/Selector' incorporates: + * Selector: '/Selector1' + * Switch: '/Switch3' + */ + rtb_u6FRU_tg_amb = rtb_MultiportSwitch1_p2[rtb_DataTypeConversion3_j0 - 1]; + + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * Switch: '/Switch3' + */ + if (rtb_FLU_tg_correct_l <= rtb_u6FRU_tg_amb) { + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * Constant: '/Constant4' + * Constant: '/Constant5' + */ + switch (rtb_Sum_i1) { + case 0: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_MIN_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_MIN_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_MIN_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_MIN_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_MIN_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1_p2[i] = g_assVR_MIN_LV5[i]; + } + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Selector: '/Selector' incorporates: + * Selector: '/Selector1' + */ + rtb_u6FRU_tg_amb = rtb_MultiportSwitch1_p2[rtb_DataTypeConversion3_j0 - + 1]; + + /* Switch: '/Switch' incorporates: + * RelationalOperator: '/UpperRelop' + * Selector: '/Selector' + */ + if (rtb_FLU_tg_correct_l >= rtb_u6FRU_tg_amb) { + rtb_u6FRU_tg_amb = rtb_FLU_tg_correct_l; + } + + /* End of Switch: '/Switch' */ + } + + /* End of Switch: '/Switch2' */ + + /* Switch: '/Switch3' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * Gain: '/Gain' + * Product: '/Product' + * Sum: '/Add' + */ + rtb_DataTypeConversion7 = 0.01 * (double)rtb_y_c * (double)(uint8_t) + rtb_u6FRU_tg_amb + (double)(uint8_t)rtb_u6FRU_tg_amb; } - /* End of Switch: '/Switch2' */ - rtb_Saturation9 = (uint8_t)(0.01 * (double)rtb_y_b2 * (double)(uint8_t) - rtb_Bias5 + (double)(uint8_t)rtb_Bias5); + rtb_DataTypeConversion3_j0 = (uint8_t)rtb_DataTypeConversion7; } - /* End of Switch: '/Switch3' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(Gain, &rtb_LogicalOperator5); + /* MATLAB Function: '/is_ending_with_5' */ + is_ending_with_5(Gain, &rtb_LogicalOperator_fc); - /* MATLAB Function: '/is_ending_with_5' */ + /* MATLAB Function: '/is_ending_with_5' */ /* : correct_after_time = [g_assCORRECT_AF_MAX_LV0; g_assCORRECT_AF_MAX_LV1; g_assCORRECT_AF_MAX_LV2; g_assCORRECT_AF_MAX_LV3; g_assCORRECT_AF_MAX_LV4; g_assCORRECT_AF_MAX_LV5]; */ /* : y = correct_after_time(LVL + 1, idivide(SET - 16 + 1, 2)); */ /* : correct_rate = [g_assCORRECT_AF_RATE_LV0; g_assCORRECT_AF_RATE_LV1; g_assCORRECT_AF_RATE_LV2; g_assCORRECT_AF_RATE_LV3; g_assCORRECT_AF_RATE_LV4; g_assCORRECT_AF_RATE_LV5]; */ @@ -13678,10 +18432,11 @@ void HVAC_model_step(void) /* : disp(y) */ /* : correct_after_time = [g_assCORRECT_AF_TIME_FL_LV0; g_assCORRECT_AF_TIME_FL_LV1; g_assCORRECT_AF_TIME_FL_LV2; g_assCORRECT_AF_TIME_FL_LV3; g_assCORRECT_AF_TIME_FL_LV4; g_assCORRECT_AF_TIME_FL_LV5]; */ /* : y = correct_after_time(LVL + 1, idivide(SET - 16 + 1, 2)); */ - is_ending_with_5(Gain1, &rtb_LogicalOperator5); + is_ending_with_5(Gain1, &rtb_LogicalOperator_fc); - /* MATLAB Function: '/MATLAB Function1' incorporates: - * DataStoreWrite: '/Data Store Write29' + /* BusCreator: '/Bus Creator' incorporates: + * Constant: '/Constant2' + * DataStoreWrite: '/Data Store Write32' */ /* : correct_after_time = [g_assCORRECT_AF_MAX_LV0; g_assCORRECT_AF_MAX_LV1; g_assCORRECT_AF_MAX_LV2; g_assCORRECT_AF_MAX_LV3; g_assCORRECT_AF_MAX_LV4; g_assCORRECT_AF_MAX_LV5]; */ /* : y = correct_after_time(LVL + 1, idivide(SET - 16 + 1, 2)); */ @@ -13689,6 +18444,17 @@ void HVAC_model_step(void) /* : y = correct_rate(LVL + 1, idivide(SET - 16 + 1, 2)); */ /* : correct_after_time = [g_assCORRECT_AF_TIME_FR_LV0; g_assCORRECT_AF_TIME_FR_LV1; g_assCORRECT_AF_TIME_FR_LV2; g_assCORRECT_AF_TIME_FR_LV3; g_assCORRECT_AF_TIME_FR_LV4; g_assCORRECT_AF_TIME_FR_LV5]; */ /* : y = correct_after_time(LVL + 1, idivide(SET - 16 + 1, 2)); */ + rtDW.LIN4_CCU_Req_Model.CCU_Ionization_Req = 0U; + rtDW.LIN4_CCU_Req_Model.CCU_AromaIntens_Req = 0U; + rtDW.LIN4_CCU_Req_Model.CCU_AirQS_Req = 1U; + rtDW.LIN4_CCU_Req_Model.CCU_fHVAC_Pos_Val = 0U; + rtDW.LIN4_CCU_Req_Model.CCU_rHVAC_Pos_Val = 0U; + rtDW.LIN4_CCU_Req_Model.CCU_batChiller_Pos_Val = 0U; + rtDW.LIN4_CCU_Req_Model.CCU_eeChiller_Pos_Val = 0U; + + /* MATLAB Function: '/MATLAB Function1' incorporates: + * DataStoreWrite: '/Data Store Write29' + */ /* : IDLE = uint8(0); */ /* : LO_RIGHT = uint8(1); */ /* : HI_RIGHT = uint8(8); */ @@ -13701,8 +18467,8 @@ void HVAC_model_step(void) /* : CAN_LoHi_Front = IDLE; */ rtDW.CAN_LoHi_Front = 0U; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' * MATLAB Function: '/MATLAB Function1' */ /* : CAN_LoHi_Rear = IDLE; */ @@ -13717,8 +18483,8 @@ void HVAC_model_step(void) */ /* : is_HI_4zone = (FL == 2 && FR == 2 && RL == 2 && RR == 2); */ /* : is_LO_4zone = (FL == 1 && FR == 1 && RL == 1 && RR == 1); */ - rtb_Compare_dq = ((rtDW.LO_HI_MODE_FL == 1) && (rtDW.LO_HI_MODE_FR == 1) && - (rtDW.LO_HI_MODE_RL == 1) && (rtDW.LO_HI_MODE_RR == 1)); + rtb_FailCond_jb = ((rtDW.LO_HI_MODE_FL == 1) && (rtDW.LO_HI_MODE_FR == 1) && + (rtDW.LO_HI_MODE_RL == 1) && (rtDW.LO_HI_MODE_RR == 1)); /* : if is_HI_4zone */ if ((rtDW.LO_HI_MODE_FL == 2) && (rtDW.LO_HI_MODE_FR == 2) && @@ -13726,9 +18492,9 @@ void HVAC_model_step(void) /* : CAN_LoHi_Front = HI_4ZONE; */ rtDW.CAN_LoHi_Front = 99U; - /* BusCreator: '/Bus Creator' incorporates: + /* BusCreator: '/Bus Creator' incorporates: * DataStoreWrite: '/Data Store Write29' - * DataStoreWrite: '/Data Store Write' + * DataStoreWrite: '/Data Store Write' */ /* : CAN_LoHi_Rear = HI_4ZONE; */ rtDW.dbgCAN_Logic_State_model.Logic_LoHi_Rear = 99U; @@ -13745,7 +18511,7 @@ void HVAC_model_step(void) /* : elseif FR == 2 */ /* : CAN_LoHi_Front = HI_RIGHT; */ rtDW.CAN_LoHi_Front = 8U; - } else if (rtb_Compare_dq) { + } else if (rtb_FailCond_jb) { /* : elseif is_LO_4zone */ /* : CAN_LoHi_Front = LO_4ZONE; */ rtDW.CAN_LoHi_Front = 22U; @@ -13764,50 +18530,50 @@ void HVAC_model_step(void) } if ((rtDW.LO_HI_MODE_RL == 2) && (rtDW.LO_HI_MODE_RR == 2)) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* : elseif RL == 2 && RR == 2 */ /* : CAN_LoHi_Rear = HI_BOTH; */ rtDW.dbgCAN_Logic_State_model.Logic_LoHi_Rear = 88U; } else if (rtDW.LO_HI_MODE_RL == 2) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* : elseif RL == 2 */ /* : CAN_LoHi_Rear = HI_LEFT; */ rtDW.dbgCAN_Logic_State_model.Logic_LoHi_Rear = 80U; } else if (rtDW.LO_HI_MODE_RR == 2) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* : elseif RR == 2 */ /* : CAN_LoHi_Rear = HI_RIGHT; */ rtDW.dbgCAN_Logic_State_model.Logic_LoHi_Rear = 8U; - } else if (rtb_Compare_dq) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + } else if (rtb_FailCond_jb) { + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* : elseif is_LO_4zone */ /* : CAN_LoHi_Rear = LO_4ZONE; */ rtDW.dbgCAN_Logic_State_model.Logic_LoHi_Rear = 22U; } else if ((rtDW.LO_HI_MODE_RL == 1) && (rtDW.LO_HI_MODE_RR == 1)) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* : elseif RL == 1 && RR == 1 */ /* : CAN_LoHi_Rear = LO_BOTH; */ rtDW.dbgCAN_Logic_State_model.Logic_LoHi_Rear = 11U; } else if (rtDW.LO_HI_MODE_RL == 1) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* : elseif RL == 1 */ /* : CAN_LoHi_Rear = LO_LEFT; */ rtDW.dbgCAN_Logic_State_model.Logic_LoHi_Rear = 10U; } else if (rtDW.LO_HI_MODE_RR == 1) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* : elseif RR == 1 */ /* : CAN_LoHi_Rear = LO_RIGHT; */ @@ -13815,414 +18581,262 @@ void HVAC_model_step(void) } } - /* Chart: '/Synchronization stateflow chart' incorporates: - * DataStoreWrite: '/Data Store Write15' - * DataStoreWrite: '/Data Store Write16' - * DataStoreWrite: '/Data Store Write17' - */ + /* Chart: '/Synchronization stateflow chart' */ /* : if is_HI_4zone */ if (rtDW.is_active_c618_HVAC_model == 0U) { rtDW.is_active_c618_HVAC_model = 1U; rtDW.is_c618_HVAC_model = IN_NO_SYNC; - - /* : sync_front = 0; */ - rtDW.CCU_FRONT_SYNC = 0U; - - /* : sync_rear = 0; */ - rtDW.CCU_REAR_SYNC = 0U; - - /* : sync_all = 0; */ - rtDW.CCU_ALL_ZONE_SYNC = 0U; + enter_atomic_NO_SYNC(); } else { guard1 = false; guard2 = false; - guard3 = false; - guard4 = false; switch (rtDW.is_c618_HVAC_model) { case IN_FRONT_ONLY: - rtDW.CCU_FRONT_SYNC = 1U; - rtDW.CCU_REAR_SYNC = 0U; - rtDW.CCU_ALL_ZONE_SYNC = 0U; + rtB.sync_front = 1U; + rtB.sync_rear = 0U; + rtB.sync_all = 0U; /* : sf_internal_predicateOutput = enable_full_sync; */ if (rtDW.enable_full_sync != 0) { - /* : enable_full_sync = 0; */ - rtDW.enable_full_sync = 0U; rtDW.is_c618_HVAC_model = IN_FULL_SYNC; - - /* : sync_front = 0; */ - rtDW.CCU_FRONT_SYNC = 0U; - - /* : sync_rear = 0; */ - rtDW.CCU_REAR_SYNC = 0U; - - /* : sync_all = 1; */ - rtDW.CCU_ALL_ZONE_SYNC = 1U; + enter_atomic_FULL_SYNC(); /* : sf_internal_predicateOutput = disable_front_sync; */ } else if (rtDW.disable_front_sync != 0) { - /* : disable_front_sync = 0; */ - rtDW.disable_front_sync = 0U; - guard2 = true; + guard1 = true; /* : sf_internal_predicateOutput = enable_rear_sync; */ } else if (rtDW.enable_rear_sync != 0) { - /* : enable_rear_sync = 0; */ - rtDW.enable_rear_sync = 0U; rtDW.is_c618_HVAC_model = IN_SEPARATE_FRONT_AND_REAR; - - /* : sync_front = 1; */ - rtDW.CCU_FRONT_SYNC = 1U; - - /* : sync_rear = 1; */ - rtDW.CCU_REAR_SYNC = 1U; - - /* : sync_all = 0; */ - rtDW.CCU_ALL_ZONE_SYNC = 0U; + enter_atomic_SEPARATE_FRONT_AND_REAR(); /* : sf_internal_predicateOutput = changed_FR_params; */ } else if (rtDW.changed_FR_params != 0) { - /* : changed_FR_params = 0; */ - rtDW.changed_FR_params = 0U; - guard2 = true; + guard1 = true; } break; case IN_FULL_SYNC: - rtDW.CCU_FRONT_SYNC = 0U; - rtDW.CCU_REAR_SYNC = 0U; - rtDW.CCU_ALL_ZONE_SYNC = 1U; + rtB.sync_front = 0U; + rtB.sync_rear = 0U; + rtB.sync_all = 1U; - /* : sf_internal_predicateOutput = disable_front_sync && ~enable_rear_sync; */ - if ((rtDW.disable_front_sync != 0) && (rtDW.enable_rear_sync == 0)) { - /* : disable_front_sync = 0; */ - rtDW.disable_front_sync = 0U; - guard3 = true; + /* : sf_internal_predicateOutput = disable_front_sync; */ + if (rtDW.disable_front_sync != 0) { + guard2 = true; /* : sf_internal_predicateOutput = enable_front_sync; */ - } else if (rtDW.enable_front_sync != 0) { - /* : enable_front_sync = 0; */ - rtDW.enable_front_sync = 0U; - guard4 = true; + } else if ((rtDW.enable_front_sync != 0) || (rtDW.enable_rear_sync != 0)) + { + rtDW.is_c618_HVAC_model = IN_SEPARATE_FRONT_AND_REAR; + enter_atomic_SEPARATE_FRONT_AND_REAR(); /* : sf_internal_predicateOutput = enable_rear_sync; */ - } else if (rtDW.enable_rear_sync != 0) { - /* : enable_rear_sync = 0 */ - rtDW.enable_rear_sync = 0U; - guard4 = true; - /* : sf_internal_predicateOutput = changed_FR_params; */ } else if (rtDW.changed_FR_params != 0) { - /* : changed_FR_params = 0; */ - rtDW.changed_FR_params = 0U; - guard3 = true; + guard2 = true; /* : sf_internal_predicateOutput = changed_RL_params || changed_RR_params; */ } else if ((rtDW.changed_RL_params != 0) || (rtDW.changed_RR_params != 0)) { - /* : changed_RL_params = 0; */ - rtDW.changed_RL_params = 0U; - - /* : changed_RR_params = 0; */ - rtDW.changed_RR_params = 0U; rtDW.is_c618_HVAC_model = IN_FRONT_ONLY; - - /* : sync_front = 1; */ - rtDW.CCU_FRONT_SYNC = 1U; - - /* : sync_rear = 0; */ - rtDW.CCU_REAR_SYNC = 0U; - - /* : sync_all = 0; */ - rtDW.CCU_ALL_ZONE_SYNC = 0U; + enter_atomic_FRONT_ONLY(); } break; case IN_NO_SYNC: - rtDW.CCU_FRONT_SYNC = 0U; - rtDW.CCU_REAR_SYNC = 0U; - rtDW.CCU_ALL_ZONE_SYNC = 0U; + rtB.sync_front = 0U; + rtB.sync_rear = 0U; + rtB.sync_all = 0U; /* : sf_internal_predicateOutput = enable_front_sync; */ if (rtDW.enable_front_sync != 0) { - /* : enable_front_sync = 0; */ - rtDW.enable_front_sync = 0U; rtDW.is_c618_HVAC_model = IN_FRONT_ONLY; - - /* : sync_front = 1; */ - rtDW.CCU_FRONT_SYNC = 1U; - - /* : sync_rear = 0; */ - rtDW.CCU_REAR_SYNC = 0U; - - /* : sync_all = 0; */ - rtDW.CCU_ALL_ZONE_SYNC = 0U; + enter_atomic_FRONT_ONLY(); /* : sf_internal_predicateOutput = enable_full_sync; */ } else if (rtDW.enable_full_sync != 0) { - /* : enable_full_sync = 0; */ - rtDW.enable_full_sync = 0U; rtDW.is_c618_HVAC_model = IN_FULL_SYNC; - - /* : sync_front = 0; */ - rtDW.CCU_FRONT_SYNC = 0U; - - /* : sync_rear = 0; */ - rtDW.CCU_REAR_SYNC = 0U; - - /* : sync_all = 1; */ - rtDW.CCU_ALL_ZONE_SYNC = 1U; + enter_atomic_FULL_SYNC(); /* : sf_internal_predicateOutput = enable_rear_sync; */ } else if (rtDW.enable_rear_sync != 0) { - /* : enable_rear_sync = 0; */ - rtDW.enable_rear_sync = 0U; rtDW.is_c618_HVAC_model = IN_REAR_ONLY; - - /* : sync_front = 0; */ - rtDW.CCU_FRONT_SYNC = 0U; - - /* : sync_rear = 1; */ - rtDW.CCU_REAR_SYNC = 1U; - - /* : sync_all = 0; */ - rtDW.CCU_ALL_ZONE_SYNC = 0U; + enter_atomic_REAR_ONLY(); } break; case IN_REAR_ONLY: - rtDW.CCU_FRONT_SYNC = 0U; - rtDW.CCU_REAR_SYNC = 1U; - rtDW.CCU_ALL_ZONE_SYNC = 0U; + rtB.sync_front = 0U; + rtB.sync_rear = 1U; + rtB.sync_all = 0U; /* : sf_internal_predicateOutput = enable_full_sync; */ if (rtDW.enable_full_sync != 0) { - /* : enable_full_sync = 0; */ - rtDW.enable_full_sync = 0U; rtDW.is_c618_HVAC_model = IN_FULL_SYNC; - - /* : sync_front = 0; */ - rtDW.CCU_FRONT_SYNC = 0U; - - /* : sync_rear = 0; */ - rtDW.CCU_REAR_SYNC = 0U; - - /* : sync_all = 1; */ - rtDW.CCU_ALL_ZONE_SYNC = 1U; + enter_atomic_FULL_SYNC(); /* : sf_internal_predicateOutput = enable_front_sync; */ } else if (rtDW.enable_front_sync != 0) { - /* : enable_front_sync = 0; */ - rtDW.enable_front_sync = 0U; rtDW.is_c618_HVAC_model = IN_SEPARATE_FRONT_AND_REAR; + enter_atomic_SEPARATE_FRONT_AND_REAR(); - /* : sync_front = 1; */ - rtDW.CCU_FRONT_SYNC = 1U; - - /* : sync_rear = 1; */ - rtDW.CCU_REAR_SYNC = 1U; - - /* : sync_all = 0; */ - rtDW.CCU_ALL_ZONE_SYNC = 0U; - - /* : sf_internal_predicateOutput = disable_rear_sync || changed_RL_params; */ - } else if ((rtDW.disable_rear_sync != 0) || (rtDW.changed_RL_params != 0)) - { - /* : disable_rear_sync = 0; */ - rtDW.disable_rear_sync = 0U; - - /* : changed_RL_params = 0; */ - rtDW.changed_RL_params = 0U; + /* : sf_internal_predicateOutput = disable_rear_sync; */ + } else if (rtDW.disable_rear_sync != 0) { rtDW.is_c618_HVAC_model = IN_NO_SYNC; - - /* : sync_front = 0; */ - rtDW.CCU_FRONT_SYNC = 0U; - - /* : sync_rear = 0; */ - rtDW.CCU_REAR_SYNC = 0U; - - /* : sync_all = 0; */ - rtDW.CCU_ALL_ZONE_SYNC = 0U; + enter_atomic_NO_SYNC(); } break; default: /* case IN_SEPARATE_FRONT_AND_REAR: */ - rtDW.CCU_FRONT_SYNC = 1U; - rtDW.CCU_REAR_SYNC = 1U; - rtDW.CCU_ALL_ZONE_SYNC = 0U; + rtB.sync_front = 1U; + rtB.sync_rear = 1U; + rtB.sync_all = 0U; /* : sf_internal_predicateOutput = enable_full_sync; */ if (rtDW.enable_full_sync != 0) { - /* : enable_full_sync = 0; */ - rtDW.enable_full_sync = 0U; rtDW.is_c618_HVAC_model = IN_FULL_SYNC; - - /* : sync_front = 0; */ - rtDW.CCU_FRONT_SYNC = 0U; - - /* : sync_rear = 0; */ - rtDW.CCU_REAR_SYNC = 0U; - - /* : sync_all = 1; */ - rtDW.CCU_ALL_ZONE_SYNC = 1U; + enter_atomic_FULL_SYNC(); /* : sf_internal_predicateOutput = disable_rear_sync || changed_RL_params; */ } else if ((rtDW.disable_rear_sync != 0) || (rtDW.changed_RL_params != 0)) { - /* : disable_rear_sync = 0; */ - rtDW.disable_rear_sync = 0U; - - /* : changed_RL_params = 0; */ - rtDW.changed_RL_params = 0U; rtDW.is_c618_HVAC_model = IN_FRONT_ONLY; + enter_atomic_FRONT_ONLY(); - /* : sync_front = 1; */ - rtDW.CCU_FRONT_SYNC = 1U; - - /* : sync_rear = 0; */ - rtDW.CCU_REAR_SYNC = 0U; - - /* : sync_all = 0; */ - rtDW.CCU_ALL_ZONE_SYNC = 0U; - - /* : sf_internal_predicateOutput = disable_front_sync || changed_FR_params; */ + /* : sf_internal_predicateOutput = disable_front_sync; */ } else if ((rtDW.disable_front_sync != 0) || (rtDW.changed_FR_params != 0)) { - /* : disable_front_sync = 0; */ - rtDW.disable_front_sync = 0U; - - /* : changed_FR_params = 0; */ - rtDW.changed_FR_params = 0U; - guard1 = true; - + rtDW.is_c618_HVAC_model = IN_REAR_ONLY; + enter_atomic_REAR_ONLY(); + } else { /* : sf_internal_predicateOutput = changed_FR_params; */ - } else if (rtDW.changed_FR_params != 0) { - /* : changed_FR_params = 0; */ - rtDW.changed_FR_params = 0U; - guard1 = true; } break; } - if (guard4) { - rtDW.is_c618_HVAC_model = IN_SEPARATE_FRONT_AND_REAR; - - /* : sync_front = 1; */ - rtDW.CCU_FRONT_SYNC = 1U; - - /* : sync_rear = 1; */ - rtDW.CCU_REAR_SYNC = 1U; - - /* : sync_all = 0; */ - rtDW.CCU_ALL_ZONE_SYNC = 0U; - } - - if (guard3) { - rtDW.is_c618_HVAC_model = IN_REAR_ONLY; - - /* : sync_front = 0; */ - rtDW.CCU_FRONT_SYNC = 0U; - - /* : sync_rear = 1; */ - rtDW.CCU_REAR_SYNC = 1U; - - /* : sync_all = 0; */ - rtDW.CCU_ALL_ZONE_SYNC = 0U; - } - if (guard2) { - rtDW.is_c618_HVAC_model = IN_NO_SYNC; - - /* : sync_front = 0; */ - rtDW.CCU_FRONT_SYNC = 0U; - - /* : sync_rear = 0; */ - rtDW.CCU_REAR_SYNC = 0U; - - /* : sync_all = 0; */ - rtDW.CCU_ALL_ZONE_SYNC = 0U; + rtDW.is_c618_HVAC_model = IN_REAR_ONLY; + enter_atomic_REAR_ONLY(); } if (guard1) { - rtDW.is_c618_HVAC_model = IN_REAR_ONLY; - - /* : sync_front = 0; */ - rtDW.CCU_FRONT_SYNC = 0U; - - /* : sync_rear = 1; */ - rtDW.CCU_REAR_SYNC = 1U; - - /* : sync_all = 0; */ - rtDW.CCU_ALL_ZONE_SYNC = 0U; + rtDW.is_c618_HVAC_model = IN_NO_SYNC; + enter_atomic_NO_SYNC(); } } /* End of Chart: '/Synchronization stateflow chart' */ - /* Outputs for Enabled SubSystem: '/Front Left Valves - manual directions' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Front Left Valves - manual directions' incorporates: + * EnablePort: '/Enable' */ - /* RelationalOperator: '/Equal2' incorporates: - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read44' + /* RelationalOperator: '/Equal2' incorporates: + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read44' */ if (rtDW.CCU_MODE_FL == 0) { - /* DataTypeConversion: '/Data Type Conversion5' incorporates: - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read10' - * RelationalOperator: '/Relational Operator2' + /* Sum: '/Add' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read10' + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read5' + * Gain: '/Gain1' + * Gain: '/Gain2' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' */ - rtb_Switch_gs = (uint8_t)(rtDW.CCU_FOOT_FL == 1); + Gain = (uint16_t)(((uint32_t)((rtDW.CCU_FACE_FL == 1) << 1) + (uint32_t) + (rtDW.CCU_DEF_FL == 1)) + (uint32_t)((rtDW.CCU_FOOT_FL == + 1) << 2)); - /* MATLAB Function: '/Valves for Def' */ - ValvesforDef(rtb_out_dwb); + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant10' + * Constant: '/Constant11' + * Constant: '/Constant4' + * Constant: '/Constant5' + * Constant: '/Constant6' + * Constant: '/Constant7' + * Constant: '/Constant8' + * Constant: '/Constant9' + * DataStoreWrite: '/Data Store Write' + */ + switch (Gain) { + case 0: + rtDW.Index_mode_FL_manual = 0U; + break; - /* MATLAB Function: '/Valves for Hi_Level' */ + case 1: + rtDW.Index_mode_FL_manual = 80U; + break; + + case 2: + rtDW.Index_mode_FL_manual = 10U; + break; + + case 3: + rtDW.Index_mode_FL_manual = 100U; + break; + + case 4: + rtDW.Index_mode_FL_manual = 60U; + break; + + case 5: + rtDW.Index_mode_FL_manual = 70U; + break; + + case 6: + rtDW.Index_mode_FL_manual = 20U; + break; + + default: + rtDW.Index_mode_FL_manual = 90U; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* MATLAB Function: '/Valves for Hi_Level' */ + /* : out = g_ausFLOW_FR_DE2VALVE; */ /* : out = g_ausFLOW_FR_VE2VALVE; */ - ValvesforHi_Level(rtb_out_ff); + ValvesforHi_Level(rtb_out_j); - /* MATLAB Function: '/Valves for Foot + Def' */ + /* MATLAB Function: '/Valves for Foot + Def' */ /* : out = g_ausFLOW_FR_FO2VALVE; */ - ValvesforFootDef(rtb_out_fw); + ValvesforFootDef(rtb_out_nf); - /* MATLAB Function: '/Valves for Bi Level' */ - ValvesforBiLevel(rtb_out_c); + /* MATLAB Function: '/Valves for Bi Level' */ + ValvesforBiLevel(rtb_out_a2); - /* MATLAB Function: '/Valves for Tri-Level' */ + /* MATLAB Function: '/Valves for Tri-Level' */ ValvesforTriLevel(rtB.MultiportSwitch_f); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read4' - * DataStoreRead: '/Data Store Read5' - * Gain: '/Gain1' - * Gain: '/Gain2' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * Sum: '/Add' - */ - switch ((int32_t)(((uint32_t)((rtDW.CCU_FACE_FL == 1) << 1) + (uint32_t) - (rtDW.CCU_DEF_FL == 1)) + (uint32_t)(rtb_Switch_gs << 2))) - { + /* MultiPortSwitch: '/Multiport Switch' */ + switch (Gain) { case 0: - /* MultiPortSwitch: '/Multiport Switch' */ + /* MultiPortSwitch: '/Multiport Switch' */ for (i = 0; i < 9; i++) { rtB.MultiportSwitch_f[i] = 0U; } break; case 1: - /* MultiPortSwitch: '/Multiport Switch' */ + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * MATLAB Function: '/Valves for Def' + */ for (i = 0; i < 9; i++) { - rtB.MultiportSwitch_f[i] = rtb_out_dwb[i]; + rtB.MultiportSwitch_f[i] = g_ausFLOW_FR_DE2VALVE[i]; } break; case 2: - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * MATLAB Function: '/Valves for Vent mode' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * MATLAB Function: '/Valves for Vent mode' */ for (i = 0; i < 9; i++) { rtB.MultiportSwitch_f[i] = g_ausFLOW_FR_VE2VALVE[i]; @@ -14230,15 +18844,15 @@ void HVAC_model_step(void) break; case 3: - /* MultiPortSwitch: '/Multiport Switch' */ + /* MultiPortSwitch: '/Multiport Switch' */ for (i = 0; i < 9; i++) { - rtB.MultiportSwitch_f[i] = rtb_out_ff[i]; + rtB.MultiportSwitch_f[i] = rtb_out_j[i]; } break; case 4: - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * MATLAB Function: '/Valves for Foot' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * MATLAB Function: '/Valves for Foot' */ for (i = 0; i < 9; i++) { rtB.MultiportSwitch_f[i] = g_ausFLOW_FR_FO2VALVE[i]; @@ -14246,34 +18860,34 @@ void HVAC_model_step(void) break; case 5: - /* MultiPortSwitch: '/Multiport Switch' */ + /* MultiPortSwitch: '/Multiport Switch' */ for (i = 0; i < 9; i++) { - rtB.MultiportSwitch_f[i] = rtb_out_fw[i]; + rtB.MultiportSwitch_f[i] = rtb_out_nf[i]; } break; case 6: - /* MultiPortSwitch: '/Multiport Switch' */ + /* MultiPortSwitch: '/Multiport Switch' */ for (i = 0; i < 9; i++) { - rtB.MultiportSwitch_f[i] = rtb_out_c[i]; + rtB.MultiportSwitch_f[i] = rtb_out_a2[i]; } break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ } - /* End of RelationalOperator: '/Equal2' */ - /* End of Outputs for SubSystem: '/Front Left Valves - manual directions' */ + /* End of RelationalOperator: '/Equal2' */ + /* End of Outputs for SubSystem: '/Front Left Valves - manual directions' */ - /* RelationalOperator: '/Equal1' incorporates: - * Constant: '/manual' - * DataStoreRead: '/Data Store Read46' + /* RelationalOperator: '/Equal1' incorporates: + * Constant: '/manual' + * DataStoreRead: '/Data Store Read46' */ - rtb_LogicalOperator5 = (rtDW.CCU_MODE_FL == 0); + rtb_Compare_i5 = (rtDW.CCU_MODE_FL == 0); - /* Saturate: '/Saturation4' incorporates: - * DataStoreRead: '/Data Store Read' + /* Saturate: '/Saturation4' incorporates: + * DataStoreRead: '/Data Store Read' */ if (rtDW.LEVEL <= 5) { rtb_Saturation4_l = rtDW.LEVEL; @@ -14281,27 +18895,39 @@ void HVAC_model_step(void) rtb_Saturation4_l = 5U; } - /* End of Saturate: '/Saturation4' */ + /* End of Saturate: '/Saturation4' */ - /* Saturate: '/Saturation' incorporates: - * DataStoreRead: '/Data Store Read16' + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read16' */ if (rtDW.CCU_SET_FL > 290) { - Gain = 290U; + rtb_out_os = 290U; } else if (rtDW.CCU_SET_FL < 170) { - Gain = 170U; + rtb_out_os = 170U; } else { - Gain = rtDW.CCU_SET_FL; + rtb_out_os = rtDW.CCU_SET_FL; } - /* MATLAB Function: '/MODE_for_set_and_lvl' incorporates: - * Gain: '/Gain2' - * Saturate: '/Saturation' + /* MATLAB Function: '/MODE_for_set_and_lvl' incorporates: + * Gain: '/Gain2' + * Saturate: '/Saturation' */ - MODE_for_set_and_lvl(rtb_Saturation4_l, (int16_t)((52429U * Gain) >> 19), - &rtb_Switch_gs); + MODE_for_set_and_lvl(rtb_Saturation4_l, (int16_t)((52429U * rtb_out_os) >> 19), + &rtb_Sum_i1); - /* MATLAB Function: '/valves_front_left' */ + /* If: '/If' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/mode from Start Control' + * Logic: '/Logical Operator' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + */ /* : modes_array = [ */ /* : g_ausFLOW_FR_VE2VALVE; */ /* : g_ausFLOW_FR_BIVALVE; */ @@ -14310,234 +18936,345 @@ void HVAC_model_step(void) /* : g_ausFLOW_FR_AF2VALVE_SUMMER]; */ /* : index = idivide(MODE, 10); */ /* : get_valves = modes_array(index, :); */ - i = (int32_t)trunc((double)rtb_Switch_gs / 10.0); - for (i_0 = 0; i_0 < 9; i_0++) { - tmp_1[5 * i_0] = g_ausFLOW_FR_VE2VALVE[i_0]; - tmp_1[5 * i_0 + 1] = g_ausFLOW_FR_BIVALVE[i_0]; - tmp_1[5 * i_0 + 2] = g_ausFLOW_FR_BI2VALVE[i_0]; - tmp_1[5 * i_0 + 3] = g_ausFLOW_FR_AF2VALVE[i_0]; - tmp_1[5 * i_0 + 4] = g_ausFLOW_FR_AF2VALVE_SUMMER[i_0]; + if (((rtDW.step_start_controle_front == 0) || (rtDW.step_start_controle_front == + 1) || (rtDW.step_start_controle_front == 2)) && (rtDW.Mode_FL > 0)) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* MATLAB Function: '/valves for mode' incorporates: + * DataStoreRead: '/mode from Start Control' + */ + /* : modes_array = [ */ + /* : g_ausFLOW_FR_VE2VALVE; */ + /* : g_ausFLOW_FR_BIVALVE; */ + /* : g_ausFLOW_FR_BI2VALVE; */ + /* : g_ausFLOW_FR_AF2VALVE; */ + /* : g_ausFLOW_FR_AF2VALVE_SUMMER; */ + /* : g_ausFLOW_FR_FO2VALVE; */ + /* : g_ausFLOW_FR_FD2VALVE; */ + /* : g_ausFLOW_FR_DE2VALVE; */ + /* : g_ausFLOW_FR_TR2VALVE; */ + /* : g_ausFLOW_FR_HI2VALVE; */ + /* : g_ausFLOW_FR_BIVALVE_MANUAL */ + /* : ]; */ + /* : index = idivide(MODE, 10); */ + /* : get_valves = modes_array(index, :); */ + i = (int32_t)trunc((double)rtDW.Mode_FL / 10.0); + for (i_0 = 0; i_0 < 9; i_0++) { + tmp_0[11 * i_0] = g_ausFLOW_FR_VE2VALVE[i_0]; + tmp_0[11 * i_0 + 1] = g_ausFLOW_FR_BIVALVE[i_0]; + tmp_0[11 * i_0 + 2] = g_ausFLOW_FR_BI2VALVE[i_0]; + tmp_0[11 * i_0 + 3] = g_ausFLOW_FR_AF2VALVE[i_0]; + tmp_0[11 * i_0 + 4] = g_ausFLOW_FR_AF2VALVE_SUMMER[i_0]; + tmp_0[11 * i_0 + 5] = g_ausFLOW_FR_FO2VALVE[i_0]; + tmp_0[11 * i_0 + 6] = g_ausFLOW_FR_FD2VALVE[i_0]; + tmp_0[11 * i_0 + 7] = g_ausFLOW_FR_DE2VALVE[i_0]; + tmp_0[11 * i_0 + 8] = g_ausFLOW_FR_TR2VALVE[i_0]; + tmp_0[11 * i_0 + 9] = g_ausFLOW_FR_HI2VALVE[i_0]; + tmp_0[11 * i_0 + 10] = g_ausFLOW_FR_BIVALVE_MANUAL[i_0]; - /* Switch: '/Switch' */ - if (rtb_LogicalOperator5) { - /* DataStoreWrite: '/Data Store Write23' incorporates: - * MultiPortSwitch: '/Multiport Switch' - */ - rtb_out_dwb[i_0] = rtB.MultiportSwitch_f[i_0]; - } else { - /* DataStoreWrite: '/Data Store Write23' */ - rtb_out_dwb[i_0] = tmp_1[(5 * i_0 + i) - 1]; + /* SignalConversion generated from: '/get_valves' */ + rtb_out_nf[i_0] = tmp_0[(11 * i_0 + i) - 1]; } - /* End of Switch: '/Switch' */ + /* End of MATLAB Function: '/valves for mode' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } else { + /* MATLAB Function: '/valves_front_left' */ + i = (int32_t)trunc((double)rtb_Sum_i1 / 10.0); + + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + for (i_0 = 0; i_0 < 9; i_0++) { + tmp[5 * i_0] = g_ausFLOW_FR_VE2VALVE[i_0]; + tmp[5 * i_0 + 1] = g_ausFLOW_FR_BIVALVE[i_0]; + tmp[5 * i_0 + 2] = g_ausFLOW_FR_BI2VALVE[i_0]; + tmp[5 * i_0 + 3] = g_ausFLOW_FR_AF2VALVE[i_0]; + tmp[5 * i_0 + 4] = g_ausFLOW_FR_AF2VALVE_SUMMER[i_0]; + + /* Switch: '/Switch' */ + if (rtb_Compare_i5) { + /* SignalConversion generated from: '/valves_in' incorporates: + * MultiPortSwitch: '/Multiport Switch' + */ + rtb_out_nf[i_0] = rtB.MultiportSwitch_f[i_0]; + } else { + /* SignalConversion generated from: '/valves_in' */ + rtb_out_nf[i_0] = tmp[(5 * i_0 + i) - 1]; + } + + /* End of Switch: '/Switch' */ + } + + /* End of MATLAB Function: '/valves_front_left' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of MATLAB Function: '/valves_front_left' */ + /* End of If: '/If' */ + for (i = 0; i < 5; i++) { + /* Assignment: '/Присваивание в [7-8]' incorporates: + * DataStoreWrite: '/Data Store Write23' + * SignalConversion generated from: '/Присваивание в [3-4]' + */ + rtb_out_j[i] = rtb_out_nf[i]; + } - /* MATLAB Function: '/Valves for Def' */ - ValvesforDef(rtb_out_ff); + /* Assignment: '/Присваивание в [7-8]' incorporates: + * DataStoreRead: '/Data Store Read2' + * DataStoreWrite: '/Data Store Write23' + * SignalConversion generated from: '/Присваивание в [3-4]' + * Sum: '/Sum' + */ + rtb_out_j[5] = (uint16_t)(rtb_out_nf[5] + rtDW.Valve_individual_foot_FL); + rtb_out_j[8] = rtb_out_nf[8]; - /* MATLAB Function: '/Valves for Hi_Level' */ + /* Sum: '/Add' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read3' + * Gain: '/Gain1' + * Gain: '/Gain2' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' + */ + rtb_Saturation2_a = (uint16_t)(((uint32_t)((rtDW.CCU_FACE_FR == 1) << 1) + + (uint32_t)(rtDW.CCU_DEF_FR == 1)) + (uint32_t)((rtDW.CCU_FOOT_FR == 1) << 2)); + + /* MATLAB Function: '/Valves for Hi_Level' */ + /* : out = g_ausFLOW_FR_DE2VALVE; */ /* : out = g_ausFLOW_FR_VE2VALVE; */ - ValvesforHi_Level(rtb_out_fw); + ValvesforHi_Level(rtb_out_nf); - /* MATLAB Function: '/Valves for Foot + Def' */ + /* MATLAB Function: '/Valves for Foot + Def' */ /* : out = g_ausFLOW_FR_FO2VALVE; */ - ValvesforFootDef(rtb_out_c); + ValvesforFootDef(rtb_out_a2); - /* MATLAB Function: '/Valves for Bi Level' */ - ValvesforBiLevel(rtb_out_f1); + /* MATLAB Function: '/Valves for Bi Level' */ + ValvesforBiLevel(rtb_out_lf); - /* MATLAB Function: '/Valves for Tri-Level' */ - ValvesforTriLevel(rtb_out_fl); + /* MATLAB Function: '/Valves for Tri-Level' */ + ValvesforTriLevel(rtb_out_oz); - /* Saturate: '/Saturation1' incorporates: - * DataStoreRead: '/Data Store Read17' + /* Saturate: '/Saturation1' incorporates: + * DataStoreRead: '/Data Store Read17' */ if (rtDW.CCU_SET_FR > 290) { - Gain = 290U; + rtb_out_os = 290U; } else if (rtDW.CCU_SET_FR < 170) { - Gain = 170U; + rtb_out_os = 170U; } else { - Gain = rtDW.CCU_SET_FR; + rtb_out_os = rtDW.CCU_SET_FR; } - /* MATLAB Function: '/MODE_for_set_and_lvl1' incorporates: - * Gain: '/Gain1' - * Saturate: '/Saturation1' + /* MATLAB Function: '/MODE_for_set_and_lvl1' incorporates: + * Gain: '/Gain1' + * Saturate: '/Saturation1' */ - MODE_for_set_and_lvl(rtb_Saturation4_l, (int16_t)((52429U * Gain) >> 19), - &rtb_Switch_gs); + MODE_for_set_and_lvl(rtb_Saturation4_l, (int16_t)((52429U * rtb_out_os) >> 19), + &rtb_DataTypeConversion1_ay); - /* Switch: '/Switch1' incorporates: - * Constant: '/manual1' - * DataStoreRead: '/Data Store Read8' - * RelationalOperator: '/Equal2' + /* MATLAB Function: '/valves_front_right' */ + valvesformode(rtb_DataTypeConversion1_ay, rtb_get_valves); + + /* Switch: '/Switch1' incorporates: + * Constant: '/manual1' + * DataStoreRead: '/Data Store Read8' + * RelationalOperator: '/Equal2' */ - /* : modes_array = [ */ - /* : g_ausFLOW_FR_VE2VALVE; */ - /* : g_ausFLOW_FR_BIVALVE; */ - /* : g_ausFLOW_FR_BI2VALVE; */ - /* : g_ausFLOW_FR_AF2VALVE; */ - /* : g_ausFLOW_FR_AF2VALVE_SUMMER]; */ - /* : index = idivide(MODE, 10); */ - /* : get_valves = modes_array(index, :); */ if (rtDW.CCU_MODE_FR == 0) { - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read3' - * Gain: '/Gain1' - * Gain: '/Gain2' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * Sum: '/Add' - */ - switch ((int32_t)(((uint32_t)((rtDW.CCU_FACE_FR == 1) << 1) + (uint32_t) - (rtDW.CCU_DEF_FR == 1)) + (uint32_t)((rtDW.CCU_FOOT_FR == - 1) << 2))) { + /* MultiPortSwitch: '/Multiport Switch' */ + switch (rtb_Saturation2_a) { case 0: - /* Switch: '/Switch1' */ + /* Switch: '/Switch1' */ for (i = 0; i < 9; i++) { - rtb_out_fl[i] = 0U; + rtb_get_valves[i] = 0U; } break; case 1: - /* Switch: '/Switch1' */ + /* Switch: '/Switch1' incorporates: + * MATLAB Function: '/Valves for Def' + */ for (i = 0; i < 9; i++) { - rtb_out_fl[i] = rtb_out_ff[i]; + rtb_get_valves[i] = g_ausFLOW_FR_DE2VALVE[i]; } break; case 2: - /* Switch: '/Switch1' incorporates: - * MATLAB Function: '/Valves for Vent mode' + /* Switch: '/Switch1' incorporates: + * MATLAB Function: '/Valves for Vent mode' */ for (i = 0; i < 9; i++) { - rtb_out_fl[i] = g_ausFLOW_FR_VE2VALVE[i]; + rtb_get_valves[i] = g_ausFLOW_FR_VE2VALVE[i]; } break; case 3: - /* Switch: '/Switch1' */ + /* Switch: '/Switch1' */ for (i = 0; i < 9; i++) { - rtb_out_fl[i] = rtb_out_fw[i]; + rtb_get_valves[i] = rtb_out_nf[i]; } break; case 4: - /* Switch: '/Switch1' incorporates: - * MATLAB Function: '/Valves for Foot' + /* Switch: '/Switch1' incorporates: + * MATLAB Function: '/Valves for Foot' */ for (i = 0; i < 9; i++) { - rtb_out_fl[i] = g_ausFLOW_FR_FO2VALVE[i]; + rtb_get_valves[i] = g_ausFLOW_FR_FO2VALVE[i]; } break; case 5: - /* Switch: '/Switch1' */ + /* Switch: '/Switch1' */ for (i = 0; i < 9; i++) { - rtb_out_fl[i] = rtb_out_c[i]; + rtb_get_valves[i] = rtb_out_a2[i]; } break; case 6: - /* Switch: '/Switch1' */ + /* Switch: '/Switch1' */ for (i = 0; i < 9; i++) { - rtb_out_fl[i] = rtb_out_f1[i]; + rtb_get_valves[i] = rtb_out_lf[i]; + } + break; + + default: + /* Switch: '/Switch1' */ + for (i = 0; i < 9; i++) { + rtb_get_valves[i] = rtb_out_oz[i]; } break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ - } else { - /* MATLAB Function: '/valves_front_right' incorporates: - * Switch: '/Switch1' - */ - i = (int32_t)trunc((double)rtb_Switch_gs / 10.0); - for (i_0 = 0; i_0 < 9; i_0++) { - tmp_1[5 * i_0] = g_ausFLOW_FR_VE2VALVE[i_0]; - tmp_1[5 * i_0 + 1] = g_ausFLOW_FR_BIVALVE[i_0]; - tmp_1[5 * i_0 + 2] = g_ausFLOW_FR_BI2VALVE[i_0]; - tmp_1[5 * i_0 + 3] = g_ausFLOW_FR_AF2VALVE[i_0]; - tmp_1[5 * i_0 + 4] = g_ausFLOW_FR_AF2VALVE_SUMMER[i_0]; - rtb_out_fl[i_0] = tmp_1[(5 * i_0 + i) - 1]; - } - - /* End of MATLAB Function: '/valves_front_right' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* Assignment: '/Присваивание в [3-4]' incorporates: + /* If: '/If1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/mode from Start Control' + * Logic: '/Logical Operator' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + */ + if (((rtDW.step_start_controle_front == 0) || (rtDW.step_start_controle_front == + 1) || (rtDW.step_start_controle_front == 2)) && (rtDW.Mode_FR > 0)) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* SignalConversion generated from: '/get_valves' incorporates: + * DataStoreRead: '/mode from Start Control' + * MATLAB Function: '/valves for mode' + */ + valvesformode(rtDW.Mode_FR, rtb_get_valves); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } + + /* End of If: '/If1' */ + + /* Assignment: '/Присваивание в [3-4]' incorporates: + * Assignment: '/Присваивание в [7-8]' * DataStoreWrite: '/Data Store Write23' */ - rtb_out_dwb[2] = rtb_out_fl[2]; + rtb_out_j[2] = rtb_get_valves[2]; + rtb_out_j[3] = rtb_get_valves[3]; - /* Assignment: '/Присваивание в [7-8]' incorporates: + /* Assignment: '/Присваивание в [7-8]' incorporates: + * DataStoreRead: '/Data Store Read2' * DataStoreWrite: '/Data Store Write23' + * SignalConversion generated from: '/Присваивание в [7-8]' + * Sum: '/Sum' */ - rtb_out_dwb[6] = rtb_out_fl[6]; + rtb_out_j[6] = (uint16_t)(rtb_get_valves[6] + rtDW.Valve_individual_foot_FR); + rtb_out_j[7] = rtb_get_valves[7]; - /* Assignment: '/Присваивание в [3-4]' incorporates: - * DataStoreWrite: '/Data Store Write23' + /* Outputs for Enabled SubSystem: '/Rear valves left - manual directions' incorporates: + * EnablePort: '/Enable' */ - rtb_out_dwb[3] = rtb_out_fl[3]; - - /* Assignment: '/Присваивание в [7-8]' incorporates: - * DataStoreWrite: '/Data Store Write23' - */ - rtb_out_dwb[7] = rtb_out_fl[7]; - - /* Outputs for Enabled SubSystem: '/Rear valves left - manual directions' incorporates: - * EnablePort: '/Enable' - */ - /* RelationalOperator: '/Equal2' incorporates: - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read44' + /* RelationalOperator: '/Equal2' incorporates: + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read44' */ if (rtDW.CCU_MODE_RL == 0) { - /* MATLAB Function: '/AF for Bi Level' */ + /* Sum: '/Add' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read23' + * DataStoreRead: '/Data Store Read24' + * Gain: '/Gain2' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' + */ + Gain = (uint16_t)((uint32_t)((rtDW.CCU_FOOT_RL == 1) << 1) + (uint32_t) + (rtDW.CCU_FACE_RL == 1)); + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant4' + * Constant: '/Constant5' + * Constant: '/Constant6' + * Constant: '/Constant7' + * DataStoreWrite: '/Data Store Write' + */ + switch (Gain) { + case 0: + rtDW.Index_mode_RL_manual = 0U; + break; + + case 1: + rtDW.Index_mode_RL_manual = 120U; + break; + + case 2: + rtDW.Index_mode_RL_manual = 140U; + break; + + default: + rtDW.Index_mode_RL_manual = 130U; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* MATLAB Function: '/AF for Bi Level' */ AFforBiLevel_a(rtB.MultiportSwitch_o); - /* MATLAB Function: '/valves for Vent mode' */ + /* MATLAB Function: '/valves for Vent mode' */ /* : out = g_ausFLOW_RE_FO2VALVE; */ - valvesforVentmode(rtb_Gain1_nj); + valvesforVentmode(rtb_Gain1_i4); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant1' - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read23' - * DataStoreRead: '/Data Store Read24' - * Gain: '/Gain2' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * Sum: '/Add' - */ - switch ((int32_t)((uint32_t)((rtDW.CCU_FOOT_RL == 1) << 1) + (uint32_t) - (rtDW.CCU_FACE_RL == 1))) { + /* MultiPortSwitch: '/Multiport Switch' */ + switch (Gain) { case 0: - /* MultiPortSwitch: '/Multiport Switch' */ + /* MultiPortSwitch: '/Multiport Switch' */ for (i = 0; i < 6; i++) { rtB.MultiportSwitch_o[i] = 0U; } break; case 1: - /* MultiPortSwitch: '/Multiport Switch' */ + /* MultiPortSwitch: '/Multiport Switch' */ for (i = 0; i < 6; i++) { - rtB.MultiportSwitch_o[i] = rtb_Gain1_nj[i]; + rtB.MultiportSwitch_o[i] = rtb_Gain1_i4[i]; } break; case 2: - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * MATLAB Function: '/AF for Foot' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * MATLAB Function: '/AF for Foot' */ for (i = 0; i < 6; i++) { rtB.MultiportSwitch_o[i] = g_ausFLOW_RE_FO2VALVE[i]; @@ -14545,19 +19282,19 @@ void HVAC_model_step(void) break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ } - /* End of RelationalOperator: '/Equal2' */ - /* End of Outputs for SubSystem: '/Rear valves left - manual directions' */ + /* End of RelationalOperator: '/Equal2' */ + /* End of Outputs for SubSystem: '/Rear valves left - manual directions' */ - /* RelationalOperator: '/Equal3' incorporates: - * Constant: '/manual2' - * DataStoreRead: '/Data Store Read9' + /* RelationalOperator: '/Equal3' incorporates: + * Constant: '/manual2' + * DataStoreRead: '/Data Store Read9' */ - rtb_LogicalOperator5 = (rtDW.CCU_MODE_RL == 0); + rtb_Compare_i5 = (rtDW.CCU_MODE_RL == 0); - /* MATLAB Function: '/MODE_by_duct_tg_R_for_LVL' */ + /* MATLAB Function: '/MODE_by_duct_tg_R_for_LVL' */ /* : modes_array = [ */ /* : g_ausMODE_BY_DUCT_TG_R_LV0; */ /* : g_ausMODE_BY_DUCT_TG_R_LV1; */ @@ -14567,102 +19304,166 @@ void HVAC_model_step(void) /* : g_ausMODE_BY_DUCT_TG_R_LV5]; */ /* : get_mode = modes_array(LVL + 1, :); */ for (i = 0; i < 7; i++) { - tmp_2[6 * i] = g_ausMODE_BY_DUCT_TG_R_LV0[i]; - tmp_2[6 * i + 1] = g_ausMODE_BY_DUCT_TG_R_LV1[i]; - tmp_2[6 * i + 2] = g_ausMODE_BY_DUCT_TG_R_LV2[i]; - tmp_2[6 * i + 3] = g_ausMODE_BY_DUCT_TG_R_LV3[i]; - tmp_2[6 * i + 4] = g_ausMODE_BY_DUCT_TG_R_LV4[i]; - tmp_2[6 * i + 5] = g_ausMODE_BY_DUCT_TG_R_LV5[i]; - rtb_get_mode[i] = tmp_2[6 * i + rtb_Saturation4_l]; + tmp_1[6 * i] = g_ausMODE_BY_DUCT_TG_R_LV0[i]; + tmp_1[6 * i + 1] = g_ausMODE_BY_DUCT_TG_R_LV1[i]; + tmp_1[6 * i + 2] = g_ausMODE_BY_DUCT_TG_R_LV2[i]; + tmp_1[6 * i + 3] = g_ausMODE_BY_DUCT_TG_R_LV3[i]; + tmp_1[6 * i + 4] = g_ausMODE_BY_DUCT_TG_R_LV4[i]; + tmp_1[6 * i + 5] = g_ausMODE_BY_DUCT_TG_R_LV5[i]; + rtb_get_mode[i] = tmp_1[6 * i + rtb_Saturation4_l]; } - /* End of MATLAB Function: '/MODE_by_duct_tg_R_for_LVL' */ + /* End of MATLAB Function: '/MODE_by_duct_tg_R_for_LVL' */ - /* If: '/If' incorporates: - * Sum: '/Subtract' - * UnitDelay: '/Unit Delay' + /* If: '/If' incorporates: + * DataStoreRead: '/Data Store Read6' + * Sum: '/Subtract' + * UnitDelay: '/Unit Delay' */ - if ((int16_t)-rtDW.UnitDelay_DSTATE_lk >= 0) { - /* Outputs for IfAction SubSystem: '/duct_tg увеличивается RL' incorporates: - * ActionPort: '/Action Port' + if ((int16_t)(rtb_FLU_tg_correct_me - rtDW.UnitDelay_DSTATE_lk) >= 0) { + /* Outputs for IfAction SubSystem: '/duct_tg увеличивается RL' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion generated from: '/rear_mode_index' incorporates: - * DataStoreWrite: '/Data Store Write4' - * MATLAB Function: '/increase' + /* SignalConversion generated from: '/rear_mode_index' incorporates: + * MATLAB Function: '/increase' */ - increase(0, rtb_get_mode, &Gain); + increase(rtb_FLU_tg_correct_me, rtb_get_mode, &Gain); - /* End of Outputs for SubSystem: '/duct_tg увеличивается RL' */ + /* End of Outputs for SubSystem: '/duct_tg увеличивается RL' */ } else { - /* Outputs for IfAction SubSystem: '/duct_tg уменьшается RL' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/duct_tg уменьшается RL' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion generated from: '/y' incorporates: - * DataStoreWrite: '/Data Store Write4' - * MATLAB Function: '/decrease' + /* SignalConversion generated from: '/y' incorporates: + * MATLAB Function: '/decrease' */ - decrease(0, rtb_get_mode, &Gain); + decrease(rtb_FLU_tg_correct_me, rtb_get_mode, &Gain); - /* End of Outputs for SubSystem: '/duct_tg уменьшается RL' */ + /* End of Outputs for SubSystem: '/duct_tg уменьшается RL' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ - /* MATLAB Function: '/valves_rear_left' */ - valves_rear_left(Gain, rtb_TmpSignalConversionAt1DLookupTable7Inport1); - for (i = 0; i < 6; i++) { - /* Switch: '/Switch2' */ - if (rtb_LogicalOperator5) { - /* DataStoreWrite: '/Data Store Write24' incorporates: - * MultiPortSwitch: '/Multiport Switch' + /* MATLAB Function: '/valves_rear_left' */ + valves_rear_left_d(Gain, rtb_TmpSignalConversionAt1DLookupTable7Inport1); + + /* If: '/If1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/mode from Start Control' + * Logic: '/Logical Operator' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + */ + if (((rtDW.step_start_controle_rear == 0) || (rtDW.step_start_controle_rear == + 1) || (rtDW.step_start_controle_rear == 2)) && (rtDW.Mode_RL > 0)) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* SignalConversion generated from: '/get_valves' incorporates: + * Assignment: '/Присваивание в [6] rear' + * DataStoreRead: '/mode from Start Control' + * MATLAB Function: '/valves_rear_left' + */ + valves_rear_left(rtDW.Mode_RL, rtb_Gain1_i4); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } else { + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + /* SignalConversion generated from: '/In1' */ + for (i = 0; i < 6; i++) { + /* Switch: '/Switch2' incorporates: + * Assignment: '/Присваивание в [6] rear' + * MultiPortSwitch: '/Multiport Switch' + * SignalConversion generated from: '/1-D Lookup Table7' */ - rtb_Gain1_nj[i] = rtB.MultiportSwitch_o[i]; - } else { - /* DataStoreWrite: '/Data Store Write24' incorporates: - * SignalConversion generated from: '/1-D Lookup Table7' - */ - rtb_Gain1_nj[i] = rtb_TmpSignalConversionAt1DLookupTable7Inport1[i]; + if (rtb_Compare_i5) { + rtb_Gain1_i4[i] = rtB.MultiportSwitch_o[i]; + } else { + rtb_Gain1_i4[i] = rtb_TmpSignalConversionAt1DLookupTable7Inport1[i]; + } + + /* End of Switch: '/Switch2' */ } - /* End of Switch: '/Switch2' */ + /* End of SignalConversion generated from: '/In1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* Outputs for Enabled SubSystem: '/Rear valves right - manual directions' incorporates: - * EnablePort: '/Enable' + /* End of If: '/If1' */ + + /* Outputs for Enabled SubSystem: '/Rear valves right - manual directions' incorporates: + * EnablePort: '/Enable' */ - /* RelationalOperator: '/Equal3' incorporates: - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read45' + /* RelationalOperator: '/Equal3' incorporates: + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read45' */ if (rtDW.CCU_MODE_RR == 0) { - /* MATLAB Function: '/AF for Bi Level' */ + /* Sum: '/Add' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read21' + * DataStoreRead: '/Data Store Read22' + * Gain: '/Gain2' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' + */ + Gain1 = (uint16_t)((uint32_t)((rtDW.CCU_FOOT_RR == 1) << 1) + (uint32_t) + (rtDW.CCU_FACE_RR == 1)); + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant4' + * Constant: '/Constant5' + * Constant: '/Constant6' + * Constant: '/Constant7' + * DataStoreWrite: '/Data Store Write' + */ + switch (Gain1) { + case 0: + rtDW.Index_mode_RL_manual = 0U; + break; + + case 1: + rtDW.Index_mode_RL_manual = 120U; + break; + + case 2: + rtDW.Index_mode_RL_manual = 140U; + break; + + default: + rtDW.Index_mode_RL_manual = 130U; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* MATLAB Function: '/AF for Bi Level' */ AFforBiLevel_a(rtB.MultiportSwitch); - /* MATLAB Function: '/valves for Vent mode' */ + /* MATLAB Function: '/valves for Vent mode' */ /* : out = g_ausFLOW_RE_FO2VALVE; */ valvesforVentmode(rtb_TmpSignalConversionAt1DLookupTable7Inport1); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant1' - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read21' - * DataStoreRead: '/Data Store Read22' - * Gain: '/Gain2' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * Sum: '/Add' - */ - switch ((int32_t)((uint32_t)((rtDW.CCU_FOOT_RR == 1) << 1) + (uint32_t) - (rtDW.CCU_FACE_RR == 1))) { + /* MultiPortSwitch: '/Multiport Switch' */ + switch (Gain1) { case 0: - /* MultiPortSwitch: '/Multiport Switch' */ + /* MultiPortSwitch: '/Multiport Switch' */ for (i = 0; i < 6; i++) { rtB.MultiportSwitch[i] = 0U; } break; case 1: - /* MultiPortSwitch: '/Multiport Switch' */ + /* MultiPortSwitch: '/Multiport Switch' */ for (i = 0; i < 6; i++) { rtB.MultiportSwitch[i] = rtb_TmpSignalConversionAt1DLookupTable7Inport1[i]; @@ -14670,8 +19471,8 @@ void HVAC_model_step(void) break; case 2: - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * MATLAB Function: '/AF for Foot' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * MATLAB Function: '/AF for Foot' */ for (i = 0; i < 6; i++) { rtB.MultiportSwitch[i] = g_ausFLOW_RE_FO2VALVE[i]; @@ -14679,282 +19480,366 @@ void HVAC_model_step(void) break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ } - /* End of RelationalOperator: '/Equal3' */ - /* End of Outputs for SubSystem: '/Rear valves right - manual directions' */ + /* End of RelationalOperator: '/Equal3' */ + /* End of Outputs for SubSystem: '/Rear valves right - manual directions' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read7' - * Sum: '/Subtract1' - * UnitDelay: '/Unit Delay1' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read7' + * Sum: '/Subtract1' + * UnitDelay: '/Unit Delay1' */ if ((int16_t)(rtDW.Duct_RR_Tg - rtDW.UnitDelay1_DSTATE) >= 0) { - /* Outputs for IfAction SubSystem: '/duct_tg увеличивается RR' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/duct_tg увеличивается RR' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion generated from: '/y' incorporates: - * MATLAB Function: '/increase' + /* SignalConversion generated from: '/y' incorporates: + * MATLAB Function: '/increase' */ - increase(rtDW.Duct_RR_Tg, rtb_get_mode, &Gain); + increase(rtDW.Duct_RR_Tg, rtb_get_mode, &Gain1); - /* End of Outputs for SubSystem: '/duct_tg увеличивается RR' */ + /* End of Outputs for SubSystem: '/duct_tg увеличивается RR' */ } else { - /* Outputs for IfAction SubSystem: '/duct_tg уменьшается RR' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/duct_tg уменьшается RR' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion generated from: '/y' incorporates: - * MATLAB Function: '/decrease' + /* SignalConversion generated from: '/y' incorporates: + * MATLAB Function: '/decrease' */ - decrease(rtDW.Duct_RR_Tg, rtb_get_mode, &Gain); + decrease(rtDW.Duct_RR_Tg, rtb_get_mode, &Gain1); - /* End of Outputs for SubSystem: '/duct_tg уменьшается RR' */ + /* End of Outputs for SubSystem: '/duct_tg уменьшается RR' */ } - /* End of If: '/If1' */ + /* End of If: '/If1' */ - /* MATLAB Function: '/valves_rear_right' */ - valves_rear_left(Gain, rtb_TmpSignalConversionAt1DLookupTable7Inport1); + /* MATLAB Function: '/valves_rear_right' */ + valves_rear_left_d(Gain1, rtb_TmpSignalConversionAt1DLookupTable7Inport1); - /* Switch: '/Switch3' incorporates: - * Constant: '/manual3' - * DataStoreRead: '/Data Store Read11' - * MultiPortSwitch: '/Multiport Switch' - * RelationalOperator: '/Equal4' + /* If: '/If1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/manual3' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/mode from Start Control' + * DataStoreRead: '/Data Store Read11' + * Logic: '/Logical Operator' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Equal4' + * Switch: '/Switch3' */ - if (rtDW.CCU_MODE_RR == 0) { + if (((rtDW.step_start_controle_rear == 0) || (rtDW.step_start_controle_rear == + 1) || (rtDW.step_start_controle_rear == 2)) && (rtDW.Mode_RR > 0)) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* SignalConversion generated from: '/get_valves' incorporates: + * DataStoreRead: '/mode from Start Control' + * MATLAB Function: '/valves_rear_right' + * Merge: '/Merge' + */ + valves_rear_left(rtDW.Mode_RR, + rtb_TmpSignalConversionAt1DLookupTable7Inport1); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } else if (rtDW.CCU_MODE_RR == 0) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + /* SignalConversion generated from: '/In1' */ for (i = 0; i < 6; i++) { + /* Switch: '/Switch3' incorporates: + * Merge: '/Merge' + * MultiPortSwitch: '/Multiport Switch' + */ rtb_TmpSignalConversionAt1DLookupTable7Inport1[i] = rtB.MultiportSwitch[i]; } + + /* End of SignalConversion generated from: '/In1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of Switch: '/Switch3' */ + /* End of If: '/If1' */ - /* Assignment: '/Присваивание в [3-4] rear' incorporates: - * DataStoreWrite: '/Data Store Write24' + /* Assignment: '/Присваивание в [3-4] rear' incorporates: + * Assignment: '/Присваивание в [6] rear' */ - rtb_Gain1_nj[2] = rtb_TmpSignalConversionAt1DLookupTable7Inport1[2]; - rtb_Gain1_nj[3] = rtb_TmpSignalConversionAt1DLookupTable7Inport1[3]; + rtb_Gain1_i4[2] = rtb_TmpSignalConversionAt1DLookupTable7Inport1[2]; + rtb_Gain1_i4[3] = rtb_TmpSignalConversionAt1DLookupTable7Inport1[3]; - /* Assignment: '/Присваивание в [6] rear' incorporates: - * DataStoreWrite: '/Data Store Write24' + /* Assignment: '/Присваивание в [6] rear' */ + rtb_Gain1_i4[5] = rtb_TmpSignalConversionAt1DLookupTable7Inport1[5]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant10' + * Constant: '/Constant11' + * Constant: '/Constant4' + * Constant: '/Constant5' + * Constant: '/Constant6' + * Constant: '/Constant7' + * Constant: '/Constant8' + * Constant: '/Constant9' + * DataStoreWrite: '/Data Store Write' */ - rtb_Gain1_nj[5] = rtb_TmpSignalConversionAt1DLookupTable7Inport1[5]; - - /* Saturate: '/Saturation' incorporates: - * DataStoreRead: '/Data Store Read' - */ - if (rtDW.AMB > 1000) { - rtb_Bias5 = 1000; - } else if (rtDW.AMB < -1000) { - rtb_Bias5 = -1000; - } else { - rtb_Bias5 = rtDW.AMB; - } - - /* End of Saturate: '/Saturation' */ - - /* MATLAB Function: '/Convert_g_assAMB_LV_UP' */ - /* : c_g_assAMB_LV_UP = [-1000, g_assAMB_LV_UP(5), g_assAMB_LV_UP(4), g_assAMB_LV_UP(3), g_assAMB_LV_UP(2), g_assAMB_LV_UP(1)]; */ - tmp_3[0] = -1000; - tmp_3[1] = g_assAMB_LV_UP[4]; - tmp_3[2] = g_assAMB_LV_UP[3]; - tmp_3[3] = g_assAMB_LV_UP[2]; - tmp_3[4] = g_assAMB_LV_UP[1]; - tmp_3[5] = g_assAMB_LV_UP[0]; - - /* SwitchCase: '/Switch Case' incorporates: - * Lookup_n-D: '/1-D Lookup Table' - * Saturate: '/Saturation' - */ - switch ((int8_t)rtConstP.pooled52[plook_u32s16_bincka(rtb_Bias5, tmp_3, 5U)]) - { + switch (rtb_Saturation2_a) { case 0: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem' incorporates: - * ActionPort: '/Action Port' - */ - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - rtB.Merge_b = (uint8_t)(rtb_Bias5 <= g_assAMB_LV_UP[0]); - - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem' */ + Comp_Max_RPM_Allowed = 0U; break; case 1: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem1' incorporates: + Comp_Max_RPM_Allowed = 80U; + break; + + case 2: + Comp_Max_RPM_Allowed = 10U; + break; + + case 3: + Comp_Max_RPM_Allowed = 100U; + break; + + case 4: + Comp_Max_RPM_Allowed = 60U; + break; + + case 5: + Comp_Max_RPM_Allowed = 70U; + break; + + case 6: + Comp_Max_RPM_Allowed = 20U; + break; + + default: + Comp_Max_RPM_Allowed = 90U; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* DataStoreWrite: '/Data Store Write31' */ + rtDW.enable_rear_sync = 0U; + + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read' + */ + if (rtDW.AMB > 1000) { + rtb_FLU_tg_correct_l = 1000; + } else if (rtDW.AMB < -1000) { + rtb_FLU_tg_correct_l = -1000; + } else { + rtb_FLU_tg_correct_l = rtDW.AMB; + } + + /* End of Saturate: '/Saturation' */ + + /* MATLAB Function: '/Convert_g_assAMB_LV_UP' */ + /* : c_g_assAMB_LV_UP = [-1000, g_assAMB_LV_UP(5), g_assAMB_LV_UP(4), g_assAMB_LV_UP(3), g_assAMB_LV_UP(2), g_assAMB_LV_UP(1)]; */ + tmp_2[0] = -1000; + tmp_2[1] = g_assAMB_LV_UP[4]; + tmp_2[2] = g_assAMB_LV_UP[3]; + tmp_2[3] = g_assAMB_LV_UP[2]; + tmp_2[4] = g_assAMB_LV_UP[1]; + tmp_2[5] = g_assAMB_LV_UP[0]; + + /* SwitchCase: '/Switch Case' incorporates: + * Lookup_n-D: '/1-D Lookup Table' + * Saturate: '/Saturation' + */ + switch ((int8_t)rtConstP.pooled46[plook_u32s16_bincka(rtb_FLU_tg_correct_l, + tmp_2, 5U)]) { + case 0: + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem' incorporates: * ActionPort: '/Action Port' */ - /* Switch: '/Switch' incorporates: - * MATLAB Function: '/Convert_g_assAMB_LV_UP_2' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' * RelationalOperator: '/Relational Operator' + * Switch: '/Switch' + */ + rtB.Merge_b = (uint8_t)(rtb_FLU_tg_correct_l <= g_assAMB_LV_UP[0]); + + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem' */ + break; + + case 1: + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + /* Switch: '/Switch' incorporates: + * MATLAB Function: '/Convert_g_assAMB_LV_UP_2' + * RelationalOperator: '/Relational Operator' */ /* : c_g_assAMB_LV_DN_1 = g_assAMB_LV_DN(1); */ /* : c_g_assAMB_LV_UP_2 = g_assAMB_LV_UP(2); */ - if (rtb_Bias5 > g_assAMB_LV_UP[1]) { - /* Merge: '/Merge' incorporates: - * MATLAB Function: '/Convert_g_assAMB_LV_DN_1' - * RelationalOperator: '/Relational Operator1' + if (rtb_FLU_tg_correct_l > g_assAMB_LV_UP[1]) { + /* Merge: '/Merge' incorporates: + * MATLAB Function: '/Convert_g_assAMB_LV_DN_1' + * RelationalOperator: '/Relational Operator1' */ - rtB.Merge_b = (uint8_t)(rtb_Bias5 <= g_assAMB_LV_DN[0]); + rtB.Merge_b = (uint8_t)(rtb_FLU_tg_correct_l <= g_assAMB_LV_DN[0]); } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant_Lv2' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant_Lv2' */ rtB.Merge_b = 2U; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem1' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem1' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem2' incorporates: - * ActionPort: '/Action Port' - */ - /* Switch: '/Switch2' incorporates: - * MATLAB Function: '/Convert_g_assAMB_LV_UP_3' - * RelationalOperator: '/Relational Operator' - */ - /* : c_g_assAMB_LV_DN_2 = g_assAMB_LV_DN(2); */ - /* : c_g_assAMB_LV_UP_3 = g_assAMB_LV_UP(3); */ - if (rtb_Bias5 > g_assAMB_LV_UP[2]) { - /* Switch: '/Switch3' incorporates: - * MATLAB Function: '/Convert_g_assAMB_LV_DN_2' - * RelationalOperator: '/Relational Operator1' - */ - if (rtb_Bias5 > g_assAMB_LV_DN[1]) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant_Lv1' - */ - rtB.Merge_b = 1U; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant_Lv2' - */ - rtB.Merge_b = 2U; - } - - /* End of Switch: '/Switch3' */ - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant_Lv3' - */ - rtB.Merge_b = 3U; - } - - /* End of Switch: '/Switch2' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem2' */ - break; - - case 3: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem3' incorporates: + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem2' incorporates: * ActionPort: '/Action Port' */ /* Switch: '/Switch2' incorporates: - * MATLAB Function: '/Convert_g_assAMB_LV_UP_4' + * MATLAB Function: '/Convert_g_assAMB_LV_UP_3' * RelationalOperator: '/Relational Operator' */ - /* : c_g_assAMB_LV_DN_3 = g_assAMB_LV_DN(3); */ - /* : c_g_assAMB_LV_UP_4 = g_assAMB_LV_UP(4); */ - if (rtb_Bias5 > g_assAMB_LV_UP[3]) { + /* : c_g_assAMB_LV_DN_2 = g_assAMB_LV_DN(2); */ + /* : c_g_assAMB_LV_UP_3 = g_assAMB_LV_UP(3); */ + if (rtb_FLU_tg_correct_l > g_assAMB_LV_UP[2]) { /* Switch: '/Switch3' incorporates: - * MATLAB Function: '/Convert_g_assAMB_LV_DN_3' + * MATLAB Function: '/Convert_g_assAMB_LV_DN_2' * RelationalOperator: '/Relational Operator1' */ - if (rtb_Bias5 > g_assAMB_LV_DN[2]) { - /* Merge: '/Merge' incorporates: + if (rtb_FLU_tg_correct_l > g_assAMB_LV_DN[1]) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant_Lv1' + */ + rtB.Merge_b = 1U; + } else { + /* Merge: '/Merge' incorporates: * Constant: '/Constant_Lv2' */ rtB.Merge_b = 2U; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant_Lv3' - */ - rtB.Merge_b = 3U; } /* End of Switch: '/Switch3' */ } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant_Lv4' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant_Lv3' */ - rtB.Merge_b = 4U; + rtB.Merge_b = 3U; } /* End of Switch: '/Switch2' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem3' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem2' */ break; - case 4: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem4' incorporates: + case 3: + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem3' incorporates: * ActionPort: '/Action Port' */ /* Switch: '/Switch2' incorporates: - * MATLAB Function: '/Convert_g_assAMB_LV_UP_5' + * MATLAB Function: '/Convert_g_assAMB_LV_UP_4' * RelationalOperator: '/Relational Operator' */ - /* : c_g_assAMB_LV_DN_4 = g_assAMB_LV_DN(4); */ - /* : c_g_assAMB_LV_UP_5 = g_assAMB_LV_UP(5); */ - if (rtb_Bias5 > g_assAMB_LV_UP[4]) { + /* : c_g_assAMB_LV_DN_3 = g_assAMB_LV_DN(3); */ + /* : c_g_assAMB_LV_UP_4 = g_assAMB_LV_UP(4); */ + if (rtb_FLU_tg_correct_l > g_assAMB_LV_UP[3]) { /* Switch: '/Switch3' incorporates: - * MATLAB Function: '/Convert_g_assAMB_LV_DN_4' + * MATLAB Function: '/Convert_g_assAMB_LV_DN_3' * RelationalOperator: '/Relational Operator1' */ - if (rtb_Bias5 > g_assAMB_LV_DN[3]) { - /* Merge: '/Merge' incorporates: + if (rtb_FLU_tg_correct_l > g_assAMB_LV_DN[2]) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant_Lv2' + */ + rtB.Merge_b = 2U; + } else { + /* Merge: '/Merge' incorporates: * Constant: '/Constant_Lv3' */ rtB.Merge_b = 3U; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant_Lv4' - */ - rtB.Merge_b = 4U; } /* End of Switch: '/Switch3' */ } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant_Lv5' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant_Lv4' */ - rtB.Merge_b = 5U; + rtB.Merge_b = 4U; } /* End of Switch: '/Switch2' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem4' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem3' */ break; - case 5: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem5' incorporates: + case 4: + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem4' incorporates: * ActionPort: '/Action Port' */ - /* Switch: '/Switch1' incorporates: - * MATLAB Function: '/Convert_g_assAMB_LV_DN_5' + /* Switch: '/Switch2' incorporates: + * MATLAB Function: '/Convert_g_assAMB_LV_UP_5' * RelationalOperator: '/Relational Operator' */ - /* : c_g_assAMB_LV_DN_5 = g_assAMB_LV_DN(5); */ - if (rtb_Bias5 > g_assAMB_LV_DN[4]) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant_Lv4' + /* : c_g_assAMB_LV_DN_4 = g_assAMB_LV_DN(4); */ + /* : c_g_assAMB_LV_UP_5 = g_assAMB_LV_UP(5); */ + if (rtb_FLU_tg_correct_l > g_assAMB_LV_UP[4]) { + /* Switch: '/Switch3' incorporates: + * MATLAB Function: '/Convert_g_assAMB_LV_DN_4' + * RelationalOperator: '/Relational Operator1' */ - rtB.Merge_b = 4U; + if (rtb_FLU_tg_correct_l > g_assAMB_LV_DN[3]) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant_Lv3' + */ + rtB.Merge_b = 3U; + } else { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant_Lv4' + */ + rtB.Merge_b = 4U; + } + + /* End of Switch: '/Switch3' */ } else { - /* Merge: '/Merge' incorporates: + /* Merge: '/Merge' incorporates: * Constant: '/Constant_Lv5' */ rtB.Merge_b = 5U; } - /* End of Switch: '/Switch1' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem5' */ + /* End of Switch: '/Switch2' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem4' */ + break; + + case 5: + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem5' incorporates: + * ActionPort: '/Action Port' + */ + /* Switch: '/Switch1' incorporates: + * MATLAB Function: '/Convert_g_assAMB_LV_DN_5' + * RelationalOperator: '/Relational Operator' + */ + /* : c_g_assAMB_LV_DN_5 = g_assAMB_LV_DN(5); */ + if (rtb_FLU_tg_correct_l > g_assAMB_LV_DN[4]) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant_Lv4' + */ + rtB.Merge_b = 4U; + } else { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant_Lv5' + */ + rtB.Merge_b = 5U; + } + + /* End of Switch: '/Switch1' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem5' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ /* Saturate: '/Saturation' incorporates: * DataStoreRead: '/Data Store Read1' @@ -14967,13 +19852,13 @@ void HVAC_model_step(void) i = rtDW.CCU_SET_FL; } - /* Gain: '/Gain' incorporates: + /* Gain: '/Gain' incorporates: * Saturate: '/Saturation' */ i *= 13107; - rtb_Switch_gs = (uint8_t)((((uint32_t)i & 65536U) != 0U) + (i >> 17)); + rtb_Saturation4_l = (uint8_t)((((uint32_t)i & 65536U) != 0U) + (i >> 17)); - /* MATLAB Function: '/Modes for levels' */ + /* MATLAB Function: '/Modes for levels' */ /* : get_modes_for_levels = [g_aucMODE_BY_SET_F_LV0; */ /* : g_aucMODE_BY_SET_F_LV1; */ /* : g_aucMODE_BY_SET_F_LV2; */ @@ -14990,18 +19875,18 @@ void HVAC_model_step(void) rtb_get_modes_for_levels[6 * i + 5] = g_aucMODE_BY_SET_F_LV5[i]; } - /* End of MATLAB Function: '/Modes for levels' */ + /* End of MATLAB Function: '/Modes for levels' */ - /* Lookup_n-D: '/Выбор режима Left' incorporates: - * Gain: '/Gain' - * Merge: '/Merge' + /* Lookup_n-D: '/Выбор режима Left' incorporates: + * Gain: '/Gain' + * Merge: '/Merge' */ - rtb_u_gnq = look2_iu8bu8s16lu64n32_binlcse(rtB.Merge_b, rtb_Switch_gs, - rtConstP.pooled112, rtConstP.pooled60, rtb_get_modes_for_levels, - rtConstP.pooled49, 6U); + rtb_u_pc = look2_iu8bu8s16lu64n32_binlcse(rtB.Merge_b, rtb_Saturation4_l, + rtConstP.pooled109, rtConstP.pooled54, rtb_get_modes_for_levels, + rtConstP.pooled43, 6U); - /* MATLAB Function: '/Начальные положения заслонок left' */ - left(rtb_u_gnq, rtb_out_ff); + /* MATLAB Function: '/Начальные положения заслонок left' */ + left(rtb_u_pc, rtb_out_nf); /* Saturate: '/Saturation1' incorporates: * DataStoreRead: '/Data Store Read2' @@ -15014,127 +19899,34 @@ void HVAC_model_step(void) i = rtDW.CCU_SET_FR; } - /* Gain: '/Gain2' incorporates: + /* Gain: '/Gain2' incorporates: * Saturate: '/Saturation1' */ i *= 13107; - rtb_Saturation4_l = (uint8_t)((((uint32_t)i & 65536U) != 0U) + (i >> 17)); - - /* SwitchCase: '/Switch for Left ' incorporates: - * DataStoreRead: '/Data Store Read' - */ - switch (rtb_u_gnq) { - case 10: - break; - - case 20: - for (i = 0; i < 9; i++) { - /* Outputs for IfAction SubSystem: '/Bilevel' incorporates: - * ActionPort: '/Action Port' - */ - rtb_out_fw[i] = rtb_out_ff[i]; - - /* End of Outputs for SubSystem: '/Bilevel' */ - } - - /* Outputs for IfAction SubSystem: '/Bilevel' incorporates: - * ActionPort: '/Action Port' - */ - Bilevel(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); - - /* End of Outputs for SubSystem: '/Bilevel' */ - break; - - case 30: - for (i = 0; i < 9; i++) { - /* Outputs for IfAction SubSystem: '/Bilevel2' incorporates: - * ActionPort: '/Action Port' - */ - rtb_out_fw[i] = rtb_out_ff[i]; - - /* End of Outputs for SubSystem: '/Bilevel2' */ - } - - /* Outputs for IfAction SubSystem: '/Bilevel2' incorporates: - * ActionPort: '/Action Port' - */ - Bilevel2(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); - - /* End of Outputs for SubSystem: '/Bilevel2' */ - break; - - case 40: - for (i = 0; i < 9; i++) { - /* Outputs for IfAction SubSystem: '/Afoot' incorporates: - * ActionPort: '/Action Port' - */ - rtb_out_fw[i] = rtb_out_ff[i]; - - /* End of Outputs for SubSystem: '/Afoot' */ - } - - /* Outputs for IfAction SubSystem: '/Afoot' incorporates: - * ActionPort: '/Action Port' - */ - Afoot(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); - - /* End of Outputs for SubSystem: '/Afoot' */ - break; - - case 50: - for (i = 0; i < 9; i++) { - /* Outputs for IfAction SubSystem: '/Afoot_Summer' incorporates: - * ActionPort: '/Action Port' - */ - rtb_out_fw[i] = rtb_out_ff[i]; - - /* End of Outputs for SubSystem: '/Afoot_Summer' */ - } - - /* Outputs for IfAction SubSystem: '/Afoot_Summer' incorporates: - * ActionPort: '/Action Port' - */ - Afoot_Summer(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, - rtb_Saturation4_l); - - /* End of Outputs for SubSystem: '/Afoot_Summer' */ - break; - } - - /* End of SwitchCase: '/Switch for Left ' */ - - /* Lookup_n-D: '/Выбор режима Right' incorporates: - * Gain: '/Gain2' - * Merge: '/Merge' - */ - rtb_u_gnq = look2_iu8bu8s16lu64n32_binlcse(rtB.Merge_b, rtb_Saturation4_l, - rtConstP.pooled112, rtConstP.pooled60, rtb_get_modes_for_levels, - rtConstP.pooled49, 6U); - - /* MATLAB Function: '/Начальные положения заслонок right' */ - left(rtb_u_gnq, rtb_out_ff); + rtb_Gain2_hu = (uint8_t)((((uint32_t)i & 65536U) != 0U) + (i >> 17)); /* SwitchCase: '/Switch for Left ' incorporates: * DataStoreRead: '/Data Store Read' */ - switch (rtb_u_gnq) { + switch (rtb_u_pc) { case 10: break; case 20: for (i = 0; i < 9; i++) { /* Outputs for IfAction SubSystem: '/Bilevel' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - rtb_out_fw[i] = rtb_out_ff[i]; + rtb_get_valves[i] = rtb_out_nf[i]; /* End of Outputs for SubSystem: '/Bilevel' */ } /* Outputs for IfAction SubSystem: '/Bilevel' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - Bilevel(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); + Bilevel(rtDW.AMB, rtB.Merge_b, rtb_get_valves, rtb_Saturation4_l, + rtb_Gain2_hu); /* End of Outputs for SubSystem: '/Bilevel' */ break; @@ -15142,17 +19934,18 @@ void HVAC_model_step(void) case 30: for (i = 0; i < 9; i++) { /* Outputs for IfAction SubSystem: '/Bilevel2' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - rtb_out_fw[i] = rtb_out_ff[i]; + rtb_get_valves[i] = rtb_out_nf[i]; /* End of Outputs for SubSystem: '/Bilevel2' */ } /* Outputs for IfAction SubSystem: '/Bilevel2' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - Bilevel2(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); + Bilevel2(rtDW.AMB, rtB.Merge_b, rtb_get_valves, rtb_Saturation4_l, + rtb_Gain2_hu); /* End of Outputs for SubSystem: '/Bilevel2' */ break; @@ -15160,17 +19953,17 @@ void HVAC_model_step(void) case 40: for (i = 0; i < 9; i++) { /* Outputs for IfAction SubSystem: '/Afoot' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - rtb_out_fw[i] = rtb_out_ff[i]; + rtb_get_valves[i] = rtb_out_nf[i]; /* End of Outputs for SubSystem: '/Afoot' */ } /* Outputs for IfAction SubSystem: '/Afoot' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - Afoot(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); + Afoot(rtDW.AMB, rtB.Merge_b, rtb_get_valves, rtb_Saturation4_l, rtb_Gain2_hu); /* End of Outputs for SubSystem: '/Afoot' */ break; @@ -15178,18 +19971,18 @@ void HVAC_model_step(void) case 50: for (i = 0; i < 9; i++) { /* Outputs for IfAction SubSystem: '/Afoot_Summer' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - rtb_out_fw[i] = rtb_out_ff[i]; + rtb_get_valves[i] = rtb_out_nf[i]; /* End of Outputs for SubSystem: '/Afoot_Summer' */ } /* Outputs for IfAction SubSystem: '/Afoot_Summer' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - Afoot_Summer(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, - rtb_Saturation4_l); + Afoot_Summer(rtDW.AMB, rtB.Merge_b, rtb_get_valves, rtb_Saturation4_l, + rtb_Gain2_hu); /* End of Outputs for SubSystem: '/Afoot_Summer' */ break; @@ -15197,10 +19990,104 @@ void HVAC_model_step(void) /* End of SwitchCase: '/Switch for Left ' */ - /* DataStoreWrite: '/Data Store Write' */ + /* Lookup_n-D: '/Выбор режима Right' incorporates: + * Gain: '/Gain2' + * Merge: '/Merge' + */ + rtb_u_pc = look2_iu8bu8s16lu64n32_binlcse(rtB.Merge_b, rtb_Gain2_hu, + rtConstP.pooled109, rtConstP.pooled54, rtb_get_modes_for_levels, + rtConstP.pooled43, 6U); + + /* MATLAB Function: '/Начальные положения заслонок right' */ + left(rtb_u_pc, rtb_get_valves); + + /* SwitchCase: '/Switch for Left ' incorporates: + * DataStoreRead: '/Data Store Read' + */ + switch (rtb_u_pc) { + case 10: + break; + + case 20: + for (i = 0; i < 9; i++) { + /* Outputs for IfAction SubSystem: '/Bilevel' incorporates: + * ActionPort: '/Action Port' + */ + rtb_out_nf[i] = rtb_get_valves[i]; + + /* End of Outputs for SubSystem: '/Bilevel' */ + } + + /* Outputs for IfAction SubSystem: '/Bilevel' incorporates: + * ActionPort: '/Action Port' + */ + Bilevel(rtDW.AMB, rtB.Merge_b, rtb_out_nf, rtb_Saturation4_l, rtb_Gain2_hu); + + /* End of Outputs for SubSystem: '/Bilevel' */ + break; + + case 30: + for (i = 0; i < 9; i++) { + /* Outputs for IfAction SubSystem: '/Bilevel2' incorporates: + * ActionPort: '/Action Port' + */ + rtb_out_nf[i] = rtb_get_valves[i]; + + /* End of Outputs for SubSystem: '/Bilevel2' */ + } + + /* Outputs for IfAction SubSystem: '/Bilevel2' incorporates: + * ActionPort: '/Action Port' + */ + Bilevel2(rtDW.AMB, rtB.Merge_b, rtb_out_nf, rtb_Saturation4_l, rtb_Gain2_hu); + + /* End of Outputs for SubSystem: '/Bilevel2' */ + break; + + case 40: + for (i = 0; i < 9; i++) { + /* Outputs for IfAction SubSystem: '/Afoot' incorporates: + * ActionPort: '/Action Port' + */ + rtb_out_nf[i] = rtb_get_valves[i]; + + /* End of Outputs for SubSystem: '/Afoot' */ + } + + /* Outputs for IfAction SubSystem: '/Afoot' incorporates: + * ActionPort: '/Action Port' + */ + Afoot(rtDW.AMB, rtB.Merge_b, rtb_out_nf, rtb_Saturation4_l, rtb_Gain2_hu); + + /* End of Outputs for SubSystem: '/Afoot' */ + break; + + case 50: + for (i = 0; i < 9; i++) { + /* Outputs for IfAction SubSystem: '/Afoot_Summer' incorporates: + * ActionPort: '/Action Port' + */ + rtb_out_nf[i] = rtb_get_valves[i]; + + /* End of Outputs for SubSystem: '/Afoot_Summer' */ + } + + /* Outputs for IfAction SubSystem: '/Afoot_Summer' incorporates: + * ActionPort: '/Action Port' + */ + Afoot_Summer(rtDW.AMB, rtB.Merge_b, rtb_out_nf, rtb_Saturation4_l, + rtb_Gain2_hu); + + /* End of Outputs for SubSystem: '/Afoot_Summer' */ + break; + } + + /* End of SwitchCase: '/Switch for Left ' */ + + /* DataStoreWrite: '/Data Store Write' */ rtDW.LEVEL = rtB.Merge_b; - /* MATLAB Function: '/Log Ambient Lv' */ + /* MATLAB Function: '/Log Ambient Lv' */ /* : if (isempty(current_Ambient_Lv)) */ if (!rtDW.current_Ambient_Lv_not_empty) { /* : current_Ambient_Lv = Ambient_Lv; */ @@ -15209,7 +20096,7 @@ void HVAC_model_step(void) /* : fprintf("13.1.3.1 Ambient level: in_Amb_Fb = %d; Set Ambient lvl (init) = %u \n", in_Amb_Fb, Ambient_Lv); */ printf("13.1.3.1 Ambient level: in_Amb_Fb = %d; Set Ambient lvl (init) = %u \n", - rtb_Bias5, rtB.Merge_b); + rtb_FLU_tg_correct_l, rtB.Merge_b); fflush(stdout); /* : else */ @@ -15220,11 +20107,11 @@ void HVAC_model_step(void) /* : fprintf("13.1.3.1 Ambient level: in_Amb_Fb = %d; Set Ambient lvl = %u \n", in_Amb_Fb, Ambient_Lv); */ printf("13.1.3.1 Ambient level: in_Amb_Fb = %d; Set Ambient lvl = %u \n", - rtb_Bias5, rtB.Merge_b); + rtb_FLU_tg_correct_l, rtB.Merge_b); fflush(stdout); } - /* End of MATLAB Function: '/Log Ambient Lv' */ + /* End of MATLAB Function: '/Log Ambient Lv' */ /* Chart: '/Spd_OSA_Trigger' incorporates: * DataStoreRead: '/Data Store Read' @@ -15236,27 +20123,27 @@ void HVAC_model_step(void) rtDW.is_c834_HVAC_model = IN_OSA_OFF; /* : is_OSA_Active = 0; */ - rtb_Switch_gs = 0U; + rtb_Saturation4_l = 0U; } else if (rtDW.is_c834_HVAC_model == IN_OSA_OFF) { - rtb_Switch_gs = 0U; + rtb_Saturation4_l = 0U; /* : sf_internal_predicateOutput = VehicleSpeed > 20 && Full_Rec_Active == 0; */ if ((rtDW.VehicleSpeed > 20) && (rtDW.Full_Rec == 0)) { rtDW.is_c834_HVAC_model = IN_OSA_ON; /* : is_OSA_Active = 1; */ - rtb_Switch_gs = 1U; + rtb_Saturation4_l = 1U; } } else { /* case IN_OSA_ON: */ - rtb_Switch_gs = 1U; + rtb_Saturation4_l = 1U; /* : sf_internal_predicateOutput = VehicleSpeed == 0 || Full_Rec_Active == 1; */ if ((rtDW.VehicleSpeed == 0) || (rtDW.Full_Rec == 1)) { rtDW.is_c834_HVAC_model = IN_OSA_OFF; /* : is_OSA_Active = 0; */ - rtb_Switch_gs = 0U; + rtb_Saturation4_l = 0U; } } @@ -15271,82 +20158,83 @@ void HVAC_model_step(void) * Gain: '/Gain' * Lookup_n-D: '/1-D Lookup Table' * Lookup_n-D: '/1-D Lookup Table1' - * MATLAB Function: '/MATLAB Function' + * MATLAB Function: '/MATLAB Function' */ if (rtDW.is_active_c776_HVAC_model == 0U) { rtDW.is_active_c776_HVAC_model = 1U; rtDW.is_c776_HVAC_model = IN_PARTIAL_REC_OFF; /* : Comp_Active = 0; */ - rtb_Saturation4_l = 0U; + rtb_Gain2_hu = 0U; } else if (rtDW.is_c776_HVAC_model == IN_PARTIAL_REC_OFF) { - rtb_Saturation4_l = 0U; + rtb_Gain2_hu = 0U; /* : sf_internal_predicateOutput = Amb_temp >= g_ssPREC_REC_ON_AMB && Full_Rec_Active == 0; */ if ((rtDW.AMB >= g_ssPREC_REC_ON_AMB) && (rtDW.Full_Rec == 0)) { rtDW.is_c776_HVAC_model = IN_PARTIAL_REC_ON; - /* : sf_internal_predicateOutput = Evap_F_Fb >= g_aucPREC_EVA_DIFF(1) && Evap_R_Fb >= g_aucPREC_EVA_DIFF(3); */ - if ((rtDW.Eva_F >= g_aucPREC_EVA_DIFF[0]) && (rtDW.Eva_R >= - g_aucPREC_EVA_DIFF[2])) { + /* : sf_internal_predicateOutput = Evap_F_Fb >= g_aucPREC_EVA_DIFF(1) && Evap_R_Fb >= g_aucPREC_EVA_DIFF(3) &&E_comp_speed >= g_ausPREC_ENTRY_RPM(3); */ + if ((rtDW.Eva_F >= g_aucPREC_EVA_DIFF[0]) && ((rtDW.Eva_R >= + g_aucPREC_EVA_DIFF[2]) && ((uint8_t)rpm_phys >= g_ausPREC_ENTRY_RPM + [2]))) { rtDW.is_PARTIAL_REC_ON = IN_COND_3; /* : Comp_Active = 3; */ - rtb_Saturation4_l = 3U; + rtb_Gain2_hu = 3U; /* : sf_internal_predicateOutput = E_comp_speed >= g_ausPREC_ENTRY_RPM(2); */ } else if ((uint8_t)rpm_phys >= g_ausPREC_ENTRY_RPM[1]) { rtDW.is_PARTIAL_REC_ON = IN_COND_2; /* : Comp_Active = 2; */ - rtb_Saturation4_l = 2U; + rtb_Gain2_hu = 2U; rtDW.is_COND_2 = IN_TRACKING; } else { rtDW.is_PARTIAL_REC_ON = IN_COND_1; /* : Comp_Active = 1; */ - rtb_Saturation4_l = 1U; + rtb_Gain2_hu = 1U; } } /* case IN_PARTIAL_REC_ON: */ /* : sf_internal_predicateOutput = Amb_temp < g_ssPREC_REC_ON_AMB || Full_Rec_Active == 1; */ } else if ((rtDW.AMB < g_ssPREC_REC_ON_AMB) || (rtDW.Full_Rec == 1)) { - rtDW.is_COND_2 = IN_NO_ACTIVE_CHILD_o; - rtDW.is_PARTIAL_REC_ON = IN_NO_ACTIVE_CHILD_o; + rtDW.is_COND_2 = IN_NO_ACTIVE_CHILD_c; + rtDW.is_PARTIAL_REC_ON = IN_NO_ACTIVE_CHILD_c; rtDW.is_c776_HVAC_model = IN_PARTIAL_REC_OFF; /* : Comp_Active = 0; */ - rtb_Saturation4_l = 0U; + rtb_Gain2_hu = 0U; } else { switch (rtDW.is_PARTIAL_REC_ON) { case IN_COND_1: - rtb_Saturation4_l = 1U; + rtb_Gain2_hu = 1U; /* Gain: '/Gain' incorporates: * Gain: '/Gain1' - * MATLAB Function: '/MATLAB Function' + * MATLAB Function: '/MATLAB Function' */ /* : req_OSA =PREC_OSA_SUMMER_1; */ - Gain = (uint16_t)(5U * (uint8_t)rpm_phys); - rtB.req_OSA = look1_iu16lu64n48tu8_binlcse(Gain, &g_ausPREC_COMP_SPD_1[0], - &g_aucPREC_OSA_SUMMER_1[0], 2U); + rtb_Saturation2_a = (uint16_t)(5U * (uint8_t)rpm_phys); + rtB.req_OSA = look1_iu16lu64n48tu8_binlcse(rtb_Saturation2_a, + &g_ausPREC_COMP_SPD_1[0], &g_aucPREC_OSA_SUMMER_1[0], 2U); /* : req_REC =PREC_REC_SUMMER_1; */ - rtB.req_REC = look1_iu16lu64n48tu8_binlcse(Gain, &g_ausPREC_COMP_SPD_1[0], - &g_aucPREC_REC_SUMMER_1[0], 2U); + rtB.req_REC = look1_iu16lu64n48tu8_binlcse(rtb_Saturation2_a, + &g_ausPREC_COMP_SPD_1[0], &g_aucPREC_REC_SUMMER_1[0], 2U); break; case IN_COND_2: - rtb_Saturation4_l = 2U; + rtb_Gain2_hu = 2U; /* : sf_internal_predicateOutput = E_comp_speed X_prev; */ - } else if (rtb_Bias5 > rtDW.X_prev) { + } else if (rtb_FLU_tg_correct_l > rtDW.X_prev) { rtDW.is_COND_2 = IN_TRACKING; } else { /* : X_prev = X; */ - rtDW.X_prev = rtb_Bias5; + rtDW.X_prev = rtb_FLU_tg_correct_l; } } else { /* case IN_TRACKING: */ /* : sf_internal_predicateOutput = X < X_prev && X > 0; */ - i_0 = g_assPREC_EVA_DIFF_FB_TG_F[(int32_t)rtb_u8Vtg_FX_plus - 1]; + i_0 = g_assPREC_EVA_DIFF_FB_TG_F[(int32_t)rtb_DataTypeConversion7 - 1]; if ((i_0 < rtDW.X_prev) && (i_0 > 0)) { rtDW.is_COND_2 = IN_HOLDING; } else { /* : req_OSA = g_aucPREC_OSA_SUMMER_2(x_idx); */ - rtB.req_OSA = g_aucPREC_OSA_SUMMER_2[(int32_t)rtb_u8Vtg_FX_plus - 1]; + rtB.req_OSA = g_aucPREC_OSA_SUMMER_2[(int32_t) + rtb_DataTypeConversion7 - 1]; /* : req_REC = g_aucPREC_REC_SUMMER_2(x_idx); */ - rtB.req_REC = g_aucPREC_REC_SUMMER_2[(int32_t)rtb_u8Vtg_FX_plus - 1]; + rtB.req_REC = g_aucPREC_REC_SUMMER_2[(int32_t) + rtb_DataTypeConversion7 - 1]; /* : X_prev = X; */ - rtDW.X_prev = g_assPREC_EVA_DIFF_FB_TG_F[(int32_t)rtb_u8Vtg_FX_plus - - 1]; + rtDW.X_prev = g_assPREC_EVA_DIFF_FB_TG_F[(int32_t) + rtb_DataTypeConversion7 - 1]; } } } @@ -15396,15 +20287,16 @@ void HVAC_model_step(void) default: /* case IN_COND_3: */ - rtb_Saturation4_l = 3U; + rtb_Gain2_hu = 3U; - /* : sf_internal_predicateOutput = Evap_F_Fb < g_aucPREC_EVA_DIFF(2) && Evap_R_Fb < g_aucPREC_EVA_DIFF(4); */ - if ((rtDW.Eva_F < g_aucPREC_EVA_DIFF[1]) && (rtDW.Eva_R < - g_aucPREC_EVA_DIFF[3])) { + /* : sf_internal_predicateOutput = Evap_F_Fb < g_aucPREC_EVA_DIFF(2) && Evap_R_Fb < g_aucPREC_EVA_DIFF(4)&&E_comp_speed < g_ausPREC_EXIT_RPM(3); */ + if ((rtDW.Eva_F < g_aucPREC_EVA_DIFF[1]) && ((rtDW.Eva_R < + g_aucPREC_EVA_DIFF[3]) && ((uint8_t)rpm_phys < g_ausPREC_EXIT_RPM[2]))) + { rtDW.is_PARTIAL_REC_ON = IN_COND_2; /* : Comp_Active = 2; */ - rtb_Saturation4_l = 2U; + rtb_Gain2_hu = 2U; rtDW.is_COND_2 = IN_TRACKING; } else { /* : req_OSA = g_ucPREC_OSA_SUMMER_3; */ @@ -15430,37 +20322,37 @@ void HVAC_model_step(void) * Switch: '/Switch4' */ if (rtDW.Full_Rec > 0) { - rtb_u_gnq = 0U; - rtb_Switch_m5 = 100U; + rtb_u_pc = 0U; + rtb_Switch_db = 100U; } else { - if (rtb_Switch_gs > 0) { + if (rtb_Saturation4_l > 0) { /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read6' * Lookup_n-D: '/1-D Lookup Table2' */ - rtb_Switch_m5 = look1_iu16lu64n48tu8_binlcse(rtDW.VehicleSpeed, + rtb_Switch_db = look1_iu16lu64n48tu8_binlcse(rtDW.VehicleSpeed, &g_ausVALVE_VEH_SPD[0], &g_aucPREC_VEH_SPD_OSA[0], 12U); } else { /* Switch: '/Switch' incorporates: * Constant: '/Constant' */ - rtb_Switch_m5 = 100U; + rtb_Switch_db = 100U; } /* Switch: '/Switch1' incorporates: * Constant: '/Constant1' */ - if (rtb_Saturation4_l > 0) { - rtb_u_gnq = rtB.req_OSA; + if (rtb_Gain2_hu > 0) { + rtb_u_pc = rtB.req_OSA; } else { - rtb_u_gnq = 100U; + rtb_u_pc = 100U; } /* MinMax: '/MinMax' incorporates: * Switch: '/Switch1' */ - if (rtb_Switch_m5 <= rtb_u_gnq) { - rtb_u_gnq = rtb_Switch_m5; + if (rtb_Switch_db <= rtb_u_pc) { + rtb_u_pc = rtb_Switch_db; } /* End of MinMax: '/MinMax' */ @@ -15469,10 +20361,10 @@ void HVAC_model_step(void) * Constant: '/Constant2' * DataStoreWrite: '/Data Store Write1' */ - if (rtb_Saturation4_l > 0) { - rtb_Switch_m5 = rtB.req_REC; + if (rtb_Gain2_hu > 0) { + rtb_Switch_db = rtB.req_REC; } else { - rtb_Switch_m5 = 0U; + rtb_Switch_db = 0U; } /* End of Switch: '/Switch2' */ @@ -15480,6 +20372,630 @@ void HVAC_model_step(void) /* End of Switch: '/Switch3' */ + /* Lookup_n-D: '/1-D Lookup Table' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + */ + rtDW.Dtg_individual_foot_FL = look1_iu8lu64n48ts16Ds32_binlcs(rtDW.CCU_FOOT_FL, + rtConstP.pooled110, &g_assFOOT_STEP_DUCT_TGT[0], 6U); + + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.LEVEL) { + case 1: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.CCU_FOOT_FL) { + case 0: + case 1: + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem(rtDW.ModeIndex[0], &rtB.Merge_j, &rtB.Merge1_j); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem1(&rtB.Merge_j, &rtB.Merge1_j); + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 4: + case 5: + case 6: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem2(rtDW.ModeIndex[0], &rtB.Merge_j, &rtB.Merge1_j); + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + + /* DataStoreWrite: '/Data Store Write' */ + rtDW.Valve_individual_foot_FL = rtB.Merge_j; + + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.Blower_individual_foot_FL = rtB.Merge1_j; + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.CCU_FOOT_FL) { + case 0: + case 1: + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem_b(rtDW.ModeIndex[0], &rtB.Merge_i2, &rtB.Merge1_hu); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem1(&rtB.Merge_i2, &rtB.Merge1_hu); + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 4: + case 5: + case 6: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem2_o(rtDW.ModeIndex[0], &rtB.Merge_i2, &rtB.Merge1_hu); + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + + /* DataStoreWrite: '/Data Store Write' */ + rtDW.Valve_individual_foot_FL = rtB.Merge_i2; + + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.Blower_individual_foot_FL = rtB.Merge1_hu; + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.CCU_FOOT_FL) { + case 0: + case 1: + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem_n(rtDW.ModeIndex[0], &rtB.Merge_he, &rtB.Merge1_c); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem1(&rtB.Merge_he, &rtB.Merge1_c); + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 4: + case 5: + case 6: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem2_c(rtDW.ModeIndex[0], &rtB.Merge_he, &rtB.Merge1_c); + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + + /* DataStoreWrite: '/Data Store Write' */ + rtDW.Valve_individual_foot_FL = rtB.Merge_he; + + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.Blower_individual_foot_FL = rtB.Merge1_c; + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + + /* Lookup_n-D: '/1-D Lookup Table' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + */ + rtDW.Dtg_individual_foot_FR = look1_iu8lu64n48ts16Ds32_binlcs(rtDW.CCU_FOOT_FR, + rtConstP.pooled110, &g_assFOOT_STEP_DUCT_TGT[0], 6U); + + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.LEVEL) { + case 1: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.CCU_FOOT_FR) { + case 0: + case 1: + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem(rtDW.ModeIndex[1], &rtB.Merge_on, &rtB.Merge1_g); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem1(&rtB.Merge_on, &rtB.Merge1_g); + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 4: + case 5: + case 6: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem2(rtDW.ModeIndex[1], &rtB.Merge_on, &rtB.Merge1_g); + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + + /* DataStoreWrite: '/Data Store Write' */ + rtDW.Valve_individual_foot_FR = rtB.Merge_on; + + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.Blower_individual_foot_FR = rtB.Merge1_g; + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.CCU_FOOT_FR) { + case 0: + case 1: + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem_b(rtDW.ModeIndex[1], &rtB.Merge_o, &rtB.Merge1_e); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem1(&rtB.Merge_o, &rtB.Merge1_e); + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 4: + case 5: + case 6: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem2_o(rtDW.ModeIndex[1], &rtB.Merge_o, &rtB.Merge1_e); + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + + /* DataStoreWrite: '/Data Store Write' */ + rtDW.Valve_individual_foot_FR = rtB.Merge_o; + + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.Blower_individual_foot_FR = rtB.Merge1_e; + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.CCU_FOOT_FR) { + case 0: + case 1: + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem_n(rtDW.ModeIndex[1], &rtB.Merge_p5, &rtB.Merge1_az); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem1(&rtB.Merge_p5, &rtB.Merge1_az); + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 4: + case 5: + case 6: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem2_c(rtDW.ModeIndex[1], &rtB.Merge_p5, &rtB.Merge1_az); + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + + /* DataStoreWrite: '/Data Store Write' */ + rtDW.Valve_individual_foot_FR = rtB.Merge_p5; + + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.Blower_individual_foot_FR = rtB.Merge1_az; + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.LEVEL) { + case 1: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.CCU_FOOT_RL) { + case 0: + case 1: + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem(rtDW.ModeIndex[2], &rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem1(&rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 4: + case 5: + case 6: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem2(rtDW.ModeIndex[2], &rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.CCU_FOOT_RL) { + case 0: + case 1: + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem_b(rtDW.ModeIndex[2], &rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem1(&rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 4: + case 5: + case 6: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem2_o(rtDW.ModeIndex[2], &rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.CCU_FOOT_RL) { + case 0: + case 1: + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem_n(rtDW.ModeIndex[2], &rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem1(&rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 4: + case 5: + case 6: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem2_c(rtDW.ModeIndex[2], &rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.LEVEL) { + case 1: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.CCU_FOOT_RR) { + case 0: + case 1: + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem(rtDW.ModeIndex[3], &rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem1(&rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 4: + case 5: + case 6: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem2(rtDW.ModeIndex[3], &rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.CCU_FOOT_RR) { + case 0: + case 1: + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem_b(rtDW.ModeIndex[3], &rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem1(&rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 4: + case 5: + case 6: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem2_o(rtDW.ModeIndex[3], &rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + */ + switch (rtDW.CCU_FOOT_RR) { + case 0: + case 1: + case 2: + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem_n(rtDW.ModeIndex[3], &rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem1(&rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + break; + + case 4: + case 5: + case 6: + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' + */ + IfActionSubsystem2_c(rtDW.ModeIndex[3], &rtb_y_c, &rtb_FLU_tg_correct_l); + + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + break; + } + + /* End of SwitchCase: '/Switch Case' */ + /* BusCreator: '/Bus Creator' incorporates: * DataStoreRead: '/Data Store Read10' * DataStoreRead: '/Data Store Read11' @@ -15512,245 +21028,1219 @@ void HVAC_model_step(void) Status_Sensor_Model.Duct_Side_RR = 0; Status_Sensor_Model.AQS = 0; - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* RelationalOperator: '/Relational Operator1' incorporates: + * UnitDelay: '/Unit Delay' + */ + rtb_LogicalOperator_fc = (rtDW.UnitDelay_DSTATE_cb < -9000); + + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_u8Vtg_FX_plus = (double)rtDW.ADC_Data_Model.Sensor_Incar_Temp_FL / 4095.0 * - 5.0; + rtb_Divide1 = (double)rtDW.ADC_Data_Model.Sensor_Incar_Temp_FL / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ - rtb_Compare_p1p = (rtb_u8Vtg_FX_plus < 0.05); + rtb_Compare_hv = (rtb_Divide1 < 0.05); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ - rtb_Compare_bu = (rtb_u8Vtg_FX_plus > 4.9); + rtb_Compare_m0e = (rtb_Divide1 > 4.8); - /* Logic: '/Logical Operator' */ - rtb_LogicalOperator5 = (rtb_Compare_p1p || rtb_Compare_bu); + /* Logic: '/Logical Operator' */ + rtb_Compare_i5 = (rtb_Compare_hv || rtb_Compare_m0e); - /* Logic: '/Logical Operator1' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' + /* Logic: '/Logical Operator1' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' */ - rtb_LogicalOperator1_n = (rtb_LogicalOperator5 && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_go >= 3000U)); + rtb_err = (rtb_Compare_i5 && (rtDW.t_now - rtDW.t_start_delay_private_DSTATE >= + 3000U)); - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' + /* Product: '/Divide5' incorporates: + * Constant: '/Constant6' + * Constant: '/Constant7' * DataStoreRead: '/Data Store Read1' + * Product: '/Divide4' + */ + rtb_Divide5 = (double)rtDW.ADC_Data_Model.Sensor_Incar_Temp_FR / 4095.0 * 5.0; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_ba = (rtb_Divide5 < 0.05); + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_oj = (rtb_Divide5 > 4.8); + + /* Logic: '/Logical Operator5' */ + rtb_FailCond_jb = (rtb_Compare_ba || rtb_Compare_oj); + + /* Logic: '/Logical Operator6' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_LogicalOperator6 = (rtb_FailCond_jb && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_i >= 3000U)); + + /* Lookup_n-D: '/1-D Lookup Table4' incorporates: + * DataStoreRead: '/Data Store Read1' + */ + rtb_u6FRU_tg_amb = look1_iu16tdIs16_binlcs + (rtDW.ADC_Data_Model.Sensor_Incar_Temp_FR, rtConstP.pooled64, + rtConstP.pooled34, 1023U); + + /* Lookup_n-D: '/1-D Lookup Table2' incorporates: + * DataStoreRead: '/Data Store Read1' + */ + rtb_MultiportSwitch_pp = look1_iu16tdIs16_binlcs + (rtDW.ADC_Data_Model.Sensor_Incar_Temp_FL, rtConstP.pooled64, + rtConstP.pooled34, 1023U); + + /* Logic: '/Logical Operator1' incorporates: + * Logic: '/Logical Operator2' + */ + rtb_LogicalOperator3 = (rtb_err && rtb_LogicalOperator6); + + /* Switch: '/Switch' incorporates: + * Constant: '/Температура для состояния ошибки' + * Logic: '/Logical Operator1' + * Switch: '/Switch1' + * UnitDelay: '/Unit Delay' + */ + if (rtb_LogicalOperator3) { + rtDW.UnitDelay_DSTATE_cb = 200; + } else if (rtb_err) { + /* Switch: '/Switch1' incorporates: + * UnitDelay: '/Unit Delay' + */ + rtDW.UnitDelay_DSTATE_cb = rtb_u6FRU_tg_amb; + } else { + rtDW.UnitDelay_DSTATE_cb = rtb_MultiportSwitch_pp; + } + + /* End of Switch: '/Switch' */ + + /* If: '/If' incorporates: + * DataStoreRead: '/Data Store Read' + * If: '/If1' + */ + if (rtb_LogicalOperator_fc) { + /* Outputs for IfAction SubSystem: '/Инициализация FL' incorporates: + * ActionPort: '/Action Port' + */ + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * UnitDelay: '/Unit Delay' + */ + rtb_DataTypeConversion7 = rtDW.UnitDelay_DSTATE_cb; + + /* End of Outputs for SubSystem: '/Инициализация FL' */ + } else { + /* Outputs for IfAction SubSystem: '/Фильтрация FL температуры' incorporates: + * ActionPort: '/Action Port' + */ + if (rtDW.KEEP_RISING_FL_UNTIL_LIMIT > 0.0) { + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If1' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * DataStoreRead: '/Data Store Read' + * If: '/If' + * MATLAB Function: '/g_ausINCARRATE_RISING_DIFF_F[8]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + g_ausINCARRATE_RISING_DIFF_F8(&rtb_Saturation2_a); + if (fabs((double)rtDW.UnitDelay_DSTATE_cb - rtDW.Temp_FL_store) <= + rtb_Saturation2_a) { + /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.KEEP_RISING_FL_UNTIL_LIMIT = 0.0; + + /* SignalConversion generated from: '/out' incorporates: + * DataStoreRead: '/Data Store Read' + * MATLAB Function: '/обычное повышение темп.' + */ + u_h(rtDW.LEVEL, &rtb_Saturation2_a); + + /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: + * ActionPort: '/Action Port' + */ + u_lz(rtDW.LEVEL, &rtb_Saturation2_a); + + /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ + } + + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If1' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * DataStoreRead: '/Data Store Read' + * If: '/If' + * MATLAB Function: '/INCARRATE_RISING_DIFF_F[7]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + INCARRATE_RISING_DIFF_F7(&rtb_Saturation2_a); + if (fabs((double)rtDW.UnitDelay_DSTATE_cb - rtDW.Temp_FL_store) > + rtb_Saturation2_a) { + /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.KEEP_RISING_FL_UNTIL_LIMIT = 1.0; + + /* SignalConversion generated from: '/out' incorporates: + * DataStoreRead: '/Data Store Read' + * MATLAB Function: '/ускоренное повышение темп.' + */ + u_k(rtDW.LEVEL, &rtb_Saturation2_a); + + /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: + * ActionPort: '/Action Port' + */ + u_f(rtDW.LEVEL, &rtb_Saturation2_a); + + /* End of Outputs for SubSystem: '/обычный режим повышения' */ + } + + /* End of Outputs for SubSystem: '/обычный режим' */ + } + + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + * UnitDelay: '/Unit Delay' + */ + if (rtDW.KEEP_FALLING_FL_UNTIL_LIMIT > 0.0) { + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + u_c(rtDW.UnitDelay_DSTATE_cb, rtDW.LEVEL, &rtb_out_os, + &rtDW.KEEP_FALLING_FL_UNTIL_LIMIT, &rtDW.Temp_FL_store); + + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' + */ + u_l(rtDW.UnitDelay_DSTATE_cb, rtDW.LEVEL, &rtb_out_os, + &rtDW.KEEP_FALLING_FL_UNTIL_LIMIT, &rtDW.Temp_FL_store); + + /* End of Outputs for SubSystem: '/обычный режим' */ + } + + /* End of If: '/If1' */ + + /* Switch: '/Switch1' incorporates: + * Abs: '/Abs' + * Constant: '/epsilon' + * DataStoreRead: '/Read Amb' + * RelationalOperator: '/AMBraw > AMB' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + if (fabs((double)rtDW.UnitDelay_DSTATE_cb - rtDW.Temp_FL_store) <= 0.01) { + /* SignalConversion generated from: '/temp_out' */ + rtb_DataTypeConversion7 = rtDW.Temp_FL_store; + } else { + if (rtDW.UnitDelay_DSTATE_cb > rtDW.Temp_FL_store) { + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + */ + rtb_FLU_tg_correct_l = (int16_t)rtb_Saturation2_a; + } else { + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * UnaryMinus: '/Unary Minus' + */ + rtb_FLU_tg_correct_l = (int16_t)-(int16_t)rtb_out_os; + } + + /* SignalConversion generated from: '/temp_out' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * Product: '/Divide' + * Product: '/Product' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + rtb_DataTypeConversion7 = (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_o) / + 60000.0 * (double)rtb_FLU_tg_correct_l + rtDW.Temp_FL_store; + } + + /* End of Switch: '/Switch1' */ + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/Data Store Read12' + */ + rtDW.UnitDelay_DSTATE_o = rtDW.t_now; + + /* End of Outputs for SubSystem: '/Фильтрация FL температуры' */ + } + + /* End of If: '/If' */ + + /* DataTypeConversion: '/Data Type Conversion' incorporates: * DataStoreWrite: '/Data Store Write1' - * Lookup_n-D: '/1-D Lookup Table2' */ - if (rtb_LogicalOperator1_n) { - rtDW.Incar_FL = 200; + rtDW.Incar_FL = (int16_t)floor(rtb_DataTypeConversion7); + + /* RelationalOperator: '/Relational Operator1' incorporates: + * UnitDelay: '/Unit Delay' + */ + rtb_LogicalOperator_fc = (rtDW.UnitDelay_DSTATE_j < -9000); + + /* Switch: '/Switch2' incorporates: + * Constant: '/Температура для состояния ошибки1' + * Switch: '/Switch3' + * UnitDelay: '/Unit Delay' + */ + if (rtb_LogicalOperator3) { + rtDW.UnitDelay_DSTATE_j = 200; + } else if (rtb_LogicalOperator6) { + /* Switch: '/Switch3' incorporates: + * UnitDelay: '/Unit Delay' + */ + rtDW.UnitDelay_DSTATE_j = rtb_MultiportSwitch_pp; } else { - rtDW.Incar_FL = look1_iu16tdIs16_binlcs - (rtDW.ADC_Data_Model.Sensor_Incar_Temp_FL, rtConstP.pooled73, - rtConstP.pooled9, 1023U); + rtDW.UnitDelay_DSTATE_j = rtb_u6FRU_tg_amb; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch2' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + /* If: '/If' incorporates: + * DataStoreRead: '/Data Store Read' + * If: '/If1' */ - rtb_Divide1_l5 = (double)rtDW.ADC_Data_Model.Sensor_Incar_Temp_FR / 4095.0 * - 5.0; + if (rtb_LogicalOperator_fc) { + /* Outputs for IfAction SubSystem: '/Инициализация FR' incorporates: + * ActionPort: '/Action Port' + */ + /* DiscreteIntegrator: '/Integrator' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * UnitDelay: '/Unit Delay' + */ + rtDW.Temp_FR_store = rtDW.UnitDelay_DSTATE_j; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_kt = (rtb_Divide1_l5 < 0.05); + /* End of Outputs for SubSystem: '/Инициализация FR' */ + } else { + /* Outputs for IfAction SubSystem: '/Фильтрация FR температуры' incorporates: + * ActionPort: '/Action Port' + */ + if (rtDW.KEEP_RISING_FR_UNTIL_LIMIT > 0.0) { + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If1' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * DataStoreRead: '/Data Store Read' + * If: '/If' + * MATLAB Function: '/g_ausINCARRATE_RISING_DIFF_F[8]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + g_ausINCARRATE_RISING_DIFF_F8(&rtb_Saturation2_a); + if (fabs((double)rtDW.UnitDelay_DSTATE_j - rtDW.Temp_FR_store) <= + rtb_Saturation2_a) { + /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.KEEP_RISING_FR_UNTIL_LIMIT = 0.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_i5 = (rtb_Divide1_l5 > 4.9); + /* SignalConversion generated from: '/out' incorporates: + * DataStoreRead: '/Data Store Read' + * MATLAB Function: '/обычное повышение темп.' + */ + u_h(rtDW.LEVEL, &rtb_Saturation2_a); - /* Logic: '/Logical Operator' */ - rtb_Compare_dq = (rtb_Compare_kt || rtb_Compare_i5); + /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: + * ActionPort: '/Action Port' + */ + u_lz(rtDW.LEVEL, &rtb_Saturation2_a); - /* Logic: '/Logical Operator1' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator1_m2 = (rtb_Compare_dq && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_k >= 3000U)); + /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ + } - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read1' + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If1' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * DataStoreRead: '/Data Store Read' + * If: '/If' + * MATLAB Function: '/INCARRATE_RISING_DIFF_F[7]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + INCARRATE_RISING_DIFF_F7(&rtb_Saturation2_a); + if (fabs((double)rtDW.UnitDelay_DSTATE_j - rtDW.Temp_FR_store) > + rtb_Saturation2_a) { + /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.KEEP_RISING_FR_UNTIL_LIMIT = 1.0; + + /* SignalConversion generated from: '/out' incorporates: + * DataStoreRead: '/Data Store Read' + * MATLAB Function: '/ускоренное повышение темп.' + */ + u_k(rtDW.LEVEL, &rtb_Saturation2_a); + + /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: + * ActionPort: '/Action Port' + */ + u_f(rtDW.LEVEL, &rtb_Saturation2_a); + + /* End of Outputs for SubSystem: '/обычный режим повышения' */ + } + + /* End of Outputs for SubSystem: '/обычный режим' */ + } + + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read' + * UnitDelay: '/Unit Delay' + */ + if (rtDW.KEEP_FALLING_FL_UNTIL_LIMIT > 0.0) { + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + u_c(rtDW.UnitDelay_DSTATE_j, rtDW.LEVEL, &rtb_out_os, + &rtDW.KEEP_FALLING_FL_UNTIL_LIMIT, &rtDW.Temp_FL_store); + + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' + */ + u_l(rtDW.UnitDelay_DSTATE_j, rtDW.LEVEL, &rtb_out_os, + &rtDW.KEEP_FALLING_FL_UNTIL_LIMIT, &rtDW.Temp_FL_store); + + /* End of Outputs for SubSystem: '/обычный режим' */ + } + + /* End of If: '/If1' */ + + /* Switch: '/Switch1' incorporates: + * Abs: '/Abs' + * Constant: '/epsilon' + * DataStoreRead: '/Read Amb' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + if (fabs((double)rtDW.UnitDelay_DSTATE_j - rtDW.Temp_FR_store) > 0.01) { + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * RelationalOperator: '/AMBraw > AMB' + * UnaryMinus: '/Unary Minus' + */ + if (rtDW.UnitDelay_DSTATE_j > rtDW.Temp_FR_store) { + rtb_FLU_tg_correct_l = (int16_t)rtb_Saturation2_a; + } else { + rtb_FLU_tg_correct_l = (int16_t)-(int16_t)rtb_out_os; + } + + /* DiscreteIntegrator: '/Integrator' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * Product: '/Divide' + * Product: '/Product' + * SignalConversion generated from: '/temp_out' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + rtDW.Temp_FR_store += (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_c) / + 60000.0 * (double)rtb_FLU_tg_correct_l; + } + + /* End of Switch: '/Switch1' */ + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/Data Store Read12' + */ + rtDW.UnitDelay_DSTATE_c = rtDW.t_now; + + /* End of Outputs for SubSystem: '/Фильтрация FR температуры' */ + } + + /* End of If: '/If' */ + + /* DataTypeConversion: '/Data Type Conversion' incorporates: * DataStoreWrite: '/Data Store Write3' - * Lookup_n-D: '/1-D Lookup Table2' */ - if (rtb_LogicalOperator1_m2) { - rtDW.Incar_FR = 200; - } else { - rtDW.Incar_FR = look1_iu16tdIs16_binlcs - (rtDW.ADC_Data_Model.Sensor_Incar_Temp_FR, rtConstP.pooled73, - rtConstP.pooled9, 1023U); - } + rtDW.Incar_FR = (int16_t)floor(rtDW.Temp_FR_store); - /* End of Switch: '/Switch' */ + /* RelationalOperator: '/Relational Operator1' incorporates: + * UnitDelay: '/Unit Delay' + */ + rtb_LogicalOperator_fc = (rtDW.UnitDelay_DSTATE_cs < -9000); - /* Product: '/Divide3' incorporates: - * Constant: '/Constant3' - * Constant: '/Constant4' + /* Product: '/Divide3' incorporates: + * Constant: '/Constant3' + * Constant: '/Constant4' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide2' + * Product: '/Divide2' */ rtb_Divide3 = (double)rtDW.ADC_Data_Model.Sensor_Incar_Temp_RL / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ - rtb_Compare_l = (rtb_Divide3 < 0.05); + rtb_Compare_dn = (rtb_Divide3 < 0.05); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ - rtb_Compare_j = (rtb_Divide3 > 4.9); + rtb_Compare_hj = (rtb_Divide3 > 4.8); - /* Logic: '/Logical Operator2' */ - rtb_FailCond_lt = (rtb_Compare_l || rtb_Compare_j); + /* Logic: '/Logical Operator2' */ + rtb_FailCond_e = (rtb_Compare_dn || rtb_Compare_hj); - /* Logic: '/Logical Operator3' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' + /* Logic: '/Logical Operator3' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' */ - rtb_LogicalOperator3 = (rtb_FailCond_lt && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_j >= 3000U)); + rtb_LogicalOperator3 = (rtb_FailCond_e && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_k >= 3000U)); - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant5' + /* Product: '/Divide6' incorporates: + * Constant: '/Constant9' * DataStoreRead: '/Data Store Read1' + */ + rtb_Filter_g = (double)rtDW.ADC_Data_Model.Sensor_Incar_Temp_RR / 4095.0; + + /* Product: '/Divide7' incorporates: + * Constant: '/Constant10' + */ + rtb_Divide7 = rtb_Filter_g * 5.0; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_kf = (rtb_Divide7 < 0.05); + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_pt = (rtb_Divide7 > 4.8); + + /* Logic: '/Logical Operator7' */ + rtb_FailCond_l = (rtb_Compare_kf || rtb_Compare_pt); + + /* Logic: '/Logical Operator8' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_LogicalOperator8 = (rtb_FailCond_l && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_p >= 3000U)); + + /* Lookup_n-D: '/1-D Lookup Table3' incorporates: + * DataStoreRead: '/Data Store Read1' + */ + rtb_u6FRU_tg_amb = look1_iu16tdIs16_binlcs + (rtDW.ADC_Data_Model.Sensor_Incar_Temp_RR, rtConstP.pooled64, + rtConstP.pooled34, 1023U); + + /* Lookup_n-D: '/1-D Lookup Table1' incorporates: + * DataStoreRead: '/Data Store Read1' + */ + rtb_MultiportSwitch_pp = look1_iu16tdIs16_binlcs + (rtDW.ADC_Data_Model.Sensor_Incar_Temp_RL, rtConstP.pooled64, + rtConstP.pooled34, 1023U); + + /* Switch: '/Switch' incorporates: + * Constant: '/Температура для состояния ошибки' + * Logic: '/Logical Operator1' + * Switch: '/Switch1' + * UnitDelay: '/Unit Delay' + */ + if (rtb_LogicalOperator3 && rtb_LogicalOperator8) { + rtDW.UnitDelay_DSTATE_cs = 200; + } else if (rtb_LogicalOperator3) { + /* Switch: '/Switch1' incorporates: + * UnitDelay: '/Unit Delay' + */ + rtDW.UnitDelay_DSTATE_cs = rtb_u6FRU_tg_amb; + } else { + rtDW.UnitDelay_DSTATE_cs = rtb_MultiportSwitch_pp; + } + + /* End of Switch: '/Switch' */ + + /* If: '/If' incorporates: + * DataStoreRead: '/Data Store Read' + * If: '/If1' + * UnitDelay: '/Unit Delay' + */ + if (rtb_LogicalOperator_fc) { + /* Outputs for IfAction SubSystem: '/Инициализация RL' incorporates: + * ActionPort: '/Action Port' + */ + RL(rtDW.UnitDelay_DSTATE_cs, &rtb_Filter_g); + + /* End of Outputs for SubSystem: '/Инициализация RL' */ + } else { + /* Outputs for IfAction SubSystem: '/Фильтрация RL температуры' incorporates: + * ActionPort: '/Action Port' + */ + if (rtDW.KEEP_RISING_RL_UNTIL_LIMIT > 0.0) { + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If1' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * DataStoreRead: '/Data Store Read' + * If: '/If' + * MATLAB Function: '/g_ausINCARRATE_RISING_DIFF_R[8]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + g_ausINCARRATE_RISING_DIFF_R8(&rtb_Saturation2_a); + if (fabs((double)rtDW.UnitDelay_DSTATE_cs - rtDW.Temp_RL_store) <= + rtb_Saturation2_a) { + /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.KEEP_RISING_RL_UNTIL_LIMIT = 0.0; + + /* SignalConversion generated from: '/out' incorporates: + * DataStoreRead: '/Data Store Read' + * MATLAB Function: '/обычное повышение темп.' + */ + u_m(rtDW.LEVEL, &rtb_Saturation2_a); + + /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: + * ActionPort: '/Action Port' + */ + u_gq(rtDW.LEVEL, &rtb_Saturation2_a); + + /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ + } + + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If1' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * DataStoreRead: '/Data Store Read' + * If: '/If' + * MATLAB Function: '/INCARRATE_RISING_DIFF_R[7]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + INCARRATE_RISING_DIFF_R7(&rtb_Saturation2_a); + if (fabs((double)rtDW.UnitDelay_DSTATE_cs - rtDW.Temp_RL_store) > + rtb_Saturation2_a) { + /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.KEEP_RISING_RL_UNTIL_LIMIT = 1.0; + + /* SignalConversion generated from: '/out' incorporates: + * DataStoreRead: '/Data Store Read' + * MATLAB Function: '/ускоренное повышение темп.' + */ + u_o(rtDW.LEVEL, &rtb_Saturation2_a); + + /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: + * ActionPort: '/Action Port' + */ + u_b3(rtDW.LEVEL, &rtb_Saturation2_a); + + /* End of Outputs for SubSystem: '/обычный режим повышения' */ + } + + /* End of Outputs for SubSystem: '/обычный режим' */ + } + + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read' + */ + if (rtDW.KEEP_FALLING_RL_UNTIL_LIMIT > 0.0) { + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* MATLAB Function: '/AMBRATE_RISING_DIFF[8]' */ + AMBRATE_RISING_DIFF8(&rtb_out_os); + + /* If: '/If' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read temp' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + if (fabs((double)rtDW.UnitDelay_DSTATE_cs - rtDW.Temp_RL_store) <= + rtb_out_os) { + /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.KEEP_FALLING_RL_UNTIL_LIMIT = 0.0; + + /* SignalConversion generated from: '/out' incorporates: + * DataStoreRead: '/Data Store Read' + * MATLAB Function: '/обычное понижение темп.' + */ + u_kk(rtDW.LEVEL, &rtb_out_os); + + /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: + * ActionPort: '/Action Port' + */ + /* SignalConversion generated from: '/out' incorporates: + * DataStoreRead: '/Data Store Read' + */ + u_hr(rtDW.LEVEL, &rtb_out_os); + + /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* MATLAB Function: '/AMBRATE_FALLING_DIFF[7]' */ + AMBRATE_FALLING_DIFF7(&rtb_out_os); + + /* If: '/If' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + if (fabs((double)rtDW.UnitDelay_DSTATE_cs - rtDW.Temp_RL_store) > + rtb_out_os) { + /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.KEEP_FALLING_RL_UNTIL_LIMIT = 1.0; + + /* SignalConversion generated from: '/rise per minute' incorporates: + * DataStoreRead: '/Data Store Read' + * MATLAB Function: '/ускоренное повышение темп.' + */ + u_b(rtDW.LEVEL, &rtb_out_os); + + /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: + * ActionPort: '/Action Port' + */ + /* SignalConversion generated from: '/rise per minute' incorporates: + * DataStoreRead: '/Data Store Read' + */ + u_g(rtDW.LEVEL, &rtb_out_os); + + /* End of Outputs for SubSystem: '/обычный режим повышения' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/обычный режим' */ + } + + /* End of If: '/If1' */ + + /* Switch: '/Switch1' incorporates: + * Abs: '/Abs' + * Constant: '/epsilon' + * DataStoreRead: '/Read Amb' + * RelationalOperator: '/AMBraw > AMB' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + if (fabs((double)rtDW.UnitDelay_DSTATE_cs - rtDW.Temp_RL_store) <= 0.01) { + /* SignalConversion generated from: '/temp_out' */ + rtb_Filter_g = rtDW.Temp_RL_store; + } else { + if (rtDW.UnitDelay_DSTATE_cs > rtDW.Temp_RL_store) { + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + */ + rtb_FLU_tg_correct_l = (int16_t)rtb_Saturation2_a; + } else { + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * UnaryMinus: '/Unary Minus' + */ + rtb_FLU_tg_correct_l = (int16_t)-(int16_t)rtb_out_os; + } + + /* SignalConversion generated from: '/temp_out' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * Product: '/Divide' + * Product: '/Product' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + rtb_Filter_g = (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_l) / 60000.0 * + (double)rtb_FLU_tg_correct_l + rtDW.Temp_RL_store; + } + + /* End of Switch: '/Switch1' */ + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/Data Store Read12' + */ + rtDW.UnitDelay_DSTATE_l = rtDW.t_now; + + /* End of Outputs for SubSystem: '/Фильтрация RL температуры' */ + } + + /* End of If: '/If' */ + + /* DataTypeConversion: '/Data Type Conversion' incorporates: * DataStoreWrite: '/Data Store Write4' - * Lookup_n-D: '/1-D Lookup Table1' */ - if (rtb_LogicalOperator3) { - rtDW.Incar_RL = 200; + rtDW.Incar_RL = (int16_t)floor(rtb_Filter_g); + + /* RelationalOperator: '/Relational Operator1' incorporates: + * UnitDelay: '/Unit Delay' + */ + rtb_LogicalOperator_fc = (rtDW.UnitDelay_DSTATE_k < -9000); + + /* Switch: '/Switch2' incorporates: + * Constant: '/Температура для состояния ошибки1' + * Logic: '/Logical Operator2' + * Switch: '/Switch3' + * UnitDelay: '/Unit Delay' + */ + if (rtb_LogicalOperator3 && (rtb_u6FRU_tg_amb != 0)) { + rtDW.UnitDelay_DSTATE_k = 200; + } else if (rtb_LogicalOperator8) { + /* Switch: '/Switch3' incorporates: + * UnitDelay: '/Unit Delay' + */ + rtDW.UnitDelay_DSTATE_k = rtb_MultiportSwitch_pp; } else { - rtDW.Incar_RL = look1_iu16tdIs16_binlcs - (rtDW.ADC_Data_Model.Sensor_Incar_Temp_RL, rtConstP.pooled73, - rtConstP.pooled9, 1023U); + rtDW.UnitDelay_DSTATE_k = rtb_u6FRU_tg_amb; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch2' */ - /* Product: '/Divide3' incorporates: - * Constant: '/Constant3' - * Constant: '/Constant4' - * DataStoreRead: '/Data Store Read1' - * Product: '/Divide2' + /* If: '/If' incorporates: + * DataStoreRead: '/Data Store Read' + * If: '/If1' + * UnitDelay: '/Unit Delay' */ - rtb_Divide3_hk = (double)rtDW.ADC_Data_Model.Sensor_Incar_Temp_RR / 4095.0 * - 5.0; + if (rtb_LogicalOperator_fc) { + /* Outputs for IfAction SubSystem: '/Инициализация RR' incorporates: + * ActionPort: '/Action Port' + */ + RL(rtDW.UnitDelay_DSTATE_k, &rtDW.Temp_RR_store); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_g4 = (rtb_Divide3_hk < 0.05); + /* End of Outputs for SubSystem: '/Инициализация RR' */ + } else { + /* Outputs for IfAction SubSystem: '/Фильтрация RR температуры' incorporates: + * ActionPort: '/Action Port' + */ + if (rtDW.KEEP_RISING_RR_UNTIL_LIMIT > 0.0) { + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If1' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * DataStoreRead: '/Data Store Read' + * If: '/If' + * MATLAB Function: '/g_ausINCARRATE_RISING_DIFF_R[8]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + g_ausINCARRATE_RISING_DIFF_R8(&rtb_Saturation2_a); + if (fabs((double)rtDW.UnitDelay_DSTATE_k - rtDW.Temp_RR_store) <= + rtb_Saturation2_a) { + /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.KEEP_RISING_RR_UNTIL_LIMIT = 0.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_dd = (rtb_Divide3_hk > 4.9); + /* SignalConversion generated from: '/out' incorporates: + * DataStoreRead: '/Data Store Read' + * MATLAB Function: '/обычное повышение темп.' + */ + u_m(rtDW.LEVEL, &rtb_Saturation2_a); - /* Logic: '/Logical Operator2' */ - rtb_FailCond_h = (rtb_Compare_g4 || rtb_Compare_dd); + /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: + * ActionPort: '/Action Port' + */ + u_gq(rtDW.LEVEL, &rtb_Saturation2_a); - /* Logic: '/Logical Operator3' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator3_p5 = (rtb_FailCond_h && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_gd >= 3000U)); + /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ + } - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant5' - * DataStoreRead: '/Data Store Read1' + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If1' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * DataStoreRead: '/Data Store Read' + * If: '/If' + * MATLAB Function: '/INCARRATE_RISING_DIFF_R[7]' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + INCARRATE_RISING_DIFF_R7(&rtb_Saturation2_a); + if (fabs((double)rtDW.UnitDelay_DSTATE_k - rtDW.Temp_RR_store) > + rtb_Saturation2_a) { + /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.KEEP_RISING_RR_UNTIL_LIMIT = 1.0; + + /* SignalConversion generated from: '/out' incorporates: + * DataStoreRead: '/Data Store Read' + * MATLAB Function: '/ускоренное повышение темп.' + */ + u_o(rtDW.LEVEL, &rtb_Saturation2_a); + + /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: + * ActionPort: '/Action Port' + */ + u_b3(rtDW.LEVEL, &rtb_Saturation2_a); + + /* End of Outputs for SubSystem: '/обычный режим повышения' */ + } + + /* End of Outputs for SubSystem: '/обычный режим' */ + } + + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read' + */ + if (rtDW.KEEP_FALLING_RR_UNTIL_LIMIT > 0.0) { + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* MATLAB Function: '/AMBRATE_RISING_DIFF[8]' */ + AMBRATE_RISING_DIFF8(&rtb_out_os); + + /* If: '/If' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read temp' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + if (fabs((double)rtDW.UnitDelay_DSTATE_k - rtDW.Temp_RR_store) <= + rtb_out_os) { + /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.KEEP_FALLING_RR_UNTIL_LIMIT = 0.0; + + /* SignalConversion generated from: '/out' incorporates: + * DataStoreRead: '/Data Store Read' + * MATLAB Function: '/обычное понижение темп.' + */ + u_kk(rtDW.LEVEL, &rtb_out_os); + + /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: + * ActionPort: '/Action Port' + */ + /* SignalConversion generated from: '/out' incorporates: + * DataStoreRead: '/Data Store Read' + */ + u_hr(rtDW.LEVEL, &rtb_out_os); + + /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* MATLAB Function: '/AMBRATE_FALLING_DIFF[7]' */ + AMBRATE_FALLING_DIFF7(&rtb_out_os); + + /* If: '/If' incorporates: + * Abs: '/ABS(AMBraw - AMB)' + * DataStoreRead: '/Read Amb' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + if (fabs((double)rtDW.UnitDelay_DSTATE_k - rtDW.Temp_RR_store) > + rtb_out_os) { + /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.KEEP_FALLING_RR_UNTIL_LIMIT = 1.0; + + /* SignalConversion generated from: '/rise per minute' incorporates: + * DataStoreRead: '/Data Store Read' + * MATLAB Function: '/ускоренное повышение темп.' + */ + u_b(rtDW.LEVEL, &rtb_out_os); + + /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: + * ActionPort: '/Action Port' + */ + /* SignalConversion generated from: '/rise per minute' incorporates: + * DataStoreRead: '/Data Store Read' + */ + u_g(rtDW.LEVEL, &rtb_out_os); + + /* End of Outputs for SubSystem: '/обычный режим повышения' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/обычный режим' */ + } + + /* End of If: '/If1' */ + + /* Switch: '/Switch1' incorporates: + * Abs: '/Abs' + * Constant: '/epsilon' + * DataStoreRead: '/Read Amb' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * UnitDelay: '/Unit Delay' + */ + if (fabs((double)rtDW.UnitDelay_DSTATE_k - rtDW.Temp_RR_store) > 0.01) { + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * RelationalOperator: '/AMBraw > AMB' + * UnaryMinus: '/Unary Minus' + */ + if (rtDW.UnitDelay_DSTATE_k > rtDW.Temp_RR_store) { + rtb_FLU_tg_correct_l = (int16_t)rtb_Saturation2_a; + } else { + rtb_FLU_tg_correct_l = (int16_t)-(int16_t)rtb_out_os; + } + + /* DiscreteIntegrator: '/Integrator' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * Product: '/Divide' + * Product: '/Product' + * SignalConversion generated from: '/temp_out' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + rtDW.Temp_RR_store += (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_m) / + 60000.0 * (double)rtb_FLU_tg_correct_l; + } + + /* End of Switch: '/Switch1' */ + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/Data Store Read12' + */ + rtDW.UnitDelay_DSTATE_m = rtDW.t_now; + + /* End of Outputs for SubSystem: '/Фильтрация RR температуры' */ + } + + /* End of If: '/If' */ + + /* DataTypeConversion: '/Data Type Conversion' incorporates: * DataStoreWrite: '/Data Store Write5' - * Lookup_n-D: '/1-D Lookup Table1' */ - if (rtb_LogicalOperator3_p5) { - rtDW.Incar_RR = 200; - } else { - rtDW.Incar_RR = look1_iu16tdIs16_binlcs - (rtDW.ADC_Data_Model.Sensor_Incar_Temp_RR, rtConstP.pooled73, - rtConstP.pooled9, 1023U); - } + rtDW.Incar_RR = (int16_t)floor(rtDW.Temp_RR_store); - /* End of Switch: '/Switch1' */ - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * Lookup_n-D: '/1-D Lookup Table' + * Product: '/Divide' */ - if (rtb_LogicalOperator1_f1) { + rtb_Divide1_cf = (double)rtDW.ADC_Data_Model.Sensor_Evap_Temp / 4095.0 * 5.0; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_ec = (rtb_Divide1_cf < 0.1); + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_ni = (rtb_Divide1_cf > 4.9); + + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator_fc = (rtb_Compare_ec || rtb_Compare_ni); + + /* Logic: '/Logical Operator1' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_LogicalOperator1 = (rtb_LogicalOperator_fc && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_g >= 3000U)); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * Lookup_n-D: '/1-D Lookup Table' + */ + if (rtb_LogicalOperator1) { rtDW.Eva_F = -100; } else { rtDW.Eva_F = look1_iu16tdIs16_binlcs(rtDW.ADC_Data_Model.Sensor_Evap_Temp, - rtConstP.pooled73, rtConstP.pooled8, 1023U); + rtConstP.pooled64, rtConstP.pooled3, 1023U); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtDW.dtc_state_error_model[12] = rtb_LogicalOperator1_f1; + rtDW.dtc_state_error_model[12] = rtb_LogicalOperator1; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ - if (rtb_LogicalOperator1_f1) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + if (rtb_LogicalOperator1) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[13] = rtb_Compare_eu; + rtDW.dtc_state_error_model[13] = rtb_Compare_ec; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[12] = rtb_Compare_e3; + rtDW.dtc_state_error_model[12] = rtb_Compare_ni; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[13] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/Write ERROR' incorporates: - * DataStoreRead: '/Data Store Read' + /* MATLAB Function: '/Write ERROR' incorporates: + * DataStoreRead: '/Data Store Read' */ /* : if(LOGGER) */ - if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator1_f1) { + if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator1) { /* : if(EvapFErr) */ /* : fprintf('CCU_Body_Err.CCU_EvaTempSenErrF_Stat = 0x1 (Failure), Sensor_Evap_Temp = %f V\n',Sensor_Evap_Temp); */ printf("CCU_Body_Err.CCU_EvaTempSenErrF_Stat = 0x1 (Failure), Sensor_Evap_Temp = %f V\n", @@ -15758,11 +22248,11 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR' */ + /* End of MATLAB Function: '/Write ERROR' */ - /* MATLAB Function: '/Write Eva_F' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write1' + /* MATLAB Function: '/Write Eva_F' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -15771,82 +22261,114 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write Eva_F' */ + /* End of MATLAB Function: '/Write Eva_F' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' */ - if (rtb_FailCond_fn && (!rtDW.Cond_prev_private_DSTATE)) { + if (rtb_LogicalOperator_fc && (!rtDW.Cond_prev_private_DSTATE)) { rtDW.t_start_delay_private_DSTATE_g = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * Lookup_n-D: '/1-D Lookup Table' + * Product: '/Divide' */ - if (rtb_LogicalOperator1_f) { + rtb_Divide1_cf = (double)rtDW.ADC_Data_Model.Sensor_Rear_Evap_Temp / 4095.0 * + 5.0; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_ni = (rtb_Divide1_cf < 0.1); + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_og = (rtb_Divide1_cf > 4.9); + + /* Logic: '/Logical Operator' */ + rtb_Compare_ec = (rtb_Compare_ni || rtb_Compare_og); + + /* Logic: '/Logical Operator1' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_LogicalOperator1_dv = (rtb_Compare_ec && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_c >= 3000U)); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * Lookup_n-D: '/1-D Lookup Table' + */ + if (rtb_LogicalOperator1_dv) { rtDW.Eva_R = -100; } else { rtDW.Eva_R = look1_iu16tdIs16_binlcs - (rtDW.ADC_Data_Model.Sensor_Rear_Evap_Temp, rtConstP.pooled73, - rtConstP.pooled8, 1023U); + (rtDW.ADC_Data_Model.Sensor_Rear_Evap_Temp, rtConstP.pooled64, + rtConstP.pooled3, 1023U); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtDW.dtc_state_error_model[14] = rtb_LogicalOperator1_f; + rtDW.dtc_state_error_model[14] = rtb_LogicalOperator1_dv; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ - if (rtb_LogicalOperator1_f) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + if (rtb_LogicalOperator1_dv) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[15] = rtb_Compare_fr; + rtDW.dtc_state_error_model[15] = rtb_Compare_ni; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[14] = rtb_Compare_b; + rtDW.dtc_state_error_model[14] = rtb_Compare_og; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[15] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/Write ERROR' incorporates: - * DataStoreRead: '/Data Store Read' + /* MATLAB Function: '/Write ERROR' incorporates: + * DataStoreRead: '/Data Store Read' */ /* : if(LOGGER) */ - if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator1_f) { + if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator1_dv) { /* : if(EvapRErr) */ /* : fprintf('CCU_Body_Err.CCU_EvaTempSenErrR_Stat = 0x1 (Failure), Sensor_Rear_Evap_Temp = %f V\n',Sensor_Rear_Evap_Temp); */ printf("CCU_Body_Err.CCU_EvaTempSenErrR_Stat = 0x1 (Failure), Sensor_Rear_Evap_Temp = %f V\n", - rtb_Divide1_ea); + rtb_Divide1_cf); fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR' */ + /* End of MATLAB Function: '/Write ERROR' */ - /* MATLAB Function: '/Write Eva_F' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write1' + /* MATLAB Function: '/Write Eva_F' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -15855,68 +22377,99 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write Eva_F' */ + /* End of MATLAB Function: '/Write Eva_F' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' */ - if (rtb_FailCond_gk && (!rtDW.Cond_prev_private_DSTATE_p)) { + if (rtb_Compare_ec && (!rtDW.Cond_prev_private_DSTATE_p)) { rtDW.t_start_delay_private_DSTATE_c = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write' - * Lookup_n-D: '/1-D Lookup Table' + * Product: '/Divide' */ - if (rtb_LogicalOperator1) { + rtb_Divide1_cf = (double)rtDW.ADC_Data_Model.Sensor_AC_Pressure / 4095.0 * 5.0; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_og = (rtb_Divide1_cf < 0.1); + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_ij = (rtb_Divide1_cf > 4.9); + + /* Logic: '/Logical Operator' */ + rtb_Compare_ni = (rtb_Compare_og || rtb_Compare_ij); + + /* Logic: '/Logical Operator1' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_LogicalOperator1_n = (rtb_Compare_ni && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_h >= 3000U)); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write' + * Lookup_n-D: '/1-D Lookup Table' + */ + if (rtb_LogicalOperator1_n) { rtDW.Pressure = 320; } else { rtDW.Pressure = look1_iu16tdIs16_binlcs - (rtDW.ADC_Data_Model.Sensor_AC_Pressure, rtConstP.pooled73, + (rtDW.ADC_Data_Model.Sensor_AC_Pressure, rtConstP.pooled64, rtConstP.uDLookupTable_tableData, 1023U); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtDW.dtc_state_error_model[51] = rtb_LogicalOperator1; + rtDW.dtc_state_error_model[51] = rtb_LogicalOperator1_n; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ - if (rtb_LogicalOperator1) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + if (rtb_LogicalOperator1_n) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[50] = rtb_Compare; + rtDW.dtc_state_error_model[50] = rtb_Compare_og; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[51] = rtb_Compare_ah; + rtDW.dtc_state_error_model[51] = rtb_Compare_ij; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[50] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -15925,67 +22478,222 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* MATLAB Function: '/Write ERROR' incorporates: - * DataStoreRead: '/Data Store Read' + /* MATLAB Function: '/Write ERROR' incorporates: + * DataStoreRead: '/Data Store Read' */ /* : if(LOGGER) */ - if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator1) { + if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator1_n) { /* : if(AC_PressureErr) */ /* : fprintf('CCU_Body_Err.CCU_PressSenErr_Stat = 0x1 (Failure), Sensor_AC_Pressure = %f V\n',Sensor_AC_Pressure); */ printf("CCU_Body_Err.CCU_PressSenErr_Stat = 0x1 (Failure), Sensor_AC_Pressure = %f V\n", - rtb_Divide1); + rtb_Divide1_cf); fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR' */ + /* End of MATLAB Function: '/Write ERROR' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' */ - if (rtb_FailCond && (!rtDW.Cond_prev_private_DSTATE_a)) { - rtDW.t_start_delay_private_DSTATE = rtDW.t_now; + if (rtb_Compare_ni && (!rtDW.Cond_prev_private_DSTATE_a)) { + rtDW.t_start_delay_private_DSTATE_h = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Product: '/Divide4' incorporates: - * Constant: '/Constant1' - * Constant: '/Constant2' + /* Product: '/Divide3' incorporates: + * Constant: '/Constant3' + * Constant: '/Constant4' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide1' + * Product: '/Divide2' */ - rtb_Divide1 = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct2 / 4095.0 * 5.0; + rtb_Divide1_cf = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct1 / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ - rtb_Compare_m = (rtb_Divide1 < 0.15); + rtb_Compare_et = (rtb_Divide1_cf < 0.15); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ - rtb_Compare_i = (rtb_Divide1 > 4.9); + rtb_Compare_ie = (rtb_Divide1_cf > 4.9); - /* Logic: '/Logical Operator1' */ - rtb_Compare = (rtb_Compare_m || rtb_Compare_i); + /* Logic: '/Logical Operator2' */ + rtb_Compare_og = (rtb_Compare_et || rtb_Compare_ie); - /* Logic: '/Logical Operator4' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' + /* Logic: '/Logical Operator3' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' */ - rtb_LogicalOperator4_fo = (rtb_Compare && (rtDW.t_now - + rtb_LogicalOperator3_cz = (rtb_Compare_og && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_kc >= 3000U)); + + /* Product: '/Divide4' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read1' + * Product: '/Divide1' + */ + rtb_Divide4 = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct2 / 4095.0 * 5.0; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_fq = (rtb_Divide4 < 0.15); + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_gy = (rtb_Divide4 > 4.9); + + /* Logic: '/Logical Operator1' */ + rtb_Compare_ij = (rtb_Compare_fq || rtb_Compare_gy); + + /* Logic: '/Logical Operator4' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_LogicalOperator4_fo = (rtb_Compare_ij && (rtDW.t_now - rtDW.t_start_delay_private_DSTATE_m >= 3000U)); - /* SignalConversion generated from: '/1-D Lookup Table7' incorporates: + /* Product: '/Divide6' incorporates: + * Constant: '/Constant7' + * Constant: '/Constant8' + * DataStoreRead: '/Data Store Read1' + * Product: '/Divide5' + */ + rtb_Divide6 = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct3 / 4095.0 * 5.0; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_an = (rtb_Divide6 < 0.15); + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_gp = (rtb_Divide6 > 4.9); + + /* Logic: '/Logical Operator5' */ + rtb_FailCond_hy = (rtb_Compare_an || rtb_Compare_gp); + + /* Logic: '/Logical Operator6' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_LogicalOperator6_m = (rtb_FailCond_hy && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_pn >= 3000U)); + + /* Product: '/Divide8' incorporates: + * Constant: '/Constant10' + * Constant: '/Constant11' + * DataStoreRead: '/Data Store Read1' + * Product: '/Divide7' + */ + rtb_Divide8 = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct4 / 4095.0 * 5.0; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_od = (rtb_Divide8 < 0.15); + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_oo = (rtb_Divide8 > 4.9); + + /* Logic: '/Logical Operator7' */ + rtb_FailCond_fa = (rtb_Compare_od || rtb_Compare_oo); + + /* Logic: '/Logical Operator8' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_LogicalOperator8_i = (rtb_FailCond_fa && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_hb >= 3000U)); + + /* Product: '/Divide10' incorporates: + * Constant: '/Constant13' + * Constant: '/Constant14' + * DataStoreRead: '/Data Store Read1' + * Product: '/Divide9' + */ + rtb_Divide10 = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct5 / 4095.0 * 5.0; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_h2 = (rtb_Divide10 < 0.15); + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_au = (rtb_Divide10 > 4.9); + + /* Logic: '/Logical Operator9' */ + rtb_FailCond_n = (rtb_Compare_h2 || rtb_Compare_au); + + /* Logic: '/Logical Operator10' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_LogicalOperator10 = (rtb_FailCond_n && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_i3 >= 3000U)); + + /* Product: '/Divide11' incorporates: + * Constant: '/Constant16' + * Constant: '/Constant17' + * DataStoreRead: '/Data Store Read1' + * Product: '/Divide12' + */ + rtb_Divide11 = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct6 / 4095.0 * 5.0; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_iy = (rtb_Divide11 < 0.15); + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_bn = (rtb_Divide11 > 4.9); + + /* Logic: '/Logical Operator12' */ + rtb_FailCond_k = (rtb_Compare_iy || rtb_Compare_bn); + + /* Logic: '/Logical Operator11' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_LogicalOperator11 = (rtb_FailCond_k && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_cc >= 3000U)); + + /* SignalConversion generated from: '/1-D Lookup Table7' incorporates: * DataStoreRead: '/Data Store Read1' */ rtb_TmpSignalConversionAt1DLookupTable7Inport1[0] = @@ -16001,493 +22709,338 @@ void HVAC_model_step(void) rtb_TmpSignalConversionAt1DLookupTable7Inport1[5] = rtDW.ADC_Data_Model.Sensor_Front_Duct6; - /* Lookup_n-D: '/1-D Lookup Table7' */ + /* Lookup_n-D: '/1-D Lookup Table7' */ for (i = 0; i < 6; i++) { rtb_uDLookupTable7_g[i] = look1_iu16bs16lu64n32ts16Ds32_binlcs - (rtb_TmpSignalConversionAt1DLookupTable7Inport1[i], rtConstP.pooled62, - rtConstP.pooled61, 1023U); + (rtb_TmpSignalConversionAt1DLookupTable7Inport1[i], rtConstP.pooled56, + rtConstP.pooled55, 1023U); } - /* End of Lookup_n-D: '/1-D Lookup Table7' */ + /* End of Lookup_n-D: '/1-D Lookup Table7' */ - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant6' - * DataStoreWrite: '/Data Store Write1' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant6' + * DataStoreWrite: '/Data Store Write1' */ if (rtb_LogicalOperator4_fo) { - rtb_y_bf = 230; + rtb_u6FRU_tg_amb = 230; } else { - rtb_y_bf = rtb_uDLookupTable7_g[1]; + rtb_u6FRU_tg_amb = rtb_uDLookupTable7_g[1]; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Product: '/Divide3' incorporates: - * Constant: '/Constant3' - * Constant: '/Constant4' - * DataStoreRead: '/Data Store Read1' - * Product: '/Divide2' + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant5' + * DataStoreWrite: '/Data Store Write2' */ - rtb_Divide1_cf = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct1 / 4095.0 * 5.0; - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_au = (rtb_Divide1_cf < 0.15); - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_gl = (rtb_Divide1_cf > 4.9); - - /* Logic: '/Logical Operator2' */ - rtb_Compare_ah = (rtb_Compare_au || rtb_Compare_gl); - - /* Logic: '/Logical Operator3' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator3_nz = (rtb_Compare_ah && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_kc >= 3000U)); - - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant5' - * DataStoreWrite: '/Data Store Write2' - */ - if (rtb_LogicalOperator3_nz) { - rtb_y_fe = 230; + if (rtb_LogicalOperator3_cz) { + rtb_MultiportSwitch_pp = 230; } else { - rtb_y_fe = rtb_uDLookupTable7_g[0]; + rtb_MultiportSwitch_pp = rtb_uDLookupTable7_g[0]; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* Product: '/Divide6' incorporates: - * Constant: '/Constant7' - * Constant: '/Constant8' - * DataStoreRead: '/Data Store Read1' - * Product: '/Divide5' + /* Switch: '/Switch3' incorporates: + * Constant: '/Constant9' + * DataStoreWrite: '/Data Store Write3' */ - rtb_Divide1_ea = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct3 / 4095.0 * 5.0; - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_e = (rtb_Divide1_ea < 0.15); - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_gs = (rtb_Divide1_ea > 4.9); - - /* Logic: '/Logical Operator5' */ - rtb_Compare_eu = (rtb_Compare_e || rtb_Compare_gs); - - /* Logic: '/Logical Operator6' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator6 = (rtb_Compare_eu && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_p >= 3000U)); - - /* Switch: '/Switch3' incorporates: - * Constant: '/Constant9' - * DataStoreWrite: '/Data Store Write3' - */ - if (rtb_LogicalOperator6) { - rtb_y_ar = 230; + if (rtb_LogicalOperator6_m) { + rtb_MultiportSwitch_m5 = 230; } else { - rtb_y_ar = rtb_uDLookupTable7_g[2]; + rtb_MultiportSwitch_m5 = rtb_uDLookupTable7_g[2]; } - /* End of Switch: '/Switch3' */ + /* End of Switch: '/Switch3' */ - /* Product: '/Divide8' incorporates: - * Constant: '/Constant10' - * Constant: '/Constant11' - * DataStoreRead: '/Data Store Read1' - * Product: '/Divide7' + /* Switch: '/Switch4' incorporates: + * Constant: '/Constant12' + * DataStoreWrite: '/Data Store Write4' */ - rtb_Divide8 = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct4 / 4095.0 * 5.0; - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_n2 = (rtb_Divide8 < 0.15); - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_jt = (rtb_Divide8 > 4.9); - - /* Logic: '/Logical Operator7' */ - rtb_Compare_e3 = (rtb_Compare_n2 || rtb_Compare_jt); - - /* Logic: '/Logical Operator8' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator8 = (rtb_Compare_e3 && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_h >= 3000U)); - - /* Switch: '/Switch4' incorporates: - * Constant: '/Constant12' - * DataStoreWrite: '/Data Store Write4' - */ - if (rtb_LogicalOperator8) { - rtb_y_h5 = 230; + if (rtb_LogicalOperator8_i) { + rtb_X = 230; } else { - rtb_y_h5 = rtb_uDLookupTable7_g[3]; + rtb_X = rtb_uDLookupTable7_g[3]; } - /* End of Switch: '/Switch4' */ + /* End of Switch: '/Switch4' */ - /* Product: '/Divide10' incorporates: - * Constant: '/Constant13' - * Constant: '/Constant14' - * DataStoreRead: '/Data Store Read1' - * Product: '/Divide9' - */ - rtb_Divide10 = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct5 / 4095.0 * 5.0; - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_h2 = (rtb_Divide10 < 0.15); - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_nq = (rtb_Divide10 > 4.9); - - /* Logic: '/Logical Operator9' */ - rtb_Compare_fr = (rtb_Compare_h2 || rtb_Compare_nq); - - /* Logic: '/Logical Operator10' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator10 = (rtb_Compare_fr && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_i >= 3000U)); - - /* Switch: '/Switch5' incorporates: - * Constant: '/Constant15' - * DataStoreWrite: '/Data Store Write5' + /* Switch: '/Switch5' incorporates: + * Constant: '/Constant15' + * DataStoreWrite: '/Data Store Write5' */ if (rtb_LogicalOperator10) { - rtb_y_lg = 230; + rtb_Bias1_h = 230; } else { - rtb_y_lg = rtb_uDLookupTable7_g[4]; + rtb_Bias1_h = rtb_uDLookupTable7_g[4]; } - /* End of Switch: '/Switch5' */ + /* End of Switch: '/Switch5' */ - /* Product: '/Divide11' incorporates: - * Constant: '/Constant16' - * Constant: '/Constant17' - * DataStoreRead: '/Data Store Read1' - * Product: '/Divide12' - */ - rtb_Divide11 = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct6 / 4095.0 * 5.0; - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_ck = (rtb_Divide11 < 0.15); - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_ofn = (rtb_Divide11 > 4.9); - - /* Logic: '/Logical Operator12' */ - rtb_Compare_b = (rtb_Compare_ck || rtb_Compare_ofn); - - /* Logic: '/Logical Operator11' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator11 = (rtb_Compare_b && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_cc >= 3000U)); - - /* Switch: '/Switch6' incorporates: - * Constant: '/Constant18' - * DataStoreWrite: '/Data Store Write6' + /* Switch: '/Switch6' incorporates: + * Constant: '/Constant18' + * DataStoreWrite: '/Data Store Write6' */ if (rtb_LogicalOperator11) { - rtb_y_ck = 230; + Duct6_F = 230; } else { - rtb_y_ck = rtb_uDLookupTable7_g[5]; + Duct6_F = rtb_uDLookupTable7_g[5]; } - /* End of Switch: '/Switch6' */ + /* End of Switch: '/Switch6' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtDW.dtc_state_error_model[17] = rtb_LogicalOperator3_nz; + rtDW.dtc_state_error_model[17] = rtb_LogicalOperator3_cz; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ - if (rtb_LogicalOperator3_nz) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + if (rtb_LogicalOperator3_cz) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[18] = rtb_Compare_au; + rtDW.dtc_state_error_model[18] = rtb_Compare_et; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[17] = rtb_Compare_gl; + rtDW.dtc_state_error_model[17] = rtb_Compare_ie; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[18] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtDW.dtc_state_error_model[19] = rtb_LogicalOperator4_fo; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ if (rtb_LogicalOperator4_fo) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[20] = rtb_Compare_m; + rtDW.dtc_state_error_model[20] = rtb_Compare_fq; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[19] = rtb_Compare_i; + rtDW.dtc_state_error_model[19] = rtb_Compare_gy; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[20] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtDW.dtc_state_error_model[21] = rtb_LogicalOperator6; + rtDW.dtc_state_error_model[21] = rtb_LogicalOperator6_m; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ - if (rtb_LogicalOperator6) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + if (rtb_LogicalOperator6_m) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[22] = rtb_Compare_e; + rtDW.dtc_state_error_model[22] = rtb_Compare_an; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[21] = rtb_Compare_gs; + rtDW.dtc_state_error_model[21] = rtb_Compare_gp; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[22] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtDW.dtc_state_error_model[23] = rtb_LogicalOperator8; + rtDW.dtc_state_error_model[23] = rtb_LogicalOperator8_i; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ - if (rtb_LogicalOperator8) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + if (rtb_LogicalOperator8_i) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[24] = rtb_Compare_n2; + rtDW.dtc_state_error_model[24] = rtb_Compare_od; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[23] = rtb_Compare_jt; + rtDW.dtc_state_error_model[23] = rtb_Compare_oo; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[24] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtDW.dtc_state_error_model[25] = rtb_LogicalOperator10; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ if (rtb_LogicalOperator10) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.dtc_state_error_model[26] = rtb_Compare_h2; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[25] = rtb_Compare_nq; + rtDW.dtc_state_error_model[25] = rtb_Compare_au; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[26] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtDW.dtc_state_error_model[27] = rtb_LogicalOperator11; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ if (rtb_LogicalOperator11) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[28] = rtb_Compare_ck; + rtDW.dtc_state_error_model[28] = rtb_Compare_iy; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[27] = rtb_Compare_ofn; + rtDW.dtc_state_error_model[27] = rtb_Compare_bn; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[28] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/Write 1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write2' + /* MATLAB Function: '/Write 1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write2' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct1_F = %d * 0.1 C\n',Sensor); */ - printf("Duct1_F = %d * 0.1 C\n", rtb_y_fe); + printf("Duct1_F = %d * 0.1 C\n", rtb_MultiportSwitch_pp); fflush(stdout); } - /* End of MATLAB Function: '/Write 1' */ + /* End of MATLAB Function: '/Write 1' */ - /* MATLAB Function: '/Write 2' incorporates: - * DataStoreRead: '/Data Store Read2' - * DataStoreWrite: '/Data Store Write1' + /* MATLAB Function: '/Write 2' incorporates: + * DataStoreRead: '/Data Store Read2' + * DataStoreWrite: '/Data Store Write1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct2_F = %d * 0.1 C\n',Sensor); */ - printf("Duct2_F = %d * 0.1 C\n", rtb_y_bf); + printf("Duct2_F = %d * 0.1 C\n", rtb_u6FRU_tg_amb); fflush(stdout); } - /* End of MATLAB Function: '/Write 2' */ + /* End of MATLAB Function: '/Write 2' */ - /* MATLAB Function: '/Write 3' incorporates: - * DataStoreRead: '/Data Store Read3' - * DataStoreWrite: '/Data Store Write3' + /* MATLAB Function: '/Write 3' incorporates: + * DataStoreRead: '/Data Store Read3' + * DataStoreWrite: '/Data Store Write3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct3_F = %d * 0.1 C\n',Sensor); */ - printf("Duct3_F = %d * 0.1 C\n", rtb_y_ar); + printf("Duct3_F = %d * 0.1 C\n", rtb_MultiportSwitch_m5); fflush(stdout); } - /* End of MATLAB Function: '/Write 3' */ + /* End of MATLAB Function: '/Write 3' */ - /* MATLAB Function: '/Write 4' incorporates: - * DataStoreRead: '/Data Store Read4' - * DataStoreWrite: '/Data Store Write4' + /* MATLAB Function: '/Write 4' incorporates: + * DataStoreRead: '/Data Store Read4' + * DataStoreWrite: '/Data Store Write4' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct4_F = %d * 0.1 C\n',Sensor); */ - printf("Duct4_F = %d * 0.1 C\n", rtb_y_h5); + printf("Duct4_F = %d * 0.1 C\n", rtb_X); fflush(stdout); } - /* End of MATLAB Function: '/Write 4' */ + /* End of MATLAB Function: '/Write 4' */ - /* MATLAB Function: '/Write 5' incorporates: - * DataStoreRead: '/Data Store Read5' - * DataStoreWrite: '/Data Store Write5' + /* MATLAB Function: '/Write 5' incorporates: + * DataStoreRead: '/Data Store Read5' + * DataStoreWrite: '/Data Store Write5' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct5_F = %d * 0.1 C\n',Sensor); */ - printf("Duct5_F = %d * 0.1 C\n", rtb_y_lg); + printf("Duct5_F = %d * 0.1 C\n", rtb_Bias1_h); fflush(stdout); } - /* End of MATLAB Function: '/Write 5' */ + /* End of MATLAB Function: '/Write 5' */ - /* MATLAB Function: '/Write 6' incorporates: - * DataStoreRead: '/Data Store Read6' - * DataStoreWrite: '/Data Store Write6' + /* MATLAB Function: '/Write 6' incorporates: + * DataStoreRead: '/Data Store Read6' + * DataStoreWrite: '/Data Store Write6' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct6_F = %d * 0.1 C\n',Sensor); */ - printf("Duct6_F = %d * 0.1 C\n", rtb_y_ck); + printf("Duct6_F = %d * 0.1 C\n", Duct6_F); fflush(stdout); } - /* End of MATLAB Function: '/Write 6' */ + /* End of MATLAB Function: '/Write 6' */ - /* MATLAB Function: '/Write ERROR1' incorporates: - * DataStoreRead: '/Data Store Read1' + /* MATLAB Function: '/Write ERROR1' incorporates: + * DataStoreRead: '/Data Store Read1' */ /* : if(LOGGER) */ - if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator3_nz) { + if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator3_cz) { /* : if(Err) */ /* : fprintf('CCU_Body_Err.CCU_DuctTempSenErrF_Stat = 0x1 (Failure), Sensor_Duct1_F = %f V\n',Sensor); */ printf("CCU_Body_Err.CCU_DuctTempSenErrF_Stat = 0x1 (Failure), Sensor_Duct1_F = %f V\n", @@ -16495,41 +23048,41 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR1' */ + /* End of MATLAB Function: '/Write ERROR1' */ - /* MATLAB Function: '/Write ERROR2' incorporates: - * DataStoreRead: '/Data Store Read2' + /* MATLAB Function: '/Write ERROR2' incorporates: + * DataStoreRead: '/Data Store Read2' */ /* : if(LOGGER) */ if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator4_fo) { /* : if(Err) */ /* : fprintf('CCU_Body_Err.CCU_DuctTempSenErrF_Stat = 0x1 (Failure), Sensor_Duct2_F = %f V\n',Sensor); */ printf("CCU_Body_Err.CCU_DuctTempSenErrF_Stat = 0x1 (Failure), Sensor_Duct2_F = %f V\n", - rtb_Divide1); + rtb_Divide4); fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR2' */ + /* End of MATLAB Function: '/Write ERROR2' */ - /* MATLAB Function: '/Write ERROR3' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write ERROR3' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER) */ - if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator6) { + if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator6_m) { /* : if(Err) */ /* : fprintf('CCU_Body_Err.CCU_DuctTempSenErrF_Stat = 0x1 (Failure), Sensor_Duct3_F = %f V\n',Sensor); */ printf("CCU_Body_Err.CCU_DuctTempSenErrF_Stat = 0x1 (Failure), Sensor_Duct3_F = %f V\n", - rtb_Divide1_ea); + rtb_Divide6); fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR3' */ + /* End of MATLAB Function: '/Write ERROR3' */ - /* MATLAB Function: '/Write ERROR4' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/Write ERROR4' incorporates: + * DataStoreRead: '/Data Store Read4' */ /* : if(LOGGER) */ - if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator8) { + if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator8_i) { /* : if(Err) */ /* : fprintf('CCU_Body_Err.CCU_DuctTempSenErrF_Stat = 0x1 (Failure), Sensor_Duct4_F = %f V\n',Sensor); */ printf("CCU_Body_Err.CCU_DuctTempSenErrF_Stat = 0x1 (Failure), Sensor_Duct4_F = %f V\n", @@ -16537,10 +23090,10 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR4' */ + /* End of MATLAB Function: '/Write ERROR4' */ - /* MATLAB Function: '/Write ERROR5' incorporates: - * DataStoreRead: '/Data Store Read5' + /* MATLAB Function: '/Write ERROR5' incorporates: + * DataStoreRead: '/Data Store Read5' */ /* : if(LOGGER) */ if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator10) { @@ -16551,10 +23104,10 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR5' */ + /* End of MATLAB Function: '/Write ERROR5' */ - /* MATLAB Function: '/Write ERROR6' incorporates: - * DataStoreRead: '/Data Store Read6' + /* MATLAB Function: '/Write ERROR6' incorporates: + * DataStoreRead: '/Data Store Read6' */ /* : if(LOGGER) */ if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator11) { @@ -16565,667 +23118,745 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR6' */ + /* End of MATLAB Function: '/Write ERROR6' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' */ - if (rtb_Compare_ah && (!rtDW.Cond_prev_private_DSTATE_h)) { + if (rtb_Compare_og && (!rtDW.Cond_prev_private_DSTATE_h)) { rtDW.t_start_delay_private_DSTATE_kc = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' */ - if (rtb_Compare && (!rtDW.Cond_prev_private_DSTATE_c)) { + if (rtb_Compare_ij && (!rtDW.Cond_prev_private_DSTATE_c)) { rtDW.t_start_delay_private_DSTATE_m = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' */ - if (rtb_Compare_eu && (!rtDW.Cond_prev_private_DSTATE_m)) { - rtDW.t_start_delay_private_DSTATE_p = rtDW.t_now; + if (rtb_FailCond_hy && (!rtDW.Cond_prev_private_DSTATE_m)) { + rtDW.t_start_delay_private_DSTATE_pn = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' */ - if (rtb_Compare_e3 && (!rtDW.Cond_prev_private_DSTATE_j)) { - rtDW.t_start_delay_private_DSTATE_h = rtDW.t_now; + if (rtb_FailCond_fa && (!rtDW.Cond_prev_private_DSTATE_j)) { + rtDW.t_start_delay_private_DSTATE_hb = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' */ - if (rtb_Compare_fr && (!rtDW.Cond_prev_private_DSTATE_f)) { - rtDW.t_start_delay_private_DSTATE_i = rtDW.t_now; + if (rtb_FailCond_n && (!rtDW.Cond_prev_private_DSTATE_f)) { + rtDW.t_start_delay_private_DSTATE_i3 = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' */ - if (rtb_Compare_b && (!rtDW.Cond_prev_private_DSTATE_cn)) { + if (rtb_FailCond_k && (!rtDW.Cond_prev_private_DSTATE_cn)) { rtDW.t_start_delay_private_DSTATE_cc = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Product: '/Divide5' incorporates: - * Constant: '/Constant6' - * Constant: '/Constant7' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide4' + * Product: '/Divide' */ - rtb_Divide1 = (double)rtDW.ADC_Data_Model.Sensor_Rear_Duct3 / 4095.0 * 5.0; + rtb_Divide1_cf = (double)rtDW.ADC_Data_Model.Sensor_Rear_Duct1 / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ - rtb_Compare_h2 = (rtb_Divide1 < 0.15); + rtb_Compare_h2 = (rtb_Divide1_cf < 0.15); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ - rtb_Compare_nq = (rtb_Divide1 > 4.9); + rtb_Compare_au = (rtb_Divide1_cf > 4.9); - /* Logic: '/Logical Operator5' */ - rtb_Compare_m = (rtb_Compare_h2 || rtb_Compare_nq); + /* Logic: '/Logical Operator' */ + rtb_Compare_et = (rtb_Compare_h2 || rtb_Compare_au); - /* Logic: '/Logical Operator6' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' + /* Logic: '/Logical Operator1' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' */ - rtb_Compare_e = (rtb_Compare_m && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_cd >= 3000U)); - - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant8' - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * Lookup_n-D: '/1-D Lookup Table4' - * SignalConversion generated from: '/1-D Lookup Table4' - */ - if (rtb_Compare_e) { - rtb_MultiportSwitch_ae = 230; - } else { - rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs - (rtDW.ADC_Data_Model.Sensor_Rear_Duct3, rtConstP.pooled62, - rtConstP.pooled61, 1023U); - } - - /* End of Switch: '/Switch2' */ - - /* Product: '/Divide7' incorporates: - * Constant: '/Constant10' - * Constant: '/Constant9' - * DataStoreRead: '/Data Store Read1' - * Product: '/Divide6' - */ - rtb_Divide1_cf = (double)rtDW.ADC_Data_Model.Sensor_Rear_Duct4 / 4095.0 * 5.0; - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_ck = (rtb_Divide1_cf < 0.15); - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_ofn = (rtb_Divide1_cf > 4.9); - - /* Logic: '/Logical Operator7' */ - rtb_Compare_i = (rtb_Compare_ck || rtb_Compare_ofn); - - /* Logic: '/Logical Operator8' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_Compare_gs = (rtb_Compare_i && (rtDW.t_now - + rtb_Compare_an = (rtb_Compare_et && (rtDW.t_now - rtDW.t_start_delay_private_DSTATE_o >= 3000U)); - /* Switch: '/Switch3' incorporates: - * Constant: '/Constant11' + /* Product: '/Divide3' incorporates: + * Constant: '/Constant3' + * Constant: '/Constant4' * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write2' - * Lookup_n-D: '/1-D Lookup Table4' - * SignalConversion generated from: '/1-D Lookup Table4' + * Product: '/Divide2' */ - if (rtb_Compare_gs) { - rtb_Bias1_h = 230; + rtb_Divide4 = (double)rtDW.ADC_Data_Model.Sensor_Rear_Duct2 / 4095.0 * 5.0; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_iy = (rtb_Divide4 < 0.15); + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_bn = (rtb_Divide4 > 4.9); + + /* Logic: '/Logical Operator2' */ + rtb_Compare_ie = (rtb_Compare_iy || rtb_Compare_bn); + + /* Logic: '/Logical Operator3' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_Compare_gp = (rtb_Compare_ie && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_oy >= 3000U)); + + /* Product: '/Divide5' incorporates: + * Constant: '/Constant6' + * Constant: '/Constant7' + * DataStoreRead: '/Data Store Read1' + * Product: '/Divide4' + */ + rtb_Divide6 = (double)rtDW.ADC_Data_Model.Sensor_Rear_Duct3 / 4095.0 * 5.0; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_d5 = (rtb_Divide6 < 0.15); + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_mg = (rtb_Divide6 > 4.9); + + /* Logic: '/Logical Operator5' */ + rtb_Compare_fq = (rtb_Compare_d5 || rtb_Compare_mg); + + /* Logic: '/Logical Operator6' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_Compare_od = (rtb_Compare_fq && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_cd >= 3000U)); + + /* Product: '/Divide7' incorporates: + * Constant: '/Constant10' + * Constant: '/Constant9' + * DataStoreRead: '/Data Store Read1' + * Product: '/Divide6' + */ + rtb_Divide8 = (double)rtDW.ADC_Data_Model.Sensor_Rear_Duct4 / 4095.0 * 5.0; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_bq = (rtb_Divide8 < 0.15); + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_af = (rtb_Divide8 > 4.9); + + /* Logic: '/Logical Operator7' */ + rtb_Compare_gy = (rtb_Compare_bq || rtb_Compare_af); + + /* Logic: '/Logical Operator8' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_Compare_oo = (rtb_Compare_gy && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_or >= 3000U)); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * Lookup_n-D: '/1-D Lookup Table4' + * SignalConversion generated from: '/1-D Lookup Table4' + */ + if (rtb_Compare_an) { + Duct1_R = 230; } else { - rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs - (rtDW.ADC_Data_Model.Sensor_Rear_Duct4, rtConstP.pooled62, - rtConstP.pooled61, 1023U); + Duct1_R = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtDW.ADC_Data_Model.Sensor_Rear_Duct1, rtConstP.pooled56, + rtConstP.pooled55, 1023U); } - /* End of Switch: '/Switch3' */ + /* End of Switch: '/Switch' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant5' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * DataStoreWrite: '/Data Store Write2' + * Lookup_n-D: '/1-D Lookup Table4' + * SignalConversion generated from: '/1-D Lookup Table4' */ - rtb_Divide1_ea = (double)rtDW.ADC_Data_Model.Sensor_Rear_Duct1 / 4095.0 * 5.0; + if (rtb_Compare_gp) { + Duct2_R = 230; + } else { + Duct2_R = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtDW.ADC_Data_Model.Sensor_Rear_Duct2, rtConstP.pooled56, + rtConstP.pooled55, 1023U); + } - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_em = (rtb_Divide1_ea < 0.15); + /* End of Switch: '/Switch1' */ - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_p = (rtb_Divide1_ea > 4.9); - - /* Logic: '/Logical Operator' */ - rtb_Compare_au = (rtb_Compare_em || rtb_Compare_p); - - /* Logic: '/Logical Operator1' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_Compare_n2 = (rtb_Compare_au && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_oj >= 3000U)); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant8' * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write3' - * Lookup_n-D: '/1-D Lookup Table4' - * SignalConversion generated from: '/1-D Lookup Table4' + * DataStoreWrite: '/Data Store Write3' + * Lookup_n-D: '/1-D Lookup Table4' + * SignalConversion generated from: '/1-D Lookup Table4' */ - if (rtb_Compare_n2) { + if (rtb_Compare_od) { Duct3_R = 230; } else { Duct3_R = look1_iu16bs16lu64n32ts16Ds32_binlcs - (rtDW.ADC_Data_Model.Sensor_Rear_Duct1, rtConstP.pooled62, - rtConstP.pooled61, 1023U); + (rtDW.ADC_Data_Model.Sensor_Rear_Duct3, rtConstP.pooled56, + rtConstP.pooled55, 1023U); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch2' */ - /* Product: '/Divide3' incorporates: - * Constant: '/Constant3' - * Constant: '/Constant4' + /* Switch: '/Switch3' incorporates: + * Constant: '/Constant11' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide2' + * DataStoreWrite: '/Data Store Write4' + * Lookup_n-D: '/1-D Lookup Table4' + * SignalConversion generated from: '/1-D Lookup Table4' */ - rtb_Divide8 = (double)rtDW.ADC_Data_Model.Sensor_Rear_Duct2 / 4095.0 * 5.0; - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_kmz = (rtb_Divide8 < 0.15); - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_lb = (rtb_Divide8 > 4.9); - - /* Logic: '/Logical Operator2' */ - rtb_Compare_gl = (rtb_Compare_kmz || rtb_Compare_lb); - - /* Logic: '/Logical Operator3' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_Compare_jt = (rtb_Compare_gl && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_oy >= 3000U)); - - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant5' - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write4' - * Lookup_n-D: '/1-D Lookup Table4' - * SignalConversion generated from: '/1-D Lookup Table4' - */ - if (rtb_Compare_jt) { + if (rtb_Compare_oo) { Duct4_R = 230; } else { Duct4_R = look1_iu16bs16lu64n32ts16Ds32_binlcs - (rtDW.ADC_Data_Model.Sensor_Rear_Duct2, rtConstP.pooled62, - rtConstP.pooled61, 1023U); + (rtDW.ADC_Data_Model.Sensor_Rear_Duct4, rtConstP.pooled56, + rtConstP.pooled55, 1023U); } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch3' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtDW.dtc_state_error_model[29] = rtb_Compare_n2; + rtDW.dtc_state_error_model[29] = rtb_Compare_an; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ - if (rtb_Compare_n2) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + if (rtb_Compare_an) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[30] = rtb_Compare_em; + rtDW.dtc_state_error_model[30] = rtb_Compare_h2; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[29] = rtb_Compare_p; + rtDW.dtc_state_error_model[29] = rtb_Compare_au; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[30] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtDW.dtc_state_error_model[31] = rtb_Compare_jt; + rtDW.dtc_state_error_model[31] = rtb_Compare_gp; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ - if (rtb_Compare_jt) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + if (rtb_Compare_gp) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[32] = rtb_Compare_kmz; + rtDW.dtc_state_error_model[32] = rtb_Compare_iy; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[31] = rtb_Compare_lb; + rtDW.dtc_state_error_model[31] = rtb_Compare_bn; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[32] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtDW.dtc_state_error_model[33] = rtb_Compare_e; + rtDW.dtc_state_error_model[33] = rtb_Compare_od; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ - if (rtb_Compare_e) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + if (rtb_Compare_od) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[34] = rtb_Compare_h2; + rtDW.dtc_state_error_model[34] = rtb_Compare_d5; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[33] = rtb_Compare_nq; + rtDW.dtc_state_error_model[33] = rtb_Compare_mg; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[34] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtDW.dtc_state_error_model[35] = rtb_Compare_gs; + rtDW.dtc_state_error_model[35] = rtb_Compare_oo; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ - if (rtb_Compare_gs) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + if (rtb_Compare_oo) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[36] = rtb_Compare_ck; + rtDW.dtc_state_error_model[36] = rtb_Compare_bq; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[35] = rtb_Compare_ofn; + rtDW.dtc_state_error_model[35] = rtb_Compare_af; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[36] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/Write ' incorporates: + /* MATLAB Function: '/Write ' incorporates: + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write3' + * DataStoreWrite: '/Data Store Write1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct1_R = %d * 0.1 C %d V\n',Sensor, int16(V)); */ - Gain = rtDW.ADC_Data_Model.Sensor_Rear_Duct1; + rtb_out_os = rtDW.ADC_Data_Model.Sensor_Rear_Duct1; if (rtDW.ADC_Data_Model.Sensor_Rear_Duct1 > 32767) { - Gain = 32767U; + rtb_out_os = 32767U; } - printf("Duct1_R = %d * 0.1 C %d V\n", Duct3_R, (int16_t)Gain); + printf("Duct1_R = %d * 0.1 C %d V\n", Duct1_R, (int16_t)rtb_out_os); fflush(stdout); } - /* End of MATLAB Function: '/Write ' */ + /* End of MATLAB Function: '/Write ' */ - /* MATLAB Function: '/Write 1' incorporates: + /* MATLAB Function: '/Write 1' incorporates: + * DataStoreRead: '/Data Store Read1' * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write4' + * DataStoreWrite: '/Data Store Write2' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct2_R = %d * 0.1 C %d V\n',Sensor, int16(V)); */ - Gain = rtDW.ADC_Data_Model.Sensor_Rear_Duct2; + rtb_out_os = rtDW.ADC_Data_Model.Sensor_Rear_Duct2; if (rtDW.ADC_Data_Model.Sensor_Rear_Duct2 > 32767) { - Gain = 32767U; + rtb_out_os = 32767U; } - printf("Duct2_R = %d * 0.1 C %d V\n", Duct4_R, (int16_t)Gain); + printf("Duct2_R = %d * 0.1 C %d V\n", Duct2_R, (int16_t)rtb_out_os); fflush(stdout); } - /* End of MATLAB Function: '/Write 1' */ + /* End of MATLAB Function: '/Write 1' */ - /* MATLAB Function: '/Write 2' incorporates: + /* MATLAB Function: '/Write 2' incorporates: + * DataStoreRead: '/Data Store Read2' * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreWrite: '/Data Store Write1' + * DataStoreWrite: '/Data Store Write3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct3_R = %d * 0.1 C %d V\n',Sensor, int16(V)); */ - Gain = rtDW.ADC_Data_Model.Sensor_Rear_Duct3; + rtb_out_os = rtDW.ADC_Data_Model.Sensor_Rear_Duct3; if (rtDW.ADC_Data_Model.Sensor_Rear_Duct3 > 32767) { - Gain = 32767U; + rtb_out_os = 32767U; } - printf("Duct3_R = %d * 0.1 C %d V\n", rtb_MultiportSwitch_ae, (int16_t)Gain); + printf("Duct3_R = %d * 0.1 C %d V\n", Duct3_R, (int16_t)rtb_out_os); fflush(stdout); } - /* End of MATLAB Function: '/Write 2' */ + /* End of MATLAB Function: '/Write 2' */ - /* MATLAB Function: '/Write 3' incorporates: + /* MATLAB Function: '/Write 3' incorporates: + * DataStoreRead: '/Data Store Read3' * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read3' - * DataStoreWrite: '/Data Store Write2' + * DataStoreWrite: '/Data Store Write4' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct4_R = %d * 0.1 C %d V\n',Sensor, int16(V)); */ - Gain = rtDW.ADC_Data_Model.Sensor_Rear_Duct4; + rtb_out_os = rtDW.ADC_Data_Model.Sensor_Rear_Duct4; if (rtDW.ADC_Data_Model.Sensor_Rear_Duct4 > 32767) { - Gain = 32767U; + rtb_out_os = 32767U; } - printf("Duct4_R = %d * 0.1 C %d V\n", rtb_Bias1_h, (int16_t)Gain); + printf("Duct4_R = %d * 0.1 C %d V\n", Duct4_R, (int16_t)rtb_out_os); fflush(stdout); } - /* End of MATLAB Function: '/Write 3' */ + /* End of MATLAB Function: '/Write 3' */ - /* MATLAB Function: '/Write ERROR' incorporates: - * DataStoreRead: '/Data Store Read' + /* MATLAB Function: '/Write ERROR' incorporates: + * DataStoreRead: '/Data Store Read' */ /* : if(LOGGER) */ - if ((rtDW.LOGGER_ACP != 0.0) && rtb_Compare_n2) { + if ((rtDW.LOGGER_ACP != 0.0) && rtb_Compare_an) { /* : if(Err) */ /* : fprintf('CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct1_R = %f V\n',Sensor); */ printf("CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct1_R = %f V\n", - rtb_Divide1_ea); - fflush(stdout); - } - - /* End of MATLAB Function: '/Write ERROR' */ - - /* MATLAB Function: '/Write ERROR1' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - /* : if(LOGGER) */ - if ((rtDW.LOGGER_ACP != 0.0) && rtb_Compare_jt) { - /* : if(Err) */ - /* : fprintf('CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct2_R = %f V\n',Sensor); */ - printf("CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct2_R = %f V\n", - rtb_Divide8); - fflush(stdout); - } - - /* End of MATLAB Function: '/Write ERROR1' */ - - /* MATLAB Function: '/Write ERROR2' incorporates: - * DataStoreRead: '/Data Store Read2' - */ - /* : if(LOGGER) */ - if ((rtDW.LOGGER_ACP != 0.0) && rtb_Compare_e) { - /* : if(Err) */ - /* : fprintf('CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct3_R = %f V\n',Sensor); */ - printf("CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct3_R = %f V\n", - rtb_Divide1); - fflush(stdout); - } - - /* End of MATLAB Function: '/Write ERROR2' */ - - /* MATLAB Function: '/Write ERROR3' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - /* : if(LOGGER) */ - if ((rtDW.LOGGER_ACP != 0.0) && rtb_Compare_gs) { - /* : if(Err) */ - /* : fprintf('CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct4_R = %f V\n',Sensor); */ - printf("CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct4_R = %f V\n", rtb_Divide1_cf); fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR3' */ + /* End of MATLAB Function: '/Write ERROR' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* MATLAB Function: '/Write ERROR1' incorporates: + * DataStoreRead: '/Data Store Read1' */ - if (rtb_Compare_au && (!rtDW.Cond_prev_private_DSTATE_l)) { - rtDW.t_start_delay_private_DSTATE_oj = rtDW.t_now; + /* : if(LOGGER) */ + if ((rtDW.LOGGER_ACP != 0.0) && rtb_Compare_gp) { + /* : if(Err) */ + /* : fprintf('CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct2_R = %f V\n',Sensor); */ + printf("CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct2_R = %f V\n", + rtb_Divide4); + fflush(stdout); } - /* End of Switch: '/Switch' */ + /* End of MATLAB Function: '/Write ERROR1' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* MATLAB Function: '/Write ERROR2' incorporates: + * DataStoreRead: '/Data Store Read2' */ - if (rtb_Compare_gl && (!rtDW.Cond_prev_private_DSTATE_ja)) { - rtDW.t_start_delay_private_DSTATE_oy = rtDW.t_now; + /* : if(LOGGER) */ + if ((rtDW.LOGGER_ACP != 0.0) && rtb_Compare_od) { + /* : if(Err) */ + /* : fprintf('CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct3_R = %f V\n',Sensor); */ + printf("CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct3_R = %f V\n", + rtb_Divide6); + fflush(stdout); } - /* End of Switch: '/Switch' */ + /* End of MATLAB Function: '/Write ERROR2' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* MATLAB Function: '/Write ERROR3' incorporates: + * DataStoreRead: '/Data Store Read3' */ - if (rtb_Compare_m && (!rtDW.Cond_prev_private_DSTATE_g)) { - rtDW.t_start_delay_private_DSTATE_cd = rtDW.t_now; + /* : if(LOGGER) */ + if ((rtDW.LOGGER_ACP != 0.0) && rtb_Compare_oo) { + /* : if(Err) */ + /* : fprintf('CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct4_R = %f V\n',Sensor); */ + printf("CCU_Body_Err.CCU_DuctTempSenErrR_Stat = 0x1 (Failure), Sensor_Duct4_R = %f V\n", + rtb_Divide8); + fflush(stdout); } - /* End of Switch: '/Switch' */ + /* End of MATLAB Function: '/Write ERROR3' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' */ - if (rtb_Compare_i && (!rtDW.Cond_prev_private_DSTATE_cd)) { + if (rtb_Compare_et && (!rtDW.Cond_prev_private_DSTATE_l)) { rtDW.t_start_delay_private_DSTATE_o = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read3' - * DataStoreWrite: '/Data Store Write1' - * DataStoreWrite: '/Data Store Write3' - * DataStoreWrite: '/Data Store Write4' - * DataStoreWrite: '/Data Store Write5' - * DataStoreWrite: '/Data Store Write' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' + */ + if (rtb_Compare_ie && (!rtDW.Cond_prev_private_DSTATE_ja)) { + rtDW.t_start_delay_private_DSTATE_oy = rtDW.t_now; + } + + /* End of Switch: '/Switch' */ + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' + */ + if (rtb_Compare_fq && (!rtDW.Cond_prev_private_DSTATE_g)) { + rtDW.t_start_delay_private_DSTATE_cd = rtDW.t_now; + } + + /* End of Switch: '/Switch' */ + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' + */ + if (rtb_Compare_gy && (!rtDW.Cond_prev_private_DSTATE_cd)) { + rtDW.t_start_delay_private_DSTATE_or = rtDW.t_now; + } + + /* End of Switch: '/Switch' */ + + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read3' + * DataStoreWrite: '/Data Store Write' + * UnitDelay: '/Unit Delay' + * UnitDelay: '/Unit Delay' + * UnitDelay: '/Unit Delay' + * UnitDelay: '/Unit Delay' */ rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_MultMsg_Idx = 0U; - rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_Raw_FL_ro = rtDW.Incar_FL; + rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_Raw_FL_ro = + rtDW.UnitDelay_DSTATE_cb; rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_FL_ro = rtDW.Incar_FL; - rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_Raw_FR_ro = rtDW.Incar_FR; + rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_Raw_FR_ro = + rtDW.UnitDelay_DSTATE_j; rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_FR_ro = rtDW.Incar_FR; - rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_Raw_RL_ro = rtDW.Incar_RL; + rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_Raw_RL_ro = + rtDW.UnitDelay_DSTATE_cs; rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_RL_ro = rtDW.Incar_RL; - rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_Raw_RR_ro = rtDW.Incar_RR; + rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_Raw_RR_ro = + rtDW.UnitDelay_DSTATE_k; rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_RR_ro = rtDW.Incar_RR; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' - */ - rtDW.dtc_state_error_model[2] = rtb_LogicalOperator1_n; + /* DataStoreWrite: '/Write new FL' */ + rtDW.Temp_FL_store = rtb_DataTypeConversion7; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' - */ - if (rtb_LogicalOperator1_n) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' - */ - rtDW.dtc_state_error_model[3] = rtb_Compare_p1p; + /* DataStoreWrite: '/Write new FL' */ + rtDW.Temp_RL_store = rtb_Filter_g; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' + */ + rtDW.dtc_state_error_model[2] = rtb_err; + + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' + */ + if (rtb_err) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[2] = rtb_Compare_bu; + rtDW.dtc_state_error_model[3] = rtb_Compare_hv; + + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' + */ + rtDW.dtc_state_error_model[2] = rtb_Compare_m0e; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[3] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* MATLAB Function: '/Write ERROR' incorporates: + * DataStoreRead: '/Data Store Read' + */ + /* : if(LOGGER) */ + if ((rtDW.LOGGER_ACP != 0.0) && rtb_err) { + /* : if(IncarFLErr) */ + /* : fprintf('CCU_Body_Err.CCU_IncarTempErrF_Stat = 0x1 (Failure), Sensor_Incar_Temp_FL = %f V\n',Sensor_Incar_Temp_FL); */ + printf("CCU_Body_Err.CCU_IncarTempErrF_Stat = 0x1 (Failure), Sensor_Incar_Temp_FL = %f V\n", + rtb_Divide1); + fflush(stdout); + } + + /* End of MATLAB Function: '/Write ERROR' */ + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' + */ + if (rtb_Compare_i5 && (!rtDW.Cond_prev_private_DSTATE_k)) { + rtDW.t_start_delay_private_DSTATE = rtDW.t_now; + } + + /* End of Switch: '/Switch' */ + + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' + */ + rtDW.dtc_state_error_model[4] = rtb_LogicalOperator6; + + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' + */ + if (rtb_LogicalOperator6) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + */ + rtDW.dtc_state_error_model[5] = rtb_Compare_ba; + + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' + */ + rtDW.dtc_state_error_model[4] = rtb_Compare_oj; + } else { + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.dtc_state_error_model[5] = 0U; + } + + /* End of Switch: '/Switch' */ + + /* MATLAB Function: '/Write ERROR2' incorporates: + * DataStoreRead: '/Data Store Read2' + */ + /* : if(LOGGER) */ + if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator6) { + /* : if(IncarRLErr) */ + /* : fprintf('CCU_Body_Err.CCU_IncarTempErrR_Stat = 0x1 (Failure), Sensor_Incar_Temp_FR = %f V\n',Sensor_Incar_Temp_FR); */ + printf("CCU_Body_Err.CCU_IncarTempErrR_Stat = 0x1 (Failure), Sensor_Incar_Temp_FR = %f V\n", + rtb_Divide5); + fflush(stdout); + } + + /* End of MATLAB Function: '/Write ERROR2' */ + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' + */ + if (rtb_FailCond_jb && (!rtDW.Cond_prev_private_DSTATE_d)) { + rtDW.t_start_delay_private_DSTATE_i = rtDW.t_now; + } + + /* End of Switch: '/Switch' */ + + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtDW.dtc_state_error_model[6] = rtb_LogicalOperator3; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ if (rtb_LogicalOperator3) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[7] = rtb_Compare_l; + rtDW.dtc_state_error_model[7] = rtb_Compare_dn; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[6] = rtb_Compare_j; + rtDW.dtc_state_error_model[6] = rtb_Compare_hj; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[7] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/Write ERROR' incorporates: - * DataStoreRead: '/Data Store Read' - */ - /* : if(LOGGER) */ - if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator1_n) { - /* : if(IncarFLErr) */ - /* : fprintf('CCU_Body_Err.CCU_IncarTempErrF_Stat = 0x1 (Failure), Sensor_Incar_Temp_FL = %f V\n',Sensor_Incar_Temp_FL); */ - printf("CCU_Body_Err.CCU_IncarTempErrF_Stat = 0x1 (Failure), Sensor_Incar_Temp_FL = %f V\n", - rtb_u8Vtg_FX_plus); - fflush(stdout); - } - - /* End of MATLAB Function: '/Write ERROR' */ - - /* MATLAB Function: '/Write ERROR1' incorporates: - * DataStoreRead: '/Data Store Read1' + /* MATLAB Function: '/Write ERROR1' incorporates: + * DataStoreRead: '/Data Store Read1' */ /* : if(LOGGER) */ if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator3) { @@ -17236,1672 +23867,400 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR1' */ + /* End of MATLAB Function: '/Write ERROR1' */ - /* MATLAB Function: '/Write IncarFL' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write1' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' */ - /* : if(LOGGER) */ - if (rtDW.LOGGER_ACP != 0.0) { - /* : fprintf('IncarFL = %d * 0.1 C\n',IncarFL); */ - printf("IncarFL = %d * 0.1 C\n", rtDW.Incar_FL); - fflush(stdout); + if (rtb_FailCond_e && (!rtDW.Cond_prev_private_DSTATE_hw)) { + rtDW.t_start_delay_private_DSTATE_k = rtDW.t_now; } - /* End of MATLAB Function: '/Write IncarFL' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/Write IncarRL' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write4' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - /* : if(LOGGER) */ - if (rtDW.LOGGER_ACP != 0.0) { - /* : fprintf('IncarRL = %d * 0.1 C\n',IncarRL); */ - printf("IncarRL = %d * 0.1 C\n", rtDW.Incar_RL); - fflush(stdout); - } + rtDW.dtc_state_error_model[8] = rtb_LogicalOperator8; - /* End of MATLAB Function: '/Write IncarRL' */ - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ - if (rtb_LogicalOperator5 && (!rtDW.Cond_prev_private_DSTATE_e)) { - rtDW.t_start_delay_private_DSTATE_go = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (rtb_FailCond_lt && (!rtDW.Cond_prev_private_DSTATE_mv)) { - rtDW.t_start_delay_private_DSTATE_j = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' - */ - rtDW.dtc_state_error_model[4] = rtb_LogicalOperator1_m2; - - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' - */ - if (rtb_LogicalOperator1_m2) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + if (rtb_LogicalOperator8) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[5] = rtb_Compare_kt; + rtDW.dtc_state_error_model[9] = rtb_Compare_kf; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ - rtDW.dtc_state_error_model[4] = rtb_Compare_i5; + rtDW.dtc_state_error_model[8] = rtb_Compare_pt; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.dtc_state_error_model[5] = 0U; - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' - */ - rtDW.dtc_state_error_model[8] = rtb_LogicalOperator3_p5; - - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' - */ - if (rtb_LogicalOperator3_p5) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' - */ - rtDW.dtc_state_error_model[9] = rtb_Compare_g4; - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' - */ - rtDW.dtc_state_error_model[8] = rtb_Compare_dd; - } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[9] = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/Write ERROR' incorporates: - * DataStoreRead: '/Data Store Read' + /* MATLAB Function: '/Write ERROR3' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER) */ - if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator1_m2) { - /* : if(IncarRLErr) */ - /* : fprintf('CCU_Body_Err.CCU_IncarTempErrR_Stat = 0x1 (Failure), Sensor_Incar_Temp_FR = %f V\n',Sensor_Incar_Temp_FR); */ - printf("CCU_Body_Err.CCU_IncarTempErrR_Stat = 0x1 (Failure), Sensor_Incar_Temp_FR = %f V\n", - rtb_Divide1_l5); - fflush(stdout); - } - - /* End of MATLAB Function: '/Write ERROR' */ - - /* MATLAB Function: '/Write ERROR1' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - /* : if(LOGGER) */ - if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator3_p5) { + if ((rtDW.LOGGER_ACP != 0.0) && rtb_LogicalOperator8) { /* : if(IncarRLErr) */ /* : fprintf('CCU_Body_Err.CCU_IncarTempErrR_Stat = 0x1 (Failure), Sensor_Incar_Temp_RR = %f V\n',Sensor_Incar_Temp_RR); */ printf("CCU_Body_Err.CCU_IncarTempErrR_Stat = 0x1 (Failure), Sensor_Incar_Temp_RR = %f V\n", - rtb_Divide3_hk); + rtb_Divide7); fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR1' */ + /* End of MATLAB Function: '/Write ERROR3' */ - /* MATLAB Function: '/Write IncarFR' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write3' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' + */ + if (rtb_FailCond_l && (!rtDW.Cond_prev_private_DSTATE_i)) { + rtDW.t_start_delay_private_DSTATE_p = rtDW.t_now; + } + + /* End of Switch: '/Switch' */ + + /* MATLAB Function: '/Write IncarFL' incorporates: + * DataStoreRead: '/Data Store Read' + * UnitDelay: '/Unit Delay' + */ + /* : if(LOGGER) */ + if (rtDW.LOGGER_ACP != 0.0) { + /* : fprintf('IncarFL = %d * 0.1 C\n',IncarFL); */ + printf("IncarFL = %d * 0.1 C\n", rtDW.UnitDelay_DSTATE_cb); + fflush(stdout); + } + + /* End of MATLAB Function: '/Write IncarFL' */ + + /* MATLAB Function: '/Write IncarFR' incorporates: + * DataStoreRead: '/Data Store Read' + * UnitDelay: '/Unit Delay' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('IncarFR = %d * 0.1 C\n',IncarFR); */ - printf("IncarFR = %d * 0.1 C\n", rtDW.Incar_FR); + printf("IncarFR = %d * 0.1 C\n", rtDW.UnitDelay_DSTATE_j); fflush(stdout); } - /* End of MATLAB Function: '/Write IncarFR' */ + /* End of MATLAB Function: '/Write IncarFR' */ - /* MATLAB Function: '/Write IncarRR' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write5' + /* MATLAB Function: '/Write IncarRL' incorporates: + * DataStoreRead: '/Data Store Read1' + * UnitDelay: '/Unit Delay' + */ + /* : if(LOGGER) */ + if (rtDW.LOGGER_ACP != 0.0) { + /* : fprintf('IncarRL = %d * 0.1 C\n',IncarRL); */ + printf("IncarRL = %d * 0.1 C\n", rtDW.UnitDelay_DSTATE_cs); + fflush(stdout); + } + + /* End of MATLAB Function: '/Write IncarRL' */ + + /* MATLAB Function: '/Write IncarRR' incorporates: + * DataStoreRead: '/Data Store Read1' + * UnitDelay: '/Unit Delay' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('IncarRR = %d * 0.1 C\n',IncarRR); */ - printf("IncarRR = %d * 0.1 C\n", rtDW.Incar_RR); + printf("IncarRR = %d * 0.1 C\n", rtDW.UnitDelay_DSTATE_k); fflush(stdout); } - /* End of MATLAB Function: '/Write IncarRR' */ - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (rtb_Compare_dq && (!rtDW.Cond_prev_private_DSTATE_jl)) { - rtDW.t_start_delay_private_DSTATE_k = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (rtb_FailCond_h && (!rtDW.Cond_prev_private_DSTATE_ei)) { - rtDW.t_start_delay_private_DSTATE_gd = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read' - * If: '/If1' - * RelationalOperator: '/Relational Operator1' - * UnitDelay: '/Unit Delay' - */ - if (rtDW.UnitDelay_DSTATE_da == -9999) { - /* Outputs for IfAction SubSystem: '/Инициализация FL' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion generated from: '/temp_fl' incorporates: - * DataStoreWrite: '/Data Store Write' - * DataStoreWrite: '/Data Store Write1' - */ - rtDW.Temp_FL_store = rtDW.Incar_FL; - - /* SignalConversion generated from: '/temp_out_fl' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtb_Bias5 = rtDW.Temp_FL_store; - - /* End of Outputs for SubSystem: '/Инициализация FL' */ - } else { - /* Outputs for IfAction SubSystem: '/Фильтрация FL температуры' incorporates: - * ActionPort: '/Action Port' - */ - if (rtDW.KEEP_RISING_FL_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* If: '/If1' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write1' - * If: '/If' - * MATLAB Function: '/g_ausINCARRATE_RISING_DIFF_F[8]' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - */ - g_ausINCARRATE_RISING_DIFF_F8(&Gain); - rtb_Bias5 = (int16_t)(rtDW.Incar_FL - rtDW.Temp_FL_store); - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - if (rtb_Bias5 <= Gain) { - /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_RISING_FL_UNTIL_LIMIT = 0.0; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/обычное повышение темп.' - */ - u_e(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' - */ - u_cc(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ - } - - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* If: '/If1' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write1' - * If: '/If' - * MATLAB Function: '/INCARRATE_RISING_DIFF_F[7]' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - */ - INCARRATE_RISING_DIFF_F7(&Gain); - rtb_Bias5 = (int16_t)(rtDW.Incar_FL - rtDW.Temp_FL_store); - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - if (rtb_Bias5 > Gain) { - /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_RISING_FL_UNTIL_LIMIT = 1.0; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/ускоренное повышение темп.' - */ - u_c(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' - */ - u_mu(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/обычный режим повышения' */ - } - - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read' - */ - if (rtDW.KEEP_FALLING_FL_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/AMBRATE_RISING_DIFF[8]' */ - AMBRATE_RISING_DIFF8(&Gain1); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read temp' - * DataStoreWrite: '/Data Store Write1' - */ - rtb_Bias5 = (int16_t)(rtDW.Incar_FL - rtDW.Temp_FL_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_Bias5 <= Gain1) { - /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_FALLING_FL_UNTIL_LIMIT = 0.0; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/обычное понижение темп.' - */ - u(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - */ - u_h(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/AMBRATE_FALLING_DIFF[7]' */ - AMBRATE_FALLING_DIFF7(&Gain1); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write1' - */ - rtb_Bias5 = (int16_t)(rtDW.Incar_FL - rtDW.Temp_FL_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_Bias5 > Gain1) { - /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_FALLING_FL_UNTIL_LIMIT = 1.0; - - /* SignalConversion generated from: '/rise per minute' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/ускоренное повышение темп.' - */ - u_m(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion generated from: '/rise per minute' incorporates: - * DataStoreRead: '/Data Store Read' - */ - u_i(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/обычный режим повышения' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* End of If: '/If1' */ - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write1' - */ - rtb_Bias5 = (int16_t)(rtDW.Incar_FL - rtDW.Temp_FL_store); - - /* Abs: '/Abs' */ - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - /* Switch: '/Switch1' incorporates: - * Abs: '/Abs' - * Constant: '/epsilon' - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write1' - * RelationalOperator: '/AMBraw > AMB' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (rtb_Bias5 <= 0.01) { - /* SignalConversion generated from: '/temp_out' incorporates: - * DataStoreRead: '/Read Amb' - */ - rtb_Bias5 = rtDW.Temp_FL_store; - } else { - if (rtDW.Incar_FL > rtDW.Temp_FL_store) { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - */ - rtb_FLU_tg_correct_g = (int16_t)Gain; - } else { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * UnaryMinus: '/Unary Minus' - */ - rtb_FLU_tg_correct_g = (int16_t)-(int16_t)Gain1; - } - - /* SignalConversion generated from: '/temp_out' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read12' - * Product: '/Divide' - * Product: '/Product' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtb_Bias5 = (int16_t)((int16_t)((uint16_t)((rtDW.t_now - - rtDW.UnitDelay_DSTATE_bd) / 60000U) * rtb_FLU_tg_correct_g) + - rtDW.Temp_FL_store); - } - - /* End of Switch: '/Switch1' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/Data Store Read12' - */ - rtDW.UnitDelay_DSTATE_bd = rtDW.t_now; - - /* End of Outputs for SubSystem: '/Фильтрация FL температуры' */ - } - - /* End of If: '/If' */ - - /* DataStoreWrite: '/Write new FL' */ - rtDW.Temp_FL_store = rtb_Bias5; - - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read' - * If: '/If1' - * RelationalOperator: '/Relational Operator2' - * UnitDelay: '/Unit Delay1' - */ - if (rtDW.UnitDelay1_DSTATE_k == -9999) { - /* Outputs for IfAction SubSystem: '/Инициализация FR' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion generated from: '/temp' incorporates: - * DataStoreWrite: '/Data Store Write' - * DataStoreWrite: '/Data Store Write3' - */ - rtDW.Temp_FR_store = rtDW.Incar_FR; - - /* SignalConversion generated from: '/temp_out' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtb_Bias5 = rtDW.Temp_FR_store; - - /* End of Outputs for SubSystem: '/Инициализация FR' */ - } else { - /* Outputs for IfAction SubSystem: '/Фильтрация FR температуры' incorporates: - * ActionPort: '/Action Port' - */ - if (rtDW.KEEP_RISING_FR_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* If: '/If1' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write3' - * If: '/If' - * MATLAB Function: '/g_ausINCARRATE_RISING_DIFF_F[8]' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - */ - g_ausINCARRATE_RISING_DIFF_F8(&Gain); - rtb_Bias5 = (int16_t)(rtDW.Incar_FR - rtDW.Temp_FR_store); - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - if (rtb_Bias5 <= Gain) { - /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_RISING_FR_UNTIL_LIMIT = 0.0; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/обычное повышение темп.' - */ - u_e(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' - */ - u_cc(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ - } - - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* If: '/If1' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write3' - * If: '/If' - * MATLAB Function: '/INCARRATE_RISING_DIFF_F[7]' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - */ - INCARRATE_RISING_DIFF_F7(&Gain); - rtb_Bias5 = (int16_t)(rtDW.Incar_FR - rtDW.Temp_FR_store); - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - if (rtb_Bias5 > Gain) { - /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_RISING_FR_UNTIL_LIMIT = 1.0; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/ускоренное повышение темп.' - */ - u_c(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' - */ - u_mu(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/обычный режим повышения' */ - } - - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read' - */ - if (rtDW.KEEP_FALLING_FR_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/AMBRATE_RISING_DIFF[8]' */ - AMBRATE_RISING_DIFF8(&Gain1); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read temp' - * DataStoreWrite: '/Data Store Write3' - */ - rtb_Bias5 = (int16_t)(rtDW.Incar_FR - rtDW.Temp_FR_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_Bias5 <= Gain1) { - /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_FALLING_FR_UNTIL_LIMIT = 0.0; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/обычное понижение темп.' - */ - u(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - */ - u_h(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/AMBRATE_FALLING_DIFF[7]' */ - AMBRATE_FALLING_DIFF7(&Gain1); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write3' - */ - rtb_Bias5 = (int16_t)(rtDW.Incar_FR - rtDW.Temp_FR_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_Bias5 > Gain1) { - /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_FALLING_FR_UNTIL_LIMIT = 1.0; - - /* SignalConversion generated from: '/rise per minute' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/ускоренное повышение темп.' - */ - u_m(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion generated from: '/rise per minute' incorporates: - * DataStoreRead: '/Data Store Read' - */ - u_i(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/обычный режим повышения' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* End of If: '/If1' */ - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write3' - */ - rtb_Bias5 = (int16_t)(rtDW.Incar_FR - rtDW.Temp_FR_store); - - /* Abs: '/Abs' */ - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - /* Switch: '/Switch1' incorporates: - * Abs: '/Abs' - * Constant: '/epsilon' - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write3' - * RelationalOperator: '/AMBraw > AMB' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (rtb_Bias5 <= 0.01) { - /* SignalConversion generated from: '/temp_out' incorporates: - * DataStoreRead: '/Read Amb' - */ - rtb_Bias5 = rtDW.Temp_FR_store; - } else { - if (rtDW.Incar_FR > rtDW.Temp_FR_store) { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - */ - rtb_FLU_tg_correct_g = (int16_t)Gain; - } else { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * UnaryMinus: '/Unary Minus' - */ - rtb_FLU_tg_correct_g = (int16_t)-(int16_t)Gain1; - } - - /* SignalConversion generated from: '/temp_out' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read12' - * Product: '/Divide' - * Product: '/Product' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtb_Bias5 = (int16_t)((int16_t)((uint16_t)((rtDW.t_now - - rtDW.UnitDelay_DSTATE_b) / 60000U) * rtb_FLU_tg_correct_g) + - rtDW.Temp_FR_store); - } - - /* End of Switch: '/Switch1' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/Data Store Read12' - */ - rtDW.UnitDelay_DSTATE_b = rtDW.t_now; - - /* End of Outputs for SubSystem: '/Фильтрация FR температуры' */ - } - - /* End of If: '/If1' */ - - /* DataStoreWrite: '/Write new FR' */ - rtDW.Temp_FR_store = rtb_Bias5; - - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read' - * If: '/If1' - * RelationalOperator: '/Relational Operator1' - * UnitDelay: '/Unit Delay' - */ - if (rtDW.UnitDelay_DSTATE_my == -9999) { - /* Outputs for IfAction SubSystem: '/Инициализация RL' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion generated from: '/temp_in' incorporates: - * DataStoreWrite: '/Data Store Write' - * DataStoreWrite: '/Data Store Write4' - */ - rtDW.Temp_RL_store = rtDW.Incar_RL; - - /* SignalConversion generated from: '/temp_out' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtb_Bias5 = rtDW.Temp_RL_store; - - /* End of Outputs for SubSystem: '/Инициализация RL' */ - } else { - /* Outputs for IfAction SubSystem: '/Фильтрация RL температуры' incorporates: - * ActionPort: '/Action Port' - */ - if (rtDW.KEEP_RISING_RL_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* If: '/If1' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write4' - * If: '/If' - * MATLAB Function: '/g_ausINCARRATE_RISING_DIFF_R[8]' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - */ - g_ausINCARRATE_RISING_DIFF_R8(&Gain); - rtb_Bias5 = (int16_t)(rtDW.Incar_RL - rtDW.Temp_RL_store); - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - if (rtb_Bias5 <= Gain) { - /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_RISING_RL_UNTIL_LIMIT = 0.0; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/обычное повышение темп.' - */ - u_j(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' - */ - u_jk(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ - } - - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* If: '/If1' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write4' - * If: '/If' - * MATLAB Function: '/INCARRATE_RISING_DIFF_R[7]' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - */ - INCARRATE_RISING_DIFF_R7(&Gain); - rtb_Bias5 = (int16_t)(rtDW.Incar_RL - rtDW.Temp_RL_store); - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - if (rtb_Bias5 > Gain) { - /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_RISING_RL_UNTIL_LIMIT = 1.0; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/ускоренное повышение темп.' - */ - u_d(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' - */ - u_ew(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/обычный режим повышения' */ - } - - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read' - */ - if (rtDW.KEEP_FALLING_RL_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/AMBRATE_RISING_DIFF[8]' */ - AMBRATE_RISING_DIFF8_m(&Gain1); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read temp' - * DataStoreWrite: '/Data Store Write4' - */ - rtb_Bias5 = (int16_t)(rtDW.Incar_RL - rtDW.Temp_RL_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_Bias5 <= Gain1) { - /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_FALLING_RL_UNTIL_LIMIT = 0.0; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/обычное понижение темп.' - */ - u_a(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - */ - u_g(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/AMBRATE_FALLING_DIFF[7]' */ - AMBRATE_FALLING_DIFF7_a(&Gain1); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write4' - */ - rtb_Bias5 = (int16_t)(rtDW.Incar_RL - rtDW.Temp_RL_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_Bias5 > Gain1) { - /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_FALLING_RL_UNTIL_LIMIT = 1.0; - - /* SignalConversion generated from: '/rise per minute' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/ускоренное повышение темп.' - */ - u_l(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion generated from: '/rise per minute' incorporates: - * DataStoreRead: '/Data Store Read' - */ - u_b(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/обычный режим повышения' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* End of If: '/If1' */ - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write4' - */ - rtb_Bias5 = (int16_t)(rtDW.Incar_RL - rtDW.Temp_RL_store); - - /* Abs: '/Abs' */ - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - /* Switch: '/Switch1' incorporates: - * Abs: '/Abs' - * Constant: '/epsilon' - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write4' - * RelationalOperator: '/AMBraw > AMB' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (rtb_Bias5 <= 0.01) { - /* SignalConversion generated from: '/temp_out' incorporates: - * DataStoreRead: '/Read Amb' - */ - rtb_Bias5 = rtDW.Temp_RL_store; - } else { - if (rtDW.Incar_RL > rtDW.Temp_RL_store) { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - */ - rtb_FLU_tg_correct_g = (int16_t)Gain; - } else { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * UnaryMinus: '/Unary Minus' - */ - rtb_FLU_tg_correct_g = (int16_t)-(int16_t)Gain1; - } - - /* SignalConversion generated from: '/temp_out' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read12' - * Product: '/Divide' - * Product: '/Product' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtb_Bias5 = (int16_t)((int16_t)((uint16_t)((rtDW.t_now - - rtDW.UnitDelay_DSTATE_a) / 60000U) * rtb_FLU_tg_correct_g) + - rtDW.Temp_RL_store); - } - - /* End of Switch: '/Switch1' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/Data Store Read12' - */ - rtDW.UnitDelay_DSTATE_a = rtDW.t_now; - - /* End of Outputs for SubSystem: '/Фильтрация RL температуры' */ - } - - /* End of If: '/If' */ - - /* DataStoreWrite: '/Write new RL' */ - rtDW.Temp_RL_store = rtb_Bias5; - - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read' - * If: '/If1' - * RelationalOperator: '/Relational Operator1' - * UnitDelay: '/Unit Delay' - */ - if (rtDW.UnitDelay_DSTATE_lt == -9999) { - /* Outputs for IfAction SubSystem: '/Инициализация RR' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion generated from: '/temp_in' incorporates: - * DataStoreWrite: '/Data Store Write' - * DataStoreWrite: '/Data Store Write5' - */ - rtDW.Temp_RR_store = rtDW.Incar_RR; - - /* SignalConversion generated from: '/temp_out' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtb_Bias5 = rtDW.Temp_RR_store; - - /* End of Outputs for SubSystem: '/Инициализация RR' */ - } else { - /* Outputs for IfAction SubSystem: '/Фильтрация RR температуры' incorporates: - * ActionPort: '/Action Port' - */ - if (rtDW.KEEP_RISING_RR_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* If: '/If1' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write5' - * If: '/If' - * MATLAB Function: '/g_ausINCARRATE_RISING_DIFF_R[8]' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - */ - g_ausINCARRATE_RISING_DIFF_R8(&Gain); - rtb_Bias5 = (int16_t)(rtDW.Incar_RR - rtDW.Temp_RR_store); - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - if (rtb_Bias5 <= Gain) { - /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_RISING_RR_UNTIL_LIMIT = 0.0; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/обычное повышение темп.' - */ - u_j(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' - */ - u_jk(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ - } - - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* If: '/If1' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write5' - * If: '/If' - * MATLAB Function: '/INCARRATE_RISING_DIFF_R[7]' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - */ - INCARRATE_RISING_DIFF_R7(&Gain); - rtb_Bias5 = (int16_t)(rtDW.Incar_RR - rtDW.Temp_RR_store); - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - if (rtb_Bias5 > Gain) { - /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_RISING_RR_UNTIL_LIMIT = 1.0; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/ускоренное повышение темп.' - */ - u_d(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' - */ - u_ew(rtDW.LEVEL, &Gain); - - /* End of Outputs for SubSystem: '/обычный режим повышения' */ - } - - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read' - */ - if (rtDW.KEEP_FALLING_RR_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/AMBRATE_RISING_DIFF[8]' */ - AMBRATE_RISING_DIFF8_m(&Gain1); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read temp' - * DataStoreWrite: '/Data Store Write5' - */ - rtb_Bias5 = (int16_t)(rtDW.Incar_RR - rtDW.Temp_RR_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_Bias5 <= Gain1) { - /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_FALLING_RR_UNTIL_LIMIT = 0.0; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/обычное понижение темп.' - */ - u_a(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - */ - u_g(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/AMBRATE_FALLING_DIFF[7]' */ - AMBRATE_FALLING_DIFF7_a(&Gain1); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write5' - */ - rtb_Bias5 = (int16_t)(rtDW.Incar_RR - rtDW.Temp_RR_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_Bias5 > Gain1) { - /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_FALLING_RR_UNTIL_LIMIT = 1.0; - - /* SignalConversion generated from: '/rise per minute' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/ускоренное повышение темп.' - */ - u_l(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion generated from: '/rise per minute' incorporates: - * DataStoreRead: '/Data Store Read' - */ - u_b(rtDW.LEVEL, &Gain1); - - /* End of Outputs for SubSystem: '/обычный режим повышения' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* End of If: '/If1' */ - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write5' - */ - rtb_Bias5 = (int16_t)(rtDW.Incar_RR - rtDW.Temp_RR_store); - - /* Abs: '/Abs' */ - if (rtb_Bias5 < 0) { - rtb_Bias5 = (int16_t)-rtb_Bias5; - } - - /* Switch: '/Switch1' incorporates: - * Abs: '/Abs' - * Constant: '/epsilon' - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write5' - * RelationalOperator: '/AMBraw > AMB' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (rtb_Bias5 <= 0.01) { - /* SignalConversion generated from: '/temp_out' incorporates: - * DataStoreRead: '/Read Amb' - */ - rtb_Bias5 = rtDW.Temp_RR_store; - } else { - if (rtDW.Incar_RR > rtDW.Temp_RR_store) { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - */ - rtb_FLU_tg_correct_g = (int16_t)Gain; - } else { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * UnaryMinus: '/Unary Minus' - */ - rtb_FLU_tg_correct_g = (int16_t)-(int16_t)Gain1; - } - - /* SignalConversion generated from: '/temp_out' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read12' - * Product: '/Divide' - * Product: '/Product' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtb_Bias5 = (int16_t)((int16_t)((uint16_t)((rtDW.t_now - - rtDW.UnitDelay_DSTATE_n) / 60000U) * rtb_FLU_tg_correct_g) + - rtDW.Temp_RR_store); - } - - /* End of Switch: '/Switch1' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/Data Store Read12' - */ - rtDW.UnitDelay_DSTATE_n = rtDW.t_now; - - /* End of Outputs for SubSystem: '/Фильтрация RR температуры' */ - } - - /* End of If: '/If' */ - - /* DataStoreWrite: '/Write new RR' */ - rtDW.Temp_RR_store = rtb_Bias5; + /* End of MATLAB Function: '/Write IncarRR' */ /* DataStoreWrite: '/Data Store Write' incorporates: * Constant: '/Constant' */ rtDW.LOGGER_ACP = 0.0; - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_u8Vtg_FX_plus = (double) + rtb_DataTypeConversion7 = (double) rtDW.ADC_Data_Model.BTS5120_2EKA_ShutoffValvePowerTXV1 / 4095.0 * 5.0; - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide2' - * Product: '/Divide3' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide2' + * Product: '/Divide3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('BTS5120_2EKA_ShutoffValvePowerTXV1 V = %f Iout = %f\n',U,I); */ printf("BTS5120_2EKA_ShutoffValvePowerTXV1 V = %f Iout = %f\n", - rtb_u8Vtg_FX_plus, rtb_u8Vtg_FX_plus / 1200.0 * 550.0); + rtb_DataTypeConversion7, rtb_DataTypeConversion7 / 1200.0 * 550.0); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_u8Vtg_FX_plus = (double) + rtb_DataTypeConversion7 = (double) rtDW.ADC_Data_Model.BTS5120_2EKA_ShutoffValvePowerTXV2 / 4095.0 * 5.0; - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide2' - * Product: '/Divide3' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide2' + * Product: '/Divide3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('BTS5120_2EKA_ShutoffValvePowerTXV2 V = %f Iout = %f\n',U,I); */ printf("BTS5120_2EKA_ShutoffValvePowerTXV2 V = %f Iout = %f\n", - rtb_u8Vtg_FX_plus, rtb_u8Vtg_FX_plus / 1200.0 * 550.0); + rtb_DataTypeConversion7, rtb_DataTypeConversion7 / 1200.0 * 550.0); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_u8Vtg_FX_plus = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_ChannelPTCPower1 / - 4095.0 * 5.0; + rtb_DataTypeConversion7 = (double) + rtDW.ADC_Data_Model.BTS5180_2EKA_ChannelPTCPower1 / 4095.0 * 5.0; - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide2' - * Product: '/Divide3' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide2' + * Product: '/Divide3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('BTS5180_2EKA_ChannelPTCPower1 V = %f Iout = %f\n',U,I); */ - printf("BTS5180_2EKA_ChannelPTCPower1 V = %f Iout = %f\n", rtb_u8Vtg_FX_plus, - rtb_u8Vtg_FX_plus / 1200.0 * 550.0); + printf("BTS5180_2EKA_ChannelPTCPower1 V = %f Iout = %f\n", + rtb_DataTypeConversion7, rtb_DataTypeConversion7 / 1200.0 * 550.0); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_u8Vtg_FX_plus = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_ChannelPTCPower2 / - 4095.0 * 5.0; + rtb_DataTypeConversion7 = (double) + rtDW.ADC_Data_Model.BTS5180_2EKA_ChannelPTCPower2 / 4095.0 * 5.0; - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide2' - * Product: '/Divide3' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide2' + * Product: '/Divide3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('BTS5180_2EKA_ChannelPTCPower2 V = %f Iout = %f\n',U,I); */ - printf("BTS5180_2EKA_ChannelPTCPower2 V = %f Iout = %f\n", rtb_u8Vtg_FX_plus, - rtb_u8Vtg_FX_plus / 1200.0 * 550.0); + printf("BTS5180_2EKA_ChannelPTCPower2 V = %f Iout = %f\n", + rtb_DataTypeConversion7, rtb_DataTypeConversion7 / 1200.0 * 550.0); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_u8Vtg_FX_plus = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_FrontIncarMotor / - 4095.0 * 5.0; + rtb_DataTypeConversion7 = (double) + rtDW.ADC_Data_Model.BTS5180_2EKA_FrontIncarMotor / 4095.0 * 5.0; - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide2' - * Product: '/Divide3' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide2' + * Product: '/Divide3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('BTS5180_2EKA_FrontIncarMotor V = %f Iout = %f\n',U,I); */ - printf("BTS5180_2EKA_FrontIncarMotor V = %f Iout = %f\n", rtb_u8Vtg_FX_plus, - rtb_u8Vtg_FX_plus / 1200.0 * 550.0); + printf("BTS5180_2EKA_FrontIncarMotor V = %f Iout = %f\n", + rtb_DataTypeConversion7, rtb_DataTypeConversion7 / 1200.0 * 550.0); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_u8Vtg_FX_plus = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_RearIncarMotor / - 4095.0 * 5.0; + rtb_DataTypeConversion7 = (double) + rtDW.ADC_Data_Model.BTS5180_2EKA_RearIncarMotor / 4095.0 * 5.0; - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide2' - * Product: '/Divide3' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide2' + * Product: '/Divide3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('BTS5180_2EKA_RearIncarMotor V = %f Iout = %f\n',U,I); */ - printf("BTS5180_2EKA_RearIncarMotor V = %f Iout = %f\n", rtb_u8Vtg_FX_plus, - rtb_u8Vtg_FX_plus / 1200.0 * 550.0); + printf("BTS5180_2EKA_RearIncarMotor V = %f Iout = %f\n", + rtb_DataTypeConversion7, rtb_DataTypeConversion7 / 1200.0 * 550.0); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_u8Vtg_FX_plus = (double) + rtb_DataTypeConversion7 = (double) rtDW.ADC_Data_Model.BTS5180_2EKA_ReservePowerSupply / 4095.0 * 5.0; - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide2' - * Product: '/Divide3' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide2' + * Product: '/Divide3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('BTS5180_2EKA_ReservePowerSupply V = %f Iout = %f\n',U,I); */ printf("BTS5180_2EKA_ReservePowerSupply V = %f Iout = %f\n", - rtb_u8Vtg_FX_plus, rtb_u8Vtg_FX_plus / 1200.0 * 550.0); + rtb_DataTypeConversion7, rtb_DataTypeConversion7 / 1200.0 * 550.0); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_u8Vtg_FX_plus = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_ShutOFFValveFront - / 4095.0 * 5.0; + rtb_DataTypeConversion7 = (double) + rtDW.ADC_Data_Model.BTS5180_2EKA_ShutOFFValveFront / 4095.0 * 5.0; - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide2' - * Product: '/Divide3' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide2' + * Product: '/Divide3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('BTS5180_2EKA_ShutOFFValveFront V = %f Iout = %f\n',U,I); */ printf("BTS5180_2EKA_ShutOFFValveFront V = %f Iout = %f\n", - rtb_u8Vtg_FX_plus, rtb_u8Vtg_FX_plus / 1200.0 * 550.0); + rtb_DataTypeConversion7, rtb_DataTypeConversion7 / 1200.0 * 550.0); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_u8Vtg_FX_plus = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_ShutOFFValveRear / - 4095.0 * 5.0; + rtb_DataTypeConversion7 = (double) + rtDW.ADC_Data_Model.BTS5180_2EKA_ShutOFFValveRear / 4095.0 * 5.0; - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide2' - * Product: '/Divide3' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide2' + * Product: '/Divide3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('BTS5180_2EKA_ShutOFFValveRear V = %f Iout = %f\n',U,I); */ - printf("BTS5180_2EKA_ShutOFFValveRear V = %f Iout = %f\n", rtb_u8Vtg_FX_plus, - rtb_u8Vtg_FX_plus / 1200.0 * 550.0); + printf("BTS5180_2EKA_ShutOFFValveRear V = %f Iout = %f\n", + rtb_DataTypeConversion7, rtb_DataTypeConversion7 / 1200.0 * 550.0); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_u8Vtg_FX_plus = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_TwoWayValve / - 4095.0 * 5.0; + rtb_DataTypeConversion7 = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_TwoWayValve + / 4095.0 * 5.0; - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide2' - * Product: '/Divide3' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide2' + * Product: '/Divide3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('BTS5180_2EKA_TwoWayValve V = %f Iout = %f\n',U,I); */ - printf("BTS5180_2EKA_TwoWayValve V = %f Iout = %f\n", rtb_u8Vtg_FX_plus, - rtb_u8Vtg_FX_plus / 1200.0 * 550.0); + printf("BTS5180_2EKA_TwoWayValve V = %f Iout = %f\n", + rtb_DataTypeConversion7, rtb_DataTypeConversion7 / 1200.0 * 550.0); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18911,15 +24270,15 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18929,15 +24288,15 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18947,15 +24306,15 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18965,15 +24324,15 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18983,15 +24342,15 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -19001,15 +24360,15 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -19019,15 +24378,15 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -19038,15 +24397,15 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -19057,59 +24416,59 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_u8Vtg_FX_plus = (double) + rtb_DataTypeConversion7 = (double) rtDW.ADC_Data_Model.VN7008AJ_FrontLINActuatorPowerDriverAB / 4095.0 * 5.0; - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide2' - * Product: '/Divide3' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide2' + * Product: '/Divide3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('VN7008AJ_FrontLINActuatorPowerDriverAB V = %f Iout = %f\n',U,I); */ printf("VN7008AJ_FrontLINActuatorPowerDriverAB V = %f Iout = %f\n", - rtb_u8Vtg_FX_plus, rtb_u8Vtg_FX_plus / 2490.0 * 5890.0); + rtb_DataTypeConversion7, rtb_DataTypeConversion7 / 2490.0 * 5890.0); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_u8Vtg_FX_plus = (double) + rtb_DataTypeConversion7 = (double) rtDW.ADC_Data_Model.VN7008AJ_RearLINActuatorPowerDriverC / 4095.0 * 5.0; - /* MATLAB Function: '/Write' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide2' - * Product: '/Divide3' + /* MATLAB Function: '/Write' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide2' + * Product: '/Divide3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('VN7008AJ_RearLINActuatorPowerDriverC V = %f Iout = %f\n',U,I); */ printf("VN7008AJ_RearLINActuatorPowerDriverC V = %f Iout = %f\n", - rtb_u8Vtg_FX_plus, rtb_u8Vtg_FX_plus / 2490.0 * 5890.0); + rtb_DataTypeConversion7, rtb_DataTypeConversion7 / 2490.0 * 5890.0); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ /* MATLAB Function: '/Write' incorporates: * DataStoreRead: '/Data Store Read2' @@ -19280,47 +24639,119 @@ void HVAC_model_step(void) /* DataStoreWrite: '/Data Store Write37' */ rtDW.CCU_DEF_FL = rtB.out_def_i; - /* Logic: '/Logical Operator' incorporates: - * DataStoreRead: '/Data Store Read10' - * DataStoreWrite: '/Data Store Write' - */ - rtDW.eCompChiller_Err = ((rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompComErr_Stat != - 0) || (rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompTempSensErr_Stat != 0) || - (rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompCurrSensErr_Stat != 0) || - (rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompCurrShortCirc_Stat != 0) || - (rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompInPowSupply_Stat != 0) || - (rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompTorqueStallErr_Stat != 0) || - (rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompVoltSensErr_Stat != 0)); - - /* Gain: '/Gain' incorporates: - * DataStoreRead: '/Data Store Read10' - * DataStoreWrite: '/Data Store Write' - */ - rtDW.eComp_InputC = (uint16_t) - (rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompInputC_Val_ro << 7); - - /* Bias: '/Bias' incorporates: - * DataStoreRead: '/Data Store Read10' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - */ - rtDW.eComp_Temp = (int16_t) - (rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompInvTemp_Val_ro - 50); - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' * DataStoreRead: '/Data Store Read11' */ - rtb_Compare_p1p = (rtDW.TM_CP_model.CCPF_RecButton_Stat > 0); + rtb_Compare_hv = (rtDW.TM_CP_model.CCPF_AcMaxButton_Stat > 0); - /* RelationalOperator: '/FixPt Relational Operator' incorporates: - * UnitDelay: '/Delay Input1' + /* RelationalOperator: '/FixPt Relational Operator' incorporates: + * UnitDelay: '/Delay Input1' * - * Block description for '/Delay Input1': + * Block description for '/Delay Input1': * * Store in Global RAM */ - rtb_Compare_bu = ((int32_t)rtb_Compare_p1p > (int32_t)rtDW.DelayInput1_DSTATE); + rtb_Compare_m0e = ((int32_t)rtb_Compare_hv > (int32_t)rtDW.DelayInput1_DSTATE); + + /* Chart: '/AC_Max_Active' incorporates: + * DataStoreWrite: '/Data Store Write10' + */ + if (rtDW.is_active_c782_HVAC_model == 0U) { + rtDW.is_active_c782_HVAC_model = 1U; + rtDW.is_c782_HVAC_model = IN_AC_MAX_OFF; + + /* : AC_Max_Active = 0; */ + CCU_AC_MAX = 0U; + } else if (rtDW.is_c782_HVAC_model == IN_AC_MAX_OFF) { + CCU_AC_MAX = 0U; + + /* : sf_internal_predicateOutput = Btn_Pulse==1; */ + if (rtb_Compare_m0e) { + rtDW.is_c782_HVAC_model = IN_AC_MAX_ON; + + /* : AC_Max_Active = 1; */ + CCU_AC_MAX = 1U; + } + } else { + /* case IN_AC_MAX_ON: */ + CCU_AC_MAX = 1U; + + /* : sf_internal_predicateOutput = Btn_Pulse==1; */ + if (rtb_Compare_m0e) { + rtDW.is_c782_HVAC_model = IN_AC_MAX_OFF; + + /* : AC_Max_Active = 0; */ + CCU_AC_MAX = 0U; + } + } + + /* End of Chart: '/AC_Max_Active' */ + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + */ + rtb_Compare_m0e = (rtDW.TM_CP_model.CCPF_DefButton_Stat > 0); + + /* RelationalOperator: '/FixPt Relational Operator' incorporates: + * UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + rtb_Compare_ba = ((int32_t)rtb_Compare_m0e > (int32_t) + rtDW.DelayInput1_DSTATE_m); + + /* Chart: '/Defrost_Active' incorporates: + * DataStoreWrite: '/Data Store Write11' + */ + if (rtDW.is_active_c837_HVAC_model == 0U) { + rtDW.is_active_c837_HVAC_model = 1U; + rtDW.is_c837_HVAC_model = IN_REC_OFF; + + /* : Defrost_Active = 0; */ + CCU_Defrost = 0U; + } else if (rtDW.is_c837_HVAC_model == IN_REC_OFF) { + CCU_Defrost = 0U; + + /* : sf_internal_predicateOutput = Btn_Pulse==1; */ + if (rtb_Compare_ba) { + rtDW.is_c837_HVAC_model = IN_REC_ON; + + /* : Defrost_Active = 1; */ + CCU_Defrost = 1U; + } + } else { + /* case IN_REC_ON: */ + CCU_Defrost = 1U; + + /* : sf_internal_predicateOutput = Btn_Pulse==1; */ + if (rtb_Compare_ba) { + rtDW.is_c837_HVAC_model = IN_REC_OFF; + + /* : Defrost_Active = 0; */ + CCU_Defrost = 0U; + } + } + + /* End of Chart: '/Defrost_Active' */ + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + */ + rtb_Compare_ba = (rtDW.TM_CP_model.CCPF_RecButton_Stat > 0); + + /* RelationalOperator: '/FixPt Relational Operator' incorporates: + * UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + rtb_Compare_oj = ((int32_t)rtb_Compare_ba > (int32_t)rtDW.DelayInput1_DSTATE_i); /* Chart: '/Full_Rec_Active' incorporates: * DataStoreWrite: '/Data Store Write9' @@ -19335,7 +24766,7 @@ void HVAC_model_step(void) rtDW.Full_Rec = 0U; /* : sf_internal_predicateOutput = Btn_Pulse==1; */ - if (rtb_Compare_bu) { + if (rtb_Compare_oj) { rtDW.is_c836_HVAC_model = IN_REC_ON; /* : Full_Rec_Active = 1; */ @@ -19346,7 +24777,7 @@ void HVAC_model_step(void) rtDW.Full_Rec = 1U; /* : sf_internal_predicateOutput = Btn_Pulse==1; */ - if (rtb_Compare_bu) { + if (rtb_Compare_oj) { rtDW.is_c836_HVAC_model = IN_REC_OFF; /* : Full_Rec_Active = 0; */ @@ -19356,489 +24787,494 @@ void HVAC_model_step(void) /* End of Chart: '/Full_Rec_Active' */ - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Bias: '/Bias' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain1' - * Gain: '/Gain2' + /* DataStoreWrite: '/Data Store Write' */ + rtDW.eCompChiller_Err = 0.0; + + /* Gain: '/Gain' incorporates: + * DataStoreRead: '/Data Store Read10' + * DataStoreWrite: '/Data Store Write' */ - rtb_Bias5 = (int16_t)floor((0.01 * (double) + rtDW.eComp_InputC = (uint16_t) + (rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompInputC_Val_ro << 7); + + /* Bias: '/Bias' incorporates: + * DataStoreRead: '/Data Store Read10' + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion' + */ + rtDW.eComp_Temp = (int16_t) + (rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompInvTemp_Val_ro - 50); + + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Bias: '/Bias' + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain1' + * Gain: '/Gain2' + */ + rtDW.AMB = (int16_t)floor((0.01 * (double) rtDW.CCUCAN_BCM_Powertrain_model.BCM_AmbTempRaw_ro - 40.0) * 10.0); - /* Outputs for Atomic SubSystem: '/Фильтрация температуры' */ - /* Lookup_n-D: '/Get LVL for temp' incorporates: - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion1' + /* If: '/If' incorporates: + * RelationalOperator: '/Relational Operator1' + * UnitDelay: '/Unit Delay' */ - rtb_FLU_tg_correct_g = rtConstP.pooled52[plook_u32s16_bincka(rtb_Bias5, - rtConstP.GetLVLfortemp_bp01Data, 5U)]; - - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - */ - if (rtDW.KEEP_RISING_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' + if (rtDW.UnitDelay_DSTATE_cu == -9999) { + /* Outputs for IfAction SubSystem: '/Инициализация температуры' incorporates: + * ActionPort: '/Action Port' */ - u_hd(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_j, &rtDW.AMB_store, - &rtDW.KEEP_RISING_UNTIL_LIMIT); + /* Switch: '/Switch1' incorporates: + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion' + */ + rtDW.AMB_store = rtDW.AMB; - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ + /* End of Outputs for SubSystem: '/Инициализация температуры' */ } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Фильтрация температуры' incorporates: + * ActionPort: '/Action Port' */ - u_a5(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_j, &rtDW.AMB_store, - &rtDW.KEEP_RISING_UNTIL_LIMIT); - - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* End of If: '/If1' */ - - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - */ - if (rtDW.KEEP_FALLING_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' + /* Lookup_n-D: '/Get LVL for temp' incorporates: + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion1' */ - u_de(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_hu, &rtDW.AMB_store, - &rtDW.KEEP_FALLING_UNTIL_LIMIT); + rtb_FLU_tg_correct_l = rtConstP.pooled46[plook_u32s16_bincka(rtDW.AMB, + rtConstP.GetLVLfortemp_bp01Data, 5U)]; - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' - */ - u_co(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_hu, &rtDW.AMB_store, - &rtDW.KEEP_FALLING_UNTIL_LIMIT); - - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* End of If: '/If1' */ - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read15' - * UnitDelay: '/Unit Delay' - */ - rtb_Subtract = rtDW.t_now - rtDW.UnitDelay_DSTATE; - - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read12' - * DataStoreRead: '/Data Store Read' - */ - /* : f_g_ssAMBFILT_WATER = g_ssAMBFILT_WATER; */ - if ((rtDW.VehicleSpeed > 45) && (rtDW.KEEP_UNTIL_SPEED_DROPS > 0)) { - /* Outputs for IfAction SubSystem: '/Быстро из-за флага' incorporates: - * ActionPort: '/Action Port' - */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' */ if (rtDW.KEEP_RISING_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' */ - u_hd(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_g, &rtDW.AMB_store, - &rtDW.KEEP_RISING_UNTIL_LIMIT); + u_p(rtDW.AMB, rtb_FLU_tg_correct_l, &rtb_Merge_gk, &rtDW.AMB_store, + &rtDW.KEEP_RISING_UNTIL_LIMIT); - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' */ - u_a5(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_g, &rtDW.AMB_store, + u_g2(rtDW.AMB, rtb_FLU_tg_correct_l, &rtb_Merge_gk, &rtDW.AMB_store, &rtDW.KEEP_RISING_UNTIL_LIMIT); - /* End of Outputs for SubSystem: '/обычный режим' */ + /* End of Outputs for SubSystem: '/обычный режим' */ } - /* End of If: '/If1' */ + /* End of If: '/If1' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' */ if (rtDW.KEEP_FALLING_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' */ - u_de(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_m2, &rtDW.AMB_store, + u_kb(rtDW.AMB, rtb_FLU_tg_correct_l, &rtb_Merge_gw, &rtDW.AMB_store, &rtDW.KEEP_FALLING_UNTIL_LIMIT); - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' */ - u_co(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_m2, &rtDW.AMB_store, + u_my(rtDW.AMB, rtb_FLU_tg_correct_l, &rtb_Merge_gw, &rtDW.AMB_store, &rtDW.KEEP_FALLING_UNTIL_LIMIT); - /* End of Outputs for SubSystem: '/обычный режим' */ + /* End of Outputs for SubSystem: '/обычный режим' */ } - /* End of If: '/If1' */ + /* End of If: '/If1' */ - /* Switch: '/Switch1' incorporates: - * Abs: '/Abs' - * Constant: '/epsilon' - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write' - * RelationalOperator: '/AMBraw > AMB' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' + /* Sum: '/Subtract' incorporates: + * DataStoreRead: '/Data Store Read15' + * UnitDelay: '/Unit Delay' */ - if (fabs((double)rtb_Bias5 - rtDW.AMB_store) <= 0.01) { - /* SignalConversion generated from: '/AMB_new' */ - rtb_u8Vtg_FX_plus = rtDW.AMB_store; - } else { - if (rtb_Bias5 > rtDW.AMB_store) { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' + rtb_Subtract = rtDW.t_now - rtDW.UnitDelay_DSTATE; + + /* If: '/If' incorporates: + * DataStoreRead: '/Data Store Read12' + * DataStoreRead: '/Data Store Read' + */ + /* : f_g_ssAMBFILT_WATER = g_ssAMBFILT_WATER; */ + if ((rtDW.VehicleSpeed > 45) && (rtDW.KEEP_UNTIL_SPEED_DROPS > 0)) { + /* Outputs for IfAction SubSystem: '/Быстро из-за флага' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + */ + if (rtDW.KEEP_RISING_UNTIL_LIMIT > 0.0) { + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' */ - rtb_FLU_tg_correct_g = rtb_Merge_g; + u_p(rtDW.AMB, rtb_FLU_tg_correct_l, &rtb_Merge_aj, &rtDW.AMB_store, + &rtDW.KEEP_RISING_UNTIL_LIMIT); + + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ } else { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * UnaryMinus: '/Unary Minus' + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' */ - rtb_FLU_tg_correct_g = (int16_t)-rtb_Merge_m2; + u_g2(rtDW.AMB, rtb_FLU_tg_correct_l, &rtb_Merge_aj, &rtDW.AMB_store, + &rtDW.KEEP_RISING_UNTIL_LIMIT); + + /* End of Outputs for SubSystem: '/обычный режим' */ } - /* SignalConversion generated from: '/AMB_new' incorporates: - * Constant: '/Constant' - * Product: '/Divide' - * Product: '/Product' - * Sum: '/Add' - * Switch: '/Switch' + /* End of If: '/If1' */ + + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' */ - rtb_u8Vtg_FX_plus = (double)rtb_Subtract / 60000.0 * (double) - rtb_FLU_tg_correct_g + rtDW.AMB_store; - } - - /* End of Switch: '/Switch1' */ - /* End of Outputs for SubSystem: '/Быстро из-за флага' */ - } else if (rtDW.VehicleSpeed > 50) { - /* Outputs for IfAction SubSystem: '/Быстро из-за скорости' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.KEEP_UNTIL_SPEED_DROPS = 1U; - - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - */ - if (rtDW.KEEP_RISING_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - u_hd(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_g, &rtDW.AMB_store, - &rtDW.KEEP_RISING_UNTIL_LIMIT); - - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' - */ - u_a5(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_g, &rtDW.AMB_store, - &rtDW.KEEP_RISING_UNTIL_LIMIT); - - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* End of If: '/If1' */ - - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - */ - if (rtDW.KEEP_FALLING_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - u_de(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_m2, &rtDW.AMB_store, - &rtDW.KEEP_FALLING_UNTIL_LIMIT); - - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' - */ - u_co(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_m2, &rtDW.AMB_store, - &rtDW.KEEP_FALLING_UNTIL_LIMIT); - - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* End of If: '/If1' */ - - /* Switch: '/Switch1' incorporates: - * Abs: '/Abs' - * Constant: '/epsilon' - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write' - * RelationalOperator: '/AMBraw > AMB' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' - */ - if (fabs((double)rtb_Bias5 - rtDW.AMB_store) <= 0.01) { - /* SignalConversion generated from: '/AMB_new' */ - rtb_u8Vtg_FX_plus = rtDW.AMB_store; - } else { - if (rtb_Bias5 > rtDW.AMB_store) { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' + if (rtDW.KEEP_FALLING_UNTIL_LIMIT > 0.0) { + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' */ - rtb_FLU_tg_correct_g = rtb_Merge_g; + u_kb(rtDW.AMB, rtb_FLU_tg_correct_l, &rtb_Merge_p3, &rtDW.AMB_store, + &rtDW.KEEP_FALLING_UNTIL_LIMIT); + + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ } else { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * UnaryMinus: '/Unary Minus' + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' */ - rtb_FLU_tg_correct_g = (int16_t)-rtb_Merge_m2; + u_my(rtDW.AMB, rtb_FLU_tg_correct_l, &rtb_Merge_p3, &rtDW.AMB_store, + &rtDW.KEEP_FALLING_UNTIL_LIMIT); + + /* End of Outputs for SubSystem: '/обычный режим' */ } - /* SignalConversion generated from: '/AMB_new' incorporates: - * Constant: '/Constant' - * Product: '/Divide' - * Product: '/Product' - * Sum: '/Add' - * Switch: '/Switch' + /* End of If: '/If1' */ + + /* Switch: '/Switch1' incorporates: + * Abs: '/Abs' + * Constant: '/epsilon' + * DataStoreRead: '/Read Amb' + * DataStoreWrite: '/Data Store Write' + * RelationalOperator: '/AMBraw > AMB' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Switch: '/Switch' */ - rtb_u8Vtg_FX_plus = (double)rtb_Subtract / 60000.0 * (double) - rtb_FLU_tg_correct_g + rtDW.AMB_store; - } - - /* End of Switch: '/Switch1' */ - /* End of Outputs for SubSystem: '/Быстро из-за скорости' */ - } else { - /* Outputs for IfAction SubSystem: '/Медленно' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant1' - */ - rtDW.KEEP_UNTIL_SPEED_DROPS = 0U; - - /* MATLAB Function: '/границы' */ - /* : rate_at_10 = 0.5; */ - /* : rate_at_50 = double(g_aucAMBRATE_RISING(lvl + 1)) ; */ - /* : f_lower_upper_bounds = [rate_at_10, rate_at_50]; */ - rtb_f_lower_upper_bounds[0] = 0.5; - i = rtb_FLU_tg_correct_g + 1; - if (rtb_FLU_tg_correct_g + 1 > 32767) { - i = 32767; - } - - rtb_f_lower_upper_bounds[1] = g_aucAMBRATE_RISING[i - 1]; - - /* MATLAB Function: '/обычное понижение темп.' */ - /* : fprintf("lvl = %d\n", lvl); */ - printf("lvl = %d\n", rtb_FLU_tg_correct_g); - fflush(stdout); - - /* Switch: '/Switch1' incorporates: - * Abs: '/Abs' - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write' - * Product: '/Divide' - * Product: '/Product' - * RelationalOperator: '/AMBraw > AMB' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Switch: '/Switch' - */ - /* : f_g_aucAMBRATE_FALLING = g_aucAMBRATE_FALLING(lvl + 1); */ - if (fabs((double)rtb_Bias5 - rtDW.AMB_store) <= 0.01) { - rtb_u8Vtg_FX_plus = rtb_Bias5; - } else { - if (rtb_Bias5 > rtDW.AMB_store) { - /* Switch: '/Скорость >10' incorporates: - * Constant: '/Constant' - * Switch: '/Switch' - */ - if (rtDW.VehicleSpeed > 10) { - /* Lookup_n-D: '/1-D Lookup Table1' incorporates: - * DataStoreRead: '/Data Store Read12' + if (fabs((double)rtDW.AMB - rtDW.AMB_store) <= 0.01) { + /* SignalConversion generated from: '/AMB_new' */ + rtb_DataTypeConversion7 = rtDW.AMB_store; + } else { + if (rtDW.AMB > rtDW.AMB_store) { + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtb_u8Vtg_FX_plus = look1_iu16td_binlc(rtDW.VehicleSpeed, - rtConstP.uDLookupTable1_bp01Data, rtb_f_lower_upper_bounds, 1U); + rtb_FLU_tg_correct_l = rtb_Merge_aj; } else { - rtb_u8Vtg_FX_plus = 0.5; + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * UnaryMinus: '/Unary Minus' + */ + rtb_FLU_tg_correct_l = (int16_t)-rtb_Merge_p3; } - /* End of Switch: '/Скорость >10' */ - } else { - /* MATLAB Function: '/обычное понижение темп.' incorporates: - * MATLAB Function: '/границы' + /* SignalConversion generated from: '/AMB_new' incorporates: + * Constant: '/Constant' + * Product: '/Divide' + * Product: '/Product' + * Sum: '/Add' + * Switch: '/Switch' */ - i = rtb_FLU_tg_correct_g + 1; - if (rtb_FLU_tg_correct_g + 1 > 32767) { - i = 32767; + rtb_DataTypeConversion7 = (double)rtb_Subtract / 60000.0 * (double) + rtb_FLU_tg_correct_l + rtDW.AMB_store; + } + + /* End of Switch: '/Switch1' */ + /* End of Outputs for SubSystem: '/Быстро из-за флага' */ + } else if (rtDW.VehicleSpeed > 50) { + /* Outputs for IfAction SubSystem: '/Быстро из-за скорости' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtDW.KEEP_UNTIL_SPEED_DROPS = 1U; + + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + */ + if (rtDW.KEEP_RISING_UNTIL_LIMIT > 0.0) { + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + u_p(rtDW.AMB, rtb_FLU_tg_correct_l, &rtb_Merge_aj, &rtDW.AMB_store, + &rtDW.KEEP_RISING_UNTIL_LIMIT); + + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' + */ + u_g2(rtDW.AMB, rtb_FLU_tg_correct_l, &rtb_Merge_aj, &rtDW.AMB_store, + &rtDW.KEEP_RISING_UNTIL_LIMIT); + + /* End of Outputs for SubSystem: '/обычный режим' */ + } + + /* End of If: '/If1' */ + + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + */ + if (rtDW.KEEP_FALLING_UNTIL_LIMIT > 0.0) { + /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: + * ActionPort: '/Action Port' + */ + u_kb(rtDW.AMB, rtb_FLU_tg_correct_l, &rtb_Merge_p3, &rtDW.AMB_store, + &rtDW.KEEP_FALLING_UNTIL_LIMIT); + + /* End of Outputs for SubSystem: '/включен ускоренный режим' */ + } else { + /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: + * ActionPort: '/Action Port' + */ + u_my(rtDW.AMB, rtb_FLU_tg_correct_l, &rtb_Merge_p3, &rtDW.AMB_store, + &rtDW.KEEP_FALLING_UNTIL_LIMIT); + + /* End of Outputs for SubSystem: '/обычный режим' */ + } + + /* End of If: '/If1' */ + + /* Switch: '/Switch1' incorporates: + * Abs: '/Abs' + * Constant: '/epsilon' + * DataStoreRead: '/Read Amb' + * DataStoreWrite: '/Data Store Write' + * RelationalOperator: '/AMBraw > AMB' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Switch: '/Switch' + */ + if (fabs((double)rtDW.AMB - rtDW.AMB_store) <= 0.01) { + /* SignalConversion generated from: '/AMB_new' */ + rtb_DataTypeConversion7 = rtDW.AMB_store; + } else { + if (rtDW.AMB > rtDW.AMB_store) { + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + */ + rtb_FLU_tg_correct_l = rtb_Merge_aj; + } else { + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * UnaryMinus: '/Unary Minus' + */ + rtb_FLU_tg_correct_l = (int16_t)-rtb_Merge_p3; } - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * MATLAB Function: '/обычное понижение темп.' - * UnaryMinus: '/Unary Minus' + /* SignalConversion generated from: '/AMB_new' incorporates: + * Constant: '/Constant' + * Product: '/Divide' + * Product: '/Product' + * Sum: '/Add' + * Switch: '/Switch' */ - rtb_u8Vtg_FX_plus = -(double)g_aucAMBRATE_FALLING[i - 1]; + rtb_DataTypeConversion7 = (double)rtb_Subtract / 60000.0 * (double) + rtb_FLU_tg_correct_l + rtDW.AMB_store; } - rtb_u8Vtg_FX_plus = (double)rtb_Subtract / 60000.0 * rtb_u8Vtg_FX_plus + - rtDW.AMB_store; - } - - /* End of Switch: '/Switch1' */ - /* End of Outputs for SubSystem: '/Медленно' */ - } - - /* End of If: '/If' */ - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read11' - * DataStoreRead: '/Data Store Read12' - * MATLAB Function: '/Coolant temp threshold' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (rtDW.ECT <= g_ssAMBFILT_WATER) { - /* Switch: '/Switch1' incorporates: - * Abs: '/Abs' - * Constant: '/epsilon' - * DataStoreRead: '/Read Amb' - * DataStoreWrite: '/Data Store Write' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - */ - if (fabs((double)rtb_Bias5 - rtDW.AMB_store) > 0.01) { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' - * RelationalOperator: '/AMBraw > AMB' - * UnaryMinus: '/Unary Minus' + /* End of Switch: '/Switch1' */ + /* End of Outputs for SubSystem: '/Быстро из-за скорости' */ + } else { + /* Outputs for IfAction SubSystem: '/Медленно' incorporates: + * ActionPort: '/Action Port' */ - if (rtb_Bias5 > rtDW.AMB_store) { - rtb_FLU_tg_correct_g = rtb_Merge_j; + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant1' + */ + rtDW.KEEP_UNTIL_SPEED_DROPS = 0U; + + /* MATLAB Function: '/границы' */ + /* : rate_at_10 = 0.5; */ + /* : rate_at_50 = double(g_aucAMBRATE_RISING(lvl + 1)) ; */ + /* : f_lower_upper_bounds = [rate_at_10, rate_at_50]; */ + rtb_f_lower_upper_bounds[0] = 0.5; + i = rtb_FLU_tg_correct_l + 1; + if (rtb_FLU_tg_correct_l + 1 > 32767) { + i = 32767; + } + + rtb_f_lower_upper_bounds[1] = g_aucAMBRATE_RISING[i - 1]; + + /* MATLAB Function: '/обычное понижение темп.' */ + /* : fprintf("lvl = %d\n", lvl); */ + printf("lvl = %d\n", rtb_FLU_tg_correct_l); + fflush(stdout); + + /* Switch: '/Switch1' incorporates: + * Abs: '/Abs' + * Constant: '/Constant' + * Constant: '/epsilon' + * DataStoreRead: '/Read Amb' + * DataStoreWrite: '/Data Store Write' + * Product: '/Divide' + * Product: '/Product' + * RelationalOperator: '/AMBraw > AMB' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Sum: '/Add' + * Switch: '/Switch' + */ + /* : f_g_aucAMBRATE_FALLING = g_aucAMBRATE_FALLING(lvl + 1); */ + if (fabs((double)rtDW.AMB - rtDW.AMB_store) <= 0.01) { + rtb_DataTypeConversion7 = rtDW.AMB; } else { - rtb_FLU_tg_correct_g = (int16_t)-rtb_Merge_hu; + if (rtDW.AMB > rtDW.AMB_store) { + /* Switch: '/Скорость >10' incorporates: + * Constant: '/Constant' + * Switch: '/Switch' + */ + if (rtDW.VehicleSpeed > 10) { + /* Lookup_n-D: '/1-D Lookup Table1' incorporates: + * DataStoreRead: '/Data Store Read12' + */ + rtb_DataTypeConversion7 = look1_iu16td_binlc(rtDW.VehicleSpeed, + rtConstP.uDLookupTable1_bp01Data, rtb_f_lower_upper_bounds, 1U); + } else { + rtb_DataTypeConversion7 = 0.5; + } + + /* End of Switch: '/Скорость >10' */ + } else { + /* MATLAB Function: '/обычное понижение темп.' incorporates: + * MATLAB Function: '/границы' + */ + i = rtb_FLU_tg_correct_l + 1; + if (rtb_FLU_tg_correct_l + 1 > 32767) { + i = 32767; + } + + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * MATLAB Function: '/обычное понижение темп.' + * UnaryMinus: '/Unary Minus' + */ + rtb_DataTypeConversion7 = -(double)g_aucAMBRATE_FALLING[i - 1]; + } + + rtb_DataTypeConversion7 = (double)rtb_Subtract / 60000.0 * + rtb_DataTypeConversion7 + rtDW.AMB_store; } - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant' - * Product: '/Divide' - * Product: '/Product' - * Sum: '/Add' - * Switch: '/Switch' - */ - rtDW.AMB_store += (double)rtb_Subtract / 60000.0 * (double) - rtb_FLU_tg_correct_g; + /* End of Switch: '/Switch1' */ + /* End of Outputs for SubSystem: '/Медленно' */ } - /* End of Switch: '/Switch1' */ - } else if (rtDW.VehicleSpeed != 0) { - /* Switch: '/Switch1' incorporates: - * DataStoreWrite: '/Write new AMB' - * Switch: '/Switch' + /* End of If: '/If' */ + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read11' + * DataStoreRead: '/Data Store Read12' + * MATLAB Function: '/Coolant temp threshold' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch' */ - rtDW.AMB_store = rtb_u8Vtg_FX_plus; + if (rtDW.ECT <= g_ssAMBFILT_WATER) { + /* Switch: '/Switch1' incorporates: + * Abs: '/Abs' + * Constant: '/epsilon' + * DataStoreRead: '/Read Amb' + * DataStoreWrite: '/Data Store Write' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + */ + if (fabs((double)rtDW.AMB - rtDW.AMB_store) > 0.01) { + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * RelationalOperator: '/AMBraw > AMB' + * UnaryMinus: '/Unary Minus' + */ + if (rtDW.AMB > rtDW.AMB_store) { + rtb_FLU_tg_correct_l = rtb_Merge_gk; + } else { + rtb_FLU_tg_correct_l = (int16_t)-rtb_Merge_gw; + } + + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' + * Product: '/Divide' + * Product: '/Product' + * Sum: '/Add' + * Switch: '/Switch' + */ + rtDW.AMB_store += (double)rtb_Subtract / 60000.0 * (double) + rtb_FLU_tg_correct_l; + } + + /* End of Switch: '/Switch1' */ + } else if (rtDW.VehicleSpeed != 0) { + /* Switch: '/Switch1' incorporates: + * DataStoreWrite: '/Write new AMB' + * Switch: '/Switch' + */ + rtDW.AMB_store = rtb_DataTypeConversion7; + } + + /* End of Switch: '/Switch' */ + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/Data Store Read15' + */ + rtDW.UnitDelay_DSTATE = rtDW.t_now; + + /* End of Outputs for SubSystem: '/Фильтрация температуры' */ } - /* End of Switch: '/Switch' */ + /* End of If: '/If' */ - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/Data Store Read15' - */ - rtDW.UnitDelay_DSTATE = rtDW.t_now; - - /* End of Outputs for SubSystem: '/Фильтрация температуры' */ - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * DataStoreWrite: '/Data Store Write1' - * DataStoreWrite: '/Write new AMB' - * DataTypeConversion: '/Data Type Conversion' - */ - if (rtDW.BCM_T15_Stat > 0) { - rtDW.AMB = (int16_t)floor(rtDW.AMB_store); - } else { - rtDW.AMB = rtb_Bias5; - } - - /* End of Switch: '/Switch' */ - - /* If: '/If' incorporates: - * RelationalOperator: '/Relational Operator1' - * UnitDelay: '/Unit Delay' - */ - if (rtDW.UnitDelay_DSTATE_d5 == -9999) { - /* Outputs for IfAction SubSystem: '/Инициализация температуры' incorporates: - * ActionPort: '/Action Port' - */ - /* Switch: '/Switch1' incorporates: - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - */ - rtDW.AMB_store = rtb_Bias5; - - /* End of Outputs for SubSystem: '/Инициализация температуры' */ - } - - /* End of If: '/If' */ - - /* Gain: '/Gain' incorporates: + /* Gain: '/Gain' incorporates: * DataStoreRead: '/Data Store Read4' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion' */ rtDW.Sun_R = 4.01575 * (double) rtDW.CCUCAN_BCM_Climatic_model.SolarSensRightVal_ro; - /* Gain: '/Gain' incorporates: + /* Gain: '/Gain' incorporates: * DataStoreRead: '/Data Store Read4' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion' */ rtDW.Sun_L = 4.01575 * (double) rtDW.CCUCAN_BCM_Climatic_model.SolarSensLeftVal_ro; - /* Bias: '/Bias' incorporates: + /* Bias: '/Bias' incorporates: * DataStoreRead: '/Data Store Read5' - * DataStoreWrite: '/Data Store Write1' - * DataTypeConversion: '/Data Type Conversion1' + * DataStoreWrite: '/Data Store Write1' + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.ECT = (int16_t)(rtDW.CCUCAN_EMS_Veh_model.EMS_EngCoolTemp_Val_ro - 40); - /* Gain: '/Gain' incorporates: + /* Gain: '/Gain' incorporates: * DataStoreRead: '/Data Store Read5' - * DataStoreWrite: '/Data Store Write1' - * DataTypeConversion: '/Data Type Conversion1' + * DataStoreWrite: '/Data Store Write1' + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.Engine_speed = 0.25 * (double) rtDW.CCUCAN_EMS_Veh_model.EMS_nICEngineSpeed3_Val_ro; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: + /* DataTypeConversion: '/Data Type Conversion1' incorporates: * DataStoreRead: '/Data Store Read6' - * DataStoreWrite: '/Data Store Write2' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' + * DataStoreWrite: '/Data Store Write2' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' */ rtDW.VehicleSpeed = (uint16_t)(0.01 * (double) rtDW.CCUCAN_ESC_04_model.ESC_VehicleSpeed_ro); @@ -19858,13 +25294,827 @@ void HVAC_model_step(void) */ rtDW.SeatOccupied = rtDW.CCUCAN_OCURL_MSG_model.OCURL_SeatOccupied_Stat; + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + */ + rtb_Compare_oj = (rtDW.TM_CP_model.CCPF_AutoButtonL_Stat > 0); + + /* If: '/If' incorporates: + * RelationalOperator: '/FixPt Relational Operator' + * UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + if ((int32_t)rtb_Compare_oj > (int32_t)rtDW.DelayInput1_DSTATE_n) { + /* Outputs for IfAction SubSystem: '/if action' incorporates: + * ActionPort: '/Action Port' + */ + /* Outputs for IfAction SubSystem: '/sync front action1' incorporates: + * ActionPort: '/Action Port' + */ + /* Outputs for IfAction SubSystem: '/sync front action3' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If2' incorporates: + * DataStoreRead: '/Data Store Read12' + * DataStoreWrite: '/Data Store Write13' + * DataStoreWrite: '/Data Store Write13' + */ + rtDW.CCU_MODE_FL = (uint8_t)(rtDW.CCU_MODE_FL == 0); + + /* End of Outputs for SubSystem: '/sync front action3' */ + /* End of Outputs for SubSystem: '/sync front action1' */ + /* End of Outputs for SubSystem: '/if action' */ + } + + /* End of If: '/If' */ + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + */ + rtb_Compare_dn = (rtDW.TM_CP_model.CCPF_AutoButtonR_Stat > 0); + + /* If: '/If1' incorporates: + * RelationalOperator: '/FixPt Relational Operator' + * UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + if ((int32_t)rtb_Compare_dn > (int32_t)rtDW.DelayInput1_DSTATE_my) { + /* Outputs for IfAction SubSystem: '/if action1' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/true' + */ + rtDW.changed_FR_params = 1U; + + /* Outputs for IfAction SubSystem: '/sync front action1' incorporates: + * ActionPort: '/Action Port' + */ + /* Outputs for IfAction SubSystem: '/sync front action3' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If2' incorporates: + * DataStoreRead: '/Data Store Read12' + * DataStoreWrite: '/Data Store Write13' + * DataStoreWrite: '/Data Store Write13' + */ + rtDW.CCU_MODE_FR = (uint8_t)(rtDW.CCU_MODE_FR == 0); + + /* End of Outputs for SubSystem: '/sync front action3' */ + /* End of Outputs for SubSystem: '/sync front action1' */ + /* End of Outputs for SubSystem: '/if action1' */ + } + + /* End of If: '/If1' */ + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + */ + rtb_Compare_hj = (rtDW.TM_CP_model.CCPR_AutoButtonL_Stat > 0); + + /* If: '/If2' incorporates: + * RelationalOperator: '/FixPt Relational Operator' + * UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + if ((int32_t)rtb_Compare_hj > (int32_t)rtDW.DelayInput1_DSTATE_a) { + /* Outputs for IfAction SubSystem: '/if action2' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' + */ + rtDW.changed_RL_params = 1U; + + /* Outputs for IfAction SubSystem: '/sync front action1' incorporates: + * ActionPort: '/Action Port' + */ + /* Outputs for IfAction SubSystem: '/sync front action3' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If2' incorporates: + * DataStoreRead: '/Data Store Read12' + * DataStoreWrite: '/Data Store Write13' + * DataStoreWrite: '/Data Store Write13' + */ + rtDW.CCU_MODE_RL = (uint8_t)(rtDW.CCU_MODE_RL == 0); + + /* End of Outputs for SubSystem: '/sync front action3' */ + /* End of Outputs for SubSystem: '/sync front action1' */ + /* End of Outputs for SubSystem: '/if action2' */ + } + + /* End of If: '/If2' */ + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + */ + rtb_Compare_kf = (rtDW.TM_CP_model.CCPR_AutoButtonR_Stat > 0); + + /* If: '/If4' incorporates: + * RelationalOperator: '/FixPt Relational Operator' + * UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + if ((int32_t)rtb_Compare_kf > (int32_t)rtDW.DelayInput1_DSTATE_o) { + /* Outputs for IfAction SubSystem: '/if action4' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' + */ + rtDW.changed_RR_params = 1U; + + /* Outputs for IfAction SubSystem: '/sync front action1' incorporates: + * ActionPort: '/Action Port' + */ + /* Outputs for IfAction SubSystem: '/sync front action3' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If2' incorporates: + * DataStoreRead: '/Data Store Read12' + * DataStoreWrite: '/Data Store Write13' + * DataStoreWrite: '/Data Store Write13' + */ + rtDW.CCU_MODE_RR = (uint8_t)(rtDW.CCU_MODE_RR == 0); + + /* End of Outputs for SubSystem: '/sync front action3' */ + /* End of Outputs for SubSystem: '/sync front action1' */ + /* End of Outputs for SubSystem: '/if action4' */ + } + + /* End of If: '/If4' */ + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + */ + rtb_Compare_pt = (rtDW.TM_CP_model.CCPF_TempToggleL_Stat > 0); + + /* If: '/If1' incorporates: + * RelationalOperator: '/FixPt Relational Operator' + * UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + if ((int32_t)rtb_Compare_pt > (int32_t)rtDW.DelayInput1_DSTATE_od) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If5' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + * DataStoreRead: '/Data Store Read12' + * Saturate: '/Saturation1' + * Sum: '/Sum' + */ + if ((rtDW.TM_CP_model.CCPF_TempToggleL_Stat == 1) || + (rtDW.TM_CP_model.CCPF_TempToggleL_Stat == 3)) { + /* Outputs for IfAction SubSystem: '/temp up' incorporates: + * ActionPort: '/Action Port' + */ + /* Saturate: '/Saturation1' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * Sum: '/Add' + */ + if ((uint16_t)(rtDW.CCU_SET_FL + 5U) > 305) { + /* DataTypeConversion: '/Data Type Conversion1' */ + rtDW.CCU_SET_FL = 305U; + } else if ((uint16_t)(rtDW.CCU_SET_FL + 5U) < 155) { + /* DataTypeConversion: '/Data Type Conversion1' */ + rtDW.CCU_SET_FL = 155U; + } else { + /* DataTypeConversion: '/Data Type Conversion1' */ + rtDW.CCU_SET_FL = (uint16_t)(rtDW.CCU_SET_FL + 5U); + } + + /* End of Saturate: '/Saturation1' */ + + /* If: '/If' incorporates: + * DataStoreWrite: '/Data Store Write13' + */ + if (rtDW.CCU_SET_FL < 160) { + /* Outputs for IfAction SubSystem: '/LO mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/LOW' + */ + rtDW.LO_HI_MODE_FL = 1U; + + /* End of Outputs for SubSystem: '/LO mode' */ + } else if (rtDW.CCU_SET_FL > 290) { + /* Outputs for IfAction SubSystem: '/HI mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/HI' + */ + rtDW.LO_HI_MODE_FL = 2U; + + /* End of Outputs for SubSystem: '/HI mode' */ + } else { + /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/not LO or HI' + */ + rtDW.LO_HI_MODE_FL = 0U; + + /* End of Outputs for SubSystem: '/not LO or HI' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/temp up' */ + } else { + /* Outputs for IfAction SubSystem: '/temp down' incorporates: + * ActionPort: '/Action Port' + */ + if ((uint16_t)(rtDW.CCU_SET_FL - 5) > 305) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Saturate: '/Saturation1' + */ + rtDW.CCU_SET_FL = 305U; + } else if ((uint16_t)(rtDW.CCU_SET_FL - 5) < 155) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Saturate: '/Saturation1' + */ + rtDW.CCU_SET_FL = 155U; + } else { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * Saturate: '/Saturation1' + * Sum: '/Sum' + */ + rtDW.CCU_SET_FL = (uint16_t)(rtDW.CCU_SET_FL - 5); + } + + /* If: '/If' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * DataStoreWrite: '/Data Store Write13' + * Saturate: '/Saturation1' + * Sum: '/Sum' + */ + if (rtDW.CCU_SET_FL < 160) { + /* Outputs for IfAction SubSystem: '/LO mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/LOW' + */ + rtDW.LO_HI_MODE_FL = 1U; + + /* End of Outputs for SubSystem: '/LO mode' */ + } else if (rtDW.CCU_SET_FL > 290) { + /* Outputs for IfAction SubSystem: '/HI mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/HI' + */ + rtDW.LO_HI_MODE_FL = 2U; + + /* End of Outputs for SubSystem: '/HI mode' */ + } else { + /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/not LO or HI' + */ + rtDW.LO_HI_MODE_FL = 0U; + + /* End of Outputs for SubSystem: '/not LO or HI' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/temp down' */ + } + + /* End of If: '/If5' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } + + /* End of If: '/If1' */ + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + */ + rtb_Compare_h2 = (rtDW.TM_CP_model.CCPF_TempToggleR_Stat > 0); + + /* If: '/If1' incorporates: + * RelationalOperator: '/FixPt Relational Operator' + * UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + if ((int32_t)rtb_Compare_h2 > (int32_t)rtDW.DelayInput1_DSTATE_j) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/true' + */ + rtDW.changed_FR_params = 1U; + + /* If: '/If5' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + * DataStoreRead: '/Data Store Read12' + * Saturate: '/Saturation1' + * Sum: '/Sum' + */ + if ((rtDW.TM_CP_model.CCPF_TempToggleR_Stat == 1) || + (rtDW.TM_CP_model.CCPF_TempToggleR_Stat == 3)) { + /* Outputs for IfAction SubSystem: '/temp up' incorporates: + * ActionPort: '/Action Port' + */ + /* Saturate: '/Saturation1' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * Sum: '/Add' + */ + if ((uint16_t)(rtDW.CCU_SET_FR + 5U) > 305) { + /* DataTypeConversion: '/Data Type Conversion1' */ + rtDW.CCU_SET_FR = 305U; + } else if ((uint16_t)(rtDW.CCU_SET_FR + 5U) < 155) { + /* DataTypeConversion: '/Data Type Conversion1' */ + rtDW.CCU_SET_FR = 155U; + } else { + /* DataTypeConversion: '/Data Type Conversion1' */ + rtDW.CCU_SET_FR = (uint16_t)(rtDW.CCU_SET_FR + 5U); + } + + /* End of Saturate: '/Saturation1' */ + + /* If: '/If' incorporates: + * DataStoreWrite: '/Data Store Write13' + */ + if (rtDW.CCU_SET_FR < 160) { + /* Outputs for IfAction SubSystem: '/LO mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/LOW' + */ + rtDW.LO_HI_MODE_FR = 1U; + + /* End of Outputs for SubSystem: '/LO mode' */ + } else if (rtDW.CCU_SET_FR > 290) { + /* Outputs for IfAction SubSystem: '/HI mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/HI' + */ + rtDW.LO_HI_MODE_FR = 2U; + + /* End of Outputs for SubSystem: '/HI mode' */ + } else { + /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/not LO or HI' + */ + rtDW.LO_HI_MODE_FR = 0U; + + /* End of Outputs for SubSystem: '/not LO or HI' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/temp up' */ + } else { + /* Outputs for IfAction SubSystem: '/temp down' incorporates: + * ActionPort: '/Action Port' + */ + if ((uint16_t)(rtDW.CCU_SET_FR - 5) > 305) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Saturate: '/Saturation1' + */ + rtDW.CCU_SET_FR = 305U; + } else if ((uint16_t)(rtDW.CCU_SET_FR - 5) < 155) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Saturate: '/Saturation1' + */ + rtDW.CCU_SET_FR = 155U; + } else { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * Saturate: '/Saturation1' + * Sum: '/Sum' + */ + rtDW.CCU_SET_FR = (uint16_t)(rtDW.CCU_SET_FR - 5); + } + + /* If: '/If' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * DataStoreWrite: '/Data Store Write13' + * Saturate: '/Saturation1' + * Sum: '/Sum' + */ + if (rtDW.CCU_SET_FR < 160) { + /* Outputs for IfAction SubSystem: '/LO mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/LOW' + */ + rtDW.LO_HI_MODE_FR = 1U; + + /* End of Outputs for SubSystem: '/LO mode' */ + } else if (rtDW.CCU_SET_FR > 290) { + /* Outputs for IfAction SubSystem: '/HI mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/HI' + */ + rtDW.LO_HI_MODE_FR = 2U; + + /* End of Outputs for SubSystem: '/HI mode' */ + } else { + /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/not LO or HI' + */ + rtDW.LO_HI_MODE_FR = 0U; + + /* End of Outputs for SubSystem: '/not LO or HI' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/temp down' */ + } + + /* End of If: '/If5' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } + + /* End of If: '/If1' */ + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + */ + rtb_Compare_au = (rtDW.TM_CP_model.CCPR_TempToggleL_Stat > 0); + + /* If: '/If1' incorporates: + * RelationalOperator: '/FixPt Relational Operator' + * UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + if ((int32_t)rtb_Compare_au > (int32_t)rtDW.DelayInput1_DSTATE_f) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' + */ + rtDW.changed_RL_params = 1U; + + /* If: '/If5' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + * DataStoreRead: '/Data Store Read12' + * Saturate: '/Saturation1' + * Sum: '/Sum' + */ + if ((rtDW.TM_CP_model.CCPR_TempToggleL_Stat == 1) || + (rtDW.TM_CP_model.CCPR_TempToggleL_Stat == 3)) { + /* Outputs for IfAction SubSystem: '/temp up' incorporates: + * ActionPort: '/Action Port' + */ + /* Saturate: '/Saturation1' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * Sum: '/Add' + */ + if ((uint16_t)(rtDW.CCU_SET_RL + 5U) > 305) { + /* DataTypeConversion: '/Data Type Conversion1' */ + rtDW.CCU_SET_RL = 305U; + } else if ((uint16_t)(rtDW.CCU_SET_RL + 5U) < 155) { + /* DataTypeConversion: '/Data Type Conversion1' */ + rtDW.CCU_SET_RL = 155U; + } else { + /* DataTypeConversion: '/Data Type Conversion1' */ + rtDW.CCU_SET_RL = (uint16_t)(rtDW.CCU_SET_RL + 5U); + } + + /* End of Saturate: '/Saturation1' */ + + /* If: '/If' incorporates: + * DataStoreWrite: '/Data Store Write13' + */ + if (rtDW.CCU_SET_RL < 160) { + /* Outputs for IfAction SubSystem: '/LO mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/LOW' + */ + rtDW.LO_HI_MODE_RL = 1U; + + /* End of Outputs for SubSystem: '/LO mode' */ + } else if (rtDW.CCU_SET_RL > 290) { + /* Outputs for IfAction SubSystem: '/HI mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/HI' + */ + rtDW.LO_HI_MODE_RL = 2U; + + /* End of Outputs for SubSystem: '/HI mode' */ + } else { + /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/not LO or HI' + */ + rtDW.LO_HI_MODE_RL = 0U; + + /* End of Outputs for SubSystem: '/not LO or HI' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/temp up' */ + } else { + /* Outputs for IfAction SubSystem: '/temp down' incorporates: + * ActionPort: '/Action Port' + */ + if ((uint16_t)(rtDW.CCU_SET_RL - 5) > 305) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Saturate: '/Saturation1' + */ + rtDW.CCU_SET_RL = 305U; + } else if ((uint16_t)(rtDW.CCU_SET_RL - 5) < 155) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Saturate: '/Saturation1' + */ + rtDW.CCU_SET_RL = 155U; + } else { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * Saturate: '/Saturation1' + * Sum: '/Sum' + */ + rtDW.CCU_SET_RL = (uint16_t)(rtDW.CCU_SET_RL - 5); + } + + /* If: '/If' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * DataStoreWrite: '/Data Store Write13' + * Saturate: '/Saturation1' + * Sum: '/Sum' + */ + if (rtDW.CCU_SET_RL < 160) { + /* Outputs for IfAction SubSystem: '/LO mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/LOW' + */ + rtDW.LO_HI_MODE_RL = 1U; + + /* End of Outputs for SubSystem: '/LO mode' */ + } else if (rtDW.CCU_SET_RL > 290) { + /* Outputs for IfAction SubSystem: '/HI mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/HI' + */ + rtDW.LO_HI_MODE_RL = 2U; + + /* End of Outputs for SubSystem: '/HI mode' */ + } else { + /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/not LO or HI' + */ + rtDW.LO_HI_MODE_RL = 0U; + + /* End of Outputs for SubSystem: '/not LO or HI' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/temp down' */ + } + + /* End of If: '/If5' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } + + /* End of If: '/If1' */ + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + */ + rtb_Compare_iy = (rtDW.TM_CP_model.CCPR_TempToggleR_Stat > 0); + + /* If: '/If1' incorporates: + * RelationalOperator: '/FixPt Relational Operator' + * UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + if ((int32_t)rtb_Compare_iy > (int32_t)rtDW.DelayInput1_DSTATE_k) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' + */ + rtDW.changed_RR_params = 1U; + + /* If: '/If5' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' + * DataStoreRead: '/Data Store Read12' + * Saturate: '/Saturation1' + * Sum: '/Sum' + */ + if ((rtDW.TM_CP_model.CCPR_TempToggleR_Stat == 1) || + (rtDW.TM_CP_model.CCPR_TempToggleR_Stat == 3)) { + /* Outputs for IfAction SubSystem: '/temp up' incorporates: + * ActionPort: '/Action Port' + */ + /* Saturate: '/Saturation1' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * Sum: '/Add' + */ + if ((uint16_t)(rtDW.CCU_SET_RR + 5U) > 305) { + /* DataTypeConversion: '/Data Type Conversion1' */ + rtDW.CCU_SET_RR = 305U; + } else if ((uint16_t)(rtDW.CCU_SET_RR + 5U) < 155) { + /* DataTypeConversion: '/Data Type Conversion1' */ + rtDW.CCU_SET_RR = 155U; + } else { + /* DataTypeConversion: '/Data Type Conversion1' */ + rtDW.CCU_SET_RR = (uint16_t)(rtDW.CCU_SET_RR + 5U); + } + + /* End of Saturate: '/Saturation1' */ + + /* If: '/If' incorporates: + * DataStoreWrite: '/Data Store Write13' + */ + if (rtDW.CCU_SET_RR < 160) { + /* Outputs for IfAction SubSystem: '/LO mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/LOW' + */ + rtDW.LO_HI_MODE_RR = 1U; + + /* End of Outputs for SubSystem: '/LO mode' */ + } else if (rtDW.CCU_SET_RR > 290) { + /* Outputs for IfAction SubSystem: '/HI mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/HI' + */ + rtDW.LO_HI_MODE_RR = 2U; + + /* End of Outputs for SubSystem: '/HI mode' */ + } else { + /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/not LO or HI' + */ + rtDW.LO_HI_MODE_RR = 0U; + + /* End of Outputs for SubSystem: '/not LO or HI' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/temp up' */ + } else { + /* Outputs for IfAction SubSystem: '/temp down' incorporates: + * ActionPort: '/Action Port' + */ + if ((uint16_t)(rtDW.CCU_SET_RR - 5) > 305) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Saturate: '/Saturation1' + */ + rtDW.CCU_SET_RR = 305U; + } else if ((uint16_t)(rtDW.CCU_SET_RR - 5) < 155) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Saturate: '/Saturation1' + */ + rtDW.CCU_SET_RR = 155U; + } else { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * Saturate: '/Saturation1' + * Sum: '/Sum' + */ + rtDW.CCU_SET_RR = (uint16_t)(rtDW.CCU_SET_RR - 5); + } + + /* If: '/If' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read12' + * DataStoreWrite: '/Data Store Write13' + * Saturate: '/Saturation1' + * Sum: '/Sum' + */ + if (rtDW.CCU_SET_RR < 160) { + /* Outputs for IfAction SubSystem: '/LO mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/LOW' + */ + rtDW.LO_HI_MODE_RR = 1U; + + /* End of Outputs for SubSystem: '/LO mode' */ + } else if (rtDW.CCU_SET_RR > 290) { + /* Outputs for IfAction SubSystem: '/HI mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/HI' + */ + rtDW.LO_HI_MODE_RR = 2U; + + /* End of Outputs for SubSystem: '/HI mode' */ + } else { + /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/not LO or HI' + */ + rtDW.LO_HI_MODE_RR = 0U; + + /* End of Outputs for SubSystem: '/not LO or HI' */ + } + + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/temp down' */ + } + + /* End of If: '/If5' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ + } + + /* End of If: '/If1' */ + /* Outputs for Enabled SubSystem: '/Subsystem1' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ /* DataStoreRead: '/Data Store Read1' */ if (rtDW.FIU_CCU1_MODEL.FIU_CCmodeFL_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write6' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write6' */ rtDW.CCU_MODE_FL = (uint8_t)(rtDW.FIU_CCU1_MODEL.FIU_CCmodeFL_Req > 1); } @@ -19872,16 +26122,16 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem1' */ /* Outputs for Enabled SubSystem: '/Subsystem10' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_CCmodeFR_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write10' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write10' */ rtDW.CCU_MODE_FR = (uint8_t)(rtDW.FIU_CCU1_MODEL.FIU_CCmodeFR_Req > 1); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/true' */ rtDW.changed_FR_params = 1U; } @@ -19889,22 +26139,22 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem10' */ /* Outputs for Enabled SubSystem: '/Subsystem11' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Def_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_DEF_FL = (uint8_t)(rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Def_Req <= 1); - /* DataStoreWrite: '/Data Store Write11' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* DataStoreWrite: '/Data Store Write11' incorporates: + * DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_DEF_FR = rtDW.CCU_DEF_FL; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_FR_params = 1U; } @@ -19912,17 +26162,17 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem11' */ /* Outputs for Enabled SubSystem: '/Subsystem12' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Face_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write12' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write12' */ rtDW.CCU_FACE_FR = (uint8_t)(rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Face_Req <= 1); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/true' */ rtDW.changed_FR_params = 1U; } @@ -19930,17 +26180,17 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem12' */ /* Outputs for Enabled SubSystem: '/Subsystem13' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Foot_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write13' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write13' */ rtDW.CCU_FOOT_FR = (uint8_t)(rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Foot_Req <= 1); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/true' */ rtDW.changed_FR_params = 1U; } @@ -19948,12 +26198,12 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem13' */ /* Outputs for Enabled SubSystem: '/Subsystem14' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFL_Req > 0) { - /* Switch: '/Switch5' incorporates: - * Constant: '/blower off' - * DataStoreWrite: '/Data Store Write14' + /* Switch: '/Switch5' incorporates: + * Constant: '/blower off' + * DataStoreWrite: '/Data Store Write14' */ if (rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFL_Req > 7) { rtDW.CCU_BLOWERS_FL = 0U; @@ -19961,18 +26211,18 @@ void HVAC_model_step(void) rtDW.CCU_BLOWERS_FL = rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFL_Req; } - /* End of Switch: '/Switch5' */ + /* End of Switch: '/Switch5' */ } /* End of Outputs for SubSystem: '/Subsystem14' */ /* Outputs for Enabled SubSystem: '/Subsystem15' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFR_Req > 0) { - /* Switch: '/Switch5' incorporates: - * Constant: '/blower off' - * DataStoreWrite: '/Data Store Write15' + /* Switch: '/Switch5' incorporates: + * Constant: '/blower off' + * DataStoreWrite: '/Data Store Write15' */ if (rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFR_Req > 7) { rtDW.CCU_BLOWERS_FR = 0U; @@ -19980,10 +26230,10 @@ void HVAC_model_step(void) rtDW.CCU_BLOWERS_FR = rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFR_Req; } - /* End of Switch: '/Switch5' */ + /* End of Switch: '/Switch5' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/true' */ rtDW.changed_FR_params = 1U; } @@ -19991,24 +26241,24 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem15' */ /* Outputs for Enabled SubSystem: '/Subsystem16' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_CCautoModeFL_Req > 0) { - /* DataStoreWrite: '/Data Store Write16' */ + /* DataStoreWrite: '/Data Store Write16' */ rtDW.CCU_AUTOMODE_FL = rtDW.FIU_CCU1_MODEL.FIU_CCautoModeFL_Req; } /* End of Outputs for SubSystem: '/Subsystem16' */ /* Outputs for Enabled SubSystem: '/Subsystem17' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_CCautoModeFR_Req > 0) { - /* DataStoreWrite: '/Data Store Write17' */ + /* DataStoreWrite: '/Data Store Write17' */ rtDW.CCU_AUTOMODE_FR = rtDW.FIU_CCU1_MODEL.FIU_CCautoModeFR_Req; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/true' */ rtDW.changed_FR_params = 1U; } @@ -20016,14 +26266,14 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem17' */ /* Outputs for Enabled SubSystem: '/Subsystem18' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_Recirculation_Req > 0) { - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant2' - * DataStoreWrite: '/Data Store Write19' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * DataStoreWrite: '/Data Store Write19' */ switch (rtDW.FIU_CCU1_MODEL.FIU_Recirculation_Req) { case 1: @@ -20039,17 +26289,17 @@ void HVAC_model_step(void) break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ } /* End of Outputs for SubSystem: '/Subsystem18' */ /* Outputs for Enabled SubSystem: '/Subsystem21' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_ACfrontOFF_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write22' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write22' */ rtDW.CCU_AC_FRONT = (uint8_t)(rtDW.FIU_CCU1_MODEL.FIU_ACfrontOFF_Req <= 1); } @@ -20057,191 +26307,186 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem21' */ /* Outputs for Enabled SubSystem: '/Subsystem24' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_FrontZoneSync_Req > 0) { - /* If: '/If' */ + /* If: '/If' */ if (rtDW.FIU_CCU1_MODEL.FIU_FrontZoneSync_Req == 1) { - /* Outputs for IfAction SubSystem: '/sync front action' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/sync front action' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write18' incorporates: - * Constant: '/on' + /* DataStoreWrite: '/Data Store Write18' incorporates: + * Constant: '/on' */ rtDW.enable_front_sync = 1U; - /* End of Outputs for SubSystem: '/sync front action' */ + /* End of Outputs for SubSystem: '/sync front action' */ } else if (rtDW.FIU_CCU1_MODEL.FIU_FrontZoneSync_Req == 2) { - /* Outputs for IfAction SubSystem: '/full sync action' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/full sync action' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.enable_full_sync = 1U; - /* DataStoreWrite: '/Data Store Write18' incorporates: - * Constant: '/on' - */ - rtDW.disable_rear_sync = 1U; - - /* End of Outputs for SubSystem: '/full sync action' */ + /* End of Outputs for SubSystem: '/full sync action' */ } else if (rtDW.FIU_CCU1_MODEL.FIU_FrontZoneSync_Req == 3) { - /* Outputs for IfAction SubSystem: '/sync off action' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/sync off action' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write18' incorporates: - * Constant: '/on' + /* DataStoreWrite: '/Data Store Write18' incorporates: + * Constant: '/on' */ rtDW.disable_front_sync = 1U; - /* End of Outputs for SubSystem: '/sync off action' */ + /* End of Outputs for SubSystem: '/sync off action' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ } /* End of Outputs for SubSystem: '/Subsystem24' */ /* Outputs for Enabled SubSystem: '/Subsystem5' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_TargetTempFL_Val_ro > 0) { - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Bias: '/Bias' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Bias: '/Bias' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' */ rtDW.CCU_SET_FL = (uint16_t)((0.5 * (double) rtDW.FIU_CCU1_MODEL.FIU_TargetTempFL_Val_ro + 15.5) * 10.0); - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (rtDW.CCU_SET_FL > 305) { - /* DataTypeConversion: '/Data Type Conversion1' */ + /* DataTypeConversion: '/Data Type Conversion1' */ rtDW.CCU_SET_FL = 305U; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* If: '/If' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* If: '/If' incorporates: + * DataStoreWrite: '/Data Store Write1' */ if (rtDW.CCU_SET_FL < 160) { - /* Outputs for IfAction SubSystem: '/LO mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/LO mode' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/LOW' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/LOW' */ rtDW.LO_HI_MODE_FL = 1U; - /* End of Outputs for SubSystem: '/LO mode' */ + /* End of Outputs for SubSystem: '/LO mode' */ } else if (rtDW.CCU_SET_FL > 290) { - /* Outputs for IfAction SubSystem: '/HI mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/HI mode' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/HI' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/HI' */ rtDW.LO_HI_MODE_FL = 2U; - /* End of Outputs for SubSystem: '/HI mode' */ + /* End of Outputs for SubSystem: '/HI mode' */ } else { - /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/not LO or HI' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/not LO or HI' */ rtDW.LO_HI_MODE_FL = 0U; - /* End of Outputs for SubSystem: '/not LO or HI' */ + /* End of Outputs for SubSystem: '/not LO or HI' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ } /* End of Outputs for SubSystem: '/Subsystem5' */ /* Outputs for Enabled SubSystem: '/Subsystem6' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_TargetTempFR_Val_ro > 0) { - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Bias: '/Bias' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Bias: '/Bias' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' */ rtDW.CCU_SET_FR = (uint16_t)((0.5 * (double) rtDW.FIU_CCU1_MODEL.FIU_TargetTempFR_Val_ro + 15.5) * 10.0); - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (rtDW.CCU_SET_FR > 305) { - /* DataTypeConversion: '/Data Type Conversion1' */ + /* DataTypeConversion: '/Data Type Conversion1' */ rtDW.CCU_SET_FR = 305U; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* DataStoreWrite: '/Data Store Write1' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/true' */ rtDW.changed_FR_params = 1U; - /* If: '/If' incorporates: - * DataStoreWrite: '/Data Store Write' + /* If: '/If' incorporates: + * DataStoreWrite: '/Data Store Write' */ if (rtDW.CCU_SET_FR < 160) { - /* Outputs for IfAction SubSystem: '/LO mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/LO mode' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/LOW' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/LOW' */ rtDW.LO_HI_MODE_FR = 1U; - /* End of Outputs for SubSystem: '/LO mode' */ + /* End of Outputs for SubSystem: '/LO mode' */ } else if (rtDW.CCU_SET_FR > 290) { - /* Outputs for IfAction SubSystem: '/HI mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/HI mode' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/HI' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/HI' */ rtDW.LO_HI_MODE_FR = 2U; - /* End of Outputs for SubSystem: '/HI mode' */ + /* End of Outputs for SubSystem: '/HI mode' */ } else { - /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/not LO or HI' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/not LO or HI' */ rtDW.LO_HI_MODE_FR = 0U; - /* End of Outputs for SubSystem: '/not LO or HI' */ + /* End of Outputs for SubSystem: '/not LO or HI' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ } /* End of Outputs for SubSystem: '/Subsystem6' */ /* Outputs for Enabled SubSystem: '/Subsystem7' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Def_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_DEF_FR = (uint8_t)(rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Def_Req <= 1); - /* DataStoreWrite: '/Data Store Write7' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_DEF_FL = rtDW.CCU_DEF_FR; } @@ -20249,11 +26494,11 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem7' */ /* Outputs for Enabled SubSystem: '/Subsystem8' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Face_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write8' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write8' */ rtDW.CCU_FACE_FL = (uint8_t)(rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Face_Req <= 1); @@ -20262,11 +26507,11 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem8' */ /* Outputs for Enabled SubSystem: '/Subsystem9' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Foot_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write9' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write9' */ rtDW.CCU_FOOT_FL = (uint8_t)(rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Foot_Req <= 1); @@ -20276,83 +26521,83 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem9' */ /* Outputs for Enabled SubSystem: '/Subsystem2' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ /* DataStoreRead: '/Data Store Read2' */ if (rtDW.FIU_CCU2_MODEL.FIU_TargetTempRL_Val_ro > 0) { - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Bias: '/Bias' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Bias: '/Bias' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' */ rtDW.CCU_SET_RL = (uint16_t)((0.5 * (double) rtDW.FIU_CCU2_MODEL.FIU_TargetTempRL_Val_ro + 15.5) * 10.0); - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (rtDW.CCU_SET_RL > 305) { - /* DataTypeConversion: '/Data Type Conversion1' */ + /* DataTypeConversion: '/Data Type Conversion1' */ rtDW.CCU_SET_RL = 305U; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RL_params = 1U; - /* If: '/If' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* If: '/If' incorporates: + * DataStoreWrite: '/Data Store Write1' */ if (rtDW.CCU_SET_RL < 160) { - /* Outputs for IfAction SubSystem: '/LO mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/LO mode' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/LOW' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/LOW' */ rtDW.LO_HI_MODE_RL = 1U; - /* End of Outputs for SubSystem: '/LO mode' */ + /* End of Outputs for SubSystem: '/LO mode' */ } else if (rtDW.CCU_SET_RL > 290) { - /* Outputs for IfAction SubSystem: '/HI mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/HI mode' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/HI' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/HI' */ rtDW.LO_HI_MODE_RL = 2U; - /* End of Outputs for SubSystem: '/HI mode' */ + /* End of Outputs for SubSystem: '/HI mode' */ } else { - /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/not LO or HI' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/not LO or HI' */ rtDW.LO_HI_MODE_RL = 0U; - /* End of Outputs for SubSystem: '/not LO or HI' */ + /* End of Outputs for SubSystem: '/not LO or HI' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ } /* End of Outputs for SubSystem: '/Subsystem2' */ /* Outputs for Enabled SubSystem: '/Subsystem27' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_CCmodeRL_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_MODE_RL = (uint8_t)(rtDW.FIU_CCU2_MODEL.FIU_CCmodeRL_Req > 1); - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RL_params = 1U; } @@ -20360,11 +26605,11 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem27' */ /* Outputs for Enabled SubSystem: '/Subsystem28' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRL_Def_Req > 0) { - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RL_params = 1U; } @@ -20372,17 +26617,17 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem28' */ /* Outputs for Enabled SubSystem: '/Subsystem29' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRL_Face_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_FACE_RL = (uint8_t)(rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRL_Face_Req <= 1); - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RL_params = 1U; } @@ -20390,83 +26635,83 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem29' */ /* Outputs for Enabled SubSystem: '/Subsystem3' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_TargetTempRR_Val_ro > 0) { - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Bias: '/Bias' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Bias: '/Bias' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' */ rtDW.CCU_SET_RR = (uint16_t)((0.5 * (double) rtDW.FIU_CCU2_MODEL.FIU_TargetTempRR_Val_ro + 15.5) * 10.0); - /* Saturate: '/Saturation' */ + /* Saturate: '/Saturation' */ if (rtDW.CCU_SET_RR > 305) { - /* DataTypeConversion: '/Data Type Conversion1' */ + /* DataTypeConversion: '/Data Type Conversion1' */ rtDW.CCU_SET_RR = 305U; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RR_params = 1U; - /* If: '/If' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* If: '/If' incorporates: + * DataStoreWrite: '/Data Store Write1' */ if (rtDW.CCU_SET_RR < 160) { - /* Outputs for IfAction SubSystem: '/LO mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/LO mode' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/LOW' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/LOW' */ rtDW.LO_HI_MODE_RR = 1U; - /* End of Outputs for SubSystem: '/LO mode' */ + /* End of Outputs for SubSystem: '/LO mode' */ } else if (rtDW.CCU_SET_RR > 290) { - /* Outputs for IfAction SubSystem: '/HI mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/HI mode' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/HI' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/HI' */ rtDW.LO_HI_MODE_RR = 2U; - /* End of Outputs for SubSystem: '/HI mode' */ + /* End of Outputs for SubSystem: '/HI mode' */ } else { - /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/not LO or HI' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/not LO or HI' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/not LO or HI' */ rtDW.LO_HI_MODE_RR = 0U; - /* End of Outputs for SubSystem: '/not LO or HI' */ + /* End of Outputs for SubSystem: '/not LO or HI' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ } /* End of Outputs for SubSystem: '/Subsystem3' */ /* Outputs for Enabled SubSystem: '/Subsystem30' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRL_Foot_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_FOOT_RL = (uint8_t)(rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRL_Foot_Req <= 1); - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RL_params = 1U; } @@ -20474,16 +26719,16 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem30' */ /* Outputs for Enabled SubSystem: '/Subsystem31' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_CCmodeRR_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_MODE_RR = (uint8_t)(rtDW.FIU_CCU2_MODEL.FIU_CCmodeRR_Req > 1); - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RR_params = 1U; } @@ -20491,11 +26736,11 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem31' */ /* Outputs for Enabled SubSystem: '/Subsystem32' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRR_Def_Req > 0) { - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RR_params = 1U; } @@ -20503,17 +26748,17 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem32' */ /* Outputs for Enabled SubSystem: '/Subsystem33' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRR_Face_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_FACE_RR = (uint8_t)(rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRR_Face_Req <= 1); - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RR_params = 1U; } @@ -20521,17 +26766,17 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem33' */ /* Outputs for Enabled SubSystem: '/Subsystem34' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRR_Foot_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_FOOT_RR = (uint8_t)(rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRR_Foot_Req <= 1); - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RR_params = 1U; } @@ -20539,12 +26784,12 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem34' */ /* Outputs for Enabled SubSystem: '/Subsystem35' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_BlowerSpeedRL_Req > 0) { - /* Switch: '/Switch5' incorporates: - * Constant: '/blower off' - * DataStoreWrite: '/Data Store Write1' + /* Switch: '/Switch5' incorporates: + * Constant: '/blower off' + * DataStoreWrite: '/Data Store Write1' */ if (rtDW.FIU_CCU2_MODEL.FIU_BlowerSpeedRL_Req > 7) { rtDW.CCU_BLOWERS_RL = 0U; @@ -20552,10 +26797,10 @@ void HVAC_model_step(void) rtDW.CCU_BLOWERS_RL = rtDW.FIU_CCU2_MODEL.FIU_BlowerSpeedRL_Req; } - /* End of Switch: '/Switch5' */ + /* End of Switch: '/Switch5' */ - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RL_params = 1U; } @@ -20563,12 +26808,12 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem35' */ /* Outputs for Enabled SubSystem: '/Subsystem36' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_BlowerSpeedRR_Req > 0) { - /* Switch: '/Switch5' incorporates: - * Constant: '/blower off' - * DataStoreWrite: '/Data Store Write1' + /* Switch: '/Switch5' incorporates: + * Constant: '/blower off' + * DataStoreWrite: '/Data Store Write1' */ if (rtDW.FIU_CCU2_MODEL.FIU_BlowerSpeedRR_Req > 7) { rtDW.CCU_BLOWERS_RR = 0U; @@ -20576,10 +26821,10 @@ void HVAC_model_step(void) rtDW.CCU_BLOWERS_RR = rtDW.FIU_CCU2_MODEL.FIU_BlowerSpeedRR_Req; } - /* End of Switch: '/Switch5' */ + /* End of Switch: '/Switch5' */ - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RR_params = 1U; } @@ -20587,24 +26832,24 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem36' */ /* Outputs for Enabled SubSystem: '/Subsystem37' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_CCautoModeRL_Req > 0) { - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_AUTOMODE_RL = rtDW.FIU_CCU2_MODEL.FIU_CCautoModeRL_Req; } /* End of Outputs for SubSystem: '/Subsystem37' */ /* Outputs for Enabled SubSystem: '/Subsystem38' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_CCautoModeRR_Req > 0) { - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_AUTOMODE_RR = rtDW.FIU_CCU2_MODEL.FIU_CCautoModeRR_Req; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RR_params = 1U; } @@ -20612,16 +26857,16 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem38' */ /* Outputs for Enabled SubSystem: '/Subsystem41' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_ACrearOFF_Req > 0) { - /* Switch: '/Switch' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_AC_REAR = (uint8_t)(rtDW.FIU_CCU2_MODEL.FIU_ACrearOFF_Req <= 1); - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/true' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/true' */ rtDW.changed_RL_params = 1U; } @@ -20629,1687 +26874,1775 @@ void HVAC_model_step(void) /* End of Outputs for SubSystem: '/Subsystem41' */ /* Outputs for Enabled SubSystem: '/Subsystem44' incorporates: - * EnablePort: '/Enable' + * EnablePort: '/Enable' */ if (rtDW.FIU_CCU2_MODEL.FIU_RearZoneSync_Req > 0) { - /* If: '/If' */ + /* If: '/If' */ if (rtDW.FIU_CCU2_MODEL.FIU_RearZoneSync_Req == 1) { - /* Outputs for IfAction SubSystem: '/sync rear action' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/sync rear action' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write18' incorporates: - * Constant: '/on' + /* DataStoreWrite: '/Data Store Write18' incorporates: + * Constant: '/on' */ rtDW.enable_rear_sync = 1U; - /* End of Outputs for SubSystem: '/sync rear action' */ + /* MATLAB Function: '/logger' */ + /* : fprintf('Logger CAN INPUT -> sync rear ON') */ + printf("Logger CAN INPUT -> sync rear ON"); + fflush(stdout); + + /* End of Outputs for SubSystem: '/sync rear action' */ } else if (rtDW.FIU_CCU2_MODEL.FIU_RearZoneSync_Req == 2) { - /* Outputs for IfAction SubSystem: '/sync off rear action' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/sync off rear action' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write18' incorporates: - * Constant: '/on' + /* DataStoreWrite: '/Data Store Write18' incorporates: + * Constant: '/on' */ rtDW.disable_rear_sync = 1U; - /* End of Outputs for SubSystem: '/sync off rear action' */ + /* MATLAB Function: '/logger' */ + /* : fprintf('Logger CAN INPUT -> sync rear OFF') */ + printf("Logger CAN INPUT -> sync rear OFF"); + fflush(stdout); + + /* End of Outputs for SubSystem: '/sync off rear action' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ } /* End of DataStoreRead: '/Data Store Read2' */ /* End of Outputs for SubSystem: '/Subsystem44' */ - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read10' - * DataStoreRead: '/Data Store Read11' - * DataStoreRead: '/Data Store Read17' - * DataStoreRead: '/Data Store Read18' - * DataStoreRead: '/Data Store Read19' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read20' - * DataStoreRead: '/Data Store Read21' - * DataStoreRead: '/Data Store Read22' - * DataStoreRead: '/Data Store Read23' - * DataStoreRead: '/Data Store Read24' - * DataStoreRead: '/Data Store Read3' - * DataStoreRead: '/Data Store Read4' - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/Data Store Read6' - * DataStoreRead: '/Data Store Read7' - * DataStoreRead: '/Data Store Read8' - * DataStoreRead: '/Data Store Read9' - * DataStoreWrite: '/Data Store Write' + /* Switch: '/Switch2' incorporates: + * BusCreator: '/Bus Creator2' + * BusCreator: '/Bus Creator8' + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read64' + * DataStoreRead: '/Data Store Read65' + * DataStoreRead: '/Data Store Read66' + * DataStoreWrite: '/Data Store Write31' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * Logic: '/Logical Operator13' + * Logic: '/Logical Operator4' + * Logic: '/Logical Operator4' + * Logic: '/Logical Operator9' + * Switch: '/Switch1' + * Switch: '/Switch3' + * Switch: '/Switch4' + * Switch: '/Switch5' + * Switch: '/Switch6' */ - rtDW.CCU_STAT1_MODEL.CCU_ModeFL_Stat = rtDW.CCU_MODE_FL; - rtDW.CCU_STAT1_MODEL.CCU_ModeFR_Stat = rtDW.CCU_MODE_FR; - rtDW.CCU_STAT1_MODEL.CCU_ModeRL_Stat = rtDW.CCU_MODE_RL; - rtDW.CCU_STAT1_MODEL.CCU_ModeRR_Stat = rtDW.CCU_MODE_RR; - rtDW.CCU_STAT1_MODEL.CCU_AutoModeFL_Stat = rtDW.CCU_AUTOMODE_FL; - rtDW.CCU_STAT1_MODEL.CCU_AutoModeFR_Stat = rtDW.CCU_AUTOMODE_FR; - rtDW.CCU_STAT1_MODEL.CCU_AirDirectionRL_Face_Stat = rtDW.CCU_FACE_RL; - rtDW.CCU_STAT1_MODEL.CCU_AirDirectionRL_Foot_Stat = rtDW.CCU_FOOT_RL; - rtDW.CCU_STAT1_MODEL.CCU_AutoModeRL_Stat = rtDW.CCU_AUTOMODE_RL; - rtDW.CCU_STAT1_MODEL.CCU_AutoModeRR_Stat = rtDW.CCU_AUTOMODE_RR; - rtDW.CCU_STAT1_MODEL.CCU_AirDirectionRR_Face_Stat = rtDW.CCU_FACE_RR; - rtDW.CCU_STAT1_MODEL.CCU_AirDirectionRR_Foot_Stat = rtDW.CCU_FOOT_RR; - rtDW.CCU_STAT1_MODEL.CCU_AirDirectionFL_Def_Stat = rtDW.CCU_DEF_FL; - rtDW.CCU_STAT1_MODEL.CCU_AirDirectionFL_Face_Stat = rtDW.CCU_FACE_FL; - rtDW.CCU_STAT1_MODEL.CCU_AirDirectionFL_Foot_Stat = rtDW.CCU_FOOT_FL; - rtDW.CCU_STAT1_MODEL.CCU_AirDirectionFR_Def_Stat = rtDW.CCU_DEF_FR; - rtDW.CCU_STAT1_MODEL.CCU_AirDirectionFR_Face_Stat = rtDW.CCU_FACE_FR; - rtDW.CCU_STAT1_MODEL.CCU_AirDirectionFR_Foot_Stat = rtDW.CCU_FOOT_FR; - rtDW.CCU_STAT1_MODEL.CCU_Recirculation_Stat = rtDW.CCU_RECIRC; - rtDW.CCU_STAT1_MODEL.CCU_BlowerSpeedFL_Stat = rtDW.CCU_BLOWERS_FL; - - /* Saturate: '/Saturation' incorporates: - * DataStoreRead: '/Data Store Read13' - */ - if (rtDW.CCU_SET_FL > 310) { - Gain = 310U; - } else if (rtDW.CCU_SET_FL < 155) { - Gain = 155U; - } else { - Gain = rtDW.CCU_SET_FL; - } - - /* BusCreator: '/Bus Creator' incorporates: - * Bias: '/Bias' - * DataStoreRead: '/Data Store Read12' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - * Saturate: '/Saturation' - */ - rtDW.CCU_STAT1_MODEL.CCU_TargetTempFL_Stat_ro = (uint8_t)((0.10000038146972656 - * (double)Gain - 16.0) * 2.0); - rtDW.CCU_STAT1_MODEL.CCU_BlowerSpeedFR_Stat = rtDW.CCU_BLOWERS_FR; - - /* Saturate: '/Saturation' incorporates: - * DataStoreRead: '/Data Store Read14' - */ - if (rtDW.CCU_SET_FR > 310) { - Gain = 310U; - } else if (rtDW.CCU_SET_FR < 155) { - Gain = 155U; - } else { - Gain = rtDW.CCU_SET_FR; - } - - /* BusCreator: '/Bus Creator' incorporates: - * Bias: '/Bias1' - * DataStoreRead: '/Data Store Read26' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - * Saturate: '/Saturation' - */ - rtDW.CCU_STAT1_MODEL.CCU_TargetTempFR_Stat_ro = (uint8_t)((0.10000038146972656 - * (double)Gain - 16.0) * 2.0); - rtDW.CCU_STAT1_MODEL.CCU_BlowerSpeedRL_Stat = rtDW.CCU_BLOWERS_RL; - - /* Saturate: '/Saturation' incorporates: - * DataStoreRead: '/Data Store Read15' - */ - if (rtDW.CCU_SET_RR > 310) { - Gain = 310U; - } else if (rtDW.CCU_SET_RR < 155) { - Gain = 155U; - } else { - Gain = rtDW.CCU_SET_RR; - } - - /* BusCreator: '/Bus Creator' incorporates: - * Bias: '/Bias' - * DataStoreRead: '/Data Store Read25' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - * Saturate: '/Saturation' - */ - rtDW.CCU_STAT1_MODEL.CCU_TargetTempRR_Stat_ro = (uint8_t)((0.10000038146972656 - * (double)Gain - 16.0) * 2.0); - rtDW.CCU_STAT1_MODEL.CCU_BlowerSpeedRR_Stat = rtDW.CCU_BLOWERS_RR; - - /* Saturate: '/Saturation' incorporates: - * DataStoreRead: '/Data Store Read16' - */ - if (rtDW.CCU_SET_RL > 310) { - Gain = 310U; - } else if (rtDW.CCU_SET_RL < 155) { - Gain = 155U; - } else { - Gain = rtDW.CCU_SET_RL; - } - - /* BusCreator: '/Bus Creator' incorporates: - * Bias: '/Bias' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - * Saturate: '/Saturation' - */ - rtDW.CCU_STAT1_MODEL.CCU_TargetTempRL_Stat_ro = (uint8_t)((0.10000038146972656 - * (double)Gain - 16.0) * 2.0); - - /* BusCreator: '/Bus Creator1' incorporates: - * DataStoreRead: '/Data Store Read27' - * DataStoreRead: '/Data Store Read28' - * DataStoreRead: '/Data Store Read29' - * DataStoreRead: '/Data Store Read34' - * DataStoreRead: '/Data Store Read35' - * DataStoreWrite: '/Data Store Write1' - */ - rtDW.CCU_STAT2_MODEL.CCU_AromaCartridgeSw_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_FrontZoneSync_Stat = rtDW.CCU_FRONT_SYNC; - rtDW.CCU_STAT2_MODEL.CCU_RearZoneSync_Stat = rtDW.CCU_REAR_SYNC; - rtDW.CCU_STAT2_MODEL.CCU_AllZoneSync_Stat = rtDW.CCU_ALL_ZONE_SYNC; - rtDW.CCU_STAT2_MODEL.CCU_ACfront_Stat = rtDW.CCU_AC_FRONT; - rtDW.CCU_STAT2_MODEL.CCU_ACrear_Stat = rtDW.CCU_AC_REAR; - rtDW.CCU_STAT2_MODEL.CCU_ACmaxF_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_ACmaxR_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_Defrost_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_Ionization_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_FootTempCorFL_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_FootTempCorFR_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_AromaIntens_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_FootTempCorRL_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_FootTempCorRR_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_DeflectorSwDL_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_DeflectorSwDR_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_DeflectorSwFPL_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_DeflectorSwFPR_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_DeflectorSwFCL_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_DeflectorSwFCR_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_DeflectorSwRLB_Stat = 0U; - rtDW.CCU_STAT2_MODEL.CCU_DeflectorSwRRB_Stat = 0U; - - /* BusCreator: '/Bus Creator2' incorporates: - * DataStoreRead: '/Data Store Read30' - * DataStoreRead: '/Data Store Read31' - * DataStoreWrite: '/Data Store Write2' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' - * Logic: '/Logical Operator13' - * Logic: '/Logical Operator4' - * Logic: '/Logical Operator4' - * Logic: '/Logical Operator4' - */ - CCU_Errors_Model.CCU_IncarTempErrF_Stat = (uint8_t)(rtb_LogicalOperator1_n || - rtb_LogicalOperator3); - CCU_Errors_Model.CCU_IncarTempErrR_Stat = (uint8_t)(rtb_LogicalOperator1_m2 || - rtb_LogicalOperator3_p5); - CCU_Errors_Model.CCU_DuctTempSenErrF_Stat = (uint8_t)(rtb_LogicalOperator3_nz || - rtb_LogicalOperator4_fo || rtb_LogicalOperator6 || rtb_LogicalOperator8 || - rtb_LogicalOperator10 || rtb_LogicalOperator11); - CCU_Errors_Model.CCU_DuctTempSenErrR_Stat = (uint8_t)(rtb_Compare_n2 || - rtb_Compare_jt || rtb_Compare_e || rtb_Compare_gs); - CCU_Errors_Model.CCU_EvaTempSenErrF_Stat = rtb_LogicalOperator1_f1; - CCU_Errors_Model.CCU_EvaTempSenErrR_Stat = rtb_LogicalOperator1_f; - CCU_Errors_Model.CCU_DeflectorSwErrF_Stat = 0U; - CCU_Errors_Model.CCU_DeflectorSwErrR_Stat = 0U; - CCU_Errors_Model.CCU_PressSenErr_Stat = rtb_LogicalOperator1; - CCU_Errors_Model.CCU_AmbienTemptSenErr_Stat = 0U; - CCU_Errors_Model.CCU_SealingValveErr_Stat = 0U; - CCU_Errors_Model.CCU_ETXVerr_Stat = 0U; - CCU_Errors_Model.CCU_HVACfanOrTXVerrF_Stat = 0U; - CCU_Errors_Model.CCU_HVACfanOrTXVerrR_Stat = 0U; - CCU_Errors_Model.CCU_ActuatorErrF_Stat = rtDW.CCU_ActuatorErrF_Stat_private; - CCU_Errors_Model.CCU_ActuatorErrR_Stat = rtDW.CCU_ActuatorErrR_Stat_private; - CCU_Errors_Model.CCU_UltravioletErr_Stat = 0U; - CCU_Errors_Model.CCU_VinRecordErr_Stat = 0U; - CCU_Errors_Model.CCU_AirQualSenErr_Stat = 0U; - CCU_Errors_Model.CCU_CommErr_Stat = 0U; - CCU_Errors_Model.CCU_TWVerr_Stat = 0U; - CCU_Errors_Model.CCU_IonizationErr_Stat = 0U; - CCU_Errors_Model.CCU_AromaErr_Stat = 0U; - - /* Saturate: '/Saturation' incorporates: - * MATLAB Function: '/MATLAB Function' - */ - if ((uint8_t)rpm_phys <= 170) { - /* BusCreator: '/Bus Creator3' incorporates: - * DataStoreWrite: '/Data Store Write3' + if (rtDW.BCM_T15_Stat > 0) { + /* Outport: '/CCU_Stat1_model' incorporates: + * BusCreator: '/Bus Creator' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read10' + * DataStoreRead: '/Data Store Read11' + * DataStoreRead: '/Data Store Read17' + * DataStoreRead: '/Data Store Read18' + * DataStoreRead: '/Data Store Read19' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read20' + * DataStoreRead: '/Data Store Read21' + * DataStoreRead: '/Data Store Read22' + * DataStoreRead: '/Data Store Read23' + * DataStoreRead: '/Data Store Read24' + * DataStoreRead: '/Data Store Read3' + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/Data Store Read6' + * DataStoreRead: '/Data Store Read7' + * DataStoreRead: '/Data Store Read8' + * DataStoreRead: '/Data Store Read9' */ - rtDW.CCUCAN_HVC_REQ_MSG_MODEL.CCU_eCompSpeedReq_Val_ro = (uint8_t)rpm_phys; - } else { - /* BusCreator: '/Bus Creator3' incorporates: - * DataStoreWrite: '/Data Store Write3' + rtY.CCU_Stat1_model.CCU_ModeFL_Stat = rtDW.CCU_MODE_FL; + rtY.CCU_Stat1_model.CCU_ModeFR_Stat = rtDW.CCU_MODE_FR; + rtY.CCU_Stat1_model.CCU_ModeRL_Stat = rtDW.CCU_MODE_RL; + rtY.CCU_Stat1_model.CCU_ModeRR_Stat = rtDW.CCU_MODE_RR; + rtY.CCU_Stat1_model.CCU_AutoModeFL_Stat = rtDW.CCU_AUTOMODE_FL; + rtY.CCU_Stat1_model.CCU_AutoModeFR_Stat = rtDW.CCU_AUTOMODE_FR; + rtY.CCU_Stat1_model.CCU_AirDirectionRL_Face_Stat = rtDW.CCU_FACE_RL; + rtY.CCU_Stat1_model.CCU_AirDirectionRL_Foot_Stat = rtDW.CCU_FOOT_RL; + rtY.CCU_Stat1_model.CCU_AutoModeRL_Stat = rtDW.CCU_AUTOMODE_RL; + rtY.CCU_Stat1_model.CCU_AutoModeRR_Stat = rtDW.CCU_AUTOMODE_RR; + rtY.CCU_Stat1_model.CCU_AirDirectionRR_Face_Stat = rtDW.CCU_FACE_RR; + rtY.CCU_Stat1_model.CCU_AirDirectionRR_Foot_Stat = rtDW.CCU_FOOT_RR; + rtY.CCU_Stat1_model.CCU_AirDirectionFL_Def_Stat = rtDW.CCU_DEF_FL; + rtY.CCU_Stat1_model.CCU_AirDirectionFL_Face_Stat = rtDW.CCU_FACE_FL; + rtY.CCU_Stat1_model.CCU_AirDirectionFL_Foot_Stat = rtDW.CCU_FOOT_FL; + rtY.CCU_Stat1_model.CCU_AirDirectionFR_Def_Stat = rtDW.CCU_DEF_FR; + rtY.CCU_Stat1_model.CCU_AirDirectionFR_Face_Stat = rtDW.CCU_FACE_FR; + rtY.CCU_Stat1_model.CCU_AirDirectionFR_Foot_Stat = rtDW.CCU_FOOT_FR; + rtY.CCU_Stat1_model.CCU_Recirculation_Stat = rtDW.CCU_RECIRC; + rtY.CCU_Stat1_model.CCU_BlowerSpeedFL_Stat = rtDW.CCU_BLOWERS_FL; + + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read13' */ - rtDW.CCUCAN_HVC_REQ_MSG_MODEL.CCU_eCompSpeedReq_Val_ro = 170U; - } - - /* End of Saturate: '/Saturation' */ - - /* BusCreator: '/Bus Creator3' incorporates: - * DataStoreWrite: '/Data Store Write1' - * DataStoreWrite: '/Data Store Write13' - * DataStoreWrite: '/Data Store Write3' - * DataTypeConversion: '/Data Type Conversion' - */ - rtDW.CCUCAN_HVC_REQ_MSG_MODEL.CCU_eCompReq_Stat = Enable_Comp_PID; - rtDW.CCUCAN_HVC_REQ_MSG_MODEL.CCU_LowTempValve_Req = rtB.Cmd_3Way; - rtDW.CCUCAN_HVC_REQ_MSG_MODEL.CCU_HVC_Req_RC = 0U; - rtDW.CCUCAN_HVC_REQ_MSG_MODEL.CCU_HVC_Req_CS = 0U; - - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant7' - */ - if (!Enable_Comp_PID) { - Valve_2_way = 0U; - } - - /* Saturate: '/Saturation5' incorporates: - * Switch: '/Switch1' - */ - if (Valve_2_way <= 100) { - /* BusCreator: '/Bus Creator4' incorporates: - * DataStoreWrite: '/Data Store Write4' - */ - rtDW.CCU_Msg3_model.CCU_FAN_Req = Valve_2_way; - } else { - /* BusCreator: '/Bus Creator4' incorporates: - * DataStoreWrite: '/Data Store Write4' - */ - rtDW.CCU_Msg3_model.CCU_FAN_Req = 100U; - } - - /* End of Saturate: '/Saturation5' */ - - /* BusCreator: '/Bus Creator4' incorporates: - * DataStoreWrite: '/Data Store Write4' - */ - rtDW.CCU_Msg3_model.CCU_RestMode_Stat = 0U; - rtDW.CCU_Msg3_model.CCU_IncarTempSum_Val_ro = 0U; - rtDW.CCU_Msg3_model.CCU_MSG3_RC = 0U; - rtDW.CCU_Msg3_model.CCU_MSG3_CS = 0U; - - /* BusCreator: '/Bus Creator5' incorporates: - * DataStoreRead: '/Data Store Read38' - * DataStoreWrite: '/Data Store Write5' - */ - rtDW.CCU_Msg1_model.CCU_MirrorHeating_Req = 0U; - rtDW.CCU_Msg1_model.CCU_RecirculationLed_Cmd = rtDW.Full_Rec; - rtDW.CCU_Msg1_model.CCU_DefrostLed_Req = 0U; - rtDW.CCU_Msg1_model.CCU_SideWindowHeating_Req = 0U; - rtDW.CCU_Msg1_model.CCU_RearWindowHeating_Req = 0U; - rtDW.CCU_Msg1_model.CCU_FrontWindowHeating_Req = 0U; - rtDW.CCU_Msg1_model.CCU_EmergAirCleaning_Stat = 0U; - rtDW.CCU_Msg1_model.CCU_FireExtinguishSys_Stat = 0U; - rtDW.CCU_Msg1_model.CCU_FLAutoPsngrLed_Cmd = 0U; - rtDW.CCU_Msg1_model.CCU_FRAutoPsngrLed_Cmd = 0U; - rtDW.CCU_Msg1_model.CCU_RLAutoPsngrLed_Cmd = 0U; - rtDW.CCU_Msg1_model.CCU_RRAutoPsngrLed_Cmd = 0U; - rtDW.CCU_Msg1_model.CCU_AC_MaxLed_Cmd = 0U; - rtDW.CCU_Msg1_model.CCU_MSG1_RC = 0U; - rtDW.CCU_Msg1_model.CCU_MSG1_CS = 0U; - - /* DataTypeConversion: '/Data Type Conversion' */ - for (i = 0; i < 9; i++) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Gain: '/Gain' - * Product: '/Divide' - */ - rtb_FLU_tg_correct_g = rtDW.MaxPositionCh0_private[i]; - if (rtb_FLU_tg_correct_g != 0) { - rtb_u8Vtg_FX_plus = (double)Actuator_Ch0_Status_Model.in_CPOS_ALL[i] / - (double)rtb_FLU_tg_correct_g * 100.0; + if (rtDW.CCU_SET_FL > 310) { + rtb_out_os = 310U; + } else if (rtDW.CCU_SET_FL < 155) { + rtb_out_os = 155U; } else { - rtb_u8Vtg_FX_plus = 0.0; + rtb_out_os = rtDW.CCU_SET_FL; } - /* End of Switch: '/Switch' */ - - /* Saturate: '/Saturation' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* Outport: '/CCU_Stat1_model' incorporates: + * Bias: '/Bias' + * BusCreator: '/Bus Creator' + * DataStoreRead: '/Data Store Read12' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + * Saturate: '/Saturation' */ - if (rtb_u8Vtg_FX_plus > 100.0) { + rtY.CCU_Stat1_model.CCU_TargetTempFL_Stat_ro = (uint8_t) + ((0.10000038146972656 * (double)rtb_out_os - 16.0) * 2.0); + rtY.CCU_Stat1_model.CCU_BlowerSpeedFR_Stat = rtDW.CCU_BLOWERS_FR; + + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read14' + */ + if (rtDW.CCU_SET_FR > 310) { + rtb_out_os = 310U; + } else if (rtDW.CCU_SET_FR < 155) { + rtb_out_os = 155U; + } else { + rtb_out_os = rtDW.CCU_SET_FR; + } + + /* Outport: '/CCU_Stat1_model' incorporates: + * Bias: '/Bias1' + * BusCreator: '/Bus Creator' + * DataStoreRead: '/Data Store Read26' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + * Saturate: '/Saturation' + */ + rtY.CCU_Stat1_model.CCU_TargetTempFR_Stat_ro = (uint8_t) + ((0.10000038146972656 * (double)rtb_out_os - 16.0) * 2.0); + rtY.CCU_Stat1_model.CCU_BlowerSpeedRL_Stat = rtDW.CCU_BLOWERS_RL; + + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read15' + */ + if (rtDW.CCU_SET_RR > 310) { + rtb_out_os = 310U; + } else if (rtDW.CCU_SET_RR < 155) { + rtb_out_os = 155U; + } else { + rtb_out_os = rtDW.CCU_SET_RR; + } + + /* Outport: '/CCU_Stat1_model' incorporates: + * Bias: '/Bias' + * BusCreator: '/Bus Creator' + * DataStoreRead: '/Data Store Read25' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + * Saturate: '/Saturation' + */ + rtY.CCU_Stat1_model.CCU_TargetTempRR_Stat_ro = (uint8_t) + ((0.10000038146972656 * (double)rtb_out_os - 16.0) * 2.0); + rtY.CCU_Stat1_model.CCU_BlowerSpeedRR_Stat = rtDW.CCU_BLOWERS_RR; + + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read16' + */ + if (rtDW.CCU_SET_RL > 310) { + rtb_out_os = 310U; + } else if (rtDW.CCU_SET_RL < 155) { + rtb_out_os = 155U; + } else { + rtb_out_os = rtDW.CCU_SET_RL; + } + + /* Outport: '/CCU_Stat1_model' incorporates: + * Bias: '/Bias' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + * Saturate: '/Saturation' + */ + rtY.CCU_Stat1_model.CCU_TargetTempRL_Stat_ro = (uint8_t) + ((0.10000038146972656 * (double)rtb_out_os - 16.0) * 2.0); + + /* Outport: '/CCU_Stat2_model' incorporates: + * BusCreator: '/Bus Creator1' + * DataStoreRead: '/Data Store Read34' + * DataStoreRead: '/Data Store Read35' + * DataStoreWrite: '/Data Store Write15' + * DataStoreWrite: '/Data Store Write16' + * DataStoreWrite: '/Data Store Write17' + */ + rtY.CCU_Stat2_model.CCU_AromaCartridgeSw_Stat = 0U; + rtY.CCU_Stat2_model.CCU_FrontZoneSync_Stat = rtB.sync_front; + rtY.CCU_Stat2_model.CCU_RearZoneSync_Stat = rtB.sync_rear; + rtY.CCU_Stat2_model.CCU_AllZoneSync_Stat = rtB.sync_all; + rtY.CCU_Stat2_model.CCU_ACfront_Stat = rtDW.CCU_AC_FRONT; + rtY.CCU_Stat2_model.CCU_ACrear_Stat = rtDW.CCU_AC_REAR; + rtY.CCU_Stat2_model.CCU_ACmaxF_Stat = 0U; + rtY.CCU_Stat2_model.CCU_ACmaxR_Stat = 0U; + rtY.CCU_Stat2_model.CCU_Defrost_Stat = 0U; + rtY.CCU_Stat2_model.CCU_Ionization_Stat = 0U; + rtY.CCU_Stat2_model.CCU_FootTempCorFL_Stat = 0U; + rtY.CCU_Stat2_model.CCU_FootTempCorFR_Stat = 0U; + rtY.CCU_Stat2_model.CCU_AromaIntens_Stat = 0U; + rtY.CCU_Stat2_model.CCU_FootTempCorRL_Stat = 0U; + rtY.CCU_Stat2_model.CCU_FootTempCorRR_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwDL_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwDR_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwFPL_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwFPR_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwFCL_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwFCR_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwRLB_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwRRB_Stat = 0U; + + /* Saturate: '/Saturation' incorporates: + * MATLAB Function: '/MATLAB Function' + */ + if ((uint8_t)rpm_phys <= 160) { + /* Outport: '/CCUCAN_HVC_REQ_MSG_MODEL' */ + rtY.CCUCAN_HVC_REQ_MSG_MODEL.CCU_eCompSpeedReq_Val_ro = (uint8_t)rpm_phys; + } else { + /* Outport: '/CCUCAN_HVC_REQ_MSG_MODEL' */ + rtY.CCUCAN_HVC_REQ_MSG_MODEL.CCU_eCompSpeedReq_Val_ro = 160U; + } + + /* End of Saturate: '/Saturation' */ + + /* Outport: '/CCUCAN_HVC_REQ_MSG_MODEL' incorporates: + * BusCreator: '/Bus Creator3' + * DataStoreRead: '/Data Store Read37' + * DataStoreWrite: '/Data Store Write13' + * DataTypeConversion: '/Data Type Conversion' + */ + rtY.CCUCAN_HVC_REQ_MSG_MODEL.CCU_eCompReq_Stat = Enable_Comp_PID; + rtY.CCUCAN_HVC_REQ_MSG_MODEL.CCU_LowTempValve_Req = rtb_Sum1; + rtY.CCUCAN_HVC_REQ_MSG_MODEL.CCU_HVC_Req_RC = 0U; + rtY.CCUCAN_HVC_REQ_MSG_MODEL.CCU_HVC_Req_CS = 0U; + + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant7' + */ + if (!Enable_Comp_PID) { + fan_speed_out = 0U; + } + + /* Saturate: '/Saturation5' incorporates: + * Switch: '/Switch1' + */ + if (fan_speed_out <= 100) { + /* Outport: '/CCU_Msg3_model' */ + rtY.CCU_Msg3_model.CCU_FAN_Req = fan_speed_out; + } else { + /* Outport: '/CCU_Msg3_model' */ + rtY.CCU_Msg3_model.CCU_FAN_Req = 100U; + } + + /* End of Saturate: '/Saturation5' */ + + /* Outport: '/CCU_Msg3_model' incorporates: + * BusCreator: '/Bus Creator4' + */ + rtY.CCU_Msg3_model.CCU_RestMode_Stat = 0U; + rtY.CCU_Msg3_model.CCU_IncarTempSum_Val_ro = 0U; + rtY.CCU_Msg3_model.CCU_MSG3_RC = 0U; + rtY.CCU_Msg3_model.CCU_MSG3_CS = 0U; + CCU_Errors_Model.CCU_IncarTempErrF_Stat = (uint8_t)(rtb_err || + rtb_LogicalOperator6); + CCU_Errors_Model.CCU_IncarTempErrR_Stat = (uint8_t)(rtb_LogicalOperator3 || + rtb_LogicalOperator8); + CCU_Errors_Model.CCU_DuctTempSenErrF_Stat = (uint8_t) + (rtb_LogicalOperator3_cz || rtb_LogicalOperator4_fo || + rtb_LogicalOperator6_m || rtb_LogicalOperator8_i || rtb_LogicalOperator10 + || rtb_LogicalOperator11); + CCU_Errors_Model.CCU_DuctTempSenErrR_Stat = (uint8_t)(rtb_Compare_an || + rtb_Compare_gp || rtb_Compare_od || rtb_Compare_oo); + CCU_Errors_Model.CCU_EvaTempSenErrF_Stat = rtb_LogicalOperator1; + CCU_Errors_Model.CCU_EvaTempSenErrR_Stat = rtb_LogicalOperator1_dv; + CCU_Errors_Model.CCU_DeflectorSwErrF_Stat = 0U; + CCU_Errors_Model.CCU_DeflectorSwErrR_Stat = 0U; + CCU_Errors_Model.CCU_PressSenErr_Stat = rtb_LogicalOperator1_n; + CCU_Errors_Model.CCU_AmbienTemptSenErr_Stat = 0U; + CCU_Errors_Model.CCU_SealingValveErr_Stat = 0U; + CCU_Errors_Model.CCU_ETXVerr_Stat = 0U; + CCU_Errors_Model.CCU_HVACfanOrTXVerrF_Stat = 0U; + CCU_Errors_Model.CCU_HVACfanOrTXVerrR_Stat = 0U; + CCU_Errors_Model.CCU_ActuatorErrF_Stat = rtDW.CCU_ActuatorErrF_Stat_private; + CCU_Errors_Model.CCU_ActuatorErrR_Stat = rtDW.CCU_ActuatorErrR_Stat_private; + CCU_Errors_Model.CCU_UltravioletErr_Stat = 0U; + CCU_Errors_Model.CCU_VinRecordErr_Stat = 0U; + CCU_Errors_Model.CCU_AirQualSenErr_Stat = 0U; + CCU_Errors_Model.CCU_CommErr_Stat = 0U; + CCU_Errors_Model.CCU_TWVerr_Stat = 0U; + CCU_Errors_Model.CCU_IonizationErr_Stat = 0U; + CCU_Errors_Model.CCU_AromaErr_Stat = 0U; + + /* Outport: '/CCU_Msg1_model' incorporates: + * BusCreator: '/Bus Creator2' + * BusCreator: '/Bus Creator5' + * DataStoreRead: '/Data Store Read38' + * DataStoreRead: '/Data Store Read39' + * DataStoreRead: '/Data Store Read40' + * DataStoreRead: '/Data Store Read41' + * DataStoreRead: '/Data Store Read42' + * DataStoreRead: '/Data Store Read43' + * DataStoreRead: '/Data Store Read44' + * DataStoreRead: '/Data Store Read65' + * DataStoreRead: '/Data Store Read66' + * DataStoreWrite: '/Data Store Write31' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * Logic: '/Logical Operator13' + * Logic: '/Logical Operator4' + * Logic: '/Logical Operator4' + * Logic: '/Logical Operator9' + */ + rtY.CCU_Msg1_model.CCU_MirrorHeating_Req = 0U; + rtY.CCU_Msg1_model.CCU_RecirculationLed_Cmd = rtDW.Full_Rec; + rtY.CCU_Msg1_model.CCU_DefrostLed_Req = CCU_Defrost; + rtY.CCU_Msg1_model.CCU_SideWindowHeating_Req = 0U; + rtY.CCU_Msg1_model.CCU_RearWindowHeating_Req = 0U; + rtY.CCU_Msg1_model.CCU_FrontWindowHeating_Req = 0U; + rtY.CCU_Msg1_model.CCU_EmergAirCleaning_Stat = 0U; + rtY.CCU_Msg1_model.CCU_FireExtinguishSys_Stat = 0U; + rtY.CCU_Msg1_model.CCU_FLAutoPsngrLed_Cmd = rtDW.CCU_MODE_FL; + rtY.CCU_Msg1_model.CCU_FRAutoPsngrLed_Cmd = rtDW.CCU_MODE_FR; + rtY.CCU_Msg1_model.CCU_RLAutoPsngrLed_Cmd = rtDW.CCU_MODE_RL; + rtY.CCU_Msg1_model.CCU_RRAutoPsngrLed_Cmd = rtDW.CCU_MODE_RR; + rtY.CCU_Msg1_model.CCU_AC_MaxLed_Cmd = CCU_AC_MAX; + rtY.CCU_Msg1_model.CCU_MSG1_RC = 0U; + rtY.CCU_Msg1_model.CCU_MSG1_CS = 0U; + } else { + /* Outport: '/CCU_Stat1_model' incorporates: + * BusCreator: '/Bus Creator6' + * Constant: '/Constant' + */ + rtY.CCU_Stat1_model.CCU_ModeFL_Stat = 0U; + rtY.CCU_Stat1_model.CCU_ModeFR_Stat = 0U; + rtY.CCU_Stat1_model.CCU_ModeRL_Stat = 0U; + rtY.CCU_Stat1_model.CCU_ModeRR_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AutoModeFL_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AutoModeFR_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AirDirectionRL_Face_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AirDirectionRL_Foot_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AutoModeRL_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AutoModeRR_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AirDirectionRR_Face_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AirDirectionRR_Foot_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AirDirectionFL_Def_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AirDirectionFL_Face_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AirDirectionFL_Foot_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AirDirectionFR_Def_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AirDirectionFR_Face_Stat = 0U; + rtY.CCU_Stat1_model.CCU_AirDirectionFR_Foot_Stat = 0U; + rtY.CCU_Stat1_model.CCU_Recirculation_Stat = 0U; + rtY.CCU_Stat1_model.CCU_BlowerSpeedFL_Stat = 0U; + rtY.CCU_Stat1_model.CCU_TargetTempFL_Stat_ro = 0U; + rtY.CCU_Stat1_model.CCU_BlowerSpeedFR_Stat = 0U; + rtY.CCU_Stat1_model.CCU_TargetTempFR_Stat_ro = 0U; + rtY.CCU_Stat1_model.CCU_BlowerSpeedRL_Stat = 0U; + rtY.CCU_Stat1_model.CCU_TargetTempRR_Stat_ro = 0U; + rtY.CCU_Stat1_model.CCU_BlowerSpeedRR_Stat = 0U; + rtY.CCU_Stat1_model.CCU_TargetTempRL_Stat_ro = 0U; + + /* Outport: '/CCU_Stat2_model' incorporates: + * BusCreator: '/Bus Creator7' + * Constant: '/Constant1' + */ + rtY.CCU_Stat2_model.CCU_AromaCartridgeSw_Stat = 0U; + rtY.CCU_Stat2_model.CCU_FrontZoneSync_Stat = 0U; + rtY.CCU_Stat2_model.CCU_RearZoneSync_Stat = 0U; + rtY.CCU_Stat2_model.CCU_AllZoneSync_Stat = 0U; + rtY.CCU_Stat2_model.CCU_ACfront_Stat = 0U; + rtY.CCU_Stat2_model.CCU_ACrear_Stat = 0U; + rtY.CCU_Stat2_model.CCU_ACmaxF_Stat = 0U; + rtY.CCU_Stat2_model.CCU_ACmaxR_Stat = 0U; + rtY.CCU_Stat2_model.CCU_Defrost_Stat = 0U; + rtY.CCU_Stat2_model.CCU_Ionization_Stat = 0U; + rtY.CCU_Stat2_model.CCU_FootTempCorFL_Stat = 0U; + rtY.CCU_Stat2_model.CCU_FootTempCorFR_Stat = 0U; + rtY.CCU_Stat2_model.CCU_AromaIntens_Stat = 0U; + rtY.CCU_Stat2_model.CCU_FootTempCorRL_Stat = 0U; + rtY.CCU_Stat2_model.CCU_FootTempCorRR_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwDL_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwDR_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwFPL_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwFPR_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwFCL_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwFCR_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwRLB_Stat = 0U; + rtY.CCU_Stat2_model.CCU_DeflectorSwRRB_Stat = 0U; + + /* Outport: '/CCUCAN_HVC_REQ_MSG_MODEL' incorporates: + * BusCreator: '/Bus Creator10' + * Constant: '/Constant4' + */ + rtY.CCUCAN_HVC_REQ_MSG_MODEL.CCU_eCompSpeedReq_Val_ro = 0U; + rtY.CCUCAN_HVC_REQ_MSG_MODEL.CCU_eCompReq_Stat = 0U; + rtY.CCUCAN_HVC_REQ_MSG_MODEL.CCU_LowTempValve_Req = 0U; + rtY.CCUCAN_HVC_REQ_MSG_MODEL.CCU_HVC_Req_RC = 0U; + rtY.CCUCAN_HVC_REQ_MSG_MODEL.CCU_HVC_Req_CS = 0U; + + /* Outport: '/CCU_Msg3_model' incorporates: + * BusCreator: '/Bus Creator11' + * Constant: '/Constant5' + */ + rtY.CCU_Msg3_model.CCU_FAN_Req = 0U; + rtY.CCU_Msg3_model.CCU_RestMode_Stat = 0U; + rtY.CCU_Msg3_model.CCU_IncarTempSum_Val_ro = 0U; + rtY.CCU_Msg3_model.CCU_MSG3_RC = 0U; + rtY.CCU_Msg3_model.CCU_MSG3_CS = 0U; + CCU_Errors_Model.CCU_IncarTempErrF_Stat = 0U; + CCU_Errors_Model.CCU_IncarTempErrR_Stat = 0U; + CCU_Errors_Model.CCU_DuctTempSenErrF_Stat = 0U; + CCU_Errors_Model.CCU_DuctTempSenErrR_Stat = 0U; + CCU_Errors_Model.CCU_EvaTempSenErrF_Stat = 0U; + CCU_Errors_Model.CCU_EvaTempSenErrR_Stat = 0U; + CCU_Errors_Model.CCU_DeflectorSwErrF_Stat = 0U; + CCU_Errors_Model.CCU_DeflectorSwErrR_Stat = 0U; + CCU_Errors_Model.CCU_PressSenErr_Stat = 0U; + CCU_Errors_Model.CCU_AmbienTemptSenErr_Stat = 0U; + CCU_Errors_Model.CCU_SealingValveErr_Stat = 0U; + CCU_Errors_Model.CCU_ETXVerr_Stat = 0U; + CCU_Errors_Model.CCU_HVACfanOrTXVerrF_Stat = 0U; + CCU_Errors_Model.CCU_HVACfanOrTXVerrR_Stat = 0U; + CCU_Errors_Model.CCU_ActuatorErrF_Stat = 0U; + CCU_Errors_Model.CCU_ActuatorErrR_Stat = 0U; + CCU_Errors_Model.CCU_UltravioletErr_Stat = 0U; + CCU_Errors_Model.CCU_VinRecordErr_Stat = 0U; + CCU_Errors_Model.CCU_AirQualSenErr_Stat = 0U; + CCU_Errors_Model.CCU_CommErr_Stat = 0U; + CCU_Errors_Model.CCU_TWVerr_Stat = 0U; + CCU_Errors_Model.CCU_IonizationErr_Stat = 0U; + CCU_Errors_Model.CCU_AromaErr_Stat = 0U; + + /* Outport: '/CCU_Msg1_model' incorporates: + * BusCreator: '/Bus Creator8' + * BusCreator: '/Bus Creator9' + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreWrite: '/Data Store Write31' + */ + rtY.CCU_Msg1_model.CCU_MirrorHeating_Req = 0U; + rtY.CCU_Msg1_model.CCU_RecirculationLed_Cmd = 0U; + rtY.CCU_Msg1_model.CCU_DefrostLed_Req = 0U; + rtY.CCU_Msg1_model.CCU_SideWindowHeating_Req = 0U; + rtY.CCU_Msg1_model.CCU_RearWindowHeating_Req = 0U; + rtY.CCU_Msg1_model.CCU_FrontWindowHeating_Req = 0U; + rtY.CCU_Msg1_model.CCU_EmergAirCleaning_Stat = 0U; + rtY.CCU_Msg1_model.CCU_FireExtinguishSys_Stat = 0U; + rtY.CCU_Msg1_model.CCU_FLAutoPsngrLed_Cmd = 0U; + rtY.CCU_Msg1_model.CCU_FRAutoPsngrLed_Cmd = 0U; + rtY.CCU_Msg1_model.CCU_RLAutoPsngrLed_Cmd = 0U; + rtY.CCU_Msg1_model.CCU_RRAutoPsngrLed_Cmd = 0U; + rtY.CCU_Msg1_model.CCU_AC_MaxLed_Cmd = 0U; + rtY.CCU_Msg1_model.CCU_MSG1_RC = 0U; + rtY.CCU_Msg1_model.CCU_MSG1_CS = 0U; + } + + /* End of Switch: '/Switch2' */ + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read4' + * DataStoreWrite: '/Data Store Write' + * DataStoreWrite: '/Data Store Write' + */ + if (rtDW.CCU_MODE_FL > 1) { + rtDW.ModeIndex[0] = rtb_Sum_i1; + } else { + rtDW.ModeIndex[0] = rtDW.Index_mode_FL_manual; + } + + /* End of Switch: '/Switch' */ + + /* Switch: '/Switch1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read6' + * DataStoreWrite: '/Data Store Write' + * DataStoreWrite: '/Data Store Write1' + */ + if (rtDW.CCU_MODE_FR > 1) { + rtDW.ModeIndex[1] = rtb_DataTypeConversion1_ay; + } else { + rtDW.ModeIndex[1] = Comp_Max_RPM_Allowed; + } + + /* End of Switch: '/Switch1' */ + + /* Switch: '/Switch2' incorporates: + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read9' + * DataStoreWrite: '/Data Store Write' + * DataStoreWrite: '/Data Store Write1' + */ + if (rtDW.CCU_MODE_RL > 1) { + rtDW.ModeIndex[2] = (uint8_t)Gain; + } else { + rtDW.ModeIndex[2] = rtDW.Index_mode_RL_manual; + } + + /* End of Switch: '/Switch2' */ + + /* Switch: '/Switch3' incorporates: + * DataStoreRead: '/Data Store Read12' + * DataStoreRead: '/Data Store Read3' + * DataStoreWrite: '/Data Store Write' + * DataStoreWrite: '/Data Store Write2' + */ + if (rtDW.CCU_MODE_RR > 1) { + rtDW.ModeIndex[3] = (uint8_t)Gain1; + } else { + rtDW.ModeIndex[3] = rtDW.Index_mode_RR_manual; + } + + /* End of Switch: '/Switch3' */ + + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' + */ + rtb_DataTypeConversion7 = 1.0; + + /* DataTypeConversion: '/Data Type Conversion' */ + for (i = 0; i < 9; i++) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read' + * Gain: '/Gain' + * Product: '/Divide' + */ + rtb_FLU_tg_correct_l = rtDW.MaxPositionCh0_private[i]; + if (rtb_FLU_tg_correct_l != 0) { + rtb_Divide1_cf = (double)Actuator_Ch0_Status_Model.in_CPOS_ALL[i] / + (double)rtb_FLU_tg_correct_l * 100.0; + } else { + rtb_Divide1_cf = 0.0; + } + + /* End of Switch: '/Switch' */ + + /* Saturate: '/Saturation' incorporates: + * DataTypeConversion: '/Data Type Conversion' + */ + if (rtb_Divide1_cf > 100.0) { rtb_DataTypeConversion_bh[i] = 100U; - } else if (rtb_u8Vtg_FX_plus < 0.0) { + } else if (rtb_Divide1_cf < 0.0) { rtb_DataTypeConversion_bh[i] = 0U; } else { - rtb_DataTypeConversion_bh[i] = (uint8_t)rtb_u8Vtg_FX_plus; + rtb_DataTypeConversion_bh[i] = (uint8_t)rtb_Divide1_cf; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ } - /* End of DataTypeConversion: '/Data Type Conversion' */ + /* End of DataTypeConversion: '/Data Type Conversion' */ - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read2' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read2' */ if (rtDW.stepSig_private > 0) { - rtb_y_b2 = rtDW.stepSig_private; + rtb_y_c = rtDW.stepSig_private; } else { - rtb_y_b2 = 1; + rtb_y_c = 1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* SwitchCase: '/Switch Case' */ - switch (rtb_y_b2) { + /* SwitchCase: '/Switch Case' */ + switch (rtb_y_c) { case 1: - /* Outputs for IfAction SubSystem: '/Stop Mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Stop Mode' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch0_Status_Model.Busy == 0) && (Actuator_Ch0_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.COM_private[i] = 1U; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.MODE_private[i] = 2U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_f1 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_f1 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' - */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { - /* : fprintf('[LIN 1] Stop Mode\n'); */ - printf("[LIN 1] Stop Mode\n"); - fflush(stdout); - } - - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_f1 = rtb_y_b2; + rtB.Merge_f1 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Stop Mode' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Stop Mode' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Initial CPOS Min' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Initial CPOS Min' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch0_Status_Model.Busy == 0) && (Actuator_Ch0_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.POS_private[i] = 6000U; - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.COM_private[i] = 2U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Merge: '/Merge' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Merge: '/Merge' + * Sum: '/step inc' */ - rtB.Merge_f1 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_f1 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' - */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { - /* : fprintf('[LIN 1] Initial CPOS Min\n'); */ - printf("[LIN 1] Initial CPOS Min\n"); - fflush(stdout); - } - - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * Merge: '/Merge' - * SignalConversion generated from: '/stepIn1' + /* Merge: '/Merge' incorporates: + * Merge: '/Merge' + * SignalConversion generated from: '/stepIn1' */ - rtB.Merge_f1 = rtb_y_b2; + rtB.Merge_f1 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/Initial CPOS Min' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/Initial CPOS Min' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Normal Mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Normal Mode' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch0_Status_Model.Busy == 0) && (Actuator_Ch0_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.MODE_private[i] = 0U; - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.COM_private[i] = 1U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_f1 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_f1 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' - */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { - /* : fprintf('[LIN 1] Normal Mode\n'); */ - printf("[LIN 1] Normal Mode\n"); - fflush(stdout); - } - - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_f1 = rtb_y_b2; + rtB.Merge_f1 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Normal Mode' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Normal Mode' */ break; case 4: - /* Outputs for IfAction SubSystem: '/Move to position Min' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Move to position Min' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch0_Status_Model.Busy == 0) && (Actuator_Ch0_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write4' incorporates: - * Constant: '/Constant1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * Constant: '/Constant1' */ rtDW.Autos_private[i] = 1U; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant10' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant10' */ rtDW.Stall_private[i] = 1U; - /* DataStoreWrite: '/Data Store Write3' */ + /* DataStoreWrite: '/Data Store Write3' */ rtDW.Lnoise_private[i] = 0U; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Speed_private[i] = 3U; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Coils_private[i] = 3U; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.POS_private[i] = 0U; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * Constant: '/Constant9' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/Constant9' */ rtDW.COM_private[i] = 3U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_f1 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_f1 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' - */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { - /* : fprintf('[LIN 1] Move to position Min\n'); */ - printf("[LIN 1] Move to position Min\n"); - fflush(stdout); - } - - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_f1 = rtb_y_b2; + rtB.Merge_f1 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Move to position Min' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Move to position Min' */ break; case 5: - /* Outputs for IfAction SubSystem: '/Check Stall Min' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Check Stall Min' incorporates: + * ActionPort: '/Action Port' */ - /* Logic: '/Logical Operator3' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Logic: '/Logical Operator1' - * Logic: '/Logical Operator2' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' + /* Logic: '/Logical Operator3' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator1' + * Logic: '/Logical Operator2' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' */ for (i = 0; i < 9; i++) { - rtb_LogicalOperator3_i5[i] = + rtb_LogicalOperator3_nq[i] = ((Actuator_Ch0_Status_Model.in_Act_Stall_Slave[i] == 1) || (Actuator_Ch0_Status_Model.in_CPOS_ALL[i] == 0) || (rtDW.ErrorCalibration_private[i] == 0)); } - /* End of Logic: '/Logical Operator3' */ + /* End of Logic: '/Logical Operator3' */ - /* Logic: '/Logical Operator' incorporates: - * Logic: '/Logical Operator3' + /* Logic: '/Logical Operator' incorporates: + * Logic: '/Logical Operator3' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && rtb_LogicalOperator3_nq[i + + 1]); } - /* If: '/If2' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - * Logic: '/Logical Operator' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If2' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * Logic: '/Logical Operator' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch0_Status_Model.Busy == 0) && - (Actuator_Ch0_Status_Model.Error_Connect == 0) && rtb_LogicalOperator1_n) + (Actuator_Ch0_Status_Model.Error_Connect == 0) && rtb_LogicalOperator3) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ for (i = 0; i < 9; i++) { - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read1' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read1' */ if (rtDW.ErrorCalibration_private[i] != 0) { rtDW.MinPositionCh0_private[i] = Actuator_Ch0_Status_Model.in_CPOS_ALL[i]; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of DataStoreWrite: '/Data Store Write1' */ + /* End of DataStoreWrite: '/Data Store Write1' */ - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_f1 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_f1 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' - */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { - /* : fprintf('[LIN 1] Check Stall Min\n'); */ - printf("[LIN 1] Check Stall Min\n"); - fflush(stdout); - } - - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_f1 = rtb_y_b2; + rtB.Merge_f1 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If2' */ - /* End of Outputs for SubSystem: '/Check Stall Min' */ + /* End of If: '/If2' */ + /* End of Outputs for SubSystem: '/Check Stall Min' */ break; case 6: - /* Outputs for IfAction SubSystem: '/Initial CPOS Max' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Initial CPOS Max' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch0_Status_Model.Busy == 0) && (Actuator_Ch0_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.COM_private[i] = 2U; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.POS_private[i] = 0U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_f1 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_f1 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' - */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { - /* : fprintf('[LIN 1] Initial CPOS Max\n'); */ - printf("[LIN 1] Initial CPOS Max\n"); - fflush(stdout); - } - - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_f1 = rtb_y_b2; + rtB.Merge_f1 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Initial CPOS Max' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Initial CPOS Max' */ break; case 7: - /* Outputs for IfAction SubSystem: '/Move to position Max' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Move to position Max' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch0_Status_Model.Busy == 0) && (Actuator_Ch0_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write4' incorporates: - * Constant: '/Constant1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * Constant: '/Constant1' */ rtDW.Autos_private[i] = 1U; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant10' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant10' */ rtDW.Stall_private[i] = 1U; - /* DataStoreWrite: '/Data Store Write3' */ + /* DataStoreWrite: '/Data Store Write3' */ rtDW.Lnoise_private[i] = 0U; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Speed_private[i] = 3U; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.POS_private[i] = 6000U; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * Constant: '/Constant9' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/Constant9' */ rtDW.COM_private[i] = 3U; - /* DataStoreWrite: '/Data Store Write6' */ + /* DataStoreWrite: '/Data Store Write6' */ rtDW.Coils_private[i] = 0U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_f1 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_f1 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' - */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { - /* : fprintf('[LIN 1] Move to position Max\n'); */ - printf("[LIN 1] Move to position Max\n"); - fflush(stdout); - } - - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_f1 = rtb_y_b2; + rtB.Merge_f1 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Move to position Max' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Move to position Max' */ break; case 8: - /* Outputs for IfAction SubSystem: '/Check Stall Max' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Check Stall Max' incorporates: + * ActionPort: '/Action Port' */ - /* Logic: '/Logical Operator3' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Logic: '/Logical Operator' - * Logic: '/Logical Operator2' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' + /* Logic: '/Logical Operator3' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator' + * Logic: '/Logical Operator2' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' */ for (i = 0; i < 9; i++) { - rtb_LogicalOperator3_i5[i] = + rtb_LogicalOperator3_nq[i] = ((Actuator_Ch0_Status_Model.in_Act_Stall_Slave[i] == 1) || (Actuator_Ch0_Status_Model.in_CPOS_ALL[i] == 6000) || (rtDW.ErrorCalibration_private[i] == 0)); } - /* End of Logic: '/Logical Operator3' */ + /* End of Logic: '/Logical Operator3' */ - /* Logic: '/Logical Operator1' incorporates: - * Logic: '/Logical Operator3' + /* Logic: '/Logical Operator1' incorporates: + * Logic: '/Logical Operator3' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && rtb_LogicalOperator3_nq[i + + 1]); } - /* If: '/If2' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - * Logic: '/Logical Operator1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If2' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * Logic: '/Logical Operator1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch0_Status_Model.Busy == 0) && - (Actuator_Ch0_Status_Model.Error_Connect == 0) && rtb_LogicalOperator1_n) + (Actuator_Ch0_Status_Model.Error_Connect == 0) && rtb_LogicalOperator3) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ for (i = 0; i < 9; i++) { - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read1' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read1' */ if (rtDW.ErrorCalibration_private[i] != 0) { rtDW.MaxPositionCh0_private[i] = Actuator_Ch0_Status_Model.in_CPOS_ALL[i]; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of DataStoreWrite: '/Data Store Write1' */ + /* End of DataStoreWrite: '/Data Store Write1' */ - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_f1 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_f1 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' - */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { - /* : fprintf('[LIN 1] Check Stall MAX\n'); */ - printf("[LIN 1] Check Stall MAX\n"); - fflush(stdout); - } - - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_f1 = rtb_y_b2; + rtB.Merge_f1 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If2' */ - /* End of Outputs for SubSystem: '/Check Stall Max' */ + /* End of If: '/If2' */ + /* End of Outputs for SubSystem: '/Check Stall Max' */ break; case 9: - /* Outputs for IfAction SubSystem: '/Homing' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Homing' incorporates: + * ActionPort: '/Action Port' */ - /* Product: '/Divide1' incorporates: - * Constant: '/ACT1' - * DataStoreRead: '/MAX ACT1T ' + /* Product: '/Divide1' incorporates: + * Constant: '/ACT1' + * DataStoreRead: '/MAX ACT1T ' */ for (i = 0; i < 9; i++) { - rtb_Divide1_e[i] = (double)rtDW.MaxPositionCh0_private[i] / (double) + rtb_Divide1_pb[i] = (double)rtDW.MaxPositionCh0_private[i] / (double) rtConstP.ACT1_Value[i]; } - /* End of Product: '/Divide1' */ + /* End of Product: '/Divide1' */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read4' + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read4' */ switch (rtDW.stepHoming_private) { case 0: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* RelationalOperator: '/Compare' */ - rtb_u8Vtg_FX_plus = rtb_Divide1_e[i]; + /* RelationalOperator: '/Compare' */ + rtb_Divide1 = rtb_Divide1_pb[i]; - /* Logic: '/Logical Operator' incorporates: - * Constant: '/Constant' - * Constant: '/Constant' - * RelationalOperator: '/Compare' - * RelationalOperator: '/Compare' + /* Logic: '/Logical Operator' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' */ - rtb_LogicalOperator1 = ((rtb_u8Vtg_FX_plus >= 0.5) && (rtb_u8Vtg_FX_plus - <= 1.9)); - rtb_LogicalOperator3_i5[i] = rtb_LogicalOperator1; + rtb_err = ((rtb_Divide1 >= 0.6) && (rtb_Divide1 <= 1.5)); + rtb_LogicalOperator3_nq[i] = rtb_err; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * Logic: '/Logical Operator' - * Logic: '/Logical Operator1' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + * Logic: '/Logical Operator' + * Logic: '/Logical Operator1' */ - rtDW.ErrorCalibration_private[i] = (uint8_t)((!rtb_LogicalOperator1) && + rtDW.ErrorCalibration_private[i] = (uint8_t)((!rtb_err) && (rtDW.ErrorCalibration_private[i] != 0)); } - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/MIN ACT1T 1' - * Logic: '/Logical Operator2' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/MIN ACT1T 1' + * Logic: '/Logical Operator2' */ /* : if(LOGGER>0) */ - if (rtDW.LOGGER_LIN > 0.0) { - /* : fprintf("[LIN 1] Homing 0\n"); */ - printf("[LIN 1] Homing 0\n"); + /* : fprintf("[LIN 1] Homing 0\n"); */ + printf("[LIN 1] Homing 0\n"); + fflush(stdout); + + /* : for i = 1:numel(MAX) */ + for (i = 0; i < 9; i++) { + /* : fprintf('[LIN 1] ACT%d MAX = %d KOEF = %f Callibration = %d \n', int16(i), int16(MAX(i)), KOEF(i), int16(ERRORS(i))); */ + printf("[LIN 1] ACT%d MAX = %d KOEF = %f Callibration = %d \n", (int16_t) + (i + 1), rtDW.MaxPositionCh0_private[i], rtb_Divide1_pb[i], + (int16_t)!rtb_LogicalOperator3_nq[i]); fflush(stdout); - - /* : for i = 1:numel(MAX) */ - for (i = 0; i < 9; i++) { - /* : fprintf('[LIN 1] ACT%d MAX = %d KOEF = %f Callibration = %d \n', int16(i), int16(MAX(i)), KOEF(i), int16(ERRORS(i))); */ - printf("[LIN 1] ACT%d MAX = %d KOEF = %f Callibration = %d \n", - (int16_t)(i + 1), rtDW.MaxPositionCh0_private[i], - rtb_Divide1_e[i], (int16_t)!rtb_LogicalOperator3_i5[i]); - fflush(stdout); - } } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* Logic: '/Logical Operator1' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator1' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && + rtb_LogicalOperator3_nq[i + 1]); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator1' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator1' */ - if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + if (rtb_LogicalOperator3) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ - rtB.Merge_ac = 4; + rtB.Merge_a = 4; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' */ - rtB.Merge_ac = 1; + rtB.Merge_a = 1; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ for (i = 0; i < 9; i++) { - rtb_LogicalOperator3_i5[i] = (rtb_Divide1_e[i] > 1.5); + rtb_LogicalOperator3_nq[i] = (rtb_Divide1_pb[i] > 1.5); } - /* End of RelationalOperator: '/Compare' */ + /* End of RelationalOperator: '/Compare' */ - /* Logic: '/Logical Operator' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 || + rtb_LogicalOperator3_nq[i + 1]); } - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write1' - * Logic: '/Logical Operator' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreWrite: '/Data Store Write1' + * Logic: '/Logical Operator' */ - rtDW.CCU_ActuatorErrF_Stat_private = rtb_LogicalOperator1_n; + rtDW.CCU_ActuatorErrF_Stat_private = rtb_LogicalOperator3; for (i = 0; i < 9; i++) { - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreWrite: '/Data Store Write2' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataStoreWrite: '/Data Store Write2' */ - rtb_LogicalOperator1 = rtb_LogicalOperator3_i5[i]; - rtDW.COM_private[i] = rtb_LogicalOperator1; + rtb_err = rtb_LogicalOperator3_nq[i]; + rtDW.COM_private[i] = rtb_err; - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write3' - * Logic: '/Logical Operator1' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write3' + * Logic: '/Logical Operator1' */ - rtDW.ErrorActuator[i] = (uint8_t)(rtb_LogicalOperator1 || - (rtDW.ErrorActuator[i] != 0)); + rtDW.ErrorActuator[i] = (uint8_t)(rtb_err || (rtDW.ErrorActuator[i] != 0)); - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.MODE_private[i] = 2U; } - /* MATLAB Function: '/Write ERROR' incorporates: - * DataStoreRead: '/Data Store Read6' - */ + /* MATLAB Function: '/Write ERROR' */ /* : if(LOGGER>=0) */ - if (rtDW.LOGGER_LIN >= 0.0) { - /* : for i = 1:numel(ErrCallibration) */ - for (i = 0; i < 9; i++) { - /* : if ErrCallibration(i) == 1 */ - if (rtb_LogicalOperator3_i5[i]) { - /* : fprintf('[LIN 1] Failure with actuator #%d\n', int16(i)); */ - printf("[LIN 1] Failure with actuator #%d\n", (int16_t)(i + 1)); - fflush(stdout); - } + /* : for i = 1:numel(ErrCallibration) */ + for (i = 0; i < 9; i++) { + /* : if ErrCallibration(i) == 1 */ + if (rtb_LogicalOperator3_nq[i]) { + /* : fprintf('[LIN 1] Failure with actuator #%d\n', int16(i)); */ + printf("[LIN 1] Failure with actuator #%d\n", (int16_t)(i + 1)); + fflush(stdout); } } - /* End of MATLAB Function: '/Write ERROR' */ + /* End of MATLAB Function: '/Write ERROR' */ for (i = 0; i < 9; i++) { - /* Logic: '/Logical Operator1' */ - rtb_LogicalOperator1 = rtb_LogicalOperator3_i5[i]; + /* Logic: '/Logical Operator1' */ + rtb_err = rtb_LogicalOperator3_nq[i]; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * Logic: '/Logical Operator' - * Logic: '/Logical Operator1' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + * Logic: '/Logical Operator' + * Logic: '/Logical Operator1' */ - rtDW.ErrorCalibration_private[i] = (uint8_t)((!rtb_LogicalOperator1) && + rtDW.ErrorCalibration_private[i] = (uint8_t)((!rtb_err) && (rtDW.ErrorCalibration_private[i] != 0)); - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtDW.dtc_state_error_model[i + 54] = rtb_LogicalOperator1; + rtDW.dtc_state_error_model[i + 54] = rtb_err; } - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.stepSig_private = 1; - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/MIN ACT1T 1' - * DataStoreWrite: '/Data Store Write' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/MIN ACT1T 1' + * DataStoreWrite: '/Data Store Write' */ /* : if(LOGGER>0) */ - if (rtDW.LOGGER_LIN > 0.0) { - /* : fprintf("[LIN 1] Homing 1. Start Callibration \n"); */ - printf("[LIN 1] Homing 1. Start Callibration \n"); - fflush(stdout); + /* : fprintf("[LIN 1] Homing 1. Start Callibration \n"); */ + printf("[LIN 1] Homing 1. Start Callibration \n"); + fflush(stdout); - /* : for i = 1:numel(MAX) */ - for (i = 0; i < 9; i++) { - /* : if(ERRORS(i)==1) */ - if (rtDW.ErrorCalibration_private[i] == 1) { - /* : fprintf('[LIN 1] ACT%d MAX = %d KOEF = %f Callibration = %d \n', int16(i), int16(MAX(i)), KOEF(i), int16(ERRORS(i))); */ - printf("[LIN 1] ACT%d MAX = %d KOEF = %f Callibration = %d \n", - (int16_t)(i + 1), rtDW.MaxPositionCh0_private[i], - rtb_Divide1_e[i], (int16_t)rtDW.ErrorCalibration_private[i]); - fflush(stdout); - } + /* : for i = 1:numel(MAX) */ + for (i = 0; i < 9; i++) { + /* : if(ERRORS(i)==1) */ + if (rtDW.ErrorCalibration_private[i] == 1) { + /* : fprintf('[LIN 1] ACT%d MAX = %d KOEF = %f Callibration = %d \n', int16(i), int16(MAX(i)), KOEF(i), int16(ERRORS(i))); */ + printf("[LIN 1] ACT%d MAX = %d KOEF = %f Callibration = %d \n", + (int16_t)(i + 1), rtDW.MaxPositionCh0_private[i], + rtb_Divide1_pb[i], (int16_t)rtDW.ErrorCalibration_private[i]); + fflush(stdout); } } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* Logic: '/Logical Operator2' incorporates: - * DataStoreWrite: '/Data Store Write' + /* Logic: '/Logical Operator2' incorporates: + * DataStoreWrite: '/Data Store Write' */ - rtb_LogicalOperator1_n = (rtDW.ErrorCalibration_private[0] != 0); + rtb_LogicalOperator3 = (rtDW.ErrorCalibration_private[0] != 0); for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || + rtb_LogicalOperator3 = (rtb_LogicalOperator3 || (rtDW.ErrorCalibration_private[i + 1] != 0)); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator2' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator2' */ - if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + if (rtb_LogicalOperator3) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ - rtB.Merge_ac = 2; + rtB.Merge_a = 2; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ - rtB.Merge_ac = 4; + rtB.Merge_a = 4; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem1' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem1' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* RelationalOperator: '/Compare' */ - rtb_u8Vtg_FX_plus = rtb_Divide1_e[i]; + /* RelationalOperator: '/Compare' */ + rtb_Divide1 = rtb_Divide1_pb[i]; - /* Logic: '/Logical Operator3' incorporates: - * Constant: '/Constant' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read' - * Logic: '/Logical Operator1' - * Logic: '/Logical Operator4' - * RelationalOperator: '/Compare' - * RelationalOperator: '/Compare' + /* Logic: '/Logical Operator3' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator1' + * Logic: '/Logical Operator4' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' */ - rtb_LogicalOperator1 = (((rtb_u8Vtg_FX_plus < 0.97) || - (rtb_u8Vtg_FX_plus > 1.03)) && (rtDW.ErrorCalibration_private[i] != 0)); - rtb_LogicalOperator3_i5[i] = rtb_LogicalOperator1; + rtb_err = (((rtb_Divide1 < 0.97) || (rtb_Divide1 > 1.03)) && + (rtDW.ErrorCalibration_private[i] != 0)); + rtb_LogicalOperator3_nq[i] = rtb_err; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreWrite: '/Data Store Write1' */ - rtDW.ErrorCalibration_private[i] = rtb_LogicalOperator1; + rtDW.ErrorCalibration_private[i] = rtb_err; } - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/MIN ACT1T 1' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/MIN ACT1T 1' */ /* : if(LOGGER>0) */ - if (rtDW.LOGGER_LIN > 0.0) { - /* : fprintf("[LIN 1] Homing 3. Callibration \n"); */ - printf("[LIN 1] Homing 3. Callibration \n"); - fflush(stdout); + /* : fprintf("[LIN 1] Homing 3. Callibration \n"); */ + printf("[LIN 1] Homing 3. Callibration \n"); + fflush(stdout); - /* : for i = 1:numel(MAX) */ - for (i = 0; i < 9; i++) { - /* : if(ERRORS(i)==1) */ - if (rtb_LogicalOperator3_i5[i]) { - /* : fprintf('[LIN 1] ACT%d MAX = %d KOEF = %f Callibration = %d \n', int16(i), int16(MAX(i)), KOEF(i), int16(ERRORS(i))); */ - printf("[LIN 1] ACT%d MAX = %d KOEF = %f Callibration = %d \n", - (int16_t)(i + 1), rtDW.MaxPositionCh0_private[i], - rtb_Divide1_e[i], 1); - fflush(stdout); - } + /* : for i = 1:numel(MAX) */ + for (i = 0; i < 9; i++) { + /* : if(ERRORS(i)==1) */ + if (rtb_LogicalOperator3_nq[i]) { + /* : fprintf('[LIN 1] ACT%d MAX = %d KOEF = %f Callibration = %d \n', int16(i), int16(MAX(i)), KOEF(i), int16(ERRORS(i))); */ + printf("[LIN 1] ACT%d MAX = %d KOEF = %f Callibration = %d \n", + (int16_t)(i + 1), rtDW.MaxPositionCh0_private[i], + rtb_Divide1_pb[i], 1); + fflush(stdout); } } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* Logic: '/Logical Operator2' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator2' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 || + rtb_LogicalOperator3_nq[i + 1]); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator2' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator2' */ - if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant3' + if (rtb_LogicalOperator3) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant3' */ - rtB.Merge_ac = 3; + rtB.Merge_a = 3; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ - rtB.Merge_ac = 4; + rtB.Merge_a = 4; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem2' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem2' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read5' + /* If: '/If' incorporates: + * DataStoreRead: '/Data Store Read1' */ /* : if(LOGGER>1) */ - if (rtDW.LOGGER_LIN > 1.0) { - /* : fprintf("[LIN 1] Homing 3. Start Time on step %d\n",int16(step)); */ - rtb_u8Vtg_FX_plus = rt_roundd(rtDW.ErrorHomming_private); - if (rtb_u8Vtg_FX_plus < 32768.0) { - if (rtb_u8Vtg_FX_plus >= -32768.0) { - rtb_FLU_tg_correct_g = (int16_t)rtb_u8Vtg_FX_plus; - } else { - rtb_FLU_tg_correct_g = INT16_MIN; - } - } else { - rtb_FLU_tg_correct_g = INT16_MAX; - } - - printf("[LIN 1] Homing 3. Start Time on step %d\n", rtb_FLU_tg_correct_g); - fflush(stdout); - } - - /* End of MATLAB Function: '/MAX POSITION' */ - - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read1' - */ if (rtDW.ErrorHomming_private < 10.0) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/MATLAB Function' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' + /* MATLAB Function: '/MATLAB Function' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' */ - MATLABFunction(rtDW.Start_timer_n, rtDW.t_now, &rtb_dt_an, + MATLABFunction(rtDW.Start_timer_n, rtDW.t_now, &rtb_Subtract, &rtDW.sf_MATLABFunction_h); - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' - */ + /* If: '/If' */ /* : if(LOGGER>1) */ - if (rtDW.LOGGER_LIN > 1.0) { - /* : fprintf("[LIN 1] Homing 3. Start TIme dt = %d \n",int32(data)); */ - rtb_Subtract = rtb_dt_an; - if (rtb_dt_an > 2147483647U) { - rtb_Subtract = 2147483647U; - } - - printf("[LIN 1] Homing 3. Start TIme dt = %d \n", (int32_t) - rtb_Subtract); - fflush(stdout); - } - - /* End of MATLAB Function: '/MAX POSITION' */ - - /* If: '/If' */ - if (rtb_dt_an > 30000U) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + if (rtb_Subtract > 3600000U) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' */ - IfActionSubsystem(&rtB.Merge_ac, &rtDW.ErrorHomming_private, - &rtDW.Start_timer_n, &rtDW.stepSig_private); + /* Merge: '/Merge' */ + IfActionSubsystem_h(&rtB.Merge_a, &rtDW.ErrorHomming_private, + &rtDW.Start_timer_n, &rtDW.stepSig_private); - /* End of Outputs for SubSystem: '/If Action Subsystem' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant3' */ rtDW.Start_timer_n = 1.0; - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataStoreRead: '/valves target in percent' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataStoreRead: '/valves target in percent' */ for (i = 0; i < 9; i++) { - rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_out_dwb[i]; + rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_out_j[i]; } - /* End of DataTypeConversion: '/Data Type Conversion2' */ + /* End of DataTypeConversion: '/Data Type Conversion2' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[0] = rtb_DataTypeConversion_bq[8]; - /* DataStoreRead: '/Data Store Read4' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read4' incorporates: + * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[1] = rtb_Switch_m5; + rtDW.BUS_ADR_private[1] = rtb_Switch_db; - /* DataStoreRead: '/Data Store Read3' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read3' incorporates: + * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[2] = rtb_u_gnq; + rtDW.BUS_ADR_private[2] = rtb_u_pc; - /* DataStoreRead: '/Data Store Read' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[3] = rtDW.PID_TempFUL; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[4] = rtb_DataTypeConversion_bq[1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[5] = rtb_DataTypeConversion_bq[0]; - /* DataStoreRead: '/Data Store Read6' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read6' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[6] = rtDW.PID_TempFLL; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[7] = rtb_DataTypeConversion_bq[4]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[8] = rtb_DataTypeConversion_bq[5]; for (i = 0; i < 9; i++) { - /* Product: '/Product' */ - Valve_2_way = rtDW.BUS_ADR_private[i]; + /* Product: '/Product' */ + fan_speed_out = rtDW.BUS_ADR_private[i]; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * Product: '/Divide1' - * Product: '/Product' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + * Product: '/Divide1' + * Product: '/Product' */ - rtDW.POS_private[i] = (uint16_t)((double)(Valve_2_way * + rtDW.POS_private[i] = (uint16_t)((double)(fan_speed_out * rtDW.MaxPositionCh0_private[i]) / 100.0); - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreWrite: '/Data Store Write2' + /* RelationalOperator: '/Relational Operator1' incorporates: + * DataStoreWrite: '/Data Store Write2' */ - rtb_LogicalOperator3_i5[i] = (rtb_DataTypeConversion_bh[i] == - Valve_2_way); + rtb_LogicalOperator3_nq[i] = (rtb_DataTypeConversion_bh[i] == + fan_speed_out); } - /* Logic: '/Logical Operator' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && + rtb_LogicalOperator3_nq[i + 1]); } for (i = 0; i < 9; i++) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant4' - * Constant: '/Constant9' - * DataStoreWrite: '/Data Store Write1' - * Logic: '/Logical Operator' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant4' + * Constant: '/Constant9' + * DataStoreWrite: '/Data Store Write1' + * Logic: '/Logical Operator' */ - if (rtb_LogicalOperator1_n) { + if (rtb_LogicalOperator3) { rtDW.COM_private[i] = 0U; } else { rtDW.COM_private[i] = 3U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Concatenate: '/Vector Concatenate' - * Constant: '/Constant5' - * DataStoreWrite: '/Data Store Write2' - * DataStoreWrite: '/Data Store Write7' - * Product: '/Product' - * RelationalOperator: '/Relational Operator' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Concatenate: '/Vector Concatenate' + * Constant: '/Constant5' + * DataStoreWrite: '/Data Store Write2' + * DataStoreWrite: '/Data Store Write7' + * Product: '/Product' + * RelationalOperator: '/Relational Operator' */ rtDW.BUS_ADR_private[i] = (uint8_t)((uint32_t) (rtb_DataTypeConversion_bh[i] != rtDW.BUS_ADR_private[i]) * - rtConstP.pooled106[i]); + rtConstP.pooled95[i]); - /* DataStoreWrite: '/Data Store Write4' incorporates: - * Constant: '/Constant1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * Constant: '/Constant1' */ rtDW.Autos_private[i] = 1U; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant10' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant10' */ rtDW.Stall_private[i] = 1U; - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant11' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Constant11' */ rtDW.Lnoise_private[i] = 0U; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Speed_private[i] = 3U; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Coils_private[i] = 3U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - * Merge: '/Merge' - * SignalConversion generated from: '/Out1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' + * Merge: '/Merge' + * SignalConversion generated from: '/Out1' */ - rtB.Merge_ac = 3; + rtB.Merge_a = 3; - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/If Action Subsystem' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - IfActionSubsystem1(&rtB.Merge_ac, &rtDW.CCU_ActuatorErrF_Stat_private, - rtDW.COM_private, rtDW.ErrorActuator, - rtDW.ErrorCalibration_private, &rtDW.LOGGER_LIN, - rtDW.MODE_private, rtDW.dtc_state_error_model); + IfActionSubsystem1_h(&rtB.Merge_a, &rtDW.CCU_ActuatorErrF_Stat_private, + rtDW.COM_private, rtDW.ErrorActuator, + rtDW.ErrorCalibration_private, + &rtb_DataTypeConversion7, rtDW.MODE_private, + rtDW.dtc_state_error_model); - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem3' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem3' */ break; case 4: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem4' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem4' incorporates: + * ActionPort: '/Action Port' */ - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataStoreRead: '/valves target in percent' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataStoreRead: '/valves target in percent' */ for (i = 0; i < 9; i++) { - rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_out_dwb[i]; + rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_out_j[i]; } - /* End of DataTypeConversion: '/Data Type Conversion2' */ + /* End of DataTypeConversion: '/Data Type Conversion2' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[0] = rtb_DataTypeConversion_bq[8]; - /* DataStoreRead: '/Data Store Read4' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read4' incorporates: + * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[1] = rtb_Switch_m5; + rtDW.BUS_ADR_private[1] = rtb_Switch_db; - /* DataStoreRead: '/Data Store Read3' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read3' incorporates: + * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[2] = rtb_u_gnq; + rtDW.BUS_ADR_private[2] = rtb_u_pc; - /* DataStoreRead: '/Data Store Read' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[3] = rtDW.PID_TempFUL; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[4] = rtb_DataTypeConversion_bq[1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[5] = rtb_DataTypeConversion_bq[0]; - /* DataStoreRead: '/Data Store Read6' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read6' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[6] = rtDW.PID_TempFLL; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[7] = rtb_DataTypeConversion_bq[4]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private[8] = rtb_DataTypeConversion_bq[5]; for (i = 0; i < 9; i++) { - /* Product: '/Product' */ - Valve_2_way = rtDW.BUS_ADR_private[i]; + /* Product: '/Product' */ + fan_speed_out = rtDW.BUS_ADR_private[i]; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * Product: '/Divide1' - * Product: '/Product' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + * Product: '/Divide1' + * Product: '/Product' */ - rtDW.POS_private[i] = (uint16_t)((double)(Valve_2_way * + rtDW.POS_private[i] = (uint16_t)((double)(fan_speed_out * rtDW.MaxPositionCh0_private[i]) / 100.0); - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreWrite: '/Data Store Write2' + /* RelationalOperator: '/Relational Operator1' incorporates: + * DataStoreWrite: '/Data Store Write2' */ - rtb_LogicalOperator3_i5[i] = (rtb_DataTypeConversion_bh[i] == - Valve_2_way); + rtb_LogicalOperator3_nq[i] = (rtb_DataTypeConversion_bh[i] == + fan_speed_out); } - /* Logic: '/Logical Operator' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && + rtb_LogicalOperator3_nq[i + 1]); } for (i = 0; i < 9; i++) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant4' - * Constant: '/Constant9' - * DataStoreWrite: '/Data Store Write1' - * Logic: '/Logical Operator' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant4' + * Constant: '/Constant9' + * DataStoreWrite: '/Data Store Write1' + * Logic: '/Logical Operator' */ - if (rtb_LogicalOperator1_n) { + if (rtb_LogicalOperator3) { rtDW.COM_private[i] = 0U; } else { rtDW.COM_private[i] = 3U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Concatenate: '/Vector Concatenate' - * Constant: '/Constant5' - * DataStoreWrite: '/Data Store Write2' - * DataStoreWrite: '/Data Store Write7' - * Product: '/Product' - * RelationalOperator: '/Relational Operator' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Concatenate: '/Vector Concatenate' + * Constant: '/Constant5' + * DataStoreWrite: '/Data Store Write2' + * DataStoreWrite: '/Data Store Write7' + * Product: '/Product' + * RelationalOperator: '/Relational Operator' */ rtDW.BUS_ADR_private[i] = (uint8_t)((uint32_t) (rtb_DataTypeConversion_bh[i] != rtDW.BUS_ADR_private[i]) * - rtConstP.pooled106[i]); + rtConstP.pooled95[i]); - /* DataStoreWrite: '/Data Store Write4' incorporates: - * Constant: '/Constant1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * Constant: '/Constant1' */ rtDW.Autos_private[i] = 1U; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant10' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant10' */ rtDW.Stall_private[i] = 1U; - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant11' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Constant11' */ rtDW.Lnoise_private[i] = 0U; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Speed_private[i] = 3U; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Coils_private[i] = 3U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - * SignalConversion generated from: '/step' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' + * SignalConversion generated from: '/step' */ - rtB.Merge_ac = 4; + rtB.Merge_a = 4; - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem4' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem4' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* DataStoreWrite: '/Data Store Write2' */ - rtDW.stepHoming_private = rtB.Merge_ac; + /* DataStoreWrite: '/Data Store Write2' */ + rtDW.stepHoming_private = rtB.Merge_a; - /* Merge: '/Merge' incorporates: - * DataStoreRead: '/Data Store Read7' + /* Merge: '/Merge' incorporates: + * DataStoreRead: '/Data Store Read7' */ rtB.Merge_f1 = rtDW.stepSig_private; - /* End of Outputs for SubSystem: '/Homing' */ + /* End of Outputs for SubSystem: '/Homing' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* DataStoreWrite: '/Finish write stepSig' */ + /* DataStoreWrite: '/Finish write stepSig' */ rtDW.stepSig_private = rtB.Merge_f1; for (i = 0; i < 9; i++) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read3' - * DataStoreRead: '/Data Store Read4' - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/Data Store Read6' - * DataStoreRead: '/Data Store Read7' - * DataStoreRead: '/Data Store Read8' - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read3' + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/Data Store Read6' + * DataStoreRead: '/Data Store Read7' + * DataStoreRead: '/Data Store Read8' + * DataStoreWrite: '/Data Store Write' */ Actuator_Ch0_Command_Model.POS[i] = rtDW.POS_private[i]; Actuator_Ch0_Command_Model.BUS_ADR[i] = rtDW.BUS_ADR_private[i]; @@ -22321,424 +28654,424 @@ void HVAC_model_step(void) Actuator_Ch0_Command_Model.Speed_SET[i] = rtDW.Speed_private[i]; Actuator_Ch0_Command_Model.Coils_Stop_SET[i] = rtDW.Coils_private[i]; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read2' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read2' */ - rtb_LogicalOperator3_i5[i] = (rtDW.ErrorCalibration_private[i] == 0); + rtb_LogicalOperator3_nq[i] = (rtDW.ErrorCalibration_private[i] == 0); } - /* Logic: '/Logical Operator' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 || rtb_LogicalOperator3_nq[i + + 1]); } for (i = 0; i < 9; i++) { - /* Switch: '/Switch1' incorporates: - * Concatenate: '/Vector Concatenate' - * Constant: '/Constant' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read2' - * DataStoreWrite: '/Data Store Write7' - * Logic: '/Logical Operator' - * Product: '/Product' + /* Switch: '/Switch1' incorporates: + * Concatenate: '/Vector Concatenate' + * Constant: '/Constant' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read2' + * DataStoreWrite: '/Data Store Write7' + * Logic: '/Logical Operator' + * Product: '/Product' */ - if (rtb_LogicalOperator1_n) { + if (rtb_LogicalOperator3) { rtDW.BUS_ADR_private[i] = (uint8_t)((uint32_t) - rtDW.ErrorCalibration_private[i] * rtConstP.pooled106[i]); + rtDW.ErrorCalibration_private[i] * rtConstP.pooled95[i]); } else { rtDW.BUS_ADR_private[i] = 0U; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.COM_private[i] = 0U; } - /* DataTypeConversion: '/Data Type Conversion' */ + /* DataTypeConversion: '/Data Type Conversion' */ for (i = 0; i < 6; i++) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Gain: '/Gain' - * Product: '/Divide' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read' + * Gain: '/Gain' + * Product: '/Divide' */ - rtb_FLU_tg_correct_g = rtDW.MaxPositionCh1_private[i]; - if (rtb_FLU_tg_correct_g != 0) { - rtb_u8Vtg_FX_plus = (double)Actuator_Ch1_Status_Model.in_CPOS_ALL[i] / - (double)rtb_FLU_tg_correct_g * 100.0; + rtb_FLU_tg_correct_l = rtDW.MaxPositionCh1_private[i]; + if (rtb_FLU_tg_correct_l != 0) { + rtb_Divide1_cf = (double)Actuator_Ch1_Status_Model.in_CPOS_ALL[i] / + (double)rtb_FLU_tg_correct_l * 100.0; } else { - rtb_u8Vtg_FX_plus = 0.0; + rtb_Divide1_cf = 0.0; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Saturate: '/Saturation' */ - if (rtb_u8Vtg_FX_plus > 100.0) { + /* Saturate: '/Saturation' */ + if (rtb_Divide1_cf > 100.0) { rtb_DataTypeConversion_bq[i] = 100U; - } else if (rtb_u8Vtg_FX_plus < 0.0) { + } else if (rtb_Divide1_cf < 0.0) { rtb_DataTypeConversion_bq[i] = 0U; } else { - rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_u8Vtg_FX_plus; + rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_Divide1_cf; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ } - /* End of DataTypeConversion: '/Data Type Conversion' */ + /* End of DataTypeConversion: '/Data Type Conversion' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant1' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant1' */ rtb_DataTypeConversion_bq[6] = 0U; rtb_DataTypeConversion_bq[7] = 0U; rtb_DataTypeConversion_bq[8] = 0U; - /* DataStoreWrite: '/Data Store Write2' */ + /* DataStoreWrite: '/Data Store Write2' */ for (i = 0; i < 9; i++) { Actuator_pos_percent_Ch1[i] = rtb_DataTypeConversion_bq[i]; } - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read2' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read2' */ if (rtDW.stepSig_private_h > 0) { - rtb_y_b2 = rtDW.stepSig_private_h; + rtb_y_c = rtDW.stepSig_private_h; } else { - rtb_y_b2 = 1; + rtb_y_c = 1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* SwitchCase: '/Switch Case' */ - switch (rtb_y_b2) { + /* SwitchCase: '/Switch Case' */ + switch (rtb_y_c) { case 1: - /* Outputs for IfAction SubSystem: '/Stop Mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Stop Mode' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch1_Status_Model.Busy == 0) && (Actuator_Ch1_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.COM_private_g[i] = 1U; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.MODE_private_b[i] = 2U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_e = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_e = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 2] Stop Mode\n'); */ printf("[LIN 2] Stop Mode\n"); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_e = rtb_y_b2; + rtB.Merge_e = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Stop Mode' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Stop Mode' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Initial CPOS Min' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Initial CPOS Min' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch1_Status_Model.Busy == 0) && (Actuator_Ch1_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.POS_private_m[i] = 6000U; - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.COM_private_g[i] = 2U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Merge: '/Merge' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Merge: '/Merge' + * Sum: '/step inc' */ - rtB.Merge_e = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_e = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 2] Initial CPOS Min\n'); */ printf("[LIN 2] Initial CPOS Min\n"); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * Merge: '/Merge' - * SignalConversion generated from: '/stepIn1' + /* Merge: '/Merge' incorporates: + * Merge: '/Merge' + * SignalConversion generated from: '/stepIn1' */ - rtB.Merge_e = rtb_y_b2; + rtB.Merge_e = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/Initial CPOS Min' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/Initial CPOS Min' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Normal Mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Normal Mode' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch1_Status_Model.Busy == 0) && (Actuator_Ch1_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.MODE_private_b[i] = 0U; - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.COM_private_g[i] = 1U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_e = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_e = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('LIN 2] Normal Mode\n'); */ printf("LIN 2] Normal Mode\n"); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_e = rtb_y_b2; + rtB.Merge_e = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Normal Mode' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Normal Mode' */ break; case 4: - /* Outputs for IfAction SubSystem: '/Move to position Min' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Move to position Min' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch1_Status_Model.Busy == 0) && (Actuator_Ch1_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write4' incorporates: - * Constant: '/Constant1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * Constant: '/Constant1' */ rtDW.Autos_private_n[i] = 1U; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant10' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant10' */ rtDW.Stall_private_l[i] = 1U; - /* DataStoreWrite: '/Data Store Write3' */ + /* DataStoreWrite: '/Data Store Write3' */ rtDW.Lnoise_private_n[i] = 0U; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Speed_private_j[i] = 3U; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Coils_private_c[i] = 3U; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.POS_private_m[i] = 0U; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * Constant: '/Constant9' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/Constant9' */ rtDW.COM_private_g[i] = 3U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_e = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_e = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 2] Move to position Min\n'); */ printf("[LIN 2] Move to position Min\n"); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_e = rtb_y_b2; + rtB.Merge_e = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Move to position Min' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Move to position Min' */ break; case 5: - /* Outputs for IfAction SubSystem: '/Check Stall Min' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Check Stall Min' incorporates: + * ActionPort: '/Action Port' */ - /* Logic: '/Logical Operator3' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Logic: '/Logical Operator1' - * Logic: '/Logical Operator2' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' + /* Logic: '/Logical Operator3' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator1' + * Logic: '/Logical Operator2' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' */ for (i = 0; i < 6; i++) { - rtb_LogicalOperator3_n1[i] = + rtb_LogicalOperator3_k[i] = ((Actuator_Ch1_Status_Model.in_Act_Stall_Slave[i] == 1) || (Actuator_Ch1_Status_Model.in_CPOS_ALL[i] == 0) || (rtDW.ErrorCalibration_private_p[i] == 0)); } - /* End of Logic: '/Logical Operator3' */ + /* End of Logic: '/Logical Operator3' */ - /* Logic: '/Logical Operator' incorporates: - * Logic: '/Logical Operator3' + /* Logic: '/Logical Operator' incorporates: + * Logic: '/Logical Operator3' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_n1[0]; + rtb_LogicalOperator3 = rtb_LogicalOperator3_k[0]; for (i = 0; i < 5; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && - rtb_LogicalOperator3_n1[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && rtb_LogicalOperator3_k[i + + 1]); } - /* If: '/If2' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - * Logic: '/Logical Operator' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If2' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * Logic: '/Logical Operator' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch1_Status_Model.Busy == 0) && - (Actuator_Ch1_Status_Model.Error_Connect == 0) && rtb_LogicalOperator1_n) + (Actuator_Ch1_Status_Model.Error_Connect == 0) && rtb_LogicalOperator3) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ for (i = 0; i < 9; i++) { - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read1' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read1' */ if (rtDW.ErrorCalibration_private_p[i] != 0) { rtDW.MinPositionCh1_private[i] = Actuator_Ch1_Status_Model.in_CPOS_ALL[i]; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of DataStoreWrite: '/Data Store Write1' */ + /* End of DataStoreWrite: '/Data Store Write1' */ - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_e = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_e = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 2] Check Stall Min\n'); */ printf("[LIN 2] Check Stall Min\n"); fflush(stdout); @@ -22755,209 +29088,209 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_e = rtb_y_b2; + rtB.Merge_e = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If2' */ - /* End of Outputs for SubSystem: '/Check Stall Min' */ + /* End of If: '/If2' */ + /* End of Outputs for SubSystem: '/Check Stall Min' */ break; case 6: - /* Outputs for IfAction SubSystem: '/Initial CPOS Max' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Initial CPOS Max' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch1_Status_Model.Busy == 0) && (Actuator_Ch1_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.COM_private_g[i] = 2U; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.POS_private_m[i] = 0U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_e = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_e = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 2] Initial CPOS Max\n'); */ printf("[LIN 2] Initial CPOS Max\n"); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_e = rtb_y_b2; + rtB.Merge_e = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Initial CPOS Max' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Initial CPOS Max' */ break; case 7: - /* Outputs for IfAction SubSystem: '/Move to position Max' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Move to position Max' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch1_Status_Model.Busy == 0) && (Actuator_Ch1_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write4' incorporates: - * Constant: '/Constant1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * Constant: '/Constant1' */ rtDW.Autos_private_n[i] = 1U; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant10' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant10' */ rtDW.Stall_private_l[i] = 1U; - /* DataStoreWrite: '/Data Store Write3' */ + /* DataStoreWrite: '/Data Store Write3' */ rtDW.Lnoise_private_n[i] = 0U; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Speed_private_j[i] = 3U; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Coils_private_c[i] = 3U; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.POS_private_m[i] = 6000U; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * Constant: '/Constant9' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/Constant9' */ rtDW.COM_private_g[i] = 3U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_e = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_e = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 2] Move to position Max\n'); */ printf("[LIN 2] Move to position Max\n"); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_e = rtb_y_b2; + rtB.Merge_e = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Move to position Max' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Move to position Max' */ break; case 8: - /* Outputs for IfAction SubSystem: '/Check Stall Max' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Check Stall Max' incorporates: + * ActionPort: '/Action Port' */ - /* Logic: '/Logical Operator3' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Logic: '/Logical Operator' - * Logic: '/Logical Operator2' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' + /* Logic: '/Logical Operator3' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator' + * Logic: '/Logical Operator2' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' */ for (i = 0; i < 6; i++) { - rtb_LogicalOperator3_n1[i] = + rtb_LogicalOperator3_k[i] = ((Actuator_Ch1_Status_Model.in_Act_Stall_Slave[i] == 1) || (Actuator_Ch1_Status_Model.in_CPOS_ALL[i] == 6000) || (rtDW.ErrorCalibration_private_p[i] == 0)); } - /* End of Logic: '/Logical Operator3' */ + /* End of Logic: '/Logical Operator3' */ - /* Logic: '/Logical Operator1' incorporates: - * Logic: '/Logical Operator3' + /* Logic: '/Logical Operator1' incorporates: + * Logic: '/Logical Operator3' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_n1[0]; + rtb_LogicalOperator3 = rtb_LogicalOperator3_k[0]; for (i = 0; i < 5; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && - rtb_LogicalOperator3_n1[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && rtb_LogicalOperator3_k[i + + 1]); } - /* If: '/If2' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - * Logic: '/Logical Operator1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If2' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * Logic: '/Logical Operator1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch1_Status_Model.Busy == 0) && - (Actuator_Ch1_Status_Model.Error_Connect == 0) && rtb_LogicalOperator1_n) + (Actuator_Ch1_Status_Model.Error_Connect == 0) && rtb_LogicalOperator3) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ for (i = 0; i < 9; i++) { - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read1' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read1' */ if (rtDW.ErrorCalibration_private_p[i] != 0) { rtDW.MaxPositionCh1_private[i] = @@ -22966,22 +29299,22 @@ void HVAC_model_step(void) rtDW.MaxPositionCh1_private[i] = 0; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of DataStoreWrite: '/Data Store Write1' */ + /* End of DataStoreWrite: '/Data Store Write1' */ - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_e = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_e = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 2] Check Stall MAX\n'); */ printf("[LIN 2] Check Stall MAX\n"); fflush(stdout); @@ -22998,85 +29331,84 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_e = rtb_y_b2; + rtB.Merge_e = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If2' */ - /* End of Outputs for SubSystem: '/Check Stall Max' */ + /* End of If: '/If2' */ + /* End of Outputs for SubSystem: '/Check Stall Max' */ break; case 9: - /* Outputs for IfAction SubSystem: '/Homing' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Homing' incorporates: + * ActionPort: '/Action Port' */ - /* Product: '/Divide1' incorporates: - * Constant: '/ACT1' - * DataStoreRead: '/MAX ACT1T ' + /* Product: '/Divide1' incorporates: + * Constant: '/ACT1' + * DataStoreRead: '/MAX ACT1T ' */ for (i = 0; i < 6; i++) { - rtb_Divide1_e[i] = (double)rtDW.MaxPositionCh1_private[i] / (double) + rtb_Divide1_pb[i] = (double)rtDW.MaxPositionCh1_private[i] / (double) rtConstP.ACT1_Value_c[i]; } - /* End of Product: '/Divide1' */ + /* End of Product: '/Divide1' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant' */ - rtb_Divide1_e[6] = 1.0; - rtb_Divide1_e[7] = 1.0; - rtb_Divide1_e[8] = 1.0; + rtb_Divide1_pb[6] = 1.0; + rtb_Divide1_pb[7] = 1.0; + rtb_Divide1_pb[8] = 1.0; - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read4' + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read4' */ switch (rtDW.stepHoming_private_f) { case 0: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* RelationalOperator: '/Compare' */ - rtb_u8Vtg_FX_plus = rtb_Divide1_e[i]; + /* RelationalOperator: '/Compare' */ + rtb_Divide1 = rtb_Divide1_pb[i]; - /* Logic: '/Logical Operator' incorporates: - * Constant: '/Constant' - * Constant: '/Constant' - * RelationalOperator: '/Compare' - * RelationalOperator: '/Compare' + /* Logic: '/Logical Operator' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' */ - rtb_LogicalOperator1 = ((rtb_u8Vtg_FX_plus >= 0.9) && (rtb_u8Vtg_FX_plus - <= 1.1)); - rtb_LogicalOperator3_i5[i] = rtb_LogicalOperator1; + rtb_err = ((rtb_Divide1 >= 0.6) && (rtb_Divide1 <= 1.5)); + rtb_LogicalOperator3_nq[i] = rtb_err; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * Logic: '/Logical Operator' - * Logic: '/Logical Operator1' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + * Logic: '/Logical Operator' + * Logic: '/Logical Operator1' */ - rtDW.ErrorCalibration_private_p[i] = (uint8_t)((!rtb_LogicalOperator1) && + rtDW.ErrorCalibration_private_p[i] = (uint8_t)((!rtb_err) && (rtDW.ErrorCalibration_private_p[i] != 0)); } - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/MIN ACT1T 1' - * Logic: '/Logical Operator2' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/MIN ACT1T 1' + * Logic: '/Logical Operator2' */ /* : if(LOGGER>0) */ - if (rtDW.LOGGER_LIN > 0.0) { + if (rtb_DataTypeConversion7 > 0.0) { /* : fprintf("[LIN 2] Homing 0\n"); */ printf("[LIN 2] Homing 0\n"); fflush(stdout); @@ -23086,92 +29418,92 @@ void HVAC_model_step(void) /* : fprintf('[LIN 2] ACT%d MAX = %d KOEF = %f Callibration = %d \n', int16(i), int16(MAX(i)), KOEF(i), int16(ERRORS(i))); */ printf("[LIN 2] ACT%d MAX = %d KOEF = %f Callibration = %d \n", (int16_t)(i + 1), rtDW.MaxPositionCh1_private[i], - rtb_Divide1_e[i], (int16_t)!rtb_LogicalOperator3_i5[i]); + rtb_Divide1_pb[i], (int16_t)!rtb_LogicalOperator3_nq[i]); fflush(stdout); } } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* Logic: '/Logical Operator1' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator1' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && + rtb_LogicalOperator3_nq[i + 1]); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator1' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator1' */ - if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + if (rtb_LogicalOperator3) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_p = 4; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' */ rtB.Merge_p = 1; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ for (i = 0; i < 9; i++) { - rtb_LogicalOperator3_i5[i] = (rtb_Divide1_e[i] > 1.5); + rtb_LogicalOperator3_nq[i] = (rtb_Divide1_pb[i] > 1.5); } - /* End of RelationalOperator: '/Compare' */ + /* End of RelationalOperator: '/Compare' */ - /* Logic: '/Logical Operator' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 || + rtb_LogicalOperator3_nq[i + 1]); } - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write1' - * Logic: '/Logical Operator' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreWrite: '/Data Store Write1' + * Logic: '/Logical Operator' */ - rtDW.CCU_ActuatorErrF_Stat_private = rtb_LogicalOperator1_n; + rtDW.CCU_ActuatorErrF_Stat_private = rtb_LogicalOperator3; for (i = 0; i < 9; i++) { - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreWrite: '/Data Store Write2' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataStoreWrite: '/Data Store Write2' */ - rtb_LogicalOperator1 = rtb_LogicalOperator3_i5[i]; - rtDW.COM_private_g[i] = rtb_LogicalOperator1; + rtb_err = rtb_LogicalOperator3_nq[i]; + rtDW.COM_private_g[i] = rtb_err; - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write3' - * Logic: '/Logical Operator1' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write3' + * Logic: '/Logical Operator1' */ - rtDW.ErrorActuator_o[i] = (uint8_t)(rtb_LogicalOperator1 || - (rtDW.ErrorActuator_o[i] != 0)); + rtDW.ErrorActuator_o[i] = (uint8_t)(rtb_err || (rtDW.ErrorActuator_o[i] + != 0)); - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.MODE_private_b[i] = 2U; } - /* MATLAB Function: '/Write ERROR' incorporates: - * DataStoreRead: '/Data Store Read6' + /* MATLAB Function: '/Write ERROR' incorporates: + * DataStoreRead: '/Data Store Read6' */ /* : if(LOGGER>=0) */ - if (rtDW.LOGGER_LIN >= 0.0) { + if (rtb_DataTypeConversion7 >= 0.0) { /* : for i = 1:numel(ErrCallibration) */ for (i = 0; i < 9; i++) { /* : if ErrCallibration(i) == 1 */ - if (rtb_LogicalOperator3_i5[i]) { + if (rtb_LogicalOperator3_nq[i]) { /* : fprintf('[LIN 2] Failure with actuator #%d\n', int16(i)); */ printf("[LIN 2] Failure with actuator #%d\n", (int16_t)(i + 1)); fflush(stdout); @@ -23179,38 +29511,38 @@ void HVAC_model_step(void) } } - /* End of MATLAB Function: '/Write ERROR' */ + /* End of MATLAB Function: '/Write ERROR' */ for (i = 0; i < 9; i++) { - /* Logic: '/Logical Operator1' */ - rtb_LogicalOperator1 = rtb_LogicalOperator3_i5[i]; + /* Logic: '/Logical Operator1' */ + rtb_err = rtb_LogicalOperator3_nq[i]; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * Logic: '/Logical Operator' - * Logic: '/Logical Operator1' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + * Logic: '/Logical Operator' + * Logic: '/Logical Operator1' */ - rtDW.ErrorCalibration_private_p[i] = (uint8_t)((!rtb_LogicalOperator1) && + rtDW.ErrorCalibration_private_p[i] = (uint8_t)((!rtb_err) && (rtDW.ErrorCalibration_private_p[i] != 0)); - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtDW.dtc_state_error_model[i + 54] = rtb_LogicalOperator1; + rtDW.dtc_state_error_model[i + 54] = rtb_err; } - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.stepSig_private_h = 1; - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/MIN ACT1T 1' - * DataStoreWrite: '/Data Store Write' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/MIN ACT1T 1' + * DataStoreWrite: '/Data Store Write' */ /* : if(LOGGER>0) */ - if (rtDW.LOGGER_LIN > 0.0) { + if (rtb_DataTypeConversion7 > 0.0) { /* : fprintf("[LIN 2] Homing 1. Start Callibration \n"); */ printf("[LIN 2] Homing 1. Start Callibration \n"); fflush(stdout); @@ -23222,76 +29554,75 @@ void HVAC_model_step(void) /* : fprintf('[LIN 2] ACT%d MAX = %d KOEF = %f Callibration = %d \n', int16(i), int16(MAX(i)), KOEF(i), int16(ERRORS(i))); */ printf("[LIN 2] ACT%d MAX = %d KOEF = %f Callibration = %d \n", (int16_t)(i + 1), rtDW.MaxPositionCh1_private[i], - rtb_Divide1_e[i], (int16_t)rtDW.ErrorCalibration_private_p[i]); + rtb_Divide1_pb[i], (int16_t)rtDW.ErrorCalibration_private_p[i]); fflush(stdout); } } } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* Logic: '/Logical Operator2' incorporates: - * DataStoreWrite: '/Data Store Write' + /* Logic: '/Logical Operator2' incorporates: + * DataStoreWrite: '/Data Store Write' */ - rtb_LogicalOperator1_n = (rtDW.ErrorCalibration_private_p[0] != 0); + rtb_LogicalOperator3 = (rtDW.ErrorCalibration_private_p[0] != 0); for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || + rtb_LogicalOperator3 = (rtb_LogicalOperator3 || (rtDW.ErrorCalibration_private_p[i + 1] != 0)); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator2' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator2' */ - if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + if (rtb_LogicalOperator3) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_p = 2; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_p = 4; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem1' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem1' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* RelationalOperator: '/Compare' */ - rtb_u8Vtg_FX_plus = rtb_Divide1_e[i]; + /* RelationalOperator: '/Compare' */ + rtb_Divide1 = rtb_Divide1_pb[i]; - /* Logic: '/Logical Operator3' incorporates: - * Constant: '/Constant' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read' - * Logic: '/Logical Operator1' - * Logic: '/Logical Operator4' - * RelationalOperator: '/Compare' - * RelationalOperator: '/Compare' + /* Logic: '/Logical Operator3' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator1' + * Logic: '/Logical Operator4' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' */ - rtb_LogicalOperator1 = (((rtb_u8Vtg_FX_plus < 0.97) || - (rtb_u8Vtg_FX_plus > 1.03)) && (rtDW.ErrorCalibration_private_p[i] != - 0)); - rtb_LogicalOperator3_i5[i] = rtb_LogicalOperator1; + rtb_err = (((rtb_Divide1 < 0.97) || (rtb_Divide1 > 1.03)) && + (rtDW.ErrorCalibration_private_p[i] != 0)); + rtb_LogicalOperator3_nq[i] = rtb_err; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreWrite: '/Data Store Write1' */ - rtDW.ErrorCalibration_private_p[i] = rtb_LogicalOperator1; + rtDW.ErrorCalibration_private_p[i] = rtb_err; } - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/MIN ACT1T 1' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/MIN ACT1T 1' */ /* : if(LOGGER>0) */ - if (rtDW.LOGGER_LIN > 0.0) { + if (rtb_DataTypeConversion7 > 0.0) { /* : fprintf("[LIN 2] Homing 3. Callibration \n"); */ printf("[LIN 2] Homing 3. Callibration \n"); fflush(stdout); @@ -23299,94 +29630,94 @@ void HVAC_model_step(void) /* : for i = 1:numel(MAX) */ for (i = 0; i < 6; i++) { /* : if(ERRORS(i)==1) */ - if (rtb_LogicalOperator3_i5[i]) { + if (rtb_LogicalOperator3_nq[i]) { /* : fprintf('[LIN 2] ACT%d MAX = %d KOEF = %f Callibration = %d \n', int16(i), int16(MAX(i)), KOEF(i), int16(ERRORS(i))); */ printf("[LIN 2] ACT%d MAX = %d KOEF = %f Callibration = %d \n", (int16_t)(i + 1), rtDW.MaxPositionCh1_private[i], - rtb_Divide1_e[i], 1); + rtb_Divide1_pb[i], 1); fflush(stdout); } } } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* Logic: '/Logical Operator2' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator2' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 || + rtb_LogicalOperator3_nq[i + 1]); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator2' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator2' */ - if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant3' + if (rtb_LogicalOperator3) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant3' */ rtB.Merge_p = 3; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_p = 4; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem2' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem2' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read5' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read5' */ /* : if(LOGGER>1) */ - if (rtDW.LOGGER_LIN > 1.0) { + if (rtb_DataTypeConversion7 > 1.0) { /* : fprintf("[LIN 2] Homing 3. Start Time on step %d\n",int16(step)); */ - rtb_u8Vtg_FX_plus = rt_roundd(rtDW.ErrorHomming_private_h); - if (rtb_u8Vtg_FX_plus < 32768.0) { - if (rtb_u8Vtg_FX_plus >= -32768.0) { - rtb_FLU_tg_correct_g = (int16_t)rtb_u8Vtg_FX_plus; + rtb_Divide1_cf = rt_roundd(rtDW.ErrorHomming_private_h); + if (rtb_Divide1_cf < 32768.0) { + if (rtb_Divide1_cf >= -32768.0) { + rtb_FLU_tg_correct_l = (int16_t)rtb_Divide1_cf; } else { - rtb_FLU_tg_correct_g = INT16_MIN; + rtb_FLU_tg_correct_l = INT16_MIN; } } else { - rtb_FLU_tg_correct_g = INT16_MAX; + rtb_FLU_tg_correct_l = INT16_MAX; } - printf("[LIN 2] Homing 3. Start Time on step %d\n", rtb_FLU_tg_correct_g); + printf("[LIN 2] Homing 3. Start Time on step %d\n", rtb_FLU_tg_correct_l); fflush(stdout); } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read1' + /* If: '/If' incorporates: + * DataStoreRead: '/Data Store Read1' */ if (rtDW.ErrorHomming_private_h < 10.0) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/MATLAB Function' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' + /* MATLAB Function: '/MATLAB Function' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' */ - MATLABFunction(rtDW.Start_timer_j, rtDW.t_now, &rtb_dt_an, + MATLABFunction(rtDW.Start_timer_j, rtDW.t_now, &rtb_dt_nx, &rtDW.sf_MATLABFunction_hk); - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/Data Store Read5' */ /* : if(LOGGER>1) */ - if (rtDW.LOGGER_LIN > 1.0) { + if (rtb_DataTypeConversion7 > 1.0) { /* : fprintf("[LIN 2] Homing 3. Start TIme dt = %d \n",int32(data)); */ - rtb_Subtract = rtb_dt_an; - if (rtb_dt_an > 2147483647U) { + rtb_Subtract = rtb_dt_nx; + if (rtb_dt_nx > 2147483647U) { rtb_Subtract = 2147483647U; } @@ -23395,384 +29726,385 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* If: '/If' */ - if (rtb_dt_an > 30000U) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* If: '/If' */ + if (rtb_dt_nx > 3600000U) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' */ - IfActionSubsystem(&rtB.Merge_p, &rtDW.ErrorHomming_private_h, - &rtDW.Start_timer_j, &rtDW.stepSig_private_h); + /* Merge: '/Merge' */ + IfActionSubsystem_h(&rtB.Merge_p, &rtDW.ErrorHomming_private_h, + &rtDW.Start_timer_j, &rtDW.stepSig_private_h); - /* End of Outputs for SubSystem: '/If Action Subsystem' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant3' */ rtDW.Start_timer_j = 1.0; - /* DataStoreRead: '/Data Store Read' incorporates: - * Concatenate: '/LIN1' + /* DataStoreRead: '/Data Store Read' incorporates: + * Concatenate: '/LIN1' */ rtDW.BUS_ADR_private_j[0] = rtDW.PID_TempFUR; - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataStoreRead: '/valves target in percent' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataStoreRead: '/valves target in percent' */ for (i = 0; i < 9; i++) { - rtb_DataTypeConversion_fb[i] = (uint8_t)rtb_out_dwb[i]; + rtb_DataTypeConversion_fb[i] = (uint8_t)rtb_out_j[i]; } - /* End of DataTypeConversion: '/Data Type Conversion2' */ + /* End of DataTypeConversion: '/Data Type Conversion2' */ - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' */ rtDW.BUS_ADR_private_j[1] = rtb_DataTypeConversion_fb[2]; - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' */ rtDW.BUS_ADR_private_j[2] = rtb_DataTypeConversion_fb[3]; - /* DataStoreRead: '/Data Store Read2' incorporates: - * Concatenate: '/LIN1' + /* DataStoreRead: '/Data Store Read2' incorporates: + * Concatenate: '/LIN1' */ rtDW.BUS_ADR_private_j[3] = rtDW.PID_TempFRL; - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' */ rtDW.BUS_ADR_private_j[4] = rtb_DataTypeConversion_fb[6]; - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' */ rtDW.BUS_ADR_private_j[5] = rtb_DataTypeConversion_fb[7]; - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' - * DataStoreWrite: '/Data Store Write2' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' + * DataStoreWrite: '/Data Store Write2' */ rtDW.BUS_ADR_private_j[6] = 0U; - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' - * DataStoreWrite: '/Data Store Write2' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' + * DataStoreWrite: '/Data Store Write2' */ rtDW.BUS_ADR_private_j[7] = 0U; - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' - * DataStoreWrite: '/Data Store Write2' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' + * DataStoreWrite: '/Data Store Write2' */ rtDW.BUS_ADR_private_j[8] = 0U; for (i = 0; i < 9; i++) { - /* Product: '/Product' */ - Valve_2_way = rtDW.BUS_ADR_private_j[i]; + /* Product: '/Product' */ + fan_speed_out = rtDW.BUS_ADR_private_j[i]; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * Product: '/Divide1' - * Product: '/Product' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + * Product: '/Divide1' + * Product: '/Product' */ - rtDW.POS_private_m[i] = (uint16_t)((double)(Valve_2_way * + rtDW.POS_private_m[i] = (uint16_t)((double)(fan_speed_out * rtDW.MaxPositionCh1_private[i]) / 100.0); - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreWrite: '/Data Store Write2' + /* RelationalOperator: '/Relational Operator1' incorporates: + * DataStoreWrite: '/Data Store Write2' */ - rtb_LogicalOperator3_i5[i] = (rtb_DataTypeConversion_bq[i] == - Valve_2_way); + rtb_LogicalOperator3_nq[i] = (rtb_DataTypeConversion_bq[i] == + fan_speed_out); } - /* Logic: '/Logical Operator' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && + rtb_LogicalOperator3_nq[i + 1]); } for (i = 0; i < 9; i++) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant4' - * Constant: '/Constant9' - * DataStoreWrite: '/Data Store Write1' - * Logic: '/Logical Operator' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant4' + * Constant: '/Constant9' + * DataStoreWrite: '/Data Store Write1' + * Logic: '/Logical Operator' */ - if (rtb_LogicalOperator1_n) { + if (rtb_LogicalOperator3) { rtDW.COM_private_g[i] = 0U; } else { rtDW.COM_private_g[i] = 3U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Concatenate: '/LIN1' - * Constant: '/Constant5' - * DataStoreWrite: '/Data Store Write2' - * DataStoreWrite: '/Data Store Write7' - * Product: '/Product' - * RelationalOperator: '/Relational Operator' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Concatenate: '/LIN1' + * Constant: '/Constant5' + * DataStoreWrite: '/Data Store Write2' + * DataStoreWrite: '/Data Store Write7' + * Product: '/Product' + * RelationalOperator: '/Relational Operator' */ rtDW.BUS_ADR_private_j[i] = (uint8_t)((uint32_t) (rtb_DataTypeConversion_bq[i] != rtDW.BUS_ADR_private_j[i]) * - rtConstP.pooled106[i]); + rtConstP.pooled95[i]); - /* DataStoreWrite: '/Data Store Write4' incorporates: - * Constant: '/Constant1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * Constant: '/Constant1' */ rtDW.Autos_private_n[i] = 1U; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant10' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant10' */ rtDW.Stall_private_l[i] = 1U; - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant11' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Constant11' */ rtDW.Lnoise_private_n[i] = 0U; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Speed_private_j[i] = 3U; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Coils_private_c[i] = 3U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - * Merge: '/Merge' - * SignalConversion generated from: '/Out1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' + * Merge: '/Merge' + * SignalConversion generated from: '/Out1' */ rtB.Merge_p = 3; - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/If Action Subsystem' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - IfActionSubsystem1(&rtB.Merge_p, &rtDW.CCU_ActuatorErrF_Stat_private, - rtDW.COM_private_g, rtDW.ErrorActuator_o, - rtDW.ErrorCalibration_private_p, &rtDW.LOGGER_LIN, - rtDW.MODE_private_b, rtDW.dtc_state_error_model); + IfActionSubsystem1_h(&rtB.Merge_p, &rtDW.CCU_ActuatorErrF_Stat_private, + rtDW.COM_private_g, rtDW.ErrorActuator_o, + rtDW.ErrorCalibration_private_p, + &rtb_DataTypeConversion7, rtDW.MODE_private_b, + rtDW.dtc_state_error_model); - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem3' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem3' */ break; case 4: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem4' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem4' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreRead: '/Data Store Read' incorporates: - * Concatenate: '/LIN1' + /* DataStoreRead: '/Data Store Read' incorporates: + * Concatenate: '/LIN1' */ rtDW.BUS_ADR_private_j[0] = rtDW.PID_TempFUR; - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataStoreRead: '/valves target in percent' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataStoreRead: '/valves target in percent' */ for (i = 0; i < 9; i++) { - rtb_DataTypeConversion_fb[i] = (uint8_t)rtb_out_dwb[i]; + rtb_DataTypeConversion_fb[i] = (uint8_t)rtb_out_j[i]; } - /* End of DataTypeConversion: '/Data Type Conversion2' */ + /* End of DataTypeConversion: '/Data Type Conversion2' */ - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' */ rtDW.BUS_ADR_private_j[1] = rtb_DataTypeConversion_fb[2]; - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' */ rtDW.BUS_ADR_private_j[2] = rtb_DataTypeConversion_fb[3]; - /* DataStoreRead: '/Data Store Read2' incorporates: - * Concatenate: '/LIN1' + /* DataStoreRead: '/Data Store Read2' incorporates: + * Concatenate: '/LIN1' */ rtDW.BUS_ADR_private_j[3] = rtDW.PID_TempFRL; - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' */ rtDW.BUS_ADR_private_j[4] = rtb_DataTypeConversion_fb[6]; - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' */ rtDW.BUS_ADR_private_j[5] = rtb_DataTypeConversion_fb[7]; - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' - * DataStoreWrite: '/Data Store Write2' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' + * DataStoreWrite: '/Data Store Write2' */ rtDW.BUS_ADR_private_j[6] = 0U; - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' - * DataStoreWrite: '/Data Store Write2' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' + * DataStoreWrite: '/Data Store Write2' */ rtDW.BUS_ADR_private_j[7] = 0U; - /* SignalConversion generated from: '/LIN1' incorporates: - * Concatenate: '/LIN1' - * DataStoreWrite: '/Data Store Write2' + /* SignalConversion generated from: '/LIN1' incorporates: + * Concatenate: '/LIN1' + * DataStoreWrite: '/Data Store Write2' */ rtDW.BUS_ADR_private_j[8] = 0U; for (i = 0; i < 9; i++) { - /* Product: '/Product' */ - Valve_2_way = rtDW.BUS_ADR_private_j[i]; + /* Product: '/Product' */ + fan_speed_out = rtDW.BUS_ADR_private_j[i]; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * Product: '/Divide1' - * Product: '/Product' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + * Product: '/Divide1' + * Product: '/Product' */ - rtDW.POS_private_m[i] = (uint16_t)((double)(Valve_2_way * + rtDW.POS_private_m[i] = (uint16_t)((double)(fan_speed_out * rtDW.MaxPositionCh1_private[i]) / 100.0); - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreWrite: '/Data Store Write2' + /* RelationalOperator: '/Relational Operator1' incorporates: + * DataStoreWrite: '/Data Store Write2' */ - rtb_LogicalOperator3_i5[i] = (rtb_DataTypeConversion_bq[i] == - Valve_2_way); + rtb_LogicalOperator3_nq[i] = (rtb_DataTypeConversion_bq[i] == + fan_speed_out); } - /* Logic: '/Logical Operator' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && + rtb_LogicalOperator3_nq[i + 1]); } for (i = 0; i < 9; i++) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant4' - * Constant: '/Constant9' - * DataStoreWrite: '/Data Store Write1' - * Logic: '/Logical Operator' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant4' + * Constant: '/Constant9' + * DataStoreWrite: '/Data Store Write1' + * Logic: '/Logical Operator' */ - if (rtb_LogicalOperator1_n) { + if (rtb_LogicalOperator3) { rtDW.COM_private_g[i] = 0U; } else { rtDW.COM_private_g[i] = 3U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Concatenate: '/LIN1' - * Constant: '/Constant5' - * DataStoreWrite: '/Data Store Write2' - * DataStoreWrite: '/Data Store Write7' - * Product: '/Product' - * RelationalOperator: '/Relational Operator' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Concatenate: '/LIN1' + * Constant: '/Constant5' + * DataStoreWrite: '/Data Store Write2' + * DataStoreWrite: '/Data Store Write7' + * Product: '/Product' + * RelationalOperator: '/Relational Operator' */ rtDW.BUS_ADR_private_j[i] = (uint8_t)((uint32_t) (rtb_DataTypeConversion_bq[i] != rtDW.BUS_ADR_private_j[i]) * - rtConstP.pooled106[i]); + rtConstP.pooled95[i]); - /* DataStoreWrite: '/Data Store Write4' incorporates: - * Constant: '/Constant1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * Constant: '/Constant1' */ rtDW.Autos_private_n[i] = 1U; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant10' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant10' */ rtDW.Stall_private_l[i] = 1U; - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant11' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Constant11' */ rtDW.Lnoise_private_n[i] = 0U; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Speed_private_j[i] = 3U; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Coils_private_c[i] = 3U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - * SignalConversion generated from: '/step' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' + * SignalConversion generated from: '/step' */ rtB.Merge_p = 4; - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/Data Store Read5' */ /* : if(LOGGER>0) */ - if (rtDW.LOGGER_LIN > 0.0) { + if (rtb_DataTypeConversion7 > 0.0) { /* : fprintf("[LIN 2] Homing. Callibration successful \n"); */ printf("[LIN 2] Homing. Callibration successful \n"); fflush(stdout); } - /* End of MATLAB Function: '/MAX POSITION' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem4' */ + /* End of MATLAB Function: '/MAX POSITION' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem4' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* DataStoreWrite: '/Data Store Write2' */ + /* DataStoreWrite: '/Data Store Write2' */ rtDW.stepHoming_private_f = rtB.Merge_p; - /* Merge: '/Merge' incorporates: - * DataStoreRead: '/Data Store Read7' + /* Merge: '/Merge' incorporates: + * DataStoreRead: '/Data Store Read7' */ rtB.Merge_e = rtDW.stepSig_private_h; - /* End of Outputs for SubSystem: '/Homing' */ + /* End of Outputs for SubSystem: '/Homing' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* DataStoreWrite: '/Finish write stepSig' */ + /* DataStoreWrite: '/Finish write stepSig' */ rtDW.stepSig_private_h = rtB.Merge_e; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read3' - * DataStoreRead: '/Data Store Read4' - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/Data Store Read6' - * DataStoreRead: '/Data Store Read7' - * DataStoreRead: '/Data Store Read8' - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read3' + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/Data Store Read6' + * DataStoreRead: '/Data Store Read7' + * DataStoreRead: '/Data Store Read8' + * DataStoreWrite: '/Data Store Write' */ for (i = 0; i < 9; i++) { Actuator_Ch1_Command_Model.POS[i] = rtDW.POS_private_m[i]; @@ -23786,33 +30118,33 @@ void HVAC_model_step(void) Actuator_Ch1_Command_Model.Coils_Stop_SET[i] = rtDW.Coils_private_c[i]; } - /* End of BusCreator: '/Bus Creator' */ + /* End of BusCreator: '/Bus Creator' */ - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read2' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read2' */ for (i = 0; i < 6; i++) { - rtb_Compare_le[i] = (rtDW.ErrorCalibration_private_p[i] == 0); + rtb_Compare_fe[i] = (rtDW.ErrorCalibration_private_p[i] == 0); } - /* End of RelationalOperator: '/Compare' */ + /* End of RelationalOperator: '/Compare' */ - /* Logic: '/Logical Operator' */ - rtb_LogicalOperator1_n = rtb_Compare_le[0]; + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator3 = rtb_Compare_fe[0]; for (i = 0; i < 5; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || rtb_Compare_le[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 || rtb_Compare_fe[i + 1]); } - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read2' - * Logic: '/Logical Operator' - * Product: '/Product' + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read2' + * Logic: '/Logical Operator' + * Product: '/Product' */ for (i = 0; i < 6; i++) { - if (rtb_LogicalOperator1_n) { + if (rtb_LogicalOperator3) { rtb_DataTypeConversion_bq[i] = (uint8_t)((uint32_t) rtDW.ErrorCalibration_private_p[i] * rtConstP.Constant3_Value[i]); } else { @@ -23820,401 +30152,401 @@ void HVAC_model_step(void) } } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant1' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant1' */ rtb_DataTypeConversion_bq[6] = 0U; rtb_DataTypeConversion_bq[7] = 0U; rtb_DataTypeConversion_bq[8] = 0U; for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Concatenate: '/LIN1' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Concatenate: '/LIN1' */ rtDW.BUS_ADR_private_j[i] = rtb_DataTypeConversion_bq[i]; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.COM_private_g[i] = 0U; } - /* DataTypeConversion: '/Data Type Conversion' */ + /* DataTypeConversion: '/Data Type Conversion' */ for (i = 0; i < 8; i++) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Gain: '/Gain' - * Product: '/Divide' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read' + * Gain: '/Gain' + * Product: '/Divide' */ - rtb_FLU_tg_correct_g = rtDW.MaxPositionCh2_private[i]; - if (rtb_FLU_tg_correct_g != 0) { - rtb_u8Vtg_FX_plus = (double)Actuator_Ch2_Status_Model.in_CPOS_ALL[i] / - (double)rtb_FLU_tg_correct_g * 100.0; + rtb_FLU_tg_correct_l = rtDW.MaxPositionCh2_private[i]; + if (rtb_FLU_tg_correct_l != 0) { + rtb_Divide1_cf = (double)Actuator_Ch2_Status_Model.in_CPOS_ALL[i] / + (double)rtb_FLU_tg_correct_l * 100.0; } else { - rtb_u8Vtg_FX_plus = 0.0; + rtb_Divide1_cf = 0.0; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Saturate: '/Saturation' */ - if (rtb_u8Vtg_FX_plus > 100.0) { + /* Saturate: '/Saturation' */ + if (rtb_Divide1_cf > 100.0) { rtb_DataTypeConversion_bq[i] = 100U; - } else if (rtb_u8Vtg_FX_plus < 0.0) { + } else if (rtb_Divide1_cf < 0.0) { rtb_DataTypeConversion_bq[i] = 0U; } else { - rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_u8Vtg_FX_plus; + rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_Divide1_cf; } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ } - /* End of DataTypeConversion: '/Data Type Conversion' */ + /* End of DataTypeConversion: '/Data Type Conversion' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant1' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant1' */ rtb_DataTypeConversion_bq[8] = 0U; - /* DataStoreWrite: '/Data Store Write2' */ + /* DataStoreWrite: '/Data Store Write2' */ for (i = 0; i < 9; i++) { rtb_DataTypeConversion_fb[i] = rtb_DataTypeConversion_bq[i]; } - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read2' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read2' */ if (rtDW.stepSig_private_g > 0) { - rtb_y_b2 = rtDW.stepSig_private_g; + rtb_y_c = rtDW.stepSig_private_g; } else { - rtb_y_b2 = 1; + rtb_y_c = 1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* SwitchCase: '/Switch Case' */ - switch (rtb_y_b2) { + /* SwitchCase: '/Switch Case' */ + switch (rtb_y_c) { case 1: - /* Outputs for IfAction SubSystem: '/Stop Mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Stop Mode' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch2_Status_Model.Busy == 0) && (Actuator_Ch2_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.COM_private_k[i] = 1U; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.MODE_private_c[i] = 2U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_b4 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_b4 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 3] Stop Mode\n'); */ printf("[LIN 3] Stop Mode\n"); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_b4 = rtb_y_b2; + rtB.Merge_b4 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Stop Mode' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Stop Mode' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Initial CPOS Min' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Initial CPOS Min' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch2_Status_Model.Busy == 0) && (Actuator_Ch2_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.POS_private_h[i] = 6000U; - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.COM_private_k[i] = 2U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Merge: '/Merge' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Merge: '/Merge' + * Sum: '/step inc' */ - rtB.Merge_b4 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_b4 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 3] Initial CPOS Min\n'); */ printf("[LIN 3] Initial CPOS Min\n"); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * Merge: '/Merge' - * SignalConversion generated from: '/stepIn1' + /* Merge: '/Merge' incorporates: + * Merge: '/Merge' + * SignalConversion generated from: '/stepIn1' */ - rtB.Merge_b4 = rtb_y_b2; + rtB.Merge_b4 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/Initial CPOS Min' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/Initial CPOS Min' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Normal Mode' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Normal Mode' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch2_Status_Model.Busy == 0) && (Actuator_Ch2_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.MODE_private_c[i] = 0U; - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.COM_private_k[i] = 1U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_b4 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_b4 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 3] Normal Mode\n'); */ printf("[LIN 3] Normal Mode\n"); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_b4 = rtb_y_b2; + rtB.Merge_b4 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Normal Mode' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Normal Mode' */ break; case 4: - /* Outputs for IfAction SubSystem: '/Move to position Min' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Move to position Min' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch2_Status_Model.Busy == 0) && (Actuator_Ch2_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write4' incorporates: - * Constant: '/Constant1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * Constant: '/Constant1' */ rtDW.Autos_private_g[i] = 1U; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant10' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant10' */ rtDW.Stall_private_f[i] = 1U; - /* DataStoreWrite: '/Data Store Write3' */ + /* DataStoreWrite: '/Data Store Write3' */ rtDW.Lnoise_private_g[i] = 0U; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Speed_private_b[i] = 3U; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Coils_private_l[i] = 3U; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.POS_private_h[i] = 0U; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * Constant: '/Constant9' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/Constant9' */ rtDW.COM_private_k[i] = 3U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_b4 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_b4 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 3] Move to position Min\n'); */ printf("[LIN 3] Move to position Min\n"); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_b4 = rtb_y_b2; + rtB.Merge_b4 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Move to position Min' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Move to position Min' */ break; case 5: - /* Outputs for IfAction SubSystem: '/Check Stall Min' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Check Stall Min' incorporates: + * ActionPort: '/Action Port' */ - /* Logic: '/Logical Operator3' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Logic: '/Logical Operator1' - * Logic: '/Logical Operator2' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' + /* Logic: '/Logical Operator3' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator1' + * Logic: '/Logical Operator2' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' */ for (i = 0; i < 8; i++) { - rtb_Compare_le[i] = ((Actuator_Ch2_Status_Model.in_Act_Stall_Slave[i] == 1) + rtb_Compare_fe[i] = ((Actuator_Ch2_Status_Model.in_Act_Stall_Slave[i] == 1) || (Actuator_Ch2_Status_Model.in_CPOS_ALL[i] == 0) || (rtDW.ErrorCalibration_private_b[i] == 0)); } - /* End of Logic: '/Logical Operator3' */ + /* End of Logic: '/Logical Operator3' */ - /* Logic: '/Logical Operator' incorporates: - * Logic: '/Logical Operator3' + /* Logic: '/Logical Operator' incorporates: + * Logic: '/Logical Operator3' */ - rtb_LogicalOperator1_n = rtb_Compare_le[0]; + rtb_LogicalOperator3 = rtb_Compare_fe[0]; for (i = 0; i < 7; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && rtb_Compare_le[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && rtb_Compare_fe[i + 1]); } - /* If: '/If2' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - * Logic: '/Logical Operator' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If2' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * Logic: '/Logical Operator' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch2_Status_Model.Busy == 0) && - (Actuator_Ch2_Status_Model.Error_Connect == 0) && rtb_LogicalOperator1_n) + (Actuator_Ch2_Status_Model.Error_Connect == 0) && rtb_LogicalOperator3) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ for (i = 0; i < 9; i++) { - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read1' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read1' */ if (rtDW.ErrorCalibration_private_b[i] != 0) { rtDW.MinPositionCh2_private[i] = Actuator_Ch2_Status_Model.in_CPOS_ALL[i]; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of DataStoreWrite: '/Data Store Write1' */ + /* End of DataStoreWrite: '/Data Store Write1' */ - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_b4 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_b4 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 3] Check Stall Min\n'); */ printf("[LIN 3] Check Stall Min\n"); fflush(stdout); @@ -24231,207 +30563,207 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_b4 = rtb_y_b2; + rtB.Merge_b4 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If2' */ - /* End of Outputs for SubSystem: '/Check Stall Min' */ + /* End of If: '/If2' */ + /* End of Outputs for SubSystem: '/Check Stall Min' */ break; case 6: - /* Outputs for IfAction SubSystem: '/Initial CPOS Max' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Initial CPOS Max' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch2_Status_Model.Busy == 0) && (Actuator_Ch2_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ rtDW.COM_private_k[i] = 2U; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.POS_private_h[i] = 0U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_b4 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_b4 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 3] Initial CPOS Max\n'); */ printf("[LIN 3] Initial CPOS Max\n"); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_b4 = rtb_y_b2; + rtB.Merge_b4 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Initial CPOS Max' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Initial CPOS Max' */ break; case 7: - /* Outputs for IfAction SubSystem: '/Move to position Max' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Move to position Max' incorporates: + * ActionPort: '/Action Port' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If1' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch2_Status_Model.Busy == 0) && (Actuator_Ch2_Status_Model.Error_Connect == 0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write4' incorporates: - * Constant: '/Constant1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * Constant: '/Constant1' */ rtDW.Autos_private_g[i] = 1U; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant10' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant10' */ rtDW.Stall_private_f[i] = 1U; - /* DataStoreWrite: '/Data Store Write3' */ + /* DataStoreWrite: '/Data Store Write3' */ rtDW.Lnoise_private_g[i] = 0U; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Speed_private_b[i] = 3U; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Coils_private_l[i] = 3U; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.POS_private_h[i] = 6000U; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * Constant: '/Constant9' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * Constant: '/Constant9' */ rtDW.COM_private_k[i] = 3U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_b4 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_b4 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 3] Move to position Max\n'); */ printf("[LIN 3] Move to position Max\n"); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_b4 = rtb_y_b2; + rtB.Merge_b4 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If1' */ - /* End of Outputs for SubSystem: '/Move to position Max' */ + /* End of If: '/If1' */ + /* End of Outputs for SubSystem: '/Move to position Max' */ break; case 8: - /* Outputs for IfAction SubSystem: '/Check Stall Max' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Check Stall Max' incorporates: + * ActionPort: '/Action Port' */ - /* Logic: '/Logical Operator3' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read' - * Logic: '/Logical Operator' - * Logic: '/Logical Operator2' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' + /* Logic: '/Logical Operator3' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator' + * Logic: '/Logical Operator2' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' */ for (i = 0; i < 8; i++) { - rtb_Compare_le[i] = ((Actuator_Ch2_Status_Model.in_Act_Stall_Slave[i] == 1) + rtb_Compare_fe[i] = ((Actuator_Ch2_Status_Model.in_Act_Stall_Slave[i] == 1) || (Actuator_Ch2_Status_Model.in_CPOS_ALL[i] == 6000) || (rtDW.ErrorCalibration_private_b[i] == 0)); } - /* End of Logic: '/Logical Operator3' */ + /* End of Logic: '/Logical Operator3' */ - /* Logic: '/Logical Operator1' incorporates: - * Logic: '/Logical Operator3' + /* Logic: '/Logical Operator1' incorporates: + * Logic: '/Logical Operator3' */ - rtb_LogicalOperator1_n = rtb_Compare_le[0]; + rtb_LogicalOperator3 = rtb_Compare_fe[0]; for (i = 0; i < 7; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && rtb_Compare_le[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && rtb_Compare_fe[i + 1]); } - /* If: '/If2' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - * Logic: '/Logical Operator1' - * SignalConversion generated from: '/Bus Selector' + /* If: '/If2' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write1' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * Logic: '/Logical Operator1' + * SignalConversion generated from: '/Bus Selector' */ if ((Actuator_Ch2_Status_Model.Busy == 0) && - (Actuator_Ch2_Status_Model.Error_Connect == 0) && rtb_LogicalOperator1_n) + (Actuator_Ch2_Status_Model.Error_Connect == 0) && rtb_LogicalOperator3) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write1' */ + /* DataStoreWrite: '/Data Store Write1' */ for (i = 0; i < 9; i++) { - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read1' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read1' */ if (rtDW.ErrorCalibration_private_b[i] != 0) { rtDW.MaxPositionCh2_private[i] = @@ -24440,22 +30772,22 @@ void HVAC_model_step(void) rtDW.MaxPositionCh2_private[i] = 0; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } - /* End of DataStoreWrite: '/Data Store Write1' */ + /* End of DataStoreWrite: '/Data Store Write1' */ - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * Sum: '/step inc' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * Sum: '/step inc' */ - rtB.Merge_b4 = (int8_t)(rtb_y_b2 + 1); + rtB.Merge_b4 = (int8_t)(rtb_y_c + 1); - /* MATLAB Function: '/Write' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Write' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : if(LOGGER == 2) */ - if (rtDW.LOGGER_LIN == 2.0) { + if (rtb_DataTypeConversion7 == 2.0) { /* : fprintf('[LIN 3] Check Stall MAX\n'); */ printf("[LIN 3] Check Stall MAX\n"); fflush(stdout); @@ -24472,83 +30804,82 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write' */ - /* End of Outputs for SubSystem: '/If Action Subsystem2' */ + /* End of MATLAB Function: '/Write' */ + /* End of Outputs for SubSystem: '/If Action Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/stepIn' + /* Merge: '/Merge' incorporates: + * SignalConversion generated from: '/stepIn' */ - rtB.Merge_b4 = rtb_y_b2; + rtB.Merge_b4 = rtb_y_c; - /* End of Outputs for SubSystem: '/If Action Subsystem3' */ + /* End of Outputs for SubSystem: '/If Action Subsystem3' */ } - /* End of If: '/If2' */ - /* End of Outputs for SubSystem: '/Check Stall Max' */ + /* End of If: '/If2' */ + /* End of Outputs for SubSystem: '/Check Stall Max' */ break; case 9: - /* Outputs for IfAction SubSystem: '/Homing' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Homing' incorporates: + * ActionPort: '/Action Port' */ - /* Product: '/Divide1' incorporates: - * Constant: '/ACT1' - * DataStoreRead: '/MAX ACT1T ' + /* Product: '/Divide1' incorporates: + * Constant: '/ACT1' + * DataStoreRead: '/MAX ACT1T ' */ for (i = 0; i < 8; i++) { - rtb_Divide1_e[i] = (double)rtDW.MaxPositionCh2_private[i] / (double) + rtb_Divide1_pb[i] = (double)rtDW.MaxPositionCh2_private[i] / (double) rtConstP.ACT1_Value_m[i]; } - /* End of Product: '/Divide1' */ + /* End of Product: '/Divide1' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant' */ - rtb_Divide1_e[8] = 1.0; + rtb_Divide1_pb[8] = 1.0; - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read4' + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read4' */ switch (rtDW.stepHoming_private_a) { case 0: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* RelationalOperator: '/Compare' */ - rtb_u8Vtg_FX_plus = rtb_Divide1_e[i]; + /* RelationalOperator: '/Compare' */ + rtb_Divide1 = rtb_Divide1_pb[i]; - /* Logic: '/Logical Operator' incorporates: - * Constant: '/Constant' - * Constant: '/Constant' - * RelationalOperator: '/Compare' - * RelationalOperator: '/Compare' + /* Logic: '/Logical Operator' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' */ - rtb_LogicalOperator1 = ((rtb_u8Vtg_FX_plus >= 0.9) && (rtb_u8Vtg_FX_plus - <= 1.1)); - rtb_LogicalOperator3_i5[i] = rtb_LogicalOperator1; + rtb_err = ((rtb_Divide1 >= 0.6) && (rtb_Divide1 <= 1.5)); + rtb_LogicalOperator3_nq[i] = rtb_err; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * Logic: '/Logical Operator' - * Logic: '/Logical Operator1' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + * Logic: '/Logical Operator' + * Logic: '/Logical Operator1' */ - rtDW.ErrorCalibration_private_b[i] = (uint8_t)((!rtb_LogicalOperator1) && + rtDW.ErrorCalibration_private_b[i] = (uint8_t)((!rtb_err) && (rtDW.ErrorCalibration_private_b[i] != 0)); } - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/MIN ACT1T 1' - * Logic: '/Logical Operator2' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/MIN ACT1T 1' + * Logic: '/Logical Operator2' */ /* : if(LOGGER>0) */ - if (rtDW.LOGGER_LIN > 0.0) { + if (rtb_DataTypeConversion7 > 0.0) { /* : fprintf("[LIN 3] Homing 0\n"); */ printf("[LIN 3] Homing 0\n"); fflush(stdout); @@ -24558,92 +30889,92 @@ void HVAC_model_step(void) /* : fprintf('[LIN 3] ACT%d MAX = %d KOEF = %f Callibration = %d \n', int16(i), int16(MAX(i)), KOEF(i), int16(ERRORS(i))); */ printf("[LIN 3] ACT%d MAX = %d KOEF = %f Callibration = %d \n", (int16_t)(i + 1), rtDW.MaxPositionCh2_private[i], - rtb_Divide1_e[i], (int16_t)!rtb_LogicalOperator3_i5[i]); + rtb_Divide1_pb[i], (int16_t)!rtb_LogicalOperator3_nq[i]); fflush(stdout); } } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* Logic: '/Logical Operator1' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator1' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && + rtb_LogicalOperator3_nq[i + 1]); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator1' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator1' */ - if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + if (rtb_LogicalOperator3) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ - rtB.Merge_h = 4; + rtB.Merge_h3 = 4; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' */ - rtB.Merge_h = 1; + rtB.Merge_h3 = 1; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ for (i = 0; i < 9; i++) { - rtb_LogicalOperator3_i5[i] = (rtb_Divide1_e[i] > 1.5); + rtb_LogicalOperator3_nq[i] = (rtb_Divide1_pb[i] > 1.5); } - /* End of RelationalOperator: '/Compare' */ + /* End of RelationalOperator: '/Compare' */ - /* Logic: '/Logical Operator' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 || + rtb_LogicalOperator3_nq[i + 1]); } - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write1' - * Logic: '/Logical Operator' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreWrite: '/Data Store Write1' + * Logic: '/Logical Operator' */ - rtDW.CCU_ActuatorErrF_Stat_private = rtb_LogicalOperator1_n; + rtDW.CCU_ActuatorErrF_Stat_private = rtb_LogicalOperator3; for (i = 0; i < 9; i++) { - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreWrite: '/Data Store Write2' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataStoreWrite: '/Data Store Write2' */ - rtb_LogicalOperator1 = rtb_LogicalOperator3_i5[i]; - rtDW.COM_private_k[i] = rtb_LogicalOperator1; + rtb_err = rtb_LogicalOperator3_nq[i]; + rtDW.COM_private_k[i] = rtb_err; - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write3' - * Logic: '/Logical Operator1' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write3' + * Logic: '/Logical Operator1' */ - rtDW.ErrorActuator_a[i] = (uint8_t)(rtb_LogicalOperator1 || - (rtDW.ErrorActuator_a[i] != 0)); + rtDW.ErrorActuator_a[i] = (uint8_t)(rtb_err || (rtDW.ErrorActuator_a[i] + != 0)); - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.MODE_private_c[i] = 2U; } - /* MATLAB Function: '/Write ERROR' incorporates: - * DataStoreRead: '/Data Store Read6' + /* MATLAB Function: '/Write ERROR' incorporates: + * DataStoreRead: '/Data Store Read6' */ /* : if(LOGGER>=0) */ - if (rtDW.LOGGER_LIN >= 0.0) { + if (rtb_DataTypeConversion7 >= 0.0) { /* : for i = 1:numel(ErrCallibration) */ for (i = 0; i < 9; i++) { /* : if ErrCallibration(i) == 1 */ - if (rtb_LogicalOperator3_i5[i]) { + if (rtb_LogicalOperator3_nq[i]) { /* : fprintf('[LIN 3] Failure with actuator #%d\n', int16(i)); */ printf("[LIN 3] Failure with actuator #%d\n", (int16_t)(i + 1)); fflush(stdout); @@ -24651,38 +30982,38 @@ void HVAC_model_step(void) } } - /* End of MATLAB Function: '/Write ERROR' */ + /* End of MATLAB Function: '/Write ERROR' */ for (i = 0; i < 9; i++) { - /* Logic: '/Logical Operator1' */ - rtb_LogicalOperator1 = rtb_LogicalOperator3_i5[i]; + /* Logic: '/Logical Operator1' */ + rtb_err = rtb_LogicalOperator3_nq[i]; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * Logic: '/Logical Operator' - * Logic: '/Logical Operator1' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + * Logic: '/Logical Operator' + * Logic: '/Logical Operator1' */ - rtDW.ErrorCalibration_private_b[i] = (uint8_t)((!rtb_LogicalOperator1) && + rtDW.ErrorCalibration_private_b[i] = (uint8_t)((!rtb_err) && (rtDW.ErrorCalibration_private_b[i] != 0)); - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - rtDW.dtc_state_error_model[i + 54] = rtb_LogicalOperator1; + rtDW.dtc_state_error_model[i + 54] = rtb_err; } - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.stepSig_private_g = 1; - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/MIN ACT1T 1' - * DataStoreWrite: '/Data Store Write' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/MIN ACT1T 1' + * DataStoreWrite: '/Data Store Write' */ /* : if(LOGGER>0) */ - if (rtDW.LOGGER_LIN > 0.0) { + if (rtb_DataTypeConversion7 > 0.0) { /* : fprintf("[LIN 3] Homing 1. Start Callibration \n"); */ printf("[LIN 3] Homing 1. Start Callibration \n"); fflush(stdout); @@ -24694,76 +31025,75 @@ void HVAC_model_step(void) /* : fprintf('[LIN 3] ACT%d MAX = %d KOEF = %f Callibration = %d \n', int16(i), int16(MAX(i)), KOEF(i), int16(ERRORS(i))); */ printf("[LIN 3] ACT%d MAX = %d KOEF = %f Callibration = %d \n", (int16_t)(i + 1), rtDW.MaxPositionCh2_private[i], - rtb_Divide1_e[i], (int16_t)rtDW.ErrorCalibration_private_b[i]); + rtb_Divide1_pb[i], (int16_t)rtDW.ErrorCalibration_private_b[i]); fflush(stdout); } } } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* Logic: '/Logical Operator2' incorporates: - * DataStoreWrite: '/Data Store Write' + /* Logic: '/Logical Operator2' incorporates: + * DataStoreWrite: '/Data Store Write' */ - rtb_LogicalOperator1_n = (rtDW.ErrorCalibration_private_b[0] != 0); + rtb_LogicalOperator3 = (rtDW.ErrorCalibration_private_b[0] != 0); for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || + rtb_LogicalOperator3 = (rtb_LogicalOperator3 || (rtDW.ErrorCalibration_private_b[i + 1] != 0)); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator2' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator2' */ - if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + if (rtb_LogicalOperator3) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ - rtB.Merge_h = 2; + rtB.Merge_h3 = 2; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ - rtB.Merge_h = 4; + rtB.Merge_h3 = 4; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem1' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem1' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem2' incorporates: + * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { - /* RelationalOperator: '/Compare' */ - rtb_u8Vtg_FX_plus = rtb_Divide1_e[i]; + /* RelationalOperator: '/Compare' */ + rtb_Divide1 = rtb_Divide1_pb[i]; - /* Logic: '/Logical Operator3' incorporates: - * Constant: '/Constant' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read' - * Logic: '/Logical Operator1' - * Logic: '/Logical Operator4' - * RelationalOperator: '/Compare' - * RelationalOperator: '/Compare' + /* Logic: '/Logical Operator3' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator1' + * Logic: '/Logical Operator4' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' */ - rtb_LogicalOperator1 = (((rtb_u8Vtg_FX_plus < 0.97) || - (rtb_u8Vtg_FX_plus > 1.03)) && (rtDW.ErrorCalibration_private_b[i] != - 0)); - rtb_LogicalOperator3_i5[i] = rtb_LogicalOperator1; + rtb_err = (((rtb_Divide1 < 0.97) || (rtb_Divide1 > 1.03)) && + (rtDW.ErrorCalibration_private_b[i] != 0)); + rtb_LogicalOperator3_nq[i] = rtb_err; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreWrite: '/Data Store Write1' */ - rtDW.ErrorCalibration_private_b[i] = rtb_LogicalOperator1; + rtDW.ErrorCalibration_private_b[i] = rtb_err; } - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/MIN ACT1T 1' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/MIN ACT1T 1' */ /* : if(LOGGER>0) */ - if (rtDW.LOGGER_LIN > 0.0) { + if (rtb_DataTypeConversion7 > 0.0) { /* : fprintf("[LIN 3] Homing 3. Callibration \n"); */ printf("[LIN 3] Homing 3. Callibration \n"); fflush(stdout); @@ -24771,94 +31101,94 @@ void HVAC_model_step(void) /* : for i = 1:numel(MAX) */ for (i = 0; i < 6; i++) { /* : if(ERRORS(i)==1) */ - if (rtb_LogicalOperator3_i5[i]) { + if (rtb_LogicalOperator3_nq[i]) { /* : fprintf('[LIN 3] ACT%d MAX = %d KOEF = %f Callibration = %d \n', int16(i), int16(MAX(i)), KOEF(i), int16(ERRORS(i))); */ printf("[LIN 3] ACT%d MAX = %d KOEF = %f Callibration = %d \n", (int16_t)(i + 1), rtDW.MaxPositionCh2_private[i], - rtb_Divide1_e[i], 1); + rtb_Divide1_pb[i], 1); fflush(stdout); } } } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* Logic: '/Logical Operator2' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator2' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 || + rtb_LogicalOperator3_nq[i + 1]); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator2' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator2' */ - if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant3' + if (rtb_LogicalOperator3) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant3' */ - rtB.Merge_h = 3; + rtB.Merge_h3 = 3; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ - rtB.Merge_h = 4; + rtB.Merge_h3 = 4; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem2' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem2' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem3' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read5' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read5' */ /* : if(LOGGER>1) */ - if (rtDW.LOGGER_LIN > 1.0) { + if (rtb_DataTypeConversion7 > 1.0) { /* : fprintf("[LIN 3] Homing 3. Start Time on step %d\n",int16(step)); */ - rtb_u8Vtg_FX_plus = rt_roundd(rtDW.ErrorHomming_private_m); - if (rtb_u8Vtg_FX_plus < 32768.0) { - if (rtb_u8Vtg_FX_plus >= -32768.0) { - rtb_FLU_tg_correct_g = (int16_t)rtb_u8Vtg_FX_plus; + rtb_Divide1_cf = rt_roundd(rtDW.ErrorHomming_private_m); + if (rtb_Divide1_cf < 32768.0) { + if (rtb_Divide1_cf >= -32768.0) { + rtb_FLU_tg_correct_l = (int16_t)rtb_Divide1_cf; } else { - rtb_FLU_tg_correct_g = INT16_MIN; + rtb_FLU_tg_correct_l = INT16_MIN; } } else { - rtb_FLU_tg_correct_g = INT16_MAX; + rtb_FLU_tg_correct_l = INT16_MAX; } - printf("[LIN 3] Homing 3. Start Time on step %d\n", rtb_FLU_tg_correct_g); + printf("[LIN 3] Homing 3. Start Time on step %d\n", rtb_FLU_tg_correct_l); fflush(stdout); } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read1' + /* If: '/If' incorporates: + * DataStoreRead: '/Data Store Read1' */ if (rtDW.ErrorHomming_private_m < 10.0) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/MATLAB Function' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' + /* MATLAB Function: '/MATLAB Function' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' */ - MATLABFunction(rtDW.Start_timer, rtDW.t_now, &rtb_dt_an, + MATLABFunction(rtDW.Start_timer, rtDW.t_now, &rtb_dt_nx, &rtDW.sf_MATLABFunction_g); - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/Data Store Read5' */ /* : if(LOGGER>1) */ - if (rtDW.LOGGER_LIN > 1.0) { + if (rtb_DataTypeConversion7 > 1.0) { /* : fprintf("[LIN 3] Homing 3. Start TIme dt = %d \n",int32(data)); */ - rtb_Subtract = rtb_dt_an; - if (rtb_dt_an > 2147483647U) { + rtb_Subtract = rtb_dt_nx; + if (rtb_dt_nx > 2147483647U) { rtb_Subtract = 2147483647U; } @@ -24867,387 +31197,398 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* If: '/If' */ - if (rtb_dt_an > 30000U) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* If: '/If' */ + if (rtb_dt_nx > 3600000U) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' */ - IfActionSubsystem(&rtB.Merge_h, &rtDW.ErrorHomming_private_m, - &rtDW.Start_timer, &rtDW.stepSig_private_g); + /* Merge: '/Merge' */ + IfActionSubsystem_h(&rtB.Merge_h3, &rtDW.ErrorHomming_private_m, + &rtDW.Start_timer, &rtDW.stepSig_private_g); - /* End of Outputs for SubSystem: '/If Action Subsystem' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant3' */ rtDW.Start_timer = 1.0; - /* DataStoreRead: '/Data Store Read2' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read2' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[0] = rtDW.PID_TempRR; - /* DataStoreRead: '/Data Store Read' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[1] = rtDW.PID_TempRL; - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataStoreRead: '/valves target in percent' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataStoreWrite: '/Data Store Write24' */ for (i = 0; i < 6; i++) { - rtb_DataTypeConversion2_ie[i] = (uint8_t)rtb_Gain1_nj[i]; + rtb_DataTypeConversion2_ie[i] = (uint8_t)rtb_Gain1_i4[i]; } - /* End of DataTypeConversion: '/Data Type Conversion2' */ + /* End of DataTypeConversion: '/Data Type Conversion2' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[2] = rtb_DataTypeConversion2_ie[0]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[3] = rtb_DataTypeConversion2_ie[4]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[4] = rtb_DataTypeConversion2_ie[1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[5] = rtb_DataTypeConversion2_ie[2]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[6] = rtb_DataTypeConversion2_ie[5]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[7] = rtb_DataTypeConversion2_ie[3]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' - * Constant: '/Constant1' - * SignalConversion generated from: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' + * Constant: '/Constant1' + * SignalConversion generated from: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[8] = 0U; for (i = 0; i < 9; i++) { - /* Product: '/Product' */ - Valve_2_way = rtDW.BUS_ADR_private_a[i]; + /* Product: '/Product' */ + fan_speed_out = rtDW.BUS_ADR_private_a[i]; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * Product: '/Divide1' - * Product: '/Product' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + * Product: '/Divide1' + * Product: '/Product' */ - rtDW.POS_private_h[i] = (uint16_t)((double)(Valve_2_way * + rtDW.POS_private_h[i] = (uint16_t)((double)(fan_speed_out * rtDW.MaxPositionCh2_private[i]) / 100.0); - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreWrite: '/Data Store Write2' + /* RelationalOperator: '/Relational Operator1' incorporates: + * DataStoreWrite: '/Data Store Write2' */ - rtb_LogicalOperator3_i5[i] = (rtb_DataTypeConversion_bq[i] == - Valve_2_way); + rtb_LogicalOperator3_nq[i] = (rtb_DataTypeConversion_bq[i] == + fan_speed_out); } - /* Logic: '/Logical Operator' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && + rtb_LogicalOperator3_nq[i + 1]); } for (i = 0; i < 9; i++) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant4' - * Constant: '/Constant9' - * DataStoreWrite: '/Data Store Write1' - * Logic: '/Logical Operator' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant4' + * Constant: '/Constant9' + * DataStoreWrite: '/Data Store Write1' + * Logic: '/Logical Operator' */ - if (rtb_LogicalOperator1_n) { + if (rtb_LogicalOperator3) { rtDW.COM_private_k[i] = 0U; } else { rtDW.COM_private_k[i] = 3U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Concatenate: '/Vector Concatenate' - * Constant: '/Constant5' - * DataStoreWrite: '/Data Store Write2' - * DataStoreWrite: '/Data Store Write7' - * Product: '/Product' - * RelationalOperator: '/Relational Operator' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Concatenate: '/Vector Concatenate' + * Constant: '/Constant5' + * DataStoreWrite: '/Data Store Write2' + * DataStoreWrite: '/Data Store Write7' + * Product: '/Product' + * RelationalOperator: '/Relational Operator' */ rtDW.BUS_ADR_private_a[i] = (uint8_t)((uint32_t) (rtb_DataTypeConversion_bq[i] != rtDW.BUS_ADR_private_a[i]) * - rtConstP.pooled106[i]); + rtConstP.pooled95[i]); - /* DataStoreWrite: '/Data Store Write4' incorporates: - * Constant: '/Constant1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * Constant: '/Constant1' */ rtDW.Autos_private_g[i] = 1U; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant10' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant10' */ rtDW.Stall_private_f[i] = 1U; - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant11' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Constant11' */ rtDW.Lnoise_private_g[i] = 0U; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Speed_private_b[i] = 3U; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Coils_private_l[i] = 3U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - * Merge: '/Merge' - * SignalConversion generated from: '/Out1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' + * Merge: '/Merge' + * SignalConversion generated from: '/Out1' */ - rtB.Merge_h = 3; + rtB.Merge_h3 = 3; - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/If Action Subsystem' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { - /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: + * ActionPort: '/Action Port' */ - IfActionSubsystem1(&rtB.Merge_h, &rtDW.CCU_ActuatorErrF_Stat_private, - rtDW.COM_private_k, rtDW.ErrorActuator_a, - rtDW.ErrorCalibration_private_b, &rtDW.LOGGER_LIN, - rtDW.MODE_private_c, rtDW.dtc_state_error_model); + IfActionSubsystem1_h(&rtB.Merge_h3, &rtDW.CCU_ActuatorErrF_Stat_private, + rtDW.COM_private_k, rtDW.ErrorActuator_a, + rtDW.ErrorCalibration_private_b, + &rtb_DataTypeConversion7, rtDW.MODE_private_c, + rtDW.dtc_state_error_model); - /* End of Outputs for SubSystem: '/If Action Subsystem1' */ + /* End of Outputs for SubSystem: '/If Action Subsystem1' */ } - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem3' */ + /* End of If: '/If' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem3' */ break; case 4: - /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem4' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem4' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreRead: '/Data Store Read2' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read2' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[0] = rtDW.PID_TempRR; - /* DataStoreRead: '/Data Store Read' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[1] = rtDW.PID_TempRL; - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataStoreRead: '/valves target in percent' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataStoreWrite: '/Data Store Write24' */ for (i = 0; i < 6; i++) { - rtb_DataTypeConversion2_ie[i] = (uint8_t)rtb_Gain1_nj[i]; + rtb_DataTypeConversion2_ie[i] = (uint8_t)rtb_Gain1_i4[i]; } - /* End of DataTypeConversion: '/Data Type Conversion2' */ + /* End of DataTypeConversion: '/Data Type Conversion2' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[2] = rtb_DataTypeConversion2_ie[0]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[3] = rtb_DataTypeConversion2_ie[4]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[4] = rtb_DataTypeConversion2_ie[1]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[5] = rtb_DataTypeConversion2_ie[2]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[6] = rtb_DataTypeConversion2_ie[5]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[7] = rtb_DataTypeConversion2_ie[3]; - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Concatenate: '/Vector Concatenate' - * Constant: '/Constant1' - * SignalConversion generated from: '/Vector Concatenate' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Concatenate: '/Vector Concatenate' + * Constant: '/Constant1' + * SignalConversion generated from: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[8] = 0U; for (i = 0; i < 9; i++) { - /* Product: '/Product' */ - Valve_2_way = rtDW.BUS_ADR_private_a[i]; + /* Product: '/Product' */ + fan_speed_out = rtDW.BUS_ADR_private_a[i]; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' - * Product: '/Divide1' - * Product: '/Product' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + * Product: '/Divide1' + * Product: '/Product' */ - rtDW.POS_private_h[i] = (uint16_t)((double)(Valve_2_way * + rtDW.POS_private_h[i] = (uint16_t)((double)(fan_speed_out * rtDW.MaxPositionCh2_private[i]) / 100.0); - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreWrite: '/Data Store Write2' + /* RelationalOperator: '/Relational Operator1' incorporates: + * DataStoreWrite: '/Data Store Write2' */ - rtb_LogicalOperator3_i5[i] = (rtb_DataTypeConversion_bq[i] == - Valve_2_way); + rtb_LogicalOperator3_nq[i] = (rtb_DataTypeConversion_bq[i] == + fan_speed_out); } - /* Logic: '/Logical Operator' */ - rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator3 = rtb_LogicalOperator3_nq[0]; for (i = 0; i < 8; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && - rtb_LogicalOperator3_i5[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 && + rtb_LogicalOperator3_nq[i + 1]); } for (i = 0; i < 9; i++) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant4' - * Constant: '/Constant9' - * DataStoreWrite: '/Data Store Write1' - * Logic: '/Logical Operator' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant4' + * Constant: '/Constant9' + * DataStoreWrite: '/Data Store Write1' + * Logic: '/Logical Operator' */ - if (rtb_LogicalOperator1_n) { + if (rtb_LogicalOperator3) { rtDW.COM_private_k[i] = 0U; } else { rtDW.COM_private_k[i] = 3U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Concatenate: '/Vector Concatenate' - * Constant: '/Constant5' - * DataStoreWrite: '/Data Store Write2' - * DataStoreWrite: '/Data Store Write7' - * Product: '/Product' - * RelationalOperator: '/Relational Operator' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Concatenate: '/Vector Concatenate' + * Constant: '/Constant5' + * DataStoreWrite: '/Data Store Write2' + * DataStoreWrite: '/Data Store Write7' + * Product: '/Product' + * RelationalOperator: '/Relational Operator' */ rtDW.BUS_ADR_private_a[i] = (uint8_t)((uint32_t) (rtb_DataTypeConversion_bq[i] != rtDW.BUS_ADR_private_a[i]) * - rtConstP.pooled106[i]); + rtConstP.pooled95[i]); - /* DataStoreWrite: '/Data Store Write4' incorporates: - * Constant: '/Constant1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * Constant: '/Constant1' */ rtDW.Autos_private_g[i] = 1U; - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant10' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant10' */ rtDW.Stall_private_f[i] = 1U; - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant11' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Constant11' */ rtDW.Lnoise_private_g[i] = 0U; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Speed_private_b[i] = 3U; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Coils_private_l[i] = 3U; } - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - * SignalConversion generated from: '/step' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' + * SignalConversion generated from: '/step' */ - rtB.Merge_h = 4; + rtB.Merge_h3 = 4; - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/Data Store Read5' */ /* : if(LOGGER>0) */ - if (rtDW.LOGGER_LIN > 0.0) { + if (rtb_DataTypeConversion7 > 0.0) { /* : fprintf("[LIN 3] Homing. Callibration successful \n"); */ printf("[LIN 3] Homing. Callibration successful \n"); fflush(stdout); } - /* End of MATLAB Function: '/MAX POSITION' */ - /* End of Outputs for SubSystem: '/Switch Case Action Subsystem4' */ + /* End of MATLAB Function: '/MAX POSITION' */ + /* End of Outputs for SubSystem: '/Switch Case Action Subsystem4' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* DataStoreWrite: '/Data Store Write2' */ - rtDW.stepHoming_private_a = rtB.Merge_h; + /* DataStoreWrite: '/Data Store Write2' */ + rtDW.stepHoming_private_a = rtB.Merge_h3; - /* Merge: '/Merge' incorporates: - * DataStoreRead: '/Data Store Read7' + /* Merge: '/Merge' incorporates: + * DataStoreRead: '/Data Store Read7' */ rtB.Merge_b4 = rtDW.stepSig_private_g; - /* End of Outputs for SubSystem: '/Homing' */ + /* End of Outputs for SubSystem: '/Homing' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ /* Outport: '/CCU_Errors_model' incorporates: * DataStoreRead: '/Data Store Read10' */ rtY.CCU_Errors_model = CCU_Errors_Model; - /* DataStoreWrite: '/Finish write stepSig' */ + /* Outport: '/Actuator_Ch0_Command_Model' incorporates: + * DataStoreRead: '/Data Store Read66' + */ + rtY.Actuator_Ch0_Command_Model_g = Actuator_Ch0_Command_Model; + + /* Outport: '/Actuator_Ch1_Command_Model' incorporates: + * DataStoreRead: '/Data Store Read67' + */ + rtY.Actuator_Ch1_Command_Model_e = Actuator_Ch1_Command_Model; + + /* DataStoreWrite: '/Finish write stepSig' */ rtDW.stepSig_private_g = rtB.Merge_b4; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read3' - * DataStoreRead: '/Data Store Read4' - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/Data Store Read6' - * DataStoreRead: '/Data Store Read7' - * DataStoreRead: '/Data Store Read8' - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read3' + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/Data Store Read6' + * DataStoreRead: '/Data Store Read7' + * DataStoreRead: '/Data Store Read8' + * DataStoreWrite: '/Data Store Write' */ for (i = 0; i < 9; i++) { Actuator_Ch2_Command_Model.POS[i] = rtDW.POS_private_h[i]; @@ -25261,33 +31602,38 @@ void HVAC_model_step(void) Actuator_Ch2_Command_Model.Coils_Stop_SET[i] = rtDW.Coils_private_l[i]; } - /* End of BusCreator: '/Bus Creator' */ + /* End of BusCreator: '/Bus Creator' */ - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read2' + /* Outport: '/Actuator_Ch2_Command_Model' incorporates: + * DataStoreRead: '/Data Store Read68' + */ + rtY.Actuator_Ch2_Command_Model_o = Actuator_Ch2_Command_Model; + + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read2' */ for (i = 0; i < 8; i++) { - rtb_Compare_le[i] = (rtDW.ErrorCalibration_private_b[i] == 0); + rtb_Compare_fe[i] = (rtDW.ErrorCalibration_private_b[i] == 0); } - /* End of RelationalOperator: '/Compare' */ + /* End of RelationalOperator: '/Compare' */ - /* Logic: '/Logical Operator' */ - rtb_LogicalOperator1_n = rtb_Compare_le[0]; + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator3 = rtb_Compare_fe[0]; for (i = 0; i < 7; i++) { - rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || rtb_Compare_le[i + 1]); + rtb_LogicalOperator3 = (rtb_LogicalOperator3 || rtb_Compare_fe[i + 1]); } - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read2' - * Logic: '/Logical Operator' - * Product: '/Product' + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read2' + * Logic: '/Logical Operator' + * Product: '/Product' */ for (i = 0; i < 8; i++) { - if (rtb_LogicalOperator1_n) { + if (rtb_LogicalOperator3) { rtb_DataTypeConversion_bq[i] = (uint8_t)((uint32_t) rtDW.ErrorCalibration_private_b[i] * rtConstP.Constant3_Value_d[i]); } else { @@ -25295,321 +31641,686 @@ void HVAC_model_step(void) } } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* SignalConversion generated from: '/Vector Concatenate' incorporates: - * Constant: '/Constant1' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant1' */ rtb_DataTypeConversion_bq[8] = 0U; for (i = 0; i < 9; i++) { - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Concatenate: '/Vector Concatenate' */ rtDW.BUS_ADR_private_a[i] = rtb_DataTypeConversion_bq[i]; - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.COM_private_k[i] = 0U; } - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataTypeConversion: '/Data Type Conversion6' incorporates: + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read5' + * Sum: '/Subtract2' */ - rtDW.LOGGER_LIN = 1.0; + rtb_Divide4 = (int16_t)(rtb_FLU_tg_correct_me - Duct1_R); - /* Gain: '/Gain' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read2' - * Sum: '/Subtract' - */ - rtb_Gain_pl = (int16_t)(rtb_FLU_tg_correct - rtb_y_fe) * 26214; + /* DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_DSTATE_n = 0.0; - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' - * Gain: '/Proportional Gain' - * Gain: '/Gain' - * Sum: '/SumI2' - */ - rtb_SumI2_e = (int64_t)((int32_t)(((int64_t)rtb_Gain_pl << 30) >> 49) + - (int32_t)(rtDW.Integrator_DSTATE >> 32)) << 32; + /* DiscreteIntegrator: '/Filter' */ + rtDW.Filter_DSTATE_d = 0.0; - /* Saturate: '/Saturation' incorporates: - * DataStoreWrite: '/Data Store Write' - * Sum: '/SumI2' + /* Product: '/DProd Out' incorporates: + * Constant: '/Constant13' + * Constant: '/Constant18' + * Constant: '/Constant23' + * Constant: '/Constant28' + * Constant: '/Constant4' + * Constant: '/Constant8' + * Product: '/DProd Out' + * Product: '/DProd Out' + * Product: '/DProd Out' + * Product: '/DProd Out' + * Product: '/DProd Out' */ - if (rtb_SumI2_e >= 429496729600LL) { - rtDW.PID_TempFUL = 100U; - } else if (rtb_SumI2_e <= 0LL) { - rtDW.PID_TempFUL = 0U; + rtb_Divide7 = (double)g_assPID_VALVE[2] / 100.0; + + /* Product: '/NProd Out' incorporates: + * Constant: '/Constant14' + * Constant: '/Constant19' + * Constant: '/Constant24' + * Constant: '/Constant29' + * Constant: '/Constant5' + * Constant: '/Constant8' + * Constant: '/Constant9' + * DiscreteIntegrator: '/Filter' + * Product: '/DProd Out' + * Product: '/NProd Out' + * Product: '/NProd Out' + * Product: '/NProd Out' + * Product: '/NProd Out' + * Product: '/NProd Out' + * Sum: '/SumD' + */ + rtb_NProdOut_c_tmp = (double)g_assPID_VALVE[3] / 100.0; + rtb_DataTypeConversion7 = (rtb_Divide4 * rtb_Divide7 - rtDW.Filter_DSTATE_d) * + rtb_NProdOut_c_tmp; + + /* Product: '/PProd Out' incorporates: + * Constant: '/Constant11' + * Constant: '/Constant16' + * Constant: '/Constant2' + * Constant: '/Constant21' + * Constant: '/Constant26' + * Constant: '/Constant6' + * Product: '/PProd Out' + * Product: '/PProd Out' + * Product: '/PProd Out' + * Product: '/PProd Out' + * Product: '/PProd Out' + */ + rtb_Divide1_cf = (double)g_assPID_VALVE[0] / 100.0; + + /* Sum: '/Sum' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion6' + * DiscreteIntegrator: '/Integrator' + * Product: '/PProd Out' + */ + rtb_Divide8 = (rtb_Divide1_cf * rtb_Divide4 + rtDW.Integrator_DSTATE_n) + + rtb_DataTypeConversion7; + if (rtb_Divide8 < 256.0) { + if (rtb_Divide8 >= 0.0) { + Comp_Max_RPM_Allowed = (uint8_t)rtb_Divide8; + } else { + Comp_Max_RPM_Allowed = 0U; + } } else { - rtDW.PID_TempFUL = (uint8_t)(rtb_SumI2_e >> 32); + Comp_Max_RPM_Allowed = UINT8_MAX; } - /* End of Saturate: '/Saturation' */ - - /* Gain: '/Gain1' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read3' - * Sum: '/Subtract1' + /* Saturate: '/Saturation' incorporates: + * Sum: '/Sum' */ - rpm_phys = (int16_t)(rtb_Selector_p - rtb_y_bf) * 26214; - - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' - * Gain: '/Proportional Gain' - * Gain: '/Gain1' - * Sum: '/SumI2' - */ - rtb_SumI2_je = (int64_t)((int32_t)(((int64_t)rpm_phys << 30) >> 49) + (int32_t) - (rtDW.Integrator_DSTATE_k >> 32)) << 32; - - /* Saturate: '/Saturation' incorporates: - * DataStoreWrite: '/Data Store Write1' - * Sum: '/SumI2' - */ - if (rtb_SumI2_je >= 429496729600LL) { - rtDW.PID_TempFUR = 100U; - } else if (rtb_SumI2_je <= 0LL) { - rtDW.PID_TempFUR = 0U; + if (Comp_Max_RPM_Allowed <= 100) { + rtDW.PID_TempRL = Comp_Max_RPM_Allowed; } else { - rtDW.PID_TempFUR = (uint8_t)(rtb_SumI2_je >> 32); - } - - /* End of Saturate: '/Saturation' */ - - /* Gain: '/Gain4' incorporates: - * DataStoreRead: '/Data Store Read10' - * DataStoreRead: '/Data Store Read6' - * Sum: '/Subtract4' - */ - rtb_Gain4 = (int16_t)(rtb_FLU_tg_correct_de - rtb_y_ar) * 26214; - - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' - * Gain: '/Proportional Gain' - * Gain: '/Gain4' - * Sum: '/SumI2' - */ - rtb_SumI2_b = (int64_t)((int32_t)(((int64_t)rtb_Gain4 << 30) >> 49) + (int32_t) - (rtDW.Integrator_DSTATE_h >> 32)) << 32; - - /* Saturate: '/Saturation' incorporates: - * DataStoreWrite: '/Data Store Write4' - * Sum: '/SumI2' - */ - if (rtb_SumI2_b >= 429496729600LL) { - rtDW.PID_TempFLL = 100U; - } else if (rtb_SumI2_b <= 0LL) { - rtDW.PID_TempFLL = 0U; - } else { - rtDW.PID_TempFLL = (uint8_t)(rtb_SumI2_b >> 32); - } - - /* End of Saturate: '/Saturation' */ - - /* Gain: '/Gain5' incorporates: - * DataStoreRead: '/Data Store Read11' - * DataStoreRead: '/Data Store Read9' - * Sum: '/Subtract5' - */ - rtb_Gain5 = (int16_t)(rtb_FLU_tg_correct_b - rtb_y_h5) * 26214; - - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' - * Gain: '/Proportional Gain' - * Gain: '/Gain5' - * Sum: '/SumI2' - */ - rtb_SumI2_c = (int64_t)((int32_t)(((int64_t)rtb_Gain5 << 30) >> 49) + (int32_t) - (rtDW.Integrator_DSTATE_i >> 32)) << 32; - - /* Saturate: '/Saturation' incorporates: - * DataStoreWrite: '/Data Store Write5' - * Sum: '/SumI2' - */ - if (rtb_SumI2_c >= 429496729600LL) { - rtDW.PID_TempFRL = 100U; - } else if (rtb_SumI2_c <= 0LL) { - rtDW.PID_TempFRL = 0U; - } else { - rtDW.PID_TempFRL = (uint8_t)(rtb_SumI2_c >> 32); - } - - /* End of Saturate: '/Saturation' */ - - /* Gain: '/Gain2' incorporates: - * DataStoreRead: '/Data Store Read5' - * Sum: '/Subtract2' - */ - rtb_Gain2 = 26214 * (int16_t)-rtb_MultiportSwitch_ae; - - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' - * Gain: '/Proportional Gain' - * Gain: '/Gain2' - * Sum: '/SumI2' - */ - rtb_SumI2_o = (int64_t)((int32_t)(((int64_t)rtb_Gain2 << 30) >> 49) + (int32_t) - (rtDW.Integrator_DSTATE_n >> 32)) << 32; - - /* Saturate: '/Saturation' incorporates: - * DataStoreWrite: '/Data Store Write2' - * Sum: '/SumI2' - */ - if (rtb_SumI2_o >= 429496729600LL) { rtDW.PID_TempRL = 100U; - } else if (rtb_SumI2_o <= 0LL) { - rtDW.PID_TempRL = 0U; - } else { - rtDW.PID_TempRL = (uint8_t)(rtb_SumI2_o >> 32); } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ - /* Gain: '/Gain3' incorporates: - * DataStoreRead: '/Data Store Read7' - * DataStoreRead: '/Data Store Read8' - * Sum: '/Subtract3' - */ - rtb_Gain3 = (int16_t)(rtDW.Duct_RR_Tg - rtb_Bias1_h) * 26214; - - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' - * Gain: '/Integral Gain' - * Gain: '/Proportional Gain' - * Gain: '/Gain3' - */ - rtb_IntegralGain = (int64_t)((int32_t)(((int64_t)rtb_Gain3 << 30) >> 49) + - (int32_t)(rtDW.Integrator_DSTATE_a >> 32)) << 32; - - /* Saturate: '/Saturation' incorporates: - * DataStoreWrite: '/Data Store Write3' - * Gain: '/Integral Gain' - */ - if (rtb_IntegralGain >= 429496729600LL) { - rtDW.PID_TempRR = 100U; - } else if (rtb_IntegralGain <= 0LL) { - rtDW.PID_TempRR = 0U; - } else { - rtDW.PID_TempRR = (uint8_t)(rtb_IntegralGain >> 32); - } - - /* End of Saturate: '/Saturation' */ - - /* Product: '/Divide' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read6' + /* DataTypeConversion: '/Data Type Conversion7' incorporates: * DataStoreRead: '/Data Store Read7' - * Sum: '/Add' + * DataStoreRead: '/Data Store Read8' + * Sum: '/Subtract3' */ - Blower_AF_FL = floor(Blower_AF_FL + Blower_AF_FR) / 4.0; + rtb_Divide11 = (int16_t)(rtDW.Duct_RR_Tg - Duct2_R); - /* Switch: '/Switch' */ - if (Blower_AF_FL > 0.0) { - /* Saturate: '/Saturation2' */ - if (Blower_AF_FL > 80.0) { - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreWrite: '/Data Store Write2' + /* DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_DSTATE_p = 0.0; + + /* DiscreteIntegrator: '/Filter' */ + rtDW.Filter_DSTATE_dv = 0.0; + + /* Product: '/NProd Out' incorporates: + * DiscreteIntegrator: '/Filter' + * Product: '/DProd Out' + * Sum: '/SumD' + */ + rtb_Divide1 = (rtb_Divide11 * rtb_Divide7 - rtDW.Filter_DSTATE_dv) * + rtb_NProdOut_c_tmp; + + /* Sum: '/Sum' incorporates: + * DataTypeConversion: '/Data Type Conversion7' + * DiscreteIntegrator: '/Integrator' + * Product: '/PProd Out' + */ + rtb_Divide8 = (rtb_Divide1_cf * rtb_Divide11 + rtDW.Integrator_DSTATE_p) + + rtb_Divide1; + if (rtb_Divide8 < 256.0) { + if (rtb_Divide8 >= 0.0) { + rtb_Sum_i1 = (uint8_t)rtb_Divide8; + } else { + rtb_Sum_i1 = 0U; + } + } else { + rtb_Sum_i1 = UINT8_MAX; + } + + /* Saturate: '/Saturation' incorporates: + * Sum: '/Sum' + */ + if (rtb_Sum_i1 <= 100) { + rtDW.PID_TempRR = rtb_Sum_i1; + } else { + rtDW.PID_TempRR = 100U; + } + + /* End of Saturate: '/Saturation' */ + + /* DataTypeConversion: '/Data Type Conversion9' incorporates: + * DataStoreRead: '/Data Store Read12' + * DataStoreRead: '/Data Store Read13' + * Sum: '/Subtract8' + */ + rtb_Divide = (int16_t)(rtb_Merge_h - rtb_u6FRU_tg_amb); + + /* DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_DSTATE_e = 0.0; + + /* DiscreteIntegrator: '/Filter' */ + rtDW.Filter_DSTATE_f = 0.0; + + /* Product: '/NProd Out' incorporates: + * DiscreteIntegrator: '/Filter' + * Product: '/DProd Out' + * Sum: '/SumD' + */ + rtb_Divide5 = (rtb_Divide * rtb_Divide7 - rtDW.Filter_DSTATE_f) * + rtb_NProdOut_c_tmp; + + /* Sum: '/Sum' incorporates: + * DataTypeConversion: '/Data Type Conversion9' + * DiscreteIntegrator: '/Integrator' + * Product: '/PProd Out' + */ + rtb_Divide8 = (rtb_Divide1_cf * rtb_Divide + rtDW.Integrator_DSTATE_e) + + rtb_Divide5; + if (rtb_Divide8 < 256.0) { + if (rtb_Divide8 >= 0.0) { + rtb_Sum1 = (uint8_t)rtb_Divide8; + } else { + rtb_Sum1 = 0U; + } + } else { + rtb_Sum1 = UINT8_MAX; + } + + /* Saturate: '/Saturation' incorporates: + * Sum: '/Sum' + */ + if (rtb_Sum1 <= 100) { + rtDW.PID_TempFUR = rtb_Sum1; + } else { + rtDW.PID_TempFUR = 100U; + } + + /* End of Saturate: '/Saturation' */ + + /* DataTypeConversion: '/Data Type Conversion10' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read2' + * Sum: '/Subtract1' + */ + rtb_Divide10 = (int16_t)(rtb_FLU_tg_correct - rtb_MultiportSwitch_pp); + + /* DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_DSTATE_k = 0.0; + + /* DiscreteIntegrator: '/Filter' */ + rtDW.Filter_DSTATE_p = 0.0; + + /* Product: '/NProd Out' incorporates: + * DiscreteIntegrator: '/Filter' + * Product: '/DProd Out' + * Sum: '/SumD' + */ + rtb_Divide3 = (rtb_Divide10 * rtb_Divide7 - rtDW.Filter_DSTATE_p) * + rtb_NProdOut_c_tmp; + + /* Sum: '/Sum' incorporates: + * DataTypeConversion: '/Data Type Conversion10' + * DiscreteIntegrator: '/Integrator' + * Product: '/PProd Out' + */ + rtb_Divide8 = (rtb_Divide1_cf * rtb_Divide10 + rtDW.Integrator_DSTATE_k) + + rtb_Divide3; + if (rtb_Divide8 < 256.0) { + if (rtb_Divide8 >= 0.0) { + rtb_u_pc = (uint8_t)rtb_Divide8; + } else { + rtb_u_pc = 0U; + } + } else { + rtb_u_pc = UINT8_MAX; + } + + /* Saturate: '/Saturation' incorporates: + * Sum: '/Sum' + */ + if (rtb_u_pc <= 100) { + rtDW.PID_TempFUL = rtb_u_pc; + } else { + rtDW.PID_TempFUL = 100U; + } + + /* End of Saturate: '/Saturation' */ + + /* DataTypeConversion: '/Data Type Conversion12' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read3' + * Sum: '/Subtract6' + */ + rtb_Divide6 = (int16_t)(rtb_FLU_tg_correct_i - rtb_MultiportSwitch_m5); + + /* DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_DSTATE_j = 0.0; + + /* DiscreteIntegrator: '/Filter' */ + rtDW.Filter_DSTATE_l = 0.0; + + /* Product: '/NProd Out' incorporates: + * DiscreteIntegrator: '/Filter' + * Product: '/DProd Out' + * Sum: '/SumD' + */ + rtb_Filter_g = (rtb_Divide6 * rtb_Divide7 - rtDW.Filter_DSTATE_l) * + rtb_NProdOut_c_tmp; + + /* Sum: '/Sum' incorporates: + * DataTypeConversion: '/Data Type Conversion12' + * DiscreteIntegrator: '/Integrator' + * Product: '/PProd Out' + */ + rtb_Divide8 = (rtb_Divide1_cf * rtb_Divide6 + rtDW.Integrator_DSTATE_j) + + rtb_Filter_g; + if (rtb_Divide8 < 256.0) { + if (rtb_Divide8 >= 0.0) { + rtb_DataTypeConversion1_ay = (uint8_t)rtb_Divide8; + } else { + rtb_DataTypeConversion1_ay = 0U; + } + } else { + rtb_DataTypeConversion1_ay = UINT8_MAX; + } + + /* Saturate: '/Saturation' incorporates: + * Sum: '/Sum' + */ + if (rtb_DataTypeConversion1_ay <= 100) { + rtDW.PID_TempFLL = rtb_DataTypeConversion1_ay; + } else { + rtDW.PID_TempFLL = 100U; + } + + /* End of Saturate: '/Saturation' */ + + /* DataTypeConversion: '/Data Type Conversion14' incorporates: + * DataStoreRead: '/Data Store Read16' + * DataStoreRead: '/Data Store Read17' + * Sum: '/Subtract7' + */ + rtb_Divide8 = (int16_t)(rtb_FLU_tg_correct_a - rtb_X); + + /* DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_DSTATE_o = 0.0; + + /* DiscreteIntegrator: '/Filter' */ + rtDW.Filter_DSTATE_pw = 0.0; + + /* Product: '/NProd Out' incorporates: + * DiscreteIntegrator: '/Filter' + * Product: '/DProd Out' + * Sum: '/SumD' + */ + rtb_Divide7 = (rtb_Divide8 * rtb_Divide7 - rtDW.Filter_DSTATE_pw) * + rtb_NProdOut_c_tmp; + + /* Sum: '/Sum' incorporates: + * DataTypeConversion: '/Data Type Conversion14' + * DiscreteIntegrator: '/Integrator' + * Product: '/PProd Out' + */ + rtb_Divide1_cf = (rtb_Divide1_cf * rtb_Divide8 + rtDW.Integrator_DSTATE_o) + + rtb_Divide7; + if (rtb_Divide1_cf < 256.0) { + if (rtb_Divide1_cf >= 0.0) { + fan_speed_out = (uint8_t)rtb_Divide1_cf; + } else { + fan_speed_out = 0U; + } + } else { + fan_speed_out = UINT8_MAX; + } + + /* Saturate: '/Saturation' incorporates: + * Sum: '/Sum' + */ + if (fan_speed_out <= 100) { + rtDW.PID_TempFRL = fan_speed_out; + } else { + rtDW.PID_TempFRL = 100U; + } + + /* End of Saturate: '/Saturation' */ + + /* DeadZone: '/DeadZone' incorporates: + * Sum: '/Sum' + */ + if (Comp_Max_RPM_Allowed > 100) { + /* MW:begin MISRA2012:D4.1 CERT-C:INT30-C 'Justifying MISRA CPP rule violation' */ + rpm_phys = (int32_t)(Comp_Max_RPM_Allowed - /*MW:OvSatOk*/ 100U); + + /* MW:end MISRA2012:D4.1 CERT-C:INT30-C */ + if (Comp_Max_RPM_Allowed - 100U > Comp_Max_RPM_Allowed) { + rpm_phys = 0; + } + + Comp_Max_RPM_Allowed = (uint8_t)rpm_phys; + } else { + Comp_Max_RPM_Allowed = 0U; + } + + /* End of DeadZone: '/DeadZone' */ + + /* Product: '/IProd Out' incorporates: + * Constant: '/Constant12' + * Constant: '/Constant17' + * Constant: '/Constant22' + * Constant: '/Constant27' + * Constant: '/Constant3' + * Constant: '/Constant7' + * Product: '/IProd Out' + * Product: '/IProd Out' + * Product: '/IProd Out' + * Product: '/IProd Out' + * Product: '/IProd Out' + */ + rtb_NProdOut_c_tmp = (double)g_assPID_VALVE[1] / 100.0; + + /* Sum: '/SumI1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion6' + * Product: '/IProd Out' + */ + rtb_Divide1_cf = rtb_NProdOut_c_tmp * rtb_Divide4; + + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant2' + * RelationalOperator: '/fix for DT propagation issue' + */ + if (Comp_Max_RPM_Allowed > 0) { + rtb_y_c = 1; + } else { + rtb_y_c = -1; + } + + /* Switch: '/Switch2' incorporates: + * Constant: '/Clamping_zero' + * Constant: '/Constant3' + * Constant: '/Constant4' + * RelationalOperator: '/fix for DT propagation issue1' + */ + if (rtb_Divide1_cf > 0.0) { + tmp_3 = 1; + } else { + tmp_3 = -1; + } + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + * Logic: '/AND3' + * RelationalOperator: '/Equal1' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch1' + * Switch: '/Switch2' + */ + if ((Comp_Max_RPM_Allowed != 0) && (rtb_y_c == tmp_3)) { + rtb_Divide4 = 0.0; + } else { + rtb_Divide4 = rtb_Divide1_cf; + } + + /* End of Switch: '/Switch' */ + + /* DeadZone: '/DeadZone' incorporates: + * Sum: '/Sum' + */ + if (rtb_Sum_i1 > 100) { + rpm_phys = (int32_t)(rtb_Sum_i1 - /*MW:OvSatOk*/ 100U); + if (rtb_Sum_i1 - 100U > rtb_Sum_i1) { + rpm_phys = 0; + } + + rtb_Sum_i1 = (uint8_t)rpm_phys; + } else { + rtb_Sum_i1 = 0U; + } + + /* End of DeadZone: '/DeadZone' */ + + /* Sum: '/SumI1' incorporates: + * DataTypeConversion: '/Data Type Conversion7' + * Product: '/IProd Out' + */ + rtb_Divide1_cf = rtb_NProdOut_c_tmp * rtb_Divide11; + + /* DeadZone: '/DeadZone' incorporates: + * Sum: '/Sum' + */ + if (rtb_Sum1 > 100) { + rpm_phys = (int32_t)(rtb_Sum1 - /*MW:OvSatOk*/ 100U); + if (rtb_Sum1 - 100U > rtb_Sum1) { + rpm_phys = 0; + } + + rtb_Sum1 = (uint8_t)rpm_phys; + } else { + rtb_Sum1 = 0U; + } + + /* End of DeadZone: '/DeadZone' */ + + /* Sum: '/SumI1' incorporates: + * DataTypeConversion: '/Data Type Conversion9' + * Product: '/IProd Out' + */ + rtb_Divide11 = rtb_NProdOut_c_tmp * rtb_Divide; + + /* DeadZone: '/DeadZone' incorporates: + * Sum: '/Sum' + */ + if (rtb_u_pc > 100) { + rpm_phys = (int32_t)(rtb_u_pc - /*MW:OvSatOk*/ 100U); + if (rtb_u_pc - 100U > rtb_u_pc) { + rpm_phys = 0; + } + + Comp_Max_RPM_Allowed = (uint8_t)rpm_phys; + } else { + Comp_Max_RPM_Allowed = 0U; + } + + /* End of DeadZone: '/DeadZone' */ + + /* Sum: '/SumI1' incorporates: + * DataTypeConversion: '/Data Type Conversion10' + * Product: '/IProd Out' + */ + rtb_Divide10 *= rtb_NProdOut_c_tmp; + + /* DeadZone: '/DeadZone' incorporates: + * Sum: '/Sum' + */ + if (rtb_DataTypeConversion1_ay > 100) { + rpm_phys = (int32_t)(rtb_DataTypeConversion1_ay - /*MW:OvSatOk*/ 100U); + if (rtb_DataTypeConversion1_ay - 100U > rtb_DataTypeConversion1_ay) { + rpm_phys = 0; + } + + rtb_DataTypeConversion1_ay = (uint8_t)rpm_phys; + } else { + rtb_DataTypeConversion1_ay = 0U; + } + + /* End of DeadZone: '/DeadZone' */ + + /* Sum: '/SumI1' incorporates: + * DataTypeConversion: '/Data Type Conversion12' + * Product: '/IProd Out' + */ + rtb_Divide6 *= rtb_NProdOut_c_tmp; + + /* DeadZone: '/DeadZone' incorporates: + * Sum: '/Sum' + */ + if (fan_speed_out > 100) { + rpm_phys = (int32_t)(fan_speed_out - /*MW:OvSatOk*/ 100U); + if (fan_speed_out - 100U > fan_speed_out) { + rpm_phys = 0; + } + + fan_speed_out = (uint8_t)rpm_phys; + } else { + fan_speed_out = 0U; + } + + /* End of DeadZone: '/DeadZone' */ + + /* Sum: '/SumI1' incorporates: + * DataTypeConversion: '/Data Type Conversion14' + * Product: '/IProd Out' + */ + rtb_Divide8 *= rtb_NProdOut_c_tmp; + + /* Product: '/Divide' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read6' + * DataStoreRead: '/Data Store Read7' + * Sum: '/Add' + */ + rtb_Divide = (double)(rtb_Saturation4 + rtb_Switch3_e) / 4.0; + + /* Switch: '/Switch' */ + if (rtb_Divide > 0.0) { + /* Saturate: '/Saturation2' */ + if (rtb_Divide > 80.0) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataStoreWrite: '/Data Store Write2' */ rtDW.PWM_front = 80U; - } else if (Blower_AF_FL < 15.0) { - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreWrite: '/Data Store Write2' + } else if (rtb_Divide < 15.0) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataStoreWrite: '/Data Store Write2' */ rtDW.PWM_front = 15U; } else { - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreWrite: '/Data Store Write2' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataStoreWrite: '/Data Store Write2' */ - rtDW.PWM_front = (uint8_t)Blower_AF_FL; + rtDW.PWM_front = (uint8_t)rtb_Divide; } - /* End of Saturate: '/Saturation2' */ + /* End of Saturate: '/Saturation2' */ } else { - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Constant: '/Constant1' - * DataStoreWrite: '/Data Store Write2' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Constant: '/Constant1' + * DataStoreWrite: '/Data Store Write2' */ rtDW.PWM_front = 0U; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read3' - * Sum: '/Add1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read3' + * Sum: '/Add1' */ - Blower_AF_FL = (double)(Blower_AF_RL + rtb_Saturation9) / 4.0; + rtb_Divide = (double)(rtb_DataTypeConversion1_h2 + rtb_DataTypeConversion3_j0) + / 4.0; - /* Switch: '/Switch1' */ - if (Blower_AF_FL > 0.0) { - /* Saturate: '/Saturation1' */ - if (Blower_AF_FL > 80.0) { - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataStoreWrite: '/Data Store Write3' + /* Switch: '/Switch1' */ + if (rtb_Divide > 0.0) { + /* Saturate: '/Saturation1' */ + if (rtb_Divide > 80.0) { + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataStoreWrite: '/Data Store Write3' */ rtDW.PWM_rear = 80U; - } else if (Blower_AF_FL < 15.0) { - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataStoreWrite: '/Data Store Write3' + } else if (rtb_Divide < 15.0) { + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataStoreWrite: '/Data Store Write3' */ rtDW.PWM_rear = 15U; } else { - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataStoreWrite: '/Data Store Write3' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataStoreWrite: '/Data Store Write3' */ - rtDW.PWM_rear = (uint8_t)Blower_AF_FL; + rtDW.PWM_rear = (uint8_t)rtb_Divide; } - /* End of Saturate: '/Saturation1' */ + /* End of Saturate: '/Saturation1' */ } else { - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * Constant: '/Constant3' - * DataStoreWrite: '/Data Store Write3' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * Constant: '/Constant3' + * DataStoreWrite: '/Data Store Write3' */ rtDW.PWM_rear = 0U; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' - * DataStoreWrite: '/Data Store Write2' - * DataStoreWrite: '/Data Store Write3' + /* Switch: '/Switch2' incorporates: + * DataStoreRead: '/Data Store Read64' + * Switch: '/Switch3' + */ + if (rtDW.BCM_T15_Stat > 0) { + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' + * DataStoreWrite: '/Data Store Write2' + * DataStoreWrite: '/Data Store Write3' + */ + PWM_Get.pwmPercentFront = rtDW.PWM_front; + PWM_Get.pwmPercentRear = rtDW.PWM_rear; + } else { + /* BusCreator: '/Bus Creator' incorporates: + * Constant: '/Constant5' + * Constant: '/Constant6' + * DataStoreWrite: '/Data Store Write' + */ + PWM_Get.pwmPercentFront = 0U; + PWM_Get.pwmPercentRear = 0U; + } + + /* End of Switch: '/Switch2' */ + + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ - PWM_Get.pwmPercentFront = rtDW.PWM_front; - PWM_Get.pwmPercentRear = rtDW.PWM_rear; PWM_Get.pwmPercentFrontReserved = 0U; PWM_Get.pwmPercentRearReserved = 0U; - /* BusCreator: '/Bus Creator1' incorporates: - * DataStoreRead: '/Data Store Read51' - * DataStoreRead: '/Data Store Read52' - * DataStoreRead: '/Data Store Read53' - * DataStoreRead: '/Data Store Read54' - * DataStoreRead: '/Data Store Read56' - * DataStoreRead: '/Data Store Read57' - * DataStoreRead: '/Data Store Read58' - * DataStoreRead: '/Data Store Read59' - * DataStoreRead: '/Data Store Read60' - * DataStoreRead: '/Data Store Read61' - * DataStoreRead: '/Data Store Read62' - * DataStoreRead: '/Data Store Read63' - * DataStoreRead: '/Data Store Read64' - * DataStoreRead: '/Data Store Read65' - * DataStoreRead: '/Data Store Read66' - * DataStoreRead: '/Data Store Read67' + /* BusCreator: '/Bus Creator1' incorporates: + * DataStoreRead: '/Data Store Read51' + * DataStoreRead: '/Data Store Read52' + * DataStoreRead: '/Data Store Read53' + * DataStoreRead: '/Data Store Read54' + * DataStoreRead: '/Data Store Read56' + * DataStoreRead: '/Data Store Read57' + * DataStoreRead: '/Data Store Read58' + * DataStoreRead: '/Data Store Read59' + * DataStoreRead: '/Data Store Read60' + * DataStoreRead: '/Data Store Read61' + * DataStoreRead: '/Data Store Read62' + * DataStoreRead: '/Data Store Read63' + * DataStoreRead: '/Data Store Read64' + * DataStoreRead: '/Data Store Read65' + * DataStoreRead: '/Data Store Read66' + * DataStoreRead: '/Data Store Read67' * DataStoreWrite: '/Data Store Write27' - * DataStoreWrite: '/Data Store Write8' - * DataTypeConversion: '/Data Type Conversion1' - * DataTypeConversion: '/Data Type Conversion2' - * DataTypeConversion: '/Data Type Conversion3' - * DataTypeConversion: '/Data Type Conversion4' - * Logic: '/Logical Operator2' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * Logic: '/Logical Operator5' + * DataStoreWrite: '/Data Store Write8' + * DataTypeConversion: '/Data Type Conversion1' + * DataTypeConversion: '/Data Type Conversion2' + * DataTypeConversion: '/Data Type Conversion3' + * DataTypeConversion: '/Data Type Conversion4' + * Logic: '/Logical Operator2' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * Logic: '/Logical Operator5' */ /* : if(LOGGER) */ rtDW.PowerEnable_Model.SW5V_EN = rtDW.SW5V_EN; @@ -25635,283 +32346,338 @@ void HVAC_model_step(void) */ rtY.PWM_Get_f = PWM_Get; - /* SwitchCase: '/Incar Motors' incorporates: - * Constant: '/Constant' - * Constant: '/Constant' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * Logic: '/Logical Operator' - * Logic: '/Logical Operator1' - * RelationalOperator: '/Compare' - * RelationalOperator: '/Compare' - * RelationalOperator: '/Compare' + /* SwitchCase: '/Incar Motors' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * Logic: '/Logical Operator' + * Logic: '/Logical Operator1' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' */ if ((rtDW.BCM_T15_Stat != 0) && ((rtDW.CCU_BLOWERS_RL != 0) || (rtDW.CCU_BLOWERS_RR != 0))) { - /* Outputs for IfAction SubSystem: '/Subsystem2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Subsystem2' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant' */ rtDW.Incar_Motor_Front_EN = 1U; - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Constant' */ rtDW.Incar_Motor_Rear_EN = 1U; - /* End of Outputs for SubSystem: '/Subsystem2' */ + /* End of Outputs for SubSystem: '/Subsystem2' */ } else { - /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant' */ rtDW.Incar_Motor_Front_EN = 0U; - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Constant' */ rtDW.Incar_Motor_Rear_EN = 0U; - /* End of Outputs for SubSystem: '/Subsystem' */ + /* End of Outputs for SubSystem: '/Subsystem' */ } - /* End of SwitchCase: '/Incar Motors' */ + /* End of SwitchCase: '/Incar Motors' */ - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreRead: '/Data Store Read2' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion2' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read2' + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion2' */ rtDW.dbgCAN_dbg_Sen_0_model.dbg_Sen_BattVolt_ro = 0U; rtDW.dbgCAN_dbg_Sen_0_model.dbg_Sen_Pressure_ro = (uint16_t)rtDW.Pressure; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreRead: '/Data Store Read' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreRead: '/Data Store Read' */ - rtb_Divide1_l5 = fabs(rtDW.Sun_L); - if (rtb_Divide1_l5 < 4.503599627370496E+15) { - if (rtb_Divide1_l5 >= 0.5) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + rtb_Divide = fabs(rtDW.Sun_L); + if (rtb_Divide < 4.503599627370496E+15) { + if (rtb_Divide >= 0.5) { + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ rtDW.dbgCAN_dbg_Sen_0_model.dbg_Sen_Sun_L = (uint16_t)floor(rtDW.Sun_L + 0.5); } else { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ rtDW.dbgCAN_dbg_Sen_0_model.dbg_Sen_Sun_L = 0U; } } else { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ rtDW.dbgCAN_dbg_Sen_0_model.dbg_Sen_Sun_L = (uint16_t)rtDW.Sun_L; } - /* End of DataTypeConversion: '/Data Type Conversion' */ + /* End of DataTypeConversion: '/Data Type Conversion' */ - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreRead: '/Data Store Read1' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataStoreRead: '/Data Store Read1' */ - rtb_Divide1_l5 = fabs(rtDW.Sun_R); - if (rtb_Divide1_l5 < 4.503599627370496E+15) { - if (rtb_Divide1_l5 >= 0.5) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + rtb_Divide = fabs(rtDW.Sun_R); + if (rtb_Divide < 4.503599627370496E+15) { + if (rtb_Divide >= 0.5) { + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ rtDW.dbgCAN_dbg_Sen_0_model.dbg_Sen_Sun_R = (uint16_t)floor(rtDW.Sun_R + 0.5); } else { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ rtDW.dbgCAN_dbg_Sen_0_model.dbg_Sen_Sun_R = 0U; } } else { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' */ rtDW.dbgCAN_dbg_Sen_0_model.dbg_Sen_Sun_R = (uint16_t)rtDW.Sun_R; } - /* End of DataTypeConversion: '/Data Type Conversion1' */ + /* End of DataTypeConversion: '/Data Type Conversion1' */ - /* BusCreator: '/Bus Creator1' incorporates: - * Constant: '/Constant10' - * Constant: '/Constant6' - * Constant: '/Constant7' - * Constant: '/Constant8' - * Constant: '/Constant9' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read10' - * DataStoreRead: '/Data Store Read11' - * DataStoreRead: '/Data Store Read13' - * DataStoreRead: '/Data Store Read15' - * DataStoreRead: '/Data Store Read17' - * DataStoreRead: '/Data Store Read19' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read3' - * DataStoreRead: '/Data Store Read4' - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/Data Store Read6' - * DataStoreRead: '/Data Store Read7' - * DataStoreRead: '/Data Store Read8' - * DataStoreRead: '/Data Store Read9' - * DataStoreWrite: '/Data Store Write4' - * DataStoreWrite: '/Data Store Write1' + /* BusCreator: '/Bus Creator1' incorporates: + * Constant: '/Constant10' + * Constant: '/Constant6' + * Constant: '/Constant7' + * Constant: '/Constant8' + * Constant: '/Constant9' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read10' + * DataStoreRead: '/Data Store Read11' + * DataStoreRead: '/Data Store Read12' + * DataStoreRead: '/Data Store Read13' + * DataStoreRead: '/Data Store Read15' + * DataStoreRead: '/Data Store Read17' + * DataStoreRead: '/Data Store Read19' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read3' + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/Data Store Read6' + * DataStoreRead: '/Data Store Read7' + * DataStoreRead: '/Data Store Read8' + * DataStoreRead: '/Data Store Read9' + * DataStoreWrite: '/Data Store Write1' */ rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_MultMsg_Idx = 0U; rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Fb_Select = 0U; rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_RR_Fb_Select = 0U; rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_RL_Fb_Select = 0U; rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FR_Fb_Select = 0U; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_RL_Tgt_ro = 0; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FR_Upper_Tgt_ro = rtb_Selector_p; + rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_RL_Tgt_ro = rtb_FLU_tg_correct_me; + rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FR_Upper_Tgt_ro = rtb_Merge_h; rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_RR_Tgt_ro = rtDW.Duct_RR_Tg; rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Upper_Tgt_ro = rtb_FLU_tg_correct; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_RR_Fb_ro = rtb_Bias1_h; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_RL_Fb_ro = rtb_MultiportSwitch_ae; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FR_Upper_Fb_ro = rtb_y_bf; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Upper_Fb_ro = rtb_y_fe; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FR_Side_Fb_ro = rtb_y_ck; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Side_Fb_ro = rtb_y_lg; + rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_RR_Fb_ro = Duct2_R; + rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_RL_Fb_ro = Duct1_R; + rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FR_Upper_Fb_ro = rtb_u6FRU_tg_amb; + rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Upper_Fb_ro = + rtb_MultiportSwitch_pp; + rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FR_Side_Fb_ro = Duct6_F; + rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Side_Fb_ro = rtb_Bias1_h; rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_RL_Side_Fb_ro = Duct3_R; rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_RR_Side_Fb_ro = Duct4_R; rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FR_Lower_Tgt_ro = - rtb_FLU_tg_correct_b; + rtb_FLU_tg_correct_a; rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Lower_Tgt_ro = - rtb_FLU_tg_correct_de; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FR_Lower_Fb_ro = rtb_y_h5; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Lower_Fb_ro = rtb_y_ar; + rtb_FLU_tg_correct_i; + rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FR_Lower_Fb_ro = rtb_X; + rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Lower_Fb_ro = + rtb_MultiportSwitch_m5; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read53' - * DataStoreRead: '/Data Store Read54' - * DataStoreRead: '/Data Store Read6' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read53' + * DataStoreRead: '/Data Store Read54' + * DataStoreRead: '/Data Store Read6' * DataStoreWrite: '/Data Store Write27' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion4' - * Logic: '/Logical Operator5' + * DataStoreWrite: '/Data Store Write' */ rtDW.dbgCAN_CCU_IO_model.dbg_IO_Txv_F = rtb_timer_out; rtDW.dbgCAN_CCU_IO_model.dbg_IO_Txv_R = ShutOffRear_EN; rtDW.dbgCAN_CCU_IO_model.dbg_IO_Txv_Ch = EN_BATTChiller; - rtDW.dbgCAN_CCU_IO_model.dbg_IO_2WayValve = (uint8_t)(rtB.Cmd_2Way == 0); + rtDW.dbgCAN_CCU_IO_model.dbg_IO_2WayValve = rtB.Cmd_2Way; rtDW.dbgCAN_CCU_IO_model.dbg_IO_IncarMotor_F = rtDW.Incar_Motor_Front_EN; rtDW.dbgCAN_CCU_IO_model.dbg_IO_IncarMotor_R = rtDW.Incar_Motor_Rear_EN; - /* Saturate: '/Saturation' incorporates: - * DataStoreRead: '/Data Store Read2' + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read2' */ if (rtDW.CCU_SET_FL > 310) { - Gain = 310U; + rtb_out_os = 310U; } else if (rtDW.CCU_SET_FL < 155) { - Gain = 155U; + rtb_out_os = 155U; } else { - Gain = rtDW.CCU_SET_FL; + rtb_out_os = rtDW.CCU_SET_FL; } - /* BusCreator: '/Bus Creator' incorporates: - * Bias: '/Bias' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - * Saturate: '/Saturation' + /* BusCreator: '/Bus Creator' incorporates: + * Bias: '/Bias' + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + * Saturate: '/Saturation' */ rtDW.dbgCAN_CCU_IO_model.dbg_SetTemp_FL_ro = (uint8_t)((0.10000038146972656 * - (double)Gain - 16.0) * 2.0); + (double)rtb_out_os - 16.0) * 2.0); - /* Saturate: '/Saturation' incorporates: - * DataStoreRead: '/Data Store Read3' + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read3' */ if (rtDW.CCU_SET_FR > 310) { - Gain = 310U; + rtb_out_os = 310U; } else if (rtDW.CCU_SET_FR < 155) { - Gain = 155U; + rtb_out_os = 155U; } else { - Gain = rtDW.CCU_SET_FR; + rtb_out_os = rtDW.CCU_SET_FR; } - /* BusCreator: '/Bus Creator' incorporates: - * Bias: '/Bias' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - * Saturate: '/Saturation' + /* BusCreator: '/Bus Creator' incorporates: + * Bias: '/Bias' + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + * Saturate: '/Saturation' */ rtDW.dbgCAN_CCU_IO_model.dbg_SetTemp_FR_ro = (uint8_t)((0.10000038146972656 * - (double)Gain - 16.0) * 2.0); + (double)rtb_out_os - 16.0) * 2.0); - /* Saturate: '/Saturation' incorporates: - * DataStoreRead: '/Data Store Read4' + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read4' */ if (rtDW.CCU_SET_RL > 310) { - Gain = 310U; + rtb_out_os = 310U; } else if (rtDW.CCU_SET_RL < 155) { - Gain = 155U; + rtb_out_os = 155U; } else { - Gain = rtDW.CCU_SET_RL; + rtb_out_os = rtDW.CCU_SET_RL; } - /* BusCreator: '/Bus Creator' incorporates: - * Bias: '/Bias' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - * Saturate: '/Saturation' + /* BusCreator: '/Bus Creator' incorporates: + * Bias: '/Bias' + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + * Saturate: '/Saturation' */ rtDW.dbgCAN_CCU_IO_model.dbg_SetTemp_RL_ro = (uint8_t)((0.10000038146972656 * - (double)Gain - 16.0) * 2.0); + (double)rtb_out_os - 16.0) * 2.0); - /* Saturate: '/Saturation' incorporates: - * DataStoreRead: '/Data Store Read5' + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read5' */ if (rtDW.CCU_SET_RR > 310) { - Gain = 310U; + rtb_out_os = 310U; } else if (rtDW.CCU_SET_RR < 155) { - Gain = 155U; + rtb_out_os = 155U; } else { - Gain = rtDW.CCU_SET_RR; + rtb_out_os = rtDW.CCU_SET_RR; } - /* BusCreator: '/Bus Creator' incorporates: - * Bias: '/Bias' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - * Saturate: '/Saturation' + /* BusCreator: '/Bus Creator' incorporates: + * Bias: '/Bias' + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + * Saturate: '/Saturation' */ rtDW.dbgCAN_CCU_IO_model.dbg_SetTemp_RR_ro = (uint8_t)((0.10000038146972656 * - (double)Gain - 16.0) * 2.0); + (double)rtb_out_os - 16.0) * 2.0); rtDW.dbgCAN_CCU_IO_model.dbg_IO_Input_Emergency = 0U; rtDW.dbgCAN_CCU_IO_model.dbg_IO_Input_FireExtinguisher = 0U; rtDW.dbgCAN_CCU_IO_model.dbg_IO_Install_Sealing_Valve = 0U; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read3' - * DataStoreRead: '/Data Store Read4' - * DataStoreRead: '/Data Store Read55' - * DataStoreRead: '/Data Store Read7' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read7' + * DataStoreWrite: '/Data Store Write' + * DataStoreWrite: '/Data Store Write1' + * DataStoreWrite: '/Data Store Write2' + * DataStoreWrite: '/Data Store Write3' + * DataStoreWrite: '/Data Store Write4' + * DataStoreWrite: '/Data Store Write5' + * DataStoreWrite: '/Data Store Write6' + * DataStoreWrite: '/Data Store Write7' + * DataStoreWrite: '/Data Store Write' + */ + rtDW.dbg_Drs_t_model.dbg_Drs_0_SFL_DL = + rtDW.LIN5_SENSON_ADR_Stat_model.DRS_DL_Stat; + rtDW.dbg_Drs_t_model.dbg_Drs_1_CFL_FPL = + rtDW.LIN5_SENSON_ADR_Stat_model.DRS_DR_Stat; + rtDW.dbg_Drs_t_model.dbg_Drs_2_CFR_FPR = + rtDW.LIN5_SENSON_ADR_Stat_model.DRS_FPL_Stat; + rtDW.dbg_Drs_t_model.dbg_Drs_3_SFR_DR = + rtDW.LIN5_SENSON_ADR_Stat_model.DRS_FPR_Stat; + rtDW.dbg_Drs_t_model.dbg_Drs_4_SRL_RLB = + rtDW.LIN5_SENSON_ADR_Stat_model.DRS_RLB_Stat; + rtDW.dbg_Drs_t_model.dbg_Drs_5_CRL_FCL = + rtDW.LIN5_SENSON_ADR_Stat_model.DRS_RRB_Stat; + rtDW.dbg_Drs_t_model.dbg_Drs_6_CRR_FCR = + rtDW.LIN5_SENSON_ADR_Stat_model.DRS_FCL_Stat; + rtDW.dbg_Drs_t_model.dbg_Drs_7_SRR_RRB = + rtDW.LIN5_SENSON_ADR_Stat_model.DRS_FCR_Stat; + + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write' + * DataStoreWrite: '/Data Store Write1' + * DataStoreWrite: '/Data Store Write2' + * DataStoreWrite: '/Data Store Write3' + * DataStoreWrite: '/Data Store Write4' + * DataStoreWrite: '/Data Store Write5' + * DataStoreWrite: '/Data Store Write6' + * DataStoreWrite: '/Data Store Write' + */ + rtDW.dbg_LIN_AirQS_Stat_t_model.LIN_AirQS_LinRespErr_Stat = + rtDW.LIN4_AirQS_Stat_Model.AirQS_LinRespErr_Stat; + rtDW.dbg_LIN_AirQS_Stat_t_model.LIN_AirQualSen_Stat = + rtDW.LIN4_AirQS_Stat_Model.AirQS_Sens_Stat; + rtDW.dbg_LIN_AirQS_Stat_t_model.LIN_AirQualSenCombined_Val = + rtDW.LIN4_AirQS_Stat_Model.AirQS_Combined_Stat; + rtDW.dbg_LIN_AirQS_Stat_t_model.LIN_AirQualSen_Error_Stat = + rtDW.LIN4_AirQS_Stat_Model.AirQS_Err_Stat; + rtDW.dbg_LIN_AirQS_Stat_t_model.LIN_AirQualSenCOlvl_Val = + rtDW.LIN4_AirQS_Stat_Model.AirQS_COLvl_Stat; + rtDW.dbg_LIN_AirQS_Stat_t_model.LIN_AirQualSenNOxlvl_Val = + rtDW.LIN4_AirQS_Stat_Model.AirQS_NOxLvl_Stat; + rtDW.dbg_LIN_AirQS_Stat_t_model.LIN_AirQualSenNH3lvl_Val = + rtDW.LIN4_AirQS_Stat_Model.AirQS_NH3Lvl_Stat; + + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read3' + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read55' + * DataStoreRead: '/Data Store Read7' * DataStoreWrite: '/Data Store Write' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion2' + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion2' */ rtDW.dbg_Logic_Ac_model.Logic_Ac_Req_Front = rtDW.CCU_AC_FRONT; rtDW.dbg_Logic_Ac_model.Logic_Ac_Txv_Front = rtb_timer_out; @@ -25920,27 +32686,27 @@ void HVAC_model_step(void) rtDW.dbg_Logic_Ac_model.Logic_Ac_Req_Chiller = rtDW.eCompChiller_Req; rtDW.dbg_Logic_Ac_model.Logic_Ac_Txv_Chiller = EN_BATTChiller; rtDW.dbg_Logic_Ac_model.Logic_Ac_EvaCtrl = rtB.Eva_Ctrl; - rtDW.dbg_Logic_Ac_model.Logic_Ac_Comp_EmrStop_Reason = eComp_stop; + rtDW.dbg_Logic_Ac_model.Logic_Ac_Comp_EmrStop_Reason = 0U; rtDW.dbg_Logic_Ac_model.Logic_Ac_Txv_Closed_bySen = 0U; rtDW.dbg_Logic_Ac_model.Logic_Ac_WinterSts_Front = 0U; rtDW.dbg_Logic_Ac_model.Logic_Ac_WinterSts_Rear = 0U; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read2' - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read2' + * DataStoreWrite: '/Data Store Write' * DataStoreWrite: '/Data Store Write3' */ rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_Idx = rtDW.Full_Rec; - rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_Partial_Spd_Sts = rtb_Switch_gs; + rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_Partial_Spd_Sts = rtb_Saturation4_l; rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_Partial_Winter = 0U; - rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_Partial_Summer = rtb_Saturation4_l; + rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_Partial_Summer = rtb_Gain2_hu; rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_FreshAirPurge_Sts = 0U; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read2' - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read2' + * DataStoreWrite: '/Data Store Write' */ rtDW.dbgCAN_Logic_State_model.Logic_Operation_Mode = 0U; rtDW.dbgCAN_Logic_State_model.Logic_Amb_Level = rtDW.LEVEL; @@ -25951,54 +32717,81 @@ void HVAC_model_step(void) rtDW.dbgCAN_Logic_State_model.Logic_Rest_Mode = 0U; rtDW.dbgCAN_Logic_State_model.Logic_LoHi_Front = rtDW.CAN_LoHi_Front; rtDW.dbgCAN_Logic_State_model.Logic_2WayValve_Status = 0U; - rtDW.dbgCAN_Logic_State_model.Logic_Full_Auto_FL = 0U; - rtDW.dbgCAN_Logic_State_model.Logic_Full_Auto_FR = 0U; - rtDW.dbgCAN_Logic_State_model.Logic_Full_Auto_RL = 0U; + + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreRead: '/Data Store Read6' + * DataTypeConversion: '/Data Type Conversion1' + * DataTypeConversion: '/Data Type Conversion2' + */ + rtb_Divide = fabs(rtDW.step_test); + if (rtb_Divide < 4.503599627370496E+15) { + if (rtb_Divide >= 0.5) { + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' + */ + rtDW.dbgCAN_Logic_State_model.Logic_Full_Auto_FL = (uint8_t)floor + (rtDW.step_test + 0.5); + } else { + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' + */ + rtDW.dbgCAN_Logic_State_model.Logic_Full_Auto_FL = 0U; + } + + if (rtb_Divide >= 0.5) { + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read7' + * DataStoreWrite: '/Data Store Write' + */ + rtDW.dbgCAN_Logic_State_model.Logic_Full_Auto_FR = (uint8_t)floor + (rtDW.step_test + 0.5); + } else { + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' + */ + rtDW.dbgCAN_Logic_State_model.Logic_Full_Auto_FR = 0U; + } + + if (rtb_Divide >= 0.5) { + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read8' + * DataStoreWrite: '/Data Store Write' + */ + rtDW.dbgCAN_Logic_State_model.Logic_Full_Auto_RL = (uint8_t)floor + (rtDW.step_test + 0.5); + } else { + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' + */ + rtDW.dbgCAN_Logic_State_model.Logic_Full_Auto_RL = 0U; + } + } else { + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' + */ + rtDW.dbgCAN_Logic_State_model.Logic_Full_Auto_FL = (uint8_t)rtDW.step_test; + rtDW.dbgCAN_Logic_State_model.Logic_Full_Auto_FR = (uint8_t)rtDW.step_test; + rtDW.dbgCAN_Logic_State_model.Logic_Full_Auto_RL = (uint8_t)rtDW.step_test; + } + + /* End of DataTypeConversion: '/Data Type Conversion' */ + + /* BusCreator: '/Bus Creator' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read3' + * DataStoreRead: '/Data Store Read4' + * DataStoreWrite: '/Data Store Write' + * Sum: '/Sum' + * Sum: '/Sum1' + */ rtDW.dbgCAN_Logic_State_model.Logic_Full_Auto_RR = 0U; rtDW.dbgCAN_Logic_State_model.Logic_Full_MaxAc = 0U; rtDW.dbgCAN_Logic_State_model.Logic_Full_MaxDef = 0U; - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - if (rtDW.step_start_controle_front > 0) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtDW.dbgCAN_Logic_State_model.Logic_Start_Ctrl_Front = (uint8_t) - rtDW.step_start_controle_front; - } else { - /* BusCreator: '/Bus Creator' incorporates: - * Constant: '/Constant' - * DataStoreWrite: '/Data Store Write' - */ - rtDW.dbgCAN_Logic_State_model.Logic_Start_Ctrl_Front = 0U; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch1' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - if (rtDW.step_start_controle_rear > 0) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtDW.dbgCAN_Logic_State_model.Logic_Start_Ctrl_Rear = (uint8_t) - rtDW.step_start_controle_rear; - } else { - /* BusCreator: '/Bus Creator' incorporates: - * Constant: '/Constant' - * DataStoreWrite: '/Data Store Write' - */ - rtDW.dbgCAN_Logic_State_model.Logic_Start_Ctrl_Rear = 0U; - } - - /* End of Switch: '/Switch1' */ - - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' - */ + rtDW.dbgCAN_Logic_State_model.Logic_Start_Ctrl_Front = (uint8_t) + (rtDW.step_start_controle_front + 1); + rtDW.dbgCAN_Logic_State_model.Logic_Start_Ctrl_Rear = (uint8_t) + (rtDW.step_start_controle_rear + 1); rtDW.dbgCAN_Logic_State_model.Logic_Valve_Use_DiffBlr_R2 = 0U; rtDW.dbgCAN_Logic_State_model.Logic_Duct_WaitCorrection_FRL = 0U; rtDW.dbgCAN_Logic_State_model.Logic_Duct_WaitCorrection_FLL = 0U; @@ -26006,10 +32799,23 @@ void HVAC_model_step(void) rtDW.dbgCAN_Logic_State_model.Logic_AF_WaitCorrection_FL = 0U; rtDW.dbgCAN_Logic_State_model.Logic_AF_WaitCorrection_FR = 0U; - /* BusCreator: '/Bus Creator1' incorporates: - * DataStoreRead: '/Data Store Read4' - * DataStoreWrite: '/Data Store Write2' - * DataStoreWrite: '/Data Store Write1' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' + */ + rtDW.dbg_Logic_Valve_model.Logic_Valve_Index_FL = rtDW.ModeIndex[0]; + rtDW.dbg_Logic_Valve_model.Logic_Valve_Index_FR = rtDW.ModeIndex[1]; + rtDW.dbg_Logic_Valve_model.Logic_Valve_Index_RL = rtDW.ModeIndex[2]; + rtDW.dbg_Logic_Valve_model.Logic_Valve_Index_RR = rtDW.ModeIndex[3]; + rtDW.dbg_Logic_Valve_model.Logic_Valve_Direction_FL = 0U; + rtDW.dbg_Logic_Valve_model.Logic_Valve_Direction_FR = 0U; + rtDW.dbg_Logic_Valve_model.Logic_Valve_Direction_RL = 0U; + rtDW.dbg_Logic_Valve_model.Logic_Valve_Direction_RR = 0U; + + /* BusCreator: '/Bus Creator1' incorporates: + * DataStoreRead: '/Data Store Read4' + * DataStoreWrite: '/Data Store Write2' + * DataStoreWrite: '/Data Store Write1' */ rtDW.dbgCAN_dbg_Act0_model.dbg_Act00_Def = rtb_DataTypeConversion_bh[0]; rtDW.dbgCAN_dbg_Act0_model.dbg_Act01_Vent_SFL = rtb_DataTypeConversion_bh[5]; @@ -26020,11 +32826,11 @@ void HVAC_model_step(void) rtDW.dbgCAN_dbg_Act0_model.dbg_Act06_Vent_SFR = Actuator_pos_percent_Ch1[2]; rtDW.dbgCAN_dbg_Act0_model.dbg_Act07_Foot_1FR = Actuator_pos_percent_Ch1[4]; - /* BusCreator: '/Bus Creator3' incorporates: - * DataStoreRead: '/Data Store Read4' - * DataStoreRead: '/Data Store Read5' - * DataStoreWrite: '/Data Store Write2' - * DataStoreWrite: '/Data Store Write2' + /* BusCreator: '/Bus Creator3' incorporates: + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read5' + * DataStoreWrite: '/Data Store Write2' + * DataStoreWrite: '/Data Store Write2' */ rtDW.dbgCAN_dbg_Act2_model.dbg_Act16_TempL_FL = rtb_DataTypeConversion_bh[6]; rtDW.dbgCAN_dbg_Act2_model.dbg_Act17_TempU_FR = Actuator_pos_percent_Ch1[0]; @@ -26036,11 +32842,11 @@ void HVAC_model_step(void) rtDW.dbgCAN_dbg_Act2_model.dbg_Act23_SealingValve = rtb_DataTypeConversion_fb [8]; - /* BusCreator: '/Bus Creator2' incorporates: - * DataStoreRead: '/Data Store Read4' - * DataStoreRead: '/Data Store Read5' - * DataStoreWrite: '/Data Store Write2' - * DataStoreWrite: '/Data Store Write3' + /* BusCreator: '/Bus Creator2' incorporates: + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read5' + * DataStoreWrite: '/Data Store Write2' + * DataStoreWrite: '/Data Store Write3' */ rtDW.dbgCAN_dbg_Act1_model.dbg_Act08_Foot_2FR = Actuator_pos_percent_Ch1[5]; rtDW.dbgCAN_dbg_Act1_model.dbg_Act09_Vent_SRL = rtb_DataTypeConversion_fb[2]; @@ -26051,124 +32857,126 @@ void HVAC_model_step(void) rtDW.dbgCAN_dbg_Act1_model.dbg_Act14_Foot_RR = rtb_DataTypeConversion_fb[6]; rtDW.dbgCAN_dbg_Act1_model.dbg_Act15_TempU_FL = rtb_DataTypeConversion_bh[3]; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write' */ rtDW.dbgCAN_dbg_Sen_Amb_model.dbg_Sen_Amb_ro = rtDW.AMB; - rtDW.dbgCAN_dbg_Sen_Amb_model.dbg_Sen_Amb_Raw_ro = rtb_Bias5; + rtDW.dbgCAN_dbg_Sen_Amb_model.dbg_Sen_Amb_Raw_ro = rtDW.AMB; rtDW.dbgCAN_dbg_Sen_Amb_model.dbg_Amb_Tg_ro = 0; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' - * SignalConversion generated from: '/Vector Concatenate' - * SignalConversion generated from: '/Vector Concatenate' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' + * SignalConversion generated from: '/Vector Concatenate' + * SignalConversion generated from: '/Vector Concatenate' + * SignalConversion generated from: '/Vector Concatenate' + * SignalConversion generated from: '/Vector Concatenate' * */ rtDW.dbg_Auto_AF_model.dbg_Auto_AF_MultMsg_Idx = 0U; rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Correct_FL = 0; rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Correct_FR = 0; rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Correct_RL = 0; rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Correct_RR = 0; - rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Vtg_RL = 0; + rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Vtg_RL = rtb_MultiportSwitch_j; rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Vtg_FL = rtb_Bias_ct; - rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Vtg_FR = rtb_MultiportSwitch1_h; - rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Vtg_RR = 0; - rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Incar_RL = 0; - rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Incar_FR = rtb_u5FLU_tg_incar_l; - rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Incar_RR = 0; + rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Vtg_FR = rtb_MultiportSwitch1_oi; + rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Vtg_RR = rtb_u5FRU_tg_incar; + rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Incar_RL = rtb_Bias5; + rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Incar_FR = rtb_u5FLU_tg_incar_ce; + rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Incar_RR = rtb_MultiportSwitch_i; rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Incar_FL = rtb_Bias4; - rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Amb_RL = 0; - rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Amb_FR = rtb_u6FLU_tg_amb_hq; - rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Sun_RR = 0; - rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Amb_FL = rtb_Bias2; - rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Sun_FR = rtb_u6FLU_tg_amb; - rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Sun_RL = 0; - rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Amb_RR = 0; + rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Amb_RL = rtb_MultiportSwitch_m; + rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Amb_FR = rtb_u6FLU_tg_amb_l; + rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Sun_RR = rtb_MultiportSwitch_i; + rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Amb_FL = rtb_Bias2_n; + rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Sun_FR = rtb_u6FLU_tg_amb_f; + rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Sun_RL = rtb_MultiportSwitch_nz; + rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Amb_RR = rtb_u6FRU_tg_amb_h; rtDW.dbg_Auto_AF_model.dbg_Auto_AF_Sun_FL = rtb_Bias3; - /* BusCreator: '/Bus Creator' incorporates: - * Bias: '/Bias1' - * Bias: '/Bias2' - * Bias: '/Bias3' - * Bias: '/Bias4' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read11' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read3' - * DataStoreRead: '/Data Store Read4' - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/Data Store Read7' - * DataStoreRead: '/Data Store Read8' - * DataStoreRead: '/Data Store Read9' - * DataStoreWrite: '/Data Store Write4' - * DataStoreWrite: '/Data Store Write' - * DataStoreWrite: '/Data Store Write' - * DataStoreWrite: '/Data Store Write' - * SignalConversion generated from: '/Vector Concatenate' + /* BusCreator: '/Bus Creator' incorporates: + * Bias: '/Bias1' + * Bias: '/Bias3' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read11' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read3' + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/Data Store Read6' + * DataStoreRead: '/Data Store Read9' + * DataStoreWrite: '/Data Store Write' + * DataStoreWrite: '/Data Store Write' + * DataStoreWrite: '/Data Store Write' + * SignalConversion generated from: '/Vector Concatenate' + * SignalConversion generated from: '/Vector Concatenate' * */ rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_MultMsg_Idx = 0U; rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tgt_FL_Upper_ro = rtb_FLU_tg_correct; rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_Incar_FL_Upper_ro = (int16_t) (rtb_MultiportSwitch_o - 200); rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tgt_RR_ro = rtDW.Duct_RR_Tg; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tgt_RL_ro = 0; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tgt_FR_Upper_ro = rtb_Selector_p; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tgt_FR_Lower_ro = rtb_FLU_tg_correct_b; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tgt_FL_Lower_ro = rtb_FLU_tg_correct_de; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tgt_RL_ro = rtb_FLU_tg_correct_me; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tgt_FR_Upper_ro = rtb_Merge_h; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tgt_FR_Lower_ro = rtb_FLU_tg_correct_a; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tgt_FL_Lower_ro = rtb_FLU_tg_correct_i; rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_Incar_FR_Upper_ro = (int16_t) (rtb_VectorConcatenate_lo[4] - 200); rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_FL_Upper_ro = g_assEVA_TG_AMB_R_h; rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_FL_Lower_ro = Duct_FRU_Tg_DBG[0]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_FR_Lower_ro = Duct_FRL_Tg_DBG[0]; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_FR_Lower_ro = + rtb_VectorConcatenate_jn[0]; rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_FR_Upper_ro = rtb_VectorConcatenate_lo[0]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_RL_ro = rtDW.Duct_RL_Tg_DBG[0]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_RR_ro = rtDW.Duct_RR_Tg_DBG[0]; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_RL_ro = rtb_MultiportSwitch_fb; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_RR_ro = Duct_RR_Tg_DBG[0]; rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_Incar_FL_Lower_ro = (int16_t) (Duct_FRU_Tg_DBG[4] - 200); rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Incar_FL_Lower_ro = Duct_FRU_Tg_DBG[1]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Incar_RR_ro = rtDW.Duct_RR_Tg_DBG[1]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Incar_RL_ro = rtDW.Duct_RL_Tg_DBG[1]; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Incar_RR_ro = Duct_RR_Tg_DBG[1]; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Incar_RL_ro = rtb_u5R_tg_incar; rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Incar_FR_Upper_ro = rtb_VectorConcatenate_lo[1]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Incar_FR_Lower_ro = Duct_FRL_Tg_DBG[1]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Incar_FL_Upper_ro = rtb_u5FLU_tg_incar; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Incar_FR_Lower_ro = + rtb_VectorConcatenate_jn[1]; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Incar_FL_Upper_ro = + rtb_u5FLU_tg_incar_o; rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_Incar_FR_Lower_ro = (int16_t) - (Duct_FRL_Tg_DBG[4] - 200); - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Amb_RL_ro = rtDW.Duct_RL_Tg_DBG[2]; + (rtb_VectorConcatenate_jn[4] - 200); + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Amb_RL_ro = rtb_u6FLU_tg_amb_hk; rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Amb_FR_Upper_ro = rtb_VectorConcatenate_lo[2]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Amb_FR_Lower_ro = Duct_FRL_Tg_DBG[2]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Amb_RR_ro = rtDW.Duct_RR_Tg_DBG[2]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Amb_FL_Lower_ro = Duct_FRU_Tg_DBG[2]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Amb_FL_Upper_ro = + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Amb_FR_Lower_ro = rtb_VectorConcatenate_jn[2]; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Amb_RR_ro = Duct_RR_Tg_DBG[2]; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Amb_FL_Lower_ro = Duct_FRU_Tg_DBG[2]; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Amb_FL_Upper_ro = rtb_u6FLU_tg_amb_e; rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_Incar_RL_ro = (int16_t) - (rtDW.Duct_RL_Tg_DBG[4] - 200); + (rtb_MultiportSwitch_kf - 200); rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Sun_FL_Lower_ro = Duct_FRU_Tg_DBG[3]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Sun_FR_Lower_ro = Duct_FRL_Tg_DBG[3]; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Sun_FR_Lower_ro = + rtb_VectorConcatenate_jn[3]; rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Sun_FR_Upper_ro = rtb_VectorConcatenate_lo[3]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Sun_RL_ro = rtDW.Duct_RL_Tg_DBG[3]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Sun_FL_Upper_ro = - rtb_VectorConcatenate_jn[3]; - rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Sun_RR_ro = rtDW.Duct_RR_Tg_DBG[3]; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Sun_RL_ro = rtb_u6FLU_tg_amb_o; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Sun_FL_Upper_ro = rtb_u6FLU_tg_amb_i; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Sun_RR_ro = Duct_RR_Tg_DBG[3]; rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_Incar_RR_ro = (int16_t) - (rtDW.Duct_RR_Tg_DBG[4] - 200); + (Duct_RR_Tg_DBG[4] - 200); - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read10' - * DataStoreRead: '/Data Store Read11' - * DataStoreRead: '/Data Store Read4' - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/Data Store Read6' - * DataStoreRead: '/Data Store Read7' - * DataStoreRead: '/Data Store Read8' - * DataStoreRead: '/Data Store Read9' - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read3' + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/Data Store Read6' + * DataStoreRead: '/Data Store Read7' + * DataStoreRead: '/Data Store Read8' + * DataStoreRead: '/Data Store Read9' + * DataStoreWrite: '/Data Store Write' */ rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_Step_FL = rtDW.CCU_BLOWERS_FL; rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_Step_FR = rtDW.CCU_BLOWERS_FR; @@ -26176,16 +32984,18 @@ void HVAC_model_step(void) rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_Step_RR = rtDW.CCU_BLOWERS_RR; rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_Pwm_Front = rtDW.PWM_front; rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_Pwm_Rear = rtDW.PWM_rear; - rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_AF_FL = Comp_Max_RPM_Allowed; - rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_AF_FR = rtb_Switch3_ed; - rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_AF_RL = Blower_AF_RL; - rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_AF_RR = rtb_Saturation9; + rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_AF_FL = rtb_Saturation4; + rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_AF_FR = rtb_Switch3_e; + rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_AF_RL = + rtb_DataTypeConversion1_h2; + rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_AF_RR = + rtb_DataTypeConversion3_j0; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreWrite: '/Data Store Write' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * DataStoreWrite: '/Data Store Write' */ rtDW.dbgCAN_dbg_Sen_Eva_model.dbg_Sen_Eva_F = g_assEVA_TG_AMB_F_n; rtDW.dbgCAN_dbg_Sen_Eva_model.dbg_Sen_Eva_R = 0; @@ -26213,11 +33023,6 @@ void HVAC_model_step(void) */ rtY.dbgCAN_dbg_Act2_model = rtDW.dbgCAN_dbg_Act2_model; - /* Outport: '/CCU_Stat1_model' incorporates: - * DataStoreRead: '/Data Store Read6' - */ - rtY.CCU_Stat1_model = rtDW.CCU_STAT1_MODEL; - /* Outport: '/dbgCAN_dbg_Sen_Duct_model' incorporates: * DataStoreRead: '/Data Store Read8' */ @@ -26238,11 +33043,6 @@ void HVAC_model_step(void) */ rtY.dbgCAN_dbg_Sen_Amb_model = rtDW.dbgCAN_dbg_Sen_Amb_model; - /* Outport: '/CCU_Stat2_model' incorporates: - * DataStoreRead: '/Data Store Read43' - */ - rtY.CCU_Stat2_model = rtDW.CCU_STAT2_MODEL; - /* Outport: '/dbgCAN_dbg_Sen_Incar_model' incorporates: * DataStoreRead: '/Data Store Read48' */ @@ -26263,21 +33063,11 @@ void HVAC_model_step(void) */ rtY.dbg_Logic_Ac_model = rtDW.dbg_Logic_Ac_model; - /* Outport: '/CCUCAN_HVC_REQ_MSG_MODEL' incorporates: - * DataStoreRead: '/Data Store Read57' - */ - rtY.CCUCAN_HVC_REQ_MSG_MODEL = rtDW.CCUCAN_HVC_REQ_MSG_MODEL; - /* Outport: '/dbgCAN_CCU_IO_model' incorporates: * DataStoreRead: '/Data Store Read60' */ rtY.dbgCAN_CCU_IO_model = rtDW.dbgCAN_CCU_IO_model; - /* Outport: '/CCU_Msg3_model' incorporates: - * DataStoreRead: '/Data Store Read30' - */ - rtY.CCU_Msg3_model = rtDW.CCU_Msg3_model; - /* Outport: '/dbgCAN_Logic_Rec_model' incorporates: * DataStoreRead: '/Data Store Read38' */ @@ -26288,11 +33078,6 @@ void HVAC_model_step(void) */ rtY.dbgCAN_Logic_State_model = rtDW.dbgCAN_Logic_State_model; - /* Outport: '/CCU_Msg1_model' incorporates: - * DataStoreRead: '/Data Store Read14' - */ - rtY.CCU_Msg1_model = rtDW.CCU_Msg1_model; - /* Outport: '/dbgCAN_Auto_Duct_model' incorporates: * DataStoreRead: '/Data Store Read62' */ @@ -26303,3929 +33088,633 @@ void HVAC_model_step(void) */ rtY.dbgCAN_Auto_AF_model = rtDW.dbg_Auto_AF_model; - /* If: '/если SC front не завершен' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataTypeConversion: '/Data Type Conversion' + /* Outport: '/LIN4_CCU_Req_Model' incorporates: + * DataStoreRead: '/Data Store Read64' */ - if ((rtDW.start_control_finished_front == 0) && - (rtDW.SKIPPED_FIRST_SIMULATION_STEP == 0.0)) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' - */ - rtDW.SKIPPED_FIRST_SIMULATION_STEP = 1.0; + rtY.LIN4_CCU_Req_Model = rtDW.LIN4_CCU_Req_Model; - /* End of Outputs for SubSystem: '/If Action Subsystem' */ - } else if (rtDW.start_control_finished_front == 0) { - /* Outputs for IfAction SubSystem: '/Start Control Front' incorporates: - * ActionPort: '/Action Port' - */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read' - */ - switch (rtDW.step_start_controle_front) { - case -1: - /* Outputs for IfAction SubSystem: '/Step -1 F (Entry Condition)' incorporates: - * ActionPort: '/Action Port' - */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - switch (rtDW.LEVEL) { - case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - g_assSTART_ENTER_INCAR_f(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - /* : out = g_ausSTART_ENTER_SETTEMP(LVL+1); */ - i = (int32_t)(rtDW.LEVEL + 1U); - if (rtDW.LEVEL + 1U > 255U) { - i = 255; - } - - /* Switch: '/Switch' incorporates: - * Constant: '/not LO or HI' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read5' - * Logic: '/AND' - * MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * RelationalOperator: '/Relational Operator3' - */ - if ((rtDW.Incar_FL > g_assEVA_TG_AMB_F_n) && (rtDW.CCU_MODE_FL == 1) && - (rtDW.CCU_SET_FL < g_ausSTART_ENTER_SETTEMP[i - 1]) && - (rtDW.LO_HI_MODE_FL == 0)) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - */ - rtB.Merge_fb = 1; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - */ - rtB.Merge_fb = -1; - } - - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 0' */ - break; - - case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - g_assSTART_ENTER_INCAR_f(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - /* : out = int16(g_ausSTART_ENTER_SETTEMP(LVL+1)); */ - i = (int32_t)(rtDW.LEVEL + 1U); - if (rtDW.LEVEL + 1U > 255U) { - i = 255; - } - - Gain = g_ausSTART_ENTER_SETTEMP[i - 1]; - if (Gain > 32767) { - Gain = 32767U; - } - - /* Switch: '/Switch' incorporates: - * Constant: '/not LO or HI' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read5' - * Logic: '/AND' - * MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * RelationalOperator: '/Relational Operator3' - */ - if ((rtDW.Incar_FL > g_assEVA_TG_AMB_F_n) && (rtDW.CCU_MODE_FL == 1) && - (rtDW.CCU_SET_FL < Gain) && (rtDW.LO_HI_MODE_FL == 0)) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - */ - rtB.Merge_fb = 1; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - */ - rtB.Merge_fb = -1; - } - - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 1' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' - */ - Level2(&rtB.Merge_fb); - - /* End of Outputs for SubSystem: '/Level 2' */ - break; - - case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/g_assSTART_ENTER_COOLANT ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - g_assSTART_ENTER_COOLANT_j(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/mode driver' - * Logic: '/AND' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator2' - */ - if ((rtDW.ECT < g_assEVA_TG_AMB_F_n) && (rtDW.CCU_MODE_FL == 1)) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - */ - rtB.Merge_fb = 0; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - */ - rtB.Merge_fb = -1; - } - - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 3' */ - break; - - case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' - */ - Level4(&rtB.Merge_fb, &rtDW.CCU_MODE_FL, &rtDW.ECT, &rtDW.LEVEL, - &rtDW.LO_HI_MODE_FL); - - /* End of Outputs for SubSystem: '/Level 4' */ - break; - - case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' - */ - Level4(&rtB.Merge_fb, &rtDW.CCU_MODE_FL, &rtDW.ECT, &rtDW.LEVEL, - &rtDW.LO_HI_MODE_FL); - - /* End of Outputs for SubSystem: '/Level 5' */ - break; - } - - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step -1 F (Entry Condition)' */ - break; - - case 0: - /* Outputs for IfAction SubSystem: '/Step 0 F' incorporates: - * ActionPort: '/Action Port' - */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - switch (rtDW.LEVEL) { - case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' - */ - Level0(&rtB.Merge_fb); - - /* End of Outputs for SubSystem: '/Level 0' */ - break; - - case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' - */ - Level0(&rtB.Merge_fb); - - /* End of Outputs for SubSystem: '/Level 1' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' - */ - Level0(&rtB.Merge_fb); - - /* End of Outputs for SubSystem: '/Level 2' */ - break; - - case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' - */ - rtDW.Blower_FL = 20U; - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant5' - */ - rtDW.Dtg_FUL = 60U; - - /* DataStoreWrite: '/Data Store Write13' incorporates: - * Constant: '/Constant7' - */ - rtDW.Dtg_FLL = 80U; - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup(rtDW.LEVEL, &EN_BATTChiller); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown(rtDW.LEVEL, &rtb_timer_out); - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Mode - def' - */ - rtDW.Mode_FL = 80U; - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - Blower_AF_FL = 1.0; - - /* DataStoreWrite: '/Data Store Write8' incorporates: - * Constant: '/Valve open' - */ - ShutOffRear_EN = 1U; - - /* DataStoreWrite: '/Data Store Write9' incorporates: - * Constant: '/Valve open' - */ - Valve_2_way = 1U; - - /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - /* : out = int16(g_assSTART_COOLANT_STEP0_TO_1(LVL + 1 - 2)); */ - i = (int32_t)(rtDW.LEVEL + 1U); - if (rtDW.LEVEL + 1U > 255U) { - i = 255; - } - - rtb_Subtract = (uint32_t)i - 2U; - if ((uint32_t)i - 2U > (uint32_t)i) { - rtb_Subtract = 0U; - } - - /* Merge: '/Merge' incorporates: - * DataStoreRead: '/Engine coolant temp' - * MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - rtB.Merge_fb = (int8_t)(rtDW.ECT > g_assSTART_COOLANT_STEP0_TO_1 - [(int32_t)rtb_Subtract - 1]); - - /* End of Outputs for SubSystem: '/Level 3' */ - break; - - case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' - */ - rtDW.Blower_FL = 20U; - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant5' - */ - rtDW.Dtg_FUL = 60U; - - /* DataStoreWrite: '/Data Store Write13' incorporates: - * Constant: '/Constant7' - */ - rtDW.Dtg_FLL = 80U; - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup(rtDW.LEVEL, &EN_BATTChiller); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown(rtDW.LEVEL, &rtb_timer_out); - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Mode - def' - */ - rtDW.Mode_FL = 80U; - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - Blower_AF_FL = 1.0; - - /* DataStoreWrite: '/Data Store Write8' incorporates: - * Constant: '/Valve open' - */ - ShutOffRear_EN = 1U; - - /* DataStoreWrite: '/Data Store Write9' incorporates: - * Constant: '/Valve open' - */ - Valve_2_way = 1U; - - /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - g_assSTART_COOLANT_STEP0_TO_1_a(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* Merge: '/Merge' incorporates: - * DataStoreRead: '/Engine coolant temp' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - rtB.Merge_fb = (int8_t)(rtDW.ECT > g_assEVA_TG_AMB_F_n); - - /* End of Outputs for SubSystem: '/Level 4' */ - break; - - case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' - */ - rtDW.Blower_FL = 20U; - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant5' - */ - rtDW.Dtg_FUL = 80U; - - /* DataStoreWrite: '/Data Store Write13' incorporates: - * Constant: '/Constant7' - */ - rtDW.Dtg_FLL = 80U; - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup(rtDW.LEVEL, &EN_BATTChiller); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown(rtDW.LEVEL, &rtb_timer_out); - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Mode - def' - */ - rtDW.Mode_FL = 80U; - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - Blower_AF_FL = 1.0; - - /* DataStoreWrite: '/Data Store Write8' incorporates: - * Constant: '/Valve open' - */ - ShutOffRear_EN = 1U; - - /* DataStoreWrite: '/Data Store Write9' incorporates: - * Constant: '/Valve open' - */ - Valve_2_way = 1U; - - /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - g_assSTART_COOLANT_STEP0_TO_1_a(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* Merge: '/Merge' incorporates: - * DataStoreRead: '/Engine coolant temp' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - rtB.Merge_fb = (int8_t)(rtDW.ECT > g_assEVA_TG_AMB_F_n); - - /* End of Outputs for SubSystem: '/Level 5' */ - break; - } - - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step 0 F' */ - break; - - case 1: - /* Outputs for IfAction SubSystem: '/Step 1 F' incorporates: - * ActionPort: '/Action Port' - */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - switch (rtDW.LEVEL) { - case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write8' incorporates: - * DataStoreRead: '/Data Store Read10' - * MATLAB Function: '/3 way valve status' - */ - uwayvalvestatus(rtDW.LEVEL, &ShutOffRear_EN); - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup(rtDW.LEVEL, &EN_BATTChiller); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown(rtDW.LEVEL, &rtb_timer_out); - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreRead: '/Data Store Read5' - * MATLAB Function: '/mode FR step 1' - */ - modeFRstep1(rtDW.LEVEL, &rtDW.Mode_FL); - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * DataStoreRead: '/Data Store Read6' - * MATLAB Function: '/window heating' - */ - windowheating(rtDW.LEVEL, &rtDW.Dtg_FUL); - - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreRead: '/Data Store Read7' - * MATLAB Function: '/blower FR' - */ - blowerFR(rtDW.LEVEL, &rtDW.Blower_FL); - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * DataStoreRead: '/Data Store Read8' - * MATLAB Function: '/Dtg_FrontUpper_X' - */ - Dtg_FrontUpper_X(rtDW.LEVEL, &rtDW.Dtg_FUL); - - /* DataStoreWrite: '/Data Store Write13' incorporates: - * DataStoreRead: '/Data Store Read9' - * MATLAB Function: '/Dtg_FrontLower_X' - */ - Dtg_FrontLower_X(rtDW.LEVEL, &rtDW.Dtg_FLL); - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - Blower_AF_FL = 1.0; - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - eComp_stop = (rtDW.step_start_controle_front == 1); - - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - Incartempgotofromstep1tostep2(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - /* : out = int16(g_ausSTART_TIME_STEP1_TO_2(LVL + 1)); */ - i = (int32_t)(rtDW.LEVEL + 1U); - if (rtDW.LEVEL + 1U > 255U) { - i = 255; - } - - Gain = g_ausSTART_TIME_STEP1_TO_2[i - 1]; - if (Gain > 32767) { - Gain = 32767U; - } - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/incar temp' - * DataStoreRead: '/Data Store Read4' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * MATLAB Function: '/Time goto from step 1 to step 2 ' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - if ((rtDW.Incar_FL < g_assEVA_TG_AMB_F_n) || (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_ch > (uint16_t)(1000 * Gain))) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - * SignalConversion generated from: '/step' - */ - rtB.Merge_fb = 2; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step 1' - * SignalConversion generated from: '/step' - */ - rtB.Merge_fb = 1; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (eComp_stop && (!rtDW.Cond_prev_private_DSTATE_an)) { - rtDW.t_start_delay_private_DSTATE_ch = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_an = eComp_stop; - - /* End of Outputs for SubSystem: '/Level 0' */ - break; - - case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write8' incorporates: - * DataStoreRead: '/Data Store Read10' - * MATLAB Function: '/3 way valve status' - */ - uwayvalvestatus(rtDW.LEVEL, &ShutOffRear_EN); - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup(rtDW.LEVEL, &EN_BATTChiller); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown(rtDW.LEVEL, &rtb_timer_out); - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreRead: '/Data Store Read5' - * MATLAB Function: '/mode FR step 1' - */ - modeFRstep1(rtDW.LEVEL, &rtDW.Mode_FL); - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * DataStoreRead: '/Data Store Read6' - * MATLAB Function: '/window heating' - */ - windowheating(rtDW.LEVEL, &rtDW.Dtg_FUL); - - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreRead: '/Data Store Read7' - * MATLAB Function: '/blower FR' - */ - blowerFR(rtDW.LEVEL, &rtDW.Blower_FL); - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * DataStoreRead: '/Data Store Read8' - * MATLAB Function: '/Dtg_FrontUpper_X' - */ - Dtg_FrontUpper_X(rtDW.LEVEL, &rtDW.Dtg_FUL); - - /* DataStoreWrite: '/Data Store Write13' incorporates: - * DataStoreRead: '/Data Store Read9' - * MATLAB Function: '/Dtg_FrontLower_X' - */ - Dtg_FrontLower_X(rtDW.LEVEL, &rtDW.Dtg_FLL); - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - Blower_AF_FL = 1.0; - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - eComp_stop = (rtDW.step_start_controle_front == 1); - - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - Incartempgotofromstep1tostep2(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep1tostep2(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); - - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreRead: '/Data Store Read4' - * Gain: '/из сек в мс' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator1 = (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_jr > (uint32_t)(1000 * - g_assEVA_TG_AMB_R_h)); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (eComp_stop && (!rtDW.Cond_prev_private_DSTATE_ht)) { - rtDW.t_start_delay_private_DSTATE_jr = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/incar temp' - * Logic: '/Logical Operator' - * RelationalOperator: '/Relational Operator' - */ - if ((rtDW.Incar_FL < g_assEVA_TG_AMB_F_n) || rtb_LogicalOperator1) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - */ - rtB.Merge_fb = 2; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step 1' - */ - rtB.Merge_fb = 1; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_ht = eComp_stop; - - /* End of Outputs for SubSystem: '/Level 1' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' - */ - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * SignalConversion generated from: '/step' - */ - rtB.Merge_fb = 2; - - /* End of Outputs for SubSystem: '/Level 2' */ - break; - - case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write8' incorporates: - * DataStoreRead: '/Data Store Read11' - * MATLAB Function: '/3 way valve status' - */ - uwayvalvestatus(rtDW.LEVEL, &ShutOffRear_EN); - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup(rtDW.LEVEL, &EN_BATTChiller); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown(rtDW.LEVEL, &rtb_timer_out); - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreRead: '/Data Store Read5' - * MATLAB Function: '/mode FR step 1' - */ - modeFRstep1(rtDW.LEVEL, &rtDW.Mode_FL); - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * DataStoreRead: '/Data Store Read6' - * MATLAB Function: '/window heating' - */ - windowheating(rtDW.LEVEL, &rtDW.Dtg_FUL); - - /* MATLAB Function: '/blower min max' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerminmax(rtDW.LEVEL, rtb_out_g4); - - /* MATLAB Function: '/ECT min max' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - ECTminmax(rtDW.LEVEL, rtb_out_mt); - - /* Lookup_n-D: '/blower для текущего ECT' incorporates: - * DataStoreRead: '/engine coolant temp' - */ - g_assEVA_TG_AMB_F_n = look1_is16lu64n32tu16Ds32Is16_binlcs(rtDW.ECT, - rtb_out_mt, rtb_out_g4, 1U); - - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataTypeConversion: '/Data Type Conversion' - */ - rtDW.Blower_FL = (uint16_t)g_assEVA_TG_AMB_F_n; - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * DataStoreRead: '/Data Store Read8' - * MATLAB Function: '/Dtg_FrontUpper_X' - */ - Dtg_FrontUpper_X(rtDW.LEVEL, &rtDW.Dtg_FUL); - - /* DataStoreWrite: '/Data Store Write13' incorporates: - * DataStoreRead: '/Data Store Read9' - * MATLAB Function: '/Dtg_FrontLower_X' - */ - Dtg_FrontLower_X(rtDW.LEVEL, &rtDW.Dtg_FLL); - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - Blower_AF_FL = 1.0; - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - eComp_stop = (rtDW.step_start_controle_front == 1); - - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - Incartempgotofromstep1tostep2(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); - - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep1tostep2(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreRead: '/Data Store Read4' - * Gain: '/из сек в мс' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator1 = (rtDW.t_now - rtDW.t_start_delay_private_DSTATE_d - > (uint32_t)(1000 * g_assEVA_TG_AMB_F_n)); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - /* : out = int16(g_assSTART_COOLANT_TO_STEP2(LVL + 1 - 3)); */ - if (eComp_stop && (!rtDW.Cond_prev_private_DSTATE_fs)) { - rtDW.t_start_delay_private_DSTATE_d = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/g_assSTART_COOLANT_TO_STEP2 ' incorporates: - * DataStoreRead: '/Data Store Read10' - */ - i = (int32_t)(rtDW.LEVEL + 1U); - if (rtDW.LEVEL + 1U > 255U) { - i = 255; - } - - /* MW:begin MISRA2012:D4.1 CERT-C:INT30-C 'Justifying MISRA CPP rule violation' */ - rtb_Subtract = (uint32_t)i - 3U; - - /* MW:end MISRA2012:D4.1 CERT-C:INT30-C */ - if ((uint32_t)i - 3U > (uint32_t)i) { - rtb_Subtract = 0U; - } - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/engine coolant temp' - * DataStoreRead: '/incar temp' - * Logic: '/Logical Operator' - * MATLAB Function: '/g_assSTART_COOLANT_TO_STEP2 ' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator2' - */ - if ((rtDW.Incar_FL < g_assEVA_TG_AMB_R_h) || rtb_LogicalOperator1 || - (rtDW.ECT > g_assSTART_COOLANT_TO_STEP2[(int32_t)rtb_Subtract - 1])) - { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step 2' - */ - rtB.Merge_fb = 2; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step 1' - */ - rtB.Merge_fb = 1; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_fs = eComp_stop; - - /* End of Outputs for SubSystem: '/Level 3' */ - break; - - case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' - */ - Level4_h(&rtB.Merge_fb, &rtDW.Blower_FL, &Gain, &rtDW.Dtg_FLL, - &Valve_2_way, &rtDW.Dtg_FUL, &Comp_Max_RPM_Allowed, &rtDW.ECT, - &rtb_Switch3_ed, &rtDW.Incar_FL, &rtb_timer_out, - &EN_BATTChiller, &rtDW.LEVEL, &rtDW.Mode_FL, &Blower_AF_RL, - &Blower_AF_FL, &ShutOffRear_EN, &rtDW.step_start_controle_front, - &rtDW.t_now, &rtDW.Level4_hv); - - /* End of Outputs for SubSystem: '/Level 4' */ - break; - - case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' - */ - Level4_h(&rtB.Merge_fb, &rtDW.Blower_FL, &Gain, &rtDW.Dtg_FLL, - &Valve_2_way, &rtDW.Dtg_FUL, &Comp_Max_RPM_Allowed, &rtDW.ECT, - &rtb_Switch3_ed, &rtDW.Incar_FL, &rtb_timer_out, - &EN_BATTChiller, &rtDW.LEVEL, &rtDW.Mode_FL, &Blower_AF_RL, - &Blower_AF_FL, &ShutOffRear_EN, &rtDW.step_start_controle_front, - &rtDW.t_now, &rtDW.Level5_b); - - /* End of Outputs for SubSystem: '/Level 5' */ - break; - } - - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step 1 F' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/Step 2 F' incorporates: - * ActionPort: '/Action Port' - */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - switch (rtDW.LEVEL) { - case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write8' incorporates: - * DataStoreRead: '/Data Store Read10' - * MATLAB Function: '/3 way valve status' - */ - uwayvalvestatus_j(rtDW.LEVEL, &ShutOffRear_EN); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read9' - */ - Dtg_FrontLower_X(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read9' - */ - timeforstep(rtDW.LEVEL, &rtb_timer_out); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' - */ - if ((uint8_t)(rtDW.Dtg_FLL - rtDW.Dtg_logic_FLL) <= 0.01) { - /* DataStoreWrite: '/Data Store Write13' */ - rtDW.Dtg_FLL = rtDW.Dtg_logic_FLL; - } else { - if (rtDW.Dtg_FLL <= rtDW.Dtg_logic_FLL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - /* DataStoreWrite: '/Data Store Write13' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Dtg_FLL = (uint8_t)((double)EN_BATTChiller / (double) - rtb_timer_out / 1000.0 * (double)(rtDW.t_now - - rtDW.UnitDelay_DSTATE_hx) * (double)i + (double)rtDW.Dtg_FLL); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - Dtg_FrontUpper_X(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - timeforstep_c(rtDW.LEVEL, &rtb_timer_out); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' - */ - if ((uint8_t)(rtDW.Dtg_FUL - rtDW.Dtg_logic_FUL) <= 0.01) { - /* DataStoreWrite: '/Data Store Write11' */ - rtDW.Dtg_FUL = rtDW.Dtg_logic_FUL; - } else { - if (rtDW.Dtg_FUL <= rtDW.Dtg_logic_FUL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Dtg_FUL = (uint8_t)((double)EN_BATTChiller / (double) - rtb_timer_out / 1000.0 * (double)(rtDW.t_now - - rtDW.UnitDelay_DSTATE_fi) * (double)i + (double)rtDW.Dtg_FUL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup(rtDW.LEVEL, &EN_BATTChiller); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown(rtDW.LEVEL, &rtb_timer_out); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - EN_BATTChiller = (uint8_t)(rtDW.Mode_FL - rtDW.Mode_logic_FL); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - eComp_stop = (EN_BATTChiller <= 0.01); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - step_h(rtDW.LEVEL, &rtb_timer_out); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - timeforstep_p(rtDW.LEVEL, &EN_BATTChiller); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (eComp_stop) { - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtDW.Mode_FL = rtDW.Mode_logic_FL; - } else { - if (rtDW.Mode_FL <= rtDW.Mode_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Mode_FL = (uint8_t)((double)rtb_timer_out / (double) - EN_BATTChiller / 1000.0 * (double)(rtDW.t_now - - rtDW.UnitDelay_DSTATE_m) * (double)i + (double)rtDW.Mode_FL); - } - - /* End of Switch: '/Switch' */ - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - /* : out = g_aucSTART_ELEC_WINDOW(LVL + 1 + 6); */ - Gain = (uint16_t)(rtDW.Blower_FL - rtDW.Blower_logic_FL); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - eComp_stop = (Gain <= 0.01); - - /* MATLAB Function: '/blower step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstep(rtDW.LEVEL, &Gain1); - - /* MATLAB Function: '/blower time for step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowertimeforstep(rtDW.LEVEL, &Gain); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (eComp_stop) { - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtDW.Blower_FL = rtDW.Blower_logic_FL; - } else { - if (rtDW.Blower_FL <= rtDW.Blower_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (AF//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Blower_FL = (uint16_t)((double)Gain1 / (double)Gain / 1000.0 * - (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_p5) * (double)i + - (double)rtDW.Blower_FL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - Blower_AF_FL = 1.0; - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - eComp_stop = (rtDW.step_start_controle_front == 2); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_Subtract = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_jt; - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (eComp_stop && (!rtDW.Cond_prev_private_DSTATE_lu)) { - rtDW.t_start_delay_private_DSTATE_jt = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/Time goto from step 2 to step 3 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep2tostep3(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* Switch: '/Switch' incorporates: - * Gain: '/из сек в мс' - * RelationalOperator: '/Relational Operator1' - */ - if (rtb_Subtract > (uint32_t)(1000 * g_assEVA_TG_AMB_F_n)) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - */ - rtB.Merge_fb = 3; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step' - */ - rtB.Merge_fb = 2; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_hx = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_fi = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_m = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_p5 = rtDW.t_now; - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_lu = eComp_stop; - - /* End of Outputs for SubSystem: '/Level 0' */ - break; - - case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write8' incorporates: - * DataStoreRead: '/Data Store Read10' - * MATLAB Function: '/3 way valve status' - */ - uwayvalvestatus_j(rtDW.LEVEL, &ShutOffRear_EN); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read9' - */ - Dtg_FrontLower_X(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read9' - */ - timeforstep(rtDW.LEVEL, &rtb_timer_out); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' - */ - if ((uint8_t)(rtDW.Dtg_FLL - rtDW.Dtg_logic_FLL) <= 0.01) { - /* DataStoreWrite: '/Data Store Write13' */ - rtDW.Dtg_FLL = rtDW.Dtg_logic_FLL; - } else { - if (rtDW.Dtg_FLL <= rtDW.Dtg_logic_FLL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - /* DataStoreWrite: '/Data Store Write13' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Dtg_FLL = (uint8_t)((double)EN_BATTChiller / (double) - rtb_timer_out / 1000.0 * (double)(rtDW.t_now - - rtDW.UnitDelay_DSTATE_an) * (double)i + (double)rtDW.Dtg_FLL); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - Dtg_FrontUpper_X(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - timeforstep_c(rtDW.LEVEL, &rtb_timer_out); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' - */ - if ((uint8_t)(rtDW.Dtg_FUL - rtDW.Dtg_logic_FUL) <= 0.01) { - /* DataStoreWrite: '/Data Store Write11' */ - rtDW.Dtg_FUL = rtDW.Dtg_logic_FUL; - } else { - if (rtDW.Dtg_FUL <= rtDW.Dtg_logic_FUL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Dtg_FUL = (uint8_t)((double)EN_BATTChiller / (double) - rtb_timer_out / 1000.0 * (double)(rtDW.t_now - - rtDW.UnitDelay_DSTATE_a1) * (double)i + (double)rtDW.Dtg_FUL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup(rtDW.LEVEL, &EN_BATTChiller); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown(rtDW.LEVEL, &rtb_timer_out); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - EN_BATTChiller = (uint8_t)(rtDW.Mode_FL - rtDW.Mode_logic_FL); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - step_h(rtDW.LEVEL, &rtb_timer_out); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - timeforstep_p(rtDW.LEVEL, &ShutOffRear_EN); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (EN_BATTChiller <= 0.01) { - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtDW.Mode_FL = rtDW.Mode_logic_FL; - } else { - if (rtDW.Mode_FL <= rtDW.Mode_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Mode_FL = (uint8_t)((double)rtb_timer_out / (double) - ShutOffRear_EN / 1000.0 * (double)(rtDW.t_now - - rtDW.UnitDelay_DSTATE_ne) * (double)i + (double)rtDW.Mode_FL); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/window heating' incorporates: - * DataStoreRead: '/Data Store Read6' - */ - windowheating_e(rtDW.LEVEL, &EN_BATTChiller); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - Gain = (uint16_t)(rtDW.Blower_FL - rtDW.Blower_logic_FL); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - eComp_stop = (Gain <= 0.01); - - /* MATLAB Function: '/blower step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstep(rtDW.LEVEL, &Gain1); - - /* MATLAB Function: '/blower time for step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowertimeforstep(rtDW.LEVEL, &Gain); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (eComp_stop) { - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtDW.Blower_FL = rtDW.Blower_logic_FL; - } else { - if (rtDW.Blower_FL <= rtDW.Blower_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Blower_FL = (uint16_t)((double)Gain1 / (double)Gain / 1000.0 * - (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_p) * (double)i + (double) - rtDW.Blower_FL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - Blower_AF_FL = 1.0; - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - eComp_stop = (rtDW.step_start_controle_front == 2); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_Subtract = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_n; - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (eComp_stop && (!rtDW.Cond_prev_private_DSTATE_o)) { - rtDW.t_start_delay_private_DSTATE_n = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/Time goto from step 2 to step 3 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep2tostep3(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* Switch: '/Switch' incorporates: - * Gain: '/из сек в мс' - * RelationalOperator: '/Relational Operator1' - */ - if (rtb_Subtract > (uint32_t)(1000 * g_assEVA_TG_AMB_F_n)) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - */ - rtB.Merge_fb = 3; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step' - */ - rtB.Merge_fb = 2; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_an = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_a1 = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_ne = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_p = rtDW.t_now; - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_o = eComp_stop; - - /* End of Outputs for SubSystem: '/Level 1' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' - */ - Level2(&rtB.Merge_fb); - - /* End of Outputs for SubSystem: '/Level 2' */ - break; - - case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' - */ - Level3(&rtB.Merge_fb, &rtb_Saturation9, &rtDW.Blower_FL, &Gain, - &rtDW.Blower_logic_FL, &rtDW.Dtg_FLL, &Valve_2_way, &rtDW.Dtg_FUL, - &Comp_Max_RPM_Allowed, &rtDW.Dtg_logic_FLL, &rtDW.Dtg_logic_FUL, - &rtb_Switch3_ed, &rtDW.HI_logic_on, &rtb_timer_out, - &EN_BATTChiller, &rtDW.LEVEL, &rtDW.Mode_FL, &Blower_AF_RL, - &rtDW.Mode_logic_FL, &Blower_AF_FL, &ShutOffRear_EN, - &rtDW.step_start_controle_front, &rtDW.t_now, &rtDW.Level3_f); - - /* End of Outputs for SubSystem: '/Level 3' */ - break; - - case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' - */ - Level3(&rtB.Merge_fb, &rtb_Saturation9, &rtDW.Blower_FL, &Gain, - &rtDW.Blower_logic_FL, &rtDW.Dtg_FLL, &Valve_2_way, &rtDW.Dtg_FUL, - &Comp_Max_RPM_Allowed, &rtDW.Dtg_logic_FLL, &rtDW.Dtg_logic_FUL, - &rtb_Switch3_ed, &rtDW.HI_logic_on, &rtb_timer_out, - &EN_BATTChiller, &rtDW.LEVEL, &rtDW.Mode_FL, &Blower_AF_RL, - &rtDW.Mode_logic_FL, &Blower_AF_FL, &ShutOffRear_EN, - &rtDW.step_start_controle_front, &rtDW.t_now, &rtDW.Level4_k); - - /* End of Outputs for SubSystem: '/Level 4' */ - break; - - case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write8' incorporates: - * DataStoreRead: '/Data Store Read10' - * MATLAB Function: '/3 way valve status' - */ - uwayvalvestatus_j(rtDW.LEVEL, &ShutOffRear_EN); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read9' - */ - Dtg_FrontLower_X(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read9' - */ - timeforstep(rtDW.LEVEL, &rtb_timer_out); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' - */ - if ((uint8_t)(rtDW.Dtg_FLL - rtDW.Dtg_logic_FLL) <= 0.01) { - /* DataStoreWrite: '/Data Store Write13' */ - rtDW.Dtg_FLL = rtDW.Dtg_logic_FLL; - } else { - if (rtDW.Dtg_FLL <= rtDW.Dtg_logic_FLL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - /* DataStoreWrite: '/Data Store Write13' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Dtg_FLL = (uint8_t)((double)EN_BATTChiller / (double) - rtb_timer_out / 1000.0 * (double)(rtDW.t_now - - rtDW.UnitDelay_DSTATE_fs) * (double)i + (double)rtDW.Dtg_FLL); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - Dtg_FrontUpper_X(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - timeforstep_c(rtDW.LEVEL, &rtb_timer_out); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' - */ - if ((uint8_t)(rtDW.Dtg_FUL - rtDW.Dtg_logic_FUL) <= 0.01) { - /* DataStoreWrite: '/Data Store Write11' */ - rtDW.Dtg_FUL = rtDW.Dtg_logic_FUL; - } else { - if (rtDW.Dtg_FUL <= rtDW.Dtg_logic_FUL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Dtg_FUL = (uint8_t)((double)EN_BATTChiller / (double) - rtb_timer_out / 1000.0 * (double)(rtDW.t_now - - rtDW.UnitDelay_DSTATE_ha) * (double)i + (double)rtDW.Dtg_FUL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup(rtDW.LEVEL, &EN_BATTChiller); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown(rtDW.LEVEL, &rtb_timer_out); - - /* MATLAB Function: '/autodemist (autodefog)' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - autodemistautodefog(rtDW.LEVEL, &EN_BATTChiller); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_timer_out = (uint8_t)(rtDW.Mode_FL - rtDW.Mode_logic_FL); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - step_h(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - timeforstep_p(rtDW.LEVEL, &ShutOffRear_EN); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (rtb_timer_out <= 0.01) { - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtDW.Mode_FL = rtDW.Mode_logic_FL; - } else { - if (rtDW.Mode_FL <= rtDW.Mode_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Mode_FL = (uint8_t)((double)EN_BATTChiller / (double) - ShutOffRear_EN / 1000.0 * (double)(rtDW.t_now - - rtDW.UnitDelay_DSTATE_e) * (double)i + (double)rtDW.Mode_FL); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/window heating' incorporates: - * DataStoreRead: '/Data Store Read6' - */ - windowheating_e(rtDW.LEVEL, &rtb_timer_out); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - Gain = (uint16_t)(rtDW.Blower_FL - rtDW.Blower_logic_FL); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - eComp_stop = (Gain <= 0.01); - - /* MATLAB Function: '/blower step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstep(rtDW.LEVEL, &Gain1); - - /* MATLAB Function: '/blower time for step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowertimeforstep(rtDW.LEVEL, &Gain); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (eComp_stop) { - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtDW.Blower_FL = rtDW.Blower_logic_FL; - } else { - if (rtDW.Blower_FL <= rtDW.Blower_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Blower_FL = (uint16_t)((double)Gain1 / (double)Gain / 1000.0 * - (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_k) * (double)i + (double) - rtDW.Blower_FL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - Blower_AF_FL = 1.0; - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - eComp_stop = (rtDW.step_start_controle_front == 2); - - /* MATLAB Function: '/Time goto from step 2 to step 3 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep2tostep3(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreRead: '/Data Store Read4' - * Gain: '/из сек в мс' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator1 = (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_it > (uint32_t)(1000 * - g_assEVA_TG_AMB_F_n)); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (eComp_stop && (!rtDW.Cond_prev_private_DSTATE_n)) { - rtDW.t_start_delay_private_DSTATE_it = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read' - * Logic: '/Logical Operator' - */ - if (rtb_LogicalOperator1 || rtDW.HI_logic_on) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - */ - rtB.Merge_fb = 3; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step' - */ - rtB.Merge_fb = 2; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_fs = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_ha = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_e = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_k = rtDW.t_now; - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_n = eComp_stop; - - /* End of Outputs for SubSystem: '/Level 5' */ - break; - } - - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step 2 F' */ - break; - - case 3: - /* Outputs for IfAction SubSystem: '/Step 3 F' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write10' incorporates: - * Constant: '/True' - */ - rtDW.start_control_finished_front = 1; - - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - * SignalConversion generated from: '/step' - */ - rtB.Merge_fb = 3; - - /* End of Outputs for SubSystem: '/Step 3 F' */ - break; - } - - /* End of SwitchCase: '/Switch Case' */ - - /* DataStoreWrite: '/Data Store Write' */ - rtDW.step_start_controle_front = rtB.Merge_fb; - - /* End of Outputs for SubSystem: '/Start Control Front' */ - } - - /* End of If: '/если SC front не завершен' */ - - /* If: '/если SC rear не завершен1' incorporates: - * DataStoreRead: '/Data Store Read3' + /* Outport: '/dbg_Logic_Valve_model' incorporates: + * DataStoreRead: '/Data Store Read65' */ - if (rtDW.start_control_finished_rear == 0.0) { - /* Outputs for IfAction SubSystem: '/Start Control Rear' incorporates: - * ActionPort: '/Action Port' - */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read' - */ - switch (rtDW.step_start_controle_rear) { - case -1: - /* Outputs for IfAction SubSystem: '/Step -1 R (Entry Condition)' incorporates: - * ActionPort: '/Action Port' - */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - switch (rtDW.LEVEL) { - case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - /* : out = int16(g_assSTART_ENTER_INCAR(LVL + 1 + 6)); */ - g_ausSTART_ENTER_SETTEMP_m(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); + rtY.dbg_Logic_Valve_model = rtDW.dbg_Logic_Valve_model; - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - i = (int32_t)(rtDW.LEVEL + 1U); - if (rtDW.LEVEL + 1U > 255U) { - i = 255; - } - - i_0 = (int32_t)((uint32_t)i + 6U); - if ((uint32_t)i + 6U > 255U) { - i_0 = 255; - } - - /* Switch: '/Switch' incorporates: - * Constant: '/not LO or HI' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read5' - * Logic: '/AND' - * MATLAB Function: '/g_assSTART_ENTER_INCAR' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * RelationalOperator: '/Relational Operator3' - */ - if ((rtDW.Incar_RR > g_assSTART_ENTER_INCAR[i_0 - 1]) && - (rtDW.CCU_MODE_RR == 1) && (rtDW.CCU_SET_RR < g_assEVA_TG_AMB_F_n) && - (rtDW.LO_HI_MODE_RR == 0)) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - */ - rtB.Merge_c = 1; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - */ - rtB.Merge_c = -1; - } - - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 0' */ - break; - - case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - g_assSTART_ENTER_INCAR_c(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - g_ausSTART_ENTER_SETTEMP_m(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); - - /* Switch: '/Switch' incorporates: - * Constant: '/not LO or HI' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read5' - * Logic: '/AND' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * RelationalOperator: '/Relational Operator3' - */ - if ((rtDW.Incar_RR > g_assEVA_TG_AMB_F_n) && (rtDW.CCU_MODE_RR == 1) && - (rtDW.CCU_SET_RR < g_assEVA_TG_AMB_R_h) && (rtDW.LO_HI_MODE_FL == 0)) - { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - */ - rtB.Merge_c = 1; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - */ - rtB.Merge_c = -1; - } - - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 1' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - g_assSTART_ENTER_INCAR_c(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - g_ausSTART_ENTER_SETTEMP_m(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); - - /* Switch: '/Switch' incorporates: - * Constant: '/LOW' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read5' - * Logic: '/AND' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * RelationalOperator: '/Relational Operator3' - */ - if ((rtDW.Incar_RR < g_assEVA_TG_AMB_F_n) && (rtDW.CCU_MODE_RR == 1) && - (rtDW.CCU_SET_RR > g_assEVA_TG_AMB_R_h) && (rtDW.LO_HI_MODE_FL != 1)) - { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - */ - rtB.Merge_c = 0; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - */ - rtB.Merge_c = -1; - } - - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 2' */ - break; - - case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - g_assSTART_ENTER_INCAR_c(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* MATLAB Function: '/g_assSTART_ENTER_COOLANT ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - g_assSTART_ENTER_COOLANT_c(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); - - /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: - * DataStoreRead: '/Data Store Read6' - */ - /* : out = int16(g_ausSTART_ENTER_SETTEMP(LVL+1+6)); */ - i = (int32_t)(rtDW.LEVEL + 1U); - if (rtDW.LEVEL + 1U > 255U) { - i = 255; - } - - i_0 = (int32_t)((uint32_t)i + 6U); - if ((uint32_t)i + 6U > 255U) { - i_0 = 255; - } - - Gain = g_ausSTART_ENTER_SETTEMP[i_0 - 1]; - if (Gain > 32767) { - Gain = 32767U; - } - - /* Switch: '/Switch' incorporates: - * Constant: '/LOW' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/Data Store Read7' - * Logic: '/AND' - * Logic: '/AND1' - * MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * RelationalOperator: '/Relational Operator3' - * RelationalOperator: '/Relational Operator4' - */ - if (((rtDW.Incar_RR < g_assEVA_TG_AMB_F_n) || (rtDW.ECT < - g_assEVA_TG_AMB_R_h)) && (rtDW.CCU_MODE_RR == 1) && - (rtDW.CCU_SET_RR > Gain) && (rtDW.LO_HI_MODE_FL != 1)) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - */ - rtB.Merge_c = 0; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - */ - rtB.Merge_c = -1; - } - - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 3' */ - break; - - case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' - */ - Level4_l(&rtB.Merge_c, &rtDW.CCU_MODE_RR, &rtDW.ECT, &rtDW.Incar_RR, - &rtDW.LEVEL, &rtDW.LO_HI_MODE_FL); - - /* End of Outputs for SubSystem: '/Level 4' */ - break; - - case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' - */ - Level4_l(&rtB.Merge_c, &rtDW.CCU_MODE_RR, &rtDW.ECT, &rtDW.Incar_RR, - &rtDW.LEVEL, &rtDW.LO_HI_MODE_FL); - - /* End of Outputs for SubSystem: '/Level 5' */ - break; - } - - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step -1 R (Entry Condition)' */ - break; - - case 0: - /* Outputs for IfAction SubSystem: '/Step 0 R' incorporates: - * ActionPort: '/Action Port' - */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - switch (rtDW.LEVEL) { - case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' - */ - Level0(&rtB.Merge_c); - - /* End of Outputs for SubSystem: '/Level 0' */ - break; - - case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' - */ - Level0(&rtB.Merge_c); - - /* End of Outputs for SubSystem: '/Level 1' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' - */ - rtDW.Blower_RR = 10U; - - /* DataStoreWrite: '/Data Store Write10' incorporates: - * Constant: '/Constant4' - */ - rtDW.Dtg_RR = 65U; - - /* MATLAB Function: '/incar filter up' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - incarfilterup_b(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/incar filter down' incorporates: - * DataStoreRead: '/Data Store Read2' - */ - incarfilterdown_c(rtDW.LEVEL, &EN_BATTChiller); - - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Mode - foot' - */ - rtDW.Mode_RR = 60U; - - /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - /* : out = int16(g_assSTART_COOLANT_STEP0_TO_1(LVL + 3)); */ - i = (int32_t)(rtDW.LEVEL + 3U); - if (rtDW.LEVEL + 3U > 255U) { - i = 255; - } - - /* Merge: '/Merge' incorporates: - * DataStoreRead: '/Engine coolant temp' - * MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - rtB.Merge_c = (int8_t)(rtDW.ECT > g_assSTART_COOLANT_STEP0_TO_1[i - 1]); - - /* End of Outputs for SubSystem: '/Level 2' */ - break; - - case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' - */ - rtDW.Blower_RR = 10U; - - /* DataStoreWrite: '/Data Store Write10' incorporates: - * Constant: '/Constant4' - */ - rtDW.Dtg_RR = 65U; - - /* MATLAB Function: '/incar filter up' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - incarfilterup_b(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/incar filter down' incorporates: - * DataStoreRead: '/Data Store Read2' - */ - incarfilterdown_c(rtDW.LEVEL, &EN_BATTChiller); - - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Mode - foot' - */ - rtDW.Mode_RR = 60U; - - /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - g_assSTART_COOLANT_STEP0_TO_1_k(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* Merge: '/Merge' incorporates: - * DataStoreRead: '/Engine coolant temp' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - rtB.Merge_c = (int8_t)(rtDW.ECT > g_assEVA_TG_AMB_F_n); - - /* End of Outputs for SubSystem: '/Level 3' */ - break; - - case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' - */ - Level4_c(&rtB.Merge_c, &Gain, &rtDW.Blower_RR, &Comp_Max_RPM_Allowed, - &rtDW.Dtg_RR, &rtDW.ECT, &rtb_timer_out, &EN_BATTChiller, - &rtDW.LEVEL, &rtb_Switch3_ed, &rtDW.Mode_RR, &Valve_2_way, - &ShutOffRear_EN); - - /* End of Outputs for SubSystem: '/Level 4' */ - break; - - case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' - */ - Level4_c(&rtB.Merge_c, &Gain, &rtDW.Blower_RR, &Comp_Max_RPM_Allowed, - &rtDW.Dtg_RR, &rtDW.ECT, &rtb_timer_out, &EN_BATTChiller, - &rtDW.LEVEL, &rtb_Switch3_ed, &rtDW.Mode_RR, &Valve_2_way, - &ShutOffRear_EN); - - /* End of Outputs for SubSystem: '/Level 5' */ - break; - } - - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step 0 R' */ - break; - - case 1: - /* Outputs for IfAction SubSystem: '/Step 1 R' incorporates: - * ActionPort: '/Action Port' - */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - switch (rtDW.LEVEL) { - case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' - */ - Level0_o(&rtB.Merge_c, &Gain, &rtDW.Blower_RR, &Comp_Max_RPM_Allowed, - &rtDW.Dtg_RR, &rtDW.Incar_RR, &rtb_timer_out, &EN_BATTChiller, - &rtDW.LEVEL, &rtb_Switch3_ed, &rtDW.Mode_RR, &Blower_AF_FL, - &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, - &rtDW.Level0_o3); - - /* End of Outputs for SubSystem: '/Level 0' */ - break; - - case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' - */ - Level0_o(&rtB.Merge_c, &Gain, &rtDW.Blower_RR, &Comp_Max_RPM_Allowed, - &rtDW.Dtg_RR, &rtDW.Incar_RR, &rtb_timer_out, &EN_BATTChiller, - &rtDW.LEVEL, &rtb_Switch3_ed, &rtDW.Mode_RR, &Blower_AF_FL, - &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, - &rtDW.Level1_f); - - /* End of Outputs for SubSystem: '/Level 1' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write2' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/Data Store Read6' - * MATLAB Function: '/2 way valve' - * MATLAB Function: '/incar filter down' - * MATLAB Function: '/incar filter up' - * MATLAB Function: '/mode rear step 1' - */ - uwayvalve(rtDW.LEVEL, &rtDW.Mode_RR); - incarfilterup_b(rtDW.LEVEL, &rtDW.Mode_RR); - incarfilterdown_c(rtDW.LEVEL, &rtDW.Mode_RR); - moderearstep1(rtDW.LEVEL, &rtDW.Mode_RR); - - /* MATLAB Function: '/blower start finish' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstartfinish(rtDW.LEVEL, rtb_out_g4); - - /* MATLAB Function: '/ECT min max' */ - /* : min = int16(g_assSTART_COOLANT_STEP0_TO_1(5)); */ - /* : max = int16(g_assSTART_COOLANT_TO_STEP2(2)); */ - /* : out = [min, max]; */ - rtb_out_mt[0] = g_assSTART_COOLANT_STEP0_TO_1[4]; - rtb_out_mt[1] = g_assSTART_COOLANT_TO_STEP2[1]; - - /* Lookup_n-D: '/blower для текущего ECT' incorporates: - * DataStoreRead: '/engine coolant temp' - */ - g_assEVA_TG_AMB_F_n = look1_is16lu64n32tu16Ds32Is16_binlcs(rtDW.ECT, - rtb_out_mt, rtb_out_g4, 1U); - - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreWrite: '/Data Store Write5' - */ - rtDW.Blower_RR = (uint16_t)g_assEVA_TG_AMB_F_n; - - /* DataStoreWrite: '/Data Store Write10' incorporates: - * DataStoreRead: '/Data Store Read8' - * MATLAB Function: '/Dtg_rear' - */ - Dtg_rear(rtDW.LEVEL, &rtDW.Dtg_RR); - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - eComp_stop = (rtDW.step_start_controle_rear == 1); - - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - Incartempgotofromstep1tostep2_n(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_Subtract = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_e; - - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep1tostep2_p(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - /* : out = int16(g_assSTART_COOLANT_TO_STEP2(2)); */ - if (eComp_stop && (!rtDW.Cond_prev_private_DSTATE_ld)) { - rtDW.t_start_delay_private_DSTATE_e = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/engine coolant temp' - * DataStoreRead: '/incar temp' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * MATLAB Function: '/g_assSTART_COOLANT_TO_STEP2 ' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - */ - if ((rtDW.Incar_RR > g_assEVA_TG_AMB_R_h) || (rtb_Subtract > (uint16_t) - (1000 * g_assEVA_TG_AMB_F_n)) || (rtDW.ECT > - g_assSTART_COOLANT_TO_STEP2[1])) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - */ - rtB.Merge_c = 2; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step 1' - */ - rtB.Merge_c = 1; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_ld = eComp_stop; - - /* End of Outputs for SubSystem: '/Level 2' */ - break; - - case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write2' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/Data Store Read6' - * MATLAB Function: '/2 way valve' - * MATLAB Function: '/incar filter down' - * MATLAB Function: '/incar filter up' - * MATLAB Function: '/mode rear step 1' - */ - uwayvalve(rtDW.LEVEL, &rtDW.Mode_RR); - incarfilterup_b(rtDW.LEVEL, &rtDW.Mode_RR); - incarfilterdown_c(rtDW.LEVEL, &rtDW.Mode_RR); - moderearstep1(rtDW.LEVEL, &rtDW.Mode_RR); - - /* MATLAB Function: '/blower start finish' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstartfinish(rtDW.LEVEL, rtb_out_g4); - - /* MATLAB Function: '/ECT min max' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - ECTminmax_b(rtDW.LEVEL, rtb_out_mt); - - /* Lookup_n-D: '/blower для текущего ECT' incorporates: - * DataStoreRead: '/engine coolant temp' - */ - g_assEVA_TG_AMB_F_n = look1_is16lu64n32tu16Ds32Is16_binlcs(rtDW.ECT, - rtb_out_mt, rtb_out_g4, 1U); - - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreWrite: '/Data Store Write5' - */ - rtDW.Blower_RR = (uint16_t)g_assEVA_TG_AMB_F_n; - - /* DataStoreWrite: '/Data Store Write10' incorporates: - * DataStoreRead: '/Data Store Read8' - * MATLAB Function: '/Dtg_rear' - */ - Dtg_rear(rtDW.LEVEL, &rtDW.Dtg_RR); - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - eComp_stop = (rtDW.step_start_controle_rear == 1); - - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read3' - */ - Incartempgotofromstep1tostep2_n(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_Subtract = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_l; - - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep1tostep2_p(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - /* : out = int16(g_assSTART_COOLANT_TO_STEP2(3)); */ - if (eComp_stop && (!rtDW.Cond_prev_private_DSTATE_pk)) { - rtDW.t_start_delay_private_DSTATE_l = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/engine coolant temp' - * DataStoreRead: '/incar temp' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * MATLAB Function: '/g_assSTART_COOLANT_TO_STEP2 ' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - */ - if ((rtDW.Incar_RR > g_assEVA_TG_AMB_R_h) || (rtb_Subtract > (uint16_t) - (1000 * g_assEVA_TG_AMB_F_n)) || (rtDW.ECT > - g_assSTART_COOLANT_TO_STEP2[2])) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - */ - rtB.Merge_c = 2; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step 1' - */ - rtB.Merge_c = 1; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_pk = eComp_stop; - - /* End of Outputs for SubSystem: '/Level 3' */ - break; - - case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' - */ - Level4_n(&rtB.Merge_c, &Gain, &rtDW.Blower_RR, &Comp_Max_RPM_Allowed, - &rtDW.Dtg_RR, &rtDW.ECT, &rtDW.Incar_RR, &rtb_timer_out, - &EN_BATTChiller, &rtDW.LEVEL, &rtb_Switch3_ed, &rtDW.Mode_RR, - &Blower_AF_FL, &Valve_2_way, &rtDW.step_start_controle_rear, - &rtDW.t_now, &rtDW.Level4_ns); - - /* End of Outputs for SubSystem: '/Level 4' */ - break; - - case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' - */ - Level4_n(&rtB.Merge_c, &Gain, &rtDW.Blower_RR, &Comp_Max_RPM_Allowed, - &rtDW.Dtg_RR, &rtDW.ECT, &rtDW.Incar_RR, &rtb_timer_out, - &EN_BATTChiller, &rtDW.LEVEL, &rtb_Switch3_ed, &rtDW.Mode_RR, - &Blower_AF_FL, &Valve_2_way, &rtDW.step_start_controle_rear, - &rtDW.t_now, &rtDW.Level5_f); - - /* End of Outputs for SubSystem: '/Level 5' */ - break; - } - - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step 1 R' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/Step 2 R' incorporates: - * ActionPort: '/Action Port' - */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - switch (rtDW.LEVEL) { - case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/2 way valve' incorporates: - * DataStoreRead: '/Data Store Read6' - */ - uwayvalve(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - Dtg_rear(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - timeforstep_h(rtDW.LEVEL, &rtb_timer_out); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write10' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint8_t)(rtDW.Dtg_RR - rtDW.Dtg_logic_RR) <= 0.01) { - rtDW.Dtg_RR = rtDW.Dtg_logic_RR; - } else { - if (rtDW.Dtg_RR <= rtDW.Dtg_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - rtDW.Dtg_RR = (uint8_t)((double)EN_BATTChiller / (double)rtb_timer_out - / 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_i) * (double) - i + (double)rtDW.Dtg_RR); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/incar filter up' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - incarfilterup_b(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/incar filter down' incorporates: - * DataStoreRead: '/Data Store Read2' - */ - incarfilterdown_c(rtDW.LEVEL, &EN_BATTChiller); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_timer_out = (uint8_t)(rtDW.Mode_RR - rtDW.Mode_logic_RR); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - eComp_stop = (rtb_timer_out <= 0.01); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - step_i3(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - timeforstep_m(rtDW.LEVEL, &rtb_timer_out); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write2' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if (eComp_stop) { - rtDW.Mode_RR = rtDW.Mode_logic_RR; - } else { - if (rtDW.Mode_RR <= rtDW.Mode_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - rtDW.Mode_RR = (uint8_t)((double)EN_BATTChiller / (double) - rtb_timer_out / 1000.0 * (double)(rtDW.t_now - - rtDW.UnitDelay_DSTATE_o) * (double)i + (double)rtDW.Mode_RR); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/blower step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstep_e(rtDW.LEVEL, &Gain); - - /* MATLAB Function: '/blower time for step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowertimeforstep_o(rtDW.LEVEL, &Gain1); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write5' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint16_t)(rtDW.Blower_RR - rtDW.Blower_logic_RR) <= 0.01) { - rtDW.Blower_RR = rtDW.Blower_logic_RR; - } else { - if (rtDW.Blower_RR <= rtDW.Blower_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - rtDW.Blower_RR = (uint16_t)((double)Gain / (double)Gain1 / 1000.0 * - (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_ge) * (double)i + - (double)rtDW.Blower_RR); - } - - /* End of Switch: '/Switch' */ - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - eComp_stop = (rtDW.step_start_controle_rear == 2); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_Subtract = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_hn; - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (eComp_stop && (!rtDW.Cond_prev_private_DSTATE_b)) { - rtDW.t_start_delay_private_DSTATE_hn = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep1tostep2_p(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* Switch: '/Switch' incorporates: - * Gain: '/из сек в мс' - * RelationalOperator: '/Relational Operator1' - */ - if (rtb_Subtract > (uint16_t)(1000 * g_assEVA_TG_AMB_F_n)) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - */ - rtB.Merge_c = 3; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step' - */ - rtB.Merge_c = 2; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_i = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_o = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_ge = rtDW.t_now; - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_b = eComp_stop; - - /* End of Outputs for SubSystem: '/Level 0' */ - break; - - case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/2 way valve' incorporates: - * DataStoreRead: '/Data Store Read6' - */ - uwayvalve(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - Dtg_rear(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - timeforstep_h(rtDW.LEVEL, &rtb_timer_out); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write10' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint8_t)(rtDW.Dtg_RR - rtDW.Dtg_logic_RR) <= 0.01) { - rtDW.Dtg_RR = rtDW.Dtg_logic_RR; - } else { - if (rtDW.Dtg_RR <= rtDW.Dtg_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - rtDW.Dtg_RR = (uint8_t)((double)EN_BATTChiller / (double)rtb_timer_out - / 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_a4) * (double) - i + (double)rtDW.Dtg_RR); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/incar filter up' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - incarfilterup_b(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/incar filter down' incorporates: - * DataStoreRead: '/Data Store Read2' - */ - incarfilterdown_c(rtDW.LEVEL, &EN_BATTChiller); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_timer_out = (uint8_t)(rtDW.Mode_RR - rtDW.Mode_logic_RR); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - eComp_stop = (rtb_timer_out <= 0.01); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - step_i3(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - timeforstep_m(rtDW.LEVEL, &rtb_timer_out); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write2' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if (eComp_stop) { - rtDW.Mode_RR = rtDW.Mode_logic_RR; - } else { - if (rtDW.Mode_RR <= rtDW.Mode_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - rtDW.Mode_RR = (uint8_t)((double)EN_BATTChiller / (double) - rtb_timer_out / 1000.0 * (double)(rtDW.t_now - - rtDW.UnitDelay_DSTATE_d) * (double)i + (double)rtDW.Mode_RR); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/blower step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstep_e(rtDW.LEVEL, &Gain); - - /* MATLAB Function: '/blower time for step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowertimeforstep_o(rtDW.LEVEL, &Gain1); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write5' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint16_t)(rtDW.Blower_RR - rtDW.Blower_logic_RR) <= 0.01) { - rtDW.Blower_RR = rtDW.Blower_logic_RR; - } else { - if (rtDW.Blower_RR <= rtDW.Blower_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - rtDW.Blower_RR = (uint16_t)((double)Gain / (double)Gain1 / 1000.0 * - (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_l) * (double)i + (double) - rtDW.Blower_RR); - } - - /* End of Switch: '/Switch' */ - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - eComp_stop = (rtDW.step_start_controle_rear == 2); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_Subtract = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_pa; - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (eComp_stop && (!rtDW.Cond_prev_private_DSTATE_l2)) { - rtDW.t_start_delay_private_DSTATE_pa = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep1tostep2_p(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* Switch: '/Switch' incorporates: - * Gain: '/из сек в мс' - * RelationalOperator: '/Relational Operator1' - */ - if (rtb_Subtract > (uint16_t)(1000 * g_assEVA_TG_AMB_F_n)) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - */ - rtB.Merge_c = 3; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step' - */ - rtB.Merge_c = 2; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_a4 = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_d = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_l = rtDW.t_now; - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_l2 = eComp_stop; - - /* End of Outputs for SubSystem: '/Level 1' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/2 way valve' incorporates: - * DataStoreRead: '/Data Store Read6' - */ - uwayvalve(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - Dtg_rear(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - timeforstep_h(rtDW.LEVEL, &rtb_timer_out); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write10' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint8_t)(rtDW.Dtg_RR - rtDW.Dtg_logic_RR) <= 0.01) { - rtDW.Dtg_RR = rtDW.Dtg_logic_RR; - } else { - if (rtDW.Dtg_RR <= rtDW.Dtg_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - rtDW.Dtg_RR = (uint8_t)((double)EN_BATTChiller / (double)rtb_timer_out - / 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_g) * (double) - i + (double)rtDW.Dtg_RR); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/incar filter up' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - incarfilterup_b(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/incar filter down' incorporates: - * DataStoreRead: '/Data Store Read2' - */ - incarfilterdown_c(rtDW.LEVEL, &EN_BATTChiller); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_timer_out = (uint8_t)(rtDW.Mode_RR - rtDW.Mode_logic_RR); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - eComp_stop = (rtb_timer_out <= 0.01); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - step_i3(rtDW.LEVEL, &EN_BATTChiller); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - timeforstep_m(rtDW.LEVEL, &rtb_timer_out); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write2' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if (eComp_stop) { - rtDW.Mode_RR = rtDW.Mode_logic_RR; - } else { - if (rtDW.Mode_RR <= rtDW.Mode_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - rtDW.Mode_RR = (uint8_t)((double)EN_BATTChiller / (double) - rtb_timer_out / 1000.0 * (double)(rtDW.t_now - - rtDW.UnitDelay_DSTATE_h) * (double)i + (double)rtDW.Mode_RR); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/blower step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstep_e(rtDW.LEVEL, &Gain); - - /* MATLAB Function: '/blower time for step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowertimeforstep_o(rtDW.LEVEL, &Gain1); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write5' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint16_t)(rtDW.Blower_RR - rtDW.Blower_logic_RR) <= 0.01) { - rtDW.Blower_RR = rtDW.Blower_logic_RR; - } else { - if (rtDW.Blower_RR <= rtDW.Blower_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - i = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - i = -1; - } - - rtDW.Blower_RR = (uint16_t)((double)Gain / (double)Gain1 / 1000.0 * - (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_f) * (double)i + (double) - rtDW.Blower_RR); - } - - /* End of Switch: '/Switch' */ - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - eComp_stop = (rtDW.step_start_controle_rear == 2); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_Subtract = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_kh; - - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep1tostep2_p(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (eComp_stop && (!rtDW.Cond_prev_private_DSTATE_eo)) { - rtDW.t_start_delay_private_DSTATE_kh = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * RelationalOperator: '/Relational Operator1' - */ - if ((rtb_Subtract > (uint16_t)(1000 * g_assEVA_TG_AMB_F_n)) || - rtDW.HI_logic_on) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - */ - rtB.Merge_c = 3; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step' - */ - rtB.Merge_c = 2; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_g = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_h = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_f = rtDW.t_now; - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_eo = eComp_stop; - - /* End of Outputs for SubSystem: '/Level 2' */ - break; - - case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' - */ - Level3_j(&rtB.Merge_c, &Gain, &rtDW.Blower_RR, &rtDW.Blower_logic_RR, - &Comp_Max_RPM_Allowed, &rtDW.Dtg_RR, &rtDW.Dtg_logic_RR, - &rtDW.HI_logic_on, &rtb_timer_out, &EN_BATTChiller, &rtDW.LEVEL, - &rtb_Switch3_ed, &rtDW.Mode_RR, &rtDW.Mode_logic_RR, - &Blower_AF_FL, &Valve_2_way, &rtDW.step_start_controle_rear, - &rtDW.t_now, &rtDW.Level3_jn); - - /* End of Outputs for SubSystem: '/Level 3' */ - break; - - case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' - */ - Level3_j(&rtB.Merge_c, &Gain, &rtDW.Blower_RR, &rtDW.Blower_logic_RR, - &Comp_Max_RPM_Allowed, &rtDW.Dtg_RR, &rtDW.Dtg_logic_RR, - &rtDW.HI_logic_on, &rtb_timer_out, &EN_BATTChiller, &rtDW.LEVEL, - &rtb_Switch3_ed, &rtDW.Mode_RR, &rtDW.Mode_logic_RR, - &Blower_AF_FL, &Valve_2_way, &rtDW.step_start_controle_rear, - &rtDW.t_now, &rtDW.Level4_d); - - /* End of Outputs for SubSystem: '/Level 4' */ - break; - - case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' - */ - Level3_j(&rtB.Merge_c, &Gain, &rtDW.Blower_RR, &rtDW.Blower_logic_RR, - &Comp_Max_RPM_Allowed, &rtDW.Dtg_RR, &rtDW.Dtg_logic_RR, - &rtDW.HI_logic_on, &rtb_timer_out, &EN_BATTChiller, &rtDW.LEVEL, - &rtb_Switch3_ed, &rtDW.Mode_RR, &rtDW.Mode_logic_RR, - &Blower_AF_FL, &Valve_2_way, &rtDW.step_start_controle_rear, - &rtDW.t_now, &rtDW.Level5_cf); - - /* End of Outputs for SubSystem: '/Level 5' */ - break; - } - - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step 2 R' */ - break; - - case 3: - /* Outputs for IfAction SubSystem: '/Step 3 R' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write10' incorporates: - * Constant: '/True' - */ - rtDW.start_control_finished_front = 1; - - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' - * SignalConversion generated from: '/step' - */ - rtB.Merge_c = 4; - - /* End of Outputs for SubSystem: '/Step 3 R' */ - break; - } - - /* End of SwitchCase: '/Switch Case' */ - - /* DataStoreWrite: '/Data Store Write' */ - rtDW.step_start_controle_rear = rtB.Merge_c; - - /* End of Outputs for SubSystem: '/Start Control Rear' */ - } - - /* End of If: '/если SC rear не завершен1' */ - - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read1' + /* Outport: '/dbg_LIN_AirQS_Stat_t_model' incorporates: + * DataStoreRead: '/Data Store Read70' */ - if (rtDW.CCU_ALL_ZONE_SYNC > 0) { - /* Outputs for IfAction SubSystem: '/all zone sync' incorporates: - * ActionPort: '/Action Port' + rtY.dbg_LIN_AirQS_Stat_t_model = rtDW.dbg_LIN_AirQS_Stat_t_model; + + /* Outport: '/dbg_LIN_DRS_Stat_t_model' incorporates: + * DataStoreRead: '/Data Store Read71' + */ + rtY.dbg_LIN_DRS_Stat_t_model = rtDW.dbg_LIN_DRS_Stat_t_model; + + /* Outport: '/dbg_Drs_t_model' incorporates: + * DataStoreRead: '/Data Store Read72' + */ + rtY.dbg_Drs_t_model = rtDW.dbg_Drs_t_model; + + /* If: '/If' incorporates: + * DataStoreWrite: '/Data Store Write16' + */ + if (rtB.sync_all > 0) { + /* Outputs for IfAction SubSystem: '/all zone sync' incorporates: + * ActionPort: '/Action Port' */ - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' */ rtDW.CCU_SET_FR = rtDW.CCU_SET_FL; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write1' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write1' */ rtDW.CCU_SET_RL = rtDW.CCU_SET_FL; - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write2' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write2' */ rtDW.CCU_SET_RR = rtDW.CCU_SET_FL; - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreRead: '/Data Store Read1' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * DataStoreRead: '/Data Store Read1' */ rtDW.CCU_BLOWERS_FR = rtDW.CCU_BLOWERS_FL; - /* DataStoreWrite: '/Data Store Write4' incorporates: - * DataStoreRead: '/Data Store Read1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * DataStoreRead: '/Data Store Read1' */ rtDW.CCU_BLOWERS_RL = rtDW.CCU_BLOWERS_FL; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * DataStoreRead: '/Data Store Read1' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * DataStoreRead: '/Data Store Read1' */ rtDW.CCU_BLOWERS_RR = rtDW.CCU_BLOWERS_FL; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreRead: '/Data Store Read2' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * DataStoreRead: '/Data Store Read2' */ rtDW.CCU_DEF_FR = rtDW.CCU_DEF_FL; - /* DataStoreWrite: '/Data Store Write10' incorporates: - * DataStoreRead: '/Data Store Read3' + /* DataStoreWrite: '/Data Store Write10' incorporates: + * DataStoreRead: '/Data Store Read3' */ rtDW.CCU_FACE_RL = rtDW.CCU_FACE_FL; - /* DataStoreWrite: '/Data Store Write11' incorporates: - * DataStoreRead: '/Data Store Read3' + /* DataStoreWrite: '/Data Store Write11' incorporates: + * DataStoreRead: '/Data Store Read3' */ rtDW.CCU_FACE_RR = rtDW.CCU_FACE_FL; - /* DataStoreWrite: '/Data Store Write9' incorporates: - * DataStoreRead: '/Data Store Read3' + /* DataStoreWrite: '/Data Store Write9' incorporates: + * DataStoreRead: '/Data Store Read3' */ rtDW.CCU_FACE_FR = rtDW.CCU_FACE_FL; - /* DataStoreWrite: '/Data Store Write12' incorporates: - * DataStoreRead: '/Data Store Read4' + /* DataStoreWrite: '/Data Store Write12' incorporates: + * DataStoreRead: '/Data Store Read4' */ rtDW.CCU_FOOT_FR = rtDW.CCU_FOOT_FL; - /* DataStoreWrite: '/Data Store Write13' incorporates: - * DataStoreRead: '/Data Store Read4' + /* DataStoreWrite: '/Data Store Write13' incorporates: + * DataStoreRead: '/Data Store Read4' */ rtDW.CCU_FOOT_RL = rtDW.CCU_FOOT_FL; - /* DataStoreWrite: '/Data Store Write14' incorporates: - * DataStoreRead: '/Data Store Read4' + /* DataStoreWrite: '/Data Store Write14' incorporates: + * DataStoreRead: '/Data Store Read4' */ rtDW.CCU_FOOT_RR = rtDW.CCU_FOOT_FL; - /* DataStoreWrite: '/Data Store Write15' incorporates: - * DataStoreRead: '/Data Store Read5' + /* DataStoreWrite: '/Data Store Write15' incorporates: + * DataStoreRead: '/Data Store Read5' */ rtDW.CCU_MODE_RR = rtDW.CCU_MODE_FL; - /* DataStoreWrite: '/Data Store Write7' incorporates: - * DataStoreRead: '/Data Store Read5' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * DataStoreRead: '/Data Store Read5' */ rtDW.CCU_MODE_FR = rtDW.CCU_MODE_FL; - /* DataStoreWrite: '/Data Store Write8' incorporates: - * DataStoreRead: '/Data Store Read5' + /* DataStoreWrite: '/Data Store Write8' incorporates: + * DataStoreRead: '/Data Store Read5' */ rtDW.CCU_MODE_RL = rtDW.CCU_MODE_FL; - /* DataStoreWrite: '/Data Store Write16' incorporates: - * DataStoreRead: '/Data Store Read6' + /* DataStoreWrite: '/Data Store Write16' incorporates: + * DataStoreRead: '/Data Store Read6' */ rtDW.CCU_AUTOMODE_FR = rtDW.CCU_AUTOMODE_FL; - /* DataStoreWrite: '/Data Store Write17' incorporates: - * DataStoreRead: '/Data Store Read6' + /* DataStoreWrite: '/Data Store Write17' incorporates: + * DataStoreRead: '/Data Store Read6' */ rtDW.CCU_AUTOMODE_RL = rtDW.CCU_AUTOMODE_FL; - /* DataStoreWrite: '/Data Store Write18' incorporates: - * DataStoreRead: '/Data Store Read6' + /* DataStoreWrite: '/Data Store Write18' incorporates: + * DataStoreRead: '/Data Store Read6' */ rtDW.CCU_AUTOMODE_RR = rtDW.CCU_AUTOMODE_FL; - /* DataStoreWrite: '/Data Store Write19' incorporates: - * DataStoreRead: '/Data Store Read7' + /* DataStoreWrite: '/Data Store Write19' incorporates: + * DataStoreRead: '/Data Store Read7' */ rtDW.CCU_AC_REAR = rtDW.CCU_AC_FRONT; - /* End of Outputs for SubSystem: '/all zone sync' */ + /* End of Outputs for SubSystem: '/all zone sync' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read2' + /* If: '/If1' incorporates: + * DataStoreWrite: '/Data Store Write17' */ - if (rtDW.CCU_FRONT_SYNC > 0) { - /* Outputs for IfAction SubSystem: '/front sync' incorporates: - * ActionPort: '/Action Port' + if (rtB.sync_front > 0) { + /* Outputs for IfAction SubSystem: '/front sync' incorporates: + * ActionPort: '/Action Port' */ - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write' */ rtDW.CCU_SET_FR = rtDW.CCU_SET_FL; - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreRead: '/Data Store Read1' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * DataStoreRead: '/Data Store Read1' */ rtDW.CCU_BLOWERS_FR = rtDW.CCU_BLOWERS_FL; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreRead: '/Data Store Read2' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * DataStoreRead: '/Data Store Read2' */ rtDW.CCU_DEF_FR = rtDW.CCU_DEF_FL; - /* DataStoreWrite: '/Data Store Write9' incorporates: - * DataStoreRead: '/Data Store Read3' + /* DataStoreWrite: '/Data Store Write9' incorporates: + * DataStoreRead: '/Data Store Read3' */ rtDW.CCU_FACE_FR = rtDW.CCU_FACE_FL; - /* DataStoreWrite: '/Data Store Write12' incorporates: - * DataStoreRead: '/Data Store Read4' + /* DataStoreWrite: '/Data Store Write12' incorporates: + * DataStoreRead: '/Data Store Read4' */ rtDW.CCU_FOOT_FR = rtDW.CCU_FOOT_FL; - /* DataStoreWrite: '/Data Store Write7' incorporates: - * DataStoreRead: '/Data Store Read5' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * DataStoreRead: '/Data Store Read5' */ rtDW.CCU_MODE_FR = rtDW.CCU_MODE_FL; - /* DataStoreWrite: '/Data Store Write16' incorporates: - * DataStoreRead: '/Data Store Read6' + /* DataStoreWrite: '/Data Store Write16' incorporates: + * DataStoreRead: '/Data Store Read6' */ rtDW.CCU_AUTOMODE_FR = rtDW.CCU_AUTOMODE_FL; - /* End of Outputs for SubSystem: '/front sync' */ + /* End of Outputs for SubSystem: '/front sync' */ } - /* End of If: '/If1' */ + /* End of If: '/If1' */ - /* If: '/If2' incorporates: - * DataStoreRead: '/Data Store Read3' + /* If: '/If2' incorporates: + * DataStoreWrite: '/Data Store Write15' */ - if (rtDW.CCU_REAR_SYNC > 0) { - /* Outputs for IfAction SubSystem: '/rear sync' incorporates: - * ActionPort: '/Action Port' + if (rtB.sync_rear > 0) { + /* Outputs for IfAction SubSystem: '/rear sync' incorporates: + * ActionPort: '/Action Port' */ - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write2' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write2' */ rtDW.CCU_SET_RL = rtDW.CCU_SET_RR; - /* DataStoreWrite: '/Data Store Write4' incorporates: - * DataStoreRead: '/Data Store Read1' + /* DataStoreWrite: '/Data Store Write4' incorporates: + * DataStoreRead: '/Data Store Read1' */ rtDW.CCU_BLOWERS_RL = rtDW.CCU_BLOWERS_RR; - /* DataStoreWrite: '/Data Store Write17' incorporates: - * DataStoreRead: '/Data Store Read2' + /* DataStoreWrite: '/Data Store Write17' incorporates: + * DataStoreRead: '/Data Store Read2' */ rtDW.CCU_AUTOMODE_RL = rtDW.CCU_AUTOMODE_RR; - /* DataStoreWrite: '/Data Store Write10' incorporates: - * DataStoreRead: '/Data Store Read3' + /* DataStoreWrite: '/Data Store Write10' incorporates: + * DataStoreRead: '/Data Store Read3' */ rtDW.CCU_FACE_RL = rtDW.CCU_FACE_RR; - /* DataStoreWrite: '/Data Store Write13' incorporates: - * DataStoreRead: '/Data Store Read4' + /* DataStoreWrite: '/Data Store Write13' incorporates: + * DataStoreRead: '/Data Store Read4' */ rtDW.CCU_FOOT_RL = rtDW.CCU_FOOT_RR; - /* DataStoreWrite: '/Data Store Write15' incorporates: - * DataStoreRead: '/Data Store Read5' + /* DataStoreWrite: '/Data Store Write15' incorporates: + * DataStoreRead: '/Data Store Read5' */ rtDW.CCU_MODE_RL = rtDW.CCU_MODE_RR; - /* End of Outputs for SubSystem: '/rear sync' */ + /* End of Outputs for SubSystem: '/rear sync' */ } - /* End of If: '/If2' */ - - /* Update for DiscreteIntegrator: '/Integrator' incorporates: - * Switch: '/Switch' - */ - if ((rtDW.Integrator_DSTATE_l < 0) && (rtb_Switch_fs < INT32_MIN - - rtDW.Integrator_DSTATE_l)) { - rtDW.Integrator_DSTATE_l = INT32_MIN; - } else if ((rtDW.Integrator_DSTATE_l > 0) && (rtb_Switch_fs > INT32_MAX - - rtDW.Integrator_DSTATE_l)) { - rtDW.Integrator_DSTATE_l = INT32_MAX; - } else { - rtDW.Integrator_DSTATE_l += rtb_Switch_fs; - } + /* End of If: '/If2' */ + /* Update for DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_DSTATE += rtb_Switch; rtDW.Integrator_PrevResetState = (int8_t)Enable_Comp_PID; - /* End of Update for DiscreteIntegrator: '/Integrator' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreWrite: '/Data Store Write4' + /* Update for DiscreteIntegrator: '/Filter' incorporates: + * DiscreteIntegrator: '/Integrator' */ - rtDW.UnitDelay_DSTATE_lk = 0; + rtDW.Filter_DSTATE += rtb_NProdOut; + rtDW.Filter_PrevResetState = (int8_t)Enable_Comp_PID; - /* Update for UnitDelay: '/Unit Delay1' incorporates: - * DataStoreRead: '/Data Store Read7' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/Data Store Read6' + */ + rtDW.UnitDelay_DSTATE_lk = rtb_FLU_tg_correct_me; + + /* Update for UnitDelay: '/Unit Delay1' incorporates: + * DataStoreRead: '/Data Store Read7' */ rtDW.UnitDelay1_DSTATE = rtDW.Duct_RR_Tg; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE = rtb_FailCond_fn; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE = rtb_LogicalOperator_fc; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_p = rtb_FailCond_gk; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_p = rtb_Compare_ec; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_a = rtb_FailCond; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_a = rtb_Compare_ni; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_h = rtb_Compare_ah; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_h = rtb_Compare_og; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_c = rtb_Compare; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_c = rtb_Compare_ij; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_m = rtb_Compare_eu; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_m = rtb_FailCond_hy; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_j = rtb_Compare_e3; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_j = rtb_FailCond_fa; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_f = rtb_Compare_fr; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_f = rtb_FailCond_n; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_cn = rtb_Compare_b; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_cn = rtb_FailCond_k; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_l = rtb_Compare_au; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_l = rtb_Compare_et; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_ja = rtb_Compare_gl; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_ja = rtb_Compare_ie; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_g = rtb_Compare_m; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_g = rtb_Compare_fq; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_cd = rtb_Compare_i; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_cd = rtb_Compare_gy; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_e = rtb_LogicalOperator5; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_k = rtb_Compare_i5; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_mv = rtb_FailCond_lt; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_d = rtb_FailCond_jb; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_jl = rtb_Compare_dq; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_hw = rtb_FailCond_e; - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_ei = rtb_FailCond_h; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_i = rtb_FailCond_l; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreWrite: '/Data Store Write1' - */ - rtDW.UnitDelay_DSTATE_da = rtDW.Incar_FL; - - /* Update for UnitDelay: '/Unit Delay1' incorporates: - * DataStoreWrite: '/Data Store Write3' - */ - rtDW.UnitDelay1_DSTATE_k = rtDW.Incar_FR; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreWrite: '/Data Store Write4' - */ - rtDW.UnitDelay_DSTATE_my = rtDW.Incar_RL; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreWrite: '/Data Store Write5' - */ - rtDW.UnitDelay_DSTATE_lt = rtDW.Incar_RR; - - /* Update for UnitDelay: '/Delay Input1' + /* Update for UnitDelay: '/Delay Input1' * - * Block description for '/Delay Input1': + * Block description for '/Delay Input1': * * Store in Global RAM */ - rtDW.DelayInput1_DSTATE = rtb_Compare_p1p; + rtDW.DelayInput1_DSTATE = rtb_Compare_hv; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreWrite: '/Data Store Write' + /* Update for UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM */ - rtDW.UnitDelay_DSTATE_d5 = rtb_Bias5; + rtDW.DelayInput1_DSTATE_m = rtb_Compare_m0e; - /* Update for DiscreteIntegrator: '/Integrator' incorporates: - * DataStoreWrite: '/Data Store Write' - * Gain: '/Integral Gain' - * Gain: '/Gain' - * Sum: '/SumI2' - * Sum: '/SumI4' - * Sum: '/SumI2' + /* Update for UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM */ - rtDW.Integrator_DSTATE += (int64_t)((rtDW.PID_TempFUL - (int32_t)(rtb_SumI2_e >> - 32)) + (int32_t)((1717986918LL * rtb_Gain_pl) >> 52)) << 32; + rtDW.DelayInput1_DSTATE_i = rtb_Compare_ba; - /* Update for DiscreteIntegrator: '/Integrator' incorporates: - * DataStoreWrite: '/Data Store Write1' - * Gain: '/Integral Gain' - * Gain: '/Gain1' - * Sum: '/SumI2' - * Sum: '/SumI4' - * Sum: '/SumI2' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreWrite: '/Data Store Write' */ - rtDW.Integrator_DSTATE_k += (int64_t)((rtDW.PID_TempFUR - (int32_t) - (rtb_SumI2_je >> 32)) + (int32_t)((1717986918LL * rpm_phys) >> 52)) << 32; + rtDW.UnitDelay_DSTATE_cu = rtDW.AMB; - /* Update for DiscreteIntegrator: '/Integrator' incorporates: - * DataStoreWrite: '/Data Store Write4' - * Gain: '/Integral Gain' - * Gain: '/Gain4' - * Sum: '/SumI2' - * Sum: '/SumI4' - * Sum: '/SumI2' + /* Update for UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM */ - rtDW.Integrator_DSTATE_h += (int64_t)((rtDW.PID_TempFLL - (int32_t) - (rtb_SumI2_b >> 32)) + (int32_t)((1717986918LL * rtb_Gain4) >> 52)) << 32; + rtDW.DelayInput1_DSTATE_n = rtb_Compare_oj; - /* Update for DiscreteIntegrator: '/Integrator' incorporates: - * DataStoreWrite: '/Data Store Write5' - * Gain: '/Integral Gain' - * Gain: '/Gain5' - * Sum: '/SumI2' - * Sum: '/SumI2' - * Sum: '/SumI4' + /* Update for UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM */ - rtDW.Integrator_DSTATE_i += (int64_t)((rtDW.PID_TempFRL - (int32_t) - (rtb_SumI2_c >> 32)) + (int32_t)((1717986918LL * rtb_Gain5) >> 52)) << 32; + rtDW.DelayInput1_DSTATE_my = rtb_Compare_dn; - /* Update for DiscreteIntegrator: '/Integrator' incorporates: - * DataStoreWrite: '/Data Store Write2' - * Gain: '/Integral Gain' - * Gain: '/Gain2' - * Sum: '/SumI2' - * Sum: '/SumI4' - * Sum: '/SumI2' + /* Update for UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM */ - rtDW.Integrator_DSTATE_n += (int64_t)((rtDW.PID_TempRL - (int32_t)(rtb_SumI2_o - >> 32)) + (int32_t)((1717986918LL * rtb_Gain2) >> 52)) << 32; + rtDW.DelayInput1_DSTATE_a = rtb_Compare_hj; - /* Update for DiscreteIntegrator: '/Integrator' incorporates: - * DataStoreWrite: '/Data Store Write3' - * Gain: '/Integral Gain' - * Gain: '/Gain3' - * Sum: '/SumI2' - * Sum: '/SumI4' + /* Update for UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM */ - rtDW.Integrator_DSTATE_a += (int64_t)((rtDW.PID_TempRR - (int32_t) - (rtb_IntegralGain >> 32)) + (int32_t)((1717986918LL * rtb_Gain3) >> 52)) << - 32; + rtDW.DelayInput1_DSTATE_o = rtb_Compare_kf; + + /* Update for UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + rtDW.DelayInput1_DSTATE_od = rtb_Compare_pt; + + /* Update for UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + rtDW.DelayInput1_DSTATE_j = rtb_Compare_h2; + + /* Update for UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + rtDW.DelayInput1_DSTATE_f = rtb_Compare_au; + + /* Update for UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + rtDW.DelayInput1_DSTATE_k = rtb_Compare_iy; + + /* Update for DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_DSTATE_n += rtb_Divide4; + rtDW.Integrator_PrevResetState_c = 1; + + /* Update for DiscreteIntegrator: '/Filter' */ + rtDW.Filter_DSTATE_d += rtb_DataTypeConversion7; + rtDW.Filter_PrevResetState_h = 1; + + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant2' + * RelationalOperator: '/fix for DT propagation issue' + */ + if (rtb_Sum_i1 > 0) { + rtb_y_c = 1; + } else { + rtb_y_c = -1; + } + + /* Switch: '/Switch2' incorporates: + * Constant: '/Clamping_zero' + * Constant: '/Constant3' + * Constant: '/Constant4' + * RelationalOperator: '/fix for DT propagation issue1' + */ + if (rtb_Divide1_cf > 0.0) { + tmp_3 = 1; + } else { + tmp_3 = -1; + } + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + * Logic: '/AND3' + * RelationalOperator: '/Equal1' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch1' + * Switch: '/Switch2' + */ + if ((rtb_Sum_i1 != 0) && (rtb_y_c == tmp_3)) { + rtb_Divide1_cf = 0.0; + } + + /* Update for DiscreteIntegrator: '/Integrator' incorporates: + * Switch: '/Switch' + */ + rtDW.Integrator_DSTATE_p += rtb_Divide1_cf; + rtDW.Integrator_PrevResetState_d = 1; + + /* Update for DiscreteIntegrator: '/Filter' */ + rtDW.Filter_DSTATE_dv += rtb_Divide1; + rtDW.Filter_PrevResetState_l = 1; + + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant2' + * RelationalOperator: '/fix for DT propagation issue' + */ + if (rtb_Sum1 > 0) { + rtb_y_c = 1; + } else { + rtb_y_c = -1; + } + + /* Switch: '/Switch2' incorporates: + * Constant: '/Clamping_zero' + * Constant: '/Constant3' + * Constant: '/Constant4' + * RelationalOperator: '/fix for DT propagation issue1' + */ + if (rtb_Divide11 > 0.0) { + tmp_3 = 1; + } else { + tmp_3 = -1; + } + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + * Logic: '/AND3' + * RelationalOperator: '/Equal1' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch1' + * Switch: '/Switch2' + */ + if ((rtb_Sum1 != 0) && (rtb_y_c == tmp_3)) { + rtb_Divide11 = 0.0; + } + + /* Update for DiscreteIntegrator: '/Integrator' incorporates: + * Switch: '/Switch' + */ + rtDW.Integrator_DSTATE_e += rtb_Divide11; + rtDW.Integrator_PrevResetState_ch = 1; + + /* Update for DiscreteIntegrator: '/Filter' */ + rtDW.Filter_DSTATE_f += rtb_Divide5; + rtDW.Filter_PrevResetState_j = 1; + + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant2' + * RelationalOperator: '/fix for DT propagation issue' + */ + if (Comp_Max_RPM_Allowed > 0) { + rtb_y_c = 1; + } else { + rtb_y_c = -1; + } + + /* Switch: '/Switch2' incorporates: + * Constant: '/Clamping_zero' + * Constant: '/Constant3' + * Constant: '/Constant4' + * RelationalOperator: '/fix for DT propagation issue1' + */ + if (rtb_Divide10 > 0.0) { + tmp_3 = 1; + } else { + tmp_3 = -1; + } + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + * Logic: '/AND3' + * RelationalOperator: '/Equal1' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch1' + * Switch: '/Switch2' + */ + if ((Comp_Max_RPM_Allowed != 0) && (rtb_y_c == tmp_3)) { + rtb_Divide10 = 0.0; + } + + /* Update for DiscreteIntegrator: '/Integrator' incorporates: + * Switch: '/Switch' + */ + rtDW.Integrator_DSTATE_k += rtb_Divide10; + rtDW.Integrator_PrevResetState_n = 1; + + /* Update for DiscreteIntegrator: '/Filter' */ + rtDW.Filter_DSTATE_p += rtb_Divide3; + rtDW.Filter_PrevResetState_f = 1; + + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant2' + * RelationalOperator: '/fix for DT propagation issue' + */ + if (rtb_DataTypeConversion1_ay > 0) { + rtb_y_c = 1; + } else { + rtb_y_c = -1; + } + + /* Switch: '/Switch2' incorporates: + * Constant: '/Clamping_zero' + * Constant: '/Constant3' + * Constant: '/Constant4' + * RelationalOperator: '/fix for DT propagation issue1' + */ + if (rtb_Divide6 > 0.0) { + tmp_3 = 1; + } else { + tmp_3 = -1; + } + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + * Logic: '/AND3' + * RelationalOperator: '/Equal1' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch1' + * Switch: '/Switch2' + */ + if ((rtb_DataTypeConversion1_ay != 0) && (rtb_y_c == tmp_3)) { + rtb_Divide6 = 0.0; + } + + /* Update for DiscreteIntegrator: '/Integrator' incorporates: + * Switch: '/Switch' + */ + rtDW.Integrator_DSTATE_j += rtb_Divide6; + rtDW.Integrator_PrevResetState_e = 1; + + /* Update for DiscreteIntegrator: '/Filter' */ + rtDW.Filter_DSTATE_l += rtb_Filter_g; + rtDW.Filter_PrevResetState_p = 1; + + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant2' + * RelationalOperator: '/fix for DT propagation issue' + */ + if (fan_speed_out > 0) { + rtb_y_c = 1; + } else { + rtb_y_c = -1; + } + + /* Switch: '/Switch2' incorporates: + * Constant: '/Clamping_zero' + * Constant: '/Constant3' + * Constant: '/Constant4' + * RelationalOperator: '/fix for DT propagation issue1' + */ + if (rtb_Divide8 > 0.0) { + tmp_3 = 1; + } else { + tmp_3 = -1; + } + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + * Logic: '/AND3' + * RelationalOperator: '/Equal1' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch1' + * Switch: '/Switch2' + */ + if ((fan_speed_out != 0) && (rtb_y_c == tmp_3)) { + rtb_Divide8 = 0.0; + } + + /* Update for DiscreteIntegrator: '/Integrator' incorporates: + * Switch: '/Switch' + */ + rtDW.Integrator_DSTATE_o += rtb_Divide8; + rtDW.Integrator_PrevResetState_o = 1; + + /* Update for DiscreteIntegrator: '/Filter' */ + rtDW.Filter_DSTATE_pw += rtb_Divide7; + rtDW.Filter_PrevResetState_i = 1; } /* Model initialize function */ @@ -30258,40 +33747,44 @@ void HVAC_model_initialize(void) { int32_t i; - /* Start for DataStoreMemory: '/Data Store Memory' */ - rtDW.Temp_FL_store = -9999; + /* Start for DataStoreMemory: '/Data Store Memory' */ + rtDW.Temp_FL_store = -9999.0; - /* Start for DataStoreMemory: '/Data Store Memory10' */ - rtDW.Temp_RR_store = -9999; + /* Start for DiscreteIntegrator: '/Integrator' incorporates: + * DataStoreMemory: '/Data Store Memory10' + */ + rtDW.Temp_RR_store = -9999.0; - /* Start for DataStoreMemory: '/Data Store Memory4' */ - rtDW.Temp_FR_store = -9999; + /* Start for DiscreteIntegrator: '/Integrator' incorporates: + * DataStoreMemory: '/Data Store Memory4' + */ + rtDW.Temp_FR_store = -9999.0; - /* Start for DataStoreMemory: '/Data Store Memory6' */ - rtDW.Temp_RL_store = -9999; + /* Start for DataStoreMemory: '/Data Store Memory6' */ + rtDW.Temp_RL_store = -9999.0; - /* Start for Switch: '/Switch1' incorporates: - * DataStoreMemory: '/Data Store Memory' + /* Start for Switch: '/Switch1' incorporates: + * DataStoreMemory: '/Data Store Memory' */ rtDW.AMB_store = -9999.0; for (i = 0; i < 9; i++) { - /* Start for DataStoreMemory: '/Data Store Memory1' */ + /* Start for DataStoreMemory: '/Data Store Memory1' */ rtDW.ErrorCalibration_private[i] = 1U; - /* Start for DataStoreMemory: '/Data Store Memory13' */ + /* Start for DataStoreMemory: '/Data Store Memory13' */ rtDW.MaxPositionCh0_private[i] = rtConstP.DataStoreMemory13_InitialValue[i]; - /* Start for DataStoreMemory: '/Data Store Memory1' */ + /* Start for DataStoreMemory: '/Data Store Memory1' */ rtDW.ErrorCalibration_private_p[i] = 1U; - /* Start for DataStoreMemory: '/Data Store Memory13' */ + /* Start for DataStoreMemory: '/Data Store Memory13' */ rtDW.MaxPositionCh1_private[i] = rtConstP.DataStoreMemory13_InitialValue_i[i]; - /* Start for DataStoreMemory: '/Data Store Memory1' */ + /* Start for DataStoreMemory: '/Data Store Memory1' */ rtDW.ErrorCalibration_private_b[i] = 1U; - /* Start for DataStoreMemory: '/Data Store Memory13' */ + /* Start for DataStoreMemory: '/Data Store Memory13' */ rtDW.MaxPositionCh2_private[i] = rtConstP.DataStoreMemory13_InitialValue_l[i]; } @@ -30308,17 +33801,17 @@ void HVAC_model_initialize(void) /* Start for DataStoreMemory: '/Data Store Memory119' */ rtDW.CCU_AUTOMODE_RR = 3U; - /* Start for DataTypeConversion: '/Data Type Conversion1' incorporates: + /* Start for DataTypeConversion: '/Data Type Conversion1' incorporates: * DataStoreMemory: '/Data Store Memory14' */ rtDW.CCU_SET_FR = 230U; - /* Start for DataTypeConversion: '/Data Type Conversion1' incorporates: + /* Start for DataTypeConversion: '/Data Type Conversion1' incorporates: * DataStoreMemory: '/Data Store Memory15' */ rtDW.CCU_SET_FL = 230U; - /* Start for DataTypeConversion: '/Data Type Conversion1' incorporates: + /* Start for DataTypeConversion: '/Data Type Conversion1' incorporates: * DataStoreMemory: '/Data Store Memory16' */ rtDW.CCU_SET_RR = 230U; @@ -30338,7 +33831,7 @@ void HVAC_model_initialize(void) /* Start for DataStoreMemory: '/Data Store Memory167' */ rtDW.PtcRelayDriver2_EN = 1U; - /* Start for DataTypeConversion: '/Data Type Conversion1' incorporates: + /* Start for DataTypeConversion: '/Data Type Conversion1' incorporates: * DataStoreMemory: '/Data Store Memory17' */ rtDW.CCU_SET_RL = 230U; @@ -30391,32 +33884,71 @@ void HVAC_model_initialize(void) /* Start for DataStoreMemory: '/Data Store Memory94' */ rtDW.CCU_AUTOMODE_FL = 3U; - /* InitializeConditions for DiscreteIntegrator: '/Integrator' */ + /* InitializeConditions for DiscreteIntegrator: '/Integrator' */ rtDW.Integrator_PrevResetState = 0; - /* InitializeConditions for RateLimiter: '/Rate Limiter' */ + /* InitializeConditions for DiscreteIntegrator: '/Filter' */ + rtDW.Filter_PrevResetState = 0; + + /* InitializeConditions for RateLimiter: '/Rate Limiter' */ rtDW.PrevY = 0U; - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ rtDW.UnitDelay_DSTATE_lk = -9999; - /* InitializeConditions for UnitDelay: '/Unit Delay1' */ + /* InitializeConditions for UnitDelay: '/Unit Delay1' */ rtDW.UnitDelay1_DSTATE = -9999; - /* InitializeConditions for UnitDelay: '/Unit Delay' */ - rtDW.UnitDelay_DSTATE_da = -9999; + /* InitializeConditions for UnitDelay: '/Unit Delay' */ + rtDW.UnitDelay_DSTATE_cb = -9999; - /* InitializeConditions for UnitDelay: '/Unit Delay1' */ - rtDW.UnitDelay1_DSTATE_k = -9999; + /* InitializeConditions for UnitDelay: '/Unit Delay' */ + rtDW.UnitDelay_DSTATE_j = -9999; - /* InitializeConditions for UnitDelay: '/Unit Delay' */ - rtDW.UnitDelay_DSTATE_my = -9999; + /* InitializeConditions for UnitDelay: '/Unit Delay' */ + rtDW.UnitDelay_DSTATE_cs = -9999; - /* InitializeConditions for UnitDelay: '/Unit Delay' */ - rtDW.UnitDelay_DSTATE_lt = -9999; + /* InitializeConditions for UnitDelay: '/Unit Delay' */ + rtDW.UnitDelay_DSTATE_k = -9999; - /* InitializeConditions for UnitDelay: '/Unit Delay' */ - rtDW.UnitDelay_DSTATE_d5 = -9999; + /* InitializeConditions for UnitDelay: '/Unit Delay' */ + rtDW.UnitDelay_DSTATE_cu = -9999; + + /* InitializeConditions for DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_PrevResetState_c = 0; + + /* InitializeConditions for DiscreteIntegrator: '/Filter' */ + rtDW.Filter_PrevResetState_h = 0; + + /* InitializeConditions for DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_PrevResetState_d = 0; + + /* InitializeConditions for DiscreteIntegrator: '/Filter' */ + rtDW.Filter_PrevResetState_l = 0; + + /* InitializeConditions for DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_PrevResetState_ch = 0; + + /* InitializeConditions for DiscreteIntegrator: '/Filter' */ + rtDW.Filter_PrevResetState_j = 0; + + /* InitializeConditions for DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_PrevResetState_n = 0; + + /* InitializeConditions for DiscreteIntegrator: '/Filter' */ + rtDW.Filter_PrevResetState_f = 0; + + /* InitializeConditions for DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_PrevResetState_e = 0; + + /* InitializeConditions for DiscreteIntegrator: '/Filter' */ + rtDW.Filter_PrevResetState_p = 0; + + /* InitializeConditions for DiscreteIntegrator: '/Integrator' */ + rtDW.Integrator_PrevResetState_o = 0; + + /* InitializeConditions for DiscreteIntegrator: '/Filter' */ + rtDW.Filter_PrevResetState_i = 0; /* SystemInitialize for Chart: '/A//C Control' */ rtB.FRONT_eTXV = false; @@ -30432,52 +33964,104 @@ void HVAC_model_initialize(void) rtDW.REAR_Start_request = false; rtB.Eva_Ctrl = 0U; rtDW.is_active_c621_HVAC_model = 0U; - rtDW.is_PRESSURE_MONITOR = IN_NO_ACTIVE_CHILD_o; - rtDW.is_FRONT_CONTOUR = IN_NO_ACTIVE_CHILD_o; - rtDW.is_REAR_CONTOUR = IN_NO_ACTIVE_CHILD_o; - rtDW.is_CHILLER_CONTOUR = IN_NO_ACTIVE_CHILD_o; - rtDW.is_E_COMP_MANAGER = IN_NO_ACTIVE_CHILD_o; - rtDW.is_COMP_PROTECTION = IN_NO_ACTIVE_CHILD_o; + rtDW.is_PRESSURE_MONITOR = IN_NO_ACTIVE_CHILD_c; + rtDW.is_FRONT_CONTOUR = IN_NO_ACTIVE_CHILD_c; + rtDW.is_REAR_CONTOUR = IN_NO_ACTIVE_CHILD_c; + rtDW.is_CHILLER_CONTOUR = IN_NO_ACTIVE_CHILD_c; + rtDW.is_E_COMP_MANAGER = IN_NO_ACTIVE_CHILD_c; + rtDW.is_COMP_PROTECTION = IN_NO_ACTIVE_CHILD_c; - /* SystemInitialize for MATLAB Function: '/MATLAB Function1' */ + /* SystemInitialize for MATLAB Function: '/MATLAB Function1' */ rtDW.t_start_not_empty = false; rtDW.is_running = 0U; /* SystemInitialize for Chart: '/13,1,3,15 Valve control' */ - rtDW.t_start_1 = 0U; - rtB.Cmd_3Way = 0U; - rtDW.t_start_2 = 0U; - rtDW.t_start_3 = 0U; - rtDW.t_start_4 = 0U; rtDW.Cmd_RearTemp_3W = 0.0; rtB.Cmd_2Way = 0U; rtDW.Cmd_RearTemp_2W = 0.0; rtDW.is_active_c775_HVAC_model = 0U; - rtDW.is_ThreeWay_Logic = IN_NO_ACTIVE_CHILD_o; - rtDW.is_TwoWay_Logic = IN_NO_ACTIVE_CHILD_o; + rtDW.is_ThreeWay_Logic = IN_NO_ACTIVE_CHILD_c; + rtDW.is_TwoWay_Logic = IN_NO_ACTIVE_CHILD_c; /* SystemInitialize for Chart: '/Synchronization stateflow chart' */ + rtB.sync_all = 0U; + rtB.sync_front = 0U; + rtB.sync_rear = 0U; rtDW.is_active_c618_HVAC_model = 0U; - rtDW.is_c618_HVAC_model = IN_NO_ACTIVE_CHILD_o; + rtDW.is_c618_HVAC_model = IN_NO_ACTIVE_CHILD_c; - /* SystemInitialize for Merge: '/Merge' */ + /* SystemInitialize for Merge: '/Merge' */ rtB.Merge_b = 0U; - /* SystemInitialize for MATLAB Function: '/Log Ambient Lv' */ + /* SystemInitialize for MATLAB Function: '/Log Ambient Lv' */ rtDW.current_Ambient_Lv_not_empty = false; /* SystemInitialize for Chart: '/Spd_OSA_Trigger' */ rtDW.is_active_c834_HVAC_model = 0U; - rtDW.is_c834_HVAC_model = IN_NO_ACTIVE_CHILD_o; + rtDW.is_c834_HVAC_model = IN_NO_ACTIVE_CHILD_c; /* SystemInitialize for Chart: '/Chart' */ rtB.req_OSA = 0U; rtB.req_REC = 0U; rtDW.X_prev = 0; rtDW.is_active_c776_HVAC_model = 0U; - rtDW.is_c776_HVAC_model = IN_NO_ACTIVE_CHILD_o; - rtDW.is_PARTIAL_REC_ON = IN_NO_ACTIVE_CHILD_o; - rtDW.is_COND_2 = IN_NO_ACTIVE_CHILD_o; + rtDW.is_c776_HVAC_model = IN_NO_ACTIVE_CHILD_c; + rtDW.is_PARTIAL_REC_ON = IN_NO_ACTIVE_CHILD_c; + rtDW.is_COND_2 = IN_NO_ACTIVE_CHILD_c; + + /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem' */ + /* SystemInitialize for Merge: '/Merge' */ + rtB.Merge_j = 0; + + /* SystemInitialize for Merge: '/Merge1' */ + rtB.Merge1_j = 0; + + /* End of SystemInitialize for SubSystem: '/If Action Subsystem' */ + + /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem1' */ + /* SystemInitialize for Merge: '/Merge' */ + rtB.Merge_i2 = 0; + + /* SystemInitialize for Merge: '/Merge1' */ + rtB.Merge1_hu = 0; + + /* End of SystemInitialize for SubSystem: '/If Action Subsystem1' */ + + /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem2' */ + /* SystemInitialize for Merge: '/Merge' */ + rtB.Merge_he = 0; + + /* SystemInitialize for Merge: '/Merge1' */ + rtB.Merge1_c = 0; + + /* End of SystemInitialize for SubSystem: '/If Action Subsystem2' */ + + /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem' */ + /* SystemInitialize for Merge: '/Merge' */ + rtB.Merge_on = 0; + + /* SystemInitialize for Merge: '/Merge1' */ + rtB.Merge1_g = 0; + + /* End of SystemInitialize for SubSystem: '/If Action Subsystem' */ + + /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem1' */ + /* SystemInitialize for Merge: '/Merge' */ + rtB.Merge_o = 0; + + /* SystemInitialize for Merge: '/Merge1' */ + rtB.Merge1_e = 0; + + /* End of SystemInitialize for SubSystem: '/If Action Subsystem1' */ + + /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem2' */ + /* SystemInitialize for Merge: '/Merge' */ + rtB.Merge_p5 = 0; + + /* SystemInitialize for Merge: '/Merge1' */ + rtB.Merge1_az = 0; + + /* End of SystemInitialize for SubSystem: '/If Action Subsystem2' */ /* SystemInitialize for Chart: '/Zone_Climate_Logic_Auto_FL2' */ Zone_Climate_Logic_Auto_FL2_Init(&rtB.out_def_a, &rtB.out_face_p, @@ -30498,81 +34082,77 @@ void HVAC_model_initialize(void) Zone_Climate_Logic_Auto_FL1_Init(&rtB.out_def, &rtB.out_face, &rtB.out_foot, &rtB.out_auto, &rtB.out_ac, &rtDW.sf_Zone_Climate_Logic_Auto_FL4); + /* SystemInitialize for Chart: '/AC_Max_Active' */ + rtDW.is_active_c782_HVAC_model = 0U; + rtDW.is_c782_HVAC_model = IN_NO_ACTIVE_CHILD_c; + + /* SystemInitialize for Chart: '/Defrost_Active' */ + rtDW.is_active_c837_HVAC_model = 0U; + rtDW.is_c837_HVAC_model = IN_NO_ACTIVE_CHILD_c; + /* SystemInitialize for Chart: '/Full_Rec_Active' */ rtDW.is_active_c836_HVAC_model = 0U; - rtDW.is_c836_HVAC_model = IN_NO_ACTIVE_CHILD_o; + rtDW.is_c836_HVAC_model = IN_NO_ACTIVE_CHILD_c; - /* SystemInitialize for IfAction SubSystem: '/Homing' */ - /* SystemInitialize for IfAction SubSystem: '/Switch Case Action Subsystem3' */ - /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem' */ - /* Start for DataStoreMemory: '/Data Store Memory' */ + /* SystemInitialize for IfAction SubSystem: '/Homing' */ + /* SystemInitialize for IfAction SubSystem: '/Switch Case Action Subsystem3' */ + /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem' */ + /* Start for DataStoreMemory: '/Data Store Memory' */ rtDW.Start_timer_n = 1.0; - /* SystemInitialize for MATLAB Function: '/MATLAB Function' */ + /* SystemInitialize for MATLAB Function: '/MATLAB Function' */ MATLABFunction_Init(&rtDW.sf_MATLABFunction_h); - /* End of SystemInitialize for SubSystem: '/If Action Subsystem' */ - /* End of SystemInitialize for SubSystem: '/Switch Case Action Subsystem3' */ + /* End of SystemInitialize for SubSystem: '/If Action Subsystem' */ + /* End of SystemInitialize for SubSystem: '/Switch Case Action Subsystem3' */ - /* SystemInitialize for Merge: '/Merge' */ - rtB.Merge_ac = 0; + /* SystemInitialize for Merge: '/Merge' */ + rtB.Merge_a = 0; - /* End of SystemInitialize for SubSystem: '/Homing' */ + /* End of SystemInitialize for SubSystem: '/Homing' */ - /* SystemInitialize for Merge: '/Merge' */ + /* SystemInitialize for Merge: '/Merge' */ rtB.Merge_f1 = 0; - /* SystemInitialize for IfAction SubSystem: '/Homing' */ - /* SystemInitialize for IfAction SubSystem: '/Switch Case Action Subsystem3' */ - /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem' */ - /* Start for DataStoreMemory: '/Data Store Memory' */ + /* SystemInitialize for IfAction SubSystem: '/Homing' */ + /* SystemInitialize for IfAction SubSystem: '/Switch Case Action Subsystem3' */ + /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem' */ + /* Start for DataStoreMemory: '/Data Store Memory' */ rtDW.Start_timer_j = 1.0; - /* SystemInitialize for MATLAB Function: '/MATLAB Function' */ + /* SystemInitialize for MATLAB Function: '/MATLAB Function' */ MATLABFunction_Init(&rtDW.sf_MATLABFunction_hk); - /* End of SystemInitialize for SubSystem: '/If Action Subsystem' */ - /* End of SystemInitialize for SubSystem: '/Switch Case Action Subsystem3' */ + /* End of SystemInitialize for SubSystem: '/If Action Subsystem' */ + /* End of SystemInitialize for SubSystem: '/Switch Case Action Subsystem3' */ - /* SystemInitialize for Merge: '/Merge' */ + /* SystemInitialize for Merge: '/Merge' */ rtB.Merge_p = 0; - /* End of SystemInitialize for SubSystem: '/Homing' */ + /* End of SystemInitialize for SubSystem: '/Homing' */ - /* SystemInitialize for Merge: '/Merge' */ + /* SystemInitialize for Merge: '/Merge' */ rtB.Merge_e = 0; - /* SystemInitialize for IfAction SubSystem: '/Homing' */ - /* SystemInitialize for IfAction SubSystem: '/Switch Case Action Subsystem3' */ - /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem' */ - /* Start for DataStoreMemory: '/Data Store Memory' */ + /* SystemInitialize for IfAction SubSystem: '/Homing' */ + /* SystemInitialize for IfAction SubSystem: '/Switch Case Action Subsystem3' */ + /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem' */ + /* Start for DataStoreMemory: '/Data Store Memory' */ rtDW.Start_timer = 1.0; - /* SystemInitialize for MATLAB Function: '/MATLAB Function' */ + /* SystemInitialize for MATLAB Function: '/MATLAB Function' */ MATLABFunction_Init(&rtDW.sf_MATLABFunction_g); - /* End of SystemInitialize for SubSystem: '/If Action Subsystem' */ - /* End of SystemInitialize for SubSystem: '/Switch Case Action Subsystem3' */ + /* End of SystemInitialize for SubSystem: '/If Action Subsystem' */ + /* End of SystemInitialize for SubSystem: '/Switch Case Action Subsystem3' */ - /* SystemInitialize for Merge: '/Merge' */ - rtB.Merge_h = 0; + /* SystemInitialize for Merge: '/Merge' */ + rtB.Merge_h3 = 0; - /* End of SystemInitialize for SubSystem: '/Homing' */ + /* End of SystemInitialize for SubSystem: '/Homing' */ - /* SystemInitialize for Merge: '/Merge' */ + /* SystemInitialize for Merge: '/Merge' */ rtB.Merge_b4 = 0; - - /* SystemInitialize for IfAction SubSystem: '/Start Control Front' */ - /* SystemInitialize for Merge: '/Merge' */ - rtB.Merge_fb = 0; - - /* End of SystemInitialize for SubSystem: '/Start Control Front' */ - - /* SystemInitialize for IfAction SubSystem: '/Start Control Rear' */ - /* SystemInitialize for Merge: '/Merge' */ - rtB.Merge_c = 0; - - /* End of SystemInitialize for SubSystem: '/Start Control Rear' */ } } diff --git a/HVAC_model.h b/HVAC_model.h index 95315d3..9b9402d 100644 --- a/HVAC_model.h +++ b/HVAC_model.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.1202 + * Model version : 1.1314 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Fri Jun 26 14:54:36 2026 + * C/C++ source code generated on : Sat Jul 11 14:20:55 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -41,43 +41,6 @@ /* user code (top of header file) */ #include -/* Block states (default storage) for system '/Level 4' */ -typedef struct { - uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ - bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ -} DW_Level4_o; - -/* Block states (default storage) for system '/Level 3' */ -typedef struct { - uint32_t UnitDelay_DSTATE; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_e; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_g; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_gq; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ - bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ -} DW_Level3; - -/* Block states (default storage) for system '/Level 0' */ -typedef struct { - uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ - bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ -} DW_Level0_f; - -/* Block states (default storage) for system '/Level 4' */ -typedef struct { - uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ - bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ -} DW_Level4_oa; - -/* Block states (default storage) for system '/Level 3' */ -typedef struct { - uint32_t UnitDelay_DSTATE; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_a; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_ar; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ - bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ -} DW_Level3_j; - /* Block states (default storage) for system '/Zone_Climate_Logic_Auto_FL1' */ typedef struct { uint8_t is_active_c23_HVAC_model; /* '/Zone_Climate_Logic_Auto_FL1' */ @@ -100,11 +63,11 @@ typedef struct { uint8_t is_AC_SUB_b; /* '/Zone_Climate_Logic_Auto_FL2' */ } DW_Zone_Climate_Logic_Auto_FL2; -/* Block states (default storage) for system '/MATLAB Function' */ +/* Block states (default storage) for system '/MATLAB Function' */ typedef struct { - double cond_prev; /* '/MATLAB Function' */ - uint32_t t_start; /* '/MATLAB Function' */ - bool t_start_not_empty; /* '/MATLAB Function' */ + double cond_prev; /* '/MATLAB Function' */ + uint32_t t_start; /* '/MATLAB Function' */ + bool t_start_not_empty; /* '/MATLAB Function' */ } DW_MATLABFunction; /* Block signals (default storage) */ @@ -114,16 +77,25 @@ typedef struct { double out_ac_h; /* '/Zone_Climate_Logic_Auto_FL2' */ double out_ac_m; /* '/Zone_Climate_Logic_Auto_FL1' */ double Chiller_Only_Flag; /* '/A//C Control' */ - uint16_t MultiportSwitch[6]; /* '/Multiport Switch' */ - uint16_t MultiportSwitch_o[6]; /* '/Multiport Switch' */ - uint16_t MultiportSwitch_f[9]; /* '/Multiport Switch' */ - uint16_t MultiportSwitch_of; /* '/Multiport Switch' */ - uint16_t MultiportSwitch_j; /* '/Multiport Switch' */ - uint16_t MultiportSwitch_a; /* '/Multiport Switch' */ - uint16_t MultiportSwitch_o2; /* '/Multiport Switch' */ + uint16_t MultiportSwitch[6]; /* '/Multiport Switch' */ + uint16_t MultiportSwitch_o[6]; /* '/Multiport Switch' */ + uint16_t MultiportSwitch_f[9]; /* '/Multiport Switch' */ + uint16_t MultiportSwitch_of; /* '/Multiport Switch' */ + uint16_t MultiportSwitch_j; /* '/Multiport Switch' */ + uint16_t MultiportSwitch_a; /* '/Multiport Switch' */ + uint16_t MultiportSwitch_o2; /* '/Multiport Switch' */ int16_t Comp_Feedback_Temp; /* '/A//C Control' */ int16_t Comp_Target_Temp; /* '/A//C Control' */ - uint8_t Merge_b; /* '/Merge' */ + int16_t Merge1_az; /* '/Merge1' */ + int16_t Merge1_e; /* '/Merge1' */ + int16_t Merge1_g; /* '/Merge1' */ + int16_t Merge1_c; /* '/Merge1' */ + int16_t Merge1_hu; /* '/Merge1' */ + int16_t Merge1_j; /* '/Merge1' */ + uint8_t Merge_b; /* '/Merge' */ + uint8_t sync_all; /* '/Synchronization stateflow chart' */ + uint8_t sync_front; /* '/Synchronization stateflow chart' */ + uint8_t sync_rear; /* '/Synchronization stateflow chart' */ uint8_t out_def; /* '/Zone_Climate_Logic_Auto_FL4' */ uint8_t out_face; /* '/Zone_Climate_Logic_Auto_FL4' */ uint8_t out_foot; /* '/Zone_Climate_Logic_Auto_FL4' */ @@ -143,16 +115,19 @@ typedef struct { uint8_t Eva_Ctrl; /* '/A//C Control' */ uint8_t req_OSA; /* '/Chart' */ uint8_t req_REC; /* '/Chart' */ - uint8_t Cmd_3Way; /* '/13,1,3,15 Valve control' */ uint8_t Cmd_2Way; /* '/13,1,3,15 Valve control' */ - int8_t Merge_f1; /* '/Merge' */ - int8_t Merge_e; /* '/Merge' */ - int8_t Merge_b4; /* '/Merge' */ - int8_t Merge_h; /* '/Merge' */ - int8_t Merge_p; /* '/Merge' */ - int8_t Merge_ac; /* '/Merge' */ - int8_t Merge_c; /* '/Merge' */ - int8_t Merge_fb; /* '/Merge' */ + int8_t Merge_f1; /* '/Merge' */ + int8_t Merge_e; /* '/Merge' */ + int8_t Merge_b4; /* '/Merge' */ + int8_t Merge_h3; /* '/Merge' */ + int8_t Merge_p; /* '/Merge' */ + int8_t Merge_a; /* '/Merge' */ + int8_t Merge_p5; /* '/Merge' */ + int8_t Merge_o; /* '/Merge' */ + int8_t Merge_on; /* '/Merge' */ + int8_t Merge_he; /* '/Merge' */ + int8_t Merge_i2; /* '/Merge' */ + int8_t Merge_j; /* '/Merge' */ bool FRONT_eTXV; /* '/A//C Control' */ bool REAR_eTXV; /* '/A//C Control' */ bool Chiller_eTXV; /* '/A//C Control' */ @@ -164,10 +139,9 @@ typedef struct { CmdBusADCData ADC_Data_Model; /* '/Data Store Memory42' */ dbg_Auto_AF_Bus dbg_Auto_AF_model; /* '/Data Store Memory233' */ dbgCAN_dbg_Sen_Duct_Bus dbgCAN_dbg_Sen_Duct_model;/* '/Data Store Memory82' */ - CmdCAN_CCU_STAT1_Bus CCU_STAT1_MODEL;/* '/Data Store Memory105' */ CCUCAN_ESC_04_Bus CCUCAN_ESC_04_model;/* '/Data Store Memory141' */ + dbg_LIN_DRS_Stat_t_Bus dbg_LIN_DRS_Stat_t_model;/* '/Data Store Memory283' */ dbgCAN_dbg_Sen_Incar_Bus dbgCAN_dbg_Sen_Incar_model;/* '/Data Store Memory157' */ - CmdCAN_CCU_STAT2_Bus CCU_STAT2_MODEL;/* '/Data Store Memory156' */ tPowerEnable_Bus PowerEnable_Model; /* '/Data Store Memory159' */ dbgCAN_Logic_State_Bus dbgCAN_Logic_State_model;/* '/Data Store Memory227' */ CCUCAN_BCM_Climatic_Bus CCUCAN_BCM_Climatic_model;/* '/Data Store Memory138' */ @@ -176,48 +150,59 @@ typedef struct { HVC_Err_Status_Msg_Bus HVC_ERR_STATUS_MSG_MODEL;/* '/Data Store Memory210' */ CmdCAN_FIU_CCU1_Bus FIU_CCU1_MODEL; /* '/Data Store Memory43' */ CmdCAN_FIU_CCU2_Bus FIU_CCU2_MODEL; /* '/Data Store Memory44' */ - CCU_Msg1_Bus CCU_Msg1_model; /* '/Data Store Memory230' */ dbgCAN_CCU_IO_Bus dbgCAN_CCU_IO_model;/* '/Data Store Memory211' */ dbg_Logic_Ac_Bus dbg_Logic_Ac_model; /* '/Data Store Memory193' */ dbgCAN_dbg_Logic_Blower_Bus dbgCAN_dbg_Logic_Blower_model;/* '/Data Store Memory64' */ CCUCAN_BCM_Powertrain_Bus CCUCAN_BCM_Powertrain_model;/* '/Data Store Memory137' */ CCUCAN_EMS_Veh_Bus CCUCAN_EMS_Veh_model;/* '/Data Store Memory140' */ - int64_t Integrator_DSTATE; /* '/Integrator' */ - int64_t Integrator_DSTATE_k; /* '/Integrator' */ - int64_t Integrator_DSTATE_h; /* '/Integrator' */ - int64_t Integrator_DSTATE_i; /* '/Integrator' */ - int64_t Integrator_DSTATE_n; /* '/Integrator' */ - int64_t Integrator_DSTATE_a; /* '/Integrator' */ - double KEEP_RISING_FL_UNTIL_LIMIT; /* '/Data Store Memory1' */ - double KEEP_FALLING_RR_UNTIL_LIMIT; /* '/Data Store Memory11' */ - double KEEP_FALLING_FL_UNTIL_LIMIT; /* '/Data Store Memory2' */ - double KEEP_RISING_FR_UNTIL_LIMIT; /* '/Data Store Memory3' */ - double KEEP_FALLING_FR_UNTIL_LIMIT; /* '/Data Store Memory5' */ - double KEEP_RISING_RL_UNTIL_LIMIT; /* '/Data Store Memory7' */ - double KEEP_FALLING_RL_UNTIL_LIMIT; /* '/Data Store Memory8' */ - double KEEP_RISING_RR_UNTIL_LIMIT; /* '/Data Store Memory9' */ + double Integrator_DSTATE; /* '/Integrator' */ + double Filter_DSTATE; /* '/Filter' */ + double Integrator_DSTATE_n; /* '/Integrator' */ + double Filter_DSTATE_d; /* '/Filter' */ + double Integrator_DSTATE_p; /* '/Integrator' */ + double Filter_DSTATE_dv; /* '/Filter' */ + double Integrator_DSTATE_e; /* '/Integrator' */ + double Filter_DSTATE_f; /* '/Filter' */ + double Integrator_DSTATE_k; /* '/Integrator' */ + double Filter_DSTATE_p; /* '/Filter' */ + double Integrator_DSTATE_j; /* '/Integrator' */ + double Filter_DSTATE_l; /* '/Filter' */ + double Integrator_DSTATE_o; /* '/Integrator' */ + double Filter_DSTATE_pw; /* '/Filter' */ + double Temp_FL_store; /* '/Data Store Memory' */ + double KEEP_RISING_FL_UNTIL_LIMIT; /* '/Data Store Memory1' */ + double Temp_RR_store; /* '/Data Store Memory10' */ + double KEEP_FALLING_RR_UNTIL_LIMIT; /* '/Data Store Memory11' */ + double KEEP_FALLING_FL_UNTIL_LIMIT; /* '/Data Store Memory2' */ + double KEEP_RISING_FR_UNTIL_LIMIT; /* '/Data Store Memory3' */ + double Temp_FR_store; /* '/Data Store Memory4' */ + double Temp_RL_store; /* '/Data Store Memory6' */ + double KEEP_RISING_RL_UNTIL_LIMIT; /* '/Data Store Memory7' */ + double KEEP_FALLING_RL_UNTIL_LIMIT; /* '/Data Store Memory8' */ + double KEEP_RISING_RR_UNTIL_LIMIT; /* '/Data Store Memory9' */ double LOGGER_ACP; /* '/Data Store Memory1' */ - double AMB_store; /* '/Data Store Memory' */ - double KEEP_RISING_UNTIL_LIMIT; /* '/Data Store Memory1' */ - double KEEP_FALLING_UNTIL_LIMIT; /* '/Data Store Memory2' */ - double ErrorHomming_private; /* '/Data Store Memory2' */ - double ErrorHomming_private_h; /* '/Data Store Memory2' */ - double ErrorHomming_private_m; /* '/Data Store Memory2' */ - double LOGGER_LIN; /* '/Data Store Memory1' */ - double SKIPPED_FIRST_SIMULATION_STEP;/* '/Data Store Memory131' */ + double AMB_store; /* '/Data Store Memory' */ + double KEEP_RISING_UNTIL_LIMIT; /* '/Data Store Memory1' */ + double KEEP_FALLING_UNTIL_LIMIT; /* '/Data Store Memory2' */ + double ErrorHomming_private; /* '/Data Store Memory2' */ + double ErrorHomming_private_h; /* '/Data Store Memory2' */ + double ErrorHomming_private_m; /* '/Data Store Memory2' */ + double eCompChiller_Err; /* '/Can_Chiller1' */ double Sun_L; /* '/Data Store Memory143' */ double Sun_R; /* '/Data Store Memory144' */ + double step_test; /* '/Data Store Memory297' */ double Engine_speed; /* '/EMS_nICEngineSpeed3' */ - double start_control_finished_rear; /* '/SC Rear' */ - double Start_timer; /* '/Data Store Memory' */ - double Start_timer_j; /* '/Data Store Memory' */ - double Start_timer_n; /* '/Data Store Memory' */ + double Start_timer; /* '/Data Store Memory' */ + double Start_timer_j; /* '/Data Store Memory' */ + double Start_timer_n; /* '/Data Store Memory' */ double Cmd_RearTemp_3W; /* '/13,1,3,15 Valve control' */ double Cmd_RearTemp_2W; /* '/13,1,3,15 Valve control' */ - CCU_HVC_Req_Msg_Bus CCUCAN_HVC_REQ_MSG_MODEL;/* '/Data Store Memory194' */ - CCU_Msg3_Bus CCU_Msg3_model; /* '/Data Store Memory212' */ + LIN4_CCU_Req_Bus LIN4_CCU_Req_Model; /* '/Data Store Memory269' */ dbgCAN_dbg_Sen_0_Bus dbgCAN_dbg_Sen_0_model;/* '/Data Store Memory158' */ + dbg_Drs_t_Bus dbg_Drs_t_model; /* '/Data Store Memory285' */ + dbg_LIN_AirQS_Stat_t_Bus dbg_LIN_AirQS_Stat_t_model;/* '/Data Store Memory284' */ dbgCAN_Logic_Rec_Bus dbgCAN_Logic_Rec_model;/* '/Data Store Memory220' */ + dbg_Logic_Valve_Bus dbg_Logic_Valve_model;/* '/Data Store Memory270' */ dbgCAN_dbg_Act0_Bus dbgCAN_dbg_Act0_model;/* '/Data Store Memory79' */ dbgCAN_dbg_Act1_Bus dbgCAN_dbg_Act1_model;/* '/Data Store Memory80' */ dbgCAN_dbg_Act2_Bus dbgCAN_dbg_Act2_model;/* '/Data Store Memory81' */ @@ -226,91 +211,54 @@ typedef struct { CCUCAN_EMS_HVC_Req_Msg_Bus CCUCAN_EMS_HVC_REQ_MSG_MODEL;/* '/Data Store Memory191' */ CmdBusADCDataKey ADC_Key_Data_Model; /* '/Data Store Memory198' */ CCUCAN_OCURL_MSG_Bus CCUCAN_OCURL_MSG_model;/* '/Data Store Memory213' */ - uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_g;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_c;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_go;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_k;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_j;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_gd;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_m;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_kc;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_p;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_h;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_i;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_cc;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_cd;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_o;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_oj;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_oy;/* '/t_start_delay_private ' */ - uint32_t UnitDelay_DSTATE; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_n; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_a; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_b; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_bd; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_g; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_h; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_f; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE_kh;/* '/t_start_delay_private ' */ - uint32_t UnitDelay_DSTATE_a4; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_d; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_l; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE_pa;/* '/t_start_delay_private ' */ - uint32_t UnitDelay_DSTATE_i; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_o; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_ge; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE_hn;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_l;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_e;/* '/t_start_delay_private ' */ - uint32_t UnitDelay_DSTATE_fs; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_ha; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_e; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_k; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE_it;/* '/t_start_delay_private ' */ - uint32_t UnitDelay_DSTATE_an; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_a1; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_ne; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_p; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE_n;/* '/t_start_delay_private ' */ - uint32_t UnitDelay_DSTATE_hx; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_fi; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_m; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_p5; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE_jt;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_d;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_jr;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_ch;/* '/t_start_delay_private ' */ - int32_t Integrator_DSTATE_l; /* '/Integrator' */ + LIN5_SENSON_ADR_Stat_Bus LIN5_SENSON_ADR_Stat_model;/* '/Data Store Memory262' */ + LIN4_AirQS_Stat_Bus LIN4_AirQS_Stat_Model;/* '/Data Store Memory263' */ + uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_i;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_k;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_p;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_g;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_c;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_h;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_kc;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_m;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_pn;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_hb;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_i3;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_cc;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_o;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_oy;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_cd;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_or;/* '/t_start_delay_private ' */ + uint32_t UnitDelay_DSTATE; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_m; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_l; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_c; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_o; /* '/Unit Delay' */ uint32_t t_now; /* '/Data Store Memory5' */ - uint32_t t_start; /* '/MATLAB Function1' */ - uint32_t t_start_1; /* '/13,1,3,15 Valve control' */ - uint32_t t_start_2; /* '/13,1,3,15 Valve control' */ - uint32_t t_start_3; /* '/13,1,3,15 Valve control' */ - uint32_t t_start_4; /* '/13,1,3,15 Valve control' */ - int16_t UnitDelay_DSTATE_lk; /* '/Unit Delay' */ - int16_t UnitDelay1_DSTATE; /* '/Unit Delay1' */ - int16_t UnitDelay_DSTATE_da; /* '/Unit Delay' */ - int16_t UnitDelay1_DSTATE_k; /* '/Unit Delay1' */ - int16_t UnitDelay_DSTATE_my; /* '/Unit Delay' */ - int16_t UnitDelay_DSTATE_lt; /* '/Unit Delay' */ - int16_t UnitDelay_DSTATE_d5; /* '/Unit Delay' */ - int16_t Temp_FL_store; /* '/Data Store Memory' */ - int16_t Temp_RR_store; /* '/Data Store Memory10' */ - int16_t Temp_FR_store; /* '/Data Store Memory4' */ - int16_t Temp_RL_store; /* '/Data Store Memory6' */ - int16_t MinPositionCh0_private[9]; /* '/Data Store Memory12' */ - int16_t MaxPositionCh0_private[9]; /* '/Data Store Memory13' */ - int16_t MinPositionCh1_private[9]; /* '/Data Store Memory12' */ - int16_t MaxPositionCh1_private[9]; /* '/Data Store Memory13' */ - int16_t MinPositionCh2_private[9]; /* '/Data Store Memory12' */ - int16_t MaxPositionCh2_private[9]; /* '/Data Store Memory13' */ + uint32_t t_start; /* '/MATLAB Function1' */ + int16_t UnitDelay_DSTATE_lk; /* '/Unit Delay' */ + int16_t UnitDelay1_DSTATE; /* '/Unit Delay1' */ + int16_t UnitDelay_DSTATE_cb; /* '/Unit Delay' */ + int16_t UnitDelay_DSTATE_j; /* '/Unit Delay' */ + int16_t UnitDelay_DSTATE_cs; /* '/Unit Delay' */ + int16_t UnitDelay_DSTATE_k; /* '/Unit Delay' */ + int16_t UnitDelay_DSTATE_cu; /* '/Unit Delay' */ + int16_t MinPositionCh0_private[9]; /* '/Data Store Memory12' */ + int16_t MaxPositionCh0_private[9]; /* '/Data Store Memory13' */ + int16_t MinPositionCh1_private[9]; /* '/Data Store Memory12' */ + int16_t MaxPositionCh1_private[9]; /* '/Data Store Memory13' */ + int16_t MinPositionCh2_private[9]; /* '/Data Store Memory12' */ + int16_t MaxPositionCh2_private[9]; /* '/Data Store Memory13' */ int16_t eComp_Temp; /* '/Can_Chiller2' */ int16_t Eva_F; /* '/Data Store Memory10' */ int16_t Incar_FR; /* '/Data Store Memory11' */ int16_t Incar_RR; /* '/Data Store Memory12' */ int16_t Duct_RR_Tg; /* '/Data Store Memory148' */ - int16_t Duct_RL_Tg_DBG[5]; /* '/Data Store Memory237' */ - int16_t Duct_RR_Tg_DBG[5]; /* '/Data Store Memory238' */ + int16_t Blower_individual_foot_FL; /* '/Data Store Memory305' */ + int16_t Blower_individual_foot_FR; /* '/Data Store Memory306' */ + int16_t Dtg_individual_foot_FL; /* '/Data Store Memory309' */ + int16_t Dtg_individual_foot_FR; /* '/Data Store Memory310' */ int16_t AMB; /* '/Data Store Memory4' */ int16_t Pressure; /* '/Data Store Memory6' */ int16_t Incar_FL; /* '/Data Store Memory7' */ @@ -318,94 +266,108 @@ typedef struct { int16_t Eva_R; /* '/Data Store Memory9' */ int16_t ECT; /* '/engine coolant temp' */ int16_t X_prev; /* '/Chart' */ - uint16_t KEEP_UNTIL_SPEED_DROPS; /* '/Data Store Memory3' */ - uint16_t POS_private[9]; /* '/Data Store Memory3' */ - uint16_t POS_private_m[9]; /* '/Data Store Memory3' */ - uint16_t POS_private_h[9]; /* '/Data Store Memory3' */ + uint16_t KEEP_UNTIL_SPEED_DROPS; /* '/Data Store Memory3' */ + uint16_t POS_private[9]; /* '/Data Store Memory3' */ + uint16_t POS_private_m[9]; /* '/Data Store Memory3' */ + uint16_t POS_private_h[9]; /* '/Data Store Memory3' */ uint16_t CCU_SET_FR; /* '/Data Store Memory14' */ uint16_t CCU_SET_FL; /* '/Data Store Memory15' */ uint16_t CCU_SET_RR; /* '/Data Store Memory16' */ uint16_t CCU_SET_RL; /* '/Data Store Memory17' */ - uint16_t Blower_FL; /* '/Data Store Memory27' */ - uint16_t Blower_RR; /* '/Data Store Memory32' */ - uint16_t Blower_logic_FL; /* '/Data Store Memory37' */ - uint16_t Blower_logic_RR; /* '/Data Store Memory56' */ + uint16_t Dtg_FUR; /* '/Data Store Memory30' */ + uint16_t Dtg_FUL; /* '/Data Store Memory31' */ + uint16_t Dtg_FLR; /* '/Data Store Memory33' */ + uint16_t Dtg_FLL; /* '/Data Store Memory34' */ + uint16_t Dtg_RR; /* '/Data Store Memory52' */ + uint16_t Dtg_RL; /* '/Data Store Memory53' */ uint16_t VehicleSpeed; /* '/VehicleSpeed' */ uint16_t eComp_InputC; /* '/Can_Chiller3' */ - bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_p; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_a; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_h; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_c; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_m; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_j; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_f; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_cn; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_l; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_ja; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_g; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_cd; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_e; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_mv; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_jl; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_ei; /* '/Cond_prev_private ' */ - bool DelayInput1_DSTATE; /* '/Delay Input1' */ - bool Cond_prev_private_DSTATE_eo; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_l2; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_b; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_pk; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_ld; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_n; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_o; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_lu; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_fs; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_ht; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_an; /* '/Cond_prev_private ' */ - int8_t Integrator_PrevResetState; /* '/Integrator' */ - int8_t stepSig_private; /* '/Data Store Memory' */ - int8_t stepHoming_private; /* '/Data Store Memory17' */ - int8_t stepSig_private_h; /* '/Data Store Memory' */ - int8_t stepHoming_private_f; /* '/Data Store Memory17' */ - int8_t stepSig_private_g; /* '/Data Store Memory' */ - int8_t stepHoming_private_a; /* '/Data Store Memory17' */ + bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_p; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_a; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_h; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_c; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_m; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_j; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_f; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_cn; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_l; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_ja; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_g; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_cd; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_k; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_d; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_hw; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_i; /* '/Cond_prev_private ' */ + bool DelayInput1_DSTATE; /* '/Delay Input1' */ + bool DelayInput1_DSTATE_m; /* '/Delay Input1' */ + bool DelayInput1_DSTATE_i; /* '/Delay Input1' */ + bool DelayInput1_DSTATE_n; /* '/Delay Input1' */ + bool DelayInput1_DSTATE_my; /* '/Delay Input1' */ + bool DelayInput1_DSTATE_a; /* '/Delay Input1' */ + bool DelayInput1_DSTATE_o; /* '/Delay Input1' */ + bool DelayInput1_DSTATE_od; /* '/Delay Input1' */ + bool DelayInput1_DSTATE_j; /* '/Delay Input1' */ + bool DelayInput1_DSTATE_f; /* '/Delay Input1' */ + bool DelayInput1_DSTATE_k; /* '/Delay Input1' */ + int8_t Integrator_PrevResetState; /* '/Integrator' */ + int8_t Filter_PrevResetState; /* '/Filter' */ + int8_t stepSig_private; /* '/Data Store Memory' */ + int8_t stepHoming_private; /* '/Data Store Memory17' */ + int8_t stepSig_private_h; /* '/Data Store Memory' */ + int8_t stepHoming_private_f; /* '/Data Store Memory17' */ + int8_t stepSig_private_g; /* '/Data Store Memory' */ + int8_t stepHoming_private_a; /* '/Data Store Memory17' */ + int8_t Integrator_PrevResetState_c; /* '/Integrator' */ + int8_t Filter_PrevResetState_h; /* '/Filter' */ + int8_t Integrator_PrevResetState_d; /* '/Integrator' */ + int8_t Filter_PrevResetState_l; /* '/Filter' */ + int8_t Integrator_PrevResetState_ch; /* '/Integrator' */ + int8_t Filter_PrevResetState_j; /* '/Filter' */ + int8_t Integrator_PrevResetState_n; /* '/Integrator' */ + int8_t Filter_PrevResetState_f; /* '/Filter' */ + int8_t Integrator_PrevResetState_e; /* '/Integrator' */ + int8_t Filter_PrevResetState_p; /* '/Filter' */ + int8_t Integrator_PrevResetState_o; /* '/Integrator' */ + int8_t Filter_PrevResetState_i; /* '/Filter' */ int8_t step_start_controle_front; /* '/Data Store Memory231' */ int8_t step_start_controle_rear; /* '/Data Store Memory232' */ - int8_t start_control_finished_front; /* '/SC Front' */ - uint8_t PrevY; /* '/Rate Limiter' */ - uint8_t ErrorCalibration_private[9]; /* '/Data Store Memory1' */ - uint8_t Speed_private[9]; /* '/Data Store Memory11' */ - uint8_t Coils_private[9]; /* '/Data Store Memory16' */ - uint8_t ErrorActuator[9]; /* '/Data Store Memory18' */ - uint8_t BUS_ADR_private[9]; /* '/Data Store Memory4' */ - uint8_t MODE_private[9]; /* '/Data Store Memory5' */ - uint8_t COM_private[9]; /* '/Data Store Memory6' */ - uint8_t Stall_private[9]; /* '/Data Store Memory7' */ - uint8_t Lnoise_private[9]; /* '/Data Store Memory8' */ - uint8_t Autos_private[9]; /* '/Data Store Memory9' */ - uint8_t ErrorCalibration_private_p[9];/* '/Data Store Memory1' */ - uint8_t Speed_private_j[9]; /* '/Data Store Memory11' */ - uint8_t Coils_private_c[9]; /* '/Data Store Memory16' */ - uint8_t ErrorActuator_o[9]; /* '/Data Store Memory18' */ - uint8_t BUS_ADR_private_j[9]; /* '/Data Store Memory4' */ - uint8_t MODE_private_b[9]; /* '/Data Store Memory5' */ - uint8_t COM_private_g[9]; /* '/Data Store Memory6' */ - uint8_t Stall_private_l[9]; /* '/Data Store Memory7' */ - uint8_t Lnoise_private_n[9]; /* '/Data Store Memory8' */ - uint8_t Autos_private_n[9]; /* '/Data Store Memory9' */ - uint8_t ErrorCalibration_private_b[9];/* '/Data Store Memory1' */ - uint8_t Speed_private_b[9]; /* '/Data Store Memory11' */ - uint8_t Coils_private_l[9]; /* '/Data Store Memory16' */ - uint8_t ErrorActuator_a[9]; /* '/Data Store Memory18' */ - uint8_t BUS_ADR_private_a[9]; /* '/Data Store Memory4' */ - uint8_t MODE_private_c[9]; /* '/Data Store Memory5' */ - uint8_t COM_private_k[9]; /* '/Data Store Memory6' */ - uint8_t Stall_private_f[9]; /* '/Data Store Memory7' */ - uint8_t Lnoise_private_g[9]; /* '/Data Store Memory8' */ - uint8_t Autos_private_g[9]; /* '/Data Store Memory9' */ + int8_t Valve_individual_foot_FL; /* '/Data Store Memory300' */ + int8_t Valve_individual_foot_FR; /* '/Data Store Memory301' */ + uint8_t PrevY; /* '/Rate Limiter' */ + uint8_t ErrorCalibration_private[9]; /* '/Data Store Memory1' */ + uint8_t Speed_private[9]; /* '/Data Store Memory11' */ + uint8_t Coils_private[9]; /* '/Data Store Memory16' */ + uint8_t ErrorActuator[9]; /* '/Data Store Memory18' */ + uint8_t BUS_ADR_private[9]; /* '/Data Store Memory4' */ + uint8_t MODE_private[9]; /* '/Data Store Memory5' */ + uint8_t COM_private[9]; /* '/Data Store Memory6' */ + uint8_t Stall_private[9]; /* '/Data Store Memory7' */ + uint8_t Lnoise_private[9]; /* '/Data Store Memory8' */ + uint8_t Autos_private[9]; /* '/Data Store Memory9' */ + uint8_t ErrorCalibration_private_p[9];/* '/Data Store Memory1' */ + uint8_t Speed_private_j[9]; /* '/Data Store Memory11' */ + uint8_t Coils_private_c[9]; /* '/Data Store Memory16' */ + uint8_t ErrorActuator_o[9]; /* '/Data Store Memory18' */ + uint8_t BUS_ADR_private_j[9]; /* '/Data Store Memory4' */ + uint8_t MODE_private_b[9]; /* '/Data Store Memory5' */ + uint8_t COM_private_g[9]; /* '/Data Store Memory6' */ + uint8_t Stall_private_l[9]; /* '/Data Store Memory7' */ + uint8_t Lnoise_private_n[9]; /* '/Data Store Memory8' */ + uint8_t Autos_private_n[9]; /* '/Data Store Memory9' */ + uint8_t ErrorCalibration_private_b[9];/* '/Data Store Memory1' */ + uint8_t Speed_private_b[9]; /* '/Data Store Memory11' */ + uint8_t Coils_private_l[9]; /* '/Data Store Memory16' */ + uint8_t ErrorActuator_a[9]; /* '/Data Store Memory18' */ + uint8_t BUS_ADR_private_a[9]; /* '/Data Store Memory4' */ + uint8_t MODE_private_c[9]; /* '/Data Store Memory5' */ + uint8_t COM_private_k[9]; /* '/Data Store Memory6' */ + uint8_t Stall_private_f[9]; /* '/Data Store Memory7' */ + uint8_t Lnoise_private_g[9]; /* '/Data Store Memory8' */ + uint8_t Autos_private_g[9]; /* '/Data Store Memory9' */ uint8_t eCompChiller_Req; /* '/Can_Chiller' */ uint8_t CCU_ActuatorErrF_Stat_private;/* '/Data Store Memory' */ uint8_t dtc_state_error_model[127]; /* '/Data Store Memory1' */ - uint8_t CCU_FRONT_SYNC; /* '/Data Store Memory101' */ uint8_t CCU_MODE_RL; /* '/Data Store Memory108' */ uint8_t CCU_FACE_RL; /* '/Data Store Memory110' */ uint8_t CCU_FOOT_RL; /* '/Data Store Memory111' */ @@ -417,10 +379,8 @@ typedef struct { uint8_t CCU_BLOWERS_RR; /* '/Data Store Memory118' */ uint8_t CCU_AUTOMODE_RR; /* '/Data Store Memory119' */ uint8_t CCU_AC_REAR; /* '/Data Store Memory122' */ - uint8_t CCU_REAR_SYNC; /* '/Data Store Memory125' */ uint8_t PWM_rear; /* '/Data Store Memory132' */ uint8_t PWM_front; /* '/Data Store Memory135' */ - uint8_t CCU_ALL_ZONE_SYNC; /* '/Data Store Memory155' */ uint8_t SW5V_EN; /* '/Data Store Memory160' */ uint8_t PBATT_CK_EN; /* '/Data Store Memory161' */ uint8_t Incar_Motor_Front_EN; /* '/Data Store Memory162' */ @@ -454,19 +414,21 @@ typedef struct { uint8_t Full_Rec; /* '/Data Store Memory216' */ uint8_t LO_HI_MODE_FR; /* '/Data Store Memory217' */ uint8_t LO_HI_MODE_RR; /* '/Data Store Memory218' */ + uint8_t Mode_FR; /* '/Data Store Memory22' */ uint8_t LO_HI_MODE_FL; /* '/Data Store Memory223' */ uint8_t LO_HI_MODE_RL; /* '/Data Store Memory224' */ uint8_t CAN_LoHi_Front; /* '/Data Store Memory228' */ uint8_t Mode_FL; /* '/Data Store Memory23' */ - uint8_t Dtg_FUL; /* '/Data Store Memory31' */ - uint8_t Dtg_FLL; /* '/Data Store Memory34' */ - uint8_t Mode_logic_FL; /* '/Data Store Memory39' */ - uint8_t Dtg_logic_FLL; /* '/Data Store Memory41' */ - uint8_t Dtg_logic_FUL; /* '/Data Store Memory47' */ + uint8_t Index_mode_FL_manual; /* '/Data Store Memory258' */ + uint8_t Blower_FR; /* '/Data Store Memory26' */ + uint8_t Index_mode_RL_manual; /* '/Data Store Memory260' */ + uint8_t Index_mode_RR_manual; /* '/Data Store Memory261' */ + uint8_t Blower_FL; /* '/Data Store Memory27' */ + uint8_t ModeIndex[4]; /* '/Data Store Memory304' */ + uint8_t Blower_RR; /* '/Data Store Memory32' */ + uint8_t Blower_RL; /* '/Data Store Memory49' */ uint8_t Mode_RR; /* '/Data Store Memory50' */ - uint8_t Dtg_RR; /* '/Data Store Memory52' */ - uint8_t Mode_logic_RR; /* '/Data Store Memory54' */ - uint8_t Dtg_logic_RR; /* '/Data Store Memory58' */ + uint8_t Mode_RL; /* '/Data Store Memory51' */ uint8_t CCU_ActuatorErrR_Stat_private;/* '/Data Store Memory67' */ uint8_t CCU_MODE_FL; /* '/Data Store Memory78' */ uint8_t CCU_DEF_FL; /* '/Data Store Memory84' */ @@ -485,9 +447,13 @@ typedef struct { uint8_t is_active_c618_HVAC_model; /* '/Synchronization stateflow chart' */ uint8_t is_c618_HVAC_model; /* '/Synchronization stateflow chart' */ - uint8_t is_running; /* '/MATLAB Function1' */ + uint8_t is_running; /* '/MATLAB Function1' */ uint8_t is_active_c836_HVAC_model; /* '/Full_Rec_Active' */ uint8_t is_c836_HVAC_model; /* '/Full_Rec_Active' */ + uint8_t is_active_c837_HVAC_model; /* '/Defrost_Active' */ + uint8_t is_c837_HVAC_model; /* '/Defrost_Active' */ + uint8_t is_active_c782_HVAC_model; /* '/AC_Max_Active' */ + uint8_t is_c782_HVAC_model; /* '/AC_Max_Active' */ uint8_t is_active_c621_HVAC_model; /* '/A//C Control' */ uint8_t is_PRESSURE_MONITOR; /* '/A//C Control' */ uint8_t is_FRONT_CONTOUR; /* '/A//C Control' */ @@ -504,46 +470,33 @@ typedef struct { uint8_t is_active_c775_HVAC_model; /* '/13,1,3,15 Valve control' */ uint8_t is_ThreeWay_Logic; /* '/13,1,3,15 Valve control' */ uint8_t is_TwoWay_Logic; /* '/13,1,3,15 Valve control' */ - uint8_t current_Ambient_Lv; /* '/Log Ambient Lv' */ - bool eCompChiller_Err; /* '/Can_Chiller1' */ - bool HI_logic_on; /* '/Data Store Memory48' */ - bool t_start_not_empty; /* '/MATLAB Function1' */ + uint8_t current_Ambient_Lv; /* '/Log Ambient Lv' */ + bool t_start_not_empty; /* '/MATLAB Function1' */ bool Pressure_Condition_table_OK; /* '/A//C Control' */ bool Chiller_Start_request; /* '/A//C Control' */ bool Pressure_Hi_Fault; /* '/A//C Control' */ bool FRONT_Start_request; /* '/A//C Control' */ bool REAR_Start_request; /* '/A//C Control' */ - bool current_Ambient_Lv_not_empty; /* '/Log Ambient Lv' */ - DW_MATLABFunction sf_MATLABFunction_g;/* '/MATLAB Function' */ - DW_MATLABFunction sf_MATLABFunction_hk;/* '/MATLAB Function' */ - DW_MATLABFunction sf_MATLABFunction_h;/* '/MATLAB Function' */ + bool current_Ambient_Lv_not_empty; /* '/Log Ambient Lv' */ + DW_MATLABFunction sf_MATLABFunction_g;/* '/MATLAB Function' */ + DW_MATLABFunction sf_MATLABFunction_hk;/* '/MATLAB Function' */ + DW_MATLABFunction sf_MATLABFunction_h;/* '/MATLAB Function' */ DW_Zone_Climate_Logic_Auto_FL1 sf_Zone_Climate_Logic_Auto_FL4;/* '/Zone_Climate_Logic_Auto_FL4' */ DW_Zone_Climate_Logic_Auto_FL2 sf_Zone_Climate_Logic_Auto_FL3;/* '/Zone_Climate_Logic_Auto_FL3' */ DW_Zone_Climate_Logic_Auto_FL2 sf_Zone_Climate_Logic_Auto_FL2;/* '/Zone_Climate_Logic_Auto_FL2' */ DW_Zone_Climate_Logic_Auto_FL1 sf_Zone_Climate_Logic_Auto_FL1;/* '/Zone_Climate_Logic_Auto_FL1' */ - DW_Level3_j Level5_cf; /* '/Level 5' */ - DW_Level3_j Level4_d; /* '/Level 4' */ - DW_Level3_j Level3_jn; /* '/Level 3' */ - DW_Level4_oa Level5_f; /* '/Level 5' */ - DW_Level4_oa Level4_ns; /* '/Level 4' */ - DW_Level0_f Level1_f; /* '/Level 1' */ - DW_Level0_f Level0_o3; /* '/Level 0' */ - DW_Level3 Level4_k; /* '/Level 4' */ - DW_Level3 Level3_f; /* '/Level 3' */ - DW_Level4_o Level5_b; /* '/Level 5' */ - DW_Level4_o Level4_hv; /* '/Level 4' */ } DW; -/* Invariant block signals for system '/If Action Subsystem1' */ +/* Invariant block signals for system '/If Action Subsystem1' */ typedef struct { - const uint8_t DataTypeConversion[9]; /* '/Data Type Conversion' */ -} ConstB_IfActionSubsystem1; + const uint8_t DataTypeConversion[9]; /* '/Data Type Conversion' */ +} ConstB_IfActionSubsystem1_j; /* Invariant block signals (default storage) */ typedef struct { - ConstB_IfActionSubsystem1 IfActionSubsystem1_fn;/* '/If Action Subsystem1' */ - ConstB_IfActionSubsystem1 IfActionSubsystem1_c;/* '/If Action Subsystem1' */ - ConstB_IfActionSubsystem1 IfActionSubsystem1_h;/* '/If Action Subsystem1' */ + ConstB_IfActionSubsystem1_j IfActionSubsystem1_fn;/* '/If Action Subsystem1' */ + ConstB_IfActionSubsystem1_j IfActionSubsystem1_c;/* '/If Action Subsystem1' */ + ConstB_IfActionSubsystem1_j IfActionSubsystem1_hm;/* '/If Action Subsystem1' */ } ConstB; /* Constant parameters (default storage) */ @@ -556,222 +509,332 @@ typedef struct { /* Pooled Parameter (Expression: [850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 836 818 800 784 769 754 740 727 714 702 691 680 670 659 650 640 631 622 614 606 598 590 583 575 568 561 555 548 542 536 530 524 518 512 507 501 496 491 486 481 476 471 466 462 457 453 448 444 440 436 431 427 423 420 416 412 408 405 401 397 394 390 387 384 380 377 374 370 367 364 361 358 355 352 349 346 343 340 338 335 332 329 327 324 321 319 316 314 311 309 306 304 301 299 297 294 292 289 287 285 283 280 278 276 274 272 269 267 265 263 261 259 257 255 253 251 249 247 245 243 241 239 237 235 234 232 230 228 226 224 223 221 219 217 216 214 212 210 209 207 205 204 202 200 199 197 195 194 192 191 189 187 186 184 183 181 180 178 177 175 174 172 171 169 168 166 165 163 162 161 159 158 156 155 153 152 151 149 148 147 145 144 143 141 140 139 137 136 135 133 132 131 129 128 127 126 124 123 122 121 119 118 117 116 115 113 112 111 110 109 107 106 105 104 103 101 100 99 98 97 96 95 93 92 91 90 89 88 87 86 84 83 82 81 80 79 78 77 76 75 74 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 29 28 27 26 25 24 23 22 21 20 19 18 17 17 16 15 14 13 12 11 10 9 8 8 7 6 5 4 3 2 1 0 0 0 -1 -2 -3 -4 -5 -5 -6 -7 -8 -9 -10 -11 -11 -12 -13 -14 -15 -16 -17 -17 -18 -19 -20 -21 -22 -22 -23 -24 -25 -26 -27 -27 -28 -29 -30 -31 -31 -32 -33 -34 -35 -36 -36 -37 -38 -39 -40 -40 -41 -42 -43 -44 -44 -45 -46 -47 -47 -48 -49 -50 -51 -51 -52 -53 -54 -55 -55 -56 -57 -58 -58 -59 -60 -61 -62 -62 -63 -64 -65 -65 -66 -67 -68 -68 -69 -70 -71 -71 -72 -73 -74 -74 -75 -76 -77 -77 -78 -79 -80 -80 -81 -82 -83 -83 -84 -85 -86 -86 -87 -88 -89 -89 -90 -91 -92 -92 -93 -94 -95 -95 -96 -97 -97 -98 -99 -100 -100 -101 -102 -103 -103 -104 -105 -105 -106 -107 -108 -108 -109 -110 -111 -111 -112 -113 -113 -114 -115 -116 -116 -117 -118 -118 -119 -120 -121 -121 -122 -123 -123 -124 -125 -126 -126 -127 -128 -128 -129 -130 -131 -131 -132 -133 -133 -134 -135 -136 -136 -137 -138 -138 -139 -140 -140 -141 -142 -143 -143 -144 -145 -145 -146 -147 -148 -148 -149 -150 -150 -151 -152 -152 -153 -154 -155 -155 -156 -157 -157 -158 -159 -159 -160 -161 -162 -162 -163 -164 -164 -165 -166 -166 -167 -168 -169 -169 -170 -171 -171 -172 -173 -173 -174 -175 -176 -176 -177 -178 -178 -179 -180 -180 -181 -182 -183 -183 -184 -185 -185 -186 -187 -187 -188 -189 -189 -190 -191 -192 -192 -193 -194 -194 -195 -196 -196 -197 -198 -199 -199 -200 -201 -201 -202 -203 -204 -204 -205 -206 -206 -207 -208 -208 -209 -210 -211 -211 -212 -213 -213 -214 -215 -216 -216 -217 -218 -218 -219 -220 -221 -221 -222 -223 -223 -224 -225 -226 -226 -227 -228 -228 -229 -230 -231 -231 -232 -233 -233 -234 -235 -236 -236 -237 -238 -238 -239 -240 -241 -241 -242 -243 -244 -244 -245 -246 -246 -247 -248 -249 -249 -250 -251 -252 -252 -253 -254 -255 -255 -256 -257 -257 -258 -259 -260 -260 -261 -262 -263 -263 -264 -265 -266 -266 -267 -268 -269 -269 -270 -271 -272 -272 -273 -274 -275 -275 -276 -277 -278 -279 -279 -280 -281 -282 -282 -283 -284 -285 -285 -286 -287 -288 -289 -289 -290 -291 -292 -292 -293 -294 -295 -296 -296 -297 -298 -299 -300 -300 -301 -302 -303 -304 -304 -305 -306 -307 -308 -308 -309 -310 -311 -312 -313 -313 -314 -315 -316 -317 -318 -318 -319 -320 -321 -322 -323 -323 -324 -325 -326 -327 -328 -329 -329 -330 -331 -332 -333 -334 -335 -335 -336 -337 -338 -339 -340 -341 -342 -342 -343 -344 -345 -346 -347 -348 -349 -350 -351 -351 -352 -353 -354 -355 -356 -357 -358 -359 -360 -361 -362 -363 -364 -364 -365 -366 -367 -368 -369 -370 -371 -372 -373 -374 -375 -376 -377 -378 -379 -380 -381 -382 -383 -384 -385 -386 -387 -388 -389 -390 -391 -392 -393 -394 -395 -396 -398 -399 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 ]) * Referenced by: - * '/1-D Lookup Table' - * '/1-D Lookup Table' + * '/1-D Lookup Table' + * '/1-D Lookup Table' */ - double pooled8[1024]; + double pooled3[1024]; /* Expression: [zeros(1, 85), linspace(0.268534, 390.3364, 1024-85)] - * Referenced by: '/1-D Lookup Table' + * Referenced by: '/1-D Lookup Table' */ double uDLookupTable_tableData[1024]; /* Pooled Parameter (Expression: Incar_Temp_Table) * Referenced by: - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' + * '/1-D Lookup Table2' + * '/1-D Lookup Table4' + * '/1-D Lookup Table1' + * '/1-D Lookup Table3' */ - double pooled9[1024]; + double pooled34[1024]; /* Pooled Parameter (Expression: [17 18 19 20 21 22 23 24 25 26 27 28 29]) * Referenced by: - * '/Выбор режима Left' - * '/Выбор режима Right' + * '/Выбор режима Left' + * '/Выбор режима Right' */ - uint32_t pooled49[2]; + uint32_t pooled43[2]; /* Pooled Parameter (Expression: [170:10:290]) * Referenced by: - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' */ - int16_t pooled51[13]; + int16_t pooled45[13]; /* Pooled Parameter (Expression: [5, 4, 3, 2, 1, 0]) * Referenced by: - * '/1-D Lookup Table' - * '/Get LVL for temp' + * '/1-D Lookup Table' + * '/Get LVL for temp' */ - int16_t pooled52[6]; + int16_t pooled46[6]; /* Computed Parameter: GetLVLfortemp_bp01Data - * Referenced by: '/Get LVL for temp' + * Referenced by: '/Get LVL for temp' */ int16_t GetLVLfortemp_bp01Data[6]; /* Pooled Parameter (Expression: [0;1;2;3;4;5]) * Referenced by: - * '/Выбор режима Left' - * '/Выбор режима Right' + * '/Выбор режима Left' + * '/Выбор режима Right' */ - int16_t pooled60[13]; + int16_t pooled54[13]; /* Pooled Parameter (Expression: [850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 848 845 841 838 834 831 827 824 821 818 814 811 808 805 802 799 796 793 790 787 784 781 778 775 772 769 767 764 761 758 756 753 750 748 745 742 740 737 735 732 730 727 725 722 720 717 715 713 710 708 706 703 701 699 696 694 692 690 688 685 683 681 679 677 675 673 670 668 666 664 662 660 658 656 654 652 650 648 646 644 642 640 638 637 635 633 631 629 627 625 624 622 620 618 616 614 613 611 609 607 606 604 602 600 599 597 595 594 592 590 589 587 585 584 582 580 579 577 576 574 572 571 569 568 566 564 563 561 560 558 557 555 554 552 551 549 548 546 545 543 542 540 539 537 536 534 533 532 530 529 527 526 524 523 522 520 519 517 516 515 513 512 511 509 508 507 505 504 503 501 500 499 497 496 495 493 492 491 489 488 487 485 484 483 482 480 479 478 477 475 474 473 472 470 469 468 467 465 464 463 462 460 459 458 457 456 454 453 452 451 450 448 447 446 445 444 442 441 440 439 438 437 435 434 433 432 431 430 429 427 426 425 424 423 422 421 420 418 417 416 415 414 413 412 411 410 408 407 406 405 404 403 402 401 400 399 398 396 395 394 393 392 391 390 389 388 387 386 385 384 383 382 381 380 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 324 323 322 321 320 319 318 317 316 315 314 313 312 311 310 309 308 307 306 305 305 304 303 302 301 300 299 298 297 296 295 294 293 292 291 291 290 289 288 287 286 285 284 283 282 281 280 279 279 278 277 276 275 274 273 272 271 270 269 268 268 267 266 265 264 263 262 261 260 259 259 258 257 256 255 254 253 252 251 250 250 249 248 247 246 245 244 243 242 241 241 240 239 238 237 236 235 234 233 233 232 231 230 229 228 227 226 225 224 224 223 222 221 220 219 218 217 217 216 215 214 213 212 211 210 209 209 208 207 206 205 204 203 202 201 201 200 199 198 197 196 195 194 194 193 192 191 190 189 188 187 186 186 185 184 183 182 181 180 179 179 178 177 176 175 174 173 172 171 171 170 169 168 167 166 165 164 163 163 162 161 160 159 158 157 156 155 155 154 153 152 151 150 149 148 147 147 146 145 144 143 142 141 140 139 139 138 137 136 135 134 133 132 131 130 130 129 128 127 126 125 124 123 122 121 121 120 119 118 117 116 115 114 113 112 112 111 110 109 108 107 106 105 104 103 102 101 101 100 99 98 97 96 95 94 93 92 91 90 89 88 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 3 2 1 0 0 -1 -2 -3 -4 -5 -6 -7 -9 -10 -11 -12 -13 -14 -15 -16 -17 -19 -20 -21 -22 -23 -24 -25 -26 -28 -29 -30 -31 -32 -33 -34 -36 -37 -38 -39 -40 -42 -43 -44 -45 -46 -47 -49 -50 -51 -52 -54 -55 -56 -57 -58 -60 -61 -62 -63 -65 -66 -67 -68 -70 -71 -72 -74 -75 -76 -77 -79 -80 -81 -83 -84 -85 -87 -88 -89 -91 -92 -93 -95 -96 -98 -99 -100 -102 -103 -105 -106 -108 -109 -110 -112 -113 -115 -116 -118 -119 -121 -122 -124 -125 -127 -128 -130 -131 -133 -134 -136 -138 -139 -141 -142 -144 -146 -147 -149 -151 -152 -154 -156 -157 -159 -161 -162 -164 -166 -168 -169 -171 -173 -175 -177 -179 -180 -182 -184 -186 -188 -190 -192 -194 -196 -198 -200 -202 -204 -206 -208 -210 -212 -214 -216 -218 -221 -223 -225 -227 -229 -232 -234 -236 -239 -241 -243 -246 -248 -251 -253 -256 -258 -261 -264 -266 -269 -272 -275 -277 -280 -283 -286 -289 -292 -295 -298 -301 -304 -308 -311 -314 -318 -321 -325 -328 -332 -336 -339 -343 -347 -351 -355 -359 -364 -368 -373 -377 -382 -387 -392 -397 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400]) * Referenced by: - * '/1-D Lookup Table7' - * '/1-D Lookup Table4' + * '/1-D Lookup Table7' + * '/1-D Lookup Table4' */ - int16_t pooled61[1024]; + int16_t pooled55[1024]; /* Pooled Parameter (Expression: [0:4:4095]) * Referenced by: - * '/1-D Lookup Table7' - * '/1-D Lookup Table4' + * '/1-D Lookup Table7' + * '/1-D Lookup Table4' */ - int16_t pooled62[1024]; + int16_t pooled56[1024]; /* Computed Parameter: DataStoreMemory13_InitialValue - * Referenced by: '/Data Store Memory13' + * Referenced by: '/Data Store Memory13' */ int16_t DataStoreMemory13_InitialValue[9]; /* Computed Parameter: DataStoreMemory13_InitialValue_i - * Referenced by: '/Data Store Memory13' + * Referenced by: '/Data Store Memory13' */ int16_t DataStoreMemory13_InitialValue_i[9]; /* Computed Parameter: DataStoreMemory13_InitialValue_l - * Referenced by: '/Data Store Memory13' + * Referenced by: '/Data Store Memory13' */ int16_t DataStoreMemory13_InitialValue_l[9]; /* Pooled Parameter (Expression: [170:10:290]) * Referenced by: - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table10' - * '/1-D Lookup Table11' - * '/1-D Lookup Table6' - * '/1-D Lookup Table7' - * '/1-D Lookup Table8' - * '/1-D Lookup Table9' - * '/1-D Lookup Table10' - * '/1-D Lookup Table11' - * '/1-D Lookup Table6' - * '/1-D Lookup Table7' - * '/1-D Lookup Table8' - * '/1-D Lookup Table9' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table10' + * '/1-D Lookup Table11' + * '/1-D Lookup Table6' + * '/1-D Lookup Table7' + * '/1-D Lookup Table8' + * '/1-D Lookup Table9' + * '/1-D Lookup Table10' + * '/1-D Lookup Table11' + * '/1-D Lookup Table6' + * '/1-D Lookup Table7' + * '/1-D Lookup Table8' + * '/1-D Lookup Table9' + * '/1-D Lookup Table10' + * '/1-D Lookup Table11' + * '/1-D Lookup Table6' + * '/1-D Lookup Table7' + * '/1-D Lookup Table8' + * '/1-D Lookup Table9' + * '/1-D Lookup Table1' + * '/1-D Lookup Table12' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' */ - uint16_t pooled72[13]; + uint16_t pooled63[13]; /* Pooled Parameter (Expression: [0:4:4092]) * Referenced by: - * '/1-D Lookup Table' - * '/1-D Lookup Table' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table4' + * '/1-D Lookup Table1' + * '/1-D Lookup Table3' */ - uint16_t pooled73[1024]; + uint16_t pooled64[1024]; /* Computed Parameter: uDLookupTable1_bp01Data - * Referenced by: '/1-D Lookup Table1' + * Referenced by: '/1-D Lookup Table1' */ uint16_t uDLookupTable1_bp01Data[2]; /* Computed Parameter: ACT1_Value - * Referenced by: '/ACT1' + * Referenced by: '/ACT1' */ uint16_t ACT1_Value[9]; /* Computed Parameter: ACT1_Value_c - * Referenced by: '/ACT1' + * Referenced by: '/ACT1' */ uint16_t ACT1_Value_c[6]; /* Computed Parameter: ACT1_Value_m - * Referenced by: '/ACT1' + * Referenced by: '/ACT1' */ uint16_t ACT1_Value_m[8]; + /* Pooled Parameter (Expression: [10:10:110]) + * Referenced by: + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + */ + uint8_t pooled91[11]; + /* Pooled Parameter (Expression: [1 2 3 4 5 6 7 8 9]) * Referenced by: - * '/Constant3' - * '/Constant5' - * '/Constant5' - * '/Constant5' - * '/Constant5' - * '/Constant5' - * '/Constant5' + * '/Constant3' + * '/Constant5' + * '/Constant5' + * '/Constant5' + * '/Constant5' + * '/Constant5' + * '/Constant5' */ - uint8_t pooled106[9]; + uint8_t pooled95[9]; /* Computed Parameter: Constant3_Value - * Referenced by: '/Constant3' + * Referenced by: '/Constant3' */ uint8_t Constant3_Value[6]; /* Computed Parameter: Constant3_Value_d - * Referenced by: '/Constant3' + * Referenced by: '/Constant3' */ uint8_t Constant3_Value_d[8]; /* Pooled Parameter (Expression: ) * Referenced by: - * '/Выбор режима Left' - * '/Выбор режима Right' + * '/Выбор режима Left' + * '/Выбор режима Right' */ - uint8_t pooled112[6]; + uint8_t pooled109[6]; + + /* Pooled Parameter (Expression: [0:6]) + * Referenced by: + * '/1-D Lookup Table' + * '/1-D Lookup Table' + * '/1-D Lookup Table' + * '/1-D Lookup Table' + */ + uint8_t pooled110[7]; } ConstP; /* External outputs (root outports fed by signals with default storage) */ @@ -801,6 +864,14 @@ typedef struct { CCU_Msg1_Bus CCU_Msg1_model; /* '/CCU_Msg1_model' */ dbg_Auto_Duct_Bus dbgCAN_Auto_Duct_model;/* '/dbgCAN_Auto_Duct_model' */ dbg_Auto_AF_Bus dbgCAN_Auto_AF_model;/* '/dbgCAN_Auto_AF_model' */ + LIN4_CCU_Req_Bus LIN4_CCU_Req_Model; /* '/LIN4_CCU_Req_Model' */ + dbg_Logic_Valve_Bus dbg_Logic_Valve_model;/* '/dbg_Logic_Valve_model' */ + ActuatorCmdBus Actuator_Ch0_Command_Model_g;/* '/Actuator_Ch0_Command_Model' */ + ActuatorCmdBus Actuator_Ch1_Command_Model_e;/* '/Actuator_Ch1_Command_Model' */ + ActuatorCmdBus Actuator_Ch2_Command_Model_o;/* '/Actuator_Ch2_Command_Model' */ + dbg_LIN_AirQS_Stat_t_Bus dbg_LIN_AirQS_Stat_t_model;/* '/dbg_LIN_AirQS_Stat_t_model' */ + dbg_LIN_DRS_Stat_t_Bus dbg_LIN_DRS_Stat_t_model;/* '/dbg_LIN_DRS_Stat_t_model' */ + dbg_Drs_t_Bus dbg_Drs_t_model; /* '/dbg_Drs_t_model' */ } ExtY; /* Real-time Model Data Structure */ @@ -836,9 +907,9 @@ extern const ConstP rtConstP; * states and exports their symbols. * */ -extern ActuatorCmdBus Actuator_Ch0_Command_Model;/* '/Data Store Memory15' */ -extern ActuatorCmdBus Actuator_Ch1_Command_Model;/* '/Data Store Memory15' */ -extern ActuatorCmdBus Actuator_Ch2_Command_Model;/* '/Data Store Memory15' */ +extern ActuatorCmdBus Actuator_Ch0_Command_Model;/* '/Data Store Memory272' */ +extern ActuatorCmdBus Actuator_Ch1_Command_Model;/* '/Data Store Memory273' */ +extern ActuatorCmdBus Actuator_Ch2_Command_Model;/* '/Data Store Memory274' */ extern ActuatorCmdBusInput Actuator_Ch0_Status_Model;/* '/Data Store Memory61' */ extern ActuatorCmdBusInput Actuator_Ch1_Status_Model;/* '/Data Store Memory62' */ extern ActuatorCmdBusInput Actuator_Ch2_Status_Model;/* '/Data Store Memory63' */ @@ -857,57 +928,43 @@ extern RT_MODEL *const rtM; /*- * These blocks were eliminated from the model due to optimizations: * - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Scope' : Unused code path elimination - * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination * Block '/Display1' : Unused code path elimination * Block '/Display2' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Gain1' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display15' : Unused code path elimination - * Block '/Display16' : Unused code path elimination - * Block '/Display18' : Unused code path elimination - * Block '/Display19' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display1' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Scope' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Gain1' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination * Block '/Display10' : Unused code path elimination * Block '/Display11' : Unused code path elimination * Block '/Display12' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display15' : Unused code path elimination + * Block '/Display16' : Unused code path elimination + * Block '/Display18' : Unused code path elimination + * Block '/Display19' : Unused code path elimination * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination * Block '/Display1' : Unused code path elimination * Block '/Display10' : Unused code path elimination * Block '/Display11' : Unused code path elimination @@ -920,49 +977,49 @@ extern RT_MODEL *const rtM; * Block '/Display7' : Unused code path elimination * Block '/Display8' : Unused code path elimination * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display15' : Unused code path elimination - * Block '/Display16' : Unused code path elimination - * Block '/Display18' : Unused code path elimination - * Block '/Display19' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display1' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination * Block '/Display10' : Unused code path elimination * Block '/Display11' : Unused code path elimination * Block '/Display12' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display15' : Unused code path elimination + * Block '/Display16' : Unused code path elimination + * Block '/Display18' : Unused code path elimination + * Block '/Display19' : Unused code path elimination * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination * Block '/Display1' : Unused code path elimination * Block '/Display10' : Unused code path elimination * Block '/Display11' : Unused code path elimination @@ -975,137 +1032,137 @@ extern RT_MODEL *const rtM; * Block '/Display7' : Unused code path elimination * Block '/Display8' : Unused code path elimination * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display15' : Unused code path elimination - * Block '/Display16' : Unused code path elimination - * Block '/Display17' : Unused code path elimination - * Block '/Display18' : Unused code path elimination - * Block '/Display19' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination * Block '/Display1' : Unused code path elimination * Block '/Display2' : Unused code path elimination * Block '/Display3' : Unused code path elimination * Block '/Display6' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display15' : Unused code path elimination - * Block '/Display16' : Unused code path elimination - * Block '/Display17' : Unused code path elimination - * Block '/Display18' : Unused code path elimination - * Block '/Display19' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display15' : Unused code path elimination + * Block '/Display16' : Unused code path elimination + * Block '/Display17' : Unused code path elimination + * Block '/Display18' : Unused code path elimination + * Block '/Display19' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display15' : Unused code path elimination + * Block '/Display16' : Unused code path elimination + * Block '/Display17' : Unused code path elimination + * Block '/Display18' : Unused code path elimination + * Block '/Display19' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display1' : Unused code path elimination * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display15' : Unused code path elimination - * Block '/Display16' : Unused code path elimination - * Block '/Display18' : Unused code path elimination - * Block '/Display19' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display1' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination * Block '/Display10' : Unused code path elimination * Block '/Display11' : Unused code path elimination * Block '/Display12' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display15' : Unused code path elimination + * Block '/Display16' : Unused code path elimination + * Block '/Display18' : Unused code path elimination + * Block '/Display19' : Unused code path elimination * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination * Block '/Display1' : Unused code path elimination * Block '/Display10' : Unused code path elimination * Block '/Display11' : Unused code path elimination @@ -1118,49 +1175,49 @@ extern RT_MODEL *const rtM; * Block '/Display7' : Unused code path elimination * Block '/Display8' : Unused code path elimination * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display15' : Unused code path elimination - * Block '/Display16' : Unused code path elimination - * Block '/Display18' : Unused code path elimination - * Block '/Display19' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display1' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination * Block '/Display10' : Unused code path elimination * Block '/Display11' : Unused code path elimination * Block '/Display12' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display15' : Unused code path elimination + * Block '/Display16' : Unused code path elimination + * Block '/Display18' : Unused code path elimination + * Block '/Display19' : Unused code path elimination * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination * Block '/Display1' : Unused code path elimination * Block '/Display10' : Unused code path elimination * Block '/Display11' : Unused code path elimination @@ -1173,321 +1230,287 @@ extern RT_MODEL *const rtM; * Block '/Display7' : Unused code path elimination * Block '/Display8' : Unused code path elimination * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display15' : Unused code path elimination - * Block '/Display16' : Unused code path elimination - * Block '/Display17' : Unused code path elimination - * Block '/Display18' : Unused code path elimination - * Block '/Display19' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination * Block '/Display1' : Unused code path elimination * Block '/Display2' : Unused code path elimination * Block '/Display3' : Unused code path elimination * Block '/Display6' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display15' : Unused code path elimination - * Block '/Display16' : Unused code path elimination - * Block '/Display17' : Unused code path elimination - * Block '/Display18' : Unused code path elimination - * Block '/Display19' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display15' : Unused code path elimination + * Block '/Display16' : Unused code path elimination + * Block '/Display17' : Unused code path elimination + * Block '/Display18' : Unused code path elimination + * Block '/Display19' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display15' : Unused code path elimination + * Block '/Display16' : Unused code path elimination + * Block '/Display17' : Unused code path elimination + * Block '/Display18' : Unused code path elimination + * Block '/Display19' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display1' : Unused code path elimination * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/t окруж. среды' : Unused code path elimination - * Block '/Заданная t слева' : Unused code path elimination - * Block '/Заданная t справа' : Unused code path elimination - * Block '/Заслонки Left' : Unused code path elimination - * Block '/Заслонки Right' : Unused code path elimination - * Block '/Заслонки итог' : Unused code path elimination - * Block '/Режим L' : Unused code path elimination - * Block '/Режим R' : Unused code path elimination - * Block '/Уровень' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/t окруж. среды' : Unused code path elimination + * Block '/Заданная t слева' : Unused code path elimination + * Block '/Заданная t справа' : Unused code path elimination + * Block '/Заслонки Left' : Unused code path elimination + * Block '/Заслонки Right' : Unused code path elimination + * Block '/Заслонки итог' : Unused code path elimination + * Block '/Режим L' : Unused code path elimination + * Block '/Режим R' : Unused code path elimination + * Block '/Уровень' : Unused code path elimination * Block '/Constant3' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display15' : Unused code path elimination - * Block '/Display16' : Unused code path elimination - * Block '/Display17' : Unused code path elimination - * Block '/Display18' : Unused code path elimination - * Block '/Display19' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display20' : Unused code path elimination - * Block '/Display21' : Unused code path elimination - * Block '/Display22' : Unused code path elimination - * Block '/Display23' : Unused code path elimination - * Block '/Display24' : Unused code path elimination - * Block '/Display25' : Unused code path elimination - * Block '/Display26' : Unused code path elimination - * Block '/Display27' : Unused code path elimination - * Block '/Display28' : Unused code path elimination - * Block '/Display29' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display30' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Relational Operator3' : Unused code path elimination - * Block '/not LO or HI' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/step start control front' : Unused code path elimination - * Block '/step start control rear' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display15' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display15' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination * Block '/Add' : Unused code path elimination * Block '/Add1' : Unused code path elimination * Block '/Display' : Unused code path elimination @@ -1506,37 +1529,37 @@ extern RT_MODEL *const rtM; * Block '/Display7' : Unused code path elimination * Block '/Display8' : Unused code path elimination * Block '/Display9' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display15' : Unused code path elimination - * Block '/Display16' : Unused code path elimination - * Block '/Display17' : Unused code path elimination - * Block '/Display18' : Unused code path elimination - * Block '/Display19' : Unused code path elimination - * Block '/Display20' : Unused code path elimination - * Block '/Display21' : Unused code path elimination - * Block '/Display22' : Unused code path elimination - * Block '/Display23' : Unused code path elimination - * Block '/Display24' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display15' : Unused code path elimination + * Block '/Display16' : Unused code path elimination + * Block '/Display17' : Unused code path elimination + * Block '/Display18' : Unused code path elimination + * Block '/Display19' : Unused code path elimination + * Block '/Display20' : Unused code path elimination + * Block '/Display21' : Unused code path elimination + * Block '/Display22' : Unused code path elimination + * Block '/Display23' : Unused code path elimination + * Block '/Display24' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination * Block '/Gain' : Unused code path elimination * Block '/Gain1' : Unused code path elimination * Block '/Gain2' : Unused code path elimination @@ -1556,764 +1579,739 @@ extern RT_MODEL *const rtM; * Block '/t внутри авто - спереди слева' : Unused code path elimination * Block '/t внутри авто - спереди справа' : Unused code path elimination * Block '/t окр. среды' : Unused code path elimination - * Block '/ After start control system works X sec' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Constant1' : Unused code path elimination - * Block '/Constant2' : Unused code path elimination - * Block '/Data Type Conversion' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Divide' : Unused code path elimination - * Block '/Product' : Unused code path elimination - * Block '/Delay Input1' : Unused code path elimination - * Block '/FixPt Relational Operator' : Unused code path elimination - * Block '/Compare' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Subtract' : Unused code path elimination - * Block '/Switch' : Unused code path elimination - * Block '/t_start_delay_private ' : Unused code path elimination - * Block '/Relational Operator' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/LowerRelop1' : Unused code path elimination - * Block '/Switch' : Unused code path elimination - * Block '/Switch2' : Unused code path elimination - * Block '/UpperRelop' : Unused code path elimination - * Block '/Switch' : Unused code path elimination - * Block '/Unit Delay' : Unused code path elimination - * Block '/из 0.01 в 0.1 градус Цельсия' : Unused code path elimination - * Block '/из сек в мс' : Unused code path elimination - * Block '/ After start control system works X sec' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Constant1' : Unused code path elimination - * Block '/Constant2' : Unused code path elimination - * Block '/Data Type Conversion' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Divide' : Unused code path elimination - * Block '/Product' : Unused code path elimination - * Block '/Delay Input1' : Unused code path elimination - * Block '/FixPt Relational Operator' : Unused code path elimination - * Block '/Compare' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Subtract' : Unused code path elimination - * Block '/Switch' : Unused code path elimination - * Block '/t_start_delay_private ' : Unused code path elimination - * Block '/Relational Operator' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/LowerRelop1' : Unused code path elimination - * Block '/Switch' : Unused code path elimination - * Block '/Switch2' : Unused code path elimination - * Block '/UpperRelop' : Unused code path elimination - * Block '/Switch' : Unused code path elimination - * Block '/Unit Delay' : Unused code path elimination - * Block '/из 0.01 в 0.1 градус Цельсия' : Unused code path elimination - * Block '/из сек в мс' : Unused code path elimination + * Block '/ After start control system works X sec' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Constant1' : Unused code path elimination + * Block '/Constant2' : Unused code path elimination + * Block '/Data Type Conversion' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Divide' : Unused code path elimination + * Block '/Product' : Unused code path elimination + * Block '/Delay Input1' : Unused code path elimination + * Block '/FixPt Relational Operator' : Unused code path elimination + * Block '/Compare' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Subtract' : Unused code path elimination + * Block '/Switch' : Unused code path elimination + * Block '/t_start_delay_private ' : Unused code path elimination + * Block '/Relational Operator' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/LowerRelop1' : Unused code path elimination + * Block '/Switch' : Unused code path elimination + * Block '/Switch2' : Unused code path elimination + * Block '/UpperRelop' : Unused code path elimination + * Block '/Switch' : Unused code path elimination + * Block '/Unit Delay' : Unused code path elimination + * Block '/из 0.01 в 0.1 градус Цельсия' : Unused code path elimination + * Block '/из сек в мс' : Unused code path elimination + * Block '/ After start control system works X sec' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Constant1' : Unused code path elimination + * Block '/Constant2' : Unused code path elimination + * Block '/Data Type Conversion' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Divide' : Unused code path elimination + * Block '/Product' : Unused code path elimination + * Block '/Delay Input1' : Unused code path elimination + * Block '/FixPt Relational Operator' : Unused code path elimination + * Block '/Compare' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Subtract' : Unused code path elimination + * Block '/Switch' : Unused code path elimination + * Block '/t_start_delay_private ' : Unused code path elimination + * Block '/Relational Operator' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/LowerRelop1' : Unused code path elimination + * Block '/Switch' : Unused code path elimination + * Block '/Switch2' : Unused code path elimination + * Block '/UpperRelop' : Unused code path elimination + * Block '/Switch' : Unused code path elimination + * Block '/Unit Delay' : Unused code path elimination + * Block '/из 0.01 в 0.1 градус Цельсия' : Unused code path elimination + * Block '/из сек в мс' : Unused code path elimination * Block '/Датчик солнца слева' : Unused code path elimination * Block '/Датчик солнца справа' : Unused code path elimination * Block '/Слева ноги до коррекции' : Unused code path elimination + * Block '/Слева сзади' : Unused code path elimination * Block '/Слева спереди' : Unused code path elimination * Block '/Слева спереди снизу (ноги)' : Unused code path elimination * Block '/Справа ноги до коррекции' : Unused code path elimination + * Block '/Справа сзади' : Unused code path elimination * Block '/Справа спереди' : Unused code path elimination * Block '/Справа спереди снизу (ноги)' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination + * Block '/Gain1' : Unused code path elimination + * Block '/Gain2' : Unused code path elimination + * Block '/Gain3' : Unused code path elimination + * Block '/Gain4' : Unused code path elimination + * Block '/Gain5' : Unused code path elimination + * Block '/Gain6' : Unused code path elimination + * Block '/Gain7' : Unused code path elimination + * Block '/Gain8' : Unused code path elimination + * Block '/RAW t incar front left' : Unused code path elimination + * Block '/RAW t incar front right' : Unused code path elimination + * Block '/RAW t incar rear left' : Unused code path elimination + * Block '/RAW t incar rear right' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/level' : Unused code path elimination + * Block '/temp raw' : Unused code path elimination + * Block '/time passed ms' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/level' : Unused code path elimination + * Block '/temp new (C * 10)' : Unused code path elimination + * Block '/temp old' : Unused code path elimination + * Block '/temp raw' : Unused code path elimination + * Block '/time passed ms' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/level' : Unused code path elimination + * Block '/temp raw' : Unused code path elimination + * Block '/time passed ms' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/level' : Unused code path elimination + * Block '/temp new (C * 10)' : Unused code path elimination + * Block '/temp old' : Unused code path elimination + * Block '/temp raw' : Unused code path elimination + * Block '/time passed ms' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/level' : Unused code path elimination + * Block '/temp raw' : Unused code path elimination + * Block '/time passed ms' : Unused code path elimination + * Block '/AMB (C * 10)' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/level' : Unused code path elimination + * Block '/temp old' : Unused code path elimination + * Block '/temp raw' : Unused code path elimination + * Block '/time passed ms' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/level' : Unused code path elimination + * Block '/temp raw' : Unused code path elimination + * Block '/time passed ms' : Unused code path elimination + * Block '/AMB (C * 10)' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/level' : Unused code path elimination + * Block '/temp old' : Unused code path elimination + * Block '/temp raw' : Unused code path elimination + * Block '/time passed ms' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/t сзади слева' : Unused code path elimination + * Block '/t сзади справа' : Unused code path elimination + * Block '/t спереди слева' : Unused code path elimination + * Block '/t спереди справа' : Unused code path elimination + * Block '/Время в мс' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Data Type Conversion1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display15' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display16' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display24' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Vtg_FL_correct L display' : Unused code path elimination + * Block '/Vtg_FL_correct после коррекции' : Unused code path elimination + * Block '/Vtg_FR_correct после коррекции' : Unused code path elimination + * Block '/Vtg_FX_correct R display' : Unused code path elimination + * Block '/ After start control system works X sec' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Constant1' : Unused code path elimination + * Block '/Constant2' : Unused code path elimination + * Block '/Data Type Conversion' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Divide' : Unused code path elimination + * Block '/Product' : Unused code path elimination + * Block '/Delay Input1' : Unused code path elimination + * Block '/FixPt Relational Operator' : Unused code path elimination + * Block '/Compare' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Subtract' : Unused code path elimination + * Block '/Switch' : Unused code path elimination + * Block '/t_start_delay_private ' : Unused code path elimination + * Block '/Relational Operator' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/LowerRelop1' : Unused code path elimination + * Block '/Switch' : Unused code path elimination + * Block '/Switch2' : Unused code path elimination + * Block '/UpperRelop' : Unused code path elimination + * Block '/Switch' : Unused code path elimination + * Block '/Unit Delay' : Unused code path elimination + * Block '/из 0.01 в 0.1 градус Цельсия' : Unused code path elimination + * Block '/из сек в мс' : Unused code path elimination + * Block '/ After start control system works X sec' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Constant1' : Unused code path elimination + * Block '/Constant2' : Unused code path elimination + * Block '/Data Type Conversion' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Divide' : Unused code path elimination + * Block '/Product' : Unused code path elimination + * Block '/Delay Input1' : Unused code path elimination + * Block '/FixPt Relational Operator' : Unused code path elimination + * Block '/Compare' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Subtract' : Unused code path elimination + * Block '/Switch' : Unused code path elimination + * Block '/t_start_delay_private ' : Unused code path elimination + * Block '/Relational Operator' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/LowerRelop1' : Unused code path elimination + * Block '/Switch' : Unused code path elimination + * Block '/Switch2' : Unused code path elimination + * Block '/UpperRelop' : Unused code path elimination + * Block '/Switch' : Unused code path elimination + * Block '/Unit Delay' : Unused code path elimination + * Block '/из 0.01 в 0.1' : Unused code path elimination + * Block '/из сек в мс' : Unused code path elimination + * Block '/Gain' : Unused code path elimination + * Block '/Gain1' : Unused code path elimination + * Block '/Gain2' : Unused code path elimination + * Block '/Gain3' : Unused code path elimination + * Block '/Gain4' : Unused code path elimination + * Block '/Gain5' : Unused code path elimination + * Block '/Gain6' : Unused code path elimination + * Block '/Gain7' : Unused code path elimination + * Block '/Gain8' : Unused code path elimination + * Block '/LVL для t окр. среды' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display14' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Vtg_RL_correct display' : Unused code path elimination + * Block '/Vtg_RR_correct display' : Unused code path elimination + * Block '/SET водителя' : Unused code path elimination + * Block '/SET левого заднего пссажира' : Unused code path elimination + * Block '/SET пассажира' : Unused code path elimination + * Block '/SET правого заднего пссажира' : Unused code path elimination + * Block '/t внутри авто - сзади слева' : Unused code path elimination + * Block '/t внутри авто - сзади справа' : Unused code path elimination + * Block '/t внутри авто - спереди слева' : Unused code path elimination + * Block '/t внутри авто - спереди справа' : Unused code path elimination + * Block '/t окр. среды' : Unused code path elimination + * Block '/Датчик солнца слева' : Unused code path elimination + * Block '/Датчик солнца справа' : Unused code path elimination + * Block '/Constant1' : Unused code path elimination + * Block '/Data Type Conversion' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Gain' : Unused code path elimination + * Block '/Gain1' : Unused code path elimination + * Block '/Gain2' : Unused code path elimination + * Block '/t окруж. среды.' : Unused code path elimination + * Block '/t охл. жидк.' : Unused code path elimination + * Block '/Время в мс' : Unused code path elimination + * Block '/Новая t окр. среды' : Unused code path elimination + * Block '/Скорость авто' : Unused code path elimination + * Block '/AMB (C * 10)' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/lvl' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/ABM from read' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/ABM from read' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display1' : Unused code path elimination - * Block '/Gain1' : Unused code path elimination - * Block '/Gain2' : Unused code path elimination - * Block '/Gain3' : Unused code path elimination - * Block '/Gain4' : Unused code path elimination - * Block '/Gain5' : Unused code path elimination - * Block '/Gain6' : Unused code path elimination - * Block '/RAW t incar front left' : Unused code path elimination - * Block '/RAW t incar front right' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/level' : Unused code path elimination - * Block '/temp raw' : Unused code path elimination - * Block '/time passed ms' : Unused code path elimination - * Block '/AMB (C * 10)' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/level' : Unused code path elimination - * Block '/temp old' : Unused code path elimination - * Block '/temp raw' : Unused code path elimination - * Block '/time passed ms' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/level' : Unused code path elimination - * Block '/temp raw' : Unused code path elimination - * Block '/time passed ms' : Unused code path elimination - * Block '/AMB (C * 10)' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/level' : Unused code path elimination - * Block '/temp old' : Unused code path elimination - * Block '/temp raw' : Unused code path elimination - * Block '/time passed ms' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/level' : Unused code path elimination - * Block '/temp raw' : Unused code path elimination - * Block '/time passed ms' : Unused code path elimination - * Block '/AMB (C * 10)' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/level' : Unused code path elimination - * Block '/temp old' : Unused code path elimination - * Block '/temp raw' : Unused code path elimination - * Block '/time passed ms' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/level' : Unused code path elimination - * Block '/temp raw' : Unused code path elimination - * Block '/time passed ms' : Unused code path elimination - * Block '/AMB (C * 10)' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/level' : Unused code path elimination - * Block '/temp old' : Unused code path elimination - * Block '/temp raw' : Unused code path elimination - * Block '/time passed ms' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/t сзади слева' : Unused code path elimination - * Block '/t сзади справа' : Unused code path elimination - * Block '/t спереди слева' : Unused code path elimination - * Block '/t спереди справа' : Unused code path elimination - * Block '/Время в мс' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Data Type Conversion1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display15' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display16' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display24' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Vtg_FL_correct L display' : Unused code path elimination - * Block '/Vtg_FL_correct после коррекции' : Unused code path elimination - * Block '/Vtg_FR_correct после коррекции' : Unused code path elimination - * Block '/Vtg_FX_correct R display' : Unused code path elimination - * Block '/ After start control system works X sec' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Constant1' : Unused code path elimination - * Block '/Constant2' : Unused code path elimination - * Block '/Data Type Conversion' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Divide' : Unused code path elimination - * Block '/Product' : Unused code path elimination - * Block '/Delay Input1' : Unused code path elimination - * Block '/FixPt Relational Operator' : Unused code path elimination - * Block '/Compare' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Subtract' : Unused code path elimination - * Block '/Switch' : Unused code path elimination - * Block '/t_start_delay_private ' : Unused code path elimination - * Block '/Relational Operator' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/LowerRelop1' : Unused code path elimination - * Block '/Switch' : Unused code path elimination - * Block '/Switch2' : Unused code path elimination - * Block '/UpperRelop' : Unused code path elimination - * Block '/Switch' : Unused code path elimination - * Block '/Unit Delay' : Unused code path elimination - * Block '/из 0.01 в 0.1 градус Цельсия' : Unused code path elimination - * Block '/из сек в мс' : Unused code path elimination - * Block '/ After start control system works X sec' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Constant1' : Unused code path elimination - * Block '/Constant2' : Unused code path elimination - * Block '/Data Type Conversion' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Divide' : Unused code path elimination - * Block '/Product' : Unused code path elimination - * Block '/Delay Input1' : Unused code path elimination - * Block '/FixPt Relational Operator' : Unused code path elimination - * Block '/Compare' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Subtract' : Unused code path elimination - * Block '/Switch' : Unused code path elimination - * Block '/t_start_delay_private ' : Unused code path elimination - * Block '/Relational Operator' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/LowerRelop1' : Unused code path elimination - * Block '/Switch' : Unused code path elimination - * Block '/Switch2' : Unused code path elimination - * Block '/UpperRelop' : Unused code path elimination - * Block '/Switch' : Unused code path elimination - * Block '/Unit Delay' : Unused code path elimination - * Block '/из 0.01 в 0.1' : Unused code path elimination - * Block '/из сек в мс' : Unused code path elimination - * Block '/Gain' : Unused code path elimination - * Block '/Gain1' : Unused code path elimination - * Block '/Gain2' : Unused code path elimination - * Block '/Gain3' : Unused code path elimination - * Block '/Gain4' : Unused code path elimination - * Block '/Gain5' : Unused code path elimination - * Block '/Gain6' : Unused code path elimination - * Block '/Gain7' : Unused code path elimination - * Block '/Gain8' : Unused code path elimination - * Block '/LVL для t окр. среды' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display14' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Vtg_RL_correct display' : Unused code path elimination - * Block '/Vtg_RR_correct display' : Unused code path elimination - * Block '/SET водителя' : Unused code path elimination - * Block '/SET левого заднего пссажира' : Unused code path elimination - * Block '/SET пассажира' : Unused code path elimination - * Block '/SET правого заднего пссажира' : Unused code path elimination - * Block '/t внутри авто - сзади слева' : Unused code path elimination - * Block '/t внутри авто - сзади справа' : Unused code path elimination - * Block '/t внутри авто - спереди слева' : Unused code path elimination - * Block '/t внутри авто - спереди справа' : Unused code path elimination - * Block '/t окр. среды' : Unused code path elimination - * Block '/Датчик солнца слева' : Unused code path elimination - * Block '/Датчик солнца справа' : Unused code path elimination - * Block '/Constant1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Gain' : Unused code path elimination - * Block '/Gain1' : Unused code path elimination - * Block '/Gain2' : Unused code path elimination - * Block '/t окруж. среды.' : Unused code path elimination - * Block '/t охл. жидк.' : Unused code path elimination - * Block '/Время в мс' : Unused code path elimination - * Block '/Новая t окр. среды' : Unused code path elimination - * Block '/Скорость авто' : Unused code path elimination - * Block '/AMB (C * 10)' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/lvl' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/ABM from read' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/ABM from read' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/1-D Lookup Table' : Unused code path elimination - * Block '/Constant1' : Unused code path elimination - * Block '/Constant2' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/ABM from read' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display4' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/1-D Lookup Table' : Unused code path elimination + * Block '/Constant1' : Unused code path elimination + * Block '/Constant2' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/ABM from read' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Logical Operator' : Unused code path elimination + * Block '/Compare' : Unused code path elimination + * Block '/Constant' : Unused code path elimination * Block '/Constant' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Constant3' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Constant' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Saturation2' : Unused code path elimination - * Block '/Saturation3' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Saturation2' : Unused code path elimination - * Block '/Saturation3' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Gain3' : Unused code path elimination - * Block '/Gain4' : Unused code path elimination - * Block '/Constant3' : Unused code path elimination - * Block '/Equal3' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned - * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Constant3' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Constant' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Saturation2' : Unused code path elimination + * Block '/Saturation3' : Unused code path elimination + * Block '/Data Type Conversion' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Gain3' : Unused code path elimination + * Block '/Gain4' : Unused code path elimination + * Block '/Constant3' : Unused code path elimination + * Block '/Equal3' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion * Block '/Data Type Conversion' : Eliminate redundant data type conversion * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion2' : Eliminate redundant data type conversion - * Block '/Data Type Conversion6' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion2' : Eliminate redundant data type conversion - * Block '/Data Type Conversion6' : Eliminate redundant data type conversion - * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion2' : Eliminate redundant data type conversion - * Block '/Data Type Conversion3' : Eliminate redundant data type conversion - * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion2' : Eliminate redundant data type conversion - * Block '/Data Type Conversion3' : Eliminate redundant data type conversion - * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion2' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion2' : Eliminate redundant data type conversion - * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion2' : Eliminate redundant data type conversion - * Block '/Data Type Conversion1' : Eliminate redundant data type conversion - * Block '/Data Type Conversion2' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion2' : Eliminate redundant data type conversion + * Block '/Data Type Conversion6' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion2' : Eliminate redundant data type conversion + * Block '/Data Type Conversion6' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion2' : Eliminate redundant data type conversion + * Block '/Data Type Conversion3' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion2' : Eliminate redundant data type conversion + * Block '/Data Type Conversion3' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion11' : Eliminate redundant data type conversion + * Block '/Data Type Conversion13' : Eliminate redundant data type conversion + * Block '/Data Type Conversion2' : Eliminate redundant data type conversion + * Block '/Data Type Conversion3' : Eliminate redundant data type conversion + * Block '/Data Type Conversion8' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion2' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion2' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion2' : Eliminate redundant data type conversion + * Block '/Data Type Conversion1' : Eliminate redundant data type conversion + * Block '/Data Type Conversion2' : Eliminate redundant data type conversion */ /*- @@ -2334,7 +2332,7 @@ extern RT_MODEL *const rtM; * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode' * '' : 'HVAC_model/13,1,3,15 Valve control' * '' : 'HVAC_model/13,1,3,16 Partial REC' - * '' : 'HVAC_model/13,1,3,7 Start control' + * '' : 'HVAC_model/13,1,3,6 Individual foots' * '' : 'HVAC_model/13.1.3.3 Dtg model' * '' : 'HVAC_model/A//C Control' * '' : 'HVAC_model/ACP' @@ -2346,2105 +2344,1858 @@ extern RT_MODEL *const rtM; * '' : 'HVAC_model/Compare To Constant1' * '' : 'HVAC_model/Compare To Constant2' * '' : 'HVAC_model/Compare To Constant3' - * '' : 'HVAC_model/LIN' - * '' : 'HVAC_model/MATLAB Function' - * '' : 'HVAC_model/MATLAB Function1' - * '' : 'HVAC_model/PID DUCT' - * '' : 'HVAC_model/PWN' - * '' : 'HVAC_model/Power' - * '' : 'HVAC_model/Subsystem' - * '' : 'HVAC_model/Synchronization (SYNC)' - * '' : 'HVAC_model/Synchronization stateflow chart' - * '' : 'HVAC_model/Valves auto or manual' - * '' : 'HVAC_model/dbg CAN' - * '' : 'HVAC_model/debug stateflow chart' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Convert_g_assAMB_LV_UP' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Log Ambient Lv' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem1' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem2' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem3' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem4' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem5' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem1/Convert_g_assAMB_LV_DN_1' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem1/Convert_g_assAMB_LV_UP_2' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem2/Convert_g_assAMB_LV_DN_2' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem2/Convert_g_assAMB_LV_UP_3' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem3/Convert_g_assAMB_LV_DN_3' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem3/Convert_g_assAMB_LV_UP_4' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem4/Convert_g_assAMB_LV_DN_4' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem4/Convert_g_assAMB_LV_UP_5' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem5/Convert_g_assAMB_LV_DN_5' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/Modes for levels' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/Начальные положения заслонок left' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/Начальные положения заслонок right' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/VENT+' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Left' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Right' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)/Saturation Dynamic3' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)/X_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)/g_aucFLOW_AF_FOOT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)/g_aucFLOW_AF_FOOT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)/X_LEFT/g_assFLOW_BI2_TEMP_TGT_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)/X_LEFT/get_tg_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)/Saturation Dynamic4' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)/X_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)/g_aucFLOW_AF_FOOT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)/g_aucFLOW_AF_FOOT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)/X_RIGHT/g_aucFLOW_AF_BLR_AF_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)/X_RIGHT/get_vtg_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Left/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Left/g_assFLOW_AF_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Left/g_aucFLOW_AF_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Left/g_aucFLOW_AF_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Right/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Right/g_assFLOW_AF_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Right/g_aucFLOW_AF_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Right/g_aucFLOW_AF_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Left' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Right' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)/Saturation Dynamic3' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)/X_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)/g_aucFLOW_AFSM_FOOT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)/g_aucFLOW_AFSM_FOOT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)/X_LEFT/g_assFLOW_AFSM_TEMP_TGT_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)/X_LEFT/get_tg_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)/Saturation Dynamic4' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)/X_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)/g_aucFLOW_AFSM_FOOT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)/g_aucFLOW_AF_FOOT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)/X_RIGHT/g_assFLOW_AFSM_TEMP_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)/X_RIGHT/get_tg_FLL_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Left/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Left/g_assFLOW_AFSM_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Left/g_aucFLOW_AFSM_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Left/g_aucFLOW_AF_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Right/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Right/g_assFLOW_AF_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Right/g_aucFLOW_AF_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Right/g_aucFLOW_AF_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Left' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Right' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/Saturation Dynamic3' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/X_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_PLUS_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX1' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN1' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/X_LEFT/g_assFLOW_BI2_TEMP_TGT_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/X_LEFT/get_tg_FLL_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/Saturation Dynamic4' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/X_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_PLUS_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX2' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN2' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/X_RIGHT/g_assFLOW_BI_TEMP_TGT_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/X_RIGHT/get_tg_FLL_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Left/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Left/g_assFLOW_BI_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Left/g_aucFLOW_BI_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Left/g_aucFLOW_BI_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Left/g_aucFLOW_BI_VENT_VALVE_MIN' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Right/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Right/g_assFLOW_BI_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Right/g_aucFLOW_BI_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Right/g_aucFLOW_BI_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Right/g_aucFLOW_BI_VENT_VALVE_MIN' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Left' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Right' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/Saturation Dynamic3' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/X_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_PLUS_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX1' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN1' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/X_LEFT/g_assFLOW_BI2_TEMP_TGT_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/X_LEFT/get_tg_FLL_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/Saturation Dynamic4' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/X_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_PLUS_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX2' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN2' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/X_RIGHT/g_assFLOW_BI2_TEMP_TGT_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/X_RIGHT/get_tg_FLL_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Left/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Left/g_assFLOW_BI_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Left/g_aucFLOW_BI_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Left/g_aucFLOW_BI_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Left/g_aucFLOW_BI_VENT_VALVE_MIN' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Right/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Right/g_assFLOW_BI_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Right/g_aucFLOW_BI_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Right/g_aucFLOW_BI_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Right/g_aucFLOW_BI_VENT_VALVE_MIN' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/VENT+' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Left' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Right' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)/Saturation Dynamic3' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)/X_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)/g_aucFLOW_AF_FOOT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)/g_aucFLOW_AF_FOOT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)/X_LEFT/g_assFLOW_BI2_TEMP_TGT_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)/X_LEFT/get_tg_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)/Saturation Dynamic4' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)/X_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)/g_aucFLOW_AF_FOOT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)/g_aucFLOW_AF_FOOT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)/X_RIGHT/g_aucFLOW_AF_BLR_AF_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)/X_RIGHT/get_vtg_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Left/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Left/g_assFLOW_AF_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Left/g_aucFLOW_AF_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Left/g_aucFLOW_AF_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Right/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Right/g_assFLOW_AF_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Right/g_aucFLOW_AF_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Right/g_aucFLOW_AF_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Left' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Right' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)/Saturation Dynamic3' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)/X_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)/g_aucFLOW_AFSM_FOOT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)/g_aucFLOW_AFSM_FOOT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)/X_LEFT/g_assFLOW_AFSM_TEMP_TGT_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)/X_LEFT/get_tg_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)/Saturation Dynamic4' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)/X_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)/g_aucFLOW_AFSM_FOOT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)/g_aucFLOW_AF_FOOT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)/X_RIGHT/g_assFLOW_AFSM_TEMP_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)/X_RIGHT/get_tg_FLL_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Left/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Left/g_assFLOW_AFSM_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Left/g_aucFLOW_AFSM_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Left/g_aucFLOW_AF_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Right/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Right/g_assFLOW_AF_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Right/g_aucFLOW_AF_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Right/g_aucFLOW_AF_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Left' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Right' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/Saturation Dynamic3' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/X_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_PLUS_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX1' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN1' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/X_LEFT/g_assFLOW_BI2_TEMP_TGT_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/X_LEFT/get_tg_FLL_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/Saturation Dynamic4' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/X_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_PLUS_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX2' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN2' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/X_RIGHT/g_assFLOW_BI_TEMP_TGT_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/X_RIGHT/get_tg_FLL_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Left/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Left/g_assFLOW_BI_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Left/g_aucFLOW_BI_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Left/g_aucFLOW_BI_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Left/g_aucFLOW_BI_VENT_VALVE_MIN' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Right/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Right/g_assFLOW_BI_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Right/g_aucFLOW_BI_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Right/g_aucFLOW_BI_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Right/g_aucFLOW_BI_VENT_VALVE_MIN' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Left' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Right' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/Saturation Dynamic3' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/X_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_PLUS_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX1' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN1' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/X_LEFT/g_assFLOW_BI2_TEMP_TGT_LEFT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/X_LEFT/get_tg_FLL_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/Saturation Dynamic4' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/X_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_PLUS_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX2' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN2' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/X_RIGHT/g_assFLOW_BI2_TEMP_TGT_RIGHT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/X_RIGHT/get_tg_FLL_for_LVL' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Left/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Left/g_assFLOW_BI_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Left/g_aucFLOW_BI_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Left/g_aucFLOW_BI_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Left/g_aucFLOW_BI_VENT_VALVE_MIN' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Right/Saturation Dynamic' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Right/g_assFLOW_BI_AMB_TGT' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Right/g_aucFLOW_BI_VENT_PLUS' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Right/g_aucFLOW_BI_VENT_VALVE_MAX' - * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Right/g_aucFLOW_BI_VENT_VALVE_MIN' - * '' : 'HVAC_model/13,1,3,16 Partial REC/Chart' - * '' : 'HVAC_model/13,1,3,16 Partial REC/Spd_OSA_Trigger' - * '' : 'HVAC_model/13,1,3,7 Start control/If Action Subsystem' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 3 F' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)/Level 0' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)/Level 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)/Level 2' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)/Level 3' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)/Level 4' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)/Level 5' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)/Level 0/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)/Level 0/g_ausSTART_ENTER_SETTEMP' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)/Level 1/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)/Level 1/g_ausSTART_ENTER_SETTEMP' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)/Level 3/g_assSTART_ENTER_COOLANT ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)/Level 4/g_assSTART_ENTER_COOLANT ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step -1 F (Entry Condition)/Level 5/g_assSTART_ENTER_COOLANT ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 0' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 2' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 3' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 4' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 5' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 3/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 3/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 3/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 4/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 4/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 4/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 5/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 5/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 0 F/Level 5/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 0' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 2' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 0/3 way valve status' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 0/Dtg_FrontLower_X' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 0/Dtg_FrontUpper_X' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 0/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 0/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 0/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 0/blower FR' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 0/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 0/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 0/mode FR step 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 0/window heating' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 1/3 way valve status' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 1/Dtg_FrontLower_X' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 1/Dtg_FrontUpper_X' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 1/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 1/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 1/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 1/blower FR' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 1/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 1/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 1/mode FR step 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 1/window heating' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/3 way valve status' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/Dtg_FrontLower_X' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/Dtg_FrontUpper_X' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/blower в зависимости от ECT' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/g_assSTART_COOLANT_TO_STEP2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/mode FR step 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/window heating' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 3/blower в зависимости от ECT/blower min max' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4/3 way valve status' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4/Dtg_FrontLower_X' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4/Dtg_FrontUpper_X' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4/blower в зависимости от ECT' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4/mode FR step 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4/window heating' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 4/blower в зависимости от ECT/blower min max' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5/3 way valve status' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5/Dtg_FrontLower_X' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5/Dtg_FrontUpper_X' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5/blower в зависимости от ECT' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5/mode FR step 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5/window heating' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 1 F/Level 5/blower в зависимости от ECT/blower min max' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 2' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/3 way valve status' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/Time goto from step 2 to step 3 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/window heating' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/3 way valve status' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/Time goto from step 2 to step 3 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/window heating' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/3 way valve status' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/Time goto from step 2 to step 3 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/autodemist (autodefog)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/window heating' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/3 way valve status' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/Time goto from step 2 to step 3 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/autodemist (autodefog)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/window heating' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/3 way valve status' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/Time goto from step 2 to step 3 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/autodemist (autodefog)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/window heating' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 3 R' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 0' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 2' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 3' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 4' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 5' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 0/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 0/g_ausSTART_ENTER_SETTEMP' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 1/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 1/g_ausSTART_ENTER_SETTEMP' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 2/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 2/g_ausSTART_ENTER_SETTEMP' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 3/g_assSTART_ENTER_COOLANT ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 3/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 3/g_ausSTART_ENTER_SETTEMP' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 4/g_assSTART_ENTER_COOLANT ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 4/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 5/g_assSTART_ENTER_COOLANT ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 5/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 0' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 2' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 3' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 4' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 5' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 2/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 2/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 2/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 3/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 3/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 3/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 4/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 4/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 4/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 5/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 5/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 0 R/Level 5/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 0' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 2' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 3' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 4' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 5' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 0/2 way valve' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 0/Dtg_rear' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 0/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 0/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 0/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 0/blower rear' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 0/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 0/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 0/mode rear step 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 1/2 way valve' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 1/Dtg_rear' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 1/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 1/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 1/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 1/blower rear' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 1/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 1/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 1/mode rear step 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 2/2 way valve' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 2/Dtg_rear' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 2/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 2/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 2/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 2/blower в зависимости от ECT' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 2/g_assSTART_COOLANT_TO_STEP2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 2/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 2/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 2/mode rear step 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 2/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 2/blower в зависимости от ECT/blower start finish' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 3/2 way valve' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 3/Dtg_rear' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 3/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 3/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 3/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 3/blower в зависимости от ECT' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 3/g_assSTART_COOLANT_TO_STEP2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 3/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 3/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 3/mode rear step 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 3/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 3/blower в зависимости от ECT/blower start finish' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 4/2 way valve' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 4/Dtg_rear' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 4/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 4/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 4/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 4/blower в зависимости от ECT' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 4/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 4/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 4/mode rear step 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 4/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 4/blower в зависимости от ECT/blower start finish' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 5/2 way valve' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 5/Dtg_rear' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 5/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 5/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 5/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 5/blower в зависимости от ECT' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 5/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 5/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 5/mode rear step 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 5/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 1 R/Level 5/blower в зависимости от ECT/blower start finish' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/2 way valve' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/2 way valve' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/2 way valve' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/2 way valve' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/2 way valve' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/2 way valve' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/RealTime_Timer' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/incar filter down' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/incar filter up' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/13,1,3,7 Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.5 FLL_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.6 FLL_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.7 FLL_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/MAX' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/MIN' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/Saturation Dynamic' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.5 FLL_tg_incar/X' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.5 FLL_tg_incar/Y' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.6 FLL_tg_amb/X' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.6 FLL_tg_amb/Y' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.7 FLL_tg_sun/X' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.7 FLL_tg_sun/Y' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.5 FLU_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.6 FLU_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.7 R_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/MAX' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/MIN' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/Saturation Dynamic' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.5 FLU_tg_incar/X' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.5 FLU_tg_incar/Y' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.6 FLU_tg_amb/X' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.6 FLU_tg_amb/Y' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.7 R_tg_sun/X' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.7 R_tg_sun/Y' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.5 FRL_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.6 FRL_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.7 FRL_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/MAX' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/MIN' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/Saturation Dynamic' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.5 FRL_tg_incar/X' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.5 FRL_tg_incar/Y' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.6 FRL_tg_amb/X' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.6 FRL_tg_amb/Y' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.7 FRL_tg_sun/X' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.7 FRL_tg_sun/Y' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.5 FRU_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.6 FRU_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.7 R_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/MAX' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/MIN' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/Saturation Dynamic1' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.5 FRU_tg_incar/X' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.5 FRU_tg_incar/Y' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.6 FRU_tg_amb/X' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.6 FRU_tg_amb/Y' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.7 R_tg_sun/X' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.7 R_tg_sun/Y' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/RealTime_Timer' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/Saturation Dynamic' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/correction max' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/correction rate' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/correction_start_time' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/is_ending_with_5' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/RealTime_Timer/Detect Rise Positive' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/RealTime_Timer/Detect Rise Positive/Positive' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/RealTime_Timer' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/Saturation Dynamic' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/correction max' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/correction rate' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/correction_start_time' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/is_ending_with_5' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/RealTime_Timer/Detect Rise Positive' - * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/RealTime_Timer/Detect Rise Positive/Positive' - * '' : 'HVAC_model/ACP/EvapF' - * '' : 'HVAC_model/ACP/EvapR' - * '' : 'HVAC_model/ACP/PRINT BTS5120_2EKA_ShutoffValvePowerTXV1' - * '' : 'HVAC_model/ACP/PRINT BTS5120_2EKA_ShutoffValvePowerTXV2' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ChannelPTCPower1' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ChannelPTCPower2' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_FrontIncarMotor' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_RearIncarMotor' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ReservePowerSupply' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ShutOFFValveFront' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ShutOFFValveRear' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_TwoWayValve' - * '' : 'HVAC_model/ACP/PRINT IGN_ANS' - * '' : 'HVAC_model/ACP/PRINT PBATT_CHECK' - * '' : 'HVAC_model/ACP/PRINT Pressure_DIAG' - * '' : 'HVAC_model/ACP/PRINT Reserve_Sensor_Duct_Temp_1' - * '' : 'HVAC_model/ACP/PRINT Reserve_Sensor_Duct_Temp_2' - * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct5' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct6' - * '' : 'HVAC_model/ACP/PRINT VN7008AJ_DIAG_FrontLINActuatorPowerDriverAB' - * '' : 'HVAC_model/ACP/PRINT VN7008AJ_DIAG_RearLINActuatorPowerDriverC' - * '' : 'HVAC_model/ACP/PRINT VN7008AJ_FrontLINActuatorPowerDriverAB' - * '' : 'HVAC_model/ACP/PRINT VN7008AJ_RearLINActuatorPowerDriverC' - * '' : 'HVAC_model/ACP/Rear_Duct' - * '' : 'HVAC_model/ACP/Subsystem' - * '' : 'HVAC_model/ACP/Subsystem1' - * '' : 'HVAC_model/ACP/Subsystem2' - * '' : 'HVAC_model/ACP/Write' - * '' : 'HVAC_model/ACP/Write1' - * '' : 'HVAC_model/ACP/Write2' - * '' : 'HVAC_model/ACP/Write3' - * '' : 'HVAC_model/ACP/Write4' - * '' : 'HVAC_model/ACP/incar to dtg' - * '' : 'HVAC_model/ACP/EvapF/Compare To Constant' - * '' : 'HVAC_model/ACP/EvapF/Compare To Constant1' - * '' : 'HVAC_model/ACP/EvapF/Compare To Constant2' - * '' : 'HVAC_model/ACP/EvapF/RealTime_Timer' - * '' : 'HVAC_model/ACP/EvapF/UDS ERROR' - * '' : 'HVAC_model/ACP/EvapF/Write ERROR' - * '' : 'HVAC_model/ACP/EvapF/Write Eva_F' - * '' : 'HVAC_model/ACP/EvapR/Compare To Constant' - * '' : 'HVAC_model/ACP/EvapR/Compare To Constant1' - * '' : 'HVAC_model/ACP/EvapR/Compare To Constant2' - * '' : 'HVAC_model/ACP/EvapR/RealTime_Timer' - * '' : 'HVAC_model/ACP/EvapR/UDS ERROR' - * '' : 'HVAC_model/ACP/EvapR/Write ERROR' - * '' : 'HVAC_model/ACP/EvapR/Write Eva_F' - * '' : 'HVAC_model/ACP/PRINT BTS5120_2EKA_ShutoffValvePowerTXV1/Write' - * '' : 'HVAC_model/ACP/PRINT BTS5120_2EKA_ShutoffValvePowerTXV2/Write' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ChannelPTCPower1/Write' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ChannelPTCPower2/Write' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_FrontIncarMotor/Write' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_RearIncarMotor/Write' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ReservePowerSupply/Write' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ShutOFFValveFront/Write' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ShutOFFValveRear/Write' - * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_TwoWayValve/Write' - * '' : 'HVAC_model/ACP/PRINT IGN_ANS/Write' - * '' : 'HVAC_model/ACP/PRINT PBATT_CHECK/Write' - * '' : 'HVAC_model/ACP/PRINT Pressure_DIAG/Write' - * '' : 'HVAC_model/ACP/PRINT Reserve_Sensor_Duct_Temp_1/Write' - * '' : 'HVAC_model/ACP/PRINT Reserve_Sensor_Duct_Temp_2/Write' - * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/Compare To Constant' - * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/Compare To Constant1' - * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/Compare To Constant2' - * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/RealTime_Timer' - * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/UDS ERROR' - * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/Write' - * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/Write ERROR' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant1' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant10' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant11' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant12' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant13' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant14' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant15' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant16' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant17' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant18' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant2' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant3' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant4' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant5' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant6' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant7' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant8' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant9' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/RealTime_Timer1' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/RealTime_Timer2' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/RealTime_Timer3' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/RealTime_Timer4' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/RealTime_Timer5' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/RealTime_Timer6' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/UDS ERROR1' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/UDS ERROR2' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/UDS ERROR3' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/UDS ERROR4' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/UDS ERROR5' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/UDS ERROR6' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write 1' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write 2' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write 3' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write 4' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write 5' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write 6' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write ERROR1' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write ERROR2' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write ERROR3' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write ERROR4' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write ERROR5' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write ERROR6' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct5/Write' - * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct6/Write' - * '' : 'HVAC_model/ACP/PRINT VN7008AJ_DIAG_FrontLINActuatorPowerDriverAB/Write' - * '' : 'HVAC_model/ACP/PRINT VN7008AJ_DIAG_RearLINActuatorPowerDriverC/Write' - * '' : 'HVAC_model/ACP/PRINT VN7008AJ_FrontLINActuatorPowerDriverAB/Write' - * '' : 'HVAC_model/ACP/PRINT VN7008AJ_RearLINActuatorPowerDriverC/Write' - * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant' - * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant1' - * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant10' - * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant11' - * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant2' - * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant3' - * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant4' - * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant5' - * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant6' - * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant7' - * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant8' - * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant9' - * '' : 'HVAC_model/ACP/Rear_Duct/RealTime_Timer' - * '' : 'HVAC_model/ACP/Rear_Duct/RealTime_Timer1' - * '' : 'HVAC_model/ACP/Rear_Duct/RealTime_Timer2' - * '' : 'HVAC_model/ACP/Rear_Duct/RealTime_Timer3' - * '' : 'HVAC_model/ACP/Rear_Duct/UDS ERROR' - * '' : 'HVAC_model/ACP/Rear_Duct/UDS ERROR1' - * '' : 'HVAC_model/ACP/Rear_Duct/UDS ERROR2' - * '' : 'HVAC_model/ACP/Rear_Duct/UDS ERROR3' - * '' : 'HVAC_model/ACP/Rear_Duct/Write ' - * '' : 'HVAC_model/ACP/Rear_Duct/Write 1' - * '' : 'HVAC_model/ACP/Rear_Duct/Write 2' - * '' : 'HVAC_model/ACP/Rear_Duct/Write 3' - * '' : 'HVAC_model/ACP/Rear_Duct/Write ERROR' - * '' : 'HVAC_model/ACP/Rear_Duct/Write ERROR1' - * '' : 'HVAC_model/ACP/Rear_Duct/Write ERROR2' - * '' : 'HVAC_model/ACP/Rear_Duct/Write ERROR3' - * '' : 'HVAC_model/ACP/Subsystem/Compare To Constant' - * '' : 'HVAC_model/ACP/Subsystem/Compare To Constant1' - * '' : 'HVAC_model/ACP/Subsystem/Compare To Constant2' - * '' : 'HVAC_model/ACP/Subsystem/Compare To Constant3' - * '' : 'HVAC_model/ACP/Subsystem/Compare To Constant4' - * '' : 'HVAC_model/ACP/Subsystem/Compare To Constant5' - * '' : 'HVAC_model/ACP/Subsystem/RealTime_Timer' - * '' : 'HVAC_model/ACP/Subsystem/RealTime_Timer1' - * '' : 'HVAC_model/ACP/Subsystem/UDS ERROR' - * '' : 'HVAC_model/ACP/Subsystem/UDS ERROR1' - * '' : 'HVAC_model/ACP/Subsystem/Write ERROR' - * '' : 'HVAC_model/ACP/Subsystem/Write ERROR1' - * '' : 'HVAC_model/ACP/Subsystem/Write IncarFL' - * '' : 'HVAC_model/ACP/Subsystem/Write IncarRL' - * '' : 'HVAC_model/ACP/Subsystem1/Compare To Constant' - * '' : 'HVAC_model/ACP/Subsystem1/Compare To Constant1' - * '' : 'HVAC_model/ACP/Subsystem1/Compare To Constant2' - * '' : 'HVAC_model/ACP/Subsystem1/Compare To Constant3' - * '' : 'HVAC_model/ACP/Subsystem1/Compare To Constant4' - * '' : 'HVAC_model/ACP/Subsystem1/Compare To Constant5' - * '' : 'HVAC_model/ACP/Subsystem1/RealTime_Timer' - * '' : 'HVAC_model/ACP/Subsystem1/RealTime_Timer1' - * '' : 'HVAC_model/ACP/Subsystem1/UDS ERROR' - * '' : 'HVAC_model/ACP/Subsystem1/UDS ERROR1' - * '' : 'HVAC_model/ACP/Subsystem1/Write ERROR' - * '' : 'HVAC_model/ACP/Subsystem1/Write ERROR1' - * '' : 'HVAC_model/ACP/Subsystem1/Write IncarFR' - * '' : 'HVAC_model/ACP/Subsystem1/Write IncarRR' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Инициализация FL' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Almost equal' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Calculate delta time' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура опускается' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура поднимается' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура опускается/включен ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура опускается/обычный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура опускается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура опускается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура поднимается/включен ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура поднимается/обычный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура поднимается/включен ускоренный режим/g_ausINCARRATE_RISING_DIFF_F[8]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура поднимается/обычный режим/INCARRATE_RISING_DIFF_F[7]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура поднимается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура поднимается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FL/Фильтрация FL температуры/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Инициализация FR' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Almost equal' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Calculate delta time' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура опускается' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура поднимается' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура опускается/включен ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура опускается/обычный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура опускается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура опускается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура поднимается/включен ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура поднимается/обычный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура поднимается/включен ускоренный режим/g_ausINCARRATE_RISING_DIFF_F[8]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура поднимается/обычный режим/INCARRATE_RISING_DIFF_F[7]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура поднимается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура поднимается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar FR/Фильтрация FR температуры/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Инициализация RL' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Almost equal' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Calculate delta time' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура опускается' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура поднимается' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура опускается/включен ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура опускается/обычный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура опускается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура опускается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура поднимается/включен ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура поднимается/обычный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура поднимается/включен ускоренный режим/g_ausINCARRATE_RISING_DIFF_R[8]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура поднимается/обычный режим/INCARRATE_RISING_DIFF_R[7]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура поднимается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура поднимается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RL/Фильтрация RL температуры/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Инициализация RR' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Almost equal' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Calculate delta time' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура опускается' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура поднимается' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура опускается/включен ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура опускается/обычный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура опускается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура опускается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура поднимается/включен ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура поднимается/обычный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура поднимается/включен ускоренный режим/g_ausINCARRATE_RISING_DIFF_R[8]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура поднимается/обычный режим/INCARRATE_RISING_DIFF_R[7]' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура поднимается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура поднимается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/ACP/Subsystem2/filter incar RR/Фильтрация RR температуры/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/AUTO/Zone_Climate_Logic_Auto_FL1' - * '' : 'HVAC_model/AUTO/Zone_Climate_Logic_Auto_FL2' - * '' : 'HVAC_model/AUTO/Zone_Climate_Logic_Auto_FL3' - * '' : 'HVAC_model/AUTO/Zone_Climate_Logic_Auto_FL4' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Bi Level' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Def' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Foor + Def' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Foot' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Hi_Level' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Tri-Level' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Vent mode' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Bi Level' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Def' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Foor + Def' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Foot' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Hi_Level' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Tri-Level' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Vent mode' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Left AF - manual directions' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Right AF - manual directions' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Left AF - manual directions/AF for Bi Level R' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Left AF - manual directions/AF for Foot R' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Left AF - manual directions/AF for Vent mode R' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Right AF - manual directions/AF for Bi Level R' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Right AF - manual directions/AF for Foot R' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Right AF - manual directions/AF for Vent mode R' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_FL' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_FR' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_RL' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_RR' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_FL/func g_ascAUTO_STEP_AF_F' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_FR/func g_ascAUTO_STEP_AF_F' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_RL/func g_ascAUTO_STEP_AF_F' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_RR/func g_ascAUTO_STEP_AF_F' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.5 Vtg_FL_incar' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.6 Vtg_FX_amb' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.7 Vtg_FX_sun' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/MAX1' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/MIN1' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/Saturation Dynamic' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.5 Vtg_FL_incar/X' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.5 Vtg_FL_incar/Y' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.6 Vtg_FX_amb/X' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.6 Vtg_FX_amb/Y' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.7 Vtg_FX_sun/X' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.7 Vtg_FX_sun/Y' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.5 Vtg_FR_incar' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.6 Vtg_FX_amb' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.7 Vtg_FR_sun' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/MAX1' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/MIN1' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/Saturation Dynamic' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.5 Vtg_FR_incar/X' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.5 Vtg_FR_incar/Y' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.6 Vtg_FX_amb/X' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.6 Vtg_FX_amb/Y' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.7 Vtg_FR_sun/X' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.7 Vtg_FR_sun/Y' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/RealTime_Timer' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/Saturation Dynamic' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/correction max' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/correction rate' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/correction_start_time' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/is_ending_with_5' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/RealTime_Timer/Detect Rise Positive' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/RealTime_Timer/Detect Rise Positive/Positive' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/RealTime_Timer' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/Saturation Dynamic' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/correction max' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/correction rate' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/correction_start_time' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/is_ending_with_5' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/RealTime_Timer/Detect Rise Positive' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/RealTime_Timer/Detect Rise Positive/Positive' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.3 Vtg_RL' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.5 Vtg_RL_incar' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.6 Vtg_RX_amb' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.7 Vtg_RX_sun' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/Saturation Dynamic' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/Vtg_RX_plus_max' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/Vtg_RX_plus_min' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/is_ending_with_5' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.5 Vtg_RL_incar/2.1 Incar target Left' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.5 Vtg_RL_incar/X1-X4 для Vtg_FX_incar' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.5 Vtg_RL_incar/Y1-Y4 для Vtg_FX_incar' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.6 Vtg_RX_amb/Amb_Tg ' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.6 Vtg_RX_amb/X1-X2 для Vtg_RL_amb' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.6 Vtg_RX_amb/Y1-Y2 для Vtg_RL_amb' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.7 Vtg_RX_sun/X1-X2 для Vtg_FX_sun' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.7 Vtg_RX_sun/Y1-Y2 для Vtg_RX_sun' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.3 Vtg_RR' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.5 Vtg_RR_incar' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.6 Vtg_RR_amb' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.7 Vtg_RR_sun' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/Saturation Dynamic' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/Vtg_RX_plus_max' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/Vtg_RX_plus_min' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/is_ending_with_5' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.5 Vtg_RR_incar/2.1 Incar target Rear Right' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.5 Vtg_RR_incar/X1-X4 для Vtg_RX_incar' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.5 Vtg_RR_incar/Y1-Y4 для Vtg_RX_incar' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.6 Vtg_RR_amb/Amb_Tg ' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.6 Vtg_RR_amb/X1-X4 для Vtg_RX_amb' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.6 Vtg_RR_amb/Y1-Y4 для Vtg_RX_amb' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.7 Vtg_RR_sun/X1-X4 для Vtg_RX_sun' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.7 Vtg_RR_sun/Y1-Y4 для Vtg_RX_sun' - * '' : 'HVAC_model/CAN INPUT/Compare To Constant' - * '' : 'HVAC_model/CAN INPUT/Detect Increase' - * '' : 'HVAC_model/CAN INPUT/Full_Rec_Active' - * '' : 'HVAC_model/CAN INPUT/Subsystem' - * '' : 'HVAC_model/CAN INPUT/Subsystem1' - * '' : 'HVAC_model/CAN INPUT/Subsystem10' - * '' : 'HVAC_model/CAN INPUT/Subsystem11' - * '' : 'HVAC_model/CAN INPUT/Subsystem12' - * '' : 'HVAC_model/CAN INPUT/Subsystem13' - * '' : 'HVAC_model/CAN INPUT/Subsystem14' - * '' : 'HVAC_model/CAN INPUT/Subsystem15' - * '' : 'HVAC_model/CAN INPUT/Subsystem16' - * '' : 'HVAC_model/CAN INPUT/Subsystem17' - * '' : 'HVAC_model/CAN INPUT/Subsystem18' - * '' : 'HVAC_model/CAN INPUT/Subsystem19' - * '' : 'HVAC_model/CAN INPUT/Subsystem2' - * '' : 'HVAC_model/CAN INPUT/Subsystem20' - * '' : 'HVAC_model/CAN INPUT/Subsystem21' - * '' : 'HVAC_model/CAN INPUT/Subsystem22' - * '' : 'HVAC_model/CAN INPUT/Subsystem23' - * '' : 'HVAC_model/CAN INPUT/Subsystem24' - * '' : 'HVAC_model/CAN INPUT/Subsystem25' - * '' : 'HVAC_model/CAN INPUT/Subsystem26' - * '' : 'HVAC_model/CAN INPUT/Subsystem27' - * '' : 'HVAC_model/CAN INPUT/Subsystem28' - * '' : 'HVAC_model/CAN INPUT/Subsystem29' - * '' : 'HVAC_model/CAN INPUT/Subsystem3' - * '' : 'HVAC_model/CAN INPUT/Subsystem30' - * '' : 'HVAC_model/CAN INPUT/Subsystem31' - * '' : 'HVAC_model/CAN INPUT/Subsystem32' - * '' : 'HVAC_model/CAN INPUT/Subsystem33' - * '' : 'HVAC_model/CAN INPUT/Subsystem34' - * '' : 'HVAC_model/CAN INPUT/Subsystem35' - * '' : 'HVAC_model/CAN INPUT/Subsystem36' - * '' : 'HVAC_model/CAN INPUT/Subsystem37' - * '' : 'HVAC_model/CAN INPUT/Subsystem38' - * '' : 'HVAC_model/CAN INPUT/Subsystem39' - * '' : 'HVAC_model/CAN INPUT/Subsystem4' - * '' : 'HVAC_model/CAN INPUT/Subsystem40' - * '' : 'HVAC_model/CAN INPUT/Subsystem41' - * '' : 'HVAC_model/CAN INPUT/Subsystem42' - * '' : 'HVAC_model/CAN INPUT/Subsystem43' - * '' : 'HVAC_model/CAN INPUT/Subsystem44' - * '' : 'HVAC_model/CAN INPUT/Subsystem45' - * '' : 'HVAC_model/CAN INPUT/Subsystem46' - * '' : 'HVAC_model/CAN INPUT/Subsystem47' - * '' : 'HVAC_model/CAN INPUT/Subsystem48' - * '' : 'HVAC_model/CAN INPUT/Subsystem49' - * '' : 'HVAC_model/CAN INPUT/Subsystem5' - * '' : 'HVAC_model/CAN INPUT/Subsystem50' - * '' : 'HVAC_model/CAN INPUT/Subsystem6' - * '' : 'HVAC_model/CAN INPUT/Subsystem62' - * '' : 'HVAC_model/CAN INPUT/Subsystem63' - * '' : 'HVAC_model/CAN INPUT/Subsystem64' - * '' : 'HVAC_model/CAN INPUT/Subsystem7' - * '' : 'HVAC_model/CAN INPUT/Subsystem8' - * '' : 'HVAC_model/CAN INPUT/Subsystem9' - * '' : 'HVAC_model/CAN INPUT/Subsystem2/LO HI mode' - * '' : 'HVAC_model/CAN INPUT/Subsystem2/LO HI mode/HI mode' - * '' : 'HVAC_model/CAN INPUT/Subsystem2/LO HI mode/LO mode' - * '' : 'HVAC_model/CAN INPUT/Subsystem2/LO HI mode/not LO or HI' - * '' : 'HVAC_model/CAN INPUT/Subsystem24/full sync action' - * '' : 'HVAC_model/CAN INPUT/Subsystem24/sync front action' - * '' : 'HVAC_model/CAN INPUT/Subsystem24/sync off action' - * '' : 'HVAC_model/CAN INPUT/Subsystem3/LO HI mode' - * '' : 'HVAC_model/CAN INPUT/Subsystem3/LO HI mode/HI mode' - * '' : 'HVAC_model/CAN INPUT/Subsystem3/LO HI mode/LO mode' - * '' : 'HVAC_model/CAN INPUT/Subsystem3/LO HI mode/not LO or HI' - * '' : 'HVAC_model/CAN INPUT/Subsystem44/sync off rear action' - * '' : 'HVAC_model/CAN INPUT/Subsystem44/sync rear action' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Инициализация температуры' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Calculate delta time' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Coolant temp threshold' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Медленно' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Almost equal' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/включен ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/обычный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/включен ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/обычный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/обычный режим/AMBRATE_RISING_DIFF[7]' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Almost equal' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/включен ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/обычный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/включен ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/обычный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/обычный режим/AMBRATE_RISING_DIFF[7]' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Медленно/Almost equal' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Медленно/Если температура опускается' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Медленно/Если температура поднимается' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Медленно/Если температура опускается/обычное понижение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Медленно/Если температура поднимается/границы' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Almost equal' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/включен ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/обычный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/включен ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/обычный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/обычный режим/AMBRATE_RISING_DIFF[7]' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/обычный режим/включаем ускоренный режим' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/обычный режим/обычный режим повышения' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' - * '' : 'HVAC_model/CAN INPUT/Subsystem5/LO HI mode' - * '' : 'HVAC_model/CAN INPUT/Subsystem5/LO HI mode/HI mode' - * '' : 'HVAC_model/CAN INPUT/Subsystem5/LO HI mode/LO mode' - * '' : 'HVAC_model/CAN INPUT/Subsystem5/LO HI mode/not LO or HI' - * '' : 'HVAC_model/CAN INPUT/Subsystem6/LO HI mode' - * '' : 'HVAC_model/CAN INPUT/Subsystem6/LO HI mode/HI mode' - * '' : 'HVAC_model/CAN INPUT/Subsystem6/LO HI mode/LO mode' - * '' : 'HVAC_model/CAN INPUT/Subsystem6/LO HI mode/not LO or HI' - * '' : 'HVAC_model/CAN OUTPUT/Subsystem' - * '' : 'HVAC_model/CAN OUTPUT/Subsystem1' - * '' : 'HVAC_model/CAN OUTPUT/Subsystem2' - * '' : 'HVAC_model/CAN OUTPUT/Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL0' - * '' : 'HVAC_model/LIN/CHANEL1' - * '' : 'HVAC_model/LIN/CHANEL2' - * '' : 'HVAC_model/LIN/CHANEL0/Actuator_Ch0_Command_Model' - * '' : 'HVAC_model/LIN/CHANEL0/COM = 0' - * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Max' - * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Min' - * '' : 'HVAC_model/LIN/CHANEL0/Homing' - * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Max' - * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Min' - * '' : 'HVAC_model/LIN/CHANEL0/Move to position Max' - * '' : 'HVAC_model/LIN/CHANEL0/Move to position Min' - * '' : 'HVAC_model/LIN/CHANEL0/Normal Mode' - * '' : 'HVAC_model/LIN/CHANEL0/Stop Mode' - * '' : 'HVAC_model/LIN/CHANEL0/steps to percents' - * '' : 'HVAC_model/LIN/CHANEL0/COM = 0/Compare To Constant' - * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Max/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Max/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Max/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Min/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Min/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Min/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Count step actuator' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem4' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem/Compare To Constant' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem/Compare To Constant1' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem/Subsystem' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1/CAN ERROR' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1/Compare To Constant' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1/Subsystem' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1/UDS ERROR' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1/CAN ERROR/Write ERROR' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem2/Compare To Constant3' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem2/Compare To Constant4' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem2/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem1' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/MATLAB Function' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1/Send position' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1/Send position/percents to steps' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem1/UDS ERROR' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR/Write ERROR' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem4/Send position' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem4/Send position/percents to steps' - * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Max/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Max/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Max/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Min/If Action Subsystem' - * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Min/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Min/If Action Subsystem/Write' - * '' : 'HVAC_model/LIN/CHANEL0/Move to position Max/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL0/Move to position Max/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL0/Move to position Max/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL0/Move to position Min/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL0/Move to position Min/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL0/Move to position Min/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL0/Normal Mode/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL0/Normal Mode/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL0/Normal Mode/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL0/Stop Mode/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL0/Stop Mode/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL0/Stop Mode/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL1/Actuator_Ch1_Command_Model' - * '' : 'HVAC_model/LIN/CHANEL1/COM = 0' - * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Max' - * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Min' - * '' : 'HVAC_model/LIN/CHANEL1/Homing' - * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Max' - * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Min' - * '' : 'HVAC_model/LIN/CHANEL1/Move to position Max' - * '' : 'HVAC_model/LIN/CHANEL1/Move to position Min' - * '' : 'HVAC_model/LIN/CHANEL1/Normal Mode' - * '' : 'HVAC_model/LIN/CHANEL1/Stop Mode' - * '' : 'HVAC_model/LIN/CHANEL1/stepr to percents' - * '' : 'HVAC_model/LIN/CHANEL1/COM = 0/Compare To Constant' - * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Max/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Max/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Max/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Min/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Min/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Min/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Count step actuator' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem4' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem/Compare To Constant' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem/Compare To Constant1' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem/Subsystem' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1/CAN ERROR' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1/Compare To Constant' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1/Subsystem' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1/UDS ERROR' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1/CAN ERROR/Write ERROR' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem2/Compare To Constant3' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem2/Compare To Constant4' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem2/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem1' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem/MATLAB Function' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1/Send position' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1/Send position/percents to steps' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem1/UDS ERROR' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR/Write ERROR' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem4/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem4/Send position' - * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem4/Send position/percents to steps' - * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Max/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Max/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Max/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Min/If Action Subsystem' - * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Min/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Min/If Action Subsystem/Write' - * '' : 'HVAC_model/LIN/CHANEL1/Move to position Max/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL1/Move to position Max/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL1/Move to position Max/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL1/Move to position Min/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL1/Move to position Min/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL1/Move to position Min/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL1/Normal Mode/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL1/Normal Mode/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL1/Normal Mode/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL1/Stop Mode/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL1/Stop Mode/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL1/Stop Mode/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL2/Actuator_Ch1_Command_Model' - * '' : 'HVAC_model/LIN/CHANEL2/COM = 0' - * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Max' - * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Min' - * '' : 'HVAC_model/LIN/CHANEL2/Homing' - * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Max' - * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Min' - * '' : 'HVAC_model/LIN/CHANEL2/Move to position Max' - * '' : 'HVAC_model/LIN/CHANEL2/Move to position Min' - * '' : 'HVAC_model/LIN/CHANEL2/Normal Mode' - * '' : 'HVAC_model/LIN/CHANEL2/Stop Mode' - * '' : 'HVAC_model/LIN/CHANEL2/stepr to percents' - * '' : 'HVAC_model/LIN/CHANEL2/COM = 0/Compare To Constant' - * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Max/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Max/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Max/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Min/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Min/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Min/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Count step actuator' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem4' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem/Compare To Constant' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem/Compare To Constant1' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem/Subsystem' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1/CAN ERROR' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1/Compare To Constant' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1/Subsystem' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1/UDS ERROR' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1/CAN ERROR/Write ERROR' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem2/Compare To Constant3' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem2/Compare To Constant4' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem2/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem1' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem/MATLAB Function' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1/Send position' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1/Send position/percents to steps' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem1/UDS ERROR' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR/Write ERROR' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem4/MAX POSITION' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem4/Send position' - * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem4/Send position/percents to steps' - * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Max/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Max/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Max/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Min/If Action Subsystem' - * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Min/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Min/If Action Subsystem/Write' - * '' : 'HVAC_model/LIN/CHANEL2/Move to position Max/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL2/Move to position Max/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL2/Move to position Max/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL2/Move to position Min/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL2/Move to position Min/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL2/Move to position Min/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL2/Normal Mode/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL2/Normal Mode/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL2/Normal Mode/If Action Subsystem2/Write' - * '' : 'HVAC_model/LIN/CHANEL2/Stop Mode/If Action Subsystem2' - * '' : 'HVAC_model/LIN/CHANEL2/Stop Mode/If Action Subsystem3' - * '' : 'HVAC_model/LIN/CHANEL2/Stop Mode/If Action Subsystem2/Write' - * '' : 'HVAC_model/PID DUCT/PID Controller' - * '' : 'HVAC_model/PID DUCT/PID Controller1' - * '' : 'HVAC_model/PID DUCT/PID Controller2' - * '' : 'HVAC_model/PID DUCT/PID Controller3' - * '' : 'HVAC_model/PID DUCT/PID Controller4' - * '' : 'HVAC_model/PID DUCT/PID Controller5' - * '' : 'HVAC_model/PID DUCT/PID Controller/Anti-windup' - * '' : 'HVAC_model/PID DUCT/PID Controller/D Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller/External Derivative' - * '' : 'HVAC_model/PID DUCT/PID Controller/Filter' - * '' : 'HVAC_model/PID DUCT/PID Controller/Filter ICs' - * '' : 'HVAC_model/PID DUCT/PID Controller/I Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller/Ideal P Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller/Ideal P Gain Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller/Integrator' - * '' : 'HVAC_model/PID DUCT/PID Controller/Integrator ICs' - * '' : 'HVAC_model/PID DUCT/PID Controller/N Copy' - * '' : 'HVAC_model/PID DUCT/PID Controller/N Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller/P Copy' - * '' : 'HVAC_model/PID DUCT/PID Controller/Parallel P Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller/Reset Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller/Saturation' - * '' : 'HVAC_model/PID DUCT/PID Controller/Saturation Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller/Sum' - * '' : 'HVAC_model/PID DUCT/PID Controller/Sum Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller/Tracking Mode' - * '' : 'HVAC_model/PID DUCT/PID Controller/Tracking Mode Sum' - * '' : 'HVAC_model/PID DUCT/PID Controller/Tsamp - Integral' - * '' : 'HVAC_model/PID DUCT/PID Controller/Tsamp - Ngain' - * '' : 'HVAC_model/PID DUCT/PID Controller/postSat Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller/preSat Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller/Anti-windup/Back Calculation' - * '' : 'HVAC_model/PID DUCT/PID Controller/D Gain/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller/External Derivative/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller/Filter/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller/Filter ICs/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller/I Gain/Internal Parameters' - * '' : 'HVAC_model/PID DUCT/PID Controller/Ideal P Gain/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller/Ideal P Gain Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller/Integrator/Discrete' - * '' : 'HVAC_model/PID DUCT/PID Controller/Integrator ICs/Internal IC' - * '' : 'HVAC_model/PID DUCT/PID Controller/N Copy/Disabled wSignal Specification' - * '' : 'HVAC_model/PID DUCT/PID Controller/N Gain/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller/P Copy/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller/Parallel P Gain/Internal Parameters' - * '' : 'HVAC_model/PID DUCT/PID Controller/Reset Signal/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller/Saturation/Enabled' - * '' : 'HVAC_model/PID DUCT/PID Controller/Saturation Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller/Sum/Sum_PI' - * '' : 'HVAC_model/PID DUCT/PID Controller/Sum Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller/Tracking Mode/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller/Tracking Mode Sum/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller/Tsamp - Integral/TsSignalSpecification' - * '' : 'HVAC_model/PID DUCT/PID Controller/Tsamp - Ngain/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller/postSat Signal/Forward_Path' - * '' : 'HVAC_model/PID DUCT/PID Controller/preSat Signal/Forward_Path' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Anti-windup' - * '' : 'HVAC_model/PID DUCT/PID Controller1/D Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller1/External Derivative' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Filter' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Filter ICs' - * '' : 'HVAC_model/PID DUCT/PID Controller1/I Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Ideal P Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Ideal P Gain Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Integrator' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Integrator ICs' - * '' : 'HVAC_model/PID DUCT/PID Controller1/N Copy' - * '' : 'HVAC_model/PID DUCT/PID Controller1/N Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller1/P Copy' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Parallel P Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Reset Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Saturation' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Saturation Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Sum' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Sum Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Tracking Mode' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Tracking Mode Sum' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Tsamp - Integral' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Tsamp - Ngain' - * '' : 'HVAC_model/PID DUCT/PID Controller1/postSat Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller1/preSat Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Anti-windup/Back Calculation' - * '' : 'HVAC_model/PID DUCT/PID Controller1/D Gain/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller1/External Derivative/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Filter/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Filter ICs/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller1/I Gain/Internal Parameters' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Ideal P Gain/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Ideal P Gain Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Integrator/Discrete' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Integrator ICs/Internal IC' - * '' : 'HVAC_model/PID DUCT/PID Controller1/N Copy/Disabled wSignal Specification' - * '' : 'HVAC_model/PID DUCT/PID Controller1/N Gain/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller1/P Copy/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Parallel P Gain/Internal Parameters' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Reset Signal/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Saturation/Enabled' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Saturation Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Sum/Sum_PI' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Sum Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Tracking Mode/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Tracking Mode Sum/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Tsamp - Integral/TsSignalSpecification' - * '' : 'HVAC_model/PID DUCT/PID Controller1/Tsamp - Ngain/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller1/postSat Signal/Forward_Path' - * '' : 'HVAC_model/PID DUCT/PID Controller1/preSat Signal/Forward_Path' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Anti-windup' - * '' : 'HVAC_model/PID DUCT/PID Controller2/D Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller2/External Derivative' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Filter' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Filter ICs' - * '' : 'HVAC_model/PID DUCT/PID Controller2/I Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Ideal P Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Ideal P Gain Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Integrator' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Integrator ICs' - * '' : 'HVAC_model/PID DUCT/PID Controller2/N Copy' - * '' : 'HVAC_model/PID DUCT/PID Controller2/N Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller2/P Copy' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Parallel P Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Reset Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Saturation' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Saturation Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Sum' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Sum Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Tracking Mode' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Tracking Mode Sum' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Tsamp - Integral' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Tsamp - Ngain' - * '' : 'HVAC_model/PID DUCT/PID Controller2/postSat Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller2/preSat Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Anti-windup/Back Calculation' - * '' : 'HVAC_model/PID DUCT/PID Controller2/D Gain/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller2/External Derivative/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Filter/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Filter ICs/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller2/I Gain/Internal Parameters' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Ideal P Gain/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Ideal P Gain Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Integrator/Discrete' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Integrator ICs/Internal IC' - * '' : 'HVAC_model/PID DUCT/PID Controller2/N Copy/Disabled wSignal Specification' - * '' : 'HVAC_model/PID DUCT/PID Controller2/N Gain/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller2/P Copy/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Parallel P Gain/Internal Parameters' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Reset Signal/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Saturation/Enabled' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Saturation Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Sum/Sum_PI' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Sum Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Tracking Mode/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Tracking Mode Sum/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Tsamp - Integral/TsSignalSpecification' - * '' : 'HVAC_model/PID DUCT/PID Controller2/Tsamp - Ngain/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller2/postSat Signal/Forward_Path' - * '' : 'HVAC_model/PID DUCT/PID Controller2/preSat Signal/Forward_Path' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Anti-windup' - * '' : 'HVAC_model/PID DUCT/PID Controller3/D Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller3/External Derivative' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Filter' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Filter ICs' - * '' : 'HVAC_model/PID DUCT/PID Controller3/I Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Ideal P Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Ideal P Gain Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Integrator' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Integrator ICs' - * '' : 'HVAC_model/PID DUCT/PID Controller3/N Copy' - * '' : 'HVAC_model/PID DUCT/PID Controller3/N Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller3/P Copy' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Parallel P Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Reset Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Saturation' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Saturation Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Sum' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Sum Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Tracking Mode' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Tracking Mode Sum' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Tsamp - Integral' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Tsamp - Ngain' - * '' : 'HVAC_model/PID DUCT/PID Controller3/postSat Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller3/preSat Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Anti-windup/Back Calculation' - * '' : 'HVAC_model/PID DUCT/PID Controller3/D Gain/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller3/External Derivative/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Filter/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Filter ICs/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller3/I Gain/Internal Parameters' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Ideal P Gain/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Ideal P Gain Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Integrator/Discrete' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Integrator ICs/Internal IC' - * '' : 'HVAC_model/PID DUCT/PID Controller3/N Copy/Disabled wSignal Specification' - * '' : 'HVAC_model/PID DUCT/PID Controller3/N Gain/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller3/P Copy/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Parallel P Gain/Internal Parameters' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Reset Signal/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Saturation/Enabled' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Saturation Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Sum/Sum_PI' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Sum Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Tracking Mode/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Tracking Mode Sum/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Tsamp - Integral/TsSignalSpecification' - * '' : 'HVAC_model/PID DUCT/PID Controller3/Tsamp - Ngain/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller3/postSat Signal/Forward_Path' - * '' : 'HVAC_model/PID DUCT/PID Controller3/preSat Signal/Forward_Path' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Anti-windup' - * '' : 'HVAC_model/PID DUCT/PID Controller4/D Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller4/External Derivative' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Filter' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Filter ICs' - * '' : 'HVAC_model/PID DUCT/PID Controller4/I Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Ideal P Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Ideal P Gain Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Integrator' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Integrator ICs' - * '' : 'HVAC_model/PID DUCT/PID Controller4/N Copy' - * '' : 'HVAC_model/PID DUCT/PID Controller4/N Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller4/P Copy' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Parallel P Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Reset Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Saturation' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Saturation Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Sum' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Sum Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Tracking Mode' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Tracking Mode Sum' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Tsamp - Integral' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Tsamp - Ngain' - * '' : 'HVAC_model/PID DUCT/PID Controller4/postSat Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller4/preSat Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Anti-windup/Back Calculation' - * '' : 'HVAC_model/PID DUCT/PID Controller4/D Gain/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller4/External Derivative/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Filter/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Filter ICs/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller4/I Gain/Internal Parameters' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Ideal P Gain/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Ideal P Gain Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Integrator/Discrete' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Integrator ICs/Internal IC' - * '' : 'HVAC_model/PID DUCT/PID Controller4/N Copy/Disabled wSignal Specification' - * '' : 'HVAC_model/PID DUCT/PID Controller4/N Gain/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller4/P Copy/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Parallel P Gain/Internal Parameters' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Reset Signal/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Saturation/Enabled' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Saturation Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Sum/Sum_PI' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Sum Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Tracking Mode/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Tracking Mode Sum/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Tsamp - Integral/TsSignalSpecification' - * '' : 'HVAC_model/PID DUCT/PID Controller4/Tsamp - Ngain/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller4/postSat Signal/Forward_Path' - * '' : 'HVAC_model/PID DUCT/PID Controller4/preSat Signal/Forward_Path' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Anti-windup' - * '' : 'HVAC_model/PID DUCT/PID Controller5/D Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller5/External Derivative' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Filter' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Filter ICs' - * '' : 'HVAC_model/PID DUCT/PID Controller5/I Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Ideal P Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Ideal P Gain Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Integrator' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Integrator ICs' - * '' : 'HVAC_model/PID DUCT/PID Controller5/N Copy' - * '' : 'HVAC_model/PID DUCT/PID Controller5/N Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller5/P Copy' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Parallel P Gain' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Reset Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Saturation' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Saturation Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Sum' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Sum Fdbk' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Tracking Mode' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Tracking Mode Sum' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Tsamp - Integral' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Tsamp - Ngain' - * '' : 'HVAC_model/PID DUCT/PID Controller5/postSat Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller5/preSat Signal' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Anti-windup/Back Calculation' - * '' : 'HVAC_model/PID DUCT/PID Controller5/D Gain/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller5/External Derivative/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Filter/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Filter ICs/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller5/I Gain/Internal Parameters' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Ideal P Gain/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Ideal P Gain Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Integrator/Discrete' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Integrator ICs/Internal IC' - * '' : 'HVAC_model/PID DUCT/PID Controller5/N Copy/Disabled wSignal Specification' - * '' : 'HVAC_model/PID DUCT/PID Controller5/N Gain/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller5/P Copy/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Parallel P Gain/Internal Parameters' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Reset Signal/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Saturation/Enabled' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Saturation Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Sum/Sum_PI' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Sum Fdbk/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Tracking Mode/Disabled' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Tracking Mode Sum/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Tsamp - Integral/TsSignalSpecification' - * '' : 'HVAC_model/PID DUCT/PID Controller5/Tsamp - Ngain/Passthrough' - * '' : 'HVAC_model/PID DUCT/PID Controller5/postSat Signal/Forward_Path' - * '' : 'HVAC_model/PID DUCT/PID Controller5/preSat Signal/Forward_Path' - * '' : 'HVAC_model/PWN/Write' - * '' : 'HVAC_model/PWN/Write1' - * '' : 'HVAC_model/PWN/Write2' - * '' : 'HVAC_model/PWN/Write3' - * '' : 'HVAC_model/Power/Compare To Zero' - * '' : 'HVAC_model/Power/Compare To Zero1' - * '' : 'HVAC_model/Power/Compare To Zero2' - * '' : 'HVAC_model/Power/Subsystem' - * '' : 'HVAC_model/Power/Subsystem2' - * '' : 'HVAC_model/Subsystem/Compare To Constant1' - * '' : 'HVAC_model/Subsystem/MATLAB Function' - * '' : 'HVAC_model/Subsystem/MATLAB Function1' - * '' : 'HVAC_model/Subsystem/PID Controller' - * '' : 'HVAC_model/Subsystem/PID Controller/Anti-windup' - * '' : 'HVAC_model/Subsystem/PID Controller/D Gain' - * '' : 'HVAC_model/Subsystem/PID Controller/External Derivative' - * '' : 'HVAC_model/Subsystem/PID Controller/Filter' - * '' : 'HVAC_model/Subsystem/PID Controller/Filter ICs' - * '' : 'HVAC_model/Subsystem/PID Controller/I Gain' - * '' : 'HVAC_model/Subsystem/PID Controller/Ideal P Gain' - * '' : 'HVAC_model/Subsystem/PID Controller/Ideal P Gain Fdbk' - * '' : 'HVAC_model/Subsystem/PID Controller/Integrator' - * '' : 'HVAC_model/Subsystem/PID Controller/Integrator ICs' - * '' : 'HVAC_model/Subsystem/PID Controller/N Copy' - * '' : 'HVAC_model/Subsystem/PID Controller/N Gain' - * '' : 'HVAC_model/Subsystem/PID Controller/P Copy' - * '' : 'HVAC_model/Subsystem/PID Controller/Parallel P Gain' - * '' : 'HVAC_model/Subsystem/PID Controller/Reset Signal' - * '' : 'HVAC_model/Subsystem/PID Controller/Saturation' - * '' : 'HVAC_model/Subsystem/PID Controller/Saturation Fdbk' - * '' : 'HVAC_model/Subsystem/PID Controller/Sum' - * '' : 'HVAC_model/Subsystem/PID Controller/Sum Fdbk' - * '' : 'HVAC_model/Subsystem/PID Controller/Tracking Mode' - * '' : 'HVAC_model/Subsystem/PID Controller/Tracking Mode Sum' - * '' : 'HVAC_model/Subsystem/PID Controller/Tsamp - Integral' - * '' : 'HVAC_model/Subsystem/PID Controller/Tsamp - Ngain' - * '' : 'HVAC_model/Subsystem/PID Controller/postSat Signal' - * '' : 'HVAC_model/Subsystem/PID Controller/preSat Signal' - * '' : 'HVAC_model/Subsystem/PID Controller/Anti-windup/Disc. Clamping Parallel' - * '' : 'HVAC_model/Subsystem/PID Controller/Anti-windup/Disc. Clamping Parallel/Dead Zone' - * '' : 'HVAC_model/Subsystem/PID Controller/Anti-windup/Disc. Clamping Parallel/Dead Zone/External' - * '' : 'HVAC_model/Subsystem/PID Controller/Anti-windup/Disc. Clamping Parallel/Dead Zone/External/Dead Zone Dynamic' - * '' : 'HVAC_model/Subsystem/PID Controller/D Gain/Disabled' - * '' : 'HVAC_model/Subsystem/PID Controller/External Derivative/Disabled' - * '' : 'HVAC_model/Subsystem/PID Controller/Filter/Disabled' - * '' : 'HVAC_model/Subsystem/PID Controller/Filter ICs/Disabled' - * '' : 'HVAC_model/Subsystem/PID Controller/I Gain/Internal Parameters' - * '' : 'HVAC_model/Subsystem/PID Controller/Ideal P Gain/Passthrough' - * '' : 'HVAC_model/Subsystem/PID Controller/Ideal P Gain Fdbk/Disabled' - * '' : 'HVAC_model/Subsystem/PID Controller/Integrator/Discrete' - * '' : 'HVAC_model/Subsystem/PID Controller/Integrator ICs/Internal IC' - * '' : 'HVAC_model/Subsystem/PID Controller/N Copy/Disabled wSignal Specification' - * '' : 'HVAC_model/Subsystem/PID Controller/N Gain/Disabled' - * '' : 'HVAC_model/Subsystem/PID Controller/P Copy/Disabled' - * '' : 'HVAC_model/Subsystem/PID Controller/Parallel P Gain/Internal Parameters' - * '' : 'HVAC_model/Subsystem/PID Controller/Reset Signal/External Reset' - * '' : 'HVAC_model/Subsystem/PID Controller/Saturation/External' - * '' : 'HVAC_model/Subsystem/PID Controller/Saturation/External/Saturation Dynamic' - * '' : 'HVAC_model/Subsystem/PID Controller/Saturation Fdbk/Disabled' - * '' : 'HVAC_model/Subsystem/PID Controller/Sum/Sum_PI' - * '' : 'HVAC_model/Subsystem/PID Controller/Sum Fdbk/Disabled' - * '' : 'HVAC_model/Subsystem/PID Controller/Tracking Mode/Disabled' - * '' : 'HVAC_model/Subsystem/PID Controller/Tracking Mode Sum/Passthrough' - * '' : 'HVAC_model/Subsystem/PID Controller/Tsamp - Integral/TsSignalSpecification' - * '' : 'HVAC_model/Subsystem/PID Controller/Tsamp - Ngain/Passthrough' - * '' : 'HVAC_model/Subsystem/PID Controller/postSat Signal/Forward_Path' - * '' : 'HVAC_model/Subsystem/PID Controller/preSat Signal/Forward_Path' - * '' : 'HVAC_model/Synchronization (SYNC)/all zone sync' - * '' : 'HVAC_model/Synchronization (SYNC)/front sync' - * '' : 'HVAC_model/Synchronization (SYNC)/rear sync' - * '' : 'HVAC_model/Valves auto or manual/join left and right front' - * '' : 'HVAC_model/Valves auto or manual/join left and right rear' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode ' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/front' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/front/MODE_for_set_and_lvl' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/front/MODE_for_set_and_lvl1' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/front/valves_front_left' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/front/valves_front_right' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/MODE_by_duct_tg_R_for_LVL' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg увеличивается RL' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg увеличивается RR' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg уменьшается RL' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg уменьшается RR' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/valves_rear_left' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/valves_rear_right' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg увеличивается RL/increase' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg увеличивается RR/increase' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg уменьшается RL/decrease' - * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg уменьшается RR/decrease' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Bi Level' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Def' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Foot' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Foot + Def' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Hi_Level' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Tri-Level' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Vent mode' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Bi Level' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Def' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Foot' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Foot + Def' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Hi_Level' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Tri-Level' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Vent mode' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves left - manual directions' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves right - manual directions' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves left - manual directions/AF for Bi Level' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves left - manual directions/AF for Foot' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves left - manual directions/valves for Vent mode' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves right - manual directions/AF for Bi Level' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves right - manual directions/AF for Foot' - * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves right - manual directions/valves for Vent mode' - * '' : 'HVAC_model/dbg CAN/0 to dbg' - * '' : 'HVAC_model/dbg CAN/ACP (duct sensors) to dbg' - * '' : 'HVAC_model/dbg CAN/CCU_IO to dbg' - * '' : 'HVAC_model/dbg CAN/Logic_Acl to dbg' - * '' : 'HVAC_model/dbg CAN/Logic_Rec to dbg' - * '' : 'HVAC_model/dbg CAN/Logic_State to dbg' - * '' : 'HVAC_model/dbg CAN/actuators to dbg' - * '' : 'HVAC_model/dbg CAN/ambient to dbg' - * '' : 'HVAC_model/dbg CAN/autoAF dbg' - * '' : 'HVAC_model/dbg CAN/autoduct dbg' - * '' : 'HVAC_model/dbg CAN/blower to dbg' - * '' : 'HVAC_model/dbg CAN/sen_eva (evaporator) to dbg' - * '' : 'HVAC_model/dbg CAN/CCU_IO to dbg/Subsystem' - * '' : 'HVAC_model/dbg CAN/CCU_IO to dbg/Subsystem1' - * '' : 'HVAC_model/dbg CAN/CCU_IO to dbg/Subsystem2' - * '' : 'HVAC_model/dbg CAN/CCU_IO to dbg/Subsystem3' + * '' : 'HVAC_model/IndexMode' + * '' : 'HVAC_model/LIN' + * '' : 'HVAC_model/MATLAB Function' + * '' : 'HVAC_model/MATLAB Function1' + * '' : 'HVAC_model/PID DUCT' + * '' : 'HVAC_model/PWN' + * '' : 'HVAC_model/Power' + * '' : 'HVAC_model/Subsystem' + * '' : 'HVAC_model/Synchronization (SYNC)' + * '' : 'HVAC_model/Synchronization stateflow chart' + * '' : 'HVAC_model/Valves auto or manual' + * '' : 'HVAC_model/dbg CAN' + * '' : 'HVAC_model/debug stateflow chart' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Convert_g_assAMB_LV_UP' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Log Ambient Lv' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem1' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem2' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem3' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem4' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem5' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem1/Convert_g_assAMB_LV_DN_1' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem1/Convert_g_assAMB_LV_UP_2' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem2/Convert_g_assAMB_LV_DN_2' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem2/Convert_g_assAMB_LV_UP_3' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem3/Convert_g_assAMB_LV_DN_3' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem3/Convert_g_assAMB_LV_UP_4' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem4/Convert_g_assAMB_LV_DN_4' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem4/Convert_g_assAMB_LV_UP_5' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13,1,3,1 Ambien level/Switch Case Action Subsystem5/Convert_g_assAMB_LV_DN_5' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/Modes for levels' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/Начальные положения заслонок left' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/Начальные положения заслонок right' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/VENT+' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Left' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Right' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)/Saturation Dynamic3' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)/X_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)/g_aucFLOW_AF_FOOT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)/g_aucFLOW_AF_FOOT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)/X_LEFT/g_assFLOW_BI2_TEMP_TGT_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FLF (Front Left Foot)/X_LEFT/get_tg_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)/Saturation Dynamic4' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)/X_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)/g_aucFLOW_AF_FOOT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)/g_aucFLOW_AF_FOOT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)/X_RIGHT/g_aucFLOW_AF_BLR_AF_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/FRF (Front Right Foot)/X_RIGHT/get_vtg_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Left/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Left/g_assFLOW_AF_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Left/g_aucFLOW_AF_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Left/g_aucFLOW_AF_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Right/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Right/g_assFLOW_AF_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Right/g_aucFLOW_AF_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot/Front Right/g_aucFLOW_AF_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Left' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Right' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)/Saturation Dynamic3' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)/X_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)/g_aucFLOW_AFSM_FOOT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)/g_aucFLOW_AFSM_FOOT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)/X_LEFT/g_assFLOW_AFSM_TEMP_TGT_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FLF (Front Left Foot)/X_LEFT/get_tg_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)/Saturation Dynamic4' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)/X_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)/g_aucFLOW_AFSM_FOOT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)/g_aucFLOW_AF_FOOT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)/X_RIGHT/g_assFLOW_AFSM_TEMP_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/FRF (Front Right Foot)/X_RIGHT/get_tg_FLL_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Left/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Left/g_assFLOW_AFSM_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Left/g_aucFLOW_AFSM_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Left/g_aucFLOW_AF_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Right/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Right/g_assFLOW_AF_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Right/g_aucFLOW_AF_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Afoot_Summer/Front Right/g_aucFLOW_AF_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Left' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Right' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/Saturation Dynamic3' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/X_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_PLUS_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX1' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN1' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/X_LEFT/g_assFLOW_BI2_TEMP_TGT_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FLF (Front Left Foot)/X_LEFT/get_tg_FLL_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/Saturation Dynamic4' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/X_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_PLUS_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX2' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN2' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/X_RIGHT/g_assFLOW_BI_TEMP_TGT_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/FRF (Front Right Foot)/X_RIGHT/get_tg_FLL_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Left/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Left/g_assFLOW_BI_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Left/g_aucFLOW_BI_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Left/g_aucFLOW_BI_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Left/g_aucFLOW_BI_VENT_VALVE_MIN' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Right/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Right/g_assFLOW_BI_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Right/g_aucFLOW_BI_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Right/g_aucFLOW_BI_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel/Front Right/g_aucFLOW_BI_VENT_VALVE_MIN' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Left' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Right' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/Saturation Dynamic3' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/X_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_PLUS_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX1' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN1' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/X_LEFT/g_assFLOW_BI2_TEMP_TGT_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FLF (Front Left Foot)/X_LEFT/get_tg_FLL_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/Saturation Dynamic4' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/X_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_PLUS_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX2' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN2' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/X_RIGHT/g_assFLOW_BI2_TEMP_TGT_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/FRF (Front Right Foot)/X_RIGHT/get_tg_FLL_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Left/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Left/g_assFLOW_BI_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Left/g_aucFLOW_BI_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Left/g_aucFLOW_BI_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Left/g_aucFLOW_BI_VENT_VALVE_MIN' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Right/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Right/g_assFLOW_BI_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Right/g_aucFLOW_BI_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Right/g_aucFLOW_BI_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_left/Bilevel2/Front Right/g_aucFLOW_BI_VENT_VALVE_MIN' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/VENT+' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Left' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Right' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)/Saturation Dynamic3' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)/X_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)/g_aucFLOW_AF_FOOT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)/g_aucFLOW_AF_FOOT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)/X_LEFT/g_assFLOW_BI2_TEMP_TGT_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FLF (Front Left Foot)/X_LEFT/get_tg_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)/Saturation Dynamic4' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)/X_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)/g_aucFLOW_AF_FOOT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)/g_aucFLOW_AF_FOOT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)/X_RIGHT/g_aucFLOW_AF_BLR_AF_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/FRF (Front Right Foot)/X_RIGHT/get_vtg_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Left/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Left/g_assFLOW_AF_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Left/g_aucFLOW_AF_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Left/g_aucFLOW_AF_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Right/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Right/g_assFLOW_AF_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Right/g_aucFLOW_AF_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot/Front Right/g_aucFLOW_AF_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Left' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Right' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)/Saturation Dynamic3' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)/X_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)/g_aucFLOW_AFSM_FOOT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)/g_aucFLOW_AFSM_FOOT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)/X_LEFT/g_assFLOW_AFSM_TEMP_TGT_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FLF (Front Left Foot)/X_LEFT/get_tg_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)/Saturation Dynamic4' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)/X_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)/g_aucFLOW_AFSM_FOOT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)/g_aucFLOW_AF_FOOT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)/X_RIGHT/g_assFLOW_AFSM_TEMP_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/FRF (Front Right Foot)/X_RIGHT/get_tg_FLL_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Left/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Left/g_assFLOW_AFSM_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Left/g_aucFLOW_AFSM_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Left/g_aucFLOW_AF_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Right/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Right/g_assFLOW_AF_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Right/g_aucFLOW_AF_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Afoot_Summer/Front Right/g_aucFLOW_AF_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Left' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Right' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/Saturation Dynamic3' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/X_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_PLUS_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX1' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN1' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/X_LEFT/g_assFLOW_BI2_TEMP_TGT_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FLF (Front Left Foot)/X_LEFT/get_tg_FLL_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/Saturation Dynamic4' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/X_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_PLUS_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX2' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN2' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/X_RIGHT/g_assFLOW_BI_TEMP_TGT_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/FRF (Front Right Foot)/X_RIGHT/get_tg_FLL_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Left/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Left/g_assFLOW_BI_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Left/g_aucFLOW_BI_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Left/g_aucFLOW_BI_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Left/g_aucFLOW_BI_VENT_VALVE_MIN' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Right/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Right/g_assFLOW_BI_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Right/g_aucFLOW_BI_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Right/g_aucFLOW_BI_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel/Front Right/g_aucFLOW_BI_VENT_VALVE_MIN' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Left' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Right' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/Saturation Dynamic3' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/X_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_PLUS_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX1' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN1' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/X_LEFT/g_assFLOW_BI2_TEMP_TGT_LEFT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FLF (Front Left Foot)/X_LEFT/get_tg_FLL_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/Saturation Dynamic4' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/X_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_PLUS_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MAX2' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/g_aucFLOW_BI_FOOT_VALVE_MIN2' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/X_RIGHT/g_assFLOW_BI2_TEMP_TGT_RIGHT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/FRF (Front Right Foot)/X_RIGHT/get_tg_FLL_for_LVL' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Left/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Left/g_assFLOW_BI_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Left/g_aucFLOW_BI_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Left/g_aucFLOW_BI_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Left/g_aucFLOW_BI_VENT_VALVE_MIN' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Right/Saturation Dynamic' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Right/g_assFLOW_BI_AMB_TGT' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Right/g_aucFLOW_BI_VENT_PLUS' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Right/g_aucFLOW_BI_VENT_VALVE_MAX' + * '' : 'HVAC_model/13,1,3,1 Ambien level 13.1.3.2 Mode/13.1.3.2 Mode/set_valves_right/Bilevel2/Front Right/g_aucFLOW_BI_VENT_VALVE_MIN' + * '' : 'HVAC_model/13,1,3,16 Partial REC/Chart' + * '' : 'HVAC_model/13,1,3,16 Partial REC/Spd_OSA_Trigger' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL/Valve and blower' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL/Valve and blower/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL/Valve and blower/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL/Valve and blower/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL/Valve and blower/If Action Subsystem/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL/Valve and blower/If Action Subsystem/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL/Valve and blower/If Action Subsystem/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL/Valve and blower/If Action Subsystem1/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL/Valve and blower/If Action Subsystem1/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL/Valve and blower/If Action Subsystem1/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL/Valve and blower/If Action Subsystem2/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL/Valve and blower/If Action Subsystem2/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FL/Valve and blower/If Action Subsystem2/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR/Valve and blower' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR/Valve and blower/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR/Valve and blower/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR/Valve and blower/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR/Valve and blower/If Action Subsystem/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR/Valve and blower/If Action Subsystem/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR/Valve and blower/If Action Subsystem/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR/Valve and blower/If Action Subsystem1/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR/Valve and blower/If Action Subsystem1/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR/Valve and blower/If Action Subsystem1/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR/Valve and blower/If Action Subsystem2/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR/Valve and blower/If Action Subsystem2/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/FR/Valve and blower/If Action Subsystem2/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL/Valve and blower' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL/Valve and blower/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL/Valve and blower/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL/Valve and blower/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL/Valve and blower/If Action Subsystem/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL/Valve and blower/If Action Subsystem/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL/Valve and blower/If Action Subsystem/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL/Valve and blower/If Action Subsystem1/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL/Valve and blower/If Action Subsystem1/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL/Valve and blower/If Action Subsystem1/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL/Valve and blower/If Action Subsystem2/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL/Valve and blower/If Action Subsystem2/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RL/Valve and blower/If Action Subsystem2/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR/Valve and blower' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR/Valve and blower/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR/Valve and blower/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR/Valve and blower/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR/Valve and blower/If Action Subsystem/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR/Valve and blower/If Action Subsystem/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR/Valve and blower/If Action Subsystem/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR/Valve and blower/If Action Subsystem1/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR/Valve and blower/If Action Subsystem1/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR/Valve and blower/If Action Subsystem1/If Action Subsystem2' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR/Valve and blower/If Action Subsystem2/If Action Subsystem' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR/Valve and blower/If Action Subsystem2/If Action Subsystem1' + * '' : 'HVAC_model/13,1,3,6 Individual foots/RR/Valve and blower/If Action Subsystem2/If Action Subsystem2' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)' + * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)' + * '' : 'HVAC_model/13.1.3.3 Dtg model/Individual foot' + * '' : 'HVAC_model/13.1.3.3 Dtg model/Individual foot1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FLL' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FLU' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FRL' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FRU' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - RL' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - RR' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.5 FLL_tg_incar' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.6 FLL_tg_amb' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.7 FLL_tg_sun' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/MAX' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/MIN' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/Saturation Dynamic' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.5 FLL_tg_incar/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.5 FLL_tg_incar/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.6 FLL_tg_amb/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.6 FLL_tg_amb/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.7 FLL_tg_sun/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.7 FLL_tg_sun/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.5 FLU_tg_incar' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.6 FLU_tg_amb' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.7 FLU_tg_sun' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/MAX' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/MIN' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/Saturation Dynamic' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.5 FLU_tg_incar/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.5 FLU_tg_incar/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.6 FLU_tg_amb/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.6 FLU_tg_amb/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.7 FLU_tg_sun/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.7 FLU_tg_sun/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.5 FRL_tg_incar' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.6 FRL_tg_amb' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.7 FRL_tg_sun' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/MAX' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/MIN' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/Saturation Dynamic' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.5 FRL_tg_incar/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.5 FRL_tg_incar/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.6 FRL_tg_amb/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.6 FRL_tg_amb/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.7 FRL_tg_sun/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.7 FRL_tg_sun/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.5 RL_tg_incar' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.6 R_tg_amb' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.7 RL_tg_sun1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/MAX' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/MIN' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/Saturation Dynamic' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.5 RL_tg_incar/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.5 RL_tg_incar/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.6 R_tg_amb/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.6 R_tg_amb/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.7 RL_tg_sun1/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.7 RL_tg_sun1/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.5 RR_tg_incar' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.6 RR_tg_amb1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.7 RR_tg_sun1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/MAX' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/MIN' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/Saturation Dynamic' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.5 RR_tg_incar/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.5 RR_tg_incar/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.6 RR_tg_amb1/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.6 RR_tg_amb1/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.7 RR_tg_sun1/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.7 RR_tg_sun1/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.5 FRU_tg_incar' + * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.6 FRU_tg_amb' + * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.7 FRU_tg_sun' + * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/MAX' + * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/MIN' + * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/Saturation Dynamic1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.5 FRU_tg_incar/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.5 FRU_tg_incar/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.6 FRU_tg_amb/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.6 FRU_tg_amb/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.7 FRU_tg_sun/X' + * '' : 'HVAC_model/13.1.3.3 Dtg model/FRU_tg_correct (Front Right)/2.7 FRU_tg_sun/Y' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FLL/Compare To Constant' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FLL/Compare To Constant1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FLL/Compare To Constant2' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FLL/If Action Subsystem' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FLL/If Action Subsystem1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FLU/Compare To Constant' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FLU/Compare To Constant1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FLU/Compare To Constant2' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FLU/If Action Subsystem' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FLU/If Action Subsystem1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FRL/Compare To Constant' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FRL/Compare To Constant1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FRL/Compare To Constant2' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FRL/If Action Subsystem' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FRL/If Action Subsystem1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FRU/Compare To Constant' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FRU/Compare To Constant1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FRU/Compare To Constant2' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FRU/If Action Subsystem' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - FRU/If Action Subsystem1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - RL/Compare To Constant' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - RL/Compare To Constant1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - RL/Compare To Constant2' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - RL/If Action Subsystem' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - RL/If Action Subsystem1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - RR/Compare To Constant' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - RR/Compare To Constant1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - RR/Compare To Constant2' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - RR/If Action Subsystem' + * '' : 'HVAC_model/13.1.3.3 Dtg model/if StartControl - RR/If Action Subsystem1' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/RealTime_Timer' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/Saturation Dynamic' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/correction max' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/correction rate' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/correction_start_time' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/is_ending_with_5' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/RealTime_Timer/Detect Rise Positive' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_left/RealTime_Timer/Detect Rise Positive/Positive' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/RealTime_Timer' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/Saturation Dynamic' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/correction max' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/correction rate' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/correction_start_time' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/is_ending_with_5' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/RealTime_Timer/Detect Rise Positive' + * '' : 'HVAC_model/13.1.3.3 Dtg model/wait_correction_right/RealTime_Timer/Detect Rise Positive/Positive' + * '' : 'HVAC_model/ACP/EvapF' + * '' : 'HVAC_model/ACP/EvapR' + * '' : 'HVAC_model/ACP/PRINT BTS5120_2EKA_ShutoffValvePowerTXV1' + * '' : 'HVAC_model/ACP/PRINT BTS5120_2EKA_ShutoffValvePowerTXV2' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ChannelPTCPower1' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ChannelPTCPower2' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_FrontIncarMotor' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_RearIncarMotor' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ReservePowerSupply' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ShutOFFValveFront' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ShutOFFValveRear' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_TwoWayValve' + * '' : 'HVAC_model/ACP/PRINT IGN_ANS' + * '' : 'HVAC_model/ACP/PRINT PBATT_CHECK' + * '' : 'HVAC_model/ACP/PRINT Pressure_DIAG' + * '' : 'HVAC_model/ACP/PRINT Reserve_Sensor_Duct_Temp_1' + * '' : 'HVAC_model/ACP/PRINT Reserve_Sensor_Duct_Temp_2' + * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct5' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct6' + * '' : 'HVAC_model/ACP/PRINT VN7008AJ_DIAG_FrontLINActuatorPowerDriverAB' + * '' : 'HVAC_model/ACP/PRINT VN7008AJ_DIAG_RearLINActuatorPowerDriverC' + * '' : 'HVAC_model/ACP/PRINT VN7008AJ_FrontLINActuatorPowerDriverAB' + * '' : 'HVAC_model/ACP/PRINT VN7008AJ_RearLINActuatorPowerDriverC' + * '' : 'HVAC_model/ACP/Rear_Duct' + * '' : 'HVAC_model/ACP/Write' + * '' : 'HVAC_model/ACP/Write1' + * '' : 'HVAC_model/ACP/Write2' + * '' : 'HVAC_model/ACP/Write3' + * '' : 'HVAC_model/ACP/Write4' + * '' : 'HVAC_model/ACP/filter incar' + * '' : 'HVAC_model/ACP/incar sensors' + * '' : 'HVAC_model/ACP/incar to dtg' + * '' : 'HVAC_model/ACP/EvapF/Compare To Constant' + * '' : 'HVAC_model/ACP/EvapF/Compare To Constant1' + * '' : 'HVAC_model/ACP/EvapF/Compare To Constant2' + * '' : 'HVAC_model/ACP/EvapF/RealTime_Timer' + * '' : 'HVAC_model/ACP/EvapF/UDS ERROR' + * '' : 'HVAC_model/ACP/EvapF/Write ERROR' + * '' : 'HVAC_model/ACP/EvapF/Write Eva_F' + * '' : 'HVAC_model/ACP/EvapR/Compare To Constant' + * '' : 'HVAC_model/ACP/EvapR/Compare To Constant1' + * '' : 'HVAC_model/ACP/EvapR/Compare To Constant2' + * '' : 'HVAC_model/ACP/EvapR/RealTime_Timer' + * '' : 'HVAC_model/ACP/EvapR/UDS ERROR' + * '' : 'HVAC_model/ACP/EvapR/Write ERROR' + * '' : 'HVAC_model/ACP/EvapR/Write Eva_F' + * '' : 'HVAC_model/ACP/PRINT BTS5120_2EKA_ShutoffValvePowerTXV1/Write' + * '' : 'HVAC_model/ACP/PRINT BTS5120_2EKA_ShutoffValvePowerTXV2/Write' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ChannelPTCPower1/Write' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ChannelPTCPower2/Write' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_FrontIncarMotor/Write' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_RearIncarMotor/Write' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ReservePowerSupply/Write' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ShutOFFValveFront/Write' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_ShutOFFValveRear/Write' + * '' : 'HVAC_model/ACP/PRINT BTS5180_2EKA_TwoWayValve/Write' + * '' : 'HVAC_model/ACP/PRINT IGN_ANS/Write' + * '' : 'HVAC_model/ACP/PRINT PBATT_CHECK/Write' + * '' : 'HVAC_model/ACP/PRINT Pressure_DIAG/Write' + * '' : 'HVAC_model/ACP/PRINT Reserve_Sensor_Duct_Temp_1/Write' + * '' : 'HVAC_model/ACP/PRINT Reserve_Sensor_Duct_Temp_2/Write' + * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/Compare To Constant' + * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/Compare To Constant1' + * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/Compare To Constant2' + * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/RealTime_Timer' + * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/UDS ERROR' + * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/Write' + * '' : 'HVAC_model/ACP/PRINT Sensor_AC_Pressure/Write ERROR' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant1' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant10' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant11' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant12' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant13' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant14' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant15' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant16' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant17' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant18' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant2' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant3' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant4' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant5' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant6' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant7' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant8' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Compare To Constant9' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/RealTime_Timer1' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/RealTime_Timer2' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/RealTime_Timer3' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/RealTime_Timer4' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/RealTime_Timer5' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/RealTime_Timer6' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/UDS ERROR1' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/UDS ERROR2' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/UDS ERROR3' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/UDS ERROR4' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/UDS ERROR5' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/UDS ERROR6' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write 1' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write 2' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write 3' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write 4' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write 5' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write 6' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write ERROR1' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write ERROR2' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write ERROR3' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write ERROR4' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write ERROR5' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct1/Write ERROR6' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct5/Write' + * '' : 'HVAC_model/ACP/PRINT Sensor_Front_Duct6/Write' + * '' : 'HVAC_model/ACP/PRINT VN7008AJ_DIAG_FrontLINActuatorPowerDriverAB/Write' + * '' : 'HVAC_model/ACP/PRINT VN7008AJ_DIAG_RearLINActuatorPowerDriverC/Write' + * '' : 'HVAC_model/ACP/PRINT VN7008AJ_FrontLINActuatorPowerDriverAB/Write' + * '' : 'HVAC_model/ACP/PRINT VN7008AJ_RearLINActuatorPowerDriverC/Write' + * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant' + * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant1' + * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant10' + * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant11' + * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant2' + * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant3' + * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant4' + * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant5' + * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant6' + * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant7' + * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant8' + * '' : 'HVAC_model/ACP/Rear_Duct/Compare To Constant9' + * '' : 'HVAC_model/ACP/Rear_Duct/RealTime_Timer' + * '' : 'HVAC_model/ACP/Rear_Duct/RealTime_Timer1' + * '' : 'HVAC_model/ACP/Rear_Duct/RealTime_Timer2' + * '' : 'HVAC_model/ACP/Rear_Duct/RealTime_Timer3' + * '' : 'HVAC_model/ACP/Rear_Duct/UDS ERROR' + * '' : 'HVAC_model/ACP/Rear_Duct/UDS ERROR1' + * '' : 'HVAC_model/ACP/Rear_Duct/UDS ERROR2' + * '' : 'HVAC_model/ACP/Rear_Duct/UDS ERROR3' + * '' : 'HVAC_model/ACP/Rear_Duct/Write ' + * '' : 'HVAC_model/ACP/Rear_Duct/Write 1' + * '' : 'HVAC_model/ACP/Rear_Duct/Write 2' + * '' : 'HVAC_model/ACP/Rear_Duct/Write 3' + * '' : 'HVAC_model/ACP/Rear_Duct/Write ERROR' + * '' : 'HVAC_model/ACP/Rear_Duct/Write ERROR1' + * '' : 'HVAC_model/ACP/Rear_Duct/Write ERROR2' + * '' : 'HVAC_model/ACP/Rear_Duct/Write ERROR3' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Инициализация FL' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Almost equal' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Calculate delta time' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура опускается' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура поднимается' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура опускается/включен ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура опускается/обычный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура опускается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура опускается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура поднимается/включен ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура поднимается/обычный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура поднимается/включен ускоренный режим/g_ausINCARRATE_RISING_DIFF_F[8]' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура поднимается/обычный режим/INCARRATE_RISING_DIFF_F[7]' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура поднимается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура поднимается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FL/Фильтрация FL температуры/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Инициализация FR' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Almost equal' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Calculate delta time' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура опускается' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура поднимается' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура опускается/включен ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура опускается/обычный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура опускается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура опускается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура поднимается/включен ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура поднимается/обычный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура поднимается/включен ускоренный режим/g_ausINCARRATE_RISING_DIFF_F[8]' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура поднимается/обычный режим/INCARRATE_RISING_DIFF_F[7]' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура поднимается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура поднимается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar FR/Фильтрация FR температуры/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Инициализация RL' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Almost equal' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Calculate delta time' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура опускается' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура поднимается' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура опускается/включен ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура опускается/обычный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура опускается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура опускается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура поднимается/включен ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура поднимается/обычный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура поднимается/включен ускоренный режим/g_ausINCARRATE_RISING_DIFF_R[8]' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура поднимается/обычный режим/INCARRATE_RISING_DIFF_R[7]' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура поднимается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура поднимается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RL/Фильтрация RL температуры/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Инициализация RR' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Almost equal' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Calculate delta time' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура опускается' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура поднимается' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура опускается/включен ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура опускается/обычный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура опускается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура опускается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура поднимается/включен ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура поднимается/обычный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура поднимается/включен ускоренный режим/g_ausINCARRATE_RISING_DIFF_R[8]' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура поднимается/обычный режим/INCARRATE_RISING_DIFF_R[7]' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура поднимается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура поднимается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/ACP/filter incar/filter incar RR/Фильтрация RR температуры/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/ACP/incar sensors/incar FL' + * '' : 'HVAC_model/ACP/incar sensors/incar FR' + * '' : 'HVAC_model/ACP/incar sensors/incar RL' + * '' : 'HVAC_model/ACP/incar sensors/incar RR' + * '' : 'HVAC_model/ACP/incar sensors/process error F' + * '' : 'HVAC_model/ACP/incar sensors/process error R' + * '' : 'HVAC_model/ACP/incar sensors/incar FL/Compare To Constant' + * '' : 'HVAC_model/ACP/incar sensors/incar FL/Compare To Constant1' + * '' : 'HVAC_model/ACP/incar sensors/incar FL/Compare To Constant2' + * '' : 'HVAC_model/ACP/incar sensors/incar FL/RealTime_Timer' + * '' : 'HVAC_model/ACP/incar sensors/incar FL/UDS ERROR' + * '' : 'HVAC_model/ACP/incar sensors/incar FL/Write ERROR' + * '' : 'HVAC_model/ACP/incar sensors/incar FR/Compare To Constant6' + * '' : 'HVAC_model/ACP/incar sensors/incar FR/Compare To Constant7' + * '' : 'HVAC_model/ACP/incar sensors/incar FR/Compare To Constant8' + * '' : 'HVAC_model/ACP/incar sensors/incar FR/RealTime_Timer2' + * '' : 'HVAC_model/ACP/incar sensors/incar FR/UDS ERROR2' + * '' : 'HVAC_model/ACP/incar sensors/incar FR/Write ERROR2' + * '' : 'HVAC_model/ACP/incar sensors/incar RL/Compare To Constant3' + * '' : 'HVAC_model/ACP/incar sensors/incar RL/Compare To Constant4' + * '' : 'HVAC_model/ACP/incar sensors/incar RL/Compare To Constant5' + * '' : 'HVAC_model/ACP/incar sensors/incar RL/RealTime_Timer1' + * '' : 'HVAC_model/ACP/incar sensors/incar RL/UDS ERROR1' + * '' : 'HVAC_model/ACP/incar sensors/incar RL/Write ERROR1' + * '' : 'HVAC_model/ACP/incar sensors/incar RR/Compare To Constant10' + * '' : 'HVAC_model/ACP/incar sensors/incar RR/Compare To Constant11' + * '' : 'HVAC_model/ACP/incar sensors/incar RR/Compare To Constant9' + * '' : 'HVAC_model/ACP/incar sensors/incar RR/RealTime_Timer3' + * '' : 'HVAC_model/ACP/incar sensors/incar RR/UDS ERROR3' + * '' : 'HVAC_model/ACP/incar sensors/incar RR/Write ERROR3' + * '' : 'HVAC_model/ACP/incar sensors/process error F/Write IncarFL' + * '' : 'HVAC_model/ACP/incar sensors/process error F/Write IncarFR' + * '' : 'HVAC_model/ACP/incar sensors/process error R/Write IncarRL' + * '' : 'HVAC_model/ACP/incar sensors/process error R/Write IncarRR' + * '' : 'HVAC_model/AUTO/Zone_Climate_Logic_Auto_FL1' + * '' : 'HVAC_model/AUTO/Zone_Climate_Logic_Auto_FL2' + * '' : 'HVAC_model/AUTO/Zone_Climate_Logic_Auto_FL3' + * '' : 'HVAC_model/AUTO/Zone_Climate_Logic_Auto_FL4' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Individual foot' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Individual foot1' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control FL' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control FR' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control RL' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control RR' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Bi Level' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Def' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Foor + Def' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Foot' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Hi_Level' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Tri-Level' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Left AF - manual directions/AF for Vent mode' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Bi Level' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Def' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Foor + Def' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Foot' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Hi_Level' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Tri-Level' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Front zone PWM/Front Right AF - manual directions/AF for Vent mode' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Left AF - manual directions' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Right AF - manual directions' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Left AF - manual directions/AF for Bi Level R' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Left AF - manual directions/AF for Foot R' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Left AF - manual directions/AF for Vent mode R' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Right AF - manual directions/AF for Bi Level R' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Right AF - manual directions/AF for Foot R' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower (PWM) in manual mode/Rear zone PWM/Rear Right AF - manual directions/AF for Vent mode R' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_FL' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_FR' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_RL' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_RR' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_FL/func g_ascAUTO_STEP_AF_F' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_FR/func g_ascAUTO_STEP_AF_F' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_RL/func g_ascAUTO_STEP_AF_F' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/13,1,3,11 _5 AUTO mode AF_RR/func g_ascAUTO_STEP_AF_F' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.5 Vtg_FL_incar' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.6 Vtg_FX_amb' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.7 Vtg_FX_sun' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/MAX1' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/MIN1' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/Saturation Dynamic' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.5 Vtg_FL_incar/X' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.5 Vtg_FL_incar/Y' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.6 Vtg_FX_amb/X' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.6 Vtg_FX_amb/Y' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.7 Vtg_FX_sun/X' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.7 Vtg_FX_sun/Y' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.5 Vtg_FR_incar' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.6 Vtg_FX_amb' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.7 Vtg_FR_sun' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/MAX1' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/MIN1' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/Saturation Dynamic' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.5 Vtg_FR_incar/X' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.5 Vtg_FR_incar/Y' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.6 Vtg_FX_amb/X' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.6 Vtg_FX_amb/Y' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.7 Vtg_FR_sun/X' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.7 Vtg_FR_sun/Y' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/RealTime_Timer' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/Saturation Dynamic' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/correction max' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/correction rate' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/correction_start_time' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/is_ending_with_5' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/RealTime_Timer/Detect Rise Positive' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_left/RealTime_Timer/Detect Rise Positive/Positive' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/RealTime_Timer' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/Saturation Dynamic' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/correction max' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/correction rate' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/correction_start_time' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/is_ending_with_5' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/RealTime_Timer/Detect Rise Positive' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/wait_correction_right/RealTime_Timer/Detect Rise Positive/Positive' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.5 Vtg_RL_incar' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.6 Vtg_RX_amb' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.7 Vtg_RX_sun' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/MAX' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/MIN' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/Saturation Dynamic' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.5 Vtg_RL_incar/X' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.5 Vtg_RL_incar/Y' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.6 Vtg_RX_amb/X' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.6 Vtg_RX_amb/Y' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.7 Vtg_RX_sun/X' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RL_correct (Rear Left)/2.7 Vtg_RX_sun/Y' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.5 Vtg_RR_incar' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.6 Vtg_RX_amb' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.7 Vtg_RX_sun' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/MAX' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/MIN' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/Saturation Dynamic' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.5 Vtg_RR_incar/X' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.5 Vtg_RR_incar/Y' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.6 Vtg_RX_amb/X' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.6 Vtg_RX_amb/Y' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.7 Vtg_RX_sun/X' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Rear/Calc Vtg_RR_correct (Rear Right)1/2.7 Vtg_RX_sun/Y' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control FL/Compare To Constant' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control FL/Compare To Constant1' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control FL/Compare To Constant2' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control FR/Compare To Constant' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control FR/Compare To Constant1' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control FR/Compare To Constant2' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control RL/Compare To Constant' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control RL/Compare To Constant1' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control RL/Compare To Constant2' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control RR/Compare To Constant' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control RR/Compare To Constant1' + * '' : 'HVAC_model/Blower speed (AF) auto or manual/if start control RR/Compare To Constant2' + * '' : 'HVAC_model/CAN INPUT/AC_Max_Active' + * '' : 'HVAC_model/CAN INPUT/Compare To Constant' + * '' : 'HVAC_model/CAN INPUT/Compare To Constant1' + * '' : 'HVAC_model/CAN INPUT/Compare To Constant2' + * '' : 'HVAC_model/CAN INPUT/Compare To Constant3' + * '' : 'HVAC_model/CAN INPUT/Compare To Constant4' + * '' : 'HVAC_model/CAN INPUT/Compare To Constant5' + * '' : 'HVAC_model/CAN INPUT/Compare To Constant7' + * '' : 'HVAC_model/CAN INPUT/Defrost_Active' + * '' : 'HVAC_model/CAN INPUT/Detect Increase' + * '' : 'HVAC_model/CAN INPUT/Detect Increase1' + * '' : 'HVAC_model/CAN INPUT/Detect Increase2' + * '' : 'HVAC_model/CAN INPUT/Detect Increase3' + * '' : 'HVAC_model/CAN INPUT/Detect Increase4' + * '' : 'HVAC_model/CAN INPUT/Detect Increase5' + * '' : 'HVAC_model/CAN INPUT/Detect Increase7' + * '' : 'HVAC_model/CAN INPUT/Full_Rec_Active' + * '' : 'HVAC_model/CAN INPUT/Subsystem' + * '' : 'HVAC_model/CAN INPUT/Subsystem1' + * '' : 'HVAC_model/CAN INPUT/Subsystem10' + * '' : 'HVAC_model/CAN INPUT/Subsystem11' + * '' : 'HVAC_model/CAN INPUT/Subsystem12' + * '' : 'HVAC_model/CAN INPUT/Subsystem13' + * '' : 'HVAC_model/CAN INPUT/Subsystem14' + * '' : 'HVAC_model/CAN INPUT/Subsystem15' + * '' : 'HVAC_model/CAN INPUT/Subsystem16' + * '' : 'HVAC_model/CAN INPUT/Subsystem17' + * '' : 'HVAC_model/CAN INPUT/Subsystem18' + * '' : 'HVAC_model/CAN INPUT/Subsystem19' + * '' : 'HVAC_model/CAN INPUT/Subsystem2' + * '' : 'HVAC_model/CAN INPUT/Subsystem20' + * '' : 'HVAC_model/CAN INPUT/Subsystem21' + * '' : 'HVAC_model/CAN INPUT/Subsystem22' + * '' : 'HVAC_model/CAN INPUT/Subsystem23' + * '' : 'HVAC_model/CAN INPUT/Subsystem24' + * '' : 'HVAC_model/CAN INPUT/Subsystem25' + * '' : 'HVAC_model/CAN INPUT/Subsystem26' + * '' : 'HVAC_model/CAN INPUT/Subsystem27' + * '' : 'HVAC_model/CAN INPUT/Subsystem28' + * '' : 'HVAC_model/CAN INPUT/Subsystem29' + * '' : 'HVAC_model/CAN INPUT/Subsystem3' + * '' : 'HVAC_model/CAN INPUT/Subsystem30' + * '' : 'HVAC_model/CAN INPUT/Subsystem31' + * '' : 'HVAC_model/CAN INPUT/Subsystem32' + * '' : 'HVAC_model/CAN INPUT/Subsystem33' + * '' : 'HVAC_model/CAN INPUT/Subsystem34' + * '' : 'HVAC_model/CAN INPUT/Subsystem35' + * '' : 'HVAC_model/CAN INPUT/Subsystem36' + * '' : 'HVAC_model/CAN INPUT/Subsystem37' + * '' : 'HVAC_model/CAN INPUT/Subsystem38' + * '' : 'HVAC_model/CAN INPUT/Subsystem39' + * '' : 'HVAC_model/CAN INPUT/Subsystem4' + * '' : 'HVAC_model/CAN INPUT/Subsystem40' + * '' : 'HVAC_model/CAN INPUT/Subsystem41' + * '' : 'HVAC_model/CAN INPUT/Subsystem42' + * '' : 'HVAC_model/CAN INPUT/Subsystem43' + * '' : 'HVAC_model/CAN INPUT/Subsystem44' + * '' : 'HVAC_model/CAN INPUT/Subsystem45' + * '' : 'HVAC_model/CAN INPUT/Subsystem46' + * '' : 'HVAC_model/CAN INPUT/Subsystem47' + * '' : 'HVAC_model/CAN INPUT/Subsystem48' + * '' : 'HVAC_model/CAN INPUT/Subsystem49' + * '' : 'HVAC_model/CAN INPUT/Subsystem5' + * '' : 'HVAC_model/CAN INPUT/Subsystem50' + * '' : 'HVAC_model/CAN INPUT/Subsystem6' + * '' : 'HVAC_model/CAN INPUT/Subsystem62' + * '' : 'HVAC_model/CAN INPUT/Subsystem63' + * '' : 'HVAC_model/CAN INPUT/Subsystem64' + * '' : 'HVAC_model/CAN INPUT/Subsystem7' + * '' : 'HVAC_model/CAN INPUT/Subsystem8' + * '' : 'HVAC_model/CAN INPUT/Subsystem9' + * '' : 'HVAC_model/CAN INPUT/if action' + * '' : 'HVAC_model/CAN INPUT/if action1' + * '' : 'HVAC_model/CAN INPUT/if action2' + * '' : 'HVAC_model/CAN INPUT/if action4' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR' + * '' : 'HVAC_model/CAN INPUT/Subsystem2/LO HI mode' + * '' : 'HVAC_model/CAN INPUT/Subsystem2/LO HI mode/HI mode' + * '' : 'HVAC_model/CAN INPUT/Subsystem2/LO HI mode/LO mode' + * '' : 'HVAC_model/CAN INPUT/Subsystem2/LO HI mode/not LO or HI' + * '' : 'HVAC_model/CAN INPUT/Subsystem24/full sync action' + * '' : 'HVAC_model/CAN INPUT/Subsystem24/sync front action' + * '' : 'HVAC_model/CAN INPUT/Subsystem24/sync off action' + * '' : 'HVAC_model/CAN INPUT/Subsystem3/LO HI mode' + * '' : 'HVAC_model/CAN INPUT/Subsystem3/LO HI mode/HI mode' + * '' : 'HVAC_model/CAN INPUT/Subsystem3/LO HI mode/LO mode' + * '' : 'HVAC_model/CAN INPUT/Subsystem3/LO HI mode/not LO or HI' + * '' : 'HVAC_model/CAN INPUT/Subsystem44/sync off rear action' + * '' : 'HVAC_model/CAN INPUT/Subsystem44/sync rear action' + * '' : 'HVAC_model/CAN INPUT/Subsystem44/sync off rear action/logger' + * '' : 'HVAC_model/CAN INPUT/Subsystem44/sync rear action/logger' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Инициализация температуры' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Calculate delta time' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Coolant temp threshold' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Медленно' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Almost equal' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/включен ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/обычный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/включен ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/обычный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/обычный режим/AMBRATE_RISING_DIFF[7]' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за скорости/Subsystem Reference/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Almost equal' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/включен ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/обычный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/включен ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/обычный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/обычный режим/AMBRATE_RISING_DIFF[7]' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Быстро из-за флага/Subsystem Reference/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Медленно/Almost equal' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Медленно/Если температура опускается' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Медленно/Если температура поднимается' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Медленно/Если температура опускается/обычное понижение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "прогретого" двигателя/Вычисление для движущегося авто/Медленно/Если температура поднимается/границы' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Almost equal' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/включен ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/обычный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/включен ускоренный режим/Отключаем ускоренный режим/обычное понижение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/обычный режим/AMBRATE_FALLING_DIFF[7]' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура опускается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/включен ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/обычный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/включен ускоренный режим/AMBRATE_RISING_DIFF[8]' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/включен ускоренный режим/Отключаем ускоренный режим/обычное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/включен ускоренный режим/Продолжаем в ускоренном/ускоренное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/обычный режим/AMBRATE_RISING_DIFF[7]' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/обычный режим/включаем ускоренный режим' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/обычный режим/обычный режим повышения' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/обычный режим/включаем ускоренный режим/ускоренное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem45/10.2 filter_sensor_ambient/Фильтрация температуры/Режим "холодного" двигателя/Если температура поднимается/обычный режим/обычный режим повышения/обычное повышение темп.' + * '' : 'HVAC_model/CAN INPUT/Subsystem5/LO HI mode' + * '' : 'HVAC_model/CAN INPUT/Subsystem5/LO HI mode/HI mode' + * '' : 'HVAC_model/CAN INPUT/Subsystem5/LO HI mode/LO mode' + * '' : 'HVAC_model/CAN INPUT/Subsystem5/LO HI mode/not LO or HI' + * '' : 'HVAC_model/CAN INPUT/Subsystem6/LO HI mode' + * '' : 'HVAC_model/CAN INPUT/Subsystem6/LO HI mode/HI mode' + * '' : 'HVAC_model/CAN INPUT/Subsystem6/LO HI mode/LO mode' + * '' : 'HVAC_model/CAN INPUT/Subsystem6/LO HI mode/not LO or HI' + * '' : 'HVAC_model/CAN INPUT/if action/sync front action1' + * '' : 'HVAC_model/CAN INPUT/if action/sync front action3' + * '' : 'HVAC_model/CAN INPUT/if action1/sync front action1' + * '' : 'HVAC_model/CAN INPUT/if action1/sync front action3' + * '' : 'HVAC_model/CAN INPUT/if action2/sync front action1' + * '' : 'HVAC_model/CAN INPUT/if action2/sync front action3' + * '' : 'HVAC_model/CAN INPUT/if action4/sync front action1' + * '' : 'HVAC_model/CAN INPUT/if action4/sync front action3' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL/Compare To Constant3' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL/Detect Increase3' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL/If Action Subsystem' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL/If Action Subsystem/temp down' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL/If Action Subsystem/temp up' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL/If Action Subsystem/temp down/LO HI mode R' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL/If Action Subsystem/temp down/LO HI mode R/HI mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL/If Action Subsystem/temp down/LO HI mode R/LO mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL/If Action Subsystem/temp down/LO HI mode R/not LO or HI' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL/If Action Subsystem/temp up/LO HI mode R' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL/If Action Subsystem/temp up/LO HI mode R/HI mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL/If Action Subsystem/temp up/LO HI mode R/LO mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleFL/If Action Subsystem/temp up/LO HI mode R/not LO or HI' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR/Compare To Constant3' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR/Detect Increase3' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR/If Action Subsystem' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR/If Action Subsystem/temp down' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR/If Action Subsystem/temp up' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR/If Action Subsystem/temp down/LO HI mode R' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR/If Action Subsystem/temp down/LO HI mode R/HI mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR/If Action Subsystem/temp down/LO HI mode R/LO mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR/If Action Subsystem/temp down/LO HI mode R/not LO or HI' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR/If Action Subsystem/temp up/LO HI mode R' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR/If Action Subsystem/temp up/LO HI mode R/HI mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR/If Action Subsystem/temp up/LO HI mode R/LO mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleFR/If Action Subsystem/temp up/LO HI mode R/not LO or HI' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL/Compare To Constant3' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL/Detect Increase3' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL/If Action Subsystem' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL/If Action Subsystem/temp down' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL/If Action Subsystem/temp up' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL/If Action Subsystem/temp down/LO HI mode R' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL/If Action Subsystem/temp down/LO HI mode R/HI mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL/If Action Subsystem/temp down/LO HI mode R/LO mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL/If Action Subsystem/temp down/LO HI mode R/not LO or HI' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL/If Action Subsystem/temp up/LO HI mode R' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL/If Action Subsystem/temp up/LO HI mode R/HI mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL/If Action Subsystem/temp up/LO HI mode R/LO mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleRL/If Action Subsystem/temp up/LO HI mode R/not LO or HI' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR/Compare To Constant3' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR/Detect Increase3' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR/If Action Subsystem' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR/If Action Subsystem/temp down' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR/If Action Subsystem/temp up' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR/If Action Subsystem/temp down/LO HI mode R' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR/If Action Subsystem/temp down/LO HI mode R/HI mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR/If Action Subsystem/temp down/LO HI mode R/LO mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR/If Action Subsystem/temp down/LO HI mode R/not LO or HI' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR/If Action Subsystem/temp up/LO HI mode R' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR/If Action Subsystem/temp up/LO HI mode R/HI mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR/If Action Subsystem/temp up/LO HI mode R/LO mode' + * '' : 'HVAC_model/CAN INPUT/tempToggleRR/If Action Subsystem/temp up/LO HI mode R/not LO or HI' + * '' : 'HVAC_model/CAN OUTPUT/Subsystem' + * '' : 'HVAC_model/CAN OUTPUT/Subsystem1' + * '' : 'HVAC_model/CAN OUTPUT/Subsystem2' + * '' : 'HVAC_model/CAN OUTPUT/Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL0' + * '' : 'HVAC_model/LIN/CHANEL1' + * '' : 'HVAC_model/LIN/CHANEL2' + * '' : 'HVAC_model/LIN/CHANEL3' + * '' : 'HVAC_model/LIN/CHANEL4' + * '' : 'HVAC_model/LIN/Chart' + * '' : 'HVAC_model/LIN/CHANEL0/Actuator_Ch0_Command_Model' + * '' : 'HVAC_model/LIN/CHANEL0/COM = 0' + * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Max' + * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Min' + * '' : 'HVAC_model/LIN/CHANEL0/Homing' + * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Max' + * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Min' + * '' : 'HVAC_model/LIN/CHANEL0/Move to position Max' + * '' : 'HVAC_model/LIN/CHANEL0/Move to position Min' + * '' : 'HVAC_model/LIN/CHANEL0/Normal Mode' + * '' : 'HVAC_model/LIN/CHANEL0/Stop Mode' + * '' : 'HVAC_model/LIN/CHANEL0/steps to percents' + * '' : 'HVAC_model/LIN/CHANEL0/COM = 0/Compare To Constant' + * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Max/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Max/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Max/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Min/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Min/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL0/Check Stall Min/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Count step actuator' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem4' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem/Compare To Constant' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem/Compare To Constant1' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem/Subsystem' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1/CAN ERROR' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1/Compare To Constant' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1/Subsystem' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1/UDS ERROR' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem1/CAN ERROR/Write ERROR' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem2/Compare To Constant3' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem2/Compare To Constant4' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem2/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem1' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/MATLAB Function' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1/Send position' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1/Send position/percents to steps' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem1/UDS ERROR' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR/Write ERROR' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem4/Send position' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem4/Send position/percents to steps' + * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Max/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Max/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Max/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Min/If Action Subsystem' + * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Min/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL0/Initial CPOS Min/If Action Subsystem/Write' + * '' : 'HVAC_model/LIN/CHANEL0/Move to position Max/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL0/Move to position Max/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL0/Move to position Max/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL0/Move to position Min/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL0/Move to position Min/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL0/Move to position Min/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL0/Normal Mode/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL0/Normal Mode/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL0/Normal Mode/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL0/Stop Mode/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL0/Stop Mode/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL0/Stop Mode/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL1/Actuator_Ch1_Command_Model' + * '' : 'HVAC_model/LIN/CHANEL1/COM = 0' + * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Max' + * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Min' + * '' : 'HVAC_model/LIN/CHANEL1/Homing' + * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Max' + * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Min' + * '' : 'HVAC_model/LIN/CHANEL1/Move to position Max' + * '' : 'HVAC_model/LIN/CHANEL1/Move to position Min' + * '' : 'HVAC_model/LIN/CHANEL1/Normal Mode' + * '' : 'HVAC_model/LIN/CHANEL1/Stop Mode' + * '' : 'HVAC_model/LIN/CHANEL1/stepr to percents' + * '' : 'HVAC_model/LIN/CHANEL1/COM = 0/Compare To Constant' + * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Max/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Max/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Max/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Min/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Min/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL1/Check Stall Min/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Count step actuator' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem4' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem/Compare To Constant' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem/Compare To Constant1' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem/Subsystem' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1/CAN ERROR' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1/Compare To Constant' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1/Subsystem' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1/UDS ERROR' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem1/CAN ERROR/Write ERROR' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem2/Compare To Constant3' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem2/Compare To Constant4' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem2/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem1' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem/MATLAB Function' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1/Send position' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1/Send position/percents to steps' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem1/UDS ERROR' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR/Write ERROR' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem4/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem4/Send position' + * '' : 'HVAC_model/LIN/CHANEL1/Homing/Switch Case Action Subsystem4/Send position/percents to steps' + * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Max/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Max/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Max/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Min/If Action Subsystem' + * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Min/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL1/Initial CPOS Min/If Action Subsystem/Write' + * '' : 'HVAC_model/LIN/CHANEL1/Move to position Max/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL1/Move to position Max/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL1/Move to position Max/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL1/Move to position Min/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL1/Move to position Min/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL1/Move to position Min/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL1/Normal Mode/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL1/Normal Mode/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL1/Normal Mode/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL1/Stop Mode/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL1/Stop Mode/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL1/Stop Mode/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL2/Actuator_Ch1_Command_Model' + * '' : 'HVAC_model/LIN/CHANEL2/COM = 0' + * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Max' + * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Min' + * '' : 'HVAC_model/LIN/CHANEL2/Homing' + * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Max' + * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Min' + * '' : 'HVAC_model/LIN/CHANEL2/Move to position Max' + * '' : 'HVAC_model/LIN/CHANEL2/Move to position Min' + * '' : 'HVAC_model/LIN/CHANEL2/Normal Mode' + * '' : 'HVAC_model/LIN/CHANEL2/Stop Mode' + * '' : 'HVAC_model/LIN/CHANEL2/stepr to percents' + * '' : 'HVAC_model/LIN/CHANEL2/COM = 0/Compare To Constant' + * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Max/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Max/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Max/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Min/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Min/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL2/Check Stall Min/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Count step actuator' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem4' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem/Compare To Constant' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem/Compare To Constant1' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem/Subsystem' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1/CAN ERROR' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1/Compare To Constant' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1/Subsystem' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1/UDS ERROR' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem1/CAN ERROR/Write ERROR' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem2/Compare To Constant3' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem2/Compare To Constant4' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem2/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem1' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem/MATLAB Function' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1/Send position' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1/Send position/percents to steps' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem1/UDS ERROR' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR/Write ERROR' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem4/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem4/Send position' + * '' : 'HVAC_model/LIN/CHANEL2/Homing/Switch Case Action Subsystem4/Send position/percents to steps' + * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Max/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Max/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Max/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Min/If Action Subsystem' + * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Min/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL2/Initial CPOS Min/If Action Subsystem/Write' + * '' : 'HVAC_model/LIN/CHANEL2/Move to position Max/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL2/Move to position Max/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL2/Move to position Max/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL2/Move to position Min/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL2/Move to position Min/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL2/Move to position Min/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL2/Normal Mode/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL2/Normal Mode/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL2/Normal Mode/If Action Subsystem2/Write' + * '' : 'HVAC_model/LIN/CHANEL2/Stop Mode/If Action Subsystem2' + * '' : 'HVAC_model/LIN/CHANEL2/Stop Mode/If Action Subsystem3' + * '' : 'HVAC_model/LIN/CHANEL2/Stop Mode/If Action Subsystem2/Write' + * '' : 'HVAC_model/PID DUCT/PID Controller' + * '' : 'HVAC_model/PID DUCT/PID Controller1' + * '' : 'HVAC_model/PID DUCT/PID Controller2' + * '' : 'HVAC_model/PID DUCT/PID Controller3' + * '' : 'HVAC_model/PID DUCT/PID Controller4' + * '' : 'HVAC_model/PID DUCT/PID Controller5' + * '' : 'HVAC_model/PID DUCT/PID Controller/Anti-windup' + * '' : 'HVAC_model/PID DUCT/PID Controller/D Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller/External Derivative' + * '' : 'HVAC_model/PID DUCT/PID Controller/Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller/Filter ICs' + * '' : 'HVAC_model/PID DUCT/PID Controller/I Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller/Ideal P Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller/Ideal P Gain Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller/Integrator' + * '' : 'HVAC_model/PID DUCT/PID Controller/Integrator ICs' + * '' : 'HVAC_model/PID DUCT/PID Controller/N Copy' + * '' : 'HVAC_model/PID DUCT/PID Controller/N Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller/P Copy' + * '' : 'HVAC_model/PID DUCT/PID Controller/Parallel P Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller/Reset Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller/Saturation' + * '' : 'HVAC_model/PID DUCT/PID Controller/Saturation Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller/Sum' + * '' : 'HVAC_model/PID DUCT/PID Controller/Sum Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller/Tracking Mode' + * '' : 'HVAC_model/PID DUCT/PID Controller/Tracking Mode Sum' + * '' : 'HVAC_model/PID DUCT/PID Controller/Tsamp - Integral' + * '' : 'HVAC_model/PID DUCT/PID Controller/Tsamp - Ngain' + * '' : 'HVAC_model/PID DUCT/PID Controller/postSat Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller/preSat Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller/Anti-windup/Disc. Clamping Parallel' + * '' : 'HVAC_model/PID DUCT/PID Controller/Anti-windup/Disc. Clamping Parallel/Dead Zone' + * '' : 'HVAC_model/PID DUCT/PID Controller/Anti-windup/Disc. Clamping Parallel/Dead Zone/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller/D Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller/External Derivative/Error' + * '' : 'HVAC_model/PID DUCT/PID Controller/Filter/Disc. Forward Euler Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller/Filter ICs/Internal IC - Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller/I Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller/Ideal P Gain/Passthrough' + * '' : 'HVAC_model/PID DUCT/PID Controller/Ideal P Gain Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller/Integrator/Discrete' + * '' : 'HVAC_model/PID DUCT/PID Controller/Integrator ICs/Internal IC' + * '' : 'HVAC_model/PID DUCT/PID Controller/N Copy/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller/N Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller/P Copy/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller/Parallel P Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller/Reset Signal/External Reset' + * '' : 'HVAC_model/PID DUCT/PID Controller/Saturation/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller/Saturation Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller/Sum/Sum_PID' + * '' : 'HVAC_model/PID DUCT/PID Controller/Sum Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller/Tracking Mode/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller/Tracking Mode Sum/Tracking Mode' + * '' : 'HVAC_model/PID DUCT/PID Controller/Tsamp - Integral/TsSignalSpecification' + * '' : 'HVAC_model/PID DUCT/PID Controller/Tsamp - Ngain/Passthrough' + * '' : 'HVAC_model/PID DUCT/PID Controller/postSat Signal/Forward_Path' + * '' : 'HVAC_model/PID DUCT/PID Controller/preSat Signal/Forward_Path' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Anti-windup' + * '' : 'HVAC_model/PID DUCT/PID Controller1/D Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller1/External Derivative' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Filter ICs' + * '' : 'HVAC_model/PID DUCT/PID Controller1/I Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Ideal P Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Ideal P Gain Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Integrator' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Integrator ICs' + * '' : 'HVAC_model/PID DUCT/PID Controller1/N Copy' + * '' : 'HVAC_model/PID DUCT/PID Controller1/N Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller1/P Copy' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Parallel P Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Reset Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Saturation' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Saturation Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Sum' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Sum Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Tracking Mode' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Tracking Mode Sum' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Tsamp - Integral' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Tsamp - Ngain' + * '' : 'HVAC_model/PID DUCT/PID Controller1/postSat Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller1/preSat Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Anti-windup/Disc. Clamping Parallel' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Anti-windup/Disc. Clamping Parallel/Dead Zone' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Anti-windup/Disc. Clamping Parallel/Dead Zone/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller1/D Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller1/External Derivative/Error' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Filter/Disc. Forward Euler Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Filter ICs/Internal IC - Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller1/I Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Ideal P Gain/Passthrough' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Ideal P Gain Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Integrator/Discrete' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Integrator ICs/Internal IC' + * '' : 'HVAC_model/PID DUCT/PID Controller1/N Copy/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller1/N Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller1/P Copy/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Parallel P Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Reset Signal/External Reset' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Saturation/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Saturation Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Sum/Sum_PID' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Sum Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Tracking Mode/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Tracking Mode Sum/Tracking Mode' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Tsamp - Integral/TsSignalSpecification' + * '' : 'HVAC_model/PID DUCT/PID Controller1/Tsamp - Ngain/Passthrough' + * '' : 'HVAC_model/PID DUCT/PID Controller1/postSat Signal/Forward_Path' + * '' : 'HVAC_model/PID DUCT/PID Controller1/preSat Signal/Forward_Path' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Anti-windup' + * '' : 'HVAC_model/PID DUCT/PID Controller2/D Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller2/External Derivative' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Filter ICs' + * '' : 'HVAC_model/PID DUCT/PID Controller2/I Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Ideal P Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Ideal P Gain Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Integrator' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Integrator ICs' + * '' : 'HVAC_model/PID DUCT/PID Controller2/N Copy' + * '' : 'HVAC_model/PID DUCT/PID Controller2/N Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller2/P Copy' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Parallel P Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Reset Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Saturation' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Saturation Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Sum' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Sum Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Tracking Mode' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Tracking Mode Sum' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Tsamp - Integral' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Tsamp - Ngain' + * '' : 'HVAC_model/PID DUCT/PID Controller2/postSat Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller2/preSat Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Anti-windup/Disc. Clamping Parallel' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Anti-windup/Disc. Clamping Parallel/Dead Zone' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Anti-windup/Disc. Clamping Parallel/Dead Zone/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller2/D Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller2/External Derivative/Error' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Filter/Disc. Forward Euler Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Filter ICs/Internal IC - Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller2/I Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Ideal P Gain/Passthrough' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Ideal P Gain Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Integrator/Discrete' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Integrator ICs/Internal IC' + * '' : 'HVAC_model/PID DUCT/PID Controller2/N Copy/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller2/N Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller2/P Copy/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Parallel P Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Reset Signal/External Reset' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Saturation/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Saturation Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Sum/Sum_PID' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Sum Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Tracking Mode/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Tracking Mode Sum/Tracking Mode' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Tsamp - Integral/TsSignalSpecification' + * '' : 'HVAC_model/PID DUCT/PID Controller2/Tsamp - Ngain/Passthrough' + * '' : 'HVAC_model/PID DUCT/PID Controller2/postSat Signal/Forward_Path' + * '' : 'HVAC_model/PID DUCT/PID Controller2/preSat Signal/Forward_Path' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Anti-windup' + * '' : 'HVAC_model/PID DUCT/PID Controller3/D Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller3/External Derivative' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Filter ICs' + * '' : 'HVAC_model/PID DUCT/PID Controller3/I Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Ideal P Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Ideal P Gain Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Integrator' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Integrator ICs' + * '' : 'HVAC_model/PID DUCT/PID Controller3/N Copy' + * '' : 'HVAC_model/PID DUCT/PID Controller3/N Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller3/P Copy' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Parallel P Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Reset Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Saturation' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Saturation Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Sum' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Sum Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Tracking Mode' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Tracking Mode Sum' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Tsamp - Integral' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Tsamp - Ngain' + * '' : 'HVAC_model/PID DUCT/PID Controller3/postSat Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller3/preSat Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Anti-windup/Disc. Clamping Parallel' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Anti-windup/Disc. Clamping Parallel/Dead Zone' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Anti-windup/Disc. Clamping Parallel/Dead Zone/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller3/D Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller3/External Derivative/Error' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Filter/Disc. Forward Euler Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Filter ICs/Internal IC - Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller3/I Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Ideal P Gain/Passthrough' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Ideal P Gain Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Integrator/Discrete' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Integrator ICs/Internal IC' + * '' : 'HVAC_model/PID DUCT/PID Controller3/N Copy/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller3/N Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller3/P Copy/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Parallel P Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Reset Signal/External Reset' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Saturation/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Saturation Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Sum/Sum_PID' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Sum Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Tracking Mode/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Tracking Mode Sum/Tracking Mode' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Tsamp - Integral/TsSignalSpecification' + * '' : 'HVAC_model/PID DUCT/PID Controller3/Tsamp - Ngain/Passthrough' + * '' : 'HVAC_model/PID DUCT/PID Controller3/postSat Signal/Forward_Path' + * '' : 'HVAC_model/PID DUCT/PID Controller3/preSat Signal/Forward_Path' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Anti-windup' + * '' : 'HVAC_model/PID DUCT/PID Controller4/D Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller4/External Derivative' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Filter ICs' + * '' : 'HVAC_model/PID DUCT/PID Controller4/I Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Ideal P Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Ideal P Gain Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Integrator' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Integrator ICs' + * '' : 'HVAC_model/PID DUCT/PID Controller4/N Copy' + * '' : 'HVAC_model/PID DUCT/PID Controller4/N Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller4/P Copy' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Parallel P Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Reset Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Saturation' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Saturation Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Sum' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Sum Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Tracking Mode' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Tracking Mode Sum' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Tsamp - Integral' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Tsamp - Ngain' + * '' : 'HVAC_model/PID DUCT/PID Controller4/postSat Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller4/preSat Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Anti-windup/Disc. Clamping Parallel' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Anti-windup/Disc. Clamping Parallel/Dead Zone' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Anti-windup/Disc. Clamping Parallel/Dead Zone/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller4/D Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller4/External Derivative/Error' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Filter/Disc. Forward Euler Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Filter ICs/Internal IC - Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller4/I Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Ideal P Gain/Passthrough' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Ideal P Gain Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Integrator/Discrete' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Integrator ICs/Internal IC' + * '' : 'HVAC_model/PID DUCT/PID Controller4/N Copy/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller4/N Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller4/P Copy/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Parallel P Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Reset Signal/External Reset' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Saturation/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Saturation Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Sum/Sum_PID' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Sum Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Tracking Mode/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Tracking Mode Sum/Tracking Mode' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Tsamp - Integral/TsSignalSpecification' + * '' : 'HVAC_model/PID DUCT/PID Controller4/Tsamp - Ngain/Passthrough' + * '' : 'HVAC_model/PID DUCT/PID Controller4/postSat Signal/Forward_Path' + * '' : 'HVAC_model/PID DUCT/PID Controller4/preSat Signal/Forward_Path' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Anti-windup' + * '' : 'HVAC_model/PID DUCT/PID Controller5/D Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller5/External Derivative' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Filter ICs' + * '' : 'HVAC_model/PID DUCT/PID Controller5/I Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Ideal P Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Ideal P Gain Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Integrator' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Integrator ICs' + * '' : 'HVAC_model/PID DUCT/PID Controller5/N Copy' + * '' : 'HVAC_model/PID DUCT/PID Controller5/N Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller5/P Copy' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Parallel P Gain' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Reset Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Saturation' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Saturation Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Sum' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Sum Fdbk' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Tracking Mode' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Tracking Mode Sum' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Tsamp - Integral' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Tsamp - Ngain' + * '' : 'HVAC_model/PID DUCT/PID Controller5/postSat Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller5/preSat Signal' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Anti-windup/Disc. Clamping Parallel' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Anti-windup/Disc. Clamping Parallel/Dead Zone' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Anti-windup/Disc. Clamping Parallel/Dead Zone/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller5/D Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller5/External Derivative/Error' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Filter/Disc. Forward Euler Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Filter ICs/Internal IC - Filter' + * '' : 'HVAC_model/PID DUCT/PID Controller5/I Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Ideal P Gain/Passthrough' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Ideal P Gain Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Integrator/Discrete' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Integrator ICs/Internal IC' + * '' : 'HVAC_model/PID DUCT/PID Controller5/N Copy/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller5/N Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller5/P Copy/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Parallel P Gain/External Parameters' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Reset Signal/External Reset' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Saturation/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Saturation Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Sum/Sum_PID' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Sum Fdbk/Disabled' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Tracking Mode/Enabled' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Tracking Mode Sum/Tracking Mode' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Tsamp - Integral/TsSignalSpecification' + * '' : 'HVAC_model/PID DUCT/PID Controller5/Tsamp - Ngain/Passthrough' + * '' : 'HVAC_model/PID DUCT/PID Controller5/postSat Signal/Forward_Path' + * '' : 'HVAC_model/PID DUCT/PID Controller5/preSat Signal/Forward_Path' + * '' : 'HVAC_model/PWN/Write' + * '' : 'HVAC_model/PWN/Write1' + * '' : 'HVAC_model/PWN/Write2' + * '' : 'HVAC_model/PWN/Write3' + * '' : 'HVAC_model/Power/Compare To Zero' + * '' : 'HVAC_model/Power/Compare To Zero1' + * '' : 'HVAC_model/Power/Compare To Zero2' + * '' : 'HVAC_model/Power/Subsystem' + * '' : 'HVAC_model/Power/Subsystem2' + * '' : 'HVAC_model/Subsystem/Compare To Constant1' + * '' : 'HVAC_model/Subsystem/MATLAB Function' + * '' : 'HVAC_model/Subsystem/MATLAB Function1' + * '' : 'HVAC_model/Subsystem/PID Controller' + * '' : 'HVAC_model/Subsystem/PID Controller/Anti-windup' + * '' : 'HVAC_model/Subsystem/PID Controller/D Gain' + * '' : 'HVAC_model/Subsystem/PID Controller/External Derivative' + * '' : 'HVAC_model/Subsystem/PID Controller/Filter' + * '' : 'HVAC_model/Subsystem/PID Controller/Filter ICs' + * '' : 'HVAC_model/Subsystem/PID Controller/I Gain' + * '' : 'HVAC_model/Subsystem/PID Controller/Ideal P Gain' + * '' : 'HVAC_model/Subsystem/PID Controller/Ideal P Gain Fdbk' + * '' : 'HVAC_model/Subsystem/PID Controller/Integrator' + * '' : 'HVAC_model/Subsystem/PID Controller/Integrator ICs' + * '' : 'HVAC_model/Subsystem/PID Controller/N Copy' + * '' : 'HVAC_model/Subsystem/PID Controller/N Gain' + * '' : 'HVAC_model/Subsystem/PID Controller/P Copy' + * '' : 'HVAC_model/Subsystem/PID Controller/Parallel P Gain' + * '' : 'HVAC_model/Subsystem/PID Controller/Reset Signal' + * '' : 'HVAC_model/Subsystem/PID Controller/Saturation' + * '' : 'HVAC_model/Subsystem/PID Controller/Saturation Fdbk' + * '' : 'HVAC_model/Subsystem/PID Controller/Sum' + * '' : 'HVAC_model/Subsystem/PID Controller/Sum Fdbk' + * '' : 'HVAC_model/Subsystem/PID Controller/Tracking Mode' + * '' : 'HVAC_model/Subsystem/PID Controller/Tracking Mode Sum' + * '' : 'HVAC_model/Subsystem/PID Controller/Tsamp - Integral' + * '' : 'HVAC_model/Subsystem/PID Controller/Tsamp - Ngain' + * '' : 'HVAC_model/Subsystem/PID Controller/postSat Signal' + * '' : 'HVAC_model/Subsystem/PID Controller/preSat Signal' + * '' : 'HVAC_model/Subsystem/PID Controller/Anti-windup/Disc. Clamping Parallel' + * '' : 'HVAC_model/Subsystem/PID Controller/Anti-windup/Disc. Clamping Parallel/Dead Zone' + * '' : 'HVAC_model/Subsystem/PID Controller/Anti-windup/Disc. Clamping Parallel/Dead Zone/External' + * '' : 'HVAC_model/Subsystem/PID Controller/Anti-windup/Disc. Clamping Parallel/Dead Zone/External/Dead Zone Dynamic' + * '' : 'HVAC_model/Subsystem/PID Controller/D Gain/External Parameters' + * '' : 'HVAC_model/Subsystem/PID Controller/External Derivative/Error' + * '' : 'HVAC_model/Subsystem/PID Controller/Filter/Disc. Forward Euler Filter' + * '' : 'HVAC_model/Subsystem/PID Controller/Filter ICs/Internal IC - Filter' + * '' : 'HVAC_model/Subsystem/PID Controller/I Gain/External Parameters' + * '' : 'HVAC_model/Subsystem/PID Controller/Ideal P Gain/Passthrough' + * '' : 'HVAC_model/Subsystem/PID Controller/Ideal P Gain Fdbk/Disabled' + * '' : 'HVAC_model/Subsystem/PID Controller/Integrator/Discrete' + * '' : 'HVAC_model/Subsystem/PID Controller/Integrator ICs/Internal IC' + * '' : 'HVAC_model/Subsystem/PID Controller/N Copy/Disabled' + * '' : 'HVAC_model/Subsystem/PID Controller/N Gain/External Parameters' + * '' : 'HVAC_model/Subsystem/PID Controller/P Copy/Disabled' + * '' : 'HVAC_model/Subsystem/PID Controller/Parallel P Gain/External Parameters' + * '' : 'HVAC_model/Subsystem/PID Controller/Reset Signal/External Reset' + * '' : 'HVAC_model/Subsystem/PID Controller/Saturation/External' + * '' : 'HVAC_model/Subsystem/PID Controller/Saturation/External/Saturation Dynamic' + * '' : 'HVAC_model/Subsystem/PID Controller/Saturation Fdbk/Disabled' + * '' : 'HVAC_model/Subsystem/PID Controller/Sum/Sum_PID' + * '' : 'HVAC_model/Subsystem/PID Controller/Sum Fdbk/Disabled' + * '' : 'HVAC_model/Subsystem/PID Controller/Tracking Mode/Enabled' + * '' : 'HVAC_model/Subsystem/PID Controller/Tracking Mode Sum/Tracking Mode' + * '' : 'HVAC_model/Subsystem/PID Controller/Tsamp - Integral/TsSignalSpecification' + * '' : 'HVAC_model/Subsystem/PID Controller/Tsamp - Ngain/Passthrough' + * '' : 'HVAC_model/Subsystem/PID Controller/postSat Signal/Forward_Path' + * '' : 'HVAC_model/Subsystem/PID Controller/preSat Signal/Forward_Path' + * '' : 'HVAC_model/Synchronization (SYNC)/all zone sync' + * '' : 'HVAC_model/Synchronization (SYNC)/front sync' + * '' : 'HVAC_model/Synchronization (SYNC)/rear sync' + * '' : 'HVAC_model/Valves auto or manual/Individual foot' + * '' : 'HVAC_model/Valves auto or manual/Individual foot1' + * '' : 'HVAC_model/Valves auto or manual/if start control FL' + * '' : 'HVAC_model/Valves auto or manual/if start control FR' + * '' : 'HVAC_model/Valves auto or manual/if start control RL' + * '' : 'HVAC_model/Valves auto or manual/if start control RR' + * '' : 'HVAC_model/Valves auto or manual/join left and right front' + * '' : 'HVAC_model/Valves auto or manual/join left and right rear' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode ' + * '' : 'HVAC_model/Valves auto or manual/if start control FL/Compare To Constant' + * '' : 'HVAC_model/Valves auto or manual/if start control FL/Compare To Constant1' + * '' : 'HVAC_model/Valves auto or manual/if start control FL/Compare To Constant2' + * '' : 'HVAC_model/Valves auto or manual/if start control FL/Compare To Constant3' + * '' : 'HVAC_model/Valves auto or manual/if start control FL/If Action Subsystem' + * '' : 'HVAC_model/Valves auto or manual/if start control FL/If Action Subsystem1' + * '' : 'HVAC_model/Valves auto or manual/if start control FL/If Action Subsystem/valves for mode' + * '' : 'HVAC_model/Valves auto or manual/if start control FR/Compare To Constant' + * '' : 'HVAC_model/Valves auto or manual/if start control FR/Compare To Constant1' + * '' : 'HVAC_model/Valves auto or manual/if start control FR/Compare To Constant2' + * '' : 'HVAC_model/Valves auto or manual/if start control FR/Compare To Constant3' + * '' : 'HVAC_model/Valves auto or manual/if start control FR/If Action Subsystem' + * '' : 'HVAC_model/Valves auto or manual/if start control FR/If Action Subsystem1' + * '' : 'HVAC_model/Valves auto or manual/if start control FR/If Action Subsystem/valves for mode' + * '' : 'HVAC_model/Valves auto or manual/if start control RL/Compare To Constant' + * '' : 'HVAC_model/Valves auto or manual/if start control RL/Compare To Constant1' + * '' : 'HVAC_model/Valves auto or manual/if start control RL/Compare To Constant2' + * '' : 'HVAC_model/Valves auto or manual/if start control RL/Compare To Constant3' + * '' : 'HVAC_model/Valves auto or manual/if start control RL/If Action Subsystem' + * '' : 'HVAC_model/Valves auto or manual/if start control RL/If Action Subsystem1' + * '' : 'HVAC_model/Valves auto or manual/if start control RL/If Action Subsystem/valves_rear_left' + * '' : 'HVAC_model/Valves auto or manual/if start control RR/Compare To Constant' + * '' : 'HVAC_model/Valves auto or manual/if start control RR/Compare To Constant1' + * '' : 'HVAC_model/Valves auto or manual/if start control RR/Compare To Constant2' + * '' : 'HVAC_model/Valves auto or manual/if start control RR/Compare To Constant3' + * '' : 'HVAC_model/Valves auto or manual/if start control RR/If Action Subsystem' + * '' : 'HVAC_model/Valves auto or manual/if start control RR/If Action Subsystem1' + * '' : 'HVAC_model/Valves auto or manual/if start control RR/If Action Subsystem/valves_rear_right' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/front' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/front/MODE_for_set_and_lvl' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/front/MODE_for_set_and_lvl1' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/front/valves_front_left' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/front/valves_front_right' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/MODE_by_duct_tg_R_for_LVL' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg увеличивается RL' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg увеличивается RR' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg уменьшается RL' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg уменьшается RR' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/valves_rear_left' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/valves_rear_right' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg увеличивается RL/increase' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg увеличивается RR/increase' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg уменьшается RL/decrease' + * '' : 'HVAC_model/Valves auto or manual/valves in auto mode/rear/duct_tg уменьшается RR/decrease' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Bi Level' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Def' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Foot' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Foot + Def' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Hi_Level' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Tri-Level' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Left Valves - manual directions/Valves for Vent mode' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Bi Level' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Def' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Foot' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Foot + Def' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Hi_Level' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Tri-Level' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Front zone valves/Front Right Valves - manual directions/Valves for Vent mode' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves left - manual directions' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves right - manual directions' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves left - manual directions/AF for Bi Level' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves left - manual directions/AF for Foot' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves left - manual directions/valves for Vent mode' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves right - manual directions/AF for Bi Level' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves right - manual directions/AF for Foot' + * '' : 'HVAC_model/Valves auto or manual/valves in manual mode /Rear zone valves/Rear valves right - manual directions/valves for Vent mode' + * '' : 'HVAC_model/dbg CAN/0 to dbg' + * '' : 'HVAC_model/dbg CAN/ACP (duct sensors) to dbg' + * '' : 'HVAC_model/dbg CAN/CCU_IO to dbg' + * '' : 'HVAC_model/dbg CAN/DRS to dbg' + * '' : 'HVAC_model/dbg CAN/LIN_AirQS to dbg' + * '' : 'HVAC_model/dbg CAN/Logic_Acl to dbg' + * '' : 'HVAC_model/dbg CAN/Logic_Rec to dbg' + * '' : 'HVAC_model/dbg CAN/Logic_State to dbg' + * '' : 'HVAC_model/dbg CAN/Logic_Valve to dbg' + * '' : 'HVAC_model/dbg CAN/actuators to dbg' + * '' : 'HVAC_model/dbg CAN/ambient to dbg' + * '' : 'HVAC_model/dbg CAN/autoAF dbg' + * '' : 'HVAC_model/dbg CAN/autoduct dbg' + * '' : 'HVAC_model/dbg CAN/blower to dbg' + * '' : 'HVAC_model/dbg CAN/sen_eva (evaporator) to dbg' + * '' : 'HVAC_model/dbg CAN/CCU_IO to dbg/Subsystem' + * '' : 'HVAC_model/dbg CAN/CCU_IO to dbg/Subsystem1' + * '' : 'HVAC_model/dbg CAN/CCU_IO to dbg/Subsystem2' + * '' : 'HVAC_model/dbg CAN/CCU_IO to dbg/Subsystem3' */ #endif /* HVAC_model_h_ */ diff --git a/HVAC_model_data.c b/HVAC_model_data.c index bd9d97a..8d7c0fb 100644 --- a/HVAC_model_data.c +++ b/HVAC_model_data.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.1202 + * Model version : 1.1314 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Fri Jun 26 14:54:36 2026 + * C/C++ source code generated on : Sat Jul 11 14:20:55 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -19,27 +19,27 @@ /* Invariant block signals (default storage) */ const ConstB rtConstB = { - /* Start of '/If Action Subsystem1' */ + /* Start of '/If Action Subsystem1' */ { - { 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U }/* '/Data Type Conversion' */ + { 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U }/* '/Data Type Conversion' */ } , - /* End of '/If Action Subsystem1' */ + /* End of '/If Action Subsystem1' */ - /* Start of '/If Action Subsystem1' */ + /* Start of '/If Action Subsystem1' */ { - { 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U }/* '/Data Type Conversion' */ + { 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U }/* '/Data Type Conversion' */ } , - /* End of '/If Action Subsystem1' */ + /* End of '/If Action Subsystem1' */ - /* Start of '/If Action Subsystem1' */ + /* Start of '/If Action Subsystem1' */ { - { 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U }/* '/Data Type Conversion' */ + { 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U }/* '/Data Type Conversion' */ } - /* End of '/If Action Subsystem1' */ + /* End of '/If Action Subsystem1' */ }; /* Constant parameters (default storage) */ @@ -92,8 +92,8 @@ const ConstP rtConstP = { /* Pooled Parameter (Expression: [850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 836 818 800 784 769 754 740 727 714 702 691 680 670 659 650 640 631 622 614 606 598 590 583 575 568 561 555 548 542 536 530 524 518 512 507 501 496 491 486 481 476 471 466 462 457 453 448 444 440 436 431 427 423 420 416 412 408 405 401 397 394 390 387 384 380 377 374 370 367 364 361 358 355 352 349 346 343 340 338 335 332 329 327 324 321 319 316 314 311 309 306 304 301 299 297 294 292 289 287 285 283 280 278 276 274 272 269 267 265 263 261 259 257 255 253 251 249 247 245 243 241 239 237 235 234 232 230 228 226 224 223 221 219 217 216 214 212 210 209 207 205 204 202 200 199 197 195 194 192 191 189 187 186 184 183 181 180 178 177 175 174 172 171 169 168 166 165 163 162 161 159 158 156 155 153 152 151 149 148 147 145 144 143 141 140 139 137 136 135 133 132 131 129 128 127 126 124 123 122 121 119 118 117 116 115 113 112 111 110 109 107 106 105 104 103 101 100 99 98 97 96 95 93 92 91 90 89 88 87 86 84 83 82 81 80 79 78 77 76 75 74 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 29 28 27 26 25 24 23 22 21 20 19 18 17 17 16 15 14 13 12 11 10 9 8 8 7 6 5 4 3 2 1 0 0 0 -1 -2 -3 -4 -5 -5 -6 -7 -8 -9 -10 -11 -11 -12 -13 -14 -15 -16 -17 -17 -18 -19 -20 -21 -22 -22 -23 -24 -25 -26 -27 -27 -28 -29 -30 -31 -31 -32 -33 -34 -35 -36 -36 -37 -38 -39 -40 -40 -41 -42 -43 -44 -44 -45 -46 -47 -47 -48 -49 -50 -51 -51 -52 -53 -54 -55 -55 -56 -57 -58 -58 -59 -60 -61 -62 -62 -63 -64 -65 -65 -66 -67 -68 -68 -69 -70 -71 -71 -72 -73 -74 -74 -75 -76 -77 -77 -78 -79 -80 -80 -81 -82 -83 -83 -84 -85 -86 -86 -87 -88 -89 -89 -90 -91 -92 -92 -93 -94 -95 -95 -96 -97 -97 -98 -99 -100 -100 -101 -102 -103 -103 -104 -105 -105 -106 -107 -108 -108 -109 -110 -111 -111 -112 -113 -113 -114 -115 -116 -116 -117 -118 -118 -119 -120 -121 -121 -122 -123 -123 -124 -125 -126 -126 -127 -128 -128 -129 -130 -131 -131 -132 -133 -133 -134 -135 -136 -136 -137 -138 -138 -139 -140 -140 -141 -142 -143 -143 -144 -145 -145 -146 -147 -148 -148 -149 -150 -150 -151 -152 -152 -153 -154 -155 -155 -156 -157 -157 -158 -159 -159 -160 -161 -162 -162 -163 -164 -164 -165 -166 -166 -167 -168 -169 -169 -170 -171 -171 -172 -173 -173 -174 -175 -176 -176 -177 -178 -178 -179 -180 -180 -181 -182 -183 -183 -184 -185 -185 -186 -187 -187 -188 -189 -189 -190 -191 -192 -192 -193 -194 -194 -195 -196 -196 -197 -198 -199 -199 -200 -201 -201 -202 -203 -204 -204 -205 -206 -206 -207 -208 -208 -209 -210 -211 -211 -212 -213 -213 -214 -215 -216 -216 -217 -218 -218 -219 -220 -221 -221 -222 -223 -223 -224 -225 -226 -226 -227 -228 -228 -229 -230 -231 -231 -232 -233 -233 -234 -235 -236 -236 -237 -238 -238 -239 -240 -241 -241 -242 -243 -244 -244 -245 -246 -246 -247 -248 -249 -249 -250 -251 -252 -252 -253 -254 -255 -255 -256 -257 -257 -258 -259 -260 -260 -261 -262 -263 -263 -264 -265 -266 -266 -267 -268 -269 -269 -270 -271 -272 -272 -273 -274 -275 -275 -276 -277 -278 -279 -279 -280 -281 -282 -282 -283 -284 -285 -285 -286 -287 -288 -289 -289 -290 -291 -292 -292 -293 -294 -295 -296 -296 -297 -298 -299 -300 -300 -301 -302 -303 -304 -304 -305 -306 -307 -308 -308 -309 -310 -311 -312 -313 -313 -314 -315 -316 -317 -318 -318 -319 -320 -321 -322 -323 -323 -324 -325 -326 -327 -328 -329 -329 -330 -331 -332 -333 -334 -335 -335 -336 -337 -338 -339 -340 -341 -342 -342 -343 -344 -345 -346 -347 -348 -349 -350 -351 -351 -352 -353 -354 -355 -356 -357 -358 -359 -360 -361 -362 -363 -364 -364 -365 -366 -367 -368 -369 -370 -371 -372 -373 -374 -375 -376 -377 -378 -379 -380 -381 -382 -383 -384 -385 -386 -387 -388 -389 -390 -391 -392 -393 -394 -395 -396 -398 -399 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 ]) * Referenced by: - * '/1-D Lookup Table' - * '/1-D Lookup Table' + * '/1-D Lookup Table' + * '/1-D Lookup Table' */ { 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 836.0, 818.0, 800.0, 784.0, 769.0, @@ -200,7 +200,7 @@ const ConstP rtConstP = { -400.0, -400.0, -400.0, -400.0, -400.0, -400.0, -400.0 }, /* Expression: [zeros(1, 85), linspace(0.268534, 390.3364, 1024-85)] - * Referenced by: '/1-D Lookup Table' + * Referenced by: '/1-D Lookup Table' */ { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, @@ -507,10 +507,10 @@ const ConstP rtConstP = { /* Pooled Parameter (Expression: Incar_Temp_Table) * Referenced by: - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' + * '/1-D Lookup Table2' + * '/1-D Lookup Table4' + * '/1-D Lookup Table1' + * '/1-D Lookup Table3' */ { 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 850.0, 837.0, 816.0, 797.0, 780.0, 763.0, 748.0, 733.0, @@ -618,87 +618,111 @@ const ConstP rtConstP = { /* Pooled Parameter (Expression: [17 18 19 20 21 22 23 24 25 26 27 28 29]) * Referenced by: - * '/Выбор режима Left' - * '/Выбор режима Right' + * '/Выбор режима Left' + * '/Выбор режима Right' */ { 5U, 12U }, /* Pooled Parameter (Expression: [170:10:290]) * Referenced by: - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' */ { 170, 180, 190, 200, 210, 220, 230, 240, 250, 260, 270, 280, 290 }, /* Pooled Parameter (Expression: [5, 4, 3, 2, 1, 0]) * Referenced by: - * '/1-D Lookup Table' - * '/Get LVL for temp' + * '/1-D Lookup Table' + * '/Get LVL for temp' */ { 5, 4, 3, 2, 1, 0 }, /* Computed Parameter: GetLVLfortemp_bp01Data - * Referenced by: '/Get LVL for temp' + * Referenced by: '/Get LVL for temp' */ { -1000, -50, -10, 5, 20, 65 }, /* Pooled Parameter (Expression: [0;1;2;3;4;5]) * Referenced by: - * '/Выбор режима Left' - * '/Выбор режима Right' + * '/Выбор режима Left' + * '/Выбор режима Right' */ { 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 }, /* Pooled Parameter (Expression: [850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 850 848 845 841 838 834 831 827 824 821 818 814 811 808 805 802 799 796 793 790 787 784 781 778 775 772 769 767 764 761 758 756 753 750 748 745 742 740 737 735 732 730 727 725 722 720 717 715 713 710 708 706 703 701 699 696 694 692 690 688 685 683 681 679 677 675 673 670 668 666 664 662 660 658 656 654 652 650 648 646 644 642 640 638 637 635 633 631 629 627 625 624 622 620 618 616 614 613 611 609 607 606 604 602 600 599 597 595 594 592 590 589 587 585 584 582 580 579 577 576 574 572 571 569 568 566 564 563 561 560 558 557 555 554 552 551 549 548 546 545 543 542 540 539 537 536 534 533 532 530 529 527 526 524 523 522 520 519 517 516 515 513 512 511 509 508 507 505 504 503 501 500 499 497 496 495 493 492 491 489 488 487 485 484 483 482 480 479 478 477 475 474 473 472 470 469 468 467 465 464 463 462 460 459 458 457 456 454 453 452 451 450 448 447 446 445 444 442 441 440 439 438 437 435 434 433 432 431 430 429 427 426 425 424 423 422 421 420 418 417 416 415 414 413 412 411 410 408 407 406 405 404 403 402 401 400 399 398 396 395 394 393 392 391 390 389 388 387 386 385 384 383 382 381 380 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 324 323 322 321 320 319 318 317 316 315 314 313 312 311 310 309 308 307 306 305 305 304 303 302 301 300 299 298 297 296 295 294 293 292 291 291 290 289 288 287 286 285 284 283 282 281 280 279 279 278 277 276 275 274 273 272 271 270 269 268 268 267 266 265 264 263 262 261 260 259 259 258 257 256 255 254 253 252 251 250 250 249 248 247 246 245 244 243 242 241 241 240 239 238 237 236 235 234 233 233 232 231 230 229 228 227 226 225 224 224 223 222 221 220 219 218 217 217 216 215 214 213 212 211 210 209 209 208 207 206 205 204 203 202 201 201 200 199 198 197 196 195 194 194 193 192 191 190 189 188 187 186 186 185 184 183 182 181 180 179 179 178 177 176 175 174 173 172 171 171 170 169 168 167 166 165 164 163 163 162 161 160 159 158 157 156 155 155 154 153 152 151 150 149 148 147 147 146 145 144 143 142 141 140 139 139 138 137 136 135 134 133 132 131 130 130 129 128 127 126 125 124 123 122 121 121 120 119 118 117 116 115 114 113 112 112 111 110 109 108 107 106 105 104 103 102 101 101 100 99 98 97 96 95 94 93 92 91 90 89 88 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 3 2 1 0 0 -1 -2 -3 -4 -5 -6 -7 -9 -10 -11 -12 -13 -14 -15 -16 -17 -19 -20 -21 -22 -23 -24 -25 -26 -28 -29 -30 -31 -32 -33 -34 -36 -37 -38 -39 -40 -42 -43 -44 -45 -46 -47 -49 -50 -51 -52 -54 -55 -56 -57 -58 -60 -61 -62 -63 -65 -66 -67 -68 -70 -71 -72 -74 -75 -76 -77 -79 -80 -81 -83 -84 -85 -87 -88 -89 -91 -92 -93 -95 -96 -98 -99 -100 -102 -103 -105 -106 -108 -109 -110 -112 -113 -115 -116 -118 -119 -121 -122 -124 -125 -127 -128 -130 -131 -133 -134 -136 -138 -139 -141 -142 -144 -146 -147 -149 -151 -152 -154 -156 -157 -159 -161 -162 -164 -166 -168 -169 -171 -173 -175 -177 -179 -180 -182 -184 -186 -188 -190 -192 -194 -196 -198 -200 -202 -204 -206 -208 -210 -212 -214 -216 -218 -221 -223 -225 -227 -229 -232 -234 -236 -239 -241 -243 -246 -248 -251 -253 -256 -258 -261 -264 -266 -269 -272 -275 -277 -280 -283 -286 -289 -292 -295 -298 -301 -304 -308 -311 -314 -318 -321 -325 -328 -332 -336 -339 -343 -347 -351 -355 -359 -364 -368 -373 -377 -382 -387 -392 -397 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400 -400]) * Referenced by: - * '/1-D Lookup Table7' - * '/1-D Lookup Table4' + * '/1-D Lookup Table7' + * '/1-D Lookup Table4' */ { 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, @@ -772,8 +796,8 @@ const ConstP rtConstP = { /* Pooled Parameter (Expression: [0:4:4095]) * Referenced by: - * '/1-D Lookup Table7' - * '/1-D Lookup Table4' + * '/1-D Lookup Table7' + * '/1-D Lookup Table4' */ { 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, @@ -853,59 +877,83 @@ const ConstP rtConstP = { 4052, 4056, 4060, 4064, 4068, 4072, 4076, 4080, 4084, 4088, 4092 }, /* Computed Parameter: DataStoreMemory13_InitialValue - * Referenced by: '/Data Store Memory13' + * Referenced by: '/Data Store Memory13' */ { 1050, 1250, 1175, 1195, 1315, 1300, 1485, 1440, 1195 }, /* Computed Parameter: DataStoreMemory13_InitialValue_i - * Referenced by: '/Data Store Memory13' + * Referenced by: '/Data Store Memory13' */ { 1225, 1320, 1270, 1540, 1480, 1175, 0, 0, 0 }, /* Computed Parameter: DataStoreMemory13_InitialValue_l - * Referenced by: '/Data Store Memory13' + * Referenced by: '/Data Store Memory13' */ { 3075, 3075, 1605, 1840, 1650, 1635, 1820, 1650, 0 }, /* Pooled Parameter (Expression: [170:10:290]) * Referenced by: - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table3' - * '/1-D Lookup Table4' - * '/1-D Lookup Table5' - * '/1-D Lookup Table10' - * '/1-D Lookup Table11' - * '/1-D Lookup Table6' - * '/1-D Lookup Table7' - * '/1-D Lookup Table8' - * '/1-D Lookup Table9' - * '/1-D Lookup Table10' - * '/1-D Lookup Table11' - * '/1-D Lookup Table6' - * '/1-D Lookup Table7' - * '/1-D Lookup Table8' - * '/1-D Lookup Table9' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' + * '/1-D Lookup Table10' + * '/1-D Lookup Table11' + * '/1-D Lookup Table6' + * '/1-D Lookup Table7' + * '/1-D Lookup Table8' + * '/1-D Lookup Table9' + * '/1-D Lookup Table10' + * '/1-D Lookup Table11' + * '/1-D Lookup Table6' + * '/1-D Lookup Table7' + * '/1-D Lookup Table8' + * '/1-D Lookup Table9' + * '/1-D Lookup Table10' + * '/1-D Lookup Table11' + * '/1-D Lookup Table6' + * '/1-D Lookup Table7' + * '/1-D Lookup Table8' + * '/1-D Lookup Table9' + * '/1-D Lookup Table1' + * '/1-D Lookup Table12' + * '/1-D Lookup Table2' + * '/1-D Lookup Table3' + * '/1-D Lookup Table4' + * '/1-D Lookup Table5' */ { 170U, 180U, 190U, 200U, 210U, 220U, 230U, 240U, 250U, 260U, 270U, 280U, 290U }, /* Pooled Parameter (Expression: [0:4:4092]) * Referenced by: - * '/1-D Lookup Table' - * '/1-D Lookup Table' - * '/1-D Lookup Table' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' - * '/1-D Lookup Table1' - * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table4' + * '/1-D Lookup Table1' + * '/1-D Lookup Table3' */ { 0U, 4U, 8U, 12U, 16U, 20U, 24U, 28U, 32U, 36U, 40U, 44U, 48U, 52U, 56U, 60U, 64U, 68U, 72U, 76U, 80U, 84U, 88U, 92U, 96U, 100U, 104U, 108U, 112U, 116U, @@ -999,53 +1047,115 @@ const ConstP rtConstP = { 4080U, 4084U, 4088U, 4092U }, /* Computed Parameter: uDLookupTable1_bp01Data - * Referenced by: '/1-D Lookup Table1' + * Referenced by: '/1-D Lookup Table1' */ { 10U, 50U }, /* Computed Parameter: ACT1_Value - * Referenced by: '/ACT1' + * Referenced by: '/ACT1' */ { 1050U, 1250U, 1175U, 1195U, 1315U, 1300U, 1485U, 1440U, 1195U }, /* Computed Parameter: ACT1_Value_c - * Referenced by: '/ACT1' + * Referenced by: '/ACT1' */ { 1225U, 1320U, 1270U, 1540U, 1480U, 1175U }, /* Computed Parameter: ACT1_Value_m - * Referenced by: '/ACT1' + * Referenced by: '/ACT1' */ { 3075U, 3075U, 1605U, 1840U, 1650U, 1635U, 1820U, 1650U }, + /* Pooled Parameter (Expression: [10:10:110]) + * Referenced by: + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table' + * '/1-D Lookup Table2' + */ + { 10U, 20U, 30U, 40U, 50U, 60U, 70U, 80U, 90U, 100U, 110U }, + /* Pooled Parameter (Expression: [1 2 3 4 5 6 7 8 9]) * Referenced by: - * '/Constant3' - * '/Constant5' - * '/Constant5' - * '/Constant5' - * '/Constant5' - * '/Constant5' - * '/Constant5' + * '/Constant3' + * '/Constant5' + * '/Constant5' + * '/Constant5' + * '/Constant5' + * '/Constant5' + * '/Constant5' */ { 1U, 2U, 3U, 4U, 5U, 6U, 7U, 8U, 9U }, /* Computed Parameter: Constant3_Value - * Referenced by: '/Constant3' + * Referenced by: '/Constant3' */ { 1U, 2U, 3U, 4U, 5U, 6U }, /* Computed Parameter: Constant3_Value_d - * Referenced by: '/Constant3' + * Referenced by: '/Constant3' */ { 1U, 2U, 3U, 4U, 5U, 6U, 7U, 8U }, /* Pooled Parameter (Expression: ) * Referenced by: - * '/Выбор режима Left' - * '/Выбор режима Right' + * '/Выбор режима Left' + * '/Выбор режима Right' */ - { 0U, 1U, 2U, 3U, 4U, 5U } + { 0U, 1U, 2U, 3U, 4U, 5U }, + + /* Pooled Parameter (Expression: [0:6]) + * Referenced by: + * '/1-D Lookup Table' + * '/1-D Lookup Table' + * '/1-D Lookup Table' + * '/1-D Lookup Table' + */ + { 0U, 1U, 2U, 3U, 4U, 5U, 6U } }; /* diff --git a/HVAC_model_private.h b/HVAC_model_private.h index 9af2cc7..a7632df 100644 --- a/HVAC_model_private.h +++ b/HVAC_model_private.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.1202 + * Model version : 1.1314 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Fri Jun 26 14:54:36 2026 + * C/C++ source code generated on : Sat Jul 11 14:20:55 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -74,10 +74,10 @@ preprocessor word size checks. /* Skipping ulong_long/long_long check: insufficient preprocessor integer range. */ extern double rt_roundd(double u_0); -extern int16_t look1_is16lu64n32tu16Ds32Is16_binlcs(int16_t u0, const int16_t - bp0[], const uint16_t table[], uint32_t maxIndex); -extern uint32_t binsearch_u32s16(int16_t u_2, const int16_t bp[], uint32_t - startIndex, uint32_t maxIndex); +extern int8_t look1_iu8lu64n56ts8Ds16_binlcs(uint8_t u0, const uint8_t bp0[], + const int8_t table[], uint32_t maxIndex); +extern int16_t look1_iu8lu64n48ts16Ds32_binlcs(uint8_t u0, const uint8_t bp0[], + const int16_t table[], uint32_t maxIndex); extern int16_t look1_is16lu64n32Ds32_binlcs(int16_t u0, const int16_t bp0[], const int16_t table[], uint32_t maxIndex); extern int16_t look1_is16lu64n32tu8Ds16Is16_binlcs(int16_t u0, const int16_t @@ -91,18 +91,20 @@ extern uint8_t look2_iu8bu8s16lu64n32_binlcse(uint8_t u0, uint8_t u1, const maxIndex[], uint32_t stride); extern uint8_t look1_iu16lu64n48tu8_binlcse(uint16_t u0, const uint16_t bp0[], const uint8_t table[], uint32_t maxIndex); +extern int16_t look1_iu16tdIs16_binlcs(uint16_t u0, const uint16_t bp0[], const + double table[], uint32_t maxIndex); extern int16_t look1_iu16lu64n48ts16Ds32_binlcs(uint16_t u0, const uint16_t bp0[], const int16_t table[], uint32_t maxIndex); extern int16_t look1_iu16bs16lu64n32ts16Ds32_binlcs(uint16_t u0, const int16_t bp0[], const int16_t table[], uint32_t maxIndex); extern double look1_bs16ts16DdId_binlc(double u0, const int16_t bp0[], const int16_t table[], uint32_t maxIndex); -extern int16_t look1_iu16tdIs16_binlcs(uint16_t u0, const uint16_t bp0[], const - double table[], uint32_t maxIndex); extern double look1_iu16td_binlc(uint16_t u0, const uint16_t bp0[], const double table[], uint32_t maxIndex); -extern uint32_t plook_u32s16_bincka(int16_t u_3, const int16_t bp[], uint32_t +extern uint32_t plook_u32s16_bincka(int16_t u_2, const int16_t bp[], uint32_t maxIndex); +extern uint32_t binsearch_u32s16(int16_t u_3, const int16_t bp[], uint32_t + startIndex, uint32_t maxIndex); extern void get_tg_FLL_for_LVL(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp, int16_t *rty_vals); extern void get_tg_FLL_for_LVL_j(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp, @@ -126,146 +128,52 @@ extern void g_aucFLOW_AFSM_FOOT_VALVE_MAX_f(uint8_t rtu_LVL, uint8_t extern void Afoot_Summer(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1 [9], uint8_t rtu_setTempFL, uint8_t rtu_setTempFR); extern void left(uint8_t rtu_idx, uint16_t rty_vals[9]); -extern void g_assSTART_ENTER_INCAR_f(uint8_t rtu_LVL, int16_t *rty_out); -extern void Level2(int8_t *rty_step); -extern void g_assSTART_ENTER_COOLANT_j(uint8_t rtu_LVL, int16_t *rty_out); -extern void Level4(int8_t *rty_step1, const uint8_t *rtd_CCU_MODE_FL, const - int16_t *rtd_ECT, const uint8_t *rtd_LEVEL, const uint8_t - *rtd_LO_HI_MODE_FL); -extern void Level0(int8_t *rty_step); -extern void incarfilterdown(uint8_t rtu_LVL, uint8_t *rty_out); -extern void incarfilterup(uint8_t rtu_LVL, uint8_t *rty_out); -extern void g_assSTART_COOLANT_STEP0_TO_1_a(uint8_t rtu_LVL, int16_t *rty_out); -extern void uwayvalvestatus(uint8_t rtu_LVL, uint8_t *rty_out); -extern void Dtg_FrontLower_X(uint8_t rtu_LVL, uint8_t *rty_out); -extern void Dtg_FrontUpper_X(uint8_t rtu_LVL, uint8_t *rty_out); -extern void Incartempgotofromstep1tostep2(uint8_t rtu_LVL, int16_t *rty_out); -extern void blowerFR(uint8_t rtu_LVL, uint16_t *rty_out); -extern void modeFRstep1(uint8_t rtu_LVL, uint8_t *rty_out); -extern void windowheating(uint8_t rtu_LVL, uint8_t *rty_out); -extern void Timegotofromstep1tostep2(uint8_t rtu_LVL, int16_t *rty_out); -extern void ECTminmax(uint8_t rtu_LVL, int16_t rty_out[2]); -extern void blowerminmax(uint8_t rtu_LVL, uint16_t rty_out[2]); -extern void Level4_h(int8_t *rty_step, uint16_t *rtd_Blower_FL, uint16_t - *rtd_Blower_FR, uint8_t *rtd_Dtg_FLL, uint8_t *rtd_Dtg_FLR, - uint8_t *rtd_Dtg_FUL, uint8_t *rtd_Dtg_FUR, const int16_t - *rtd_ECT, uint8_t *rtd_El_window_heating, const int16_t - *rtd_Incar_FL, uint8_t *rtd_Incar_filter_down_value, - uint8_t *rtd_Incar_filter_up_value, const uint8_t - *rtd_LEVEL, uint8_t *rtd_Mode_FL, uint8_t *rtd_Mode_FR, - double *rtd_Recirculation, uint8_t *rtd_Valve_3_way, const - int8_t *rtd_step_start_controle_front, const uint32_t - *rtd_t_now, DW_Level4_o *localDW); -extern void uwayvalvestatus_j(uint8_t rtu_LVL, uint8_t *rty_out); -extern void timeforstep(uint8_t rtu_LVL, uint8_t *rty_out); -extern void timeforstep_c(uint8_t rtu_LVL, uint8_t *rty_out); -extern void Timegotofromstep2tostep3(uint8_t rtu_LVL, int16_t *rty_out); -extern void blowerstep(uint8_t rtu_LVL, uint16_t *rty_out); -extern void blowertimeforstep(uint8_t rtu_LVL, uint16_t *rty_out); -extern void step_h(uint8_t rtu_LVL, uint8_t *rty_out); -extern void timeforstep_p(uint8_t rtu_LVL, uint8_t *rty_out); -extern void windowheating_e(uint8_t rtu_LVL, uint8_t *rty_out); -extern void autodemistautodefog(uint8_t rtu_LVL, uint8_t *rty_out); -extern void Level3(int8_t *rty_step, uint8_t *rtd_Autodefog, uint16_t - *rtd_Blower_FL, uint16_t *rtd_Blower_FR, const uint16_t - *rtd_Blower_logic_FL, uint8_t *rtd_Dtg_FLL, uint8_t - *rtd_Dtg_FLR, uint8_t *rtd_Dtg_FUL, uint8_t *rtd_Dtg_FUR, - const uint8_t *rtd_Dtg_logic_FLL, const uint8_t - *rtd_Dtg_logic_FUL, uint8_t *rtd_El_window_heating, const - bool *rtd_HI_logic_on, uint8_t *rtd_Incar_filter_down_value, - uint8_t *rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, - uint8_t *rtd_Mode_FL, uint8_t *rtd_Mode_FR, const uint8_t - *rtd_Mode_logic_FL, double *rtd_Recirculation, uint8_t - *rtd_Valve_3_way, const int8_t *rtd_step_start_controle_front, - const uint32_t *rtd_t_now, DW_Level3 *localDW); -extern void g_ausSTART_ENTER_SETTEMP_m(uint8_t rtu_LVL, int16_t *rty_out); -extern void g_assSTART_ENTER_INCAR_c(uint8_t rtu_LVL, int16_t *rty_out); -extern void g_assSTART_ENTER_COOLANT_c(uint8_t rtu_LVL, int16_t *rty_out); -extern void Level4_l(int8_t *rty_step1, const uint8_t *rtd_CCU_MODE_RR, const - int16_t *rtd_ECT, const int16_t *rtd_Incar_RR, const - uint8_t *rtd_LEVEL, const uint8_t *rtd_LO_HI_MODE_FL); -extern void incarfilterdown_c(uint8_t rtu_LVL, uint8_t *rty_out); -extern void incarfilterup_b(uint8_t rtu_LVL, uint8_t *rty_out); -extern void g_assSTART_COOLANT_STEP0_TO_1_k(uint8_t rtu_LVL, int16_t *rty_out); -extern void Level4_c(int8_t *rty_step1, uint16_t *rtd_Blower_RL, uint16_t - *rtd_Blower_RR, uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, - const int16_t *rtd_ECT, uint8_t - *rtd_Incar_filter_down_value, uint8_t - *rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, - uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR, uint8_t - *rtd_Valve_2_way, uint8_t *rtd_Valve_3_way); -extern void uwayvalve(uint8_t rtu_LVL, uint8_t *rty_out); -extern void Dtg_rear(uint8_t rtu_LVL, uint8_t *rty_out); -extern void Incartempgotofromstep1tostep2_n(uint8_t rtu_LVL, int16_t *rty_out); -extern void Timegotofromstep1tostep2_p(uint8_t rtu_LVL, int16_t *rty_out); -extern void moderearstep1(uint8_t rtu_LVL, uint8_t *rty_out); -extern void Level0_o(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t - *rtd_Blower_RR, uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, - const int16_t *rtd_Incar_RR, uint8_t - *rtd_Incar_filter_down_value, uint8_t - *rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, - uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR, double - *rtd_Recirculation, uint8_t *rtd_Valve_2_way, const int8_t * - rtd_step_start_controle_rear, const uint32_t *rtd_t_now, - DW_Level0_f *localDW); -extern void blowerstartfinish(uint8_t rtu_LVL, uint16_t rty_out[2]); -extern void ECTminmax_b(uint8_t rtu_LVL, int16_t rty_out[2]); -extern void Level4_n(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t - *rtd_Blower_RR, uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, - const int16_t *rtd_ECT, const int16_t *rtd_Incar_RR, - uint8_t *rtd_Incar_filter_down_value, uint8_t - *rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, - uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR, double - *rtd_Recirculation, uint8_t *rtd_Valve_2_way, const int8_t * - rtd_step_start_controle_rear, const uint32_t *rtd_t_now, - DW_Level4_oa *localDW); -extern void timeforstep_h(uint8_t rtu_LVL, uint8_t *rty_out); -extern void blowerstep_e(uint8_t rtu_LVL, uint16_t *rty_out); -extern void blowertimeforstep_o(uint8_t rtu_LVL, uint16_t *rty_out); -extern void step_i3(uint8_t rtu_LVL, uint8_t *rty_out); -extern void timeforstep_m(uint8_t rtu_LVL, uint8_t *rty_out); -extern void Level3_j(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t - *rtd_Blower_RR, const uint16_t *rtd_Blower_logic_RR, - uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, const uint8_t - *rtd_Dtg_logic_RR, const bool *rtd_HI_logic_on, uint8_t - *rtd_Incar_filter_down_value, uint8_t - *rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, - uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR, const uint8_t - *rtd_Mode_logic_RR, double *rtd_Recirculation, uint8_t - *rtd_Valve_2_way, const int8_t - *rtd_step_start_controle_rear, const uint32_t *rtd_t_now, - DW_Level3_j *localDW); +extern void IfActionSubsystem(uint8_t rtu_In1, int8_t *rty_Out1, int16_t + *rty_Out2); +extern void IfActionSubsystem1(int8_t *rty_Out1, int16_t *rty_Out2); +extern void IfActionSubsystem2(uint8_t rtu_In1, int8_t *rty_Out1, int16_t + *rty_Out2); +extern void IfActionSubsystem_b(uint8_t rtu_In1, int8_t *rty_Out1, int16_t + *rty_Out2); +extern void IfActionSubsystem2_o(uint8_t rtu_In1, int8_t *rty_Out1, int16_t + *rty_Out2); +extern void IfActionSubsystem_n(uint8_t rtu_In1, int8_t *rty_Out1, int16_t + *rty_Out2); +extern void IfActionSubsystem2_c(uint8_t rtu_In1, int8_t *rty_Out1, int16_t + *rty_Out2); extern void correctionrate(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y); extern void is_ending_with_5(uint16_t rtu_SET, bool *rty_is_ending_with_5); -extern void AMBRATE_RISING_DIFF8(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_F); extern void u(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_F); -extern void u_m(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_F); -extern void u_h(uint8_t rtu_lvl, uint16_t *rty_out); -extern void AMBRATE_FALLING_DIFF7(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_F); -extern void u_i(uint8_t rtu_lvl, uint16_t *rty_out); -extern void u_e(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_F); -extern void u_c(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_F); -extern void u_cc(uint8_t rtu_lvl, uint16_t *rty_out); +extern void u_j(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_F); +extern void u_c(int16_t rtu_temp_raw, uint8_t rtu_lvl, uint16_t *rty_out, double + *rtd_KEEP_FALLING_FL_UNTIL_LIMIT, const double + *rtd_Temp_FL_store); +extern void u_l(int16_t rtu_temp_raw, uint8_t rtu_lvl, uint16_t + *rty_riseperminute, double *rtd_KEEP_FALLING_FL_UNTIL_LIMIT, + const double *rtd_Temp_FL_store); +extern void u_h(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_F); +extern void u_k(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_F); +extern void u_lz(uint8_t rtu_lvl, uint16_t *rty_out); extern void g_ausINCARRATE_RISING_DIFF_F8(uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_F); extern void INCARRATE_RISING_DIFF_F7(uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_F); -extern void u_mu(uint8_t rtu_lvl, uint16_t *rty_out); -extern void AMBRATE_RISING_DIFF8_m(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R); -extern void u_a(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_R); -extern void u_l(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R); +extern void u_f(uint8_t rtu_lvl, uint16_t *rty_out); +extern void RL(int16_t rtu_temp_in, double *rty_temp_out); +extern void AMBRATE_RISING_DIFF8(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R); +extern void u_kk(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_R); +extern void u_b(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R); +extern void u_hr(uint8_t rtu_lvl, uint16_t *rty_out); +extern void AMBRATE_FALLING_DIFF7(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_R); extern void u_g(uint8_t rtu_lvl, uint16_t *rty_out); -extern void AMBRATE_FALLING_DIFF7_a(uint16_t - *rty_f_g_ausINCARRATE_FALLING_DIFF_R); -extern void u_b(uint8_t rtu_lvl, uint16_t *rty_out); -extern void u_j(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_R); -extern void u_d(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_R); -extern void u_jk(uint8_t rtu_lvl, uint16_t *rty_out); +extern void u_m(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_R); +extern void u_o(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_R); +extern void u_gq(uint8_t rtu_lvl, uint16_t *rty_out); extern void g_ausINCARRATE_RISING_DIFF_R8(uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_R); extern void INCARRATE_RISING_DIFF_R7(uint16_t *rty_f_g_ausINCARRATE_RISING_DIFF_R); -extern void u_ew(uint8_t rtu_lvl, uint16_t *rty_out); +extern void u_b3(uint8_t rtu_lvl, uint16_t *rty_out); extern void Zone_Climate_Logic_Auto_FL1_Init(uint8_t *rty_out_def, uint8_t *rty_out_face, uint8_t *rty_out_foot, uint8_t *rty_out_auto, double *rty_out_ac, DW_Zone_Climate_Logic_Auto_FL1 *localDW); @@ -290,46 +198,40 @@ extern void AFforVentmode(uint8_t rtu_blower_speed, uint16_t *rty_out); extern void RearLeftAFmanualdirections(bool rtu_Enable, uint8_t rtu_blowerspeed, uint8_t rtu_faceison, uint8_t rtu_footison, uint16_t *rty_AFout); extern void funcg_ascAUTO_STEP_AF_F(int8_t rtu_AF_STEP, int8_t *rty_y); -extern void X1X4Vtg_FX_incar(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]); -extern void Y1Y4Vtg_FX_incar(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]); -extern void Amb_Tg(uint8_t rtu_LVL, int16_t *rty_y); -extern void Y1Y2Vtg_RL_amb(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void X1X2Vtg_FX_sun(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void Y1Y2Vtg_RX_sun(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void Vtg_RX_plus_max(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y); -extern void Vtg_RX_plus_min(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y); -extern void u_bs(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_FALLING); -extern void u_de(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_out, const +extern void u_m2(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_FALLING); +extern void u_kb(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_out, const double *rtd_AMB_store, double *rtd_KEEP_FALLING_UNTIL_LIMIT); -extern void u_co(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t +extern void u_my(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_riseperminute, const double *rtd_AMB_store, double *rtd_KEEP_FALLING_UNTIL_LIMIT); -extern void u_bq(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING); -extern void u_gw(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING_DIFF_LVL); -extern void u_hd(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_out, const - double *rtd_AMB_store, double *rtd_KEEP_RISING_UNTIL_LIMIT); -extern void u_a5(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t +extern void u_h3(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING); +extern void u_fr(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING_DIFF_LVL); +extern void u_p(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_out, const + double *rtd_AMB_store, double *rtd_KEEP_RISING_UNTIL_LIMIT); +extern void u_g2(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_riseperminute, const double *rtd_AMB_store, double *rtd_KEEP_RISING_UNTIL_LIMIT); -extern void IfActionSubsystem(int8_t *rty_Out1, double *rtd_ErrorHomming_private, - double *rtd_Start_timer_n, int8_t *rtd_stepSig_private); +extern void IfActionSubsystem_h(int8_t *rty_Out1, double + *rtd_ErrorHomming_private, double *rtd_Start_timer_n, int8_t + *rtd_stepSig_private); extern void MATLABFunction_Init(DW_MATLABFunction *localDW); extern void MATLABFunction(double rtu_cond, uint32_t rtu_t_now, uint32_t *rty_dt, DW_MATLABFunction *localDW); -extern void IfActionSubsystem1(int8_t *rty_Output, uint8_t +extern void IfActionSubsystem1_h(int8_t *rty_Output, uint8_t *rtd_CCU_ActuatorErrF_Stat_private, uint8_t rtd_COM_private[9], uint8_t rtd_ErrorActuator[9], uint8_t rtd_ErrorCalibration_private[9], const double *rtd_LOGGER_LIN, uint8_t rtd_MODE_private[9], uint8_t rtd_dtc_state_error_model[127]); +extern void valvesformode(uint8_t rtu_MODE, uint16_t rty_get_valves[9]); +extern void valves_rear_left(uint8_t rtu_MODE, uint16_t rty_get_valves[6]); extern void MODE_for_set_and_lvl(uint8_t rtu_LVL, int16_t rtu_SET, uint8_t *rty_get_mode); extern void increase(int16_t rtu_duct_tg, const uint16_t rtu_mode_array[7], uint16_t *rty_y); extern void decrease(int16_t rtu_duct_tg, const uint16_t rtu_mode_array[7], uint16_t *rty_y); -extern void valves_rear_left(uint16_t rtu_MODE, uint16_t rty_get_valves[6]); +extern void valves_rear_left_d(uint16_t rtu_MODE, uint16_t rty_get_valves[6]); extern void ValvesforBiLevel(uint16_t rty_out[9]); -extern void ValvesforDef(uint16_t rty_out[9]); extern void ValvesforFootDef(uint16_t rty_out[9]); extern void ValvesforHi_Level(uint16_t rty_out[9]); extern void ValvesforTriLevel(uint16_t rty_out[9]); diff --git a/HVAC_model_types.h b/HVAC_model_types.h index 3f32c7c..660d5a1 100644 --- a/HVAC_model_types.h +++ b/HVAC_model_types.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.1202 + * Model version : 1.1314 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Fri Jun 26 14:54:36 2026 + * C/C++ source code generated on : Sat Jul 11 14:20:55 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -63,6 +63,21 @@ typedef struct { #endif +#ifndef DEFINED_TYPEDEF_FOR_LIN4_CCU_Req_Bus_ +#define DEFINED_TYPEDEF_FOR_LIN4_CCU_Req_Bus_ + +typedef struct { + uint8_t CCU_Ionization_Req; + uint8_t CCU_AromaIntens_Req; + uint8_t CCU_AirQS_Req; + uint8_t CCU_fHVAC_Pos_Val; + uint8_t CCU_rHVAC_Pos_Val; + uint8_t CCU_batChiller_Pos_Val; + uint8_t CCU_eeChiller_Pos_Val; +} LIN4_CCU_Req_Bus; + +#endif + #ifndef DEFINED_TYPEDEF_FOR_CmdCAN_CCU_STAT1_Bus_ #define DEFINED_TYPEDEF_FOR_CmdCAN_CCU_STAT1_Bus_ @@ -129,6 +144,32 @@ typedef struct { #endif +#ifndef DEFINED_TYPEDEF_FOR_CCU_HVC_Req_Msg_Bus_ +#define DEFINED_TYPEDEF_FOR_CCU_HVC_Req_Msg_Bus_ + +typedef struct { + uint8_t CCU_eCompSpeedReq_Val_ro; + uint8_t CCU_eCompReq_Stat; + uint8_t CCU_LowTempValve_Req; + uint8_t CCU_HVC_Req_RC; + uint8_t CCU_HVC_Req_CS; +} CCU_HVC_Req_Msg_Bus; + +#endif + +#ifndef DEFINED_TYPEDEF_FOR_CCU_Msg3_Bus_ +#define DEFINED_TYPEDEF_FOR_CCU_Msg3_Bus_ + +typedef struct { + uint8_t CCU_FAN_Req; + uint8_t CCU_RestMode_Stat; + uint8_t CCU_IncarTempSum_Val_ro; + uint8_t CCU_MSG3_RC; + uint8_t CCU_MSG3_CS; +} CCU_Msg3_Bus; + +#endif + #ifndef DEFINED_TYPEDEF_FOR_CmdBusError_ #define DEFINED_TYPEDEF_FOR_CmdBusError_ @@ -160,32 +201,6 @@ typedef struct { #endif -#ifndef DEFINED_TYPEDEF_FOR_CCU_HVC_Req_Msg_Bus_ -#define DEFINED_TYPEDEF_FOR_CCU_HVC_Req_Msg_Bus_ - -typedef struct { - uint8_t CCU_eCompSpeedReq_Val_ro; - uint8_t CCU_eCompReq_Stat; - uint8_t CCU_LowTempValve_Req; - uint8_t CCU_HVC_Req_RC; - uint8_t CCU_HVC_Req_CS; -} CCU_HVC_Req_Msg_Bus; - -#endif - -#ifndef DEFINED_TYPEDEF_FOR_CCU_Msg3_Bus_ -#define DEFINED_TYPEDEF_FOR_CCU_Msg3_Bus_ - -typedef struct { - uint8_t CCU_FAN_Req; - uint8_t CCU_RestMode_Stat; - uint8_t CCU_IncarTempSum_Val_ro; - uint8_t CCU_MSG3_RC; - uint8_t CCU_MSG3_CS; -} CCU_Msg3_Bus; - -#endif - #ifndef DEFINED_TYPEDEF_FOR_CCU_Msg1_Bus_ #define DEFINED_TYPEDEF_FOR_CCU_Msg1_Bus_ @@ -325,6 +340,37 @@ typedef struct { #endif +#ifndef DEFINED_TYPEDEF_FOR_dbg_Drs_t_Bus_ +#define DEFINED_TYPEDEF_FOR_dbg_Drs_t_Bus_ + +typedef struct { + uint8_t dbg_Drs_0_SFL_DL; + uint8_t dbg_Drs_1_CFL_FPL; + uint8_t dbg_Drs_2_CFR_FPR; + uint8_t dbg_Drs_3_SFR_DR; + uint8_t dbg_Drs_4_SRL_RLB; + uint8_t dbg_Drs_5_CRL_FCL; + uint8_t dbg_Drs_6_CRR_FCR; + uint8_t dbg_Drs_7_SRR_RRB; +} dbg_Drs_t_Bus; + +#endif + +#ifndef DEFINED_TYPEDEF_FOR_dbg_LIN_AirQS_Stat_t_Bus_ +#define DEFINED_TYPEDEF_FOR_dbg_LIN_AirQS_Stat_t_Bus_ + +typedef struct { + uint8_t LIN_AirQS_LinRespErr_Stat; + uint8_t LIN_AirQualSen_Stat; + uint8_t LIN_AirQualSenCombined_Val; + uint8_t LIN_AirQualSen_Error_Stat; + uint8_t LIN_AirQualSenCOlvl_Val; + uint8_t LIN_AirQualSenNOxlvl_Val; + uint8_t LIN_AirQualSenNH3lvl_Val; +} dbg_LIN_AirQS_Stat_t_Bus; + +#endif + #ifndef DEFINED_TYPEDEF_FOR_dbg_Logic_Ac_Bus_ #define DEFINED_TYPEDEF_FOR_dbg_Logic_Ac_Bus_ @@ -391,6 +437,22 @@ typedef struct { #endif +#ifndef DEFINED_TYPEDEF_FOR_dbg_Logic_Valve_Bus_ +#define DEFINED_TYPEDEF_FOR_dbg_Logic_Valve_Bus_ + +typedef struct { + uint8_t Logic_Valve_Index_FL; + uint8_t Logic_Valve_Index_FR; + uint8_t Logic_Valve_Index_RL; + uint8_t Logic_Valve_Index_RR; + uint8_t Logic_Valve_Direction_FL; + uint8_t Logic_Valve_Direction_FR; + uint8_t Logic_Valve_Direction_RL; + uint8_t Logic_Valve_Direction_RR; +} dbg_Logic_Valve_Bus; + +#endif + #ifndef DEFINED_TYPEDEF_FOR_dbgCAN_dbg_Act0_Bus_ #define DEFINED_TYPEDEF_FOR_dbgCAN_dbg_Act0_Bus_ @@ -792,6 +854,148 @@ typedef struct { #endif +#ifndef DEFINED_TYPEDEF_FOR_LIN5_SENSON_ADR_Stat_Bus_ +#define DEFINED_TYPEDEF_FOR_LIN5_SENSON_ADR_Stat_Bus_ + +typedef struct { + uint8_t DRS_DL_Stat; + uint8_t DRS_DR_Stat; + uint8_t DRS_FPL_Stat; + uint8_t DRS_FPR_Stat; + uint8_t DRS_RLB_Stat; + uint8_t DRS_RRB_Stat; + uint8_t DRS_FCL_Stat; + uint8_t DRS_FCR_Stat; +} LIN5_SENSON_ADR_Stat_Bus; + +#endif + +#ifndef DEFINED_TYPEDEF_FOR_LIN4_AirQS_Stat_Bus_ +#define DEFINED_TYPEDEF_FOR_LIN4_AirQS_Stat_Bus_ + +typedef struct { + uint8_t AirQS_LinRespErr_Stat; + uint8_t AirQS_Sens_Stat; + uint8_t AirQS_Combined_Stat; + uint8_t AirQS_Err_Stat; + uint8_t AirQS_COLvl_Stat; + uint8_t AirQS_NOxLvl_Stat; + uint8_t AirQS_NH3Lvl_Stat; +} LIN4_AirQS_Stat_Bus; + +#endif + +#ifndef DEFINED_TYPEDEF_FOR_LIN4_Aroma_Stat_Bus_ +#define DEFINED_TYPEDEF_FOR_LIN4_Aroma_Stat_Bus_ + +typedef struct { + uint8_t Aroma_LinRespErr_Stat; + uint8_t Aroma_CartridgeSw_Stat; + uint8_t Aroma_Err_Stat; + uint8_t Aroma_Intens_Stat; + uint8_t Aroma_CartridgeFlavor_Stat; + uint8_t Aroma_CartridgeCapacity_Stat; +} LIN4_Aroma_Stat_Bus; + +#endif + +#ifndef DEFINED_TYPEDEF_FOR_LIN4_Ionizer_Stat_Bus_ +#define DEFINED_TYPEDEF_FOR_LIN4_Ionizer_Stat_Bus_ + +typedef struct { + uint8_t Ionizer_LinRespErr_Stat; + uint8_t Ionizer_Err_Stat; + uint8_t Ionizer_Ionization_Stat; +} LIN4_Ionizer_Stat_Bus; + +#endif + +#ifndef DEFINED_TYPEDEF_FOR_LIN4_eTXV_fHVAC_Stat_Bus_ +#define DEFINED_TYPEDEF_FOR_LIN4_eTXV_fHVAC_Stat_Bus_ + +typedef struct { + uint8_t eTXV_fHVAC_Pos_Stat; + uint8_t eTXV_fHVAC_LinRespErr_Stat; + uint8_t eTXV_fHVAC_Err_Stat; + uint8_t eTXV_fHVAC_Pressure_Val; + uint8_t eTXV_fHVAC_Temp_Val; +} LIN4_eTXV_fHVAC_Stat_Bus; + +#endif + +#ifndef DEFINED_TYPEDEF_FOR_LIN4_eTXV_rHVAC_Stat_Bus_ +#define DEFINED_TYPEDEF_FOR_LIN4_eTXV_rHVAC_Stat_Bus_ + +typedef struct { + uint8_t eTXV_rHVAC_Pos_Stat; + uint8_t eTXV_rHVAC_LinRespErr_Stat; + uint8_t eTXV_rHVAC_Err_Stat; + uint8_t eTXV_rHVAC_Pressure_Val; + uint8_t eTXV_rHVAC_Temp_Val; +} LIN4_eTXV_rHVAC_Stat_Bus; + +#endif + +#ifndef DEFINED_TYPEDEF_FOR_LIN4_eTXV_batChiller_Stat_Bus_ +#define DEFINED_TYPEDEF_FOR_LIN4_eTXV_batChiller_Stat_Bus_ + +typedef struct { + uint8_t eTXV_batChiller_Pos_Stat; + uint8_t eTXV_batChiller_LinRespErr_Stat; + uint8_t eTXV_batChiller_Err_Stat; + uint8_t eTXV_batChiller_Pressure_Val; + uint8_t eTXV_batChiller_Temp_Val; +} LIN4_eTXV_batChiller_Stat_Bus; + +#endif + +#ifndef DEFINED_TYPEDEF_FOR_LIN4_eTXV_eeChiller_Stat_Bus_ +#define DEFINED_TYPEDEF_FOR_LIN4_eTXV_eeChiller_Stat_Bus_ + +typedef struct { + uint8_t eTXV_eeChiller_Pos_Stat; + uint8_t eTXV_eeChiller_LinRespErr_Stat; + uint8_t eTXV_eeChiller_Err_Stat; + uint8_t eTXV_eeChiller_Pressure_Val; + uint8_t eTXV_eeChiller_Temp_Val; +} LIN4_eTXV_eeChiller_Stat_Bus; + +#endif + +#ifndef DEFINED_TYPEDEF_FOR_dbg_LIN_DRS_Stat_t_Bus_ +#define DEFINED_TYPEDEF_FOR_dbg_LIN_DRS_Stat_t_Bus_ + +typedef struct { + uint8_t LIN_DRS_DLLed1; + uint8_t LIN_DRS_DLLed2; + uint8_t LIN_DRS_DLLed3; + uint8_t LIN_DRS_DRLed1; + uint8_t LIN_DRS_DRLed2; + uint8_t LIN_DRS_DRLed3; + uint8_t LIN_DRS_FPLLed1; + uint8_t LIN_DRS_FPLLed2; + uint8_t LIN_DRS_FPLLed3; + uint8_t LIN_DRS_FPRLed1; + uint8_t LIN_DRS_FPRLed2; + uint8_t LIN_DRS_FPRLed3; + uint8_t LIN_DRS_RLBLed1; + uint8_t LIN_DRS_RLBLed2; + uint8_t LIN_DRS_RLBLed3; + uint8_t LIN_DRS_RRBLed1; + uint8_t LIN_DRS_RRBLed2; + uint8_t LIN_DRS_RRBLed3; + uint8_t LIN_DRS_FCLLed1; + uint8_t LIN_DRS_FCLLed2; + uint8_t LIN_DRS_FCLLed3; + uint8_t LIN_DRS_FCRLed1; + uint8_t LIN_DRS_FCRLed2; + uint8_t LIN_DRS_FCRLed3; + uint8_t LIN_DRS_BCM_IndFadingTime_ro; + uint8_t LIN_DRS_BCM_SwIndIntens; +} dbg_LIN_DRS_Stat_t_Bus; + +#endif + #ifndef DEFINED_TYPEDEF_FOR_CmdBusADCData_ #define DEFINED_TYPEDEF_FOR_CmdBusADCData_ diff --git a/Model_Task.c b/Model_Task.c index 5c5460a..1e0ab15 100644 --- a/Model_Task.c +++ b/Model_Task.c @@ -17,6 +17,9 @@ void ModelTask_Init( tLinTaskActuator *linTaskActuator2, tLinTaskActuator *linTaskActuator3, + tLin4TaskSensor *lin4TaskSensor, + tLin5TaskSensor *lin5TaskSensor, + tPwms *pwms, tGpios *gpios, @@ -37,6 +40,9 @@ void ModelTask_Init( env->linTaskActuator2 = linTaskActuator2; env->linTaskActuator3 = linTaskActuator3; + env->lin4TaskSensor = lin4TaskSensor; + env->lin5TaskSensor = lin5TaskSensor; + env->pwms = pwms; env->gpios = gpios; @@ -266,6 +272,9 @@ static _Noreturn void ModelTask_Thread(tModelTask *env) { // LoggerFormatError(LOGGER, LOG_SIGN, "Step 5 = %d", SystemGetMs()) + Lin4_Output_Get_From_Model(env->lin4TaskSensor); + Lin5_Output_Get_From_Model(env->lin5TaskSensor); + HVAC_model_step(); @@ -342,6 +351,14 @@ static _Noreturn void ModelTask_Thread(tModelTask *env) { memcpy(&env->ccu_candb_dbg_tx.dbg_Auto_AF, &rtY.dbgCAN_Auto_AF_model, sizeof(env->ccu_candb_dbg_tx.dbg_Auto_AF)); memcpy(&env->ccu_candb_dbg_tx.dbg_Auto_Duct, &rtY.dbgCAN_Auto_Duct_model, sizeof(env->ccu_candb_dbg_tx.dbg_Auto_Duct)); + memcpy(&env->ccu_candb_dbg_tx.dbg_Logic_Valve, &rtY.dbg_Logic_Valve_model, sizeof(env->ccu_candb_dbg_tx.dbg_Logic_Valve)); + + + memcpy(&env->ccu_candb_dbg_tx.dbg_Drs, &rtY.dbg_Drs_t_model, sizeof(env->ccu_candb_dbg_tx.dbg_Drs)); + memcpy(&env->ccu_candb_dbg_tx.dbg_LIN_AirQS_Stat, &rtY.dbg_LIN_AirQS_Stat_t_model, sizeof(env->ccu_candb_dbg_tx.dbg_Logic_Valve)); + + Lin4_Input_Set_From_Model(env->lin4TaskSensor); + set_CanDebugSpamTransmitter(env->canSpamDebugTransmitter, &env->ccu_candb_dbg_tx); set_Dtc_state(env->diagnostic); diff --git a/Model_Task.h b/Model_Task.h index a307071..f5ecd1b 100644 --- a/Model_Task.h +++ b/Model_Task.h @@ -18,6 +18,7 @@ #include "Pwms.h" #include "CanSpamReceiver.h" #include "DiagnosticTask.h" +#include "LinSensorTasks.h" typedef struct { @@ -44,6 +45,9 @@ typedef struct { tLinTaskActuator *linTaskActuator2; tLinTaskActuator *linTaskActuator3; + tLin4TaskSensor *lin4TaskSensor; + tLin5TaskSensor *lin5TaskSensor; + bool triggerCommand1; bool triggerCommand2; bool triggerCommand3; @@ -67,6 +71,8 @@ void ModelTask_Init( tLinTaskActuator *linTaskActuator1, tLinTaskActuator *linTaskActuator2, tLinTaskActuator *linTaskActuator3, + tLin4TaskSensor *lin4TaskSensor, + tLin5TaskSensor *lin5TaskSensor, tPwms *pwms, tGpios *gpios, tAdc0Task *adc0Task,