From f8783ce920132159732705dc77f667b9a720aaaa Mon Sep 17 00:00:00 2001 From: cfif Date: Mon, 29 Jun 2026 13:13:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D0=B8=D1=80=D0=BE=D0=B2=D0=BA?= =?UTF-8?q?=D0=B8=2029.06.2026?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HVAC_model.c | 21687 +++++++++++++++++++++-------------------- HVAC_model.h | 4785 +++++---- HVAC_model_data.c | 177 +- HVAC_model_private.h | 68 +- HVAC_model_types.h | 101 +- Model_Task.c | 130 +- Model_Task.h | 31 + 7 files changed, 13730 insertions(+), 13249 deletions(-) mode change 100755 => 100644 HVAC_model.c mode change 100755 => 100644 HVAC_model.h mode change 100755 => 100644 HVAC_model_data.c mode change 100755 => 100644 HVAC_model_private.h mode change 100755 => 100644 HVAC_model_types.h diff --git a/HVAC_model.c b/HVAC_model.c old mode 100755 new mode 100644 index 34d0963..ed82201 --- a/HVAC_model.c +++ b/HVAC_model.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.1140 + * Model version : 1.1202 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Wed Jun 24 09:01:39 2026 + * C/C++ source code generated on : Fri Jun 26 14:54:36 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -68,11 +68,13 @@ #define IN_PARTIAL_REC_ON ((uint8_t)2U) #define IN_TRACKING ((uint8_t)2U) -/* Named constants for Chart: '/Spd_Comp_Trigger' */ -#define IN_COMP_OFF ((uint8_t)1U) -#define IN_COMP_ON ((uint8_t)2U) +/* Named constants for Chart: '/Spd_OSA_Trigger' */ +#define IN_OSA_OFF ((uint8_t)1U) +#define IN_OSA_ON ((uint8_t)2U) /* Named constants for Chart: '/A//C Control' */ +#define IN_COMP_OFF ((uint8_t)1U) +#define IN_COMP_ON ((uint8_t)2U) #define IN_Chiller_OFF ((uint8_t)1U) #define IN_Chiller_ON ((uint8_t)2U) #define IN_FAULT_HIGH_PRESS ((uint8_t)1U) @@ -86,6 +88,10 @@ #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' */ +#define IN_REC_OFF ((uint8_t)1U) +#define IN_REC_ON ((uint8_t)2U) + /* Named constants for Chart: '/Synchronization stateflow chart' */ #define IN_FRONT_ONLY ((uint8_t)1U) #define IN_FULL_SYNC ((uint8_t)2U) @@ -228,9 +234,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 Memory15' */ +ActuatorCmdBus Actuator_Ch1_Command_Model;/* '/Data Store Memory15' */ +ActuatorCmdBus Actuator_Ch2_Command_Model;/* '/Data Store Memory15' */ ActuatorCmdBusInput Actuator_Ch0_Status_Model;/* '/Data Store Memory61' */ ActuatorCmdBusInput Actuator_Ch1_Status_Model;/* '/Data Store Memory62' */ ActuatorCmdBusInput Actuator_Ch2_Status_Model;/* '/Data Store Memory63' */ @@ -320,7 +326,7 @@ int16_t look1_is16lu64n32tu16Ds32Is16_binlcs(int16_t u0, const int16_t bp0[], 32) + (int16_t)yL_0d0); } -uint32_t binsearch_u32s16(int16_t u_6, const int16_t bp[], uint32_t startIndex, +uint32_t binsearch_u32s16(int16_t u_2, const int16_t bp[], uint32_t startIndex, uint32_t maxIndex) { uint32_t bpIdx; @@ -332,7 +338,7 @@ uint32_t binsearch_u32s16(int16_t u_6, const int16_t bp[], uint32_t startIndex, bpIndex = 0U; iRght = maxIndex; while (iRght - bpIndex > 1U) { - if (u_6 < bp[bpIdx]) { + if (u_2 < bp[bpIdx]) { iRght = bpIdx; } else { bpIndex = bpIdx; @@ -538,10 +544,11 @@ int16_t look1_is16lu64n32Ds32_binlcn(int16_t u0, const int16_t bp0[], const 2147483648LL) >> 32) + bpLeftVar); } -double look1_bs16ts16DdId_binlc(double u0, const int16_t bp0[], const int16_t +int16_t look1_bs16ts16Dd_binlc(double u0, const int16_t bp0[], const int16_t table[], uint32_t maxIndex) { double frac; + double v; uint32_t iLeft; int16_t uCast; @@ -605,84 +612,17 @@ double look1_bs16ts16DdId_binlc(double u0, const int16_t bp0[], const int16_t Overflow mode: 'wrapping' */ uCast = table[iLeft]; - return ((double)table[iLeft + 1U] - (double)uCast) * frac + (double)uCast; -} - -int16_t look1_is16bdlu64n48Ds32_binlcn(int16_t u0, const double bp0[], const - int16_t table[], uint32_t maxIndex) -{ - int64_t tmp; - 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: 'nearest' - */ - /* 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: 'nearest' - */ - if (u0 < bp0[0U]) { - iLeft = 0U; - frac = 0ULL; - } else if (u0 < bp0[maxIndex]) { - double u_7; - double v; - 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; + frac *= (double)table[iLeft + 1U] - (double)uCast; + v = fabs(frac); + if (v < 4.503599627370496E+15) { + if (v >= 0.5) { + frac = floor(frac + 0.5); + } else { + frac = 0.0; } - - u_7 = ((double)u0 - bp0[iLeft]) / (bp0[iLeft + 1U] - bp0[iLeft]) * - 2.81474976710656E+14; - v = fabs(u_7); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - u_7 = floor(u_7 + 0.5); - } else { - u_7 = 0.0; - } - } - - frac = (uint64_t)u_7; - } else { - iLeft = maxIndex - 1U; - frac = 281474976710656ULL; } - /* Column-major Interpolation 1-D - Interpolation method: 'Linear point-slope' - Use last breakpoint for index at or above upper limit: 'off' - Rounding mode: 'nearest' - Overflow mode: 'wrapping' - */ - yL_0d0 = table[iLeft]; - tmp = (table[iLeft + 1U] - yL_0d0) * (int64_t)frac; - return (int16_t)((int16_t)(((tmp & 140737488355328LL) != 0LL) + (tmp >> 48)) + - yL_0d0); + return (int16_t)(uCast + (int16_t)frac); } uint8_t look2_iu8bu8s16lu64n32_binlcse(uint8_t u0, uint8_t u1, const uint8_t @@ -893,6 +833,210 @@ uint8_t look1_iu16lu64n48tu8_binlcse(uint16_t u0, const uint16_t bp0[], const return y; } +int16_t look1_iu16lu64n48ts16Ds32_binlcs(uint16_t u0, const uint16_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; + } + + uint16_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 + 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 (int16_t)((int16_t)(((table[iLeft + 1U] - yL_0d0) * (int64_t)frac) >> + 48) + yL_0d0); +} + +int16_t look1_iu16bs16lu64n32ts16Ds32_binlcs(uint16_t u0, const int16_t bp0[], + const int16_t table[], uint32_t maxIndex) +{ + uint64_t frac; + uint32_t iLeft; + int16_t yL_0d0; + uint16_t tmp; + + /* 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' + */ + tmp = u0; + if (u0 > 32767) { + tmp = 32767U; + } + + if (u0 < bp0[0U]) { + iLeft = 0U; + frac = 0ULL; + } else if ((int16_t)tmp < bp0[maxIndex]) { + uint32_t bpIdx; + uint32_t iRght; + + /* Binary Search */ + bpIdx = maxIndex >> 1U; + iLeft = 0U; + iRght = maxIndex; + while (iRght - iLeft > 1U) { + if ((int16_t)tmp < bp0[bpIdx]) { + iRght = bpIdx; + } else { + iLeft = bpIdx; + } + + bpIdx = (iRght + iLeft) >> 1U; + } + + frac = ((uint64_t)(u0 - (uint32_t)bp0[iLeft]) << 32) / (uint32_t)(bp0[iLeft + + 1U] - bp0[iLeft]); + } else { + iLeft = maxIndex - 1U; + frac = 4294967296ULL; + } + + /* 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 (int16_t)((int16_t)(((table[iLeft + 1U] - yL_0d0) * (int64_t)frac) >> + 32) + yL_0d0); +} + +double look1_bs16ts16DdId_binlc(double u0, const int16_t bp0[], const int16_t + table[], uint32_t maxIndex) +{ + double frac; + uint32_t iLeft; + int16_t uCast; + + /* 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' + */ + frac = floor(u0); + if (frac < 32768.0) { + if (frac >= -32768.0) { + uCast = (int16_t)frac; + } else { + uCast = INT16_MIN; + } + } else { + uCast = INT16_MAX; + } + + 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 (uCast < bp0[bpIdx]) { + iRght = bpIdx; + } else { + iLeft = bpIdx; + } + + bpIdx = (iRght + iLeft) >> 1U; + } + + frac = (u0 - (double)bp0[iLeft]) / (double)(uint32_t)(bp0[iLeft + 1U] - + bp0[iLeft]); + } 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: 'wrapping' + */ + uCast = table[iLeft]; + 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) { @@ -1046,76 +1190,7 @@ double look1_iu16td_binlc(uint16_t u0, const uint16_t bp0[], const double table[ return (table[iLeft + 1U] - yL_0d0) * frac + yL_0d0; } -int16_t look1_iu16bs16lu64n32ts16Ds32_binlcs(uint16_t u0, const int16_t bp0[], - const int16_t table[], uint32_t maxIndex) -{ - uint64_t frac; - uint32_t iLeft; - int16_t yL_0d0; - uint16_t tmp; - - /* 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' - */ - tmp = u0; - if (u0 > 32767) { - tmp = 32767U; - } - - if (u0 < bp0[0U]) { - iLeft = 0U; - frac = 0ULL; - } else if ((int16_t)tmp < bp0[maxIndex]) { - uint32_t bpIdx; - uint32_t iRght; - - /* Binary Search */ - bpIdx = maxIndex >> 1U; - iLeft = 0U; - iRght = maxIndex; - while (iRght - iLeft > 1U) { - if ((int16_t)tmp < bp0[bpIdx]) { - iRght = bpIdx; - } else { - iLeft = bpIdx; - } - - bpIdx = (iRght + iLeft) >> 1U; - } - - frac = ((uint64_t)(u0 - (uint32_t)bp0[iLeft]) << 32) / (uint32_t)(bp0[iLeft - + 1U] - bp0[iLeft]); - } else { - iLeft = maxIndex - 1U; - frac = 4294967296ULL; - } - - /* 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 (int16_t)((int16_t)(((table[iLeft + 1U] - yL_0d0) * (int64_t)frac) >> - 32) + yL_0d0); -} - -uint32_t plook_u32s16_bincka(int16_t u_8, const int16_t bp[], uint32_t maxIndex) +uint32_t plook_u32s16_bincka(int16_t u_3, const int16_t bp[], uint32_t maxIndex) { uint32_t bpIndex; @@ -1126,10 +1201,10 @@ uint32_t plook_u32s16_bincka(int16_t u_8, 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_8 <= bp[0U]) { + if (u_3 <= bp[0U]) { bpIndex = 0U; - } else if (u_8 < bp[maxIndex]) { - bpIndex = binsearch_u32s16(u_8, bp, maxIndex >> 1U, maxIndex); + } else if (u_3 < bp[maxIndex]) { + bpIndex = binsearch_u32s16(u_3, bp, maxIndex >> 1U, maxIndex); } else { bpIndex = maxIndex; } @@ -1272,7 +1347,7 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t uint16_t rtb_FRF_NEW; uint16_t rtb_Switch2_a5_idx_0; uint16_t rtb_Switch2_a5_idx_1; - uint16_t rtb_Switch2_c_0; + uint16_t rtb_Switch2_cd_0; int8_t rtb_X; uint8_t rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MIN; uint8_t rtb_c_g_aucFLOW_BI_FOOT_VALVE_MAX; @@ -1584,7 +1659,7 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t * Sum: '/ ' * Switch: '/Switch2' */ - rtb_Switch2_c_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_eg) >> 1) << 1); /* Switch: '/Switch2' incorporates: * RelationalOperator: '/LowerRelop1' @@ -1615,12 +1690,12 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t * RelationalOperator: '/UpperRelop' * Switch: '/Switch' */ - if (rtb_Switch2_c_0 > rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX) { + if (rtb_Switch2_cd_0 > rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX) { /* Assignment: '/Присваивание в [3-4]' incorporates: * SignalConversion generated from: '/Out1' */ rty_Out1[2] = rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX; - } else if (rtb_Switch2_c_0 < rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN) { + } else if (rtb_Switch2_cd_0 < rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN) { /* Switch: '/Switch' incorporates: * Assignment: '/Присваивание в [3-4]' * SignalConversion generated from: '/Out1' @@ -1631,14 +1706,14 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t * SignalConversion generated from: '/Out1' * Switch: '/Switch' */ - rty_Out1[2] = rtb_Switch2_c_0; + rty_Out1[2] = rtb_Switch2_cd_0; } /* DataTypeConversion: '/Data Type Conversion' incorporates: * Sum: '/ ' * Switch: '/Switch2' */ - rtb_Switch2_c_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_eg) >> 1) << 1); /* Switch: '/Switch2' incorporates: * RelationalOperator: '/LowerRelop1' @@ -1669,12 +1744,12 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t * RelationalOperator: '/UpperRelop' * Switch: '/Switch' */ - if (rtb_Switch2_c_0 > rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX) { + if (rtb_Switch2_cd_0 > rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX) { /* Assignment: '/Присваивание в [3-4]' incorporates: * SignalConversion generated from: '/Out1' */ rty_Out1[3] = rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX; - } else if (rtb_Switch2_c_0 < rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN) { + } else if (rtb_Switch2_cd_0 < rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN) { /* Switch: '/Switch' incorporates: * Assignment: '/Присваивание в [3-4]' * SignalConversion generated from: '/Out1' @@ -1685,7 +1760,7 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t * SignalConversion generated from: '/Out1' * Switch: '/Switch' */ - rty_Out1[3] = rtb_Switch2_c_0; + rty_Out1[3] = rtb_Switch2_cd_0; } /* Switch: '/Switch2' incorporates: @@ -1777,7 +1852,7 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t uint16_t rtb_FRF_NEW; uint16_t rtb_Switch2_i_idx_0; uint16_t rtb_Switch2_i_idx_1; - uint16_t rtb_Switch2_p_0; + uint16_t rtb_Switch2_p4_0; int8_t rtb_X; uint8_t rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MAX; uint8_t rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MAX_l; @@ -2090,7 +2165,7 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t * Sum: '/ ' * Switch: '/Switch2' */ - rtb_Switch2_p_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_abl) >> 1) << 1); /* Switch: '/Switch2' incorporates: * RelationalOperator: '/LowerRelop1' @@ -2121,12 +2196,12 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t * RelationalOperator: '/UpperRelop' * Switch: '/Switch' */ - if (rtb_Switch2_p_0 > rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX) { + if (rtb_Switch2_p4_0 > rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX) { /* Assignment: '/Присваивание в [3-4]' incorporates: * SignalConversion generated from: '/Out1' */ rty_Out1[2] = rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX; - } else if (rtb_Switch2_p_0 < rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN) { + } else if (rtb_Switch2_p4_0 < rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN) { /* Switch: '/Switch' incorporates: * Assignment: '/Присваивание в [3-4]' * SignalConversion generated from: '/Out1' @@ -2137,14 +2212,14 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t * SignalConversion generated from: '/Out1' * Switch: '/Switch' */ - rty_Out1[2] = rtb_Switch2_p_0; + rty_Out1[2] = rtb_Switch2_p4_0; } /* DataTypeConversion: '/Data Type Conversion' incorporates: * Sum: '/ ' * Switch: '/Switch2' */ - rtb_Switch2_p_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_abl) >> 1) << 1); /* Switch: '/Switch2' incorporates: * RelationalOperator: '/LowerRelop1' @@ -2175,12 +2250,12 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t * RelationalOperator: '/UpperRelop' * Switch: '/Switch' */ - if (rtb_Switch2_p_0 > rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX) { + if (rtb_Switch2_p4_0 > rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX) { /* Assignment: '/Присваивание в [3-4]' incorporates: * SignalConversion generated from: '/Out1' */ rty_Out1[3] = rtb_c_g_aucFLOW_BI2_VENT_VALVE_MAX; - } else if (rtb_Switch2_p_0 < rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN) { + } else if (rtb_Switch2_p4_0 < rtb_c_g_aucFLOW_BI2_VENT_VALVE_MIN) { /* Switch: '/Switch' incorporates: * Assignment: '/Присваивание в [3-4]' * SignalConversion generated from: '/Out1' @@ -2191,7 +2266,7 @@ void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t * SignalConversion generated from: '/Out1' * Switch: '/Switch' */ - rty_Out1[3] = rtb_Switch2_p_0; + rty_Out1[3] = rtb_Switch2_p4_0; } /* Switch: '/Switch2' incorporates: @@ -2307,8 +2382,8 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t uint16_t rtb_FRF_NEW; uint16_t rtb_Switch2_ar_idx_0; uint16_t rtb_Switch2_ar_idx_1; - uint16_t rtb_Switch2_j_idx_0; - uint16_t rtb_Switch2_j_idx_1; + uint16_t rtb_Switch2_j3_idx_0; + uint16_t rtb_Switch2_j3_idx_1; int8_t rtb_X; uint8_t rtb_c_g_aucFLOW_AF_FOOT_VALVE_MAX; uint8_t rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k; @@ -2575,8 +2650,8 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t * Switch: '/Switch2' */ if (rtb_X >= 0) { - rtb_Switch2_j_idx_0 = rty_Out1[0]; - rtb_Switch2_j_idx_1 = rty_Out1[1]; + 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' @@ -2597,8 +2672,8 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t */ rtb_deg_en = (int16_t)((int32_t)((g_aucFLOW_AF_VENT_PLUS[tmp_0 - 1] * 205U + 1024U) >> 11) * rtb_X); - rtb_Switch2_j_idx_0 = (uint16_t)((int16_t)rty_Out1[0] - rtb_deg_en); - rtb_Switch2_j_idx_1 = (uint16_t)((int16_t)rty_Out1[1] - rtb_deg_en); + 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)' */ @@ -2630,7 +2705,7 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t /* Switch: '/Switch2' incorporates: * RelationalOperator: '/LowerRelop1' */ - if (rtb_Switch2_j_idx_0 > rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k) { + if (rtb_Switch2_j3_idx_0 > rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k) { /* Assignment: '/Присваивание в [3-4]' incorporates: * SignalConversion generated from: '/Out1' */ @@ -2639,7 +2714,7 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t /* Assignment: '/Присваивание в [3-4]' incorporates: * SignalConversion generated from: '/Out1' */ - rty_Out1[2] = rtb_Switch2_j_idx_0; + rty_Out1[2] = rtb_Switch2_j3_idx_0; } /* Assignment: '/Присваивание в [1-2]' incorporates: @@ -2651,7 +2726,7 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t /* Switch: '/Switch2' incorporates: * RelationalOperator: '/LowerRelop1' */ - if (rtb_Switch2_j_idx_1 > rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k) { + if (rtb_Switch2_j3_idx_1 > rtb_c_g_aucFLOW_AF_VENT_VALVE_MAX_k) { /* Assignment: '/Присваивание в [3-4]' incorporates: * SignalConversion generated from: '/Out1' */ @@ -2660,7 +2735,7 @@ void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t /* Assignment: '/Присваивание в [3-4]' incorporates: * SignalConversion generated from: '/Out1' */ - rty_Out1[3] = rtb_Switch2_j_idx_1; + rty_Out1[3] = rtb_Switch2_j3_idx_1; } /* Assignment: '/Присваивание в [5]' incorporates: @@ -5501,1895 +5576,8 @@ void Level3_j(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR /* * Output and update for atomic system: - * '/2.1 Incar target' - * '/2.1 Incar target' - * '/2.1 Incar target' - * '/2.1 Incar target Left' - */ -void u1Incartarget(int16_t rtu_SET, uint8_t rtu_LVL, bool rtu_set_has_half, - int16_t *rty_y) -{ - int32_t i; - int32_t tmp; - int32_t tmp_0; - int32_t tmp_1; - int16_t incar_tg_all[78]; - - /* : incar_tg_all = [g_assINCAR_TG_FL_LV0; g_assINCAR_TG_FL_LV1; g_assINCAR_TG_FL_LV2; g_assINCAR_TG_FL_LV3; g_assINCAR_TG_FL_LV4; g_assINCAR_TG_FL_LV5]; */ - for (i = 0; i < 13; i++) { - incar_tg_all[6 * i] = g_assINCAR_TG_FL_LV0[i]; - incar_tg_all[6 * i + 1] = g_assINCAR_TG_FL_LV1[i]; - incar_tg_all[6 * i + 2] = g_assINCAR_TG_FL_LV2[i]; - incar_tg_all[6 * i + 3] = g_assINCAR_TG_FL_LV3[i]; - incar_tg_all[6 * i + 4] = g_assINCAR_TG_FL_LV4[i]; - incar_tg_all[6 * i + 5] = g_assINCAR_TG_FL_LV5[i]; - } - - /* : if set_has_half && (SET - 16 + 1 <= length(incar_tg_all)) */ - i = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - i = -32768; - } - - if (rtu_set_has_half && (i + 1 <= 13)) { - /* : y = (incar_tg_all(LVL + 1, SET - 16) + incar_tg_all(LVL + 1, SET - 16 + 1)) / 2; */ - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - tmp = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp = -32768; - } - - tmp_0 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp_0 = 255; - } - - tmp_1 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_1 = -32768; - } - - i = incar_tg_all[((tmp - 1) * 6 + i) - 1] + incar_tg_all[(6 * tmp_1 + tmp_0) - - 1]; - if (i > 32767) { - i = 32767; - } else if (i < -32768) { - i = -32768; - } - - *rty_y = (int16_t)rt_roundd((double)i / 2.0); - } else { - /* : else */ - /* : y = incar_tg_all(LVL + 1, SET - 16); */ - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - tmp = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp = -32768; - } - - *rty_y = incar_tg_all[((tmp - 1) * 6 + i) - 1]; - } -} - -/* - * Output and update for atomic system: - * '/Y1-Y4 для FLL_tg_incar' - * '/Y1-Y4 для FRL_tg_incar' - */ -void Y1Y4FLL_tg_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_assDTG_FL_INC_Y1_LV0; g_assDTG_FL_INC_Y1_LV1; g_assDTG_FL_INC_Y1_LV2; g_assDTG_FL_INC_Y1_LV3; g_assDTG_FL_INC_Y1_LV4; g_assDTG_FL_INC_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assDTG_FL_INC_Y2_LV0; g_assDTG_FL_INC_Y2_LV1; g_assDTG_FL_INC_Y2_LV2; g_assDTG_FL_INC_Y2_LV3; g_assDTG_FL_INC_Y2_LV4; g_assDTG_FL_INC_Y2_LV5]; */ - /* : all_lvl_y3 = [g_assDTG_FL_INC_Y3_LV0; g_assDTG_FL_INC_Y3_LV1; g_assDTG_FL_INC_Y3_LV2; g_assDTG_FL_INC_Y3_LV3; g_assDTG_FL_INC_Y3_LV4; g_assDTG_FL_INC_Y3_LV5]; */ - /* : all_lvl_y4 = [g_assDTG_FL_INC_Y4_LV0; g_assDTG_FL_INC_Y4_LV1; g_assDTG_FL_INC_Y4_LV2; g_assDTG_FL_INC_Y4_LV3; g_assDTG_FL_INC_Y4_LV4; g_assDTG_FL_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_assDTG_FL_INC_Y1_LV0[i]; - tmp_3 = 6 * i + 1; - tmp[tmp_3] = g_assDTG_FL_INC_Y1_LV1[i]; - tmp_4 = 6 * i + 2; - tmp[tmp_4] = g_assDTG_FL_INC_Y1_LV2[i]; - tmp_5 = 6 * i + 3; - tmp[tmp_5] = g_assDTG_FL_INC_Y1_LV3[i]; - tmp_6 = 6 * i + 4; - tmp[tmp_6] = g_assDTG_FL_INC_Y1_LV4[i]; - tmp_7 = 6 * i + 5; - tmp[tmp_7] = g_assDTG_FL_INC_Y1_LV5[i]; - tmp_0[6 * i] = g_assDTG_FL_INC_Y2_LV0[i]; - tmp_0[tmp_3] = g_assDTG_FL_INC_Y2_LV1[i]; - tmp_0[tmp_4] = g_assDTG_FL_INC_Y2_LV2[i]; - tmp_0[tmp_5] = g_assDTG_FL_INC_Y2_LV3[i]; - tmp_0[tmp_6] = g_assDTG_FL_INC_Y2_LV4[i]; - tmp_0[tmp_7] = g_assDTG_FL_INC_Y2_LV5[i]; - tmp_1[6 * i] = g_assDTG_FL_INC_Y3_LV0[i]; - tmp_1[tmp_3] = g_assDTG_FL_INC_Y3_LV1[i]; - tmp_1[tmp_4] = g_assDTG_FL_INC_Y3_LV2[i]; - tmp_1[tmp_5] = g_assDTG_FL_INC_Y3_LV3[i]; - tmp_1[tmp_6] = g_assDTG_FL_INC_Y3_LV4[i]; - tmp_1[tmp_7] = g_assDTG_FL_INC_Y3_LV5[i]; - tmp_2[6 * i] = g_assDTG_FL_INC_Y4_LV0[i]; - tmp_2[tmp_3] = g_assDTG_FL_INC_Y4_LV1[i]; - tmp_2[tmp_4] = g_assDTG_FL_INC_Y4_LV2[i]; - tmp_2[tmp_5] = g_assDTG_FL_INC_Y4_LV3[i]; - tmp_2[tmp_6] = g_assDTG_FL_INC_Y4_LV4[i]; - tmp_2[tmp_7] = g_assDTG_FL_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: - * '/убираем одинаковые точки' - * '/убираем одинаковые точки' - */ -void u(const int16_t rtu_y_in[5], double rty_y_fixed[5]) -{ - int32_t i; - - /* : y_fixed = double(y_in); */ - for (i = 0; i < 5; i++) { - rty_y_fixed[i] = rtu_y_in[i]; - } - - /* : eps_val = 0.01; */ - /* : for i = 2:length(y_fixed) */ - /* : if y_fixed(i) <= y_fixed(i-1) */ - if (rty_y_fixed[1] <= rty_y_fixed[0]) { - /* : y_fixed(i) = y_fixed(i-1) + eps_val; */ - rty_y_fixed[1] = rty_y_fixed[0] + 0.01; - } - - /* : if y_fixed(i) <= y_fixed(i-1) */ - if (rty_y_fixed[2] <= rty_y_fixed[1]) { - /* : y_fixed(i) = y_fixed(i-1) + eps_val; */ - rty_y_fixed[2] = rty_y_fixed[1] + 0.01; - } - - /* : if y_fixed(i) <= y_fixed(i-1) */ - if (rty_y_fixed[3] <= rty_y_fixed[2]) { - /* : y_fixed(i) = y_fixed(i-1) + eps_val; */ - rty_y_fixed[3] = rty_y_fixed[2] + 0.01; - } - - /* : if y_fixed(i) <= y_fixed(i-1) */ - if (rty_y_fixed[4] <= rty_y_fixed[3]) { - /* : y_fixed(i) = y_fixed(i-1) + eps_val; */ - rty_y_fixed[4] = rty_y_fixed[3] + 0.01; - } -} - -/* - * Output and update for atomic system: - * '/Amb_Tg ' - * '/Amb_Tg ' - * '/Amb_Tg ' - * '/Amb_Tg ' - * '/Amb_Tg ' - * '/Amb_Tg ' - * '/Amb_Tg ' - * '/Amb_Tg ' - * '/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: - * '/X1-X4 для FLL_tg_amb' - * '/X1-X4 для FLL_tg_amb' - */ -void X1X4FLL_tg_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_x1 = [g_assDTG_FL_AMB_X1_LV0; g_assDTG_FL_AMB_X1_LV1; g_assDTG_FL_AMB_X1_LV2; g_assDTG_FL_AMB_X1_LV3; g_assDTG_FL_AMB_X1_LV4; g_assDTG_FL_AMB_X1_LV5]; */ - /* : all_lvl_x2 = [g_assDTG_FL_AMB_X2_LV0; g_assDTG_FL_AMB_X2_LV1; g_assDTG_FL_AMB_X2_LV2; g_assDTG_FL_AMB_X2_LV3; g_assDTG_FL_AMB_X2_LV4; g_assDTG_FL_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_assDTG_FL_AMB_X1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assDTG_FL_AMB_X1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assDTG_FL_AMB_X1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assDTG_FL_AMB_X1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assDTG_FL_AMB_X1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assDTG_FL_AMB_X1_LV5[i]; - tmp_0[6 * i] = g_assDTG_FL_AMB_X2_LV0[i]; - tmp_0[tmp_1] = g_assDTG_FL_AMB_X2_LV1[i]; - tmp_0[tmp_2] = g_assDTG_FL_AMB_X2_LV2[i]; - tmp_0[tmp_3] = g_assDTG_FL_AMB_X2_LV3[i]; - tmp_0[tmp_4] = g_assDTG_FL_AMB_X2_LV4[i]; - tmp_0[tmp_5] = g_assDTG_FL_AMB_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; - } - - 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: - * '/Y1-Y4 для FLL_tg_amb' - * '/Y1-Y4 для FRL_tg_amb' - */ -void Y1Y4FLL_tg_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_assDTG_FL_AMB_Y1_LV0; g_assDTG_FL_AMB_Y1_LV1; g_assDTG_FL_AMB_Y1_LV2; g_assDTG_FL_AMB_Y1_LV3; g_assDTG_FL_AMB_Y1_LV4; g_assDTG_FL_AMB_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assDTG_FL_AMB_Y2_LV0; g_assDTG_FL_AMB_Y2_LV1; g_assDTG_FL_AMB_Y2_LV2; g_assDTG_FL_AMB_Y2_LV3; g_assDTG_FL_AMB_Y2_LV4; g_assDTG_FL_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_assDTG_FL_AMB_Y1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assDTG_FL_AMB_Y1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assDTG_FL_AMB_Y1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assDTG_FL_AMB_Y1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assDTG_FL_AMB_Y1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assDTG_FL_AMB_Y1_LV5[i]; - tmp_0[6 * i] = g_assDTG_FL_AMB_Y2_LV0[i]; - tmp_0[tmp_1] = g_assDTG_FL_AMB_Y2_LV1[i]; - tmp_0[tmp_2] = g_assDTG_FL_AMB_Y2_LV2[i]; - tmp_0[tmp_3] = g_assDTG_FL_AMB_Y2_LV3[i]; - tmp_0[tmp_4] = g_assDTG_FL_AMB_Y2_LV4[i]; - tmp_0[tmp_5] = g_assDTG_FL_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-X4 для FLU_tg_sun' - * '/X1-X4 для FRL_tg_sun' - */ -void X1X4FLU_tg_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_assDTG_FL_SUN_X1_LV0; g_assDTG_FL_SUN_X1_LV1; g_assDTG_FL_SUN_X1_LV2; g_assDTG_FL_SUN_X1_LV3; g_assDTG_FL_SUN_X1_LV4; g_assDTG_FL_SUN_X1_LV5]; */ - /* : all_lvl_x2 = [g_assDTG_FL_SUN_X2_LV0; g_assDTG_FL_SUN_X2_LV1; g_assDTG_FL_SUN_X2_LV2; g_assDTG_FL_SUN_X2_LV3; g_assDTG_FL_SUN_X2_LV4; g_assDTG_FL_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_assDTG_FL_SUN_X1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assDTG_FL_SUN_X1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assDTG_FL_SUN_X1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assDTG_FL_SUN_X1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assDTG_FL_SUN_X1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assDTG_FL_SUN_X1_LV5[i]; - tmp_0[6 * i] = g_assDTG_FL_SUN_X2_LV0[i]; - tmp_0[tmp_1] = g_assDTG_FL_SUN_X2_LV1[i]; - tmp_0[tmp_2] = g_assDTG_FL_SUN_X2_LV2[i]; - tmp_0[tmp_3] = g_assDTG_FL_SUN_X2_LV3[i]; - tmp_0[tmp_4] = g_assDTG_FL_SUN_X2_LV4[i]; - tmp_0[tmp_5] = g_assDTG_FL_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-Y4 для FLL_tg_sun' - * '/Y1-Y4 для FRL_tg_sun' - */ -void Y1Y4FLL_tg_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_assDTG_FL_SUN_Y1_LV0; g_assDTG_FL_SUN_Y1_LV1; g_assDTG_FL_SUN_Y1_LV2; g_assDTG_FL_SUN_Y1_LV3; g_assDTG_FL_SUN_Y1_LV4; g_assDTG_FL_SUN_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assDTG_FL_SUN_Y2_LV0; g_assDTG_FL_SUN_Y2_LV1; g_assDTG_FL_SUN_Y2_LV2; g_assDTG_FL_SUN_Y2_LV3; g_assDTG_FL_SUN_Y2_LV4; g_assDTG_FL_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_assDTG_FL_SUN_Y1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assDTG_FL_SUN_Y1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assDTG_FL_SUN_Y1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assDTG_FL_SUN_Y1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assDTG_FL_SUN_Y1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assDTG_FL_SUN_Y1_LV5[i]; - tmp_0[6 * i] = g_assDTG_FL_SUN_Y2_LV0[i]; - tmp_0[tmp_1] = g_assDTG_FL_SUN_Y2_LV1[i]; - tmp_0[tmp_2] = g_assDTG_FL_SUN_Y2_LV2[i]; - tmp_0[tmp_3] = g_assDTG_FL_SUN_Y2_LV3[i]; - tmp_0[tmp_4] = g_assDTG_FL_SUN_Y2_LV4[i]; - tmp_0[tmp_5] = g_assDTG_FL_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: - * '/FLL_tg_max' - * '/FRL_tg_max' - */ -void FLL_tg_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_assDTG_FL_MIN_LV0; g_assDTG_FL_MIN_LV1; g_assDTG_FL_MIN_LV2; g_assDTG_FL_MIN_LV3; g_assDTG_FL_MIN_LV4; g_assDTG_FL_MIN_LV5]; */ - /* : all_max = [g_assDTG_FL_MAX_LV0; g_assDTG_FL_MAX_LV1; g_assDTG_FL_MAX_LV2; g_assDTG_FL_MAX_LV3; g_assDTG_FL_MAX_LV4; g_assDTG_FL_MAX_LV5]; */ - /* : y = all_max(LVL + 1, idivide(SET - 16 + 1, 2)); */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assDTG_FL_MAX_LV0[i]; - tmp[6 * i + 1] = g_assDTG_FL_MAX_LV1[i]; - tmp[6 * i + 2] = g_assDTG_FL_MAX_LV2[i]; - tmp[6 * i + 3] = g_assDTG_FL_MAX_LV3[i]; - tmp[6 * i + 4] = g_assDTG_FL_MAX_LV4[i]; - tmp[6 * i + 5] = g_assDTG_FL_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: - * '/FLL_tg_min' - * '/FRL_tg_min' - */ -void FLL_tg_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_assDTG_FL_MIN_LV0; g_assDTG_FL_MIN_LV1; g_assDTG_FL_MIN_LV2; g_assDTG_FL_MIN_LV3; g_assDTG_FL_MIN_LV4; g_assDTG_FL_MIN_LV5]; */ - /* : all_max = [g_assDTG_FL_MAX_LV0; g_assDTG_FL_MAX_LV1; g_assDTG_FL_MAX_LV2; g_assDTG_FL_MAX_LV3; g_assDTG_FL_MAX_LV4; g_assDTG_FL_MAX_LV5]; */ - /* : y = all_min(LVL + 1, idivide(SET - 16 + 1, 2)); */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assDTG_FL_MIN_LV0[i]; - tmp[6 * i + 1] = g_assDTG_FL_MIN_LV1[i]; - tmp[6 * i + 2] = g_assDTG_FL_MIN_LV2[i]; - tmp[6 * i + 3] = g_assDTG_FL_MIN_LV3[i]; - tmp[6 * i + 4] = g_assDTG_FL_MIN_LV4[i]; - tmp[6 * i + 5] = g_assDTG_FL_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: - * '/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) -{ - /* : is_ending_with_5 = (mod(SET, 10) == 5); */ - *rty_is_ending_with_5 = ((uint16_t)(rtu_SET - (uint32_t)((int32_t)(rtu_SET / - 10U) * 10)) == 5); -} - -/* - * Output and update for atomic system: - * '/X1-X4 для FLU_tg_incar' - * '/X1-X4 для FLU_tg_incar' - */ -void X1X4FLU_tg_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_assDTG_FU_INC_X1_LV0; g_assDTG_FU_INC_X1_LV1; g_assDTG_FU_INC_X1_LV2; g_assDTG_FU_INC_X1_LV3; g_assDTG_FU_INC_X1_LV4; g_assDTG_FU_INC_X1_LV5]; */ - /* : all_lvl_x2 = [g_assDTG_FU_INC_X2_LV0; g_assDTG_FU_INC_X2_LV1; g_assDTG_FU_INC_X2_LV2; g_assDTG_FU_INC_X2_LV3; g_assDTG_FU_INC_X2_LV4; g_assDTG_FU_INC_X2_LV5]; */ - /* : all_lvl_x3 = [g_assDTG_FU_INC_X3_LV0; g_assDTG_FU_INC_X3_LV1; g_assDTG_FU_INC_X3_LV2; g_assDTG_FU_INC_X3_LV3; g_assDTG_FU_INC_X3_LV4; g_assDTG_FU_INC_X3_LV5]; */ - /* : all_lvl_x4 = [g_assDTG_FU_INC_X4_LV0; g_assDTG_FU_INC_X4_LV1; g_assDTG_FU_INC_X4_LV2; g_assDTG_FU_INC_X4_LV3; g_assDTG_FU_INC_X4_LV4; g_assDTG_FU_INC_X4_LV5]; */ - /* : 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_assDTG_FU_INC_X1_LV0[i]; - tmp_3 = 6 * i + 1; - tmp[tmp_3] = g_assDTG_FU_INC_X1_LV1[i]; - tmp_4 = 6 * i + 2; - tmp[tmp_4] = g_assDTG_FU_INC_X1_LV2[i]; - tmp_5 = 6 * i + 3; - tmp[tmp_5] = g_assDTG_FU_INC_X1_LV3[i]; - tmp_6 = 6 * i + 4; - tmp[tmp_6] = g_assDTG_FU_INC_X1_LV4[i]; - tmp_7 = 6 * i + 5; - tmp[tmp_7] = g_assDTG_FU_INC_X1_LV5[i]; - tmp_0[6 * i] = g_assDTG_FU_INC_X2_LV0[i]; - tmp_0[tmp_3] = g_assDTG_FU_INC_X2_LV1[i]; - tmp_0[tmp_4] = g_assDTG_FU_INC_X2_LV2[i]; - tmp_0[tmp_5] = g_assDTG_FU_INC_X2_LV3[i]; - tmp_0[tmp_6] = g_assDTG_FU_INC_X2_LV4[i]; - tmp_0[tmp_7] = g_assDTG_FU_INC_X2_LV5[i]; - tmp_1[6 * i] = g_assDTG_FU_INC_X3_LV0[i]; - tmp_1[tmp_3] = g_assDTG_FU_INC_X3_LV1[i]; - tmp_1[tmp_4] = g_assDTG_FU_INC_X3_LV2[i]; - tmp_1[tmp_5] = g_assDTG_FU_INC_X3_LV3[i]; - tmp_1[tmp_6] = g_assDTG_FU_INC_X3_LV4[i]; - tmp_1[tmp_7] = g_assDTG_FU_INC_X3_LV5[i]; - tmp_2[6 * i] = g_assDTG_FU_INC_X4_LV0[i]; - tmp_2[tmp_3] = g_assDTG_FU_INC_X4_LV1[i]; - tmp_2[tmp_4] = g_assDTG_FU_INC_X4_LV2[i]; - tmp_2[tmp_5] = g_assDTG_FU_INC_X4_LV3[i]; - tmp_2[tmp_6] = g_assDTG_FU_INC_X4_LV4[i]; - tmp_2[tmp_7] = g_assDTG_FU_INC_X4_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: - * '/Y1-Y4 для FLU_tg_incar' - * '/Y1-Y4 для FLU_tg_incar' - */ -void Y1Y4FLU_tg_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_assDTG_FU_INC_Y1_LV0; g_assDTG_FU_INC_Y1_LV1; g_assDTG_FU_INC_Y1_LV2; g_assDTG_FU_INC_Y1_LV3; g_assDTG_FU_INC_Y1_LV4; g_assDTG_FU_INC_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assDTG_FU_INC_Y2_LV0; g_assDTG_FU_INC_Y2_LV1; g_assDTG_FU_INC_Y2_LV2; g_assDTG_FU_INC_Y2_LV3; g_assDTG_FU_INC_Y2_LV4; g_assDTG_FU_INC_Y2_LV5]; */ - /* : all_lvl_y3 = [g_assDTG_FU_INC_Y3_LV0; g_assDTG_FU_INC_Y3_LV1; g_assDTG_FU_INC_Y3_LV2; g_assDTG_FU_INC_Y3_LV3; g_assDTG_FU_INC_Y3_LV4; g_assDTG_FU_INC_Y3_LV5]; */ - /* : all_lvl_y4 = [g_assDTG_FU_INC_Y4_LV0; g_assDTG_FU_INC_Y4_LV1; g_assDTG_FU_INC_Y4_LV2; g_assDTG_FU_INC_Y4_LV3; g_assDTG_FU_INC_Y4_LV4; g_assDTG_FU_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_assDTG_FU_INC_Y1_LV0[i]; - tmp_3 = 6 * i + 1; - tmp[tmp_3] = g_assDTG_FU_INC_Y1_LV1[i]; - tmp_4 = 6 * i + 2; - tmp[tmp_4] = g_assDTG_FU_INC_Y1_LV2[i]; - tmp_5 = 6 * i + 3; - tmp[tmp_5] = g_assDTG_FU_INC_Y1_LV3[i]; - tmp_6 = 6 * i + 4; - tmp[tmp_6] = g_assDTG_FU_INC_Y1_LV4[i]; - tmp_7 = 6 * i + 5; - tmp[tmp_7] = g_assDTG_FU_INC_Y1_LV5[i]; - tmp_0[6 * i] = g_assDTG_FU_INC_Y2_LV0[i]; - tmp_0[tmp_3] = g_assDTG_FU_INC_Y2_LV1[i]; - tmp_0[tmp_4] = g_assDTG_FU_INC_Y2_LV2[i]; - tmp_0[tmp_5] = g_assDTG_FU_INC_Y2_LV3[i]; - tmp_0[tmp_6] = g_assDTG_FU_INC_Y2_LV4[i]; - tmp_0[tmp_7] = g_assDTG_FU_INC_Y2_LV5[i]; - tmp_1[6 * i] = g_assDTG_FU_INC_Y3_LV0[i]; - tmp_1[tmp_3] = g_assDTG_FU_INC_Y3_LV1[i]; - tmp_1[tmp_4] = g_assDTG_FU_INC_Y3_LV2[i]; - tmp_1[tmp_5] = g_assDTG_FU_INC_Y3_LV3[i]; - tmp_1[tmp_6] = g_assDTG_FU_INC_Y3_LV4[i]; - tmp_1[tmp_7] = g_assDTG_FU_INC_Y3_LV5[i]; - tmp_2[6 * i] = g_assDTG_FU_INC_Y4_LV0[i]; - tmp_2[tmp_3] = g_assDTG_FU_INC_Y4_LV1[i]; - tmp_2[tmp_4] = g_assDTG_FU_INC_Y4_LV2[i]; - tmp_2[tmp_5] = g_assDTG_FU_INC_Y4_LV3[i]; - tmp_2[tmp_6] = g_assDTG_FU_INC_Y4_LV4[i]; - tmp_2[tmp_7] = g_assDTG_FU_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: - * '/X1-X4 для FLU_tg_amb' - * '/X1-X4 для FLU_tg_amb' - */ -void X1X4FLU_tg_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_x1 = [g_assDTG_FU_AMB_X1_LV0; g_assDTG_FU_AMB_X1_LV1; g_assDTG_FU_AMB_X1_LV2; g_assDTG_FU_AMB_X1_LV3; g_assDTG_FU_AMB_X1_LV4; g_assDTG_FU_AMB_X1_LV5]; */ - /* : all_lvl_x2 = [g_assDTG_FU_AMB_X2_LV0; g_assDTG_FU_AMB_X2_LV1; g_assDTG_FU_AMB_X2_LV2; g_assDTG_FU_AMB_X2_LV3; g_assDTG_FU_AMB_X2_LV4; g_assDTG_FU_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_assDTG_FU_AMB_X1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assDTG_FU_AMB_X1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assDTG_FU_AMB_X1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assDTG_FU_AMB_X1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assDTG_FU_AMB_X1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assDTG_FU_AMB_X1_LV5[i]; - tmp_0[6 * i] = g_assDTG_FU_AMB_X2_LV0[i]; - tmp_0[tmp_1] = g_assDTG_FU_AMB_X2_LV1[i]; - tmp_0[tmp_2] = g_assDTG_FU_AMB_X2_LV2[i]; - tmp_0[tmp_3] = g_assDTG_FU_AMB_X2_LV3[i]; - tmp_0[tmp_4] = g_assDTG_FU_AMB_X2_LV4[i]; - tmp_0[tmp_5] = g_assDTG_FU_AMB_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; - } - - 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: - * '/Y1-Y4 для FLU_tg_amb' - * '/Y1-Y4 для FLU_tg_amb' - */ -void Y1Y4FLU_tg_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_assDTG_FU_AMB_Y1_LV0; g_assDTG_FU_AMB_Y1_LV1; g_assDTG_FU_AMB_Y1_LV2; g_assDTG_FU_AMB_Y1_LV3; g_assDTG_FU_AMB_Y1_LV4; g_assDTG_FU_AMB_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assDTG_FU_AMB_Y2_LV0; g_assDTG_FU_AMB_Y2_LV1; g_assDTG_FU_AMB_Y2_LV2; g_assDTG_FU_AMB_Y2_LV3; g_assDTG_FU_AMB_Y2_LV4; g_assDTG_FU_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_assDTG_FU_AMB_Y1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assDTG_FU_AMB_Y1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assDTG_FU_AMB_Y1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assDTG_FU_AMB_Y1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assDTG_FU_AMB_Y1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assDTG_FU_AMB_Y1_LV5[i]; - tmp_0[6 * i] = g_assDTG_FU_AMB_Y2_LV0[i]; - tmp_0[tmp_1] = g_assDTG_FU_AMB_Y2_LV1[i]; - tmp_0[tmp_2] = g_assDTG_FU_AMB_Y2_LV2[i]; - tmp_0[tmp_3] = g_assDTG_FU_AMB_Y2_LV3[i]; - tmp_0[tmp_4] = g_assDTG_FU_AMB_Y2_LV4[i]; - tmp_0[tmp_5] = g_assDTG_FU_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-X4 для FLU_tg_sun' - * '/X1-X4 для FLU_tg_sun' - */ -void X1X4FLU_tg_sun_h(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_assDTG_FU_SUN_X1_LV0; g_assDTG_FU_SUN_X1_LV1; g_assDTG_FU_SUN_X1_LV2; g_assDTG_FU_SUN_X1_LV3; g_assDTG_FU_SUN_X1_LV4; g_assDTG_FU_SUN_X1_LV5]; */ - /* : all_lvl_x2 = [g_assDTG_FU_SUN_X2_LV0; g_assDTG_FU_SUN_X2_LV1; g_assDTG_FU_SUN_X2_LV2; g_assDTG_FU_SUN_X2_LV3; g_assDTG_FU_SUN_X2_LV4; g_assDTG_FU_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_assDTG_FU_SUN_X1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assDTG_FU_SUN_X1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assDTG_FU_SUN_X1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assDTG_FU_SUN_X1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assDTG_FU_SUN_X1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assDTG_FU_SUN_X1_LV5[i]; - tmp_0[6 * i] = g_assDTG_FU_SUN_X2_LV0[i]; - tmp_0[tmp_1] = g_assDTG_FU_SUN_X2_LV1[i]; - tmp_0[tmp_2] = g_assDTG_FU_SUN_X2_LV2[i]; - tmp_0[tmp_3] = g_assDTG_FU_SUN_X2_LV3[i]; - tmp_0[tmp_4] = g_assDTG_FU_SUN_X2_LV4[i]; - tmp_0[tmp_5] = g_assDTG_FU_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-Y4 для FLU_tg_sun' - * '/Y1-Y4 для FLU_tg_sun' - */ -void Y1Y4FLU_tg_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_assDTG_FU_SUN_Y1_LV0; g_assDTG_FU_SUN_Y1_LV1; g_assDTG_FU_SUN_Y1_LV2; g_assDTG_FU_SUN_Y1_LV3; g_assDTG_FU_SUN_Y1_LV4; g_assDTG_FU_SUN_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assDTG_FU_SUN_Y2_LV0; g_assDTG_FU_SUN_Y2_LV1; g_assDTG_FU_SUN_Y2_LV2; g_assDTG_FU_SUN_Y2_LV3; g_assDTG_FU_SUN_Y2_LV4; g_assDTG_FU_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_assDTG_FU_SUN_Y1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assDTG_FU_SUN_Y1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assDTG_FU_SUN_Y1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assDTG_FU_SUN_Y1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assDTG_FU_SUN_Y1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assDTG_FU_SUN_Y1_LV5[i]; - tmp_0[6 * i] = g_assDTG_FU_SUN_Y2_LV0[i]; - tmp_0[tmp_1] = g_assDTG_FU_SUN_Y2_LV1[i]; - tmp_0[tmp_2] = g_assDTG_FU_SUN_Y2_LV2[i]; - tmp_0[tmp_3] = g_assDTG_FU_SUN_Y2_LV3[i]; - tmp_0[tmp_4] = g_assDTG_FU_SUN_Y2_LV4[i]; - tmp_0[tmp_5] = g_assDTG_FU_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: - * '/FXU_tg_min' - * '/FXU_tg_min' - */ -void FXU_tg_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_assDTG_FU_MIN_LV0; g_assDTG_FU_MIN_LV1; g_assDTG_FU_MIN_LV2; g_assDTG_FU_MIN_LV3; g_assDTG_FU_MIN_LV4; g_assDTG_FU_MIN_LV5]; */ - /* : all_max = [g_assDTG_FU_MAX_LV0; g_assDTG_FU_MAX_LV1; g_assDTG_FU_MAX_LV2; g_assDTG_FU_MAX_LV3; g_assDTG_FU_MAX_LV4; g_assDTG_FU_MAX_LV5]; */ - /* : y = all_min(LVL + 1, idivide(SET - 16 + 1, 2)); */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assDTG_FU_MIN_LV0[i]; - tmp[6 * i + 1] = g_assDTG_FU_MIN_LV1[i]; - tmp[6 * i + 2] = g_assDTG_FU_MIN_LV2[i]; - tmp[6 * i + 3] = g_assDTG_FU_MIN_LV3[i]; - tmp[6 * i + 4] = g_assDTG_FU_MIN_LV4[i]; - tmp[6 * i + 5] = g_assDTG_FU_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: - * '/2.1 Incar target' - * '/2.1 Incar target Left' - */ -void u1Incartarget_e(int16_t rtu_SET, uint8_t rtu_LVL, bool rtu_set_has_half, - int16_t *rty_y) -{ - int32_t i; - int32_t tmp; - int32_t tmp_0; - int32_t tmp_1; - int16_t incar_tg_all[78]; - - /* : 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++) { - incar_tg_all[6 * i] = g_assINCAR_TG_RL_LV0[i]; - incar_tg_all[6 * i + 1] = g_assINCAR_TG_RL_LV1[i]; - incar_tg_all[6 * i + 2] = g_assINCAR_TG_RL_LV2[i]; - incar_tg_all[6 * i + 3] = g_assINCAR_TG_RL_LV3[i]; - incar_tg_all[6 * i + 4] = g_assINCAR_TG_RL_LV4[i]; - incar_tg_all[6 * i + 5] = g_assINCAR_TG_RL_LV5[i]; - } - - /* : if set_has_half && (SET - 16 + 1 <= length(incar_tg_all)) */ - i = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - i = -32768; - } - - if (rtu_set_has_half && (i + 1 <= 13)) { - /* : y = (incar_tg_all(LVL + 1, SET - 16) + incar_tg_all(LVL + 1, SET - 16 + 1)) / 2; */ - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - tmp = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp = -32768; - } - - tmp_0 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp_0 = 255; - } - - tmp_1 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_1 = -32768; - } - - i = incar_tg_all[((tmp - 1) * 6 + i) - 1] + incar_tg_all[(6 * tmp_1 + tmp_0) - - 1]; - if (i > 32767) { - i = 32767; - } else if (i < -32768) { - i = -32768; - } - - *rty_y = (int16_t)rt_roundd((double)i / 2.0); - } else { - /* : else */ - /* : y = incar_tg_all(LVL + 1, SET - 16); */ - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - tmp = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp = -32768; - } - - *rty_y = incar_tg_all[((tmp - 1) * 6 + i) - 1]; - } -} - -/* - * Output and update for atomic system: - * '/X1-X4 для R_tg_incar' - * '/X1-X4 для R_tg_incar' - */ -void X1X4R_tg_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_assDTG_R_INC_X1_LV0; g_assDTG_R_INC_X1_LV1; g_assDTG_R_INC_X1_LV2; g_assDTG_R_INC_X1_LV3; g_assDTG_R_INC_X1_LV4; g_assDTG_R_INC_X1_LV5]; */ - /* : all_lvl_x2 = [g_assDTG_R_INC_X2_LV0; g_assDTG_R_INC_X2_LV1; g_assDTG_R_INC_X2_LV2; g_assDTG_R_INC_X2_LV3; g_assDTG_R_INC_X2_LV4; g_assDTG_R_INC_X2_LV5]; */ - /* : all_lvl_x3 = [g_assDTG_R_INC_X3_LV0; g_assDTG_R_INC_X3_LV1; g_assDTG_R_INC_X3_LV2; g_assDTG_R_INC_X3_LV3; g_assDTG_R_INC_X3_LV4; g_assDTG_R_INC_X3_LV5]; */ - /* : all_lvl_x4 = [g_assDTG_R_INC_X4_LV0; g_assDTG_R_INC_X4_LV1; g_assDTG_R_INC_X4_LV2; g_assDTG_R_INC_X4_LV3; g_assDTG_R_INC_X4_LV4; g_assDTG_R_INC_X4_LV5]; */ - /* : 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_assDTG_R_INC_X1_LV0[i]; - tmp_3 = 6 * i + 1; - tmp[tmp_3] = g_assDTG_R_INC_X1_LV1[i]; - tmp_4 = 6 * i + 2; - tmp[tmp_4] = g_assDTG_R_INC_X1_LV2[i]; - tmp_5 = 6 * i + 3; - tmp[tmp_5] = g_assDTG_R_INC_X1_LV3[i]; - tmp_6 = 6 * i + 4; - tmp[tmp_6] = g_assDTG_R_INC_X1_LV4[i]; - tmp_7 = 6 * i + 5; - tmp[tmp_7] = g_assDTG_R_INC_X1_LV5[i]; - tmp_0[6 * i] = g_assDTG_R_INC_X2_LV0[i]; - tmp_0[tmp_3] = g_assDTG_R_INC_X2_LV1[i]; - tmp_0[tmp_4] = g_assDTG_R_INC_X2_LV2[i]; - tmp_0[tmp_5] = g_assDTG_R_INC_X2_LV3[i]; - tmp_0[tmp_6] = g_assDTG_R_INC_X2_LV4[i]; - tmp_0[tmp_7] = g_assDTG_R_INC_X2_LV5[i]; - tmp_1[6 * i] = g_assDTG_R_INC_X3_LV0[i]; - tmp_1[tmp_3] = g_assDTG_R_INC_X3_LV1[i]; - tmp_1[tmp_4] = g_assDTG_R_INC_X3_LV2[i]; - tmp_1[tmp_5] = g_assDTG_R_INC_X3_LV3[i]; - tmp_1[tmp_6] = g_assDTG_R_INC_X3_LV4[i]; - tmp_1[tmp_7] = g_assDTG_R_INC_X3_LV5[i]; - tmp_2[6 * i] = g_assDTG_R_INC_X4_LV0[i]; - tmp_2[tmp_3] = g_assDTG_R_INC_X4_LV1[i]; - tmp_2[tmp_4] = g_assDTG_R_INC_X4_LV2[i]; - tmp_2[tmp_5] = g_assDTG_R_INC_X4_LV3[i]; - tmp_2[tmp_6] = g_assDTG_R_INC_X4_LV4[i]; - tmp_2[tmp_7] = g_assDTG_R_INC_X4_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: - * '/Y1-Y4 для R_tg_incar' - * '/Y1-Y4 для R_tg_incar' - */ -void Y1Y4R_tg_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_assDTG_R_INC_Y1_LV0; g_assDTG_R_INC_Y1_LV1; g_assDTG_R_INC_Y1_LV2; g_assDTG_R_INC_Y1_LV3; g_assDTG_R_INC_Y1_LV4; g_assDTG_R_INC_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assDTG_R_INC_Y2_LV0; g_assDTG_R_INC_Y2_LV1; g_assDTG_R_INC_Y2_LV2; g_assDTG_R_INC_Y2_LV3; g_assDTG_R_INC_Y2_LV4; g_assDTG_R_INC_Y2_LV5]; */ - /* : all_lvl_y3 = [g_assDTG_R_INC_Y3_LV0; g_assDTG_R_INC_Y3_LV1; g_assDTG_R_INC_Y3_LV2; g_assDTG_R_INC_Y3_LV3; g_assDTG_R_INC_Y3_LV4; g_assDTG_R_INC_Y3_LV5]; */ - /* : all_lvl_y4 = [g_assDTG_R_INC_Y4_LV0; g_assDTG_R_INC_Y4_LV1; g_assDTG_R_INC_Y4_LV2; g_assDTG_R_INC_Y4_LV3; g_assDTG_R_INC_Y4_LV4; g_assDTG_R_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_assDTG_R_INC_Y1_LV0[i]; - tmp_3 = 6 * i + 1; - tmp[tmp_3] = g_assDTG_R_INC_Y1_LV1[i]; - tmp_4 = 6 * i + 2; - tmp[tmp_4] = g_assDTG_R_INC_Y1_LV2[i]; - tmp_5 = 6 * i + 3; - tmp[tmp_5] = g_assDTG_R_INC_Y1_LV3[i]; - tmp_6 = 6 * i + 4; - tmp[tmp_6] = g_assDTG_R_INC_Y1_LV4[i]; - tmp_7 = 6 * i + 5; - tmp[tmp_7] = g_assDTG_R_INC_Y1_LV5[i]; - tmp_0[6 * i] = g_assDTG_R_INC_Y2_LV0[i]; - tmp_0[tmp_3] = g_assDTG_R_INC_Y2_LV1[i]; - tmp_0[tmp_4] = g_assDTG_R_INC_Y2_LV2[i]; - tmp_0[tmp_5] = g_assDTG_R_INC_Y2_LV3[i]; - tmp_0[tmp_6] = g_assDTG_R_INC_Y2_LV4[i]; - tmp_0[tmp_7] = g_assDTG_R_INC_Y2_LV5[i]; - tmp_1[6 * i] = g_assDTG_R_INC_Y3_LV0[i]; - tmp_1[tmp_3] = g_assDTG_R_INC_Y3_LV1[i]; - tmp_1[tmp_4] = g_assDTG_R_INC_Y3_LV2[i]; - tmp_1[tmp_5] = g_assDTG_R_INC_Y3_LV3[i]; - tmp_1[tmp_6] = g_assDTG_R_INC_Y3_LV4[i]; - tmp_1[tmp_7] = g_assDTG_R_INC_Y3_LV5[i]; - tmp_2[6 * i] = g_assDTG_R_INC_Y4_LV0[i]; - tmp_2[tmp_3] = g_assDTG_R_INC_Y4_LV1[i]; - tmp_2[tmp_4] = g_assDTG_R_INC_Y4_LV2[i]; - tmp_2[tmp_5] = g_assDTG_R_INC_Y4_LV3[i]; - tmp_2[tmp_6] = g_assDTG_R_INC_Y4_LV4[i]; - tmp_2[tmp_7] = g_assDTG_R_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: - * '/X1-X4 для R_tg_amb' - * '/X1-X4 для R_tg_amb' - */ -void X1X4R_tg_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_x1 = [g_assDTG_R_AMB_X1_LV0; g_assDTG_R_AMB_X1_LV1; g_assDTG_R_AMB_X1_LV2; g_assDTG_R_AMB_X1_LV3; g_assDTG_R_AMB_X1_LV4; g_assDTG_R_AMB_X1_LV5]; */ - /* : all_lvl_x2 = [g_assDTG_R_AMB_X2_LV0; g_assDTG_R_AMB_X2_LV1; g_assDTG_R_AMB_X2_LV2; g_assDTG_R_AMB_X2_LV3; g_assDTG_R_AMB_X2_LV4; g_assDTG_R_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_assDTG_R_AMB_X1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assDTG_R_AMB_X1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assDTG_R_AMB_X1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assDTG_R_AMB_X1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assDTG_R_AMB_X1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assDTG_R_AMB_X1_LV5[i]; - tmp_0[6 * i] = g_assDTG_R_AMB_X2_LV0[i]; - tmp_0[tmp_1] = g_assDTG_R_AMB_X2_LV1[i]; - tmp_0[tmp_2] = g_assDTG_R_AMB_X2_LV2[i]; - tmp_0[tmp_3] = g_assDTG_R_AMB_X2_LV3[i]; - tmp_0[tmp_4] = g_assDTG_R_AMB_X2_LV4[i]; - tmp_0[tmp_5] = g_assDTG_R_AMB_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; - } - - 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: - * '/Y1-Y4 для R_tg_amb' - * '/Y1-Y4 для R_tg_amb' - */ -void Y1Y4R_tg_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_assDTG_R_AMB_Y1_LV0; g_assDTG_R_AMB_Y1_LV1; g_assDTG_R_AMB_Y1_LV2; g_assDTG_R_AMB_Y1_LV3; g_assDTG_R_AMB_Y1_LV4; g_assDTG_R_AMB_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assDTG_R_AMB_Y2_LV0; g_assDTG_R_AMB_Y2_LV1; g_assDTG_R_AMB_Y2_LV2; g_assDTG_R_AMB_Y2_LV3; g_assDTG_R_AMB_Y2_LV4; g_assDTG_R_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_assDTG_R_AMB_Y1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assDTG_R_AMB_Y1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assDTG_R_AMB_Y1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assDTG_R_AMB_Y1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assDTG_R_AMB_Y1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assDTG_R_AMB_Y1_LV5[i]; - tmp_0[6 * i] = g_assDTG_R_AMB_Y2_LV0[i]; - tmp_0[tmp_1] = g_assDTG_R_AMB_Y2_LV1[i]; - tmp_0[tmp_2] = g_assDTG_R_AMB_Y2_LV2[i]; - tmp_0[tmp_3] = g_assDTG_R_AMB_Y2_LV3[i]; - tmp_0[tmp_4] = g_assDTG_R_AMB_Y2_LV4[i]; - tmp_0[tmp_5] = g_assDTG_R_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-X4 для R_tg_sun' - * '/X1-X4 для R_tg_sun' - */ -void X1X4R_tg_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_assDTG_R_SUN_X1_LV0; g_assDTG_R_SUN_X1_LV1; g_assDTG_R_SUN_X1_LV2; g_assDTG_R_SUN_X1_LV3; g_assDTG_R_SUN_X1_LV4; g_assDTG_R_SUN_X1_LV5]; */ - /* : all_lvl_x2 = [g_assDTG_R_SUN_X2_LV0; g_assDTG_R_SUN_X2_LV1; g_assDTG_R_SUN_X2_LV2; g_assDTG_R_SUN_X2_LV3; g_assDTG_R_SUN_X2_LV4; g_assDTG_R_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_assDTG_R_SUN_X1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assDTG_R_SUN_X1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assDTG_R_SUN_X1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assDTG_R_SUN_X1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assDTG_R_SUN_X1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assDTG_R_SUN_X1_LV5[i]; - tmp_0[6 * i] = g_assDTG_R_SUN_X2_LV0[i]; - tmp_0[tmp_1] = g_assDTG_R_SUN_X2_LV1[i]; - tmp_0[tmp_2] = g_assDTG_R_SUN_X2_LV2[i]; - tmp_0[tmp_3] = g_assDTG_R_SUN_X2_LV3[i]; - tmp_0[tmp_4] = g_assDTG_R_SUN_X2_LV4[i]; - tmp_0[tmp_5] = g_assDTG_R_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-Y4 для R_tg_sun' - * '/Y1-Y4 для R_tg_sun' - */ -void Y1Y4R_tg_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_assDTG_R_SUN_Y1_LV0; g_assDTG_R_SUN_Y1_LV1; g_assDTG_R_SUN_Y1_LV2; g_assDTG_R_SUN_Y1_LV3; g_assDTG_R_SUN_Y1_LV4; g_assDTG_R_SUN_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assDTG_R_SUN_Y2_LV0; g_assDTG_R_SUN_Y2_LV1; g_assDTG_R_SUN_Y2_LV2; g_assDTG_R_SUN_Y2_LV3; g_assDTG_R_SUN_Y2_LV4; g_assDTG_R_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_assDTG_R_SUN_Y1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assDTG_R_SUN_Y1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assDTG_R_SUN_Y1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assDTG_R_SUN_Y1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assDTG_R_SUN_Y1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assDTG_R_SUN_Y1_LV5[i]; - tmp_0[6 * i] = g_assDTG_R_SUN_Y2_LV0[i]; - tmp_0[tmp_1] = g_assDTG_R_SUN_Y2_LV1[i]; - tmp_0[tmp_2] = g_assDTG_R_SUN_Y2_LV2[i]; - tmp_0[tmp_3] = g_assDTG_R_SUN_Y2_LV3[i]; - tmp_0[tmp_4] = g_assDTG_R_SUN_Y2_LV4[i]; - tmp_0[tmp_5] = g_assDTG_R_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: - * '/R_tg_max' - * '/R_tg_max' - */ -void R_tg_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_assDTG_R_MIN_LV0; g_assDTG_R_MIN_LV1; g_assDTG_R_MIN_LV2; g_assDTG_R_MIN_LV3; g_assDTG_R_MIN_LV4; g_assDTG_R_MIN_LV5]; */ - /* : all_max = [g_assDTG_R_MAX_LV0; g_assDTG_R_MAX_LV1; g_assDTG_R_MAX_LV2; g_assDTG_R_MAX_LV3; g_assDTG_R_MAX_LV4; g_assDTG_R_MAX_LV5]; */ - /* : y = all_max(LVL + 1, idivide(SET - 16 + 1, 2)); */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assDTG_R_MAX_LV0[i]; - tmp[6 * i + 1] = g_assDTG_R_MAX_LV1[i]; - tmp[6 * i + 2] = g_assDTG_R_MAX_LV2[i]; - tmp[6 * i + 3] = g_assDTG_R_MAX_LV3[i]; - tmp[6 * i + 4] = g_assDTG_R_MAX_LV4[i]; - tmp[6 * i + 5] = g_assDTG_R_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: - * '/R_tg_min' - * '/R_tg_min' - */ -void R_tg_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_assDTG_R_MIN_LV0; g_assDTG_R_MIN_LV1; g_assDTG_R_MIN_LV2; g_assDTG_R_MIN_LV3; g_assDTG_R_MIN_LV4; g_assDTG_R_MIN_LV5]; */ - /* : all_max = [g_assDTG_R_MAX_LV0; g_assDTG_R_MAX_LV1; g_assDTG_R_MAX_LV2; g_assDTG_R_MAX_LV3; g_assDTG_R_MAX_LV4; g_assDTG_R_MAX_LV5]; */ - /* : y = all_min(LVL + 1, idivide(SET - 16 + 1, 2)); */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assDTG_R_MIN_LV0[i]; - tmp[6 * i + 1] = g_assDTG_R_MIN_LV1[i]; - tmp[6 * i + 2] = g_assDTG_R_MIN_LV2[i]; - tmp[6 * i + 3] = g_assDTG_R_MIN_LV3[i]; - tmp[6 * i + 4] = g_assDTG_R_MIN_LV4[i]; - tmp[6 * i + 5] = g_assDTG_R_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: - * '/2.1 Incar target' - * '/2.1 Incar target Rear Right' - */ -void u1Incartarget_p(int16_t rtu_SET, uint8_t rtu_LVL, bool rtu_set_has_half, - int16_t *rty_y) -{ - int32_t i; - int32_t tmp; - int32_t tmp_0; - int32_t tmp_1; - int16_t incar_tg_all[78]; - - /* : 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++) { - incar_tg_all[6 * i] = g_assINCAR_TG_RR_LV0[i]; - incar_tg_all[6 * i + 1] = g_assINCAR_TG_RR_LV1[i]; - incar_tg_all[6 * i + 2] = g_assINCAR_TG_RR_LV2[i]; - incar_tg_all[6 * i + 3] = g_assINCAR_TG_RR_LV3[i]; - incar_tg_all[6 * i + 4] = g_assINCAR_TG_RR_LV4[i]; - incar_tg_all[6 * i + 5] = g_assINCAR_TG_RR_LV5[i]; - } - - /* : if set_has_half && (SET - 16 + 1 <= length(incar_tg_all)) */ - i = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - i = -32768; - } - - if (rtu_set_has_half && (i + 1 <= 13)) { - /* : y = (incar_tg_all(LVL + 1, SET - 16) + incar_tg_all(LVL + 1, SET - 16 + 1)) / 2; */ - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - tmp = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp = -32768; - } - - tmp_0 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp_0 = 255; - } - - tmp_1 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_1 = -32768; - } - - i = incar_tg_all[((tmp - 1) * 6 + i) - 1] + incar_tg_all[(6 * tmp_1 + tmp_0) - - 1]; - if (i > 32767) { - i = 32767; - } else if (i < -32768) { - i = -32768; - } - - *rty_y = (int16_t)rt_roundd((double)i / 2.0); - } else { - /* : else */ - /* : y = incar_tg_all(LVL + 1, SET - 16); */ - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - tmp = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp = -32768; - } - - *rty_y = incar_tg_all[((tmp - 1) * 6 + i) - 1]; - } -} - -/* - * Output and update for atomic system: - * '/2.1 Incar target' - * '/2.1 Incar target Right' - */ -void u1Incartarget_l(int16_t rtu_SET, uint8_t rtu_LVL, bool rtu_set_has_half, - int16_t *rty_y) -{ - int32_t i; - int32_t tmp; - int32_t tmp_0; - int32_t tmp_1; - int16_t incar_tg_all[78]; - - /* : incar_tg_all = [g_assINCAR_TG_FR_LV0; g_assINCAR_TG_FR_LV1; g_assINCAR_TG_FR_LV2; g_assINCAR_TG_FR_LV3; g_assINCAR_TG_FR_LV4; g_assINCAR_TG_FR_LV5]; */ - for (i = 0; i < 13; i++) { - incar_tg_all[6 * i] = g_assINCAR_TG_FR_LV0[i]; - incar_tg_all[6 * i + 1] = g_assINCAR_TG_FR_LV1[i]; - incar_tg_all[6 * i + 2] = g_assINCAR_TG_FR_LV2[i]; - incar_tg_all[6 * i + 3] = g_assINCAR_TG_FR_LV3[i]; - incar_tg_all[6 * i + 4] = g_assINCAR_TG_FR_LV4[i]; - incar_tg_all[6 * i + 5] = g_assINCAR_TG_FR_LV5[i]; - } - - /* : if set_has_half && (SET - 16 + 1 <= length(incar_tg_all)) */ - i = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - i = -32768; - } - - if (rtu_set_has_half && (i + 1 <= 13)) { - /* : y = (incar_tg_all(LVL + 1, SET - 16) + incar_tg_all(LVL + 1, SET - 16 + 1)) / 2; */ - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - tmp = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp = -32768; - } - - tmp_0 = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - tmp_0 = 255; - } - - tmp_1 = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp_1 = -32768; - } - - i = incar_tg_all[((tmp - 1) * 6 + i) - 1] + incar_tg_all[(6 * tmp_1 + tmp_0) - - 1]; - if (i > 32767) { - i = 32767; - } else if (i < -32768) { - i = -32768; - } - - *rty_y = (int16_t)rt_roundd((double)i / 2.0); - } else { - /* : else */ - /* : y = incar_tg_all(LVL + 1, SET - 16); */ - i = (int32_t)(rtu_LVL + 1U); - if (rtu_LVL + 1U > 255U) { - i = 255; - } - - tmp = rtu_SET - 16; - if (rtu_SET - 16 < -32768) { - tmp = -32768; - } - - *rty_y = incar_tg_all[((tmp - 1) * 6 + i) - 1]; - } -} - -/* - * 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) { @@ -7423,8 +5611,24 @@ void correctionrate(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y) /* * Output and update for atomic system: - * '/AMBRATE_RISING_DIFF[8]' - * '/AMBRATE_RISING_DIFF[8]' + * '/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) +{ + /* : is_ending_with_5 = (mod(SET, 10) == 5); */ + *rty_is_ending_with_5 = ((uint16_t)(rtu_SET - (uint32_t)((int32_t)(rtu_SET / + 10U) * 10)) == 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) { @@ -7434,12 +5638,12 @@ void AMBRATE_RISING_DIFF8(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_F) /* * Output and update for atomic system: - * '/обычное понижение темп.' - * '/обычное повышение темп.' - * '/обычное понижение темп.' - * '/обычное повышение темп.' + * '/обычное понижение темп.' + * '/обычное повышение темп.' + * '/обычное понижение темп.' + * '/обычное повышение темп.' */ -void u_j(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_F) +void u(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_F) { int32_t tmp; @@ -7454,10 +5658,10 @@ void u_j(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) { @@ -7474,21 +5678,21 @@ 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) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/ускоренное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/ускоренное повышение темп.' */ u_m(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(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_F) { @@ -7498,23 +5702,23 @@ void AMBRATE_FALLING_DIFF7(uint16_t *rty_f_g_ausINCARRATE_FALLING_DIFF_F) /* * Output and update for action system: - * '/обычный режим повышения' - * '/обычный режим повышения' + * '/обычный режим повышения' + * '/обычный режим повышения' */ void u_i(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(rtu_lvl, rty_out); } /* * Output and update for atomic system: - * '/обычное повышение темп.' - * '/обычное повышение темп.' - * '/обычное повышение темп.' - * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' */ void u_e(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_F) { @@ -7531,10 +5735,10 @@ 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) { @@ -7551,21 +5755,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) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/ускоренное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/ускоренное повышение темп.' */ u_c(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) { @@ -7575,8 +5779,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) { @@ -7586,21 +5790,21 @@ 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) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/обычное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/обычное повышение темп.' */ u_e(rtu_lvl, rty_out); } /* * 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) { @@ -7610,10 +5814,10 @@ 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) { @@ -7630,10 +5834,10 @@ 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) { @@ -7650,21 +5854,21 @@ 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) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/ускоренное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/ускоренное повышение темп.' */ u_l(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) { @@ -7674,25 +5878,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) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/обычное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/обычное повышение темп.' */ u_a(rtu_lvl, rty_out); } /* * Output and update for atomic system: - * '/обычное повышение темп.' - * '/обычное повышение темп.' - * '/обычное повышение темп.' - * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' + * '/обычное повышение темп.' */ -void u_jy(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_R) +void u_j(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_R) { int32_t tmp; @@ -7707,10 +5911,10 @@ void u_jy(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) { @@ -7727,21 +5931,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) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/ускоренное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/ускоренное повышение темп.' */ u_d(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) { @@ -7751,8 +5955,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) { @@ -7762,15 +5966,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) { - /* SignalConversion generated from: '/out' incorporates: - * MATLAB Function: '/обычное повышение темп.' + /* SignalConversion generated from: '/out' incorporates: + * MATLAB Function: '/обычное повышение темп.' */ - u_jy(rtu_lvl, rty_out); + u_j(rtu_lvl, rty_out); } /* @@ -8171,8 +6375,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) { @@ -8189,8 +6393,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) { @@ -8207,8 +6411,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) { @@ -8225,8 +6429,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) { @@ -8243,8 +6447,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) { @@ -8261,8 +6465,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) { @@ -8279,8 +6483,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) { @@ -8297,29 +6501,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)); */ @@ -8331,7 +6535,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; @@ -8341,7 +6545,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; @@ -8351,7 +6555,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; @@ -8361,16 +6565,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) { @@ -8380,8 +6584,8 @@ 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_FX_incar' + * '/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]) { @@ -8396,483 +6600,6 @@ void X1X4Vtg_FX_incar(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]) int16_t tmp_1[42]; int16_t tmp_2[42]; - /* : all_lvl_x1 = [g_assVF_INC_X1_LV0; g_assVF_INC_X1_LV1; g_assVF_INC_X1_LV2; g_assVF_INC_X1_LV3; g_assVF_INC_X1_LV4; g_assVF_INC_X1_LV5]; */ - /* : all_lvl_x2 = [g_assVF_INC_X2_LV0; g_assVF_INC_X2_LV1; g_assVF_INC_X2_LV2; g_assVF_INC_X2_LV3; g_assVF_INC_X2_LV4; g_assVF_INC_X2_LV5]; */ - /* : all_lvl_x3 = [g_assVF_INC_X3_LV0; g_assVF_INC_X3_LV1; g_assVF_INC_X3_LV2; g_assVF_INC_X3_LV3; g_assVF_INC_X3_LV4; g_assVF_INC_X3_LV5]; */ - /* : all_lvl_x4 = [g_assVF_INC_X4_LV0; g_assVF_INC_X4_LV1; g_assVF_INC_X4_LV2; g_assVF_INC_X4_LV3; g_assVF_INC_X4_LV5; g_assVF_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_assVF_INC_X1_LV0[i]; - tmp_3 = 6 * i + 1; - tmp[tmp_3] = g_assVF_INC_X1_LV1[i]; - tmp_4 = 6 * i + 2; - tmp[tmp_4] = g_assVF_INC_X1_LV2[i]; - tmp_5 = 6 * i + 3; - tmp[tmp_5] = g_assVF_INC_X1_LV3[i]; - tmp_6 = 6 * i + 4; - tmp[tmp_6] = g_assVF_INC_X1_LV4[i]; - tmp_7 = 6 * i + 5; - tmp[tmp_7] = g_assVF_INC_X1_LV5[i]; - tmp_0[6 * i] = g_assVF_INC_X2_LV0[i]; - tmp_0[tmp_3] = g_assVF_INC_X2_LV1[i]; - tmp_0[tmp_4] = g_assVF_INC_X2_LV2[i]; - tmp_0[tmp_5] = g_assVF_INC_X2_LV3[i]; - tmp_0[tmp_6] = g_assVF_INC_X2_LV4[i]; - tmp_0[tmp_7] = g_assVF_INC_X2_LV5[i]; - tmp_1[6 * i] = g_assVF_INC_X3_LV0[i]; - tmp_1[tmp_3] = g_assVF_INC_X3_LV1[i]; - tmp_1[tmp_4] = g_assVF_INC_X3_LV2[i]; - tmp_1[tmp_5] = g_assVF_INC_X3_LV3[i]; - tmp_1[tmp_6] = g_assVF_INC_X3_LV4[i]; - tmp_1[tmp_7] = g_assVF_INC_X3_LV5[i]; - tmp_2[6 * i] = g_assVF_INC_X4_LV0[i]; - tmp_2[tmp_3] = g_assVF_INC_X4_LV1[i]; - tmp_2[tmp_4] = g_assVF_INC_X4_LV2[i]; - tmp_2[tmp_5] = g_assVF_INC_X4_LV3[i]; - tmp_2[tmp_6] = g_assVF_INC_X4_LV5[i]; - tmp_2[tmp_7] = g_assVF_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_FX_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_assVF_INC_Y1_LV0; g_assVF_INC_Y1_LV1; g_assVF_INC_Y1_LV2; g_assVF_INC_Y1_LV3; g_assVF_INC_Y1_LV4; g_assVF_INC_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assVF_INC_Y2_LV0; g_assVF_INC_Y2_LV1; g_assVF_INC_Y2_LV2; g_assVF_INC_Y2_LV3; g_assVF_INC_Y2_LV4; g_assVF_INC_Y2_LV5]; */ - /* : all_lvl_y3 = [g_assVF_INC_Y3_LV0; g_assVF_INC_Y3_LV1; g_assVF_INC_Y3_LV2; g_assVF_INC_Y3_LV3; g_assVF_INC_Y3_LV4; g_assVF_INC_Y3_LV5]; */ - /* : all_lvl_y4 = [g_assVF_INC_Y4_LV0; g_assVF_INC_Y4_LV1; g_assVF_INC_Y4_LV2; g_assVF_INC_Y4_LV3; g_assVF_INC_Y4_LV4; g_assVF_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_assVF_INC_Y1_LV0[i]; - tmp_3 = 6 * i + 1; - tmp[tmp_3] = g_assVF_INC_Y1_LV1[i]; - tmp_4 = 6 * i + 2; - tmp[tmp_4] = g_assVF_INC_Y1_LV2[i]; - tmp_5 = 6 * i + 3; - tmp[tmp_5] = g_assVF_INC_Y1_LV3[i]; - tmp_6 = 6 * i + 4; - tmp[tmp_6] = g_assVF_INC_Y1_LV4[i]; - tmp_7 = 6 * i + 5; - tmp[tmp_7] = g_assVF_INC_Y1_LV5[i]; - tmp_0[6 * i] = g_assVF_INC_Y2_LV0[i]; - tmp_0[tmp_3] = g_assVF_INC_Y2_LV1[i]; - tmp_0[tmp_4] = g_assVF_INC_Y2_LV2[i]; - tmp_0[tmp_5] = g_assVF_INC_Y2_LV3[i]; - tmp_0[tmp_6] = g_assVF_INC_Y2_LV4[i]; - tmp_0[tmp_7] = g_assVF_INC_Y2_LV5[i]; - tmp_1[6 * i] = g_assVF_INC_Y3_LV0[i]; - tmp_1[tmp_3] = g_assVF_INC_Y3_LV1[i]; - tmp_1[tmp_4] = g_assVF_INC_Y3_LV2[i]; - tmp_1[tmp_5] = g_assVF_INC_Y3_LV3[i]; - tmp_1[tmp_6] = g_assVF_INC_Y3_LV4[i]; - tmp_1[tmp_7] = g_assVF_INC_Y3_LV5[i]; - tmp_2[6 * i] = g_assVF_INC_Y4_LV0[i]; - tmp_2[tmp_3] = g_assVF_INC_Y4_LV1[i]; - tmp_2[tmp_4] = g_assVF_INC_Y4_LV2[i]; - tmp_2[tmp_5] = g_assVF_INC_Y4_LV3[i]; - tmp_2[tmp_6] = g_assVF_INC_Y4_LV4[i]; - tmp_2[tmp_7] = g_assVF_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: - * '/Y1-Y2 для Vtg_FL_amb' - * '/Y1-Y4 для Vtg_FR_amb' - */ -void Y1Y2Vtg_FL_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_assVF_AMB_Y1_LV0; g_assVF_AMB_Y1_LV1; g_assVF_AMB_Y1_LV2; g_assVF_AMB_Y1_LV3; g_assVF_AMB_Y1_LV4; g_assVF_AMB_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assVF_AMB_Y2_LV0; g_assVF_AMB_Y2_LV1; g_assVF_AMB_Y2_LV2; g_assVF_AMB_Y2_LV3; g_assVF_AMB_Y2_LV4; g_assVF_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_assVF_AMB_Y1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assVF_AMB_Y1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assVF_AMB_Y1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assVF_AMB_Y1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assVF_AMB_Y1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assVF_AMB_Y1_LV5[i]; - tmp_0[6 * i] = g_assVF_AMB_Y2_LV0[i]; - tmp_0[tmp_1] = g_assVF_AMB_Y2_LV1[i]; - tmp_0[tmp_2] = g_assVF_AMB_Y2_LV2[i]; - tmp_0[tmp_3] = g_assVF_AMB_Y2_LV3[i]; - tmp_0[tmp_4] = g_assVF_AMB_Y2_LV4[i]; - tmp_0[tmp_5] = g_assVF_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_FX_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_assVF_SUN_X1_LV0; g_assVF_SUN_X1_LV1; g_assVF_SUN_X1_LV2; g_assVF_SUN_X1_LV3; g_assVF_SUN_X1_LV4; g_assVF_SUN_X1_LV5]; */ - /* : all_lvl_x2 = [g_assVF_SUN_X2_LV0; g_assVF_SUN_X2_LV1; g_assVF_SUN_X2_LV2; g_assVF_SUN_X2_LV3; g_assVF_SUN_X2_LV4; g_assVF_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_assVF_SUN_X1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assVF_SUN_X1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assVF_SUN_X1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assVF_SUN_X1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assVF_SUN_X1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assVF_SUN_X1_LV5[i]; - tmp_0[6 * i] = g_assVF_SUN_X2_LV0[i]; - tmp_0[tmp_1] = g_assVF_SUN_X2_LV1[i]; - tmp_0[tmp_2] = g_assVF_SUN_X2_LV2[i]; - tmp_0[tmp_3] = g_assVF_SUN_X2_LV3[i]; - tmp_0[tmp_4] = g_assVF_SUN_X2_LV4[i]; - tmp_0[tmp_5] = g_assVF_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_FX_sun' - * '/Y1-Y4 для Vtg_FX_sun' - */ -void Y1Y2Vtg_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_y1 = [g_assVF_SUN_Y1_LV0; g_assVF_SUN_Y1_LV1; g_assVF_SUN_Y1_LV2; g_assVF_SUN_Y1_LV3; g_assVF_SUN_Y1_LV4; g_assVF_SUN_Y1_LV5]; */ - /* : all_lvl_y2 = [g_assVF_SUN_Y2_LV0; g_assVF_SUN_Y2_LV1; g_assVF_SUN_Y2_LV2; g_assVF_SUN_Y2_LV3; g_assVF_SUN_Y2_LV4; g_assVF_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_assVF_SUN_Y1_LV0[i]; - tmp_1 = 6 * i + 1; - tmp[tmp_1] = g_assVF_SUN_Y1_LV1[i]; - tmp_2 = 6 * i + 2; - tmp[tmp_2] = g_assVF_SUN_Y1_LV2[i]; - tmp_3 = 6 * i + 3; - tmp[tmp_3] = g_assVF_SUN_Y1_LV3[i]; - tmp_4 = 6 * i + 4; - tmp[tmp_4] = g_assVF_SUN_Y1_LV4[i]; - tmp_5 = 6 * i + 5; - tmp[tmp_5] = g_assVF_SUN_Y1_LV5[i]; - tmp_0[6 * i] = g_assVF_SUN_Y2_LV0[i]; - tmp_0[tmp_1] = g_assVF_SUN_Y2_LV1[i]; - tmp_0[tmp_2] = g_assVF_SUN_Y2_LV2[i]; - tmp_0[tmp_3] = g_assVF_SUN_Y2_LV3[i]; - tmp_0[tmp_4] = g_assVF_SUN_Y2_LV4[i]; - tmp_0[tmp_5] = g_assVF_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_FX_plus_max' - * '/Vtg_FX_plus_max' - */ -void Vtg_FX_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_assVF_MIN_LV0; g_assVF_MIN_LV1; g_assVF_MIN_LV2; g_assVF_MIN_LV3; g_assVF_MIN_LV4; g_assVF_MIN_LV5]; */ - /* : all_max = [g_assVF_MAX_LV0; g_assVF_MAX_LV1; g_assVF_MAX_LV2; g_assVF_MAX_LV3; g_assVF_MAX_LV4; g_assVF_MAX_LV5]; */ - /* : y = all_max(LVL + 1, idivide(SET - 16 + 1, 2)); */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assVF_MAX_LV0[i]; - tmp[6 * i + 1] = g_assVF_MAX_LV1[i]; - tmp[6 * i + 2] = g_assVF_MAX_LV2[i]; - tmp[6 * i + 3] = g_assVF_MAX_LV3[i]; - tmp[6 * i + 4] = g_assVF_MAX_LV4[i]; - tmp[6 * i + 5] = g_assVF_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_FX_plus_min' - * '/FXU_tg_min' - */ -void Vtg_FX_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_assVF_MIN_LV0; g_assVF_MIN_LV1; g_assVF_MIN_LV2; g_assVF_MIN_LV3; g_assVF_MIN_LV4; g_assVF_MIN_LV5]; */ - /* : all_max = [g_assVF_MAX_LV0; g_assVF_MAX_LV1; g_assVF_MAX_LV2; g_assVF_MAX_LV3; g_assVF_MAX_LV4; g_assVF_MAX_LV5]; */ - /* : y = all_min(LVL + 1, idivide(SET - 16 + 1, 2)); */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assVF_MIN_LV0[i]; - tmp[6 * i + 1] = g_assVF_MIN_LV1[i]; - tmp[6 * i + 2] = g_assVF_MIN_LV2[i]; - tmp[6 * i + 3] = g_assVF_MIN_LV3[i]; - tmp[6 * i + 4] = g_assVF_MIN_LV4[i]; - tmp[6 * i + 5] = g_assVF_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: - * '/X1-X4 для Vtg_FX_incar' - * '/X1-X4 для Vtg_RX_incar' - */ -void X1X4Vtg_FX_incar_o(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]; */ @@ -8962,10 +6689,10 @@ void X1X4Vtg_FX_incar_o(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]) /* * Output and update for atomic system: - * '/Y1-Y4 для Vtg_FX_incar' - * '/Y1-Y4 для Vtg_RX_incar' + * '/Y1-Y4 для Vtg_FX_incar' + * '/Y1-Y4 для Vtg_RX_incar' */ -void Y1Y4Vtg_FX_incar_o(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]) +void Y1Y4Vtg_FX_incar(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]) { int32_t i; int32_t tmp_3; @@ -9067,8 +6794,26 @@ void Y1Y4Vtg_FX_incar_o(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]) /* * Output and update for atomic system: - * '/Y1-Y2 для Vtg_RL_amb' - * '/Y1-Y4 для Vtg_RX_amb' + * '/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]) { @@ -9132,10 +6877,10 @@ void Y1Y2Vtg_RL_amb(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]) /* * Output and update for atomic system: - * '/X1-X2 для Vtg_FX_sun' - * '/X1-X4 для Vtg_RX_sun' + * '/X1-X2 для Vtg_FX_sun' + * '/X1-X4 для Vtg_RX_sun' */ -void X1X2Vtg_FX_sun_p(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]) +void X1X2Vtg_FX_sun(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]) { int32_t i; int32_t tmp_1; @@ -9197,8 +6942,8 @@ void X1X2Vtg_FX_sun_p(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]) /* * Output and update for atomic system: - * '/Y1-Y2 для Vtg_RX_sun' - * '/Y1-Y4 для Vtg_RX_sun' + * '/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]) { @@ -9262,8 +7007,8 @@ void Y1Y2Vtg_RX_sun(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]) /* * Output and update for atomic system: - * '/Vtg_RX_plus_max' - * '/Vtg_RX_plus_max' + * '/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) { @@ -9298,8 +7043,8 @@ void Vtg_RX_plus_max(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y) /* * Output and update for atomic system: - * '/Vtg_RX_plus_min' - * '/Vtg_RX_plus_min' + * '/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) { @@ -9334,12 +7079,12 @@ void Vtg_RX_plus_min(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y) /* * Output and update for atomic system: - * '/обычное понижение темп.' - * '/обычное повышение темп.' - * '/обычное понижение темп.' - * '/обычное повышение темп.' - * '/обычное понижение темп.' - * '/обычное повышение темп.' + * '/обычное понижение темп.' + * '/обычное повышение темп.' + * '/обычное понижение темп.' + * '/обычное повышение темп.' + * '/обычное понижение темп.' + * '/обычное повышение темп.' */ void u_bs(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_FALLING) { @@ -9356,130 +7101,130 @@ 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 *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); - /* 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, 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); - /* 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) { @@ -9496,12 +7241,12 @@ 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) { @@ -9518,137 +7263,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) { - /* 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); - /* 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); - /* 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, 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); - /* 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); - /* 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, 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) { @@ -9658,9 +7403,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) @@ -9707,9 +7452,9 @@ 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 *rtd_CCU_ActuatorErrF_Stat_private, uint8_t rtd_COM_private[9], uint8_t @@ -9720,32 +7465,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) { @@ -9760,40 +7505,40 @@ 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' + * '/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) @@ -9834,8 +7579,8 @@ void MODE_for_set_and_lvl(uint8_t rtu_LVL, int16_t rtu_SET, uint8_t /* * Output and update for atomic system: - * '/increase' - * '/increase' + * '/increase' + * '/increase' */ void increase(int16_t rtu_duct_tg, const uint16_t rtu_mode_array[7], uint16_t *rty_y) @@ -9862,8 +7607,8 @@ void increase(int16_t rtu_duct_tg, const uint16_t rtu_mode_array[7], uint16_t /* * Output and update for atomic system: - * '/decrease' - * '/decrease' + * '/decrease' + * '/decrease' */ void decrease(int16_t rtu_duct_tg, const uint16_t rtu_mode_array[7], uint16_t *rty_y) @@ -9890,8 +7635,8 @@ void decrease(int16_t rtu_duct_tg, const uint16_t rtu_mode_array[7], uint16_t /* * Output and update for atomic system: - * '/valves_rear_left' - * '/valves_rear_right' + * '/valves_rear_left' + * '/valves_rear_right' */ void valves_rear_left(uint16_t rtu_MODE, uint16_t rty_get_valves[6]) { @@ -9938,8 +7683,8 @@ 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' + * '/Valves for Bi Level' + * '/Valves for Bi Level' */ void ValvesforBiLevel(uint16_t rty_out[9]) { @@ -9953,8 +7698,8 @@ void ValvesforBiLevel(uint16_t rty_out[9]) /* * Output and update for atomic system: - * '/Valves for Def' - * '/Valves for Def' + * '/Valves for Def' + * '/Valves for Def' */ void ValvesforDef(uint16_t rty_out[9]) { @@ -9968,8 +7713,8 @@ void ValvesforDef(uint16_t rty_out[9]) /* * 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]) { @@ -9983,8 +7728,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]) { @@ -9998,8 +7743,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]) { @@ -10013,8 +7758,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]) { @@ -10028,8 +7773,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]) { @@ -10235,19 +7980,20 @@ static double find_index(int16_t delta) /* Model step function */ void HVAC_model_step(void) { - double rtb_Divide1_oo[9]; - double rtb_Saturation_m[8]; + double rtb_Divide1_e[9]; double rtb_f_lower_upper_bounds[2]; + double Blower_AF_FL; + double Blower_AF_FR; 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_Divide8; - double rtb_FLU_tg_correct_o; - double rtb_Product_fy; + double rtb_u8Vtg_FX_plus; int64_t rtb_IntegralGain; int64_t rtb_SumI2_b; int64_t rtb_SumI2_c; @@ -10263,74 +8009,87 @@ void HVAC_model_step(void) int32_t rtb_Gain5; int32_t rtb_Gain_pl; int32_t rtb_Switch_fs; - int32_t rtb_y_cc_tmp; - uint32_t rtb_dt_ca; - uint32_t rtb_dt_e; - int16_t FLU_tg[78]; + uint32_t rtb_Gain_fc_tmp_tmp; + uint32_t rtb_Gain_fc_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 tmp_1[42]; - int16_t tmp_2[42]; - int16_t rtb_uDLookupTable7[6]; - int16_t rtb_y_b5[5]; - int16_t rtb_y_pu[5]; - int16_t rtb_y_fe[3]; - int16_t rtb_y_j3[3]; - int16_t rtb_y_p4[3]; - int16_t rtb_y_p5[3]; - int16_t rtb_out_jy[2]; - int16_t Duct1_R; - int16_t Duct2_R; + int16_t rtb_MultiportSwitch1[7]; + int16_t rtb_uDLookupTable7_g[7]; + int16_t tmp_3[6]; + int16_t Duct_FRL_Tg_DBG[5]; + int16_t Duct_FRU_Tg_DBG[5]; + int16_t rtb_VectorConcatenate_bp[5]; + int16_t rtb_VectorConcatenate_j[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 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_Gain2_ay; - int16_t rtb_Merge1; - int16_t rtb_Merge_kr; - int16_t rtb_u0101_a; - int16_t rtb_y_cy; - int16_t rtb_y_ha; - int16_t rtb_y_hd; - int16_t rtb_y_j5; - int16_t rtb_y_k2; - int16_t rtb_y_lp; - int16_t rtb_y_pc; - uint16_t tmp_3[45]; - uint16_t tmp_4[42]; - uint16_t rtb_out_bn[9]; + int16_t rtb_Bias1_h; + int16_t rtb_Bias2; + 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_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_cc[9]; - uint16_t rtb_out_dy[9]; - uint16_t rtb_out_g4h[9]; - uint16_t rtb_out_hu[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]; uint16_t rtb_get_mode[7]; uint16_t rtb_Gain1_nj[6]; uint16_t rtb_TmpSignalConversionAt1DLookupTable7Inport1[6]; - uint16_t rtb_out_df[2]; + uint16_t rtb_out_g4[2]; uint16_t Gain; uint16_t Gain1; - uint16_t rtb_Saturation2_a; - uint16_t rtb_out_d1m; - uint16_t rtb_out_gr; - uint16_t rtb_out_hvi; - uint16_t rtb_out_ni; + 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_5; + int8_t tmp_4; 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_cs[6]; + uint8_t rtb_DataTypeConversion2_ie[6]; uint8_t Blower_AF_RL; uint8_t Comp_Max_RPM_Allowed; uint8_t EN_BATTChiller; uint8_t ShutOffRear_EN; uint8_t Valve_2_way; - uint8_t rtb_CCU_DuctTempSenErrR_Stat_n; - uint8_t rtb_DataTypeConversion2_bb; uint8_t rtb_Merge_g; uint8_t rtb_Merge_hu; uint8_t rtb_Merge_j; @@ -10338,7 +8097,10 @@ void HVAC_model_step(void) 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_timer_out; + uint8_t rtb_u_gnq; bool rtb_LogicalOperator3_i5[9]; bool rtb_Compare_le[8]; bool rtb_LogicalOperator3_n1[6]; @@ -10349,13 +8111,13 @@ void HVAC_model_step(void) bool guard3; bool guard4; bool rtb_Compare; - bool rtb_Compare_a; bool rtb_Compare_ah; 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; @@ -10374,12 +8136,11 @@ void HVAC_model_step(void) bool rtb_Compare_l; bool rtb_Compare_lb; bool rtb_Compare_m; - bool rtb_Compare_m4; bool rtb_Compare_n2; bool rtb_Compare_nq; bool rtb_Compare_ofn; - bool rtb_Compare_ot; bool rtb_Compare_p; + bool rtb_Compare_p1p; bool rtb_FailCond; bool rtb_FailCond_fn; bool rtb_FailCond_gk; @@ -10395,9 +8156,10 @@ void HVAC_model_step(void) bool rtb_LogicalOperator3; bool rtb_LogicalOperator3_nz; bool rtb_LogicalOperator3_p5; + bool rtb_LogicalOperator4_fo; + bool rtb_LogicalOperator5; bool rtb_LogicalOperator6; bool rtb_LogicalOperator8; - bool rtb_is_ending_with_5; /* Gain: '/Gain' incorporates: * DataStoreRead: '/Data Store Read' @@ -10409,96 +8171,96 @@ void HVAC_model_step(void) */ Gain1 = (uint16_t)(10U * rtDW.PWM_rear); - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ rtb_Divide1 = (double)rtDW.ADC_Data_Model.Sensor_AC_Pressure / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare = (rtb_Divide1 < 0.1); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_ah = (rtb_Divide1 > 4.9); - /* Logic: '/Logical Operator' */ + /* 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 ' + /* 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' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ rtb_Divide1_cf = (double)rtDW.ADC_Data_Model.Sensor_Evap_Temp / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_eu = (rtb_Divide1_cf < 0.1); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_e3 = (rtb_Divide1_cf > 4.9); - /* Logic: '/Logical Operator' */ + /* 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 ' + /* 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' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ rtb_Divide1_ea = (double)rtDW.ADC_Data_Model.Sensor_Rear_Evap_Temp / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_fr = (rtb_Divide1_ea < 0.1); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_b = (rtb_Divide1_ea > 4.9); - /* Logic: '/Logical Operator' */ + /* 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 ' + /* 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)); @@ -10528,9 +8290,9 @@ 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' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' * Gain: '/Gain2' * Gain: '/Gain3' * Lookup_n-D: '/1-D Lookup Table' @@ -10581,8 +8343,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; @@ -10602,15 +8364,15 @@ void HVAC_model_step(void) */ /* : sf_internal_predicateOutput = Pressure_sen < P_Hi_CutOff; */ if (rtDW.AMB > 400) { - rtb_y_pc = g_assAC_PRESSURE_HYS_HI_ENG_ON[0]; + rtb_FLU_tg_correct_g = g_assAC_PRESSURE_HYS_HI_ENG_ON[0]; } else { - rtb_y_pc = g_assAC_PRESSURE_HYS_HI_ENG_ON[2]; + rtb_FLU_tg_correct_g = g_assAC_PRESSURE_HYS_HI_ENG_ON[2]; } /* Gain: '/Gain2' incorporates: * Switch: '/Switch' */ - i = 15857 * rtb_y_pc; + i = 15857 * rtb_FLU_tg_correct_g; if (rtDW.Pressure < ((((uint32_t)i & 8192U) != 0U) && ((((uint32_t)i & 8191U) != 0U) || (i > 0))) + (i >> 14)) { rtDW.is_PRESSURE_MONITOR = IN_PRESSURE_OK; @@ -10665,12 +8427,12 @@ void HVAC_model_step(void) if (rtDW.is_FRONT_CONTOUR == IN_Front_A_C_OFF) { /* : sf_internal_predicateOutput = AC_Req_MMS == 1 && pwm_front>= (g_ausMIN_PWM(1)-1) && Error_PressSen == 0 && Error_Eva_F == 0 && Eva_F > 0 && amb_temp>g_assAC_CUT_OFF_AMB_F(1) && Pressure_Condition_table_OK == 1; */ - rtb_dt_ca = g_ausMIN_PWM[0] - 1U; + rtb_Subtract = g_ausMIN_PWM[0] - 1U; if (g_ausMIN_PWM[0] - 1U > g_ausMIN_PWM[0]) { - rtb_dt_ca = 0U; + rtb_Subtract = 0U; } - if ((rtDW.CCU_AC_FRONT != 0) && ((Gain >= (int32_t)rtb_dt_ca) && + 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)))) { @@ -10682,12 +8444,12 @@ void HVAC_model_step(void) } else { /* case IN_Front_A_C_ON: */ /* : sf_internal_predicateOutput = AC_Req_MMS == 0 || pwm_front < (g_ausMIN_PWM(1)-1) || Error_PressSen == 1 || Error_Eva_F == 1 || Eva_F <= 0 || amb_temp<=g_assAC_CUT_OFF_AMB_F(1) || Pressure_Condition_table_OK == 0; */ - rtb_dt_ca = g_ausMIN_PWM[0] - 1U; + rtb_Subtract = g_ausMIN_PWM[0] - 1U; if (g_ausMIN_PWM[0] - 1U > g_ausMIN_PWM[0]) { - rtb_dt_ca = 0U; + rtb_Subtract = 0U; } - if ((rtDW.CCU_AC_FRONT == 0) || ((Gain < (int32_t)rtb_dt_ca) || + 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)))))) @@ -10701,12 +8463,12 @@ void HVAC_model_step(void) if (rtDW.is_REAR_CONTOUR == IN_Rear_A_C_OFF) { /* : sf_internal_predicateOutput = AC_Req_MMS_Rear == 1 && pwm_rear >= (g_ausMIN_PWM(2)-1) && Error_PressSen == 0 && Error_Eva_R == 0 && Eva_R > 0 && amb_temp>g_assAC_CUT_OFF_AMB_F(2) && Pressure_Condition_table_OK == 1; */ - rtb_dt_ca = g_ausMIN_PWM[1] - 1U; + rtb_Subtract = g_ausMIN_PWM[1] - 1U; if (g_ausMIN_PWM[1] - 1U > g_ausMIN_PWM[1]) { - rtb_dt_ca = 0U; + rtb_Subtract = 0U; } - if ((rtDW.CCU_AC_REAR != 0) && ((Gain1 >= (int32_t)rtb_dt_ca) && + 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)))) { @@ -10718,12 +8480,12 @@ void HVAC_model_step(void) } else { /* case IN_Rear_A_C_ON: */ /* : sf_internal_predicateOutput = [AC_Req_MMS_Rear == 0 || pwm_rear < (g_ausMIN_PWM(2)-1) || Error_PressSen == 1 || Error_Eva_R == 1 || Eva_R <= 0 || amb_temp<=g_assAC_CUT_OFF_AMB_F(2) || Pressure_Condition_table_OK == 0]; */ - rtb_dt_ca = g_ausMIN_PWM[1] - 1U; + rtb_Subtract = g_ausMIN_PWM[1] - 1U; if (g_ausMIN_PWM[1] - 1U > g_ausMIN_PWM[1]) { - rtb_dt_ca = 0U; + rtb_Subtract = 0U; } - if ((rtDW.CCU_AC_REAR == 0) || ((Gain1 < (int32_t)rtb_dt_ca) || + 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)))))) @@ -10758,8 +8520,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; @@ -10769,8 +8531,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; @@ -10784,8 +8546,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; @@ -10795,8 +8557,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; @@ -10811,8 +8573,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; @@ -10826,8 +8588,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; @@ -10838,8 +8600,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; @@ -10897,12 +8659,12 @@ void HVAC_model_step(void) } /* : if (t_now - t_start) >= 60000.0 */ - rtb_dt_ca = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start; - if (rtb_dt_ca > rtDW.t_now) { - rtb_dt_ca = 0U; + rtb_Subtract = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start; + if (rtb_Subtract > rtDW.t_now) { + rtb_Subtract = 0U; } - if (rtb_dt_ca >= 60000U) { + if (rtb_Subtract >= 60000U) { /* : timer_out = uint8(1); */ rtb_timer_out = 1U; } else { @@ -10915,10 +8677,10 @@ void HVAC_model_step(void) /* End of MATLAB Function: '/MATLAB Function1' */ /* Switch: '/Switch2' incorporates: - * Constant: '/Constant' + * Constant: '/Constant' * DataStoreRead: '/Data Store Read32' * Gain: '/Gain2' - * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' */ if (rtDW.Engine_speed > 500.0) { /* Switch: '/Switch' incorporates: @@ -10933,9 +8695,9 @@ void HVAC_model_step(void) /* Gain: '/Gain2' incorporates: * Constant: '/Constant4' */ - rtb_dt_ca = 41943U * g_usCMP_MAX_ENG_OFF; - Comp_Max_RPM_Allowed = (uint8_t)((uint32_t)((rtb_dt_ca & 1048576U) != 0U) + - (rtb_dt_ca >> 21)); + 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' */ @@ -10943,24 +8705,24 @@ void HVAC_model_step(void) /* Sum: '/Sum' incorporates: * DataStoreWrite: '/Data Store Write14' */ - g_assEVA_TG_AMB_R_h = (int16_t)(rtB.Comp_Target_Temp + g_assEVA_TG_AMB_F_n); + g_assEVA_TG_AMB_F_n += rtB.Comp_Target_Temp; /* Sum: '/Sum' incorporates: * DataStoreWrite: '/Data Store Write14' */ - rtb_Merge1 = (int16_t)(g_assEVA_TG_AMB_R_h - rtB.Comp_Feedback_Temp); + rtb_Selector_p = (int16_t)(g_assEVA_TG_AMB_F_n - rtB.Comp_Feedback_Temp); - /* DiscreteIntegrator: '/Integrator' */ + /* DiscreteIntegrator: '/Integrator' */ if (Enable_Comp_PID || (rtDW.Integrator_PrevResetState != 0)) { rtDW.Integrator_DSTATE_l = 0; } - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' - * Gain: '/Proportional Gain' + /* Sum: '/Sum' incorporates: + * DiscreteIntegrator: '/Integrator' + * Gain: '/Proportional Gain' */ - rtb_SumI2_e = (((int64_t)(-2 * rtb_Merge1) << 16) + rtDW.Integrator_DSTATE_l) >> - 16; + 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) { @@ -10979,32 +8741,32 @@ void HVAC_model_step(void) /* 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_CCU_DuctTempSenErrR_Stat_n = Comp_Max_RPM_Allowed; + rtb_timer_out = Comp_Max_RPM_Allowed; } else if ((uint8_t)rtb_SumI2_e < rtb_Switch3_ed) { - /* Switch: '/Switch' */ - rtb_CCU_DuctTempSenErrR_Stat_n = rtb_Switch3_ed; + /* Switch: '/Switch' */ + rtb_timer_out = rtb_Switch3_ed; } else { - rtb_CCU_DuctTempSenErrR_Stat_n = (uint8_t)rtb_SumI2_e; + rtb_timer_out = (uint8_t)rtb_SumI2_e; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ /* RateLimiter: '/Rate Limiter' */ - i = rtb_CCU_DuctTempSenErrR_Stat_n - rtDW.PrevY; - if (i > 20) { - rtb_CCU_DuctTempSenErrR_Stat_n = (uint8_t)(rtDW.PrevY + 20); - } else if (i < -20) { - rtb_CCU_DuctTempSenErrR_Stat_n = (uint8_t)(rtDW.PrevY - 20); + 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); } - rtDW.PrevY = rtb_CCU_DuctTempSenErrR_Stat_n; + rtDW.PrevY = rtb_timer_out; /* End of RateLimiter: '/Rate Limiter' */ @@ -11012,7 +8774,7 @@ void HVAC_model_step(void) * Constant: '/Constant' */ if (rtB.Chiller_Only_Flag > 0.0) { - rtb_CCU_DuctTempSenErrR_Stat_n = g_ucAC_EXTRA_RPM; + rtb_timer_out = g_ucAC_EXTRA_RPM; } /* End of Switch: '/Switch1' */ @@ -11028,7 +8790,7 @@ void HVAC_model_step(void) /* MATLAB Function: '/MATLAB Function' */ /* : rpm_phys = double(rpm_in); */ - rpm_phys = rtb_CCU_DuctTempSenErrR_Stat_n; + rpm_phys = rtb_timer_out; /* : low1 = double(res_cal(1)); */ /* : high1 = double(res_cal(2)); */ @@ -11037,11 +8799,10 @@ void HVAC_model_step(void) /* : low3 = double(res_cal(5)); */ /* : high3 = double(res_cal(6)); */ /* : if (rpm_phys >= low1) && (rpm_phys <= high1) */ - if ((rtb_CCU_DuctTempSenErrR_Stat_n >= rtb_Gain1_nj[0]) && - (rtb_CCU_DuctTempSenErrR_Stat_n <= rtb_Gain1_nj[1])) { + if ((rtb_timer_out >= rtb_Gain1_nj[0]) && (rtb_timer_out <= rtb_Gain1_nj[1])) + { /* : if (rpm_phys - low1) < (high1 - rpm_phys) */ - if (rtb_CCU_DuctTempSenErrR_Stat_n - rtb_Gain1_nj[0] < rtb_Gain1_nj[1] - - rtb_CCU_DuctTempSenErrR_Stat_n) { + if (rtb_timer_out - rtb_Gain1_nj[0] < rtb_Gain1_nj[1] - rtb_timer_out) { /* : rpm_phys = low1; */ rpm_phys = rtb_Gain1_nj[0]; } else { @@ -11089,7 +8850,7 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read31' * DataStoreRead: '/Data Store Read32' * DataStoreWrite: '/Data Store Write25' - * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' * Lookup_n-D: '/Fan_Speed_By_Pressure' * RelationalOperator: '/Compare' */ @@ -11112,18 +8873,19 @@ void HVAC_model_step(void) /* : 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_y_pc = look1_is16lu64n32tu8Ds16Is16_binlcs(rtDW.Pressure, + 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_y_pc < 0) { - rtb_y_pc = 0; - } else if (rtb_y_pc > 255) { - rtb_y_pc = 255; + 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_y_pc; + Valve_2_way = (uint8_t)rtb_FLU_tg_correct_g; /* : if engine_on == false */ - if ((rtDW.Engine_speed <= 500.0) && (rtb_y_pc > g_ucFAN_MAX_ENG_OFF)) { + 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; @@ -11145,27 +8907,27 @@ void HVAC_model_step(void) /* Switch: '/Switch4' */ if (rtB.Chiller_Only_Flag > 0.0) { - /* BusCreator: '/Bus Creator' incorporates: + /* BusCreator: '/Bus Creator' incorporates: * Constant: '/Constant' - * DataStoreWrite: '/Data Store Write' + * 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' */ - /* 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' + /* 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; @@ -11173,75 +8935,73 @@ void HVAC_model_step(void) Comp_Max_RPM_Allowed = rtb_Switch3_ed; } - /* 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); - /* RelationalOperator: '/fix for DT propagation issue' */ - rtb_is_ending_with_5 = (Comp_Max_RPM_Allowed > 0); - - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant2' + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant2' + * RelationalOperator: '/fix for DT propagation issue' */ - if (rtb_is_ending_with_5) { + if (Comp_Max_RPM_Allowed > 0) { rtb_y_b2 = 1; } else { rtb_y_b2 = -1; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* Gain: '/Integral Gain' incorporates: + /* Gain: '/Integral Gain' incorporates: * Gain: '/Gain' */ - rtb_Gain_pl = -26214 * rtb_Merge1; + rtb_Gain_pl = -26214 * rtb_Selector_p; - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant3' - * Constant: '/Constant4' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant3' + * Constant: '/Constant4' * Gain: '/Gain' - * RelationalOperator: '/fix for DT propagation issue1' + * RelationalOperator: '/fix for DT propagation issue1' */ if (rtb_Gain_pl > 0) { - tmp_5 = 1; + tmp_4 = 1; } else { - tmp_5 = -1; + tmp_4 = -1; } - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' * Gain: '/Gain' - * Logic: '/AND3' - * RelationalOperator: '/Equal1' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch2' + * Logic: '/AND3' + * RelationalOperator: '/Equal1' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch2' */ - if ((Comp_Max_RPM_Allowed != 0) && (rtb_y_b2 == tmp_5)) { + if ((Comp_Max_RPM_Allowed != 0) && (rtb_y_b2 == tmp_4)) { rtb_Switch_fs = 0; } else { rtb_Switch_fs = rtb_Gain_pl; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ /* RelationalOperator: '/Compare' incorporates: * Constant: '/Constant' * DataStoreRead: '/Data Store Read12' */ - rtb_Compare_ot = (rtDW.CAN_LoHi_Front == 11); + rtb_LogicalOperator5 = (rtDW.CAN_LoHi_Front == 11); /* RelationalOperator: '/Compare' incorporates: * Constant: '/Constant' * DataStoreRead: '/Data Store Read12' */ - rtb_Compare_m4 = (rtDW.CAN_LoHi_Front == 22); + rtb_Compare_dq = (rtDW.CAN_LoHi_Front == 22); /* Chart: '/13,1,3,15 Valve control' incorporates: * DataStoreRead: '/Data Store Read11' @@ -11257,8 +9017,6 @@ void HVAC_model_step(void) rtB.Cmd_3Way = 2U; /* : Cmd_FrontTemp = -1; */ - rtB.Cmd_FrontTemp = -1.0; - /* : Cmd_RearTemp_3W = -1; */ rtDW.Cmd_RearTemp_3W = -1.0; rtDW.is_TwoWay_Logic = IN_Wait_2W; @@ -11272,54 +9030,53 @@ void HVAC_model_step(void) 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_e = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start_1; - rtb_dt_ca = rtb_dt_e; - if (rtb_dt_e > rtDW.t_now) { - rtb_dt_ca = 0U; + 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; } - rtb_LogicalOperator1_n = !rtb_Compare_m4; + rtb_LogicalOperator1_n = !rtb_Compare_dq; if ((rtDW.Duct_RR_Tg > g_assTHREEWAY_DUCT_TGT_R[0]) && - (rtb_LogicalOperator1_n && (rtb_dt_ca > 60000U) && (rtDW.LO_HI_MODE_RR - != 2) && (!rtb_Compare_ot))) { + (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; */ - rtB.Cmd_FrontTemp = 0.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 && (t_now - t_start_1) <= 60000) || LO_HI_MODE_RR == 2 || HI_MODE_FRONT == true; */ + /* : 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_e > rtDW.t_now) { - rtb_dt_e = 0U; + if (rtb_dt_an > rtDW.t_now) { + rtb_dt_an = 0U; } - if (rtb_LogicalOperator1_n && (rtb_dt_e <= 60000U)) { - rtb_Compare_ot = true; + if (rtb_LogicalOperator1_n && (rtDW.ECT > g_ssTHREEWAY_WATER) && + (rtb_dt_an <= 60000U)) { + rtb_LogicalOperator5 = true; } else { - rtb_Compare_ot = ((rtDW.LO_HI_MODE_RR == 2) || rtb_Compare_ot); + rtb_LogicalOperator5 = ((rtDW.LO_HI_MODE_RR == 2) && + rtb_LogicalOperator5); } } else { - rtb_Compare_ot = ((rtDW.LO_HI_MODE_RR == 2) || rtb_Compare_ot); + rtb_LogicalOperator5 = ((rtDW.LO_HI_MODE_RR == 2) && + rtb_LogicalOperator5); } - if (rtb_Compare_ot) { + if (rtb_LogicalOperator5) { rtDW.is_ThreeWay_Logic = IN_Wait_3W; /* : Cmd_3Way = 2; */ rtB.Cmd_3Way = 2U; /* : Cmd_FrontTemp = -1; */ - rtB.Cmd_FrontTemp = -1.0; - /* : Cmd_RearTemp_3W = -1; */ rtDW.Cmd_RearTemp_3W = -1.0; } @@ -11328,12 +9085,12 @@ void HVAC_model_step(void) case IN_ExitSeq_3W: /* : sf_internal_predicateOutput = (t_now - t_start_2) >= 3000 || LO_HI_MODE_RR == 2; */ - rtb_dt_ca = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start_2; - if (rtb_dt_ca > rtDW.t_now) { - rtb_dt_ca = 0U; + rtb_Subtract = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start_2; + if (rtb_Subtract > rtDW.t_now) { + rtb_Subtract = 0U; } - if ((rtb_dt_ca >= 3000U) || (rtDW.LO_HI_MODE_RR == 2)) { + if ((rtb_Subtract >= 3000U) || (rtDW.LO_HI_MODE_RR == 2)) { /* : Cmd_FrontTemp = -1; */ /* : Cmd_RearTemp_3W = -1 */ rtDW.is_ThreeWay_Logic = IN_Wait_3W; @@ -11342,8 +9099,6 @@ void HVAC_model_step(void) rtB.Cmd_3Way = 2U; /* : Cmd_FrontTemp = -1; */ - rtB.Cmd_FrontTemp = -1.0; - /* : Cmd_RearTemp_3W = -1; */ rtDW.Cmd_RearTemp_3W = -1.0; } else { @@ -11351,8 +9106,6 @@ void HVAC_model_step(void) rtB.Cmd_3Way = 1U; /* : Cmd_FrontTemp = 0; */ - rtB.Cmd_FrontTemp = 0.0; - /* : Cmd_RearTemp_3W = 0; */ rtDW.Cmd_RearTemp_3W = 0.0; @@ -11363,14 +9116,16 @@ void HVAC_model_step(void) default: /* case IN_Wait_3W: */ - /* : sf_internal_predicateOutput = (D_tg_RR <= g_assTHREEWAY_DUCT_TGT_R(2) || LO_MODE_FULL == true)&& (LO_HI_MODE_RR ~= 2 || HI_MODE_FRONT ==false); */ - if ((rtDW.Duct_RR_Tg <= g_assTHREEWAY_DUCT_TGT_R[1]) || rtb_Compare_m4) { - rtb_Compare_ot = ((rtDW.LO_HI_MODE_RR != 2) || (!rtb_Compare_ot)); + /* : 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_Compare_ot = false; + rtb_LogicalOperator5 = false; } - if (rtb_Compare_ot) { + if (rtb_LogicalOperator5) { rtDW.is_ThreeWay_Logic = IN_Entry_3W; /* : Cmd_3Way = 1; */ @@ -11385,12 +9140,12 @@ void HVAC_model_step(void) 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_dt_ca = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start_3; - if (rtb_dt_ca > rtDW.t_now) { - rtb_dt_ca = 0U; + 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_dt_ca > + 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; @@ -11406,21 +9161,21 @@ void HVAC_model_step(void) } 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_dt_ca = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start_3; - if (rtb_dt_ca > rtDW.t_now) { - rtb_dt_ca = 0U; + rtb_Subtract = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start_3; + if (rtb_Subtract > rtDW.t_now) { + rtb_Subtract = 0U; } - if (rtb_dt_ca <= 60000U) { - rtb_Compare_ot = true; + if (rtb_Subtract <= 60000U) { + rtb_LogicalOperator5 = true; } else { - rtb_Compare_ot = (rtDW.LO_HI_MODE_RR == 2); + rtb_LogicalOperator5 = (rtDW.LO_HI_MODE_RR == 2); } } else { - rtb_Compare_ot = (rtDW.LO_HI_MODE_RR == 2); + rtb_LogicalOperator5 = (rtDW.LO_HI_MODE_RR == 2); } - if (rtb_Compare_ot) { + if (rtb_LogicalOperator5) { /* : Cmd_RearTemp_2W = -1; */ rtDW.is_TwoWay_Logic = IN_Wait_2W; @@ -11435,12 +9190,12 @@ void HVAC_model_step(void) case IN_ExitSeq_2W: /* : sf_internal_predicateOutput = (t_now - t_start_4) >= 3000 || LO_HI_MODE_RR == 2; */ - rtb_dt_ca = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start_4; - if (rtb_dt_ca > rtDW.t_now) { - rtb_dt_ca = 0U; + rtb_Subtract = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start_4; + if (rtb_Subtract > rtDW.t_now) { + rtb_Subtract = 0U; } - if ((rtb_dt_ca >= 3000U) || (rtDW.LO_HI_MODE_RR == 2)) { + if ((rtb_Subtract >= 3000U) || (rtDW.LO_HI_MODE_RR == 2)) { /* : Cmd_RearTemp_2W = -1; */ rtDW.is_TwoWay_Logic = IN_Wait_2W; @@ -11485,22 +9240,19 @@ void HVAC_model_step(void) } /* : if Cmd_RearTemp_3W == 0 || Cmd_RearTemp_2W == 0 */ - if ((rtDW.Cmd_RearTemp_3W == 0.0) || (rtDW.Cmd_RearTemp_2W == 0.0)) { - /* : Cmd_RearTemp = 0; */ - rtB.Cmd_RearTemp = 0.0; - } else if (rtDW.Cmd_RearTemp_2W != -1.0) { - /* : elseif Cmd_RearTemp_2W ~= -1 */ - /* : Cmd_RearTemp = Cmd_RearTemp_2W; */ - rtB.Cmd_RearTemp = rtDW.Cmd_RearTemp_2W; - } else { - /* : else */ - /* : Cmd_RearTemp = -1; */ - rtB.Cmd_RearTemp = -1.0; - } } /* End of Chart: '/13,1,3,15 Valve control' */ + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV0[i]; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* Saturate: '/Saturation' incorporates: * DataStoreRead: '/Data Store Read16' */ @@ -11514,180 +9266,639 @@ void HVAC_model_step(void) /* End of Saturate: '/Saturation' */ - /* Gain: '/Gain2' incorporates: - * Gain: '/Gain2' - * Gain: '/Gain2' + /* Gain: '/Gain' incorporates: + * Gain: '/Gain2' */ - rtb_dt_ca = 52429U * Gain; - rtb_u0101_a = (int16_t)((uint32_t)((rtb_dt_ca & 262144U) != 0U) + (rtb_dt_ca >> - 19)); + rtb_Subtract = 52429U * Gain; + + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * Gain: '/Gain' + * Gain: '/Gain2' + */ + rtb_dt_an = rtb_Subtract >> 19; + + /* Gain: '/Gain1' incorporates: + * Bias: '/Bias' + * DataTypeConversion: '/Data Type Conversion2' + * Gain: '/Gain3' + */ + i = ((int32_t)rtb_dt_an + -15) << 14; + + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * DataTypeConversion: '/Data Type Conversion3' + * Gain: '/Gain1' + */ + Comp_Max_RPM_Allowed = (uint8_t)((((uint32_t)i & 16384U) != 0U) + (i >> 15)); + + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + */ + rtb_Selector_p = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; /* Saturate: '/Saturation4' incorporates: * DataStoreRead: '/Data Store Read28' */ if (rtDW.LEVEL <= 5) { - Comp_Max_RPM_Allowed = rtDW.LEVEL; + rtb_Switch3_ed = rtDW.LEVEL; } else { - Comp_Max_RPM_Allowed = 5U; + rtb_Switch3_ed = 5U; } /* End of Saturate: '/Saturation4' */ - /* MATLAB Function: '/is_ending_with_5' */ - /* : all_min = [g_assDTG_FU_MIN_LV0; g_assDTG_FU_MIN_LV1; g_assDTG_FU_MIN_LV2; g_assDTG_FU_MIN_LV3; g_assDTG_FU_MIN_LV4; g_assDTG_FU_MIN_LV5]; */ - /* : all_max = [g_assDTG_FU_MAX_LV0; g_assDTG_FU_MAX_LV1; g_assDTG_FU_MAX_LV2; g_assDTG_FU_MAX_LV3; g_assDTG_FU_MAX_LV4; g_assDTG_FU_MAX_LV5]; */ - /* : y = all_max(LVL + 1, idivide(SET - 16 + 1, 2)); */ - /* : y_fixed = double(y_in); */ - /* : eps_val = 0.01; */ - /* : for i = 2:length(y_fixed) */ - is_ending_with_5(Gain, &rtb_is_ending_with_5); - - /* MATLAB Function: '/2.3 FLU_tg' incorporates: - * Gain: '/Gain2' + /* 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' */ - /* : FLU_tg = [g_assTG_FLU_LV0; g_assTG_FLU_LV1; g_assTG_FLU_LV2; g_assTG_FLU_LV3; g_assTG_FLU_LV4; g_assTG_FLU_LV5]; */ - for (i = 0; i < 13; i++) { - FLU_tg[6 * i] = g_assTG_FLU_LV0[i]; - FLU_tg[6 * i + 1] = g_assTG_FLU_LV1[i]; - FLU_tg[6 * i + 2] = g_assTG_FLU_LV2[i]; - FLU_tg[6 * i + 3] = g_assTG_FLU_LV3[i]; - FLU_tg[6 * i + 4] = g_assTG_FLU_LV4[i]; - FLU_tg[6 * i + 5] = g_assTG_FLU_LV5[i]; + switch (rtb_Switch3_ed) { + case 0: + g_assEVA_TG_AMB_R_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain, + rtConstP.pooled72, &g_assTG_FLU_LV0[0], 12U); + + /* 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); + break; + + case 1: + g_assEVA_TG_AMB_R_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain, + rtConstP.pooled72, &g_assTG_FLU_LV1[0], 12U); + + /* 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); + break; + + case 2: + g_assEVA_TG_AMB_R_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain, + rtConstP.pooled72, &g_assTG_FLU_LV2[0], 12U); + + /* 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); + break; + + case 3: + g_assEVA_TG_AMB_R_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain, + rtConstP.pooled72, &g_assTG_FLU_LV3[0], 12U); + + /* 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); + break; + + case 4: + g_assEVA_TG_AMB_R_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain, + rtConstP.pooled72, &g_assTG_FLU_LV4[0], 12U); + + /* 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); + break; + + default: + g_assEVA_TG_AMB_R_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain, + rtConstP.pooled72, &g_assTG_FLU_LV5[0], 12U); + + /* 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); + break; } - /* : if set_has_half && (SET - 16 + 1 <= length(FLU_tg)) */ - if (rtb_is_ending_with_5 && (rtb_u0101_a - 15 <= 13)) { - /* : y = (FLU_tg(LVL + 1, SET - 16) + FLU_tg(LVL + 1, SET - 16 + 1)) / 2; */ - i = FLU_tg[(rtb_u0101_a - 17) * 6 + Comp_Max_RPM_Allowed] + FLU_tg - [(rtb_u0101_a - 16) * 6 + Comp_Max_RPM_Allowed]; - if (i > 32767) { - i = 32767; - } else if (i < -32768) { - i = -32768; - } + /* End of MultiPortSwitch: '/Multiport Switch' */ - g_assEVA_TG_AMB_F_n = (int16_t)rt_roundd((double)i / 2.0); - } else { - /* : else */ - /* : y = FLU_tg(LVL + 1, SET - 16); */ - g_assEVA_TG_AMB_F_n = FLU_tg[(rtb_u0101_a - 17) * 6 + Comp_Max_RPM_Allowed]; - } - - /* End of MATLAB Function: '/2.3 FLU_tg' */ - - /* MATLAB Function: '/2.1 Incar target' incorporates: - * Gain: '/Gain2' - */ - u1Incartarget(rtb_u0101_a, Comp_Max_RPM_Allowed, rtb_is_ending_with_5, - &rtb_y_hd); - - /* MATLAB Function: '/Y1-Y4 для FLU_tg_incar' incorporates: - * Gain: '/Gain2' - */ - Y1Y4FLU_tg_incar(rtb_u0101_a, Comp_Max_RPM_Allowed, rtb_y_b5); - - /* MATLAB Function: '/X1-X4 для FLU_tg_incar' incorporates: - * Gain: '/Gain2' - */ - X1X4FLU_tg_incar(rtb_u0101_a, Comp_Max_RPM_Allowed, rtb_y_pu); - - /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: - * DataStoreRead: '/Data Store Read21' - * Sum: '/2.5. X = Inc_Tg - Incar_fb' - */ - rtb_Merge1 = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_hd - rtDW.Incar_FL), - rtb_y_pu, rtb_y_b5, 4U); - - /* MATLAB Function: '/Amb_Tg ' */ - Amb_Tg(Comp_Max_RPM_Allowed, &rtb_y_hd); - - /* MATLAB Function: '/Y1-Y4 для FLU_tg_amb' incorporates: - * Gain: '/Gain2' - */ - Y1Y4FLU_tg_amb(rtb_u0101_a, Comp_Max_RPM_Allowed, rtb_y_p5); - - /* MATLAB Function: '/X1-X4 для FLU_tg_amb' incorporates: - * Gain: '/Gain2' - */ - X1X4FLU_tg_amb(rtb_u0101_a, Comp_Max_RPM_Allowed, rtb_y_j3); - - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read20' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' - */ - rtb_Merge_kr = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_hd - rtDW.AMB), - rtb_y_j3, rtb_y_p5, 2U); - - /* MATLAB Function: '/Y1-Y4 для FLU_tg_sun' incorporates: - * Gain: '/Gain2' - */ - Y1Y4FLU_tg_sun(rtb_u0101_a, Comp_Max_RPM_Allowed, rtb_y_p5); - - /* MATLAB Function: '/X1-X4 для FLU_tg_sun' incorporates: - * Gain: '/Gain2' - */ - X1X4FLU_tg_sun_h(rtb_u0101_a, Comp_Max_RPM_Allowed, rtb_y_j3); - - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read26' - */ - rtb_Product_fy = look1_bs16ts16DdId_binlc(rtDW.Sun_L, rtb_y_j3, rtb_y_p5, 2U); - - /* Sum: '/FLU_tg_correct' */ - rtb_Product_fy += (double)((g_assEVA_TG_AMB_F_n + rtb_Merge1) + rtb_Merge_kr); - - /* MATLAB Function: '/FXU_tg_min' incorporates: - * Gain: '/Gain2' - */ - FXU_tg_min(rtb_u0101_a, Comp_Max_RPM_Allowed, &rtb_y_hd); - - /* MATLAB Function: '/FXU_tg_max' incorporates: - * Gain: '/Gain2' - * MATLAB Function: '/correction max' - * MATLAB Function: '/correction_start_time' - * MATLAB Function: '/X1-X4 для FLL_tg_incar' + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' */ for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assDTG_FU_MAX_LV0[i]; - tmp[6 * i + 1] = g_assDTG_FU_MAX_LV1[i]; - tmp[6 * i + 2] = g_assDTG_FU_MAX_LV2[i]; - tmp[6 * i + 3] = g_assDTG_FU_MAX_LV3[i]; - tmp[6 * i + 4] = g_assDTG_FU_MAX_LV4[i]; - tmp[6 * i + 5] = g_assDTG_FU_MAX_LV5[i]; + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_Y1_LV0[i]; } - i = ((int32_t)trunc((((double)rtb_u0101_a - 16.0) + 1.0) / 2.0) - 1) * 6 + - Comp_Max_RPM_Allowed; + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* Switch: '/Switch2' incorporates: - * MATLAB Function: '/FXU_tg_max' - * MATLAB Function: '/убираем одинаковые точки' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - if (rtb_Product_fy > tmp[i]) { - for (i_0 = 0; i_0 < 7; i_0++) { - tmp[6 * i_0] = g_assDTG_FU_MAX_LV0[i_0]; - tmp[6 * i_0 + 1] = g_assDTG_FU_MAX_LV1[i_0]; - tmp[6 * i_0 + 2] = g_assDTG_FU_MAX_LV2[i_0]; - tmp[6 * i_0 + 3] = g_assDTG_FU_MAX_LV3[i_0]; - tmp[6 * i_0 + 4] = g_assDTG_FU_MAX_LV4[i_0]; - tmp[6 * i_0 + 5] = g_assDTG_FU_MAX_LV5[i_0]; + 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' + */ + 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]; + + /* 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]; + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_INC_X1_LV0[i]; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[0] = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 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]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + */ + rtb_VectorConcatenate_jn[1] = rtb_FLU_tg_correct_de; + + /* 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]; + + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * MultiPortSwitch: '/Multiport Switch3' + */ + rtb_VectorConcatenate_jn[3] = rtb_Bias2; + + /* 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]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + */ + rtb_VectorConcatenate_jn[4] = rtb_Bias4; + + /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: + * DataStoreRead: '/Data Store Read21' + * Sum: '/2.5. X = Inc_Tg - Incar_fb' + */ + rtb_u5FLU_tg_incar = look1_is16lu64n32Ds32_binlcn((int16_t) + (rtb_MultiportSwitch_o - rtDW.Incar_FL), rtb_VectorConcatenate_jn, + rtb_VectorConcatenate_lo, 4U); + + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_Y1_LV0[i]; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lg[0] = rtb_uDLookupTable7_g[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_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) { + case 0: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_X1_LV0[i]; + } + break; + + case 1: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_X1_LV1[i]; + } + break; + + case 2: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_X1_LV2[i]; + } + break; + + case 3: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_X1_LV3[i]; + } + break; + + case 4: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_X1_LV4[i]; + } + break; + + default: + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_AMB_X1_LV5[i]; + } + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[0] = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_e0[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Switch3_ed) { + case 0: + /* 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]; + break; + + case 1: + /* 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]; + break; + + case 2: + /* 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]; + break; + + case 3: + /* 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]; + break; + + case 4: + /* 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]; + break; + + default: + /* 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]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* 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' + */ + rtb_Bias5 = (int16_t)(g_assAMB_LV_TG[rtb_Switch3_ed] - rtDW.AMB); + + /* 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); + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Switch3_ed) { + case 0: + /* 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]; + break; + + case 1: + /* 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]; + break; + + case 2: + /* 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]; + break; + + case 3: + /* 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]; + break; + + case 4: + /* 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]; + break; + + default: + /* 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]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_e0[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Switch3_ed) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[2] = g_assDTG_FU_SUN_Y2_LV0[Comp_Max_RPM_Allowed - + 1]; + break; + + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[2] = g_assDTG_FU_SUN_Y2_LV1[Comp_Max_RPM_Allowed - + 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[2] = g_assDTG_FU_SUN_Y2_LV2[Comp_Max_RPM_Allowed - + 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[2] = g_assDTG_FU_SUN_Y2_LV3[Comp_Max_RPM_Allowed - + 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[2] = g_assDTG_FU_SUN_Y2_LV4[Comp_Max_RPM_Allowed - + 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[2] = g_assDTG_FU_SUN_Y2_LV5[Comp_Max_RPM_Allowed - + 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* 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: + * DataStoreRead: '/Data Store Read26' + */ + rtb_y_bf = look1_bs16ts16Dd_binlc(rtDW.Sun_L, rtb_VectorConcatenate_lg, + rtb_VectorConcatenate_e0, 2U); + + /* 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); + + /* Switch: '/Switch2' incorporates: + * DataStoreWrite: '/Data Store Write2' + * RelationalOperator: '/LowerRelop1' + */ + if (rtb_FLU_tg_correct > rtb_Selector_p) { + rtb_FLU_tg_correct = rtb_Selector_p; + } else { + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MIN_LV0[i]; } - rtb_Product_fy = tmp[i]; - } else if (rtb_Product_fy < rtb_y_hd) { - /* Switch: '/Switch' */ - rtb_Product_fy = rtb_y_hd; + /* 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]; + + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write2' + * RelationalOperator: '/UpperRelop' + * Selector: '/Selector' + */ + if (rtb_FLU_tg_correct < rtb_FLU_tg_correct_g) { + rtb_FLU_tg_correct = rtb_FLU_tg_correct_g; + } + + /* End of Switch: '/Switch' */ } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write2' + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' */ - rtb_y_hd = (int16_t)floor(rtb_Product_fy); + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FU_MAX_LV0[i]; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ /* Saturate: '/Saturation1' incorporates: * DataStoreRead: '/Data Store Read17' @@ -11702,1009 +9913,2540 @@ void HVAC_model_step(void) /* End of Saturate: '/Saturation1' */ - /* Gain: '/Gain2' incorporates: - * Gain: '/Gain2' - * Gain: '/Gain2' - */ - rtb_dt_ca = 52429U * Gain1; - rtb_y_pc = (int16_t)((uint32_t)((rtb_dt_ca & 262144U) != 0U) + (rtb_dt_ca >> - 19)); - - /* MATLAB Function: '/FXU_tg_max' incorporates: + /* Gain: '/Gain' incorporates: * Gain: '/Gain2' - * MATLAB Function: '/correction max' - * MATLAB Function: '/correction_start_time' - * MATLAB Function: '/X1-X4 для FRL_tg_incar' */ - /* : all_min = [g_assDTG_FU_MIN_LV0; g_assDTG_FU_MIN_LV1; g_assDTG_FU_MIN_LV2; g_assDTG_FU_MIN_LV3; g_assDTG_FU_MIN_LV4; g_assDTG_FU_MIN_LV5]; */ - /* : all_max = [g_assDTG_FU_MAX_LV0; g_assDTG_FU_MAX_LV1; g_assDTG_FU_MAX_LV2; g_assDTG_FU_MAX_LV3; g_assDTG_FU_MAX_LV4; g_assDTG_FU_MAX_LV5]; */ - /* : y = all_max(LVL + 1, idivide(SET - 16 + 1, 2)); */ - for (i_0 = 0; i_0 < 7; i_0++) { - tmp[6 * i_0] = g_assDTG_FU_MAX_LV0[i_0]; - tmp[6 * i_0 + 1] = g_assDTG_FU_MAX_LV1[i_0]; - tmp[6 * i_0 + 2] = g_assDTG_FU_MAX_LV2[i_0]; - tmp[6 * i_0 + 3] = g_assDTG_FU_MAX_LV3[i_0]; - tmp[6 * i_0 + 4] = g_assDTG_FU_MAX_LV4[i_0]; - tmp[6 * i_0 + 5] = g_assDTG_FU_MAX_LV5[i_0]; + rtb_Gain_fc_tmp_tmp = 52429U * Gain1; + + /* DataTypeConversion: '/Data Type Conversion3' incorporates: + * Gain: '/Gain' + * Gain: '/Gain2' + */ + rtb_Gain_fc_tmp_tmp_0 = rtb_Gain_fc_tmp_tmp >> 19; + + /* Gain: '/Gain1' incorporates: + * Bias: '/Bias' + * DataTypeConversion: '/Data Type Conversion3' + * Gain: '/Gain3' + */ + i = ((int32_t)rtb_Gain_fc_tmp_tmp_0 + -15) << 14; + + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataTypeConversion: '/Data Type Conversion3' + * Gain: '/Gain1' + */ + Blower_AF_RL = (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: '/Saturation1' + */ + switch (rtb_Switch3_ed) { + case 0: + rtb_y_h5 = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, rtConstP.pooled72, + &g_assTG_FRU_LV0[0], 12U); + + /* 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); + break; + + case 1: + rtb_y_h5 = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, rtConstP.pooled72, + &g_assTG_FRU_LV1[0], 12U); + + /* 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); + break; + + case 2: + rtb_y_h5 = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, rtConstP.pooled72, + &g_assTG_FRU_LV2[0], 12U); + + /* 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); + break; + + case 3: + rtb_y_h5 = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, rtConstP.pooled72, + &g_assTG_FRU_LV3[0], 12U); + + /* 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); + break; + + case 4: + rtb_y_h5 = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, rtConstP.pooled72, + &g_assTG_FRU_LV4[0], 12U); + + /* 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); + break; + + default: + rtb_y_h5 = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, rtConstP.pooled72, + &g_assTG_FRU_LV5[0], 12U); + + /* 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); + break; } - rtb_Gain3 = ((int32_t)trunc((((double)rtb_y_pc - 16.0) + 1.0) / 2.0) - 1) * 6 - + Comp_Max_RPM_Allowed; - g_assEVA_TG_AMB_F_n = tmp[rtb_Gain3]; + /* End of MultiPortSwitch: '/Multiport Switch' */ - /* End of MATLAB Function: '/FXU_tg_max' */ - - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(Gain1, &rtb_is_ending_with_5); - - /* MATLAB Function: '/2.3 FRU_tg' incorporates: - * Gain: '/Gain2' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' */ - /* : FRU_tg = [g_assTG_FRU_LV0; g_assTG_FRU_LV1; g_assTG_FRU_LV2; g_assTG_FRU_LV3; g_assTG_FRU_LV4; g_assTG_FRU_LV5]; */ - for (i_0 = 0; i_0 < 13; i_0++) { - FLU_tg[6 * i_0] = g_assTG_FRU_LV0[i_0]; - FLU_tg[6 * i_0 + 1] = g_assTG_FRU_LV1[i_0]; - FLU_tg[6 * i_0 + 2] = g_assTG_FRU_LV2[i_0]; - FLU_tg[6 * i_0 + 3] = g_assTG_FRU_LV3[i_0]; - FLU_tg[6 * i_0 + 4] = g_assTG_FRU_LV4[i_0]; - FLU_tg[6 * i_0 + 5] = g_assTG_FRU_LV5[i_0]; - } + rtb_VectorConcatenate_jn[0] = g_assDTG_FU_INC_Y1_LV0[Blower_AF_RL - 1]; - /* : if set_has_half && (SET - 16 + 1 <= length(FRU_tg)) */ - if (rtb_is_ending_with_5 && (rtb_y_pc - 15 <= 13)) { - /* : y = (FRU_tg(LVL + 1, SET - 16) + FRU_tg(LVL + 1, SET - 16 + 1)) / 2; */ - i_0 = FLU_tg[(rtb_y_pc - 17) * 6 + Comp_Max_RPM_Allowed] + FLU_tg[(rtb_y_pc - - 16) * 6 + Comp_Max_RPM_Allowed]; - if (i_0 > 32767) { - i_0 = 32767; - } else if (i_0 < -32768) { - i_0 = -32768; - } - - rtb_y_ha = (int16_t)rt_roundd((double)i_0 / 2.0); - } else { - /* : else */ - /* : y = FRU_tg(LVL + 1, SET - 16); */ - rtb_y_ha = FLU_tg[(rtb_y_pc - 17) * 6 + Comp_Max_RPM_Allowed]; - } - - /* End of MATLAB Function: '/2.3 FRU_tg' */ - - /* MATLAB Function: '/2.1 Incar target' incorporates: - * Gain: '/Gain2' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - u1Incartarget_l(rtb_y_pc, Comp_Max_RPM_Allowed, rtb_is_ending_with_5, - &rtb_Merge1); + rtb_VectorConcatenate_jn[1] = g_assDTG_FU_INC_Y2_LV0[Blower_AF_RL - 1]; - /* MATLAB Function: '/Y1-Y4 для FLU_tg_incar' incorporates: - * Gain: '/Gain2' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - Y1Y4FLU_tg_incar(rtb_y_pc, Comp_Max_RPM_Allowed, rtb_y_b5); + rtb_VectorConcatenate_jn[2] = 0; - /* MATLAB Function: '/X1-X4 для FLU_tg_incar' incorporates: - * Gain: '/Gain2' + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch3' + * Selector: '/Selector' */ - X1X4FLU_tg_incar(rtb_y_pc, Comp_Max_RPM_Allowed, rtb_y_pu); + rtb_VectorConcatenate_jn[3] = g_assDTG_FU_INC_Y3_LV0[Blower_AF_RL - 1]; - /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: - * DataStoreRead: '/Data Store Read23' - * Sum: '/2.5. X = Inc_Tg - Incar_fb' + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector' */ - rtb_Merge_kr = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_Merge1 - - rtDW.Incar_RL), rtb_y_pu, rtb_y_b5, 4U); + rtb_VectorConcatenate_jn[4] = g_assDTG_FU_INC_Y4_LV0[Blower_AF_RL - 1]; - /* MATLAB Function: '/Amb_Tg ' */ - Amb_Tg(Comp_Max_RPM_Allowed, &rtb_Merge1); - - /* MATLAB Function: '/Y1-Y4 для FLU_tg_amb' incorporates: - * Gain: '/Gain2' + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + * Selector: '/Selector' + * Selector: '/Selector' */ - Y1Y4FLU_tg_amb(rtb_y_pc, Comp_Max_RPM_Allowed, rtb_y_p5); + rtb_Bias_ct = g_assDTG_FU_INC_X1_LV0[Blower_AF_RL - 1]; - /* MATLAB Function: '/X1-X4 для FLU_tg_amb' incorporates: - * Gain: '/Gain2' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' */ - X1X4FLU_tg_amb(rtb_y_pc, Comp_Max_RPM_Allowed, rtb_y_j3); + rtb_VectorConcatenate_lo[0] = rtb_Bias_ct; - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read20' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + /* MultiPortSwitch: '/Multiport Switch2' incorporates: + * Constant: '/Constant6' + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector1' + * Selector: '/Selector1' + * Selector: '/Selector' */ - rtb_Merge1 = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_Merge1 - rtDW.AMB), - rtb_y_j3, rtb_y_p5, 2U); + rtb_FLU_tg_correct_b = g_assDTG_FU_INC_X2_LV0[Blower_AF_RL - 1]; - /* MATLAB Function: '/Y1-Y4 для FLU_tg_sun' incorporates: - * Gain: '/Gain2' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' */ - Y1Y4FLU_tg_sun(rtb_y_pc, Comp_Max_RPM_Allowed, rtb_y_p5); + rtb_VectorConcatenate_lo[1] = rtb_FLU_tg_correct_b; - /* MATLAB Function: '/X1-X4 для FLU_tg_sun' incorporates: - * Gain: '/Gain2' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - X1X4FLU_tg_sun_h(rtb_y_pc, Comp_Max_RPM_Allowed, rtb_y_j3); + rtb_VectorConcatenate_lo[2] = 0; - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read27' + /* MultiPortSwitch: '/Multiport Switch3' incorporates: + * Constant: '/Constant14' + * Constant: '/Constant14' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch3' + * Selector: '/Selector2' + * Selector: '/Selector2' + * Selector: '/Selector' */ - rtb_Product_fy = look1_bs16ts16DdId_binlc(rtDW.Sun_R, rtb_y_j3, rtb_y_p5, 2U); + rtb_Bias1_h = g_assDTG_FU_INC_X3_LV0[Blower_AF_RL - 1]; - /* Sum: '/FLU_tg_correct' */ - rtb_FLU_tg_correct_o = (double)((rtb_y_ha + rtb_Merge_kr) + rtb_Merge1) + - rtb_Product_fy; - - /* RelationalOperator: '/LowerRelop1' */ - rtb_is_ending_with_5 = (rtb_FLU_tg_correct_o > g_assEVA_TG_AMB_F_n); - - /* MATLAB Function: '/FXU_tg_min' incorporates: - * Gain: '/Gain2' + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * MultiPortSwitch: '/Multiport Switch3' */ - FXU_tg_min(rtb_y_pc, Comp_Max_RPM_Allowed, &rtb_Merge1); + rtb_VectorConcatenate_lo[3] = rtb_Bias1_h; - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* MultiPortSwitch: '/Multiport Switch4' incorporates: + * Constant: '/Constant20' + * Constant: '/Constant20' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch4' + * Selector: '/Selector3' + * Selector: '/Selector3' + * Selector: '/Selector' */ - if (rtb_is_ending_with_5) { - rtb_FLU_tg_correct_o = g_assEVA_TG_AMB_F_n; - } else if (rtb_FLU_tg_correct_o < rtb_Merge1) { - /* Switch: '/Switch' */ - rtb_FLU_tg_correct_o = rtb_Merge1; - } + Duct3_R = g_assDTG_FU_INC_X4_LV0[Blower_AF_RL - 1]; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write3' - * Switch: '/Switch2' + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' */ - rtb_y_ha = (int16_t)floor(rtb_FLU_tg_correct_o); + rtb_VectorConcatenate_lo[4] = Duct3_R; - /* 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: '/Gain2' */ - rtb_dt_ca = 52429U * rtb_Saturation2_a; - g_assEVA_TG_AMB_F_n = (int16_t)((uint32_t)((rtb_dt_ca & 262144U) != 0U) + - (rtb_dt_ca >> 19)); - - /* MATLAB Function: '/R_tg_max' */ - R_tg_max(g_assEVA_TG_AMB_F_n, Comp_Max_RPM_Allowed, &rtb_y_cy); - - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(rtb_Saturation2_a, &rtb_is_ending_with_5); - - /* MATLAB Function: '/2.3 RL_tg' */ - /* : RL_tg = [g_assTG_RL_LV0; g_assTG_RL_LV1; g_assTG_RL_LV2; g_assTG_RL_LV3; g_assTG_RL_LV4; g_assTG_RL_LV5]; */ - for (i_0 = 0; i_0 < 13; i_0++) { - FLU_tg[6 * i_0] = g_assTG_RL_LV0[i_0]; - FLU_tg[6 * i_0 + 1] = g_assTG_RL_LV1[i_0]; - FLU_tg[6 * i_0 + 2] = g_assTG_RL_LV2[i_0]; - FLU_tg[6 * i_0 + 3] = g_assTG_RL_LV3[i_0]; - FLU_tg[6 * i_0 + 4] = g_assTG_RL_LV4[i_0]; - FLU_tg[6 * i_0 + 5] = g_assTG_RL_LV5[i_0]; - } - - /* : if set_has_half && (SET - 16 + 1 <= length(RL_tg)) */ - if (rtb_is_ending_with_5 && (g_assEVA_TG_AMB_F_n - 15 <= 13)) { - /* : y = (RL_tg(LVL + 1, SET - 16) + RL_tg(LVL + 1, SET - 16 + 1)) / 2; */ - i_0 = FLU_tg[(g_assEVA_TG_AMB_F_n - 17) * 6 + Comp_Max_RPM_Allowed] + - FLU_tg[(g_assEVA_TG_AMB_F_n - 16) * 6 + Comp_Max_RPM_Allowed]; - if (i_0 > 32767) { - i_0 = 32767; - } else if (i_0 < -32768) { - i_0 = -32768; - } - - rtb_y_lp = (int16_t)rt_roundd((double)i_0 / 2.0); - } else { - /* : else */ - /* : y = RL_tg(LVL + 1, SET - 16); */ - rtb_y_lp = FLU_tg[(g_assEVA_TG_AMB_F_n - 17) * 6 + Comp_Max_RPM_Allowed]; - } - - /* End of MATLAB Function: '/2.3 RL_tg' */ - - /* MATLAB Function: '/2.1 Incar target' */ - u1Incartarget_e(g_assEVA_TG_AMB_F_n, Comp_Max_RPM_Allowed, - rtb_is_ending_with_5, &rtb_Merge1); - - /* MATLAB Function: '/Y1-Y4 для R_tg_incar' */ - Y1Y4R_tg_incar(g_assEVA_TG_AMB_F_n, Comp_Max_RPM_Allowed, rtb_y_b5); - - /* MATLAB Function: '/X1-X4 для R_tg_incar' */ - X1X4R_tg_incar(g_assEVA_TG_AMB_F_n, Comp_Max_RPM_Allowed, rtb_y_pu); - - /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: + /* 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_Merge_kr = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_Merge1 - - rtDW.Incar_FR), rtb_y_pu, rtb_y_b5, 4U); + rtb_y_fe = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_ck - rtDW.Incar_FR), + rtb_VectorConcatenate_lo, rtb_VectorConcatenate_jn, 4U); - /* MATLAB Function: '/Amb_Tg ' */ - Amb_Tg(Comp_Max_RPM_Allowed, &rtb_Merge1); - - /* MATLAB Function: '/Y1-Y4 для R_tg_amb' */ - Y1Y4R_tg_amb(g_assEVA_TG_AMB_F_n, Comp_Max_RPM_Allowed, rtb_y_p5); - - /* MATLAB Function: '/X1-X4 для R_tg_amb' */ - X1X4R_tg_amb(g_assEVA_TG_AMB_F_n, Comp_Max_RPM_Allowed, rtb_y_j3); - - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read20' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' */ - rtb_Merge1 = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_Merge1 - rtDW.AMB), - rtb_y_j3, rtb_y_p5, 2U); + rtb_VectorConcatenate_e0[0] = g_assDTG_FU_AMB_Y1_LV0[Blower_AF_RL - 1]; - /* MATLAB Function: '/Y1-Y4 для R_tg_sun' */ - Y1Y4R_tg_sun(g_assEVA_TG_AMB_F_n, Comp_Max_RPM_Allowed, rtb_y_p5); - - /* MATLAB Function: '/X1-X4 для R_tg_sun' */ - X1X4R_tg_sun(g_assEVA_TG_AMB_F_n, Comp_Max_RPM_Allowed, rtb_y_j3); - - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read26' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_Product_fy = look1_bs16ts16DdId_binlc(rtDW.Sun_L, rtb_y_j3, rtb_y_p5, 2U); + rtb_VectorConcatenate_e0[1] = 0; - /* Sum: '/FLU_tg_correct' */ - rtb_FLU_tg_correct_o = (double)((rtb_y_lp + rtb_Merge_kr) + rtb_Merge1) + - rtb_Product_fy; - - /* RelationalOperator: '/LowerRelop1' */ - rtb_is_ending_with_5 = (rtb_FLU_tg_correct_o > rtb_y_cy); - - /* MATLAB Function: '/R_tg_min' */ - R_tg_min(g_assEVA_TG_AMB_F_n, Comp_Max_RPM_Allowed, &rtb_Merge1); - - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' */ - if (rtb_is_ending_with_5) { - rtb_FLU_tg_correct_o = rtb_y_cy; - } else if (rtb_FLU_tg_correct_o < rtb_Merge1) { - /* Switch: '/Switch' */ - rtb_FLU_tg_correct_o = rtb_Merge1; - } + rtb_VectorConcatenate_e0[2] = g_assDTG_FU_AMB_Y2_LV0[Blower_AF_RL - 1]; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write4' - * Switch: '/Switch2' + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + * Selector: '/Selector' + * Selector: '/Selector' */ - g_assEVA_TG_AMB_F_n = (int16_t)floor(rtb_FLU_tg_correct_o); + rtb_u6FLU_tg_amb_hq = g_assDTG_FU_AMB_X1_LV0[Blower_AF_RL - 1]; - /* Saturate: '/Saturation3' incorporates: - * DataStoreRead: '/Data Store Read19' + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' */ - 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; - } + rtb_VectorConcatenate_lg[0] = rtb_u6FLU_tg_amb_hq; - /* End of Saturate: '/Saturation3' */ - - /* Gain: '/Gain2' */ - rtb_dt_ca = 52429U * rtb_Saturation2_a; - rtb_Gain2_ay = (int16_t)((uint32_t)((rtb_dt_ca & 262144U) != 0U) + (rtb_dt_ca >> - 19)); - - /* MATLAB Function: '/R_tg_max' */ - R_tg_max(rtb_Gain2_ay, Comp_Max_RPM_Allowed, &rtb_y_lp); - - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(rtb_Saturation2_a, &rtb_is_ending_with_5); - - /* MATLAB Function: '/2.3 RR_tg' */ - /* : RL_tg = [g_assTG_RR_LV0; g_assTG_RR_LV1; g_assTG_RR_LV2; g_assTG_RR_LV3; g_assTG_RR_LV4; g_assTG_RR_LV5]; */ - for (i_0 = 0; i_0 < 13; i_0++) { - FLU_tg[6 * i_0] = g_assTG_RR_LV0[i_0]; - FLU_tg[6 * i_0 + 1] = g_assTG_RR_LV1[i_0]; - FLU_tg[6 * i_0 + 2] = g_assTG_RR_LV2[i_0]; - FLU_tg[6 * i_0 + 3] = g_assTG_RR_LV3[i_0]; - FLU_tg[6 * i_0 + 4] = g_assTG_RR_LV4[i_0]; - FLU_tg[6 * i_0 + 5] = g_assTG_RR_LV5[i_0]; - } - - /* : if set_has_half && (SET - 16 + 1 <= length(RL_tg)) */ - if (rtb_is_ending_with_5 && (rtb_Gain2_ay - 15 <= 13)) { - /* : y = (RL_tg(LVL + 1, SET - 16) + RL_tg(LVL + 1, SET - 16 + 1)) / 2; */ - i_0 = FLU_tg[(rtb_Gain2_ay - 17) * 6 + Comp_Max_RPM_Allowed] + FLU_tg - [(rtb_Gain2_ay - 16) * 6 + Comp_Max_RPM_Allowed]; - if (i_0 > 32767) { - i_0 = 32767; - } else if (i_0 < -32768) { - i_0 = -32768; - } - - rtb_y_j5 = (int16_t)rt_roundd((double)i_0 / 2.0); - } else { - /* : else */ - /* : y = RL_tg(LVL + 1, SET - 16); */ - rtb_y_j5 = FLU_tg[(rtb_Gain2_ay - 17) * 6 + Comp_Max_RPM_Allowed]; - } - - /* End of MATLAB Function: '/2.3 RR_tg' */ - - /* MATLAB Function: '/2.1 Incar target' */ - u1Incartarget_p(rtb_Gain2_ay, Comp_Max_RPM_Allowed, rtb_is_ending_with_5, - &rtb_y_cy); - - /* MATLAB Function: '/Y1-Y4 для R_tg_incar' */ - Y1Y4R_tg_incar(rtb_Gain2_ay, Comp_Max_RPM_Allowed, rtb_y_b5); - - /* MATLAB Function: '/X1-X4 для R_tg_incar' */ - X1X4R_tg_incar(rtb_Gain2_ay, Comp_Max_RPM_Allowed, rtb_y_pu); - - /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: - * DataStoreRead: '/Data Store Read24' - * Sum: '/2.5. X = Inc_Tg - Incar_fb' + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_Merge_kr = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_cy - rtDW.Incar_RR), - rtb_y_pu, rtb_y_b5, 4U); + rtb_VectorConcatenate_lg[1] = 0; - /* MATLAB Function: '/Amb_Tg ' */ - Amb_Tg(Comp_Max_RPM_Allowed, &rtb_y_cy); - - /* MATLAB Function: '/Y1-Y4 для R_tg_amb' */ - Y1Y4R_tg_amb(rtb_Gain2_ay, Comp_Max_RPM_Allowed, rtb_y_p5); - - /* MATLAB Function: '/X1-X4 для R_tg_amb' */ - X1X4R_tg_amb(rtb_Gain2_ay, Comp_Max_RPM_Allowed, rtb_y_j3); - - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read20' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + /* MultiPortSwitch: '/Multiport Switch2' incorporates: + * Constant: '/Constant6' + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion2' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + * Selector: '/Selector1' + * Selector: '/Selector1' */ - rtb_Merge1 = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_cy - rtDW.AMB), - rtb_y_j3, rtb_y_p5, 2U); + rtb_u5FLU_tg_incar_l = g_assDTG_FU_AMB_X2_LV0[Blower_AF_RL - 1]; - /* MATLAB Function: '/Y1-Y4 для R_tg_sun' */ - Y1Y4R_tg_sun(rtb_Gain2_ay, Comp_Max_RPM_Allowed, rtb_y_p5); + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + */ + rtb_VectorConcatenate_lg[2] = rtb_u5FLU_tg_incar_l; - /* MATLAB Function: '/X1-X4 для R_tg_sun' */ - X1X4R_tg_sun(rtb_Gain2_ay, Comp_Max_RPM_Allowed, rtb_y_j3); + /* Lookup_n-D: '/2.6 FRU_tg_amb' */ + rtb_y_ar = look1_is16lu64n32Ds32_binlcn(rtb_Bias5, rtb_VectorConcatenate_lg, + rtb_VectorConcatenate_e0, 2U); - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: + /* 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_Product_fy = look1_bs16ts16DdId_binlc(rtDW.Sun_R, rtb_y_j3, rtb_y_p5, 2U); + rtb_u6FLU_tg_amb = look1_bs16ts16Dd_binlc(rtDW.Sun_R, rtb_VectorConcatenate_lg, + rtb_VectorConcatenate_e0, 2U); - /* Sum: '/FLU_tg_correct' */ - rtb_FLU_tg_correct_o = (double)((rtb_y_j5 + rtb_Merge_kr) + rtb_Merge1) + - rtb_Product_fy; + /* 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); - /* RelationalOperator: '/LowerRelop1' */ - rtb_is_ending_with_5 = (rtb_FLU_tg_correct_o > rtb_y_lp); - - /* MATLAB Function: '/R_tg_min' */ - R_tg_min(rtb_Gain2_ay, Comp_Max_RPM_Allowed, &rtb_y_cy); - - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - if (rtb_is_ending_with_5) { - rtb_FLU_tg_correct_o = rtb_y_lp; - } else if (rtb_FLU_tg_correct_o < rtb_y_cy) { - /* Switch: '/Switch' */ - rtb_FLU_tg_correct_o = rtb_y_cy; - } + rtb_FLU_tg_correct_g = rtb_uDLookupTable7_g[Blower_AF_RL - 1]; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write5' - * Switch: '/Switch2' + /* Switch: '/Switch2' incorporates: + * DataStoreWrite: '/Data Store Write3' + * RelationalOperator: '/LowerRelop1' + * Selector: '/Selector' */ - rtDW.Duct_RR_Tg = (int16_t)floor(rtb_FLU_tg_correct_o); - - /* MATLAB Function: '/FLL_tg_max' */ - FLL_tg_max(rtb_u0101_a, Comp_Max_RPM_Allowed, &rtb_y_cy); - - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(Gain, &rtb_is_ending_with_5); - - /* MATLAB Function: '/2.3 FLL_tg' */ - /* : FLU_tg = [g_assTG_FLL_LV0; g_assTG_FLL_LV1; g_assTG_FLL_LV2; g_assTG_FLL_LV3; g_assTG_FLL_LV4; g_assTG_FLL_LV5]; */ - for (i_0 = 0; i_0 < 13; i_0++) { - FLU_tg[6 * i_0] = g_assTG_FLL_LV0[i_0]; - FLU_tg[6 * i_0 + 1] = g_assTG_FLL_LV1[i_0]; - FLU_tg[6 * i_0 + 2] = g_assTG_FLL_LV2[i_0]; - FLU_tg[6 * i_0 + 3] = g_assTG_FLL_LV3[i_0]; - FLU_tg[6 * i_0 + 4] = g_assTG_FLL_LV4[i_0]; - FLU_tg[6 * i_0 + 5] = g_assTG_FLL_LV5[i_0]; - } - - /* : if set_has_half && (SET - 16 + 1 <= length(FLU_tg)) */ - if (rtb_is_ending_with_5 && (rtb_u0101_a - 15 <= 13)) { - /* : y = (FLU_tg(LVL + 1, SET - 16) + FLU_tg(LVL + 1, SET - 16 + 1)) / 2; */ - i_0 = FLU_tg[(rtb_u0101_a - 17) * 6 + Comp_Max_RPM_Allowed] + FLU_tg - [(rtb_u0101_a - 16) * 6 + Comp_Max_RPM_Allowed]; - if (i_0 > 32767) { - i_0 = 32767; - } else if (i_0 < -32768) { - i_0 = -32768; + 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]; } - rtb_y_lp = (int16_t)rt_roundd((double)i_0 / 2.0); - } else { - /* : else */ - /* : y = FLU_tg(LVL + 1, SET - 16); */ - rtb_y_lp = FLU_tg[(rtb_u0101_a - 17) * 6 + Comp_Max_RPM_Allowed]; + /* 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 MATLAB Function: '/2.3 FLL_tg' */ + /* End of Switch: '/Switch2' */ - /* MATLAB Function: '/2.1 Incar target' */ - u1Incartarget(rtb_u0101_a, Comp_Max_RPM_Allowed, rtb_is_ending_with_5, - &rtb_Merge1); + /* DataStoreWrite: '/Data Store Write5' */ + rtDW.Duct_RR_Tg = 0; - /* MATLAB Function: '/Y1-Y4 для FLL_tg_incar' */ - Y1Y4FLL_tg_incar(rtb_u0101_a, Comp_Max_RPM_Allowed, rtb_y_b5); - - /* MATLAB Function: '/X1-X4 для FLL_tg_incar' */ - /* : all_lvl_x1 = [g_assDTG_FL_INC_X1_LV0; g_assDTG_FL_INC_X1_LV1; g_assDTG_FL_INC_X1_LV2; g_assDTG_FL_INC_X1_LV3; g_assDTG_FL_INC_X1_LV4; g_assDTG_FL_INC_X1_LV5]; */ - /* : all_lvl_x2 = [g_assDTG_FL_INC_X2_LV0; g_assDTG_FL_INC_X2_LV1; g_assDTG_FL_INC_X2_LV2; g_assDTG_FL_INC_X2_LV3; g_assDTG_FL_INC_X2_LV4; g_assDTG_FL_INC_X2_LV5]; */ - /* : all_lvl_x3 = [g_assDTG_FL_INC_X3_LV0; g_assDTG_FL_INC_X3_LV1; g_assDTG_FL_INC_X3_LV2; g_assDTG_FL_INC_X3_LV3; g_assDTG_FL_INC_X3_LV4; g_assDTG_FL_INC_X3_LV5]; */ - /* : all_lvl_x4 = [g_assDTG_FL_INC_X4_LV0; g_assDTG_FL_INC_X4_LV1; g_assDTG_FL_INC_X4_LV2; g_assDTG_FL_INC_X4_LV3; g_assDTG_FL_INC_X4_LV4; g_assDTG_FL_INC_X4_LV5]; */ - /* : 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 = 0; i_0 < 7; i_0++) { - tmp[6 * i_0] = g_assDTG_FL_INC_X1_LV0[i_0]; - rtb_Gain_pl = 6 * i_0 + 1; - tmp[rtb_Gain_pl] = g_assDTG_FL_INC_X1_LV1[i_0]; - rtb_Gain4 = 6 * i_0 + 2; - tmp[rtb_Gain4] = g_assDTG_FL_INC_X1_LV2[i_0]; - rtb_Gain5 = 6 * i_0 + 3; - tmp[rtb_Gain5] = g_assDTG_FL_INC_X1_LV3[i_0]; - rtb_Gain2 = 6 * i_0 + 4; - tmp[rtb_Gain2] = g_assDTG_FL_INC_X1_LV4[i_0]; - rtb_y_cc_tmp = 6 * i_0 + 5; - tmp[rtb_y_cc_tmp] = g_assDTG_FL_INC_X1_LV5[i_0]; - tmp_0[6 * i_0] = g_assDTG_FL_INC_X2_LV0[i_0]; - tmp_0[rtb_Gain_pl] = g_assDTG_FL_INC_X2_LV1[i_0]; - tmp_0[rtb_Gain4] = g_assDTG_FL_INC_X2_LV2[i_0]; - tmp_0[rtb_Gain5] = g_assDTG_FL_INC_X2_LV3[i_0]; - tmp_0[rtb_Gain2] = g_assDTG_FL_INC_X2_LV4[i_0]; - tmp_0[rtb_y_cc_tmp] = g_assDTG_FL_INC_X2_LV5[i_0]; - tmp_1[6 * i_0] = g_assDTG_FL_INC_X3_LV0[i_0]; - tmp_1[rtb_Gain_pl] = g_assDTG_FL_INC_X3_LV1[i_0]; - tmp_1[rtb_Gain4] = g_assDTG_FL_INC_X3_LV2[i_0]; - tmp_1[rtb_Gain5] = g_assDTG_FL_INC_X3_LV3[i_0]; - tmp_1[rtb_Gain2] = g_assDTG_FL_INC_X3_LV4[i_0]; - tmp_1[rtb_y_cc_tmp] = g_assDTG_FL_INC_X3_LV5[i_0]; - tmp_2[6 * i_0] = g_assDTG_FL_INC_X4_LV0[i_0]; - tmp_2[rtb_Gain_pl] = g_assDTG_FL_INC_X4_LV1[i_0]; - tmp_2[rtb_Gain4] = g_assDTG_FL_INC_X4_LV2[i_0]; - tmp_2[rtb_Gain5] = g_assDTG_FL_INC_X4_LV3[i_0]; - tmp_2[rtb_Gain2] = g_assDTG_FL_INC_X4_LV4[i_0]; - tmp_2[rtb_y_cc_tmp] = g_assDTG_FL_INC_X4_LV5[i_0]; + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV0[i]; } - rtb_y_pu[0] = tmp[i]; - rtb_y_pu[1] = tmp_0[i]; - rtb_y_pu[2] = 0; - rtb_y_pu[3] = tmp_1[i]; - rtb_y_pu[4] = tmp_2[i]; + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* : fprintf('y = [%d, %d, %d, %d, %d]\n', y(1), y(2), y(3), y(4), y(5)); */ - printf("y = [%d, %d, %d, %d, %d]\n", rtb_y_pu[0], rtb_y_pu[1], 0, rtb_y_pu[3], - rtb_y_pu[4]); - fflush(stdout); + /* 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); - /* MATLAB Function: '/убираем одинаковые точки' */ - u(rtb_y_pu, &rtb_Saturation_m[0]); + /* 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); - /* Lookup_n-D: '/2.5 FLL_tg_incar' incorporates: + /* 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' + * Sum: '/2.5. X = Inc_Tg - Incar_fb' */ - rtb_Merge_kr = look1_is16bdlu64n48Ds32_binlcn((int16_t)(rtb_Merge1 - - rtDW.Incar_FL), &rtb_Saturation_m[0], rtb_y_b5, 4U); + rtb_MultiportSwitch_ae = look1_is16lu64n32Ds32_binlcn((int16_t) + (rtb_u5FLU_tg_incar_l - rtDW.Incar_FL), rtb_VectorConcatenate_lo, + rtb_VectorConcatenate_jn, 4U); - /* MATLAB Function: '/Amb_Tg ' */ - Amb_Tg(Comp_Max_RPM_Allowed, &rtb_Merge1); + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Switch3_ed) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV0[Comp_Max_RPM_Allowed - + 1]; + break; - /* MATLAB Function: '/Y1-Y4 для FLL_tg_amb' */ - Y1Y4FLL_tg_amb(rtb_u0101_a, Comp_Max_RPM_Allowed, rtb_y_p5); + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV1[Comp_Max_RPM_Allowed - + 1]; + break; - /* MATLAB Function: '/X1-X4 для FLL_tg_amb' */ - X1X4FLL_tg_amb(rtb_u0101_a, Comp_Max_RPM_Allowed, rtb_y_j3); + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV2[Comp_Max_RPM_Allowed - + 1]; + break; - /* Lookup_n-D: '/2.6 FLL_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read20' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV3[Comp_Max_RPM_Allowed - + 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV4[Comp_Max_RPM_Allowed - + 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[0] = g_assDTG_FL_AMB_Y1_LV5[Comp_Max_RPM_Allowed - + 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_Merge1 = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_Merge1 - rtDW.AMB), - rtb_y_j3, rtb_y_p5, 2U); + rtb_VectorConcatenate_e0[1] = 0; - /* MATLAB Function: '/Y1-Y4 для FLL_tg_sun' */ - Y1Y4FLL_tg_sun(rtb_u0101_a, Comp_Max_RPM_Allowed, rtb_y_p5); + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Switch3_ed) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV0[Comp_Max_RPM_Allowed - + 1]; - /* MATLAB Function: '/X1-X4 для FLU_tg_sun' */ - X1X4FLU_tg_sun(rtb_u0101_a, Comp_Max_RPM_Allowed, rtb_y_j3); + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV0[Comp_Max_RPM_Allowed - + 1]; + break; - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV1[Comp_Max_RPM_Allowed - + 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV1[Comp_Max_RPM_Allowed - + 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV2[Comp_Max_RPM_Allowed - + 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV2[Comp_Max_RPM_Allowed - + 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV3[Comp_Max_RPM_Allowed - + 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV3[Comp_Max_RPM_Allowed - + 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV4[Comp_Max_RPM_Allowed - + 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV4[Comp_Max_RPM_Allowed - + 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[2] = g_assDTG_FL_AMB_Y2_LV5[Comp_Max_RPM_Allowed - + 1]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lg[0] = g_assDTG_FL_AMB_X1_LV5[Comp_Max_RPM_Allowed - + 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_lg[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Switch3_ed) { + case 0: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV0[Comp_Max_RPM_Allowed - + 1]; + break; + + case 1: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV1[Comp_Max_RPM_Allowed - + 1]; + break; + + case 2: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV2[Comp_Max_RPM_Allowed - + 1]; + break; + + case 3: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV3[Comp_Max_RPM_Allowed - + 1]; + break; + + case 4: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV4[Comp_Max_RPM_Allowed - + 1]; + break; + + default: + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lg[2] = g_assDTG_FL_AMB_X2_LV5[Comp_Max_RPM_Allowed - + 1]; + break; + } + + /* 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); + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_bl[0] = 0; + + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Switch3_ed) { + case 0: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bl[1] = g_assDTG_FL_SUN_Y1_LV0[Comp_Max_RPM_Allowed - + 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bl[2] = g_assDTG_FL_SUN_Y2_LV0[Comp_Max_RPM_Allowed - + 1]; + break; + + case 1: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant1' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bl[1] = g_assDTG_FL_SUN_Y1_LV1[Comp_Max_RPM_Allowed - + 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant7' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bl[2] = g_assDTG_FL_SUN_Y2_LV1[Comp_Max_RPM_Allowed - + 1]; + break; + + case 2: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant2' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bl[1] = g_assDTG_FL_SUN_Y1_LV2[Comp_Max_RPM_Allowed - + 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant8' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bl[2] = g_assDTG_FL_SUN_Y2_LV2[Comp_Max_RPM_Allowed - + 1]; + break; + + case 3: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant3' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bl[1] = g_assDTG_FL_SUN_Y1_LV3[Comp_Max_RPM_Allowed - + 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant9' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bl[2] = g_assDTG_FL_SUN_Y2_LV3[Comp_Max_RPM_Allowed - + 1]; + break; + + case 4: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant4' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bl[1] = g_assDTG_FL_SUN_Y1_LV4[Comp_Max_RPM_Allowed - + 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant10' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bl[2] = g_assDTG_FL_SUN_Y2_LV4[Comp_Max_RPM_Allowed - + 1]; + break; + + default: + /* Selector: '/Selector' incorporates: + * Constant: '/Constant5' + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bl[1] = g_assDTG_FL_SUN_Y1_LV5[Comp_Max_RPM_Allowed - + 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant11' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bl[2] = g_assDTG_FL_SUN_Y2_LV5[Comp_Max_RPM_Allowed - + 1]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_km[0] = 0; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_km[1] = g_assDTG_FL_AMB_X1_LV0[Comp_Max_RPM_Allowed - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * DataTypeConversion: '/Data Type Conversion1' + * MultiPortSwitch: '/Multiport Switch2' + * 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_Product_fy = look1_bs16ts16DdId_binlc(rtDW.Sun_L, rtb_y_j3, rtb_y_p5, 2U); + rtb_Bias3 = look1_bs16ts16Dd_binlc(rtDW.Sun_L, rtb_VectorConcatenate_km, + rtb_VectorConcatenate_bl, 2U); /* Sum: '/FLU_tg_correct' */ - rtb_Product_fy += (double)((rtb_y_lp + rtb_Merge_kr) + rtb_Merge1); + rtb_FLU_tg_correct_de = (int16_t)((int16_t)((int16_t)(rtb_u6FLU_tg_amb_hq + + rtb_MultiportSwitch_ae) + rtb_MultiportSwitch1_h) + rtb_Bias3); - /* RelationalOperator: '/LowerRelop1' */ - rtb_is_ending_with_5 = (rtb_Product_fy > rtb_y_cy); - - /* MATLAB Function: '/FLL_tg_min' */ - FLL_tg_min(rtb_u0101_a, Comp_Max_RPM_Allowed, &rtb_Merge1); - - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + * Selector: '/Selector' */ - if (rtb_is_ending_with_5) { - rtb_Product_fy = rtb_y_cy; - } else if (rtb_Product_fy < rtb_Merge1) { - /* Switch: '/Switch' */ - rtb_Product_fy = rtb_Merge1; - } + rtb_FLU_tg_correct_g = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; - /* End of Switch: '/Switch2' */ - - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(Gain, &rtb_is_ending_with_5); - - /* MATLAB Function: '/correction rate' */ - /* : 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(rtb_u0101_a, Comp_Max_RPM_Allowed, &rtb_y_lp); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read25' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_dt_ca = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_l; - - /* MATLAB Function: '/correction_start_time' */ - /* : 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)); */ - for (i_0 = 0; i_0 < 7; i_0++) { - tmp[6 * i_0] = g_assCORRECT_DUCT_TIME_FL_LV0[i_0]; - tmp[6 * i_0 + 1] = g_assCORRECT_DUCT_TIME_FL_LV1[i_0]; - tmp[6 * i_0 + 2] = g_assCORRECT_DUCT_TIME_FL_LV2[i_0]; - tmp[6 * i_0 + 3] = g_assCORRECT_DUCT_TIME_FL_LV3[i_0]; - tmp[6 * i_0 + 4] = g_assCORRECT_DUCT_TIME_FL_LV4[i_0]; - tmp[6 * i_0 + 5] = g_assCORRECT_DUCT_TIME_FL_LV5[i_0]; - } - - /* RelationalOperator: '/Relational Operator' incorporates: - * Gain: '/из сек в мс' - * MATLAB Function: '/correction_start_time' - */ - rtb_is_ending_with_5 = ((int64_t)rtb_dt_ca >= tmp[i] * 1000); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Logic: '/ After start control system works X sec' - * UnitDelay: '/Unit Delay' - */ - if (rtb_is_ending_with_5 && (rtDW.UnitDelay_DSTATE_l0 != 0)) { - /* Product: '/Product' incorporates: - * Constant: '/Constant1' - * Product: '/Divide' - */ - rtb_FLU_tg_correct_o = (double)rtb_dt_ca / 10000.0 * (double)rtb_y_lp; - - /* MATLAB Function: '/correction max' */ - for (i_0 = 0; i_0 < 7; i_0++) { - tmp[6 * i_0] = g_assCORRECT_DUCT_MAX_LV0[i_0]; - tmp[6 * i_0 + 1] = g_assCORRECT_DUCT_MAX_LV1[i_0]; - tmp[6 * i_0 + 2] = g_assCORRECT_DUCT_MAX_LV2[i_0]; - tmp[6 * i_0 + 3] = g_assCORRECT_DUCT_MAX_LV3[i_0]; - tmp[6 * i_0 + 4] = g_assCORRECT_DUCT_MAX_LV4[i_0]; - tmp[6 * i_0 + 5] = g_assCORRECT_DUCT_MAX_LV5[i_0]; - } - - /* Gain: '/из 0.01 в 0.1 градус Цельсия' incorporates: - * MATLAB Function: '/correction max' - */ - i = tmp[i] * 13107; - rtb_u0101_a = (int16_t)(((((uint32_t)i & 65536U) != 0U) && ((((uint32_t)i & - 65535U) != 0U) || (i > 0))) + (i >> 17)); - - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant2' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' - */ - if (rtb_FLU_tg_correct_o > rtb_u0101_a) { - rtb_FLU_tg_correct_o = rtb_u0101_a; - } else if (rtb_FLU_tg_correct_o < 0.0) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' - */ - rtb_FLU_tg_correct_o = 0.0; - } - - /* End of Switch: '/Switch2' */ - } else { - rtb_FLU_tg_correct_o = 0.0; - } - - /* End of Switch: '/Switch' */ - - /* DataTypeConversion: '/Data Type Conversion' incorporates: + /* Switch: '/Switch2' incorporates: * DataStoreWrite: '/Data Store Write6' - * DataTypeConversion: '/Data Type Conversion' - * Sum: '/Add' + * RelationalOperator: '/LowerRelop1' + * Selector: '/Selector' */ - rtb_u0101_a = (int16_t)floor(rtb_Product_fy - floor(rtb_FLU_tg_correct_o)); - - /* MATLAB Function: '/FRL_tg_max' */ - FLL_tg_max(rtb_y_pc, Comp_Max_RPM_Allowed, &rtb_y_lp); - - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(Gain1, &rtb_is_ending_with_5); - - /* MATLAB Function: '/2.3 FRL_tg' */ - /* : FLU_tg = [g_assTG_FRL_LV0; g_assTG_FRL_LV1; g_assTG_FRL_LV2; g_assTG_FRL_LV3; g_assTG_FRL_LV4; g_assTG_FRL_LV5]; */ - for (i = 0; i < 13; i++) { - FLU_tg[6 * i] = g_assTG_FRL_LV0[i]; - FLU_tg[6 * i + 1] = g_assTG_FRL_LV1[i]; - FLU_tg[6 * i + 2] = g_assTG_FRL_LV2[i]; - FLU_tg[6 * i + 3] = g_assTG_FRL_LV3[i]; - FLU_tg[6 * i + 4] = g_assTG_FRL_LV4[i]; - FLU_tg[6 * i + 5] = g_assTG_FRL_LV5[i]; - } - - /* : if set_has_half && (SET - 16 + 1 <= length(FLU_tg)) */ - if (rtb_is_ending_with_5 && (rtb_y_pc - 15 <= 13)) { - /* : y = (FLU_tg(LVL + 1, SET - 16) + FLU_tg(LVL + 1, SET - 16 + 1)) / 2; */ - i = FLU_tg[(rtb_y_pc - 17) * 6 + Comp_Max_RPM_Allowed] + FLU_tg[(rtb_y_pc - - 16) * 6 + Comp_Max_RPM_Allowed]; - if (i > 32767) { - i = 32767; - } else if (i < -32768) { - i = -32768; + if (rtb_FLU_tg_correct_de > rtb_FLU_tg_correct_g) { + rtb_FLU_tg_correct_de = rtb_FLU_tg_correct_g; + } else { + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MIN_LV0[i]; } - rtb_Gain2_ay = (int16_t)rt_roundd((double)i / 2.0); - } else { - /* : else */ - /* : y = FLU_tg(LVL + 1, SET - 16); */ - rtb_Gain2_ay = FLU_tg[(rtb_y_pc - 17) * 6 + Comp_Max_RPM_Allowed]; + /* 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]; + + /* Switch: '/Switch' incorporates: + * DataStoreWrite: '/Data Store Write6' + * 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; + } + + /* End of Switch: '/Switch' */ } - /* End of MATLAB Function: '/2.3 FRL_tg' */ + /* End of Switch: '/Switch2' */ - /* MATLAB Function: '/2.1 Incar target' */ - u1Incartarget(rtb_y_pc, Comp_Max_RPM_Allowed, rtb_is_ending_with_5, &rtb_y_cy); - - /* MATLAB Function: '/Y1-Y4 для FRL_tg_incar' */ - Y1Y4FLL_tg_incar(rtb_y_pc, Comp_Max_RPM_Allowed, rtb_y_b5); - - /* MATLAB Function: '/X1-X4 для FRL_tg_incar' */ - /* : all_lvl_x1 = [g_assDTG_FL_INC_X1_LV0; g_assDTG_FL_INC_X1_LV1; g_assDTG_FL_INC_X1_LV2; g_assDTG_FL_INC_X1_LV3; g_assDTG_FL_INC_X1_LV4; g_assDTG_FL_INC_X1_LV5]; */ - /* : all_lvl_x2 = [g_assDTG_FL_INC_X2_LV0; g_assDTG_FL_INC_X2_LV1; g_assDTG_FL_INC_X2_LV2; g_assDTG_FL_INC_X2_LV3; g_assDTG_FL_INC_X2_LV4; g_assDTG_FL_INC_X2_LV5]; */ - /* : all_lvl_x3 = [g_assDTG_FL_INC_X3_LV0; g_assDTG_FL_INC_X3_LV1; g_assDTG_FL_INC_X3_LV2; g_assDTG_FL_INC_X3_LV3; g_assDTG_FL_INC_X3_LV4; g_assDTG_FL_INC_X3_LV5]; */ - /* : all_lvl_x4 = [g_assDTG_FL_INC_X4_LV0; g_assDTG_FL_INC_X4_LV1; g_assDTG_FL_INC_X4_LV2; g_assDTG_FL_INC_X4_LV3; g_assDTG_FL_INC_X4_LV4; g_assDTG_FL_INC_X4_LV5]; */ - /* : 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))]; */ + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assDTG_FL_INC_X1_LV0[i]; - i_0 = 6 * i + 1; - tmp[i_0] = g_assDTG_FL_INC_X1_LV1[i]; - rtb_Gain_pl = 6 * i + 2; - tmp[rtb_Gain_pl] = g_assDTG_FL_INC_X1_LV2[i]; - rtb_Gain4 = 6 * i + 3; - tmp[rtb_Gain4] = g_assDTG_FL_INC_X1_LV3[i]; - rtb_Gain5 = 6 * i + 4; - tmp[rtb_Gain5] = g_assDTG_FL_INC_X1_LV4[i]; - rtb_Gain2 = 6 * i + 5; - tmp[rtb_Gain2] = g_assDTG_FL_INC_X1_LV5[i]; - tmp_0[6 * i] = g_assDTG_FL_INC_X2_LV0[i]; - tmp_0[i_0] = g_assDTG_FL_INC_X2_LV1[i]; - tmp_0[rtb_Gain_pl] = g_assDTG_FL_INC_X2_LV2[i]; - tmp_0[rtb_Gain4] = g_assDTG_FL_INC_X2_LV3[i]; - tmp_0[rtb_Gain5] = g_assDTG_FL_INC_X2_LV4[i]; - tmp_0[rtb_Gain2] = g_assDTG_FL_INC_X2_LV5[i]; - tmp_1[6 * i] = g_assDTG_FL_INC_X3_LV0[i]; - tmp_1[i_0] = g_assDTG_FL_INC_X3_LV1[i]; - tmp_1[rtb_Gain_pl] = g_assDTG_FL_INC_X3_LV2[i]; - tmp_1[rtb_Gain4] = g_assDTG_FL_INC_X3_LV3[i]; - tmp_1[rtb_Gain5] = g_assDTG_FL_INC_X3_LV4[i]; - tmp_1[rtb_Gain2] = g_assDTG_FL_INC_X3_LV5[i]; - tmp_2[6 * i] = g_assDTG_FL_INC_X4_LV0[i]; - tmp_2[i_0] = g_assDTG_FL_INC_X4_LV1[i]; - tmp_2[rtb_Gain_pl] = g_assDTG_FL_INC_X4_LV2[i]; - tmp_2[rtb_Gain4] = g_assDTG_FL_INC_X4_LV3[i]; - tmp_2[rtb_Gain5] = g_assDTG_FL_INC_X4_LV4[i]; - tmp_2[rtb_Gain2] = g_assDTG_FL_INC_X4_LV5[i]; + rtb_uDLookupTable7_g[i] = g_assDTG_FL_MAX_LV0[i]; } - rtb_y_pu[0] = tmp[rtb_Gain3]; - rtb_y_pu[1] = tmp_0[rtb_Gain3]; - rtb_y_pu[2] = 0; - rtb_y_pu[3] = tmp_1[rtb_Gain3]; - rtb_y_pu[4] = tmp_2[rtb_Gain3]; + /* End of MultiPortSwitch: '/Multiport Switch1' */ - /* MATLAB Function: '/убираем одинаковые точки' */ - u(rtb_y_pu, &rtb_Saturation_m[0]); + /* 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) { + case 0: + rtb_Bias2 = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, rtConstP.pooled51, + &g_assTG_FRL_LV0[0], 12U); - /* Lookup_n-D: '/2.5 FLL_tg_incar' incorporates: + /* 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]; + 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]; + 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]; + 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]; + 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]; + 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]; + 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 Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV0[Blower_AF_RL - 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[Blower_AF_RL - 1]; + + /* Selector: '/Selector' */ + rtb_VectorConcatenate_lo[0] = rtb_Bias_ct; + + /* Selector: '/Selector1' */ + rtb_VectorConcatenate_lo[1] = rtb_FLU_tg_correct_b; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV1[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_jn[3] = g_assDTG_FL_INC_Y3_LV5[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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_Bias1_h; + + /* Selector: '/Selector3' */ + rtb_VectorConcatenate_lo[4] = Duct3_R; + break; + + case 1: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant15' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV1[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 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[Blower_AF_RL - 1]; + break; + + default: + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant13' + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_lo[3] = g_assDTG_FU_INC_X3_LV5[Blower_AF_RL - 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[Blower_AF_RL - 1]; + break; + } + + /* 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_Merge_kr = look1_is16bdlu64n48Ds32_binlcn((int16_t)(rtb_y_cy - - rtDW.Incar_FR), &rtb_Saturation_m[0], rtb_y_b5, 4U); + rtb_Bias1_h = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_Bias4 - rtDW.Incar_FR), + rtb_VectorConcatenate_lo, rtb_VectorConcatenate_jn, 4U); - /* MATLAB Function: '/Amb_Tg ' */ - Amb_Tg(Comp_Max_RPM_Allowed, &rtb_y_cy); + /* MultiPortSwitch: '/Multiport Switch1' */ + switch (rtb_Switch3_ed) { + case 0: + /* 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]; + break; - /* MATLAB Function: '/Y1-Y4 для FRL_tg_amb' */ - Y1Y4FLL_tg_amb(rtb_y_pc, Comp_Max_RPM_Allowed, rtb_y_p5); + case 1: + /* 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]; + break; - /* MATLAB Function: '/X1-X4 для FLL_tg_amb' */ - X1X4FLL_tg_amb(rtb_y_pc, Comp_Max_RPM_Allowed, rtb_y_j3); + case 2: + /* 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]; + break; - /* Lookup_n-D: '/2.6 FLL_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read20' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + case 3: + /* 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]; + break; + + case 4: + /* 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]; + break; + + default: + /* 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]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' */ - rtb_Merge1 = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_cy - rtDW.AMB), - rtb_y_j3, rtb_y_p5, 2U); + rtb_VectorConcatenate_e0[1] = 0; - /* MATLAB Function: '/Y1-Y4 для FRL_tg_sun' */ - Y1Y4FLL_tg_sun(rtb_y_pc, Comp_Max_RPM_Allowed, rtb_y_p5); + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Switch3_ed) { + case 0: + /* 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]; - /* MATLAB Function: '/X1-X4 для FRL_tg_sun' */ - X1X4FLU_tg_sun(rtb_y_pc, Comp_Max_RPM_Allowed, rtb_y_j3); + /* 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]; + break; - /* Lookup_n-D: '/2.6 FRL_tg_amb' incorporates: + case 1: + /* 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]; + + /* 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]; + break; + + case 2: + /* 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]; + + /* 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]; + break; + + case 3: + /* 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]; + + /* 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]; + break; + + case 4: + /* 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]; + + /* 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]; + break; + + default: + /* 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]; + + /* 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]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch2' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_lg[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' */ + switch (rtb_Switch3_ed) { + case 0: + /* 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]; + break; + + case 1: + /* 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]; + break; + + case 2: + /* 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]; + break; + + case 3: + /* 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]; + break; + + case 4: + /* 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]; + break; + + default: + /* 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]; + break; + } + + /* 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); + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_bl[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) { + case 0: + /* 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]; + + /* 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]; + break; + + case 1: + /* 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]; + + /* 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]; + break; + + case 2: + /* 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]; + + /* 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]; + break; + + case 3: + /* 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]; + + /* 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]; + break; + + case 4: + /* 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]; + + /* 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]; + break; + + default: + /* 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]; + + /* 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]; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Lookup_n-D: '/2.6 FLL_tg_amb' incorporates: * DataStoreRead: '/Data Store Read27' */ - rtb_FLU_tg_correct_o = look1_bs16ts16DdId_binlc(rtDW.Sun_R, rtb_y_j3, rtb_y_p5, - 2U); + rtb_Bias5 = look1_bs16ts16Dd_binlc(rtDW.Sun_R, rtb_VectorConcatenate_km, + rtb_VectorConcatenate_bl, 2U); /* Sum: '/FLU_tg_correct' */ - rtb_FLU_tg_correct_o += (double)((rtb_Gain2_ay + rtb_Merge_kr) + rtb_Merge1); + rtb_FLU_tg_correct_b = (int16_t)((int16_t)((int16_t)(rtb_Bias2 + rtb_Bias1_h) + + rtb_Bias_ct) + rtb_Bias5); - /* RelationalOperator: '/LowerRelop1' */ - rtb_is_ending_with_5 = (rtb_FLU_tg_correct_o > rtb_y_lp); - - /* MATLAB Function: '/FRL_tg_min' */ - FLL_tg_min(rtb_y_pc, Comp_Max_RPM_Allowed, &rtb_y_cy); - - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Selector: '/Selector' incorporates: + * DataTypeConversion: '/Data Type Conversion2' + * Selector: '/Selector' */ - if (rtb_is_ending_with_5) { - rtb_FLU_tg_correct_o = rtb_y_lp; - } else if (rtb_FLU_tg_correct_o < rtb_y_cy) { - /* Switch: '/Switch' */ - rtb_FLU_tg_correct_o = rtb_y_cy; + 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; + } else { + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assDTG_FL_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 Write7' + * 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; + } + + /* End of Switch: '/Switch' */ } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(Gain1, &rtb_is_ending_with_5); + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_lo[0] = rtb_u6FLU_tg_amb_hq; - /* MATLAB Function: '/correction rate' */ + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_lo[1] = rtb_MultiportSwitch_ae; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_lo[2] = rtb_MultiportSwitch1_h; + + /* 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_jn[2] = rtb_y_lg; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_jn[3] = rtb_y_bf; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_j[0] = rtb_Bias2; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_j[1] = rtb_Bias1_h; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_j[2] = rtb_Bias_ct; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_j[3] = rtb_Bias5; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_j[4] = rtb_Bias4; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_bp[0] = rtb_y_h5; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_bp[1] = rtb_y_fe; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_bp[2] = rtb_y_ar; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_bp[3] = rtb_u6FLU_tg_amb; + + /* SignalConversion generated from: '/Vector Concatenate' */ + rtb_VectorConcatenate_bp[4] = rtb_y_ck; + for (i = 0; i < 5; i++) { + /* DataStoreWrite: '/Data Store Write' */ + Duct_FRL_Tg_DBG[i] = rtb_VectorConcatenate_j[i]; + + /* DataStoreWrite: '/Data Store Write' */ + Duct_FRU_Tg_DBG[i] = rtb_VectorConcatenate_bp[i]; + } + + /* MATLAB Function: '/is_ending_with_5' */ + is_ending_with_5(Gain, &rtb_LogicalOperator5); + + /* 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(rtb_y_pc, Comp_Max_RPM_Allowed, &rtb_y_lp); + correctionrate((int16_t)(rtb_dt_an + (uint32_t)((rtb_Subtract & 262144U) != 0U)), + rtb_Switch3_ed, &rtb_Bias5); - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read25' - * UnitDelay: '/t_start_delay_private ' + /* 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); + + /* MATLAB Function: '/correction rate' incorporates: + * Gain: '/Gain2' */ - rtb_dt_ca = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_gg; + /* : 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); - /* MATLAB Function: '/correction_start_time' */ + /* Outputs for Enabled SubSystem: '/Front Left AF - manual directions' incorporates: + * EnablePort: '/Enable' + */ + /* 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)); */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assCORRECT_DUCT_TIME_FR_LV0[i]; - tmp[6 * i + 1] = g_assCORRECT_DUCT_TIME_FR_LV1[i]; - tmp[6 * i + 2] = g_assCORRECT_DUCT_TIME_FR_LV2[i]; - tmp[6 * i + 3] = g_assCORRECT_DUCT_TIME_FR_LV3[i]; - tmp[6 * i + 4] = g_assCORRECT_DUCT_TIME_FR_LV4[i]; - tmp[6 * i + 5] = g_assCORRECT_DUCT_TIME_FR_LV5[i]; - } - - /* RelationalOperator: '/Relational Operator' incorporates: - * Gain: '/из сек в мс' - * MATLAB Function: '/correction_start_time' - */ - rtb_is_ending_with_5 = ((int64_t)rtb_dt_ca >= tmp[rtb_Gain3] * 1000); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Logic: '/ After start control system works X sec' - * UnitDelay: '/Unit Delay' - */ - if (rtb_is_ending_with_5 && (rtDW.UnitDelay_DSTATE_c != 0)) { - /* Product: '/Product' incorporates: - * Constant: '/Constant1' - * Product: '/Divide' - */ - rtb_Product_fy = (double)rtb_dt_ca / 10000.0 * (double)rtb_y_lp; - - /* MATLAB Function: '/correction max' */ - for (i = 0; i < 7; i++) { - tmp[6 * i] = g_assCORRECT_DUCT_MAX_LV0[i]; - tmp[6 * i + 1] = g_assCORRECT_DUCT_MAX_LV1[i]; - tmp[6 * i + 2] = g_assCORRECT_DUCT_MAX_LV2[i]; - tmp[6 * i + 3] = g_assCORRECT_DUCT_MAX_LV3[i]; - tmp[6 * i + 4] = g_assCORRECT_DUCT_MAX_LV4[i]; - tmp[6 * i + 5] = g_assCORRECT_DUCT_MAX_LV5[i]; - } - - /* Gain: '/из 0.01 в 0.1 градус Цельсия' incorporates: - * MATLAB Function: '/correction max' - */ - i = tmp[rtb_Gain3] * 13107; - rtb_Merge_kr = (int16_t)(((((uint32_t)i & 65536U) != 0U) && ((((uint32_t)i & - 65535U) != 0U) || (i > 0))) + (i >> 17)); - - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant2' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' - */ - if (rtb_Product_fy > rtb_Merge_kr) { - rtb_Product_fy = rtb_Merge_kr; - } else if (rtb_Product_fy < 0.0) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' - */ - rtb_Product_fy = 0.0; - } - - /* End of Switch: '/Switch2' */ - } else { - rtb_Product_fy = 0.0; - } - - /* End of Switch: '/Switch' */ - - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * DataStoreWrite: '/Data Store Write7' - * DataTypeConversion: '/Data Type Conversion' - * Sum: '/Add1' - */ - rtb_Merge_kr = (int16_t)floor(rtb_FLU_tg_correct_o - floor(rtb_Product_fy)); - - /* Outputs for Enabled SubSystem: '/Front Left AF - manual directions' incorporates: - * EnablePort: '/Enable' - */ - /* RelationalOperator: '/Equal2' incorporates: - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read44' - */ 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_Saturation2_a); + AFforFoorDef(rtDW.CCU_BLOWERS_FL, &rtb_out_eu); - /* MATLAB Function: '/AF for Foot' incorporates: + /* MATLAB Function: '/AF for Foot' incorporates: * DataStoreRead: '/Data Store Read11' */ - AFforFoot(rtDW.CCU_BLOWERS_FL, &rtb_out_d1m); + AFforFoot(rtDW.CCU_BLOWERS_FL, &rtb_out_aq0); - /* 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_hvi); + AFforHi_Level(rtDW.CCU_BLOWERS_FL, &rtb_out_ddc); - /* 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_gr); + AFforVentmode(rtDW.CCU_BLOWERS_FL, &rtb_out_p4); - /* RelationalOperator: '/Relational Operator2' incorporates: - * Constant: '/Constant2' + /* RelationalOperator: '/Relational Operator2' incorporates: + * Constant: '/Constant2' * DataStoreRead: '/Data Store Read9' */ - rtb_is_ending_with_5 = (rtDW.CCU_FOOT_FL == 1); + rtb_LogicalOperator5 = (rtDW.CCU_FOOT_FL == 1); - /* DataTypeConversion: '/Data Type Conversion5' */ - rtb_DataTypeConversion2_bb = rtb_is_ending_with_5; + /* 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_is_ending_with_5 + (rtDW.CCU_DEF_FL == 1)) + (uint32_t)(rtb_LogicalOperator5 << 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_gr; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_o2 = rtb_out_p4; break; case 3: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_o2 = rtb_out_hvi; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_o2 = rtb_out_ddc; break; case 4: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_o2 = rtb_out_d1m; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_o2 = rtb_out_aq0; break; case 5: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_o2 = rtb_Saturation2_a; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_o2 = rtb_out_eu; 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); + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV0[i]; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ + /* Saturate: '/Saturation5' incorporates: * DataStoreRead: '/Data Store Read30' */ @@ -12718,12 +12460,23 @@ void HVAC_model_step(void) /* End of Saturate: '/Saturation5' */ - /* Gain: '/Gain2' incorporates: - * Gain: '/Gain2' + /* Gain: '/Gain4' incorporates: + * Bias: '/Bias1' + * DataTypeConversion: '/Data Type Conversion4' + * Gain: '/Gain3' + * Gain: '/Gain' */ - rtb_dt_ca = 52429U * Gain; - rtb_Merge1 = (int16_t)((uint32_t)((rtb_dt_ca & 262144U) != 0U) + (rtb_dt_ca >> - 19)); + rtb_Gain_pl = ((int32_t)((52429U * Gain) >> 19) + -15) << 14; + + /* DataTypeConversion: '/Data Type Conversion3' incorporates: + * Gain: '/Gain' + * Saturate: '/Saturation1' + */ + Comp_Max_RPM_Allowed = (uint8_t)((((uint32_t)rtb_Gain_pl & 16384U) != 0U) + + (rtb_Gain_pl >> 15)); + + /* Selector: '/Selector' */ + rtb_Bias5 = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; /* Saturate: '/Saturation9' incorporates: * DataStoreRead: '/Data Store Read42' @@ -12736,302 +12489,462 @@ void HVAC_model_step(void) /* End of Saturate: '/Saturation9' */ - /* MATLAB Function: '/Vtg_FX_plus_max' incorporates: - * Gain: '/Gain2' + /* 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' */ - Vtg_FX_plus_max(rtb_Merge1, rtb_Saturation9, &rtb_y_pc); + switch (rtb_Saturation9) { + case 0: + rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled72, + &g_assVTG_FL_LV0[0], 12U); - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(Gain, &rtb_is_ending_with_5); + /* 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, + &g_assINCAR_TG_FL_LV0[0], 12U); + break; - /* MATLAB Function: '/2.3 Vtg_FLU' incorporates: - * Gain: '/Gain2' - */ - /* : Vtg_FLU = [g_assVTG_FL_LV0; g_assVTG_FL_LV1; g_assVTG_FL_LV2; g_assVTG_FL_LV3; g_assVTG_FL_LV4; g_assVTG_FL_LV5]; */ - for (i = 0; i < 13; i++) { - FLU_tg[6 * i] = g_assVTG_FL_LV0[i]; - FLU_tg[6 * i + 1] = g_assVTG_FL_LV1[i]; - FLU_tg[6 * i + 2] = g_assVTG_FL_LV2[i]; - FLU_tg[6 * i + 3] = g_assVTG_FL_LV3[i]; - FLU_tg[6 * i + 4] = g_assVTG_FL_LV4[i]; - FLU_tg[6 * i + 5] = g_assVTG_FL_LV5[i]; + case 1: + rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled72, + &g_assVTG_FL_LV1[0], 12U); + + /* 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, + &g_assINCAR_TG_FL_LV1[0], 12U); + break; + + case 2: + rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled72, + &g_assVTG_FL_LV1[0], 12U); + + /* 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, + &g_assINCAR_TG_FL_LV2[0], 12U); + break; + + case 3: + rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled72, + &g_assVTG_FL_LV3[0], 12U); + + /* 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, + &g_assINCAR_TG_FL_LV3[0], 12U); + break; + + case 4: + rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled72, + &g_assVTG_FL_LV4[0], 12U); + + /* 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, + &g_assINCAR_TG_FL_LV4[0], 12U); + break; + + default: + rtb_Bias_ct = look1_iu16lu64n48ts16Ds32_binlcs(Gain, rtConstP.pooled72, + &g_assVTG_FL_LV5[0], 12U); + + /* 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, + &g_assINCAR_TG_FL_LV5[0], 12U); + break; } - /* : if set_has_half && (SET - 16 + 1 <= length(Vtg_FLU)) */ - if (rtb_is_ending_with_5 && (rtb_Merge1 - 15 <= 13)) { - /* : y = (Vtg_FLU(LVL + 1, SET - 16) + Vtg_FLU(LVL + 1, SET - 16 + 1)) / 2; */ - i = FLU_tg[(rtb_Merge1 - 17) * 6 + rtb_Saturation9] + FLU_tg[(rtb_Merge1 - - 16) * 6 + rtb_Saturation9]; - if (i > 32767) { - i = 32767; - } else if (i < -32768) { - i = -32768; + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bp[0] = g_assVF_INC_Y1_LV0[Comp_Max_RPM_Allowed - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_bp[1] = g_assVF_INC_Y2_LV0[Comp_Max_RPM_Allowed - 1]; + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_bp[2] = 0; + + /* 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_bp[4] = g_assVF_INC_Y4_LV0[Comp_Max_RPM_Allowed - 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: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_j[1] = g_assVF_INC_X2_LV0[Comp_Max_RPM_Allowed - 1]; + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_j[2] = 0; + + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * MultiPortSwitch: '/Multiport Switch3' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_j[3] = g_assVF_INC_X3_LV0[Comp_Max_RPM_Allowed - 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]; + + /* Lookup_n-D: '/2.5 Vtg_Fx_tg_incar' incorporates: + * DataStoreRead: '/Data Store Read35' + * 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); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[0] = g_assVF_AMB_Y1_LV0[Comp_Max_RPM_Allowed - 1]; + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_e0[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 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]; + + /* 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' + * MultiPortSwitch: '/Multiport Switch2' + * Selector: '/Selector' + * Selector: '/Selector1' + * Selector: '/Selector1' + */ + rtb_u5FLU_tg_incar_l = g_assVF_AMB_X2_LV0[Comp_Max_RPM_Allowed - 1]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + */ + rtb_VectorConcatenate_lg[2] = rtb_u5FLU_tg_incar_l; + + /* 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' + */ + rtb_u6FLU_tg_amb = (int16_t)(g_assAMB_LV_TG[rtb_Saturation9] - rtDW.AMB); + + /* 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); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + * Selector: '/Selector' + */ + rtb_VectorConcatenate_e0[0] = g_assVF_SUN_Y1_LV0[Comp_Max_RPM_Allowed - 1]; + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_e0[1] = 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]; + + /* 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 Vtg_Fx_tg_amb' incorporates: + * DataStoreRead: '/Data Store Read39' + */ + rtb_Bias3 = look1_bs16ts16Dd_binlc(rtDW.Sun_L, rtb_VectorConcatenate_lg, + rtb_VectorConcatenate_e0, 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); + + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + */ + if (rtb_u5FLU_tg_incar_l <= rtb_Bias5) { + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MIN_LV0[i]; } - rtb_y_cy = (int16_t)rt_roundd((double)i / 2.0); - } else { - /* : else */ - /* : y = Vtg_FLU(LVL + 1, SET - 16); */ - rtb_y_cy = FLU_tg[(rtb_Merge1 - 17) * 6 + rtb_Saturation9]; + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Selector: '/Selector' incorporates: + * Selector: '/Selector' + */ + rtb_Bias5 = rtb_uDLookupTable7_g[Comp_Max_RPM_Allowed - 1]; + + /* Switch: '/Switch' incorporates: + * RelationalOperator: '/UpperRelop' + * Selector: '/Selector' + */ + if (rtb_u5FLU_tg_incar_l >= rtb_Bias5) { + rtb_Bias5 = rtb_u5FLU_tg_incar_l; + } + + /* End of Switch: '/Switch' */ } - /* End of MATLAB Function: '/2.3 Vtg_FLU' */ + /* End of Switch: '/Switch2' */ - /* MATLAB Function: '/2.1 Incar target Left' incorporates: - * Gain: '/Gain2' + /* DataTypeConversion: '/Data Type Conversion3' incorporates: + * DataStoreWrite: '/Data Store Write' */ - u1Incartarget(rtb_Merge1, rtb_Saturation9, rtb_is_ending_with_5, &rtb_Gain2_ay); - - /* MATLAB Function: '/Y1-Y4 для Vtg_FX_incar' incorporates: - * Gain: '/Gain2' - */ - Y1Y4Vtg_FX_incar(rtb_Merge1, rtb_Saturation9, rtb_y_pu); - - /* MATLAB Function: '/X1-X4 для Vtg_FX_incar' incorporates: - * Gain: '/Gain2' - */ - X1X4Vtg_FX_incar(rtb_Merge1, rtb_Saturation9, rtb_y_b5); - - /* MATLAB Function: '/Amb_Tg ' */ - Amb_Tg(rtb_Saturation9, &rtb_y_j5); - - /* MATLAB Function: '/Y1-Y2 для Vtg_FL_amb' incorporates: - * Gain: '/Gain2' - */ - Y1Y2Vtg_FL_amb(rtb_Merge1, rtb_Saturation9, rtb_y_p5); - - /* MATLAB Function: '/X1-X2 для Vtg_FL_amb' incorporates: - * Gain: '/Gain2' - * MATLAB Function: '/X1-X2 для Vtg_RL_amb' - */ - /* : all_lvl_x1 = [g_assVF_AMB_X1_LV0; g_assVF_AMB_X1_LV1; g_assVF_AMB_X1_LV2; g_assVF_AMB_X1_LV3; g_assVF_AMB_X1_LV4; g_assVF_AMB_X1_LV5]; */ - /* : all_lvl_x2 = [g_assVF_AMB_X2_LV0; g_assVF_AMB_X2_LV1; g_assVF_AMB_X2_LV2; g_assVF_AMB_X2_LV3; g_assVF_AMB_X2_LV4; g_assVF_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_assVF_AMB_X1_LV0[i]; - i_0 = 6 * i + 1; - tmp[i_0] = g_assVF_AMB_X1_LV1[i]; - rtb_Gain_pl = 6 * i + 2; - tmp[rtb_Gain_pl] = g_assVF_AMB_X1_LV2[i]; - rtb_Gain4 = 6 * i + 3; - tmp[rtb_Gain4] = g_assVF_AMB_X1_LV3[i]; - rtb_Gain5 = 6 * i + 4; - tmp[rtb_Gain5] = g_assVF_AMB_X1_LV4[i]; - rtb_Gain2 = 6 * i + 5; - tmp[rtb_Gain2] = g_assVF_AMB_X1_LV5[i]; - tmp_0[6 * i] = g_assVF_AMB_X2_LV0[i]; - tmp_0[i_0] = g_assVF_AMB_X2_LV1[i]; - tmp_0[rtb_Gain_pl] = g_assVF_AMB_X2_LV2[i]; - tmp_0[rtb_Gain4] = g_assVF_AMB_X2_LV3[i]; - tmp_0[rtb_Gain5] = g_assVF_AMB_X2_LV4[i]; - tmp_0[rtb_Gain2] = g_assVF_AMB_X2_LV5[i]; - } - - rtb_Gain3 = ((int32_t)trunc((((double)rtb_Merge1 - 16.0) + 1.0) / 2.0) - 1) * - 6 + rtb_Saturation9; - rtb_y_fe[0] = tmp[rtb_Gain3]; - rtb_y_fe[1] = 0; - rtb_y_fe[2] = tmp_0[rtb_Gain3]; - - /* End of MATLAB Function: '/X1-X2 для Vtg_FL_amb' */ - - /* MATLAB Function: '/Y1-Y2 для Vtg_FX_sun' incorporates: - * Gain: '/Gain2' - */ - Y1Y2Vtg_FX_sun(rtb_Merge1, rtb_Saturation9, rtb_y_p4); - - /* MATLAB Function: '/X1-X2 для Vtg_FX_sun' incorporates: - * Gain: '/Gain2' - */ - X1X2Vtg_FX_sun(rtb_Merge1, rtb_Saturation9, rtb_y_j3); - - /* MATLAB Function: '/Vtg_FX_plus_min' incorporates: - * Gain: '/Gain2' - */ - Vtg_FX_plus_min(rtb_Merge1, rtb_Saturation9, &rtb_y_lp); + Comp_Max_RPM_Allowed = (uint8_t)rtb_Bias5; /* Switch: '/Switch' incorporates: * Constant: '/manual' * 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 Conversion3' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion3' + * Gain: '/Gain' + * Product: '/Product' * RelationalOperator: '/Equal1' - * Sum: '/Add' + * Sum: '/Add' */ if (rtDW.CCU_MODE_FL == 0) { - Comp_Max_RPM_Allowed = (uint8_t)rtB.MultiportSwitch_o2; + Blower_AF_FL = (uint8_t)rtB.MultiportSwitch_o2; } else { - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read39' - */ - rtb_Product_fy = look1_bs16ts16DdId_binlc(rtDW.Sun_L, rtb_y_j3, rtb_y_p4, 2U); - - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read34' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' - */ - rtb_y_j5 = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_j5 - rtDW.AMB), - rtb_y_fe, rtb_y_p5, 2U); - - /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: - * DataStoreRead: '/Data Store Read35' - * Sum: '/2.5. X = Incar_Tg - Incar_fb' - */ - rtb_Gain2_ay = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_Gain2_ay - - rtDW.Incar_FL), rtb_y_b5, rtb_y_pu, 4U); - - /* Sum: '/2.8. Vtg_FX_plus' */ - rtb_Product_fy += (double)((rtb_y_cy + rtb_Gain2_ay) + rtb_y_j5); - - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' - */ - if (rtb_Product_fy > rtb_y_pc) { - rtb_Product_fy = rtb_y_pc; - } else if (rtb_Product_fy < rtb_y_lp) { - /* Switch: '/Switch' */ - rtb_Product_fy = rtb_y_lp; - } - - /* End of Switch: '/Switch2' */ - - /* DataTypeConversion: '/Data Type Conversion3' */ - rtb_FLU_tg_correct_o = fabs(rtb_Product_fy); - if (rtb_FLU_tg_correct_o < 4.503599627370496E+15) { - if (rtb_FLU_tg_correct_o >= 0.5) { - rtb_Product_fy = floor(rtb_Product_fy + 0.5); - } else { - rtb_Product_fy = 0.0; - } - } - - Comp_Max_RPM_Allowed = (uint8_t)(0.01 * (double)rtb_y_b2 * (double)(uint8_t) - rtb_Product_fy + (double)(uint8_t)rtb_Product_fy); + Blower_AF_FL = 0.01 * (double)rtb_y_b2 * (double)(uint8_t)rtb_Bias5 + + (double)(uint8_t)rtb_Bias5; } /* End of Switch: '/Switch' */ - /* Outputs for Enabled SubSystem: '/Front Right AF - manual directions' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Front Right AF - 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_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_Saturation2_a); + AFforDef(rtDW.CCU_BLOWERS_FR, &rtb_out_eu); - /* 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_d1m); + AFforFoorDef(rtDW.CCU_BLOWERS_FR, &rtb_out_aq0); - /* MATLAB Function: '/AF for Foot' incorporates: + /* MATLAB Function: '/AF for Foot' incorporates: * DataStoreRead: '/Data Store Read7' */ - AFforFoot(rtDW.CCU_BLOWERS_FR, &rtb_out_hvi); + AFforFoot(rtDW.CCU_BLOWERS_FR, &rtb_out_ddc); - /* 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_gr); + AFforHi_Level(rtDW.CCU_BLOWERS_FR, &rtb_out_p4); - /* 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_ni); + AFforVentmode(rtDW.CCU_BLOWERS_FR, &rtb_out_e5); - /* RelationalOperator: '/Relational Operator2' incorporates: - * Constant: '/Constant2' + /* RelationalOperator: '/Relational Operator2' incorporates: + * Constant: '/Constant2' * DataStoreRead: '/Data Store Read14' */ - rtb_is_ending_with_5 = (rtDW.CCU_FOOT_FR == 1); + rtb_LogicalOperator5 = (rtDW.CCU_FOOT_FR == 1); - /* DataTypeConversion: '/Data Type Conversion5' */ - rtb_DataTypeConversion2_bb = rtb_is_ending_with_5; + /* 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_is_ending_with_5 + (rtDW.CCU_DEF_FR == 1)) + (uint32_t)(rtb_LogicalOperator5 << 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_Saturation2_a; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_a = rtb_out_eu; break; case 2: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_a = rtb_out_ni; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_a = rtb_out_e5; break; case 3: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_a = rtb_out_gr; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_a = rtb_out_p4; break; case 4: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_a = rtb_out_hvi; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_a = rtb_out_ddc; break; case 5: - /* MultiPortSwitch: '/Multiport Switch' */ - rtB.MultiportSwitch_a = rtb_out_d1m; + /* MultiPortSwitch: '/Multiport Switch' */ + rtB.MultiportSwitch_a = rtb_out_aq0; 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' + */ + /* : y = g_ascAUTO_STEP_AF_F(AF_STEP); */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_MAX_LV0[i]; + } + + /* End of MultiPortSwitch: '/Multiport Switch1' */ /* Saturate: '/Saturation6' incorporates: * DataStoreRead: '/Data Store Read31' */ - /* : y = g_ascAUTO_STEP_AF_F(AF_STEP); */ if (rtDW.CCU_SET_FR > 290) { Gain1 = 290U; } else if (rtDW.CCU_SET_FR < 170) { @@ -13042,201 +12955,274 @@ void HVAC_model_step(void) /* End of Saturate: '/Saturation6' */ - /* Gain: '/Gain2' incorporates: - * Gain: '/Gain2' - */ - rtb_dt_ca = 52429U * Gain1; - rtb_y_pc = (int16_t)((uint32_t)((rtb_dt_ca & 262144U) != 0U) + (rtb_dt_ca >> - 19)); + /* Selector: '/Selector' */ + rtb_Bias5 = rtb_uDLookupTable7_g[6]; - /* MATLAB Function: '/Vtg_FX_plus_max' incorporates: - * Gain: '/Gain2' + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Lookup_n-D: '/1-D Lookup Table6' + * Saturate: '/Saturation6' */ - Vtg_FX_plus_max(rtb_y_pc, rtb_Saturation9, &rtb_y_cy); + rtb_MultiportSwitch1_h = look1_iu16lu64n48ts16Ds32_binlcs(Gain1, + rtConstP.pooled72, &g_assVTG_FR_LV0[0], 12U); - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(Gain1, &rtb_is_ending_with_5); - - /* MATLAB Function: '/2.3 Vtg_FRU' incorporates: - * Gain: '/Gain2' + /* 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' */ - /* : Vtg_FLU = [g_assVTG_FR_LV0; g_assVTG_FR_LV1; g_assVTG_FR_LV2; g_assVTG_FR_LV3; g_assVTG_FR_LV4; g_assVTG_FR_LV5]; */ - for (i = 0; i < 13; i++) { - FLU_tg[6 * i] = g_assVTG_FR_LV0[i]; - FLU_tg[6 * i + 1] = g_assVTG_FR_LV1[i]; - FLU_tg[6 * i + 2] = g_assVTG_FR_LV2[i]; - FLU_tg[6 * i + 3] = g_assVTG_FR_LV3[i]; - FLU_tg[6 * i + 4] = g_assVTG_FR_LV4[i]; - FLU_tg[6 * i + 5] = g_assVTG_FR_LV5[i]; + switch (rtb_Saturation9) { + case 0: + rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled51, &g_assINCAR_TG_FR_LV0[0], 12U); + break; + + case 1: + rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled51, &g_assINCAR_TG_FR_LV1[0], 12U); + break; + + case 2: + rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled51, &g_assINCAR_TG_FR_LV2[0], 12U); + break; + + case 3: + rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled51, &g_assINCAR_TG_FR_LV3[0], 12U); + break; + + case 4: + rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled51, &g_assINCAR_TG_FR_LV4[0], 12U); + break; + + default: + rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs(Gain1, + rtConstP.pooled51, &g_assINCAR_TG_FR_LV5[0], 12U); + break; } - /* : if set_has_half && (SET - 16 + 1 <= length(Vtg_FLU)) */ - if (rtb_is_ending_with_5 && (rtb_y_pc - 15 <= 13)) { - /* : y = (Vtg_FLU(LVL + 1, SET - 16) + Vtg_FLU(LVL + 1, SET - 16 + 1)) / 2; */ - i = FLU_tg[(rtb_y_pc - 17) * 6 + rtb_Saturation9] + FLU_tg[(rtb_y_pc - 16) * - 6 + rtb_Saturation9]; - if (i > 32767) { - i = 32767; - } else if (i < -32768) { - i = -32768; + /* End of MultiPortSwitch: '/Multiport Switch' */ + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_bp[0] = g_assVF_INC_Y1_LV0[6]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + */ + rtb_VectorConcatenate_bp[1] = g_assVF_INC_Y2_LV0[6]; + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_bp[2] = 0; + + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * MultiPortSwitch: '/Multiport Switch3' + */ + rtb_VectorConcatenate_bp[3] = g_assVF_INC_Y3_LV0[6]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + */ + rtb_VectorConcatenate_bp[4] = g_assVF_INC_Y4_LV0[6]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_j[0] = g_assVF_INC_X1_LV0[6]; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + */ + rtb_VectorConcatenate_j[1] = g_assVF_INC_X2_LV0[6]; + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_j[2] = 0; + + /* Selector: '/Selector2' incorporates: + * Constant: '/Constant14' + * MultiPortSwitch: '/Multiport Switch3' + */ + rtb_VectorConcatenate_j[3] = g_assVF_INC_X3_LV0[6]; + + /* Selector: '/Selector3' incorporates: + * Constant: '/Constant20' + * MultiPortSwitch: '/Multiport Switch4' + */ + rtb_VectorConcatenate_j[4] = g_assVF_INC_X4_LV0[6]; + + /* 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: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_e0[0] = g_assVF_AMB_Y1_LV0[6]; + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_e0[1] = 0; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + */ + rtb_VectorConcatenate_e0[2] = g_assVF_AMB_Y2_LV0[6]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_lg[0] = g_assVF_AMB_X1_LV0[6]; + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_lg[1] = 0; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + */ + rtb_VectorConcatenate_lg[2] = g_assVF_AMB_X2_LV0[6]; + + /* 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); + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_e0[0] = g_assVF_SUN_Y1_LV0[6]; + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_e0[1] = 0; + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + */ + rtb_VectorConcatenate_e0[2] = g_assVF_SUN_Y2_LV0[6]; + + /* Selector: '/Selector' incorporates: + * Constant: '/Constant' + * MultiPortSwitch: '/Multiport Switch1' + */ + rtb_VectorConcatenate_lg[0] = g_assVF_AMB_X1_LV0[6]; + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant24' + */ + rtb_VectorConcatenate_lg[1] = 0; + + /* MultiPortSwitch: '/Multiport Switch2' incorporates: + * Constant: '/Constant6' + */ + for (i = 0; i < 7; i++) { + rtb_uDLookupTable7_g[i] = g_assVF_AMB_X2_LV0[i]; + } + + /* Selector: '/Selector1' incorporates: + * Constant: '/Constant6' + * MultiPortSwitch: '/Multiport Switch2' + */ + rtb_VectorConcatenate_lg[2] = g_assVF_AMB_X2_LV0[6]; + + /* 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); + + /* 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); + + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + */ + if (rtb_FLU_tg_correct_g <= rtb_Bias5) { + /* MultiPortSwitch: '/Multiport Switch1' incorporates: + * Constant: '/Constant' + */ + for (i = 0; i < 7; i++) { + rtb_MultiportSwitch1[i] = g_assVF_MIN_LV0[i]; } - rtb_y_lp = (int16_t)rt_roundd((double)i / 2.0); - } else { - /* : else */ - /* : y = Vtg_FLU(LVL + 1, SET - 16); */ - rtb_y_lp = FLU_tg[(rtb_y_pc - 17) * 6 + rtb_Saturation9]; + /* End of MultiPortSwitch: '/Multiport Switch1' */ + + /* Switch: '/Switch' incorporates: + * RelationalOperator: '/UpperRelop' + * Selector: '/Selector' + */ + if (rtb_FLU_tg_correct_g < rtb_MultiportSwitch1[6]) { + rtb_Bias5 = rtb_MultiportSwitch1[6]; + } else { + rtb_Bias5 = rtb_FLU_tg_correct_g; + } + + /* End of Switch: '/Switch' */ } - /* End of MATLAB Function: '/2.3 Vtg_FRU' */ + /* End of Switch: '/Switch2' */ - /* MATLAB Function: '/2.1 Incar target Right' incorporates: - * Gain: '/Gain2' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreWrite: '/Data Store Write1' */ - u1Incartarget_l(rtb_y_pc, rtb_Saturation9, rtb_is_ending_with_5, &rtb_y_j5); - - /* MATLAB Function: '/Y1-Y4 для Vtg_FX_incar' incorporates: - * Gain: '/Gain2' - */ - Y1Y4Vtg_FX_incar(rtb_y_pc, rtb_Saturation9, rtb_y_b5); - - /* MATLAB Function: '/X1-X4 для Vtg_FX_incar' incorporates: - * Gain: '/Gain2' - */ - X1X4Vtg_FX_incar(rtb_y_pc, rtb_Saturation9, rtb_y_pu); - - /* MATLAB Function: '/Amb_Tg ' */ - Amb_Tg(rtb_Saturation9, &rtb_y_k2); - - /* MATLAB Function: '/Y1-Y4 для Vtg_FR_amb' incorporates: - * Gain: '/Gain2' - */ - Y1Y2Vtg_FL_amb(rtb_y_pc, rtb_Saturation9, rtb_y_p5); - - /* MATLAB Function: '/X1-X4 для Vtg_FR_amb' incorporates: - * Gain: '/Gain2' - * MATLAB Function: '/X1-X4 для Vtg_RX_amb' - */ - /* : all_lvl_x1 = [g_assVF_AMB_X1_LV0; g_assVF_AMB_X1_LV1; g_assVF_AMB_X1_LV2; g_assVF_AMB_X1_LV3; g_assVF_AMB_X1_LV4; g_assVF_AMB_X1_LV5]; */ - /* : all_lvl_x2 = [g_assVF_AMB_X2_LV0; g_assVF_AMB_X2_LV1; g_assVF_AMB_X2_LV2; g_assVF_AMB_X2_LV3; g_assVF_AMB_X2_LV4; g_assVF_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_assVF_AMB_X1_LV0[i]; - i_0 = 6 * i + 1; - tmp[i_0] = g_assVF_AMB_X1_LV1[i]; - rtb_Gain_pl = 6 * i + 2; - tmp[rtb_Gain_pl] = g_assVF_AMB_X1_LV2[i]; - rtb_Gain4 = 6 * i + 3; - tmp[rtb_Gain4] = g_assVF_AMB_X1_LV3[i]; - rtb_Gain5 = 6 * i + 4; - tmp[rtb_Gain5] = g_assVF_AMB_X1_LV4[i]; - rtb_Gain2 = 6 * i + 5; - tmp[rtb_Gain2] = g_assVF_AMB_X1_LV5[i]; - tmp_0[6 * i] = g_assVF_AMB_X2_LV0[i]; - tmp_0[i_0] = g_assVF_AMB_X2_LV1[i]; - tmp_0[rtb_Gain_pl] = g_assVF_AMB_X2_LV2[i]; - tmp_0[rtb_Gain4] = g_assVF_AMB_X2_LV3[i]; - tmp_0[rtb_Gain5] = g_assVF_AMB_X2_LV4[i]; - tmp_0[rtb_Gain2] = g_assVF_AMB_X2_LV5[i]; - } - - rtb_y_cc_tmp = ((int32_t)trunc((((double)rtb_y_pc - 16.0) + 1.0) / 2.0) - 1) * - 6 + rtb_Saturation9; - rtb_y_j3[0] = tmp[rtb_y_cc_tmp]; - rtb_y_j3[1] = 0; - rtb_y_j3[2] = tmp_0[rtb_y_cc_tmp]; - - /* End of MATLAB Function: '/X1-X4 для Vtg_FR_amb' */ - - /* MATLAB Function: '/Y1-Y4 для Vtg_FX_sun' incorporates: - * Gain: '/Gain2' - */ - Y1Y2Vtg_FX_sun(rtb_y_pc, rtb_Saturation9, rtb_y_fe); - - /* MATLAB Function: '/X1-X4 для Vtg_FX_sun' incorporates: - * Gain: '/Gain2' - */ - X1X2Vtg_FX_sun(rtb_y_pc, rtb_Saturation9, rtb_y_p4); - - /* MATLAB Function: '/FXU_tg_min' incorporates: - * Gain: '/Gain2' - */ - Vtg_FX_plus_min(rtb_y_pc, rtb_Saturation9, &rtb_Gain2_ay); + rtb_Switch3_ed = (uint8_t)rtb_Bias5; /* Switch: '/Switch1' incorporates: * Constant: '/manual1' - * DataStoreRead: '/Data Store Read' + * 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' + * DataTypeConversion: '/Data Type Conversion2' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * MATLAB Function: '/func g_ascAUTO_STEP_AF_F' + * Product: '/Product' * RelationalOperator: '/Equal2' - * Sum: '/Add' + * Sum: '/Add' */ if (rtDW.CCU_MODE_FR == 0) { - rtb_Switch3_ed = (uint8_t)rtB.MultiportSwitch_a; + Blower_AF_FR = (uint8_t)rtB.MultiportSwitch_a; } else { - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read41' - */ - rtb_Product_fy = look1_bs16ts16DdId_binlc(rtDW.Sun_R, rtb_y_p4, rtb_y_fe, 2U); - - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: - * DataStoreRead: '/Data Store Read34' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' - */ - rtb_y_k2 = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_k2 - rtDW.AMB), - rtb_y_j3, rtb_y_p5, 2U); - - /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: - * DataStoreRead: '/Data Store Read36' - * Sum: '/2.5. X = Inc_Tg - Incar_fb' - */ - rtb_y_j5 = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_j5 - rtDW.Incar_FR), - rtb_y_pu, rtb_y_b5, 4U); - - /* Sum: '/FLU_tg_correct' */ - rtb_Product_fy += (double)((rtb_y_lp + rtb_y_j5) + rtb_y_k2); - - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' - */ - if (rtb_Product_fy > rtb_y_cy) { - rtb_Product_fy = rtb_y_cy; - } else if (rtb_Product_fy < rtb_Gain2_ay) { - /* Switch: '/Switch' */ - rtb_Product_fy = rtb_Gain2_ay; - } - - /* End of Switch: '/Switch2' */ - - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_FLU_tg_correct_o = fabs(rtb_Product_fy); - if (rtb_FLU_tg_correct_o < 4.503599627370496E+15) { - if (rtb_FLU_tg_correct_o >= 0.5) { - rtb_Product_fy = floor(rtb_Product_fy + 0.5); - } else { - rtb_Product_fy = 0.0; - } - } - - rtb_Switch3_ed = (uint8_t)((double)g_ascAUTO_STEP_AF_F[rtDW.CCU_AUTOMODE_FR - - 1] * 0.01 * (double)(uint8_t)rtb_Product_fy + (double)(uint8_t) - rtb_Product_fy); + 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; } /* End of Switch: '/Switch1' */ - /* Outputs for Enabled SubSystem: '/Rear Left AF - manual directions' */ - /* RelationalOperator: '/Equal2' incorporates: - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read44' + /* 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' @@ -13244,62 +13230,109 @@ 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' */ - /* MATLAB Function: '/Vtg_RX_plus_max' */ + /* Saturate: '/Saturation7' incorporates: + * DataStoreRead: '/Data Store Read32' + */ /* : y = g_ascAUTO_STEP_AF_R(AF_STEP); */ - Vtg_RX_plus_max(rtb_Merge1, rtb_Saturation9, &rtb_y_cy); + if (rtDW.CCU_SET_RL > 290) { + rtb_out_eu = 290U; + } else if (rtDW.CCU_SET_RL < 170) { + rtb_out_eu = 170U; + } else { + rtb_out_eu = rtDW.CCU_SET_RL; + } - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(Gain, &rtb_is_ending_with_5); + /* End of Saturate: '/Saturation7' */ - /* MATLAB Function: '/2.3 Vtg_RL' */ + /* 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' + */ /* : 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++) { - FLU_tg[6 * i] = g_assVTG_RL_LV0[i]; - FLU_tg[6 * i + 1] = g_assVTG_RL_LV1[i]; - FLU_tg[6 * i + 2] = g_assVTG_RL_LV2[i]; - FLU_tg[6 * i + 3] = g_assVTG_RL_LV3[i]; - FLU_tg[6 * i + 4] = g_assVTG_RL_LV4[i]; - FLU_tg[6 * i + 5] = g_assVTG_RL_LV5[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]; } /* : if set_has_half && (SET - 16 + 1 <= length(Vtg_RLU)) */ - if (rtb_is_ending_with_5 && (rtb_Merge1 - 15 <= 13)) { + 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 = FLU_tg[(rtb_Merge1 - 17) * 6 + rtb_Saturation9] + FLU_tg[(rtb_Merge1 - - 16) * 6 + rtb_Saturation9]; + 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; } - rtb_y_lp = (int16_t)rt_roundd((double)i / 2.0); + rtb_Bias5 = (int16_t)rt_roundd((double)i / 2.0); } else { /* : else */ /* : y = Vtg_RLU(LVL + 1, SET - 16); */ - rtb_y_lp = FLU_tg[(rtb_Merge1 - 17) * 6 + rtb_Saturation9]; + rtb_Bias5 = Vtg_RLU[(rtb_y_fe - 17) * 6 + rtb_Saturation9]; } - /* End of MATLAB Function: '/2.3 Vtg_RL' */ + /* End of MATLAB Function: '/2.3 Vtg_RL' */ - /* MATLAB Function: '/2.1 Incar target Left' */ - u1Incartarget_e(rtb_Merge1, rtb_Saturation9, rtb_is_ending_with_5, &rtb_y_j5); + /* 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]; + } - /* MATLAB Function: '/Y1-Y4 для Vtg_FX_incar' */ - Y1Y4Vtg_FX_incar_o(rtb_Merge1, rtb_Saturation9, rtb_y_b5); + /* : 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; + } - /* MATLAB Function: '/X1-X4 для Vtg_FX_incar' */ - X1X4Vtg_FX_incar_o(rtb_Merge1, rtb_Saturation9, rtb_y_pu); + 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]; + } - /* MATLAB Function: '/Amb_Tg ' */ - Amb_Tg(rtb_Saturation9, &rtb_y_k2); + /* MATLAB Function: '/Y1-Y4 для Vtg_FX_incar' */ + Y1Y4Vtg_FX_incar(rtb_y_fe, rtb_Saturation9, rtb_VectorConcatenate_j); - /* MATLAB Function: '/Y1-Y2 для Vtg_RL_amb' */ - Y1Y2Vtg_RL_amb(rtb_Merge1, rtb_Saturation9, rtb_y_p5); + /* MATLAB Function: '/X1-X4 для Vtg_FX_incar' */ + X1X4Vtg_FX_incar(rtb_y_fe, rtb_Saturation9, rtb_VectorConcatenate_bp); - /* MATLAB Function: '/X1-X2 для Vtg_RL_amb' */ + /* MATLAB Function: '/Amb_Tg ' */ + Amb_Tg(rtb_Saturation9, &rtb_y_lg); + + /* MATLAB Function: '/Y1-Y2 для Vtg_RL_amb' */ + Y1Y2Vtg_RL_amb(rtb_y_fe, rtb_Saturation9, rtb_VectorConcatenate_lg); + + /* 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))]; */ @@ -13323,94 +13356,100 @@ void HVAC_model_step(void) tmp_0[rtb_Gain2] = g_assVR_AMB_X2_LV5[i]; } - rtb_y_j3[0] = tmp[rtb_Gain3]; - rtb_y_j3[1] = 0; - rtb_y_j3[2] = tmp_0[rtb_Gain3]; + 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]; - /* MATLAB Function: '/Y1-Y2 для Vtg_RX_sun' */ - Y1Y2Vtg_RX_sun(rtb_Merge1, rtb_Saturation9, rtb_y_fe); + /* End of MATLAB Function: '/X1-X2 для Vtg_RL_amb' */ - /* MATLAB Function: '/X1-X2 для Vtg_FX_sun' */ - X1X2Vtg_FX_sun_p(rtb_Merge1, rtb_Saturation9, rtb_y_p4); + /* MATLAB Function: '/Y1-Y2 для Vtg_RX_sun' */ + Y1Y2Vtg_RX_sun(rtb_y_fe, rtb_Saturation9, rtb_VectorConcatenate_bl); - /* MATLAB Function: '/Vtg_RX_plus_min' */ - Vtg_RX_plus_min(rtb_Merge1, rtb_Saturation9, &rtb_Gain2_ay); + /* MATLAB Function: '/X1-X2 для Vtg_FX_sun' */ + X1X2Vtg_FX_sun(rtb_y_fe, rtb_Saturation9, rtb_VectorConcatenate_km); + + /* MATLAB Function: '/Vtg_RX_plus_min' */ + Vtg_RX_plus_min(rtb_y_fe, rtb_Saturation9, &rtb_y_h5); /* Switch: '/Switch2' incorporates: * Constant: '/manual2' - * DataStoreRead: '/Data Store Read' + * 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' + * 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' * RelationalOperator: '/Equal3' - * Sum: '/Add' + * Sum: '/Add' */ if (rtDW.CCU_MODE_RL == 0) { Blower_AF_RL = (uint8_t)rtB.MultiportSwitch_j; } else { - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: + /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: * DataStoreRead: '/Data Store Read39' */ - rtb_Product_fy = look1_bs16ts16DdId_binlc(rtDW.Sun_L, rtb_y_p4, rtb_y_fe, 2U); + rtb_u8Vtg_FX_plus = look1_bs16ts16DdId_binlc(rtDW.Sun_L, + rtb_VectorConcatenate_km, rtb_VectorConcatenate_bl, 2U); - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: + /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: * DataStoreRead: '/Data Store Read34' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + * Sum: '/2.6. X = Amb_Tg - Amb_Fb' */ - rtb_Merge1 = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_k2 - rtDW.AMB), - rtb_y_j3, rtb_y_p5, 2U); + rtb_y_fe = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_lg - rtDW.AMB), + rtb_VectorConcatenate_e0, rtb_VectorConcatenate_lg, 2U); - /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: + /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: * DataStoreRead: '/Data Store Read37' - * Sum: '/2.5. X = Incar_Tg - Incar_fb' + * Sum: '/2.5. X = Incar_Tg - Incar_fb' */ - rtb_y_j5 = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_j5 - rtDW.Incar_RL), - rtb_y_pu, rtb_y_b5, 4U); + 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); - /* Sum: '/2.8. Vtg_FX_plus' */ - rtb_Product_fy += (double)((rtb_y_lp + rtb_y_j5) + rtb_Merge1); + /* Sum: '/2.8. Vtg_FX_plus' */ + rtb_u8Vtg_FX_plus += (double)((rtb_Bias5 + rtb_FLU_tg_correct_g) + rtb_y_fe); - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ - if (rtb_Product_fy > rtb_y_cy) { - rtb_Product_fy = rtb_y_cy; - } else if (rtb_Product_fy < rtb_Gain2_ay) { - /* Switch: '/Switch' */ - rtb_Product_fy = rtb_Gain2_ay; + 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; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* DataTypeConversion: '/Data Type Conversion2' */ - rtb_FLU_tg_correct_o = fabs(rtb_Product_fy); - if (rtb_FLU_tg_correct_o < 4.503599627370496E+15) { - if (rtb_FLU_tg_correct_o >= 0.5) { - rtb_Product_fy = floor(rtb_Product_fy + 0.5); + /* 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_Product_fy = 0.0; + rtb_u8Vtg_FX_plus = 0.0; } } Blower_AF_RL = (uint8_t)((double)g_ascAUTO_STEP_AF_R[(int8_t) - rtDW.CCU_AUTOMODE_RL - 1] * 0.01 * (double)(uint8_t)rtb_Product_fy + - (double)(uint8_t)rtb_Product_fy); + rtDW.CCU_AUTOMODE_RL - 1] * 0.01 * (double)(uint8_t)rtb_u8Vtg_FX_plus + + (double)(uint8_t)rtb_u8Vtg_FX_plus); } /* End of Switch: '/Switch2' */ - /* 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' @@ -13418,67 +13457,114 @@ 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); - /* MATLAB Function: '/Vtg_RX_plus_max' */ - Vtg_RX_plus_max(rtb_y_pc, rtb_Saturation9, &rtb_Merge1); + /* Saturate: '/Saturation8' incorporates: + * DataStoreRead: '/Data Store Read33' + */ + if (rtDW.CCU_SET_RR > 290) { + rtb_out_eu = 290U; + } else if (rtDW.CCU_SET_RR < 170) { + rtb_out_eu = 170U; + } else { + rtb_out_eu = rtDW.CCU_SET_RR; + } - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(Gain1, &rtb_is_ending_with_5); + /* End of Saturate: '/Saturation8' */ - /* MATLAB Function: '/2.3 Vtg_RR' */ + /* 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' + */ /* : 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++) { - FLU_tg[6 * i] = g_assVTG_RR_LV0[i]; - FLU_tg[6 * i + 1] = g_assVTG_RR_LV1[i]; - FLU_tg[6 * i + 2] = g_assVTG_RR_LV2[i]; - FLU_tg[6 * i + 3] = g_assVTG_RR_LV3[i]; - FLU_tg[6 * i + 4] = g_assVTG_RR_LV4[i]; - FLU_tg[6 * i + 5] = g_assVTG_RR_LV5[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]; } /* : if set_has_half && (SET - 16 + 1 <= length(Vtg_RR)) */ - if (rtb_is_ending_with_5 && (rtb_y_pc - 15 <= 13)) { + 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 = FLU_tg[(rtb_y_pc - 17) * 6 + rtb_Saturation9] + FLU_tg[(rtb_y_pc - 16) * - 6 + rtb_Saturation9]; + 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; } - rtb_y_lp = (int16_t)rt_roundd((double)i / 2.0); + rtb_Bias5 = (int16_t)rt_roundd((double)i / 2.0); } else { /* : else */ /* : y = Vtg_RR(LVL + 1, SET - 16); */ - rtb_y_lp = FLU_tg[(rtb_y_pc - 17) * 6 + rtb_Saturation9]; + rtb_Bias5 = Vtg_RLU[(rtb_y_bf - 17) * 6 + rtb_Saturation9]; } - /* End of MATLAB Function: '/2.3 Vtg_RR' */ + /* End of MATLAB Function: '/2.3 Vtg_RR' */ - /* MATLAB Function: '/2.1 Incar target Rear Right' */ - u1Incartarget_p(rtb_y_pc, rtb_Saturation9, rtb_is_ending_with_5, &rtb_Gain2_ay); + /* 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]; + } - /* MATLAB Function: '/Y1-Y4 для Vtg_RX_incar' */ - Y1Y4Vtg_FX_incar_o(rtb_y_pc, rtb_Saturation9, rtb_y_b5); + /* : 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; + } - /* MATLAB Function: '/X1-X4 для Vtg_RX_incar' */ - X1X4Vtg_FX_incar_o(rtb_y_pc, rtb_Saturation9, rtb_y_pu); + 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]; + } - /* MATLAB Function: '/Amb_Tg ' */ - Amb_Tg(rtb_Saturation9, &rtb_y_j5); + /* MATLAB Function: '/Y1-Y4 для Vtg_RX_incar' */ + Y1Y4Vtg_FX_incar(rtb_y_bf, rtb_Saturation9, rtb_VectorConcatenate_j); - /* MATLAB Function: '/Y1-Y4 для Vtg_RX_amb' */ - Y1Y2Vtg_RL_amb(rtb_y_pc, rtb_Saturation9, rtb_y_p5); + /* MATLAB Function: '/X1-X4 для Vtg_RX_incar' */ + X1X4Vtg_FX_incar(rtb_y_bf, rtb_Saturation9, rtb_VectorConcatenate_bp); - /* MATLAB Function: '/X1-X4 для Vtg_RX_amb' */ + /* 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))]; */ @@ -13502,80 +13588,107 @@ void HVAC_model_step(void) tmp_0[rtb_Gain2] = g_assVR_AMB_X2_LV5[i]; } - rtb_y_j3[0] = tmp[rtb_y_cc_tmp]; - rtb_y_j3[1] = 0; - rtb_y_j3[2] = tmp_0[rtb_y_cc_tmp]; + 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]; - /* MATLAB Function: '/Y1-Y4 для Vtg_RX_sun' */ - Y1Y2Vtg_RX_sun(rtb_y_pc, rtb_Saturation9, rtb_y_fe); + /* End of MATLAB Function: '/X1-X4 для Vtg_RX_amb' */ - /* MATLAB Function: '/X1-X4 для Vtg_RX_sun' */ - X1X2Vtg_FX_sun_p(rtb_y_pc, rtb_Saturation9, rtb_y_p4); + /* MATLAB Function: '/Y1-Y4 для Vtg_RX_sun' */ + Y1Y2Vtg_RX_sun(rtb_y_bf, rtb_Saturation9, rtb_VectorConcatenate_bl); - /* MATLAB Function: '/Vtg_RX_plus_min' */ - Vtg_RX_plus_min(rtb_y_pc, rtb_Saturation9, &rtb_y_cy); + /* 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: * Constant: '/manual3' * DataStoreRead: '/Data Store Read3' * DataStoreWrite: '/Data Store Write22' - * DataTypeConversion: '/Data Type Conversion5' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion1' - * Gain: '/Gain' - * Product: '/Product' + * DataTypeConversion: '/Data Type Conversion5' + * DataTypeConversion: '/Data Type Conversion' + * DataTypeConversion: '/Data Type Conversion1' + * Gain: '/Gain' + * Product: '/Product' * RelationalOperator: '/Equal4' - * Sum: '/Add' + * Sum: '/Add' */ if (rtDW.CCU_MODE_RR == 0) { rtb_Saturation9 = (uint8_t)rtB.MultiportSwitch_of; } else { - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: + /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: * DataStoreRead: '/Data Store Read41' */ - rtb_FLU_tg_correct_o = look1_bs16ts16DdId_binlc(rtDW.Sun_R, rtb_y_p4, - rtb_y_fe, 2U); + rtb_u8Vtg_FX_plus = look1_bs16ts16DdId_binlc(rtDW.Sun_R, + rtb_VectorConcatenate_km, rtb_VectorConcatenate_bl, 2U); - /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: + /* Lookup_n-D: '/2.6 FLU_tg_amb' incorporates: * DataStoreRead: '/Data Store Read34' - * Sum: '/2.6. X = Amb_Tg - Amb_Fb' + * Sum: '/2.6. X = Amb_Tg - Amb_Fb' */ - rtb_y_pc = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_j5 - rtDW.AMB), - rtb_y_j3, rtb_y_p5, 2U); + rtb_y_bf = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_y_ck - rtDW.AMB), + rtb_VectorConcatenate_e0, rtb_VectorConcatenate_lg, 2U); - /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: + /* Lookup_n-D: '/2.5 FLU_tg_incar' incorporates: * DataStoreRead: '/Data Store Read38' - * Sum: '/2.5. X = Inc_Tg - Incar_fb' + * Sum: '/2.5. X = Inc_Tg - Incar_fb' */ - rtb_Gain2_ay = look1_is16lu64n32Ds32_binlcn((int16_t)(rtb_Gain2_ay - - rtDW.Incar_RR), rtb_y_pu, rtb_y_b5, 4U); + 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); - /* Sum: '/FLU_tg_correct' */ - rtb_y_pc = (int16_t)floor((double)((rtb_y_lp + rtb_Gain2_ay) + rtb_y_pc) + - rtb_FLU_tg_correct_o); + /* Sum: '/FLU_tg_correct' */ + rtb_Bias5 = (int16_t)floor((double)((rtb_Bias5 + rtb_FLU_tg_correct_g) + + rtb_y_bf) + rtb_u8Vtg_FX_plus); - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ - if (rtb_y_pc > rtb_Merge1) { - rtb_y_pc = rtb_Merge1; - } else if (rtb_y_pc < rtb_y_cy) { - /* Switch: '/Switch' */ - rtb_y_pc = rtb_y_cy; + 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; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ rtb_Saturation9 = (uint8_t)(0.01 * (double)rtb_y_b2 * (double)(uint8_t) - rtb_y_pc + (double)(uint8_t)rtb_y_pc); + rtb_Bias5 + (double)(uint8_t)rtb_Bias5); } /* End of Switch: '/Switch3' */ + /* MATLAB Function: '/is_ending_with_5' */ + is_ending_with_5(Gain, &rtb_LogicalOperator5); + + /* 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]; */ + /* : disp('all correction rate:') */ + /* : disp(correct_rate) */ + /* : y = correct_rate(LVL + 1, idivide(SET - 16 + 1, 2)); */ + /* : disp('correction rate:') */ + /* : 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); + /* MATLAB Function: '/MATLAB Function1' incorporates: * DataStoreWrite: '/Data Store Write29' */ + /* : 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]; */ + /* : 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)); */ /* : IDLE = uint8(0); */ /* : LO_RIGHT = uint8(1); */ /* : HI_RIGHT = uint8(8); */ @@ -13588,8 +13701,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; */ @@ -13604,7 +13717,7 @@ 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_m4 = ((rtDW.LO_HI_MODE_FL == 1) && (rtDW.LO_HI_MODE_FR == 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)); /* : if is_HI_4zone */ @@ -13613,9 +13726,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; @@ -13632,7 +13745,7 @@ void HVAC_model_step(void) /* : elseif FR == 2 */ /* : CAN_LoHi_Front = HI_RIGHT; */ rtDW.CAN_LoHi_Front = 8U; - } else if (rtb_Compare_m4) { + } else if (rtb_Compare_dq) { /* : elseif is_LO_4zone */ /* : CAN_LoHi_Front = LO_4ZONE; */ rtDW.CAN_LoHi_Front = 22U; @@ -13651,50 +13764,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_m4) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + } else if (rtb_Compare_dq) { + /* 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; */ @@ -13780,8 +13893,8 @@ void HVAC_model_step(void) rtDW.CCU_REAR_SYNC = 0U; rtDW.CCU_ALL_ZONE_SYNC = 1U; - /* : sf_internal_predicateOutput = disable_front_sync; */ - if (rtDW.disable_front_sync != 0) { + /* : 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; @@ -13912,10 +14025,14 @@ void HVAC_model_step(void) /* : sync_all = 0; */ rtDW.CCU_ALL_ZONE_SYNC = 0U; - /* : sf_internal_predicateOutput = disable_rear_sync; */ - } else if (rtDW.disable_rear_sync != 0) { + /* : 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_NO_SYNC; /* : sync_front = 0; */ @@ -13969,10 +14086,14 @@ void HVAC_model_step(void) /* : sync_all = 0; */ rtDW.CCU_ALL_ZONE_SYNC = 0U; - /* : sf_internal_predicateOutput = disable_front_sync; */ - } else if (rtDW.disable_front_sync != 0) { + /* : sf_internal_predicateOutput = disable_front_sync || changed_FR_params; */ + } 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; /* : sf_internal_predicateOutput = changed_FR_params; */ @@ -14039,69 +14160,69 @@ void HVAC_model_step(void) /* 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' + /* DataTypeConversion: '/Data Type Conversion5' incorporates: + * Constant: '/Constant2' * DataStoreRead: '/Data Store Read10' - * RelationalOperator: '/Relational Operator2' + * RelationalOperator: '/Relational Operator2' */ - rtb_DataTypeConversion2_bb = (uint8_t)(rtDW.CCU_FOOT_FL == 1); + rtb_Switch_gs = (uint8_t)(rtDW.CCU_FOOT_FL == 1); - /* MATLAB Function: '/Valves for Def' */ - ValvesforDef(rtb_out_cc); + /* MATLAB Function: '/Valves for Def' */ + ValvesforDef(rtb_out_dwb); - /* MATLAB Function: '/Valves for Hi_Level' */ + /* MATLAB Function: '/Valves for Hi_Level' */ /* : out = g_ausFLOW_FR_VE2VALVE; */ - ValvesforHi_Level(rtb_out_dy); + ValvesforHi_Level(rtb_out_ff); - /* MATLAB Function: '/Valves for Foot + Def' */ + /* MATLAB Function: '/Valves for Foot + Def' */ /* : out = g_ausFLOW_FR_FO2VALVE; */ - ValvesforFootDef(rtb_out_c); + ValvesforFootDef(rtb_out_fw); - /* MATLAB Function: '/Valves for Bi Level' */ - ValvesforBiLevel(rtb_out_bn); + /* MATLAB Function: '/Valves for Bi Level' */ + ValvesforBiLevel(rtb_out_c); - /* MATLAB Function: '/Valves for Tri-Level' */ + /* MATLAB Function: '/Valves for Tri-Level' */ ValvesforTriLevel(rtB.MultiportSwitch_f); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* 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' + * 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_DataTypeConversion2_bb << 2))) { + (rtDW.CCU_DEF_FL == 1)) + (uint32_t)(rtb_Switch_gs << 2))) + { 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' */ for (i = 0; i < 9; i++) { - rtB.MultiportSwitch_f[i] = rtb_out_cc[i]; + rtB.MultiportSwitch_f[i] = rtb_out_dwb[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]; @@ -14109,15 +14230,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_dy[i]; + rtB.MultiportSwitch_f[i] = rtb_out_ff[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]; @@ -14125,31 +14246,31 @@ 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_c[i]; + rtB.MultiportSwitch_f[i] = rtb_out_fw[i]; } break; case 6: - /* MultiPortSwitch: '/Multiport Switch' */ + /* MultiPortSwitch: '/Multiport Switch' */ for (i = 0; i < 9; i++) { - rtB.MultiportSwitch_f[i] = rtb_out_bn[i]; + rtB.MultiportSwitch_f[i] = rtb_out_c[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' */ - rtb_Compare_ot = (rtDW.CCU_MODE_FL == 0); + rtb_LogicalOperator5 = (rtDW.CCU_MODE_FL == 0); /* Saturate: '/Saturation4' incorporates: * DataStoreRead: '/Data Store Read' @@ -14166,21 +14287,21 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read16' */ if (rtDW.CCU_SET_FL > 290) { - rtb_Saturation2_a = 290U; + Gain = 290U; } else if (rtDW.CCU_SET_FL < 170) { - rtb_Saturation2_a = 170U; + Gain = 170U; } else { - rtb_Saturation2_a = rtDW.CCU_SET_FL; + Gain = rtDW.CCU_SET_FL; } - /* MATLAB Function: '/MODE_for_set_and_lvl' incorporates: - * Gain: '/Gain2' + /* MATLAB Function: '/MODE_for_set_and_lvl' incorporates: + * Gain: '/Gain2' * Saturate: '/Saturation' */ - MODE_for_set_and_lvl(rtb_Saturation4_l, (int16_t)((52429U * rtb_Saturation2_a) - >> 19), &rtb_DataTypeConversion2_bb); + MODE_for_set_and_lvl(rtb_Saturation4_l, (int16_t)((52429U * Gain) >> 19), + &rtb_Switch_gs); - /* MATLAB Function: '/valves_front_left' */ + /* MATLAB Function: '/valves_front_left' */ /* : modes_array = [ */ /* : g_ausFLOW_FR_VE2VALVE; */ /* : g_ausFLOW_FR_BIVALVE; */ @@ -14189,64 +14310,64 @@ 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_DataTypeConversion2_bb / 10.0); + i = (int32_t)trunc((double)rtb_Switch_gs / 10.0); for (i_0 = 0; i_0 < 9; i_0++) { - tmp_3[5 * i_0] = g_ausFLOW_FR_VE2VALVE[i_0]; - tmp_3[5 * i_0 + 1] = g_ausFLOW_FR_BIVALVE[i_0]; - tmp_3[5 * i_0 + 2] = g_ausFLOW_FR_BI2VALVE[i_0]; - tmp_3[5 * i_0 + 3] = g_ausFLOW_FR_AF2VALVE[i_0]; - tmp_3[5 * i_0 + 4] = g_ausFLOW_FR_AF2VALVE_SUMMER[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]; /* Switch: '/Switch' */ - if (rtb_Compare_ot) { + if (rtb_LogicalOperator5) { /* DataStoreWrite: '/Data Store Write23' incorporates: - * MultiPortSwitch: '/Multiport Switch' + * MultiPortSwitch: '/Multiport Switch' */ - rtb_out_cc[i_0] = rtB.MultiportSwitch_f[i_0]; + rtb_out_dwb[i_0] = rtB.MultiportSwitch_f[i_0]; } else { /* DataStoreWrite: '/Data Store Write23' */ - rtb_out_cc[i_0] = tmp_3[(5 * i_0 + i) - 1]; + rtb_out_dwb[i_0] = tmp_1[(5 * i_0 + i) - 1]; } /* End of Switch: '/Switch' */ } - /* End of MATLAB Function: '/valves_front_left' */ + /* End of MATLAB Function: '/valves_front_left' */ - /* MATLAB Function: '/Valves for Def' */ - ValvesforDef(rtb_out_dy); + /* MATLAB Function: '/Valves for Def' */ + ValvesforDef(rtb_out_ff); - /* MATLAB Function: '/Valves for Hi_Level' */ + /* MATLAB Function: '/Valves for Hi_Level' */ /* : out = g_ausFLOW_FR_VE2VALVE; */ - ValvesforHi_Level(rtb_out_c); + ValvesforHi_Level(rtb_out_fw); - /* MATLAB Function: '/Valves for Foot + Def' */ + /* MATLAB Function: '/Valves for Foot + Def' */ /* : out = g_ausFLOW_FR_FO2VALVE; */ - ValvesforFootDef(rtb_out_bn); + ValvesforFootDef(rtb_out_c); - /* MATLAB Function: '/Valves for Bi Level' */ - ValvesforBiLevel(rtb_out_hu); + /* MATLAB Function: '/Valves for Bi Level' */ + ValvesforBiLevel(rtb_out_f1); - /* MATLAB Function: '/Valves for Tri-Level' */ - ValvesforTriLevel(rtb_out_g4h); + /* MATLAB Function: '/Valves for Tri-Level' */ + ValvesforTriLevel(rtb_out_fl); /* Saturate: '/Saturation1' incorporates: * DataStoreRead: '/Data Store Read17' */ if (rtDW.CCU_SET_FR > 290) { - rtb_Saturation2_a = 290U; + Gain = 290U; } else if (rtDW.CCU_SET_FR < 170) { - rtb_Saturation2_a = 170U; + Gain = 170U; } else { - rtb_Saturation2_a = rtDW.CCU_SET_FR; + Gain = rtDW.CCU_SET_FR; } - /* MATLAB Function: '/MODE_for_set_and_lvl1' incorporates: - * Gain: '/Gain1' + /* MATLAB Function: '/MODE_for_set_and_lvl1' incorporates: + * Gain: '/Gain1' * Saturate: '/Saturation1' */ - MODE_for_set_and_lvl(rtb_Saturation4_l, (int16_t)((52429U * rtb_Saturation2_a) - >> 19), &rtb_DataTypeConversion2_bb); + MODE_for_set_and_lvl(rtb_Saturation4_l, (int16_t)((52429U * Gain) >> 19), + &rtb_Switch_gs); /* Switch: '/Switch1' incorporates: * Constant: '/manual1' @@ -14262,19 +14383,19 @@ void HVAC_model_step(void) /* : 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' + /* 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' + * 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 == @@ -14282,141 +14403,141 @@ void HVAC_model_step(void) case 0: /* Switch: '/Switch1' */ for (i = 0; i < 9; i++) { - rtb_out_g4h[i] = 0U; + rtb_out_fl[i] = 0U; } break; case 1: /* Switch: '/Switch1' */ for (i = 0; i < 9; i++) { - rtb_out_g4h[i] = rtb_out_dy[i]; + rtb_out_fl[i] = rtb_out_ff[i]; } break; case 2: /* Switch: '/Switch1' incorporates: - * MATLAB Function: '/Valves for Vent mode' + * MATLAB Function: '/Valves for Vent mode' */ for (i = 0; i < 9; i++) { - rtb_out_g4h[i] = g_ausFLOW_FR_VE2VALVE[i]; + rtb_out_fl[i] = g_ausFLOW_FR_VE2VALVE[i]; } break; case 3: /* Switch: '/Switch1' */ for (i = 0; i < 9; i++) { - rtb_out_g4h[i] = rtb_out_c[i]; + rtb_out_fl[i] = rtb_out_fw[i]; } break; case 4: /* Switch: '/Switch1' incorporates: - * MATLAB Function: '/Valves for Foot' + * MATLAB Function: '/Valves for Foot' */ for (i = 0; i < 9; i++) { - rtb_out_g4h[i] = g_ausFLOW_FR_FO2VALVE[i]; + rtb_out_fl[i] = g_ausFLOW_FR_FO2VALVE[i]; } break; case 5: /* Switch: '/Switch1' */ for (i = 0; i < 9; i++) { - rtb_out_g4h[i] = rtb_out_bn[i]; + rtb_out_fl[i] = rtb_out_c[i]; } break; case 6: /* Switch: '/Switch1' */ for (i = 0; i < 9; i++) { - rtb_out_g4h[i] = rtb_out_hu[i]; + rtb_out_fl[i] = rtb_out_f1[i]; } break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ } else { - /* MATLAB Function: '/valves_front_right' incorporates: + /* MATLAB Function: '/valves_front_right' incorporates: * Switch: '/Switch1' */ - i = (int32_t)trunc((double)rtb_DataTypeConversion2_bb / 10.0); + i = (int32_t)trunc((double)rtb_Switch_gs / 10.0); for (i_0 = 0; i_0 < 9; i_0++) { - tmp_3[5 * i_0] = g_ausFLOW_FR_VE2VALVE[i_0]; - tmp_3[5 * i_0 + 1] = g_ausFLOW_FR_BIVALVE[i_0]; - tmp_3[5 * i_0 + 2] = g_ausFLOW_FR_BI2VALVE[i_0]; - tmp_3[5 * i_0 + 3] = g_ausFLOW_FR_AF2VALVE[i_0]; - tmp_3[5 * i_0 + 4] = g_ausFLOW_FR_AF2VALVE_SUMMER[i_0]; - rtb_out_g4h[i_0] = tmp_3[(5 * i_0 + i) - 1]; + 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 MATLAB Function: '/valves_front_right' */ } /* End of Switch: '/Switch1' */ - /* Assignment: '/Присваивание в [3-4]' incorporates: + /* Assignment: '/Присваивание в [3-4]' incorporates: * DataStoreWrite: '/Data Store Write23' */ - rtb_out_cc[2] = rtb_out_g4h[2]; + rtb_out_dwb[2] = rtb_out_fl[2]; - /* Assignment: '/Присваивание в [7-8]' incorporates: + /* Assignment: '/Присваивание в [7-8]' incorporates: * DataStoreWrite: '/Data Store Write23' */ - rtb_out_cc[6] = rtb_out_g4h[6]; + rtb_out_dwb[6] = rtb_out_fl[6]; - /* Assignment: '/Присваивание в [3-4]' incorporates: + /* Assignment: '/Присваивание в [3-4]' incorporates: * DataStoreWrite: '/Data Store Write23' */ - rtb_out_cc[3] = rtb_out_g4h[3]; + rtb_out_dwb[3] = rtb_out_fl[3]; - /* Assignment: '/Присваивание в [7-8]' incorporates: + /* Assignment: '/Присваивание в [7-8]' incorporates: * DataStoreWrite: '/Data Store Write23' */ - rtb_out_cc[7] = rtb_out_g4h[7]; + rtb_out_dwb[7] = rtb_out_fl[7]; - /* Outputs for Enabled SubSystem: '/Rear valves left - manual directions' incorporates: - * EnablePort: '/Enable' + /* 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' */ + /* 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); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant1' - * Constant: '/Constant2' + /* 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' + * 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))) { 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]; } 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]; @@ -14424,19 +14545,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' */ - rtb_Compare_ot = (rtDW.CCU_MODE_RL == 0); + rtb_LogicalOperator5 = (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; */ @@ -14446,59 +14567,59 @@ 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_4[6 * i] = g_ausMODE_BY_DUCT_TG_R_LV0[i]; - tmp_4[6 * i + 1] = g_ausMODE_BY_DUCT_TG_R_LV1[i]; - tmp_4[6 * i + 2] = g_ausMODE_BY_DUCT_TG_R_LV2[i]; - tmp_4[6 * i + 3] = g_ausMODE_BY_DUCT_TG_R_LV3[i]; - tmp_4[6 * i + 4] = g_ausMODE_BY_DUCT_TG_R_LV4[i]; - tmp_4[6 * i + 5] = g_ausMODE_BY_DUCT_TG_R_LV5[i]; - rtb_get_mode[i] = tmp_4[6 * i + rtb_Saturation4_l]; + 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]; } - /* 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: - * DataStoreRead: '/Data Store Read6' - * Sum: '/Subtract' - * UnitDelay: '/Unit Delay' + /* If: '/If' incorporates: + * Sum: '/Subtract' + * UnitDelay: '/Unit Delay' */ - if ((int16_t)(g_assEVA_TG_AMB_F_n - rtDW.UnitDelay_DSTATE_lk) >= 0) { - /* Outputs for IfAction SubSystem: '/duct_tg увеличивается RL' incorporates: - * ActionPort: '/Action Port' + if ((int16_t)-rtDW.UnitDelay_DSTATE_lk >= 0) { + /* Outputs for IfAction SubSystem: '/duct_tg увеличивается RL' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion generated from: '/rear_mode_index' incorporates: - * MATLAB Function: '/increase' + /* SignalConversion generated from: '/rear_mode_index' incorporates: + * DataStoreWrite: '/Data Store Write4' + * MATLAB Function: '/increase' */ - increase(g_assEVA_TG_AMB_F_n, rtb_get_mode, &rtb_Saturation2_a); + increase(0, 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: - * MATLAB Function: '/decrease' + /* SignalConversion generated from: '/y' incorporates: + * DataStoreWrite: '/Data Store Write4' + * MATLAB Function: '/decrease' */ - decrease(g_assEVA_TG_AMB_F_n, rtb_get_mode, &rtb_Saturation2_a); + decrease(0, 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(rtb_Saturation2_a, - rtb_TmpSignalConversionAt1DLookupTable7Inport1); + /* MATLAB Function: '/valves_rear_left' */ + valves_rear_left(Gain, rtb_TmpSignalConversionAt1DLookupTable7Inport1); for (i = 0; i < 6; i++) { /* Switch: '/Switch2' */ - if (rtb_Compare_ot) { + if (rtb_LogicalOperator5) { /* DataStoreWrite: '/Data Store Write24' incorporates: - * MultiPortSwitch: '/Multiport Switch' + * MultiPortSwitch: '/Multiport Switch' */ rtb_Gain1_nj[i] = rtB.MultiportSwitch_o[i]; } else { /* DataStoreWrite: '/Data Store Write24' incorporates: - * SignalConversion generated from: '/1-D Lookup Table7' + * SignalConversion generated from: '/1-D Lookup Table7' */ rtb_Gain1_nj[i] = rtb_TmpSignalConversionAt1DLookupTable7Inport1[i]; } @@ -14506,42 +14627,42 @@ void HVAC_model_step(void) /* End of Switch: '/Switch2' */ } - /* Outputs for Enabled SubSystem: '/Rear valves right - manual directions' incorporates: - * EnablePort: '/Enable' + /* 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' */ + /* 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' + /* 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' + * 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))) { 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]; @@ -14549,8 +14670,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]; @@ -14558,49 +14679,48 @@ 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: + /* If: '/If1' incorporates: * DataStoreRead: '/Data Store Read7' - * Sum: '/Subtract1' - * UnitDelay: '/Unit Delay1' + * 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, &rtb_Saturation2_a); + increase(rtDW.Duct_RR_Tg, rtb_get_mode, &Gain); - /* 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, &rtb_Saturation2_a); + decrease(rtDW.Duct_RR_Tg, rtb_get_mode, &Gain); - /* 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(rtb_Saturation2_a, - rtb_TmpSignalConversionAt1DLookupTable7Inport1); + /* MATLAB Function: '/valves_rear_right' */ + valves_rear_left(Gain, rtb_TmpSignalConversionAt1DLookupTable7Inport1); /* Switch: '/Switch3' incorporates: * Constant: '/manual3' * DataStoreRead: '/Data Store Read11' - * MultiPortSwitch: '/Multiport Switch' + * MultiPortSwitch: '/Multiport Switch' * RelationalOperator: '/Equal4' */ if (rtDW.CCU_MODE_RR == 0) { @@ -14611,13 +14731,13 @@ void HVAC_model_step(void) /* End of Switch: '/Switch3' */ - /* Assignment: '/Присваивание в [3-4] rear' incorporates: + /* Assignment: '/Присваивание в [3-4] rear' incorporates: * DataStoreWrite: '/Data Store Write24' */ rtb_Gain1_nj[2] = rtb_TmpSignalConversionAt1DLookupTable7Inport1[2]; rtb_Gain1_nj[3] = rtb_TmpSignalConversionAt1DLookupTable7Inport1[3]; - /* Assignment: '/Присваивание в [6] rear' incorporates: + /* Assignment: '/Присваивание в [6] rear' incorporates: * DataStoreWrite: '/Data Store Write24' */ rtb_Gain1_nj[5] = rtb_TmpSignalConversionAt1DLookupTable7Inport1[5]; @@ -14626,30 +14746,30 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read' */ if (rtDW.AMB > 1000) { - rtb_Merge1 = 1000; + rtb_Bias5 = 1000; } else if (rtDW.AMB < -1000) { - rtb_Merge1 = -1000; + rtb_Bias5 = -1000; } else { - rtb_Merge1 = rtDW.AMB; + 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)]; */ - rtb_uDLookupTable7[0] = -1000; - rtb_uDLookupTable7[1] = g_assAMB_LV_UP[4]; - rtb_uDLookupTable7[2] = g_assAMB_LV_UP[3]; - rtb_uDLookupTable7[3] = g_assAMB_LV_UP[2]; - rtb_uDLookupTable7[4] = g_assAMB_LV_UP[1]; - rtb_uDLookupTable7[5] = g_assAMB_LV_UP[0]; + 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.pooled48[plook_u32s16_bincka(rtb_Merge1, - rtb_uDLookupTable7, 5U)]) { + switch ((int8_t)rtConstP.pooled52[plook_u32s16_bincka(rtb_Bias5, tmp_3, 5U)]) + { case 0: /* Outputs for IfAction SubSystem: '/Switch Case Action Subsystem' incorporates: * ActionPort: '/Action Port' @@ -14659,7 +14779,7 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator' * Switch: '/Switch' */ - rtB.Merge_b = (uint8_t)(rtb_Merge1 <= g_assAMB_LV_UP[0]); + rtB.Merge_b = (uint8_t)(rtb_Bias5 <= g_assAMB_LV_UP[0]); /* End of Outputs for SubSystem: '/Switch Case Action Subsystem' */ break; @@ -14674,12 +14794,12 @@ void HVAC_model_step(void) */ /* : c_g_assAMB_LV_DN_1 = g_assAMB_LV_DN(1); */ /* : c_g_assAMB_LV_UP_2 = g_assAMB_LV_UP(2); */ - if (rtb_Merge1 > g_assAMB_LV_UP[1]) { + if (rtb_Bias5 > 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_Merge1 <= g_assAMB_LV_DN[0]); + rtB.Merge_b = (uint8_t)(rtb_Bias5 <= g_assAMB_LV_DN[0]); } else { /* Merge: '/Merge' incorporates: * Constant: '/Constant_Lv2' @@ -14701,12 +14821,12 @@ void HVAC_model_step(void) */ /* : c_g_assAMB_LV_DN_2 = g_assAMB_LV_DN(2); */ /* : c_g_assAMB_LV_UP_3 = g_assAMB_LV_UP(3); */ - if (rtb_Merge1 > g_assAMB_LV_UP[2]) { + if (rtb_Bias5 > g_assAMB_LV_UP[2]) { /* Switch: '/Switch3' incorporates: * MATLAB Function: '/Convert_g_assAMB_LV_DN_2' * RelationalOperator: '/Relational Operator1' */ - if (rtb_Merge1 > g_assAMB_LV_DN[1]) { + if (rtb_Bias5 > g_assAMB_LV_DN[1]) { /* Merge: '/Merge' incorporates: * Constant: '/Constant_Lv1' */ @@ -14740,12 +14860,12 @@ void HVAC_model_step(void) */ /* : c_g_assAMB_LV_DN_3 = g_assAMB_LV_DN(3); */ /* : c_g_assAMB_LV_UP_4 = g_assAMB_LV_UP(4); */ - if (rtb_Merge1 > g_assAMB_LV_UP[3]) { + if (rtb_Bias5 > g_assAMB_LV_UP[3]) { /* Switch: '/Switch3' incorporates: * MATLAB Function: '/Convert_g_assAMB_LV_DN_3' * RelationalOperator: '/Relational Operator1' */ - if (rtb_Merge1 > g_assAMB_LV_DN[2]) { + if (rtb_Bias5 > g_assAMB_LV_DN[2]) { /* Merge: '/Merge' incorporates: * Constant: '/Constant_Lv2' */ @@ -14779,12 +14899,12 @@ void HVAC_model_step(void) */ /* : c_g_assAMB_LV_DN_4 = g_assAMB_LV_DN(4); */ /* : c_g_assAMB_LV_UP_5 = g_assAMB_LV_UP(5); */ - if (rtb_Merge1 > g_assAMB_LV_UP[4]) { + if (rtb_Bias5 > g_assAMB_LV_UP[4]) { /* Switch: '/Switch3' incorporates: * MATLAB Function: '/Convert_g_assAMB_LV_DN_4' * RelationalOperator: '/Relational Operator1' */ - if (rtb_Merge1 > g_assAMB_LV_DN[3]) { + if (rtb_Bias5 > g_assAMB_LV_DN[3]) { /* Merge: '/Merge' incorporates: * Constant: '/Constant_Lv3' */ @@ -14817,7 +14937,7 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator' */ /* : c_g_assAMB_LV_DN_5 = g_assAMB_LV_DN(5); */ - if (rtb_Merge1 > g_assAMB_LV_DN[4]) { + if (rtb_Bias5 > g_assAMB_LV_DN[4]) { /* Merge: '/Merge' incorporates: * Constant: '/Constant_Lv4' */ @@ -14851,8 +14971,7 @@ void HVAC_model_step(void) * Saturate: '/Saturation' */ i *= 13107; - rtb_DataTypeConversion2_bb = (uint8_t)((((uint32_t)i & 65536U) != 0U) + (i >> - 17)); + rtb_Switch_gs = (uint8_t)((((uint32_t)i & 65536U) != 0U) + (i >> 17)); /* MATLAB Function: '/Modes for levels' */ /* : get_modes_for_levels = [g_aucMODE_BY_SET_F_LV0; */ @@ -14877,12 +14996,12 @@ void HVAC_model_step(void) * Gain: '/Gain' * Merge: '/Merge' */ - rtb_CCU_DuctTempSenErrR_Stat_n = look2_iu8bu8s16lu64n32_binlcse(rtB.Merge_b, - rtb_DataTypeConversion2_bb, rtConstP.pooled104, rtConstP.pooled56, - rtb_get_modes_for_levels, rtConstP.pooled46, 6U); + rtb_u_gnq = look2_iu8bu8s16lu64n32_binlcse(rtB.Merge_b, rtb_Switch_gs, + rtConstP.pooled112, rtConstP.pooled60, rtb_get_modes_for_levels, + rtConstP.pooled49, 6U); /* MATLAB Function: '/Начальные положения заслонок left' */ - left(rtb_CCU_DuctTempSenErrR_Stat_n, rtb_out_dy); + left(rtb_u_gnq, rtb_out_ff); /* Saturate: '/Saturation1' incorporates: * DataStoreRead: '/Data Store Read2' @@ -14904,7 +15023,7 @@ void HVAC_model_step(void) /* SwitchCase: '/Switch for Left ' incorporates: * DataStoreRead: '/Data Store Read' */ - switch (rtb_CCU_DuctTempSenErrR_Stat_n) { + switch (rtb_u_gnq) { case 10: break; @@ -14913,7 +15032,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Bilevel' incorporates: * ActionPort: '/Action Port' */ - rtb_out_c[i] = rtb_out_dy[i]; + rtb_out_fw[i] = rtb_out_ff[i]; /* End of Outputs for SubSystem: '/Bilevel' */ } @@ -14921,8 +15040,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Bilevel' incorporates: * ActionPort: '/Action Port' */ - Bilevel(rtDW.AMB, rtB.Merge_b, rtb_out_c, rtb_DataTypeConversion2_bb, - rtb_Saturation4_l); + Bilevel(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); /* End of Outputs for SubSystem: '/Bilevel' */ break; @@ -14932,7 +15050,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Bilevel2' incorporates: * ActionPort: '/Action Port' */ - rtb_out_c[i] = rtb_out_dy[i]; + rtb_out_fw[i] = rtb_out_ff[i]; /* End of Outputs for SubSystem: '/Bilevel2' */ } @@ -14940,8 +15058,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Bilevel2' incorporates: * ActionPort: '/Action Port' */ - Bilevel2(rtDW.AMB, rtB.Merge_b, rtb_out_c, rtb_DataTypeConversion2_bb, - rtb_Saturation4_l); + Bilevel2(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); /* End of Outputs for SubSystem: '/Bilevel2' */ break; @@ -14951,7 +15068,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Afoot' incorporates: * ActionPort: '/Action Port' */ - rtb_out_c[i] = rtb_out_dy[i]; + rtb_out_fw[i] = rtb_out_ff[i]; /* End of Outputs for SubSystem: '/Afoot' */ } @@ -14959,8 +15076,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Afoot' incorporates: * ActionPort: '/Action Port' */ - Afoot(rtDW.AMB, rtB.Merge_b, rtb_out_c, rtb_DataTypeConversion2_bb, - rtb_Saturation4_l); + Afoot(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); /* End of Outputs for SubSystem: '/Afoot' */ break; @@ -14970,7 +15086,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Afoot_Summer' incorporates: * ActionPort: '/Action Port' */ - rtb_out_c[i] = rtb_out_dy[i]; + rtb_out_fw[i] = rtb_out_ff[i]; /* End of Outputs for SubSystem: '/Afoot_Summer' */ } @@ -14978,7 +15094,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Afoot_Summer' incorporates: * ActionPort: '/Action Port' */ - Afoot_Summer(rtDW.AMB, rtB.Merge_b, rtb_out_c, rtb_DataTypeConversion2_bb, + Afoot_Summer(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); /* End of Outputs for SubSystem: '/Afoot_Summer' */ @@ -14991,17 +15107,17 @@ void HVAC_model_step(void) * Gain: '/Gain2' * Merge: '/Merge' */ - rtb_CCU_DuctTempSenErrR_Stat_n = look2_iu8bu8s16lu64n32_binlcse(rtB.Merge_b, - rtb_Saturation4_l, rtConstP.pooled104, rtConstP.pooled56, - rtb_get_modes_for_levels, rtConstP.pooled46, 6U); + 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_CCU_DuctTempSenErrR_Stat_n, rtb_out_dy); + left(rtb_u_gnq, rtb_out_ff); /* SwitchCase: '/Switch for Left ' incorporates: * DataStoreRead: '/Data Store Read' */ - switch (rtb_CCU_DuctTempSenErrR_Stat_n) { + switch (rtb_u_gnq) { case 10: break; @@ -15010,7 +15126,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Bilevel' incorporates: * ActionPort: '/Action Port' */ - rtb_out_c[i] = rtb_out_dy[i]; + rtb_out_fw[i] = rtb_out_ff[i]; /* End of Outputs for SubSystem: '/Bilevel' */ } @@ -15018,8 +15134,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Bilevel' incorporates: * ActionPort: '/Action Port' */ - Bilevel(rtDW.AMB, rtB.Merge_b, rtb_out_c, rtb_DataTypeConversion2_bb, - rtb_Saturation4_l); + Bilevel(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); /* End of Outputs for SubSystem: '/Bilevel' */ break; @@ -15029,7 +15144,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Bilevel2' incorporates: * ActionPort: '/Action Port' */ - rtb_out_c[i] = rtb_out_dy[i]; + rtb_out_fw[i] = rtb_out_ff[i]; /* End of Outputs for SubSystem: '/Bilevel2' */ } @@ -15037,8 +15152,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Bilevel2' incorporates: * ActionPort: '/Action Port' */ - Bilevel2(rtDW.AMB, rtB.Merge_b, rtb_out_c, rtb_DataTypeConversion2_bb, - rtb_Saturation4_l); + Bilevel2(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); /* End of Outputs for SubSystem: '/Bilevel2' */ break; @@ -15048,7 +15162,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Afoot' incorporates: * ActionPort: '/Action Port' */ - rtb_out_c[i] = rtb_out_dy[i]; + rtb_out_fw[i] = rtb_out_ff[i]; /* End of Outputs for SubSystem: '/Afoot' */ } @@ -15056,8 +15170,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Afoot' incorporates: * ActionPort: '/Action Port' */ - Afoot(rtDW.AMB, rtB.Merge_b, rtb_out_c, rtb_DataTypeConversion2_bb, - rtb_Saturation4_l); + Afoot(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); /* End of Outputs for SubSystem: '/Afoot' */ break; @@ -15067,7 +15180,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Afoot_Summer' incorporates: * ActionPort: '/Action Port' */ - rtb_out_c[i] = rtb_out_dy[i]; + rtb_out_fw[i] = rtb_out_ff[i]; /* End of Outputs for SubSystem: '/Afoot_Summer' */ } @@ -15075,7 +15188,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Afoot_Summer' incorporates: * ActionPort: '/Action Port' */ - Afoot_Summer(rtDW.AMB, rtB.Merge_b, rtb_out_c, rtb_DataTypeConversion2_bb, + Afoot_Summer(rtDW.AMB, rtB.Merge_b, rtb_out_fw, rtb_Switch_gs, rtb_Saturation4_l); /* End of Outputs for SubSystem: '/Afoot_Summer' */ @@ -15096,7 +15209,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_Merge1, rtB.Merge_b); + rtb_Bias5, rtB.Merge_b); fflush(stdout); /* : else */ @@ -15107,93 +15220,54 @@ 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_Merge1, rtB.Merge_b); + rtb_Bias5, rtB.Merge_b); fflush(stdout); } /* End of MATLAB Function: '/Log Ambient Lv' */ - /* Chart: '/Spd_Comp_Trigger' */ + /* Chart: '/Spd_OSA_Trigger' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read6' + * DataStoreWrite: '/Data Store Write2' + */ if (rtDW.is_active_c834_HVAC_model == 0U) { rtDW.is_active_c834_HVAC_model = 1U; - rtDW.is_c834_HVAC_model = IN_COMP_OFF; + rtDW.is_c834_HVAC_model = IN_OSA_OFF; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - /* : is_Comp_Active = 0; */ - rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_Partial_Spd_Sts = 0U; - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - rtb_CCU_DuctTempSenErrR_Stat_n = 100U; - } else if (rtDW.is_c834_HVAC_model == IN_COMP_OFF) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_Partial_Spd_Sts = 0U; + /* : is_OSA_Active = 0; */ + rtb_Switch_gs = 0U; + } else if (rtDW.is_c834_HVAC_model == IN_OSA_OFF) { + rtb_Switch_gs = 0U; /* : sf_internal_predicateOutput = VehicleSpeed > 20 && Full_Rec_Active == 0; */ - if ((rtDW.VehicleSpeed > 20) && (rtDW.Full_Rec == 0.0)) { - rtDW.is_c834_HVAC_model = IN_COMP_ON; + if ((rtDW.VehicleSpeed > 20) && (rtDW.Full_Rec == 0)) { + rtDW.is_c834_HVAC_model = IN_OSA_ON; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - /* : is_Comp_Active = 1; */ - rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_Partial_Spd_Sts = 1U; - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read6' - * Lookup_n-D: '/1-D Lookup Table2' - */ - rtb_CCU_DuctTempSenErrR_Stat_n = look1_iu16lu64n48tu8_binlcse - (rtDW.VehicleSpeed, &g_ausVALVE_VEH_SPD[0], &g_aucPREC_VEH_SPD_OSA[0], - 12U); - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - rtb_CCU_DuctTempSenErrR_Stat_n = 100U; + /* : is_OSA_Active = 1; */ + rtb_Switch_gs = 1U; } } else { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - /* case IN_COMP_ON: */ - rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_Partial_Spd_Sts = 1U; + /* case IN_OSA_ON: */ + rtb_Switch_gs = 1U; /* : sf_internal_predicateOutput = VehicleSpeed == 0 || Full_Rec_Active == 1; */ - if ((rtDW.VehicleSpeed == 0) || (rtDW.Full_Rec == 1.0)) { - rtDW.is_c834_HVAC_model = IN_COMP_OFF; + if ((rtDW.VehicleSpeed == 0) || (rtDW.Full_Rec == 1)) { + rtDW.is_c834_HVAC_model = IN_OSA_OFF; - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - /* : is_Comp_Active = 0; */ - rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_Partial_Spd_Sts = 0U; - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - rtb_CCU_DuctTempSenErrR_Stat_n = 100U; - } else { - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read6' - * Lookup_n-D: '/1-D Lookup Table2' - */ - rtb_CCU_DuctTempSenErrR_Stat_n = look1_iu16lu64n48tu8_binlcse - (rtDW.VehicleSpeed, &g_ausVALVE_VEH_SPD[0], &g_aucPREC_VEH_SPD_OSA[0], - 12U); + /* : is_OSA_Active = 0; */ + rtb_Switch_gs = 0U; } } - /* End of Chart: '/Spd_Comp_Trigger' */ + /* End of Chart: '/Spd_OSA_Trigger' */ /* Chart: '/Chart' incorporates: + * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' * DataStoreRead: '/Data Store Read3' + * DataStoreRead: '/Data Store Read4' * Gain: '/Gain' * Lookup_n-D: '/1-D Lookup Table' * Lookup_n-D: '/1-D Lookup Table1' @@ -15204,17 +15278,12 @@ void HVAC_model_step(void) rtDW.is_c776_HVAC_model = IN_PARTIAL_REC_OFF; /* : Comp_Active = 0; */ - rtb_DataTypeConversion2_bb = 0U; - - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant1' - */ - rtb_Saturation4_l = 100U; + rtb_Saturation4_l = 0U; } else if (rtDW.is_c776_HVAC_model == IN_PARTIAL_REC_OFF) { - rtb_DataTypeConversion2_bb = 0U; + rtb_Saturation4_l = 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.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); */ @@ -15223,83 +15292,53 @@ void HVAC_model_step(void) rtDW.is_PARTIAL_REC_ON = IN_COND_3; /* : Comp_Active = 3; */ - rtb_DataTypeConversion2_bb = 3U; + rtb_Saturation4_l = 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_DataTypeConversion2_bb = 2U; + rtb_Saturation4_l = 2U; rtDW.is_COND_2 = IN_TRACKING; } else { rtDW.is_PARTIAL_REC_ON = IN_COND_1; /* : Comp_Active = 1; */ - rtb_DataTypeConversion2_bb = 1U; + rtb_Saturation4_l = 1U; } - - /* Switch: '/Switch1' */ - rtb_Saturation4_l = rtB.req_OSA; - } else { - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant1' - */ - rtb_Saturation4_l = 100U; } /* 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.0)) { + } 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_c776_HVAC_model = IN_PARTIAL_REC_OFF; /* : Comp_Active = 0; */ - rtb_DataTypeConversion2_bb = 0U; - - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant1' - */ - rtb_Saturation4_l = 100U; + rtb_Saturation4_l = 0U; } else { switch (rtDW.is_PARTIAL_REC_ON) { case IN_COND_1: - rtb_DataTypeConversion2_bb = 1U; + rtb_Saturation4_l = 1U; - /* : sf_internal_predicateOutput = E_comp_speed /Gain' incorporates: + * Gain: '/Gain1' + * 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); - /* : Comp_Active = 0; */ - rtb_DataTypeConversion2_bb = 0U; - - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant1' - */ - rtb_Saturation4_l = 100U; - } else { - /* Gain: '/Gain' incorporates: - * Gain: '/Gain1' - * MATLAB Function: '/MATLAB Function' - */ - /* : req_OSA =PREC_OSA_SUMMER_1; */ - 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(rtb_Saturation2_a, - &g_ausPREC_COMP_SPD_1[0], &g_aucPREC_REC_SUMMER_1[0], 2U); - - /* Switch: '/Switch1' */ - rtb_Saturation4_l = rtB.req_OSA; - } + /* : 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); break; case IN_COND_2: - rtb_DataTypeConversion2_bb = 2U; + rtb_Saturation4_l = 2U; /* : sf_internal_predicateOutput = E_comp_speed 32767) { i = 32767; } else if (i < -32768) { i = -32768; } - rtb_FLU_tg_correct_o = find_index((int16_t)i); + rtb_u8Vtg_FX_plus = find_index((int16_t)i); /* : X=g_assPREC_EVA_DIFF_FB_TG_F(x_idx); */ if (rtDW.is_COND_2 == IN_HOLDING) { /* : sf_internal_predicateOutput = X <= 0; */ - rtb_y_pc = g_assPREC_EVA_DIFF_FB_TG_F[(int32_t)rtb_FLU_tg_correct_o - - 1]; - if (rtb_y_pc <= 0) { + rtb_Bias5 = g_assPREC_EVA_DIFF_FB_TG_F[(int32_t)rtb_u8Vtg_FX_plus - 1]; + if (rtb_Bias5 <= 0) { rtDW.is_COND_2 = IN_TRACKING; /* : sf_internal_predicateOutput = X > X_prev; */ - } else if (rtb_y_pc > rtDW.X_prev) { + } else if (rtb_Bias5 > rtDW.X_prev) { rtDW.is_COND_2 = IN_TRACKING; } else { /* : X_prev = X; */ - rtDW.X_prev = rtb_y_pc; + rtDW.X_prev = rtb_Bias5; } } else { /* case IN_TRACKING: */ /* : sf_internal_predicateOutput = X < X_prev && X > 0; */ - i_0 = g_assPREC_EVA_DIFF_FB_TG_F[(int32_t)rtb_FLU_tg_correct_o - 1]; + i_0 = g_assPREC_EVA_DIFF_FB_TG_F[(int32_t)rtb_u8Vtg_FX_plus - 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_FLU_tg_correct_o - - 1]; + rtB.req_OSA = g_aucPREC_OSA_SUMMER_2[(int32_t)rtb_u8Vtg_FX_plus - 1]; /* : req_REC = g_aucPREC_REC_SUMMER_2(x_idx); */ - rtB.req_REC = g_aucPREC_REC_SUMMER_2[(int32_t)rtb_FLU_tg_correct_o - - 1]; + rtB.req_REC = g_aucPREC_REC_SUMMER_2[(int32_t)rtb_u8Vtg_FX_plus - 1]; /* : X_prev = X; */ - rtDW.X_prev = g_assPREC_EVA_DIFF_FB_TG_F[(int32_t) - rtb_FLU_tg_correct_o - 1]; + rtDW.X_prev = g_assPREC_EVA_DIFF_FB_TG_F[(int32_t)rtb_u8Vtg_FX_plus + - 1]; } } } - - /* Switch: '/Switch1' */ - rtb_Saturation4_l = rtB.req_OSA; break; default: /* case IN_COND_3: */ - rtb_DataTypeConversion2_bb = 3U; + rtb_Saturation4_l = 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 < @@ -15371,7 +15404,7 @@ void HVAC_model_step(void) rtDW.is_PARTIAL_REC_ON = IN_COND_2; /* : Comp_Active = 2; */ - rtb_DataTypeConversion2_bb = 2U; + rtb_Saturation4_l = 2U; rtDW.is_COND_2 = IN_TRACKING; } else { /* : req_OSA = g_ucPREC_OSA_SUMMER_3; */ @@ -15380,35 +15413,72 @@ void HVAC_model_step(void) /* : req_REC = g_ucPREC_REC_SUMMER_3; */ rtB.req_REC = g_ucPREC_REC_SUMMER_3; } - - /* Switch: '/Switch1' */ - rtb_Saturation4_l = rtB.req_OSA; break; } } /* End of Chart: '/Chart' */ - /* MinMax: '/MinMax' incorporates: - * Switch: '/Switch1' - */ - if (rtb_CCU_DuctTempSenErrR_Stat_n <= rtb_Saturation4_l) { - rtb_Saturation4_l = rtb_CCU_DuctTempSenErrR_Stat_n; - } - - /* End of MinMax: '/MinMax' */ - - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant2' + /* Switch: '/Switch3' incorporates: + * Constant: '/Constant4' + * Constant: '/Constant5' + * DataStoreRead: '/Data Store Read7' + * DataStoreWrite: '/Data Store Write' * DataStoreWrite: '/Data Store Write1' + * DataStoreWrite: '/Data Store Write2' + * Switch: '/Switch' + * Switch: '/Switch4' */ - if (rtb_DataTypeConversion2_bb > 0) { - rtb_CCU_DuctTempSenErrR_Stat_n = rtB.req_REC; + if (rtDW.Full_Rec > 0) { + rtb_u_gnq = 0U; + rtb_Switch_m5 = 100U; } else { - rtb_CCU_DuctTempSenErrR_Stat_n = 0U; + if (rtb_Switch_gs > 0) { + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read6' + * Lookup_n-D: '/1-D Lookup Table2' + */ + rtb_Switch_m5 = 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; + } + + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant1' + */ + if (rtb_Saturation4_l > 0) { + rtb_u_gnq = rtB.req_OSA; + } else { + rtb_u_gnq = 100U; + } + + /* MinMax: '/MinMax' incorporates: + * Switch: '/Switch1' + */ + if (rtb_Switch_m5 <= rtb_u_gnq) { + rtb_u_gnq = rtb_Switch_m5; + } + + /* End of MinMax: '/MinMax' */ + + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant2' + * DataStoreWrite: '/Data Store Write1' + */ + if (rtb_Saturation4_l > 0) { + rtb_Switch_m5 = rtB.req_REC; + } else { + rtb_Switch_m5 = 0U; + } + + /* End of Switch: '/Switch2' */ } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch3' */ /* BusCreator: '/Bus Creator' incorporates: * DataStoreRead: '/Data Store Read10' @@ -15442,1418 +15512,242 @@ void HVAC_model_step(void) Status_Sensor_Model.Duct_Side_RR = 0; Status_Sensor_Model.AQS = 0; - /* RelationalOperator: '/Relational Operator1' incorporates: - * UnitDelay: '/Unit Delay' - */ - rtb_is_ending_with_5 = (rtDW.UnitDelay_DSTATE_da == -9999); - - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ - rtb_FLU_tg_correct_o = (double)rtDW.ADC_Data_Model.Sensor_Incar_Temp_FL / - 4095.0 * 5.0; - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_a = (rtb_FLU_tg_correct_o < 0.15); - - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' - */ - rtb_Compare_bu = (rtb_FLU_tg_correct_o > 4.9); - - /* Logic: '/Logical Operator' */ - rtb_Compare_ot = (rtb_Compare_a || rtb_Compare_bu); - - /* Logic: '/Logical Operator1' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator1_n = (rtb_Compare_ot && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_go >= 3000U)); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' - * DataStoreRead: '/Data Store Read1' - * Lookup_n-D: '/1-D Lookup Table2' - * UnitDelay: '/Unit Delay' - */ - if (rtb_LogicalOperator1_n) { - rtDW.UnitDelay_DSTATE_da = 200; - } else { - rtDW.UnitDelay_DSTATE_da = look1_iu16tdIs16_binlcs - (rtDW.ADC_Data_Model.Sensor_Incar_Temp_FL, rtConstP.pooled65, - rtConstP.pooled9, 1023U); - } - - /* End of Switch: '/Switch' */ - - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read' - * If: '/If1' - */ - if (rtb_is_ending_with_5) { - /* Outputs for IfAction SubSystem: '/Инициализация FL' incorporates: - * ActionPort: '/Action Port' - */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/temp_fl' - * UnitDelay: '/Unit Delay' - */ - rtDW.Temp_FL_store = rtDW.UnitDelay_DSTATE_da; - - /* 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); - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_da - rtDW.Temp_FL_store); - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - if (rtb_y_pc <= 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_e(rtDW.LEVEL, &rtb_Saturation2_a); - - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' - */ - u_cc(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); - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_da - rtDW.Temp_FL_store); - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - if (rtb_y_pc > 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_c(rtDW.LEVEL, &rtb_Saturation2_a); - - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' - */ - u_mu(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_FL_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/AMBRATE_RISING_DIFF[8]' */ - AMBRATE_RISING_DIFF8(&rtb_out_d1m); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read temp' - * UnitDelay: '/Unit Delay' - */ - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_da - rtDW.Temp_FL_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_y_pc <= rtb_out_d1m) { - /* 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_j(rtDW.LEVEL, &rtb_out_d1m); - - /* 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, &rtb_out_d1m); - - /* 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_d1m); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * UnitDelay: '/Unit Delay' - */ - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_da - rtDW.Temp_FL_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_y_pc > rtb_out_d1m) { - /* 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, &rtb_out_d1m); - - /* 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, &rtb_out_d1m); - - /* End of Outputs for SubSystem: '/обычный режим повышения' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* End of If: '/If1' */ - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * UnitDelay: '/Unit Delay' - */ - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_da - rtDW.Temp_FL_store); - - /* Abs: '/Abs' */ - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - /* Switch: '/Switch1' incorporates: - * Abs: '/Abs' - * Constant: '/epsilon' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_y_pc > 0.01) { - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Read Amb' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' - * RelationalOperator: '/AMBraw > AMB' - * UnaryMinus: '/Unary Minus' - * UnitDelay: '/Unit Delay' - */ - if (rtDW.UnitDelay_DSTATE_da > rtDW.Temp_FL_store) { - rtb_y_pc = (int16_t)rtb_Saturation2_a; - } else { - rtb_y_pc = (int16_t)-(int16_t)rtb_out_d1m; - } - - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read12' - * Product: '/Divide' - * Product: '/Product' - * SignalConversion generated from: '/temp_out' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Temp_FL_store += (int16_t)((uint16_t)((rtDW.t_now - - rtDW.UnitDelay_DSTATE_bd) / 60000U) * rtb_y_pc); - } - - /* 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: '/Data Store Write1' */ - rtDW.Incar_FL = rtDW.Temp_FL_store; - - /* RelationalOperator: '/Relational Operator2' incorporates: - * UnitDelay: '/Unit Delay1' - */ - rtb_is_ending_with_5 = (rtDW.UnitDelay1_DSTATE_k == -9999); - - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' - */ - rtb_Product_fy = (double)rtDW.ADC_Data_Model.Sensor_Incar_Temp_FR / 4095.0 * + rtb_u8Vtg_FX_plus = (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_kt = (rtb_Product_fy < 0.15); + rtb_Compare_p1p = (rtb_u8Vtg_FX_plus < 0.05); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ - rtb_Compare_i5 = (rtb_Product_fy > 4.9); + rtb_Compare_bu = (rtb_u8Vtg_FX_plus > 4.9); - /* Logic: '/Logical Operator' */ - rtb_Compare_m4 = (rtb_Compare_kt || rtb_Compare_i5); + /* Logic: '/Logical Operator' */ + rtb_LogicalOperator5 = (rtb_Compare_p1p || rtb_Compare_bu); - /* 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_m2 = (rtb_Compare_m4 && (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_k >= 3000U)); + rtb_LogicalOperator1_n = (rtb_LogicalOperator5 && (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_go >= 3000U)); - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant2' * DataStoreRead: '/Data Store Read1' - * Lookup_n-D: '/1-D Lookup Table2' - * UnitDelay: '/Unit Delay1' + * DataStoreWrite: '/Data Store Write1' + * Lookup_n-D: '/1-D Lookup Table2' */ - if (rtb_LogicalOperator1_m2) { - rtDW.UnitDelay1_DSTATE_k = 200; + if (rtb_LogicalOperator1_n) { + rtDW.Incar_FL = 200; } else { - rtDW.UnitDelay1_DSTATE_k = look1_iu16tdIs16_binlcs - (rtDW.ADC_Data_Model.Sensor_Incar_Temp_FR, rtConstP.pooled65, + rtDW.Incar_FL = look1_iu16tdIs16_binlcs + (rtDW.ADC_Data_Model.Sensor_Incar_Temp_FL, rtConstP.pooled73, rtConstP.pooled9, 1023U); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* If: '/If1' incorporates: - * DataStoreRead: '/Data Store Read' - * If: '/If1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read1' + * Product: '/Divide' */ - if (rtb_is_ending_with_5) { - /* Outputs for IfAction SubSystem: '/Инициализация FR' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion generated from: '/temp' incorporates: - * DataStoreWrite: '/Data Store Write' - * UnitDelay: '/Unit Delay1' - */ - rtDW.Temp_FR_store = rtDW.UnitDelay1_DSTATE_k; + rtb_Divide1_l5 = (double)rtDW.ADC_Data_Model.Sensor_Incar_Temp_FR / 4095.0 * + 5.0; - /* SignalConversion generated from: '/temp_out' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtb_Merge1 = rtDW.Temp_FR_store; + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_kt = (rtb_Divide1_l5 < 0.05); - /* End of Outputs for SubSystem: '/Инициализация FR' */ + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + */ + rtb_Compare_i5 = (rtb_Divide1_l5 > 4.9); + + /* Logic: '/Logical Operator' */ + rtb_Compare_dq = (rtb_Compare_kt || rtb_Compare_i5); + + /* 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)); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant2' + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write3' + * Lookup_n-D: '/1-D Lookup Table2' + */ + if (rtb_LogicalOperator1_m2) { + rtDW.Incar_FR = 200; } 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 Delay1' - */ - g_ausINCARRATE_RISING_DIFF_F8(&rtb_Saturation2_a); - rtb_y_pc = (int16_t)(rtDW.UnitDelay1_DSTATE_k - rtDW.Temp_FR_store); - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - if (rtb_y_pc <= 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; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/обычное повышение темп.' - */ - u_e(rtDW.LEVEL, &rtb_Saturation2_a); - - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' - */ - u_cc(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 Delay1' - */ - INCARRATE_RISING_DIFF_F7(&rtb_Saturation2_a); - rtb_y_pc = (int16_t)(rtDW.UnitDelay1_DSTATE_k - rtDW.Temp_FR_store); - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - if (rtb_y_pc > 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_c(rtDW.LEVEL, &rtb_Saturation2_a); - - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' - */ - u_mu(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_FR_UNTIL_LIMIT > 0.0) { - /* Outputs for IfAction SubSystem: '/включен ускоренный режим' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/AMBRATE_RISING_DIFF[8]' */ - AMBRATE_RISING_DIFF8(&rtb_out_d1m); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read temp' - * UnitDelay: '/Unit Delay1' - */ - rtb_y_pc = (int16_t)(rtDW.UnitDelay1_DSTATE_k - rtDW.Temp_FR_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_y_pc <= rtb_out_d1m) { - /* 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_j(rtDW.LEVEL, &rtb_out_d1m); - - /* 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, &rtb_out_d1m); - - /* 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_d1m); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * UnitDelay: '/Unit Delay1' - */ - rtb_y_pc = (int16_t)(rtDW.UnitDelay1_DSTATE_k - rtDW.Temp_FR_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_y_pc > rtb_out_d1m) { - /* 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, &rtb_out_d1m); - - /* 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, &rtb_out_d1m); - - /* End of Outputs for SubSystem: '/обычный режим повышения' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* End of If: '/If1' */ - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * UnitDelay: '/Unit Delay1' - */ - rtb_y_pc = (int16_t)(rtDW.UnitDelay1_DSTATE_k - rtDW.Temp_FR_store); - - /* Abs: '/Abs' */ - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - /* Switch: '/Switch1' incorporates: - * Abs: '/Abs' - * Constant: '/epsilon' - * DataStoreRead: '/Read Amb' - * RelationalOperator: '/AMBraw > AMB' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay1' - */ - if (rtb_y_pc <= 0.01) { - /* SignalConversion generated from: '/temp_out' incorporates: - * DataStoreRead: '/Read Amb' - */ - rtb_Merge1 = rtDW.Temp_FR_store; - } else { - if (rtDW.UnitDelay1_DSTATE_k > rtDW.Temp_FR_store) { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - */ - rtb_y_pc = (int16_t)rtb_Saturation2_a; - } else { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * UnaryMinus: '/Unary Minus' - */ - rtb_y_pc = (int16_t)-(int16_t)rtb_out_d1m; - } - - /* 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_Merge1 = (int16_t)((int16_t)((uint16_t)((rtDW.t_now - - rtDW.UnitDelay_DSTATE_b) / 60000U) * rtb_y_pc) + 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 температуры' */ + rtDW.Incar_FR = look1_iu16tdIs16_binlcs + (rtDW.ADC_Data_Model.Sensor_Incar_Temp_FR, rtConstP.pooled73, + rtConstP.pooled9, 1023U); } - /* End of If: '/If1' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write3' */ - rtDW.Incar_FR = rtb_Merge1; - - /* RelationalOperator: '/Relational Operator1' incorporates: - * UnitDelay: '/Unit Delay' - */ - rtb_is_ending_with_5 = (rtDW.UnitDelay_DSTATE_my == -9999); - - /* 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.15); + rtb_Compare_l = (rtb_Divide3 < 0.05); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_j = (rtb_Divide3 > 4.9); - /* Logic: '/Logical Operator2' */ + /* Logic: '/Logical Operator2' */ rtb_FailCond_lt = (rtb_Compare_l || rtb_Compare_j); - /* 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)); - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant5' + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant5' * DataStoreRead: '/Data Store Read1' - * Lookup_n-D: '/1-D Lookup Table1' - * UnitDelay: '/Unit Delay' + * DataStoreWrite: '/Data Store Write4' + * Lookup_n-D: '/1-D Lookup Table1' */ if (rtb_LogicalOperator3) { - rtDW.UnitDelay_DSTATE_my = 200; + rtDW.Incar_RL = 200; } else { - rtDW.UnitDelay_DSTATE_my = look1_iu16tdIs16_binlcs - (rtDW.ADC_Data_Model.Sensor_Incar_Temp_RL, rtConstP.pooled65, + rtDW.Incar_RL = look1_iu16tdIs16_binlcs + (rtDW.ADC_Data_Model.Sensor_Incar_Temp_RL, rtConstP.pooled73, rtConstP.pooled9, 1023U); } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read' - * If: '/If1' - */ - if (rtb_is_ending_with_5) { - /* Outputs for IfAction SubSystem: '/Инициализация RL' incorporates: - * ActionPort: '/Action Port' - */ - /* Merge: '/Merge' incorporates: - * SignalConversion generated from: '/temp_in' - * UnitDelay: '/Unit Delay' - */ - rtDW.Temp_RL_store = rtDW.UnitDelay_DSTATE_my; - - /* 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); - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_my - rtDW.Temp_RL_store); - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - if (rtb_y_pc <= 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_jy(rtDW.LEVEL, &rtb_Saturation2_a); - - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' - */ - u_jk(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); - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_my - rtDW.Temp_RL_store); - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - if (rtb_y_pc > 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_d(rtDW.LEVEL, &rtb_Saturation2_a); - - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' - */ - u_ew(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_m(&rtb_out_d1m); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read temp' - * UnitDelay: '/Unit Delay' - */ - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_my - rtDW.Temp_RL_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_y_pc <= rtb_out_d1m) { - /* 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, &rtb_out_d1m); - - /* 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, &rtb_out_d1m); - - /* 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(&rtb_out_d1m); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * UnitDelay: '/Unit Delay' - */ - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_my - rtDW.Temp_RL_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_y_pc > rtb_out_d1m) { - /* 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, &rtb_out_d1m); - - /* 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, &rtb_out_d1m); - - /* End of Outputs for SubSystem: '/обычный режим повышения' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* End of If: '/If1' */ - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * UnitDelay: '/Unit Delay' - */ - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_my - rtDW.Temp_RL_store); - - /* Abs: '/Abs' */ - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - /* Switch: '/Switch1' incorporates: - * Abs: '/Abs' - * Constant: '/epsilon' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_y_pc > 0.01) { - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Read Amb' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' - * RelationalOperator: '/AMBraw > AMB' - * UnaryMinus: '/Unary Minus' - * UnitDelay: '/Unit Delay' - */ - if (rtDW.UnitDelay_DSTATE_my > rtDW.Temp_RL_store) { - rtb_y_pc = (int16_t)rtb_Saturation2_a; - } else { - rtb_y_pc = (int16_t)-(int16_t)rtb_out_d1m; - } - - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Read Amb' - * DataStoreRead: '/Data Store Read12' - * Product: '/Divide' - * Product: '/Product' - * SignalConversion generated from: '/temp_out' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Temp_RL_store += (int16_t)((uint16_t)((rtDW.t_now - - rtDW.UnitDelay_DSTATE_a) / 60000U) * rtb_y_pc); - } - - /* 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: '/Data Store Write4' */ - rtDW.Incar_RL = rtDW.Temp_RL_store; - - /* RelationalOperator: '/Relational Operator1' incorporates: - * UnitDelay: '/Unit Delay' - */ - rtb_is_ending_with_5 = (rtDW.UnitDelay_DSTATE_lt == -9999); - - /* Product: '/Divide3' incorporates: - * Constant: '/Constant3' - * Constant: '/Constant4' + /* Product: '/Divide3' incorporates: + * Constant: '/Constant3' + * Constant: '/Constant4' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide2' + * Product: '/Divide2' */ rtb_Divide3_hk = (double)rtDW.ADC_Data_Model.Sensor_Incar_Temp_RR / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ - rtb_Compare_g4 = (rtb_Divide3_hk < 0.15); + rtb_Compare_g4 = (rtb_Divide3_hk < 0.05); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_dd = (rtb_Divide3_hk > 4.9); - /* Logic: '/Logical Operator2' */ + /* Logic: '/Logical Operator2' */ rtb_FailCond_h = (rtb_Compare_g4 || rtb_Compare_dd); - /* 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_p5 = (rtb_FailCond_h && (rtDW.t_now - rtDW.t_start_delay_private_DSTATE_gd >= 3000U)); - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant5' + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant5' * DataStoreRead: '/Data Store Read1' - * Lookup_n-D: '/1-D Lookup Table1' - * UnitDelay: '/Unit Delay' + * DataStoreWrite: '/Data Store Write5' + * Lookup_n-D: '/1-D Lookup Table1' */ if (rtb_LogicalOperator3_p5) { - rtDW.UnitDelay_DSTATE_lt = 200; + rtDW.Incar_RR = 200; } else { - rtDW.UnitDelay_DSTATE_lt = look1_iu16tdIs16_binlcs - (rtDW.ADC_Data_Model.Sensor_Incar_Temp_RR, rtConstP.pooled65, + rtDW.Incar_RR = look1_iu16tdIs16_binlcs + (rtDW.ADC_Data_Model.Sensor_Incar_Temp_RR, rtConstP.pooled73, rtConstP.pooled9, 1023U); } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* If: '/If' incorporates: - * DataStoreRead: '/Data Store Read' - * If: '/If1' - */ - if (rtb_is_ending_with_5) { - /* Outputs for IfAction SubSystem: '/Инициализация RR' incorporates: - * ActionPort: '/Action Port' - */ - /* Sum: '/Add1' incorporates: - * SignalConversion generated from: '/temp_in' - * UnitDelay: '/Unit Delay' - */ - rtDW.Temp_RR_store = rtDW.UnitDelay_DSTATE_lt; - - /* 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); - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_lt - rtDW.Temp_RR_store); - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - if (rtb_y_pc <= 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; - - /* SignalConversion generated from: '/out' incorporates: - * DataStoreRead: '/Data Store Read' - * MATLAB Function: '/обычное повышение темп.' - */ - u_jy(rtDW.LEVEL, &rtb_Saturation2_a); - - /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates: - * ActionPort: '/Action Port' - */ - u_jk(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); - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_lt - rtDW.Temp_RR_store); - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - if (rtb_y_pc > 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_d(rtDW.LEVEL, &rtb_Saturation2_a); - - /* End of Outputs for SubSystem: '/включаем ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates: - * ActionPort: '/Action Port' - */ - u_ew(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_m(&rtb_out_d1m); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read temp' - * UnitDelay: '/Unit Delay' - */ - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_lt - rtDW.Temp_RR_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_y_pc <= rtb_out_d1m) { - /* 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, &rtb_out_d1m); - - /* 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, &rtb_out_d1m); - - /* 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(&rtb_out_d1m); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * UnitDelay: '/Unit Delay' - */ - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_lt - rtDW.Temp_RR_store); - - /* Abs: '/ABS(AMBraw - AMB)' */ - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - /* If: '/If' incorporates: - * Abs: '/ABS(AMBraw - AMB)' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_y_pc > rtb_out_d1m) { - /* 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, &rtb_out_d1m); - - /* 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, &rtb_out_d1m); - - /* End of Outputs for SubSystem: '/обычный режим повышения' */ - } - - /* End of If: '/If' */ - /* End of Outputs for SubSystem: '/обычный режим' */ - } - - /* End of If: '/If1' */ - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Read Amb' - * UnitDelay: '/Unit Delay' - */ - rtb_y_pc = (int16_t)(rtDW.UnitDelay_DSTATE_lt - rtDW.Temp_RR_store); - - /* Abs: '/Abs' */ - if (rtb_y_pc < 0) { - rtb_y_pc = (int16_t)-rtb_y_pc; - } - - /* Switch: '/Switch1' incorporates: - * Abs: '/Abs' - * Constant: '/epsilon' - * RelationalOperator: '/Relational Operator' - */ - if (rtb_y_pc > 0.01) { - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Read Amb' - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' - * RelationalOperator: '/AMBraw > AMB' - * UnaryMinus: '/Unary Minus' - * UnitDelay: '/Unit Delay' - */ - if (rtDW.UnitDelay_DSTATE_lt > rtDW.Temp_RR_store) { - rtb_y_pc = (int16_t)rtb_Saturation2_a; - } else { - rtb_y_pc = (int16_t)-(int16_t)rtb_out_d1m; - } - - /* Sum: '/Add1' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Read Amb' - * 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 += (int16_t)((uint16_t)((rtDW.t_now - - rtDW.UnitDelay_DSTATE_n) / 60000U) * rtb_y_pc); - } - - /* 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: '/Data Store Write5' */ - rtDW.Incar_RR = rtDW.Temp_RR_store; - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant2' * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * Lookup_n-D: '/1-D Lookup Table' + * DataStoreWrite: '/Data Store Write1' + * Lookup_n-D: '/1-D Lookup Table' */ if (rtb_LogicalOperator1_f1) { rtDW.Eva_F = -100; } else { rtDW.Eva_F = look1_iu16tdIs16_binlcs(rtDW.ADC_Data_Model.Sensor_Evap_Temp, - rtConstP.pooled65, rtConstP.pooled8, 1023U); + rtConstP.pooled73, rtConstP.pooled8, 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; - /* 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' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.dtc_state_error_model[13] = rtb_Compare_eu; - /* 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; } 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) { @@ -16864,11 +15758,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) { @@ -16877,67 +15771,67 @@ 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)) { rtDW.t_start_delay_private_DSTATE_g = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant2' * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * Lookup_n-D: '/1-D Lookup Table' + * DataStoreWrite: '/Data Store Write1' + * Lookup_n-D: '/1-D Lookup Table' */ if (rtb_LogicalOperator1_f) { rtDW.Eva_R = -100; } else { rtDW.Eva_R = look1_iu16tdIs16_binlcs - (rtDW.ADC_Data_Model.Sensor_Rear_Evap_Temp, rtConstP.pooled65, + (rtDW.ADC_Data_Model.Sensor_Rear_Evap_Temp, rtConstP.pooled73, rtConstP.pooled8, 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; - /* 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' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.dtc_state_error_model[15] = rtb_Compare_fr; - /* 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; } 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) { @@ -16948,11 +15842,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) { @@ -16961,68 +15855,68 @@ 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)) { rtDW.t_start_delay_private_DSTATE_c = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * Constant: '/Constant2' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant2' * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write' - * Lookup_n-D: '/1-D Lookup Table' + * DataStoreWrite: '/Data Store Write' + * Lookup_n-D: '/1-D Lookup Table' */ if (rtb_LogicalOperator1) { rtDW.Pressure = 320; } else { rtDW.Pressure = look1_iu16tdIs16_binlcs - (rtDW.ADC_Data_Model.Sensor_AC_Pressure, rtConstP.pooled65, + (rtDW.ADC_Data_Model.Sensor_AC_Pressure, rtConstP.pooled73, 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; - /* 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' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.dtc_state_error_model[50] = rtb_Compare; - /* 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; } 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) { @@ -17031,10 +15925,10 @@ 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) { @@ -17045,53 +15939,53 @@ void HVAC_model_step(void) 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; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Product: '/Divide4' incorporates: - * Constant: '/Constant1' - * Constant: '/Constant2' + /* Product: '/Divide4' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant2' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide1' + * Product: '/Divide1' */ rtb_Divide1 = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct2 / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_m = (rtb_Divide1 < 0.15); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_i = (rtb_Divide1 > 4.9); - /* Logic: '/Logical Operator1' */ + /* Logic: '/Logical Operator1' */ rtb_Compare = (rtb_Compare_m || rtb_Compare_i); - /* Logic: '/Logical Operator4' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' + /* Logic: '/Logical Operator4' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read4' + * RelationalOperator: '/Compare' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' */ - rtb_is_ending_with_5 = (rtb_Compare && (rtDW.t_now - + rtb_LogicalOperator4_fo = (rtb_Compare && (rtDW.t_now - rtDW.t_start_delay_private_DSTATE_m >= 3000U)); - /* SignalConversion generated from: '/1-D Lookup Table7' incorporates: + /* SignalConversion generated from: '/1-D Lookup Table7' incorporates: * DataStoreRead: '/Data Store Read1' */ rtb_TmpSignalConversionAt1DLookupTable7Inport1[0] = @@ -17107,490 +16001,490 @@ 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[i] = look1_iu16bs16lu64n32ts16Ds32_binlcs - (rtb_TmpSignalConversionAt1DLookupTable7Inport1[i], rtConstP.pooled58, - rtConstP.pooled57, 1023U); + rtb_uDLookupTable7_g[i] = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtb_TmpSignalConversionAt1DLookupTable7Inport1[i], rtConstP.pooled62, + rtConstP.pooled61, 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_is_ending_with_5) { - rtb_y_cy = 230; + if (rtb_LogicalOperator4_fo) { + rtb_y_bf = 230; } else { - rtb_y_cy = rtb_uDLookupTable7[1]; + rtb_y_bf = rtb_uDLookupTable7_g[1]; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Product: '/Divide3' incorporates: - * Constant: '/Constant3' - * Constant: '/Constant4' + /* Product: '/Divide3' incorporates: + * Constant: '/Constant3' + * Constant: '/Constant4' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide2' + * Product: '/Divide2' */ 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_au = (rtb_Divide1_cf < 0.15); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_gl = (rtb_Divide1_cf > 4.9); - /* Logic: '/Logical Operator2' */ + /* 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 ' + /* 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' + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant5' + * DataStoreWrite: '/Data Store Write2' */ if (rtb_LogicalOperator3_nz) { - rtb_y_lp = 230; + rtb_y_fe = 230; } else { - rtb_y_lp = rtb_uDLookupTable7[0]; + rtb_y_fe = rtb_uDLookupTable7_g[0]; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* Product: '/Divide6' incorporates: - * Constant: '/Constant7' - * Constant: '/Constant8' + /* Product: '/Divide6' incorporates: + * Constant: '/Constant7' + * Constant: '/Constant8' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide5' + * Product: '/Divide5' */ rtb_Divide1_ea = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct3 / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_e = (rtb_Divide1_ea < 0.15); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_gs = (rtb_Divide1_ea > 4.9); - /* Logic: '/Logical Operator5' */ + /* 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 ' + /* 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' + /* Switch: '/Switch3' incorporates: + * Constant: '/Constant9' + * DataStoreWrite: '/Data Store Write3' */ if (rtb_LogicalOperator6) { - rtb_Gain2_ay = 230; + rtb_y_ar = 230; } else { - rtb_Gain2_ay = rtb_uDLookupTable7[2]; + rtb_y_ar = rtb_uDLookupTable7_g[2]; } - /* End of Switch: '/Switch3' */ + /* End of Switch: '/Switch3' */ - /* Product: '/Divide8' incorporates: - * Constant: '/Constant10' - * Constant: '/Constant11' + /* Product: '/Divide8' incorporates: + * Constant: '/Constant10' + * Constant: '/Constant11' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide7' + * Product: '/Divide7' */ rtb_Divide8 = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct4 / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_n2 = (rtb_Divide8 < 0.15); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_jt = (rtb_Divide8 > 4.9); - /* Logic: '/Logical Operator7' */ + /* 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 ' + /* 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' + /* Switch: '/Switch4' incorporates: + * Constant: '/Constant12' + * DataStoreWrite: '/Data Store Write4' */ if (rtb_LogicalOperator8) { - rtb_y_j5 = 230; + rtb_y_h5 = 230; } else { - rtb_y_j5 = rtb_uDLookupTable7[3]; + rtb_y_h5 = rtb_uDLookupTable7_g[3]; } - /* End of Switch: '/Switch4' */ + /* End of Switch: '/Switch4' */ - /* Product: '/Divide10' incorporates: - * Constant: '/Constant13' - * Constant: '/Constant14' + /* Product: '/Divide10' incorporates: + * Constant: '/Constant13' + * Constant: '/Constant14' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide9' + * Product: '/Divide9' */ rtb_Divide10 = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct5 / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_h2 = (rtb_Divide10 < 0.15); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_nq = (rtb_Divide10 > 4.9); - /* Logic: '/Logical Operator9' */ + /* 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 ' + /* 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_k2 = 230; + rtb_y_lg = 230; } else { - rtb_y_k2 = rtb_uDLookupTable7[4]; + rtb_y_lg = rtb_uDLookupTable7_g[4]; } - /* End of Switch: '/Switch5' */ + /* End of Switch: '/Switch5' */ - /* Product: '/Divide11' incorporates: - * Constant: '/Constant16' - * Constant: '/Constant17' + /* Product: '/Divide11' incorporates: + * Constant: '/Constant16' + * Constant: '/Constant17' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide12' + * Product: '/Divide12' */ rtb_Divide11 = (double)rtDW.ADC_Data_Model.Sensor_Front_Duct6 / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_ck = (rtb_Divide11 < 0.15); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_ofn = (rtb_Divide11 > 4.9); - /* Logic: '/Logical Operator12' */ + /* 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 ' + /* 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) { - Duct6_F = 230; + rtb_y_ck = 230; } else { - Duct6_F = rtb_uDLookupTable7[5]; + rtb_y_ck = 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; - /* 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' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.dtc_state_error_model[18] = rtb_Compare_au; - /* 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; } 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_is_ending_with_5; + 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_is_ending_with_5) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + if (rtb_LogicalOperator4_fo) { + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.dtc_state_error_model[20] = rtb_Compare_m; - /* 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; } 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; - /* 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' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.dtc_state_error_model[22] = rtb_Compare_e; - /* 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; } 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; - /* 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' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.dtc_state_error_model[24] = rtb_Compare_n2; - /* 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; } 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; } 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; - /* 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; } 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_lp); + printf("Duct1_F = %d * 0.1 C\n", rtb_y_fe); 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_cy); + printf("Duct2_F = %d * 0.1 C\n", rtb_y_bf); 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_Gain2_ay); + printf("Duct3_F = %d * 0.1 C\n", rtb_y_ar); 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_j5); + printf("Duct4_F = %d * 0.1 C\n", rtb_y_h5); 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_k2); + printf("Duct5_F = %d * 0.1 C\n", rtb_y_lg); 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", Duct6_F); + printf("Duct6_F = %d * 0.1 C\n", rtb_y_ck); 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) { @@ -17601,13 +16495,13 @@ 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_is_ending_with_5) { + 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", @@ -17615,10 +16509,10 @@ void HVAC_model_step(void) 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) { @@ -17629,10 +16523,10 @@ void HVAC_model_step(void) 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) { @@ -17643,10 +16537,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) { @@ -17657,10 +16551,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) { @@ -17671,468 +16565,468 @@ 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)) { 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)) { 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; } - /* 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; } - /* 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; } - /* 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)) { 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: '/Divide5' incorporates: + * Constant: '/Constant6' + * Constant: '/Constant7' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide4' + * Product: '/Divide4' */ rtb_Divide1 = (double)rtDW.ADC_Data_Model.Sensor_Rear_Duct3 / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_h2 = (rtb_Divide1 < 0.15); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_nq = (rtb_Divide1 > 4.9); - /* Logic: '/Logical Operator5' */ + /* Logic: '/Logical Operator5' */ rtb_Compare_m = (rtb_Compare_h2 || rtb_Compare_nq); - /* Logic: '/Logical Operator6' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read4' - * RelationalOperator: '/Compare' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' + /* Logic: '/Logical Operator6' 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' + /* 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' + * DataStoreWrite: '/Data Store Write1' + * Lookup_n-D: '/1-D Lookup Table4' + * SignalConversion generated from: '/1-D Lookup Table4' */ if (rtb_Compare_e) { - Duct1_R = 230; + rtb_MultiportSwitch_ae = 230; } else { - Duct1_R = look1_iu16bs16lu64n32ts16Ds32_binlcs - (rtDW.ADC_Data_Model.Sensor_Rear_Duct3, rtConstP.pooled58, - rtConstP.pooled57, 1023U); + rtb_MultiportSwitch_ae = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtDW.ADC_Data_Model.Sensor_Rear_Duct3, rtConstP.pooled62, + rtConstP.pooled61, 1023U); } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Product: '/Divide7' incorporates: - * Constant: '/Constant10' - * Constant: '/Constant9' + /* Product: '/Divide7' incorporates: + * Constant: '/Constant10' + * Constant: '/Constant9' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide6' + * Product: '/Divide6' */ rtb_Divide1_cf = (double)rtDW.ADC_Data_Model.Sensor_Rear_Duct4 / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_ck = (rtb_Divide1_cf < 0.15); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_ofn = (rtb_Divide1_cf > 4.9); - /* Logic: '/Logical Operator7' */ + /* 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 ' + /* 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 - rtDW.t_start_delay_private_DSTATE_o >= 3000U)); - /* Switch: '/Switch3' incorporates: - * Constant: '/Constant11' + /* Switch: '/Switch3' incorporates: + * Constant: '/Constant11' * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write2' - * Lookup_n-D: '/1-D Lookup Table4' - * SignalConversion generated from: '/1-D Lookup Table4' + * DataStoreWrite: '/Data Store Write2' + * Lookup_n-D: '/1-D Lookup Table4' + * SignalConversion generated from: '/1-D Lookup Table4' */ if (rtb_Compare_gs) { - Duct2_R = 230; + rtb_Bias1_h = 230; } else { - Duct2_R = look1_iu16bs16lu64n32ts16Ds32_binlcs - (rtDW.ADC_Data_Model.Sensor_Rear_Duct4, rtConstP.pooled58, - rtConstP.pooled57, 1023U); + rtb_Bias1_h = look1_iu16bs16lu64n32ts16Ds32_binlcs + (rtDW.ADC_Data_Model.Sensor_Rear_Duct4, rtConstP.pooled62, + rtConstP.pooled61, 1023U); } - /* End of Switch: '/Switch3' */ + /* End of Switch: '/Switch3' */ - /* Product: '/Divide1' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' + /* Product: '/Divide1' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide' + * Product: '/Divide' */ rtb_Divide1_ea = (double)rtDW.ADC_Data_Model.Sensor_Rear_Duct1 / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_em = (rtb_Divide1_ea < 0.15); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_p = (rtb_Divide1_ea > 4.9); - /* Logic: '/Logical Operator' */ + /* 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 ' + /* 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: '/Switch' incorporates: + * Constant: '/Constant2' * 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) { Duct3_R = 230; } else { Duct3_R = look1_iu16bs16lu64n32ts16Ds32_binlcs - (rtDW.ADC_Data_Model.Sensor_Rear_Duct1, rtConstP.pooled58, - rtConstP.pooled57, 1023U); + (rtDW.ADC_Data_Model.Sensor_Rear_Duct1, rtConstP.pooled62, + rtConstP.pooled61, 1023U); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Product: '/Divide3' incorporates: - * Constant: '/Constant3' - * Constant: '/Constant4' + /* Product: '/Divide3' incorporates: + * Constant: '/Constant3' + * Constant: '/Constant4' * DataStoreRead: '/Data Store Read1' - * Product: '/Divide2' + * Product: '/Divide2' */ rtb_Divide8 = (double)rtDW.ADC_Data_Model.Sensor_Rear_Duct2 / 4095.0 * 5.0; - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_kmz = (rtb_Divide8 < 0.15); - /* RelationalOperator: '/Compare' incorporates: - * Constant: '/Constant' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' */ rtb_Compare_lb = (rtb_Divide8 > 4.9); - /* Logic: '/Logical Operator2' */ + /* 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 ' + /* 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' + /* 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' + * DataStoreWrite: '/Data Store Write4' + * Lookup_n-D: '/1-D Lookup Table4' + * SignalConversion generated from: '/1-D Lookup Table4' */ if (rtb_Compare_jt) { Duct4_R = 230; } else { Duct4_R = look1_iu16bs16lu64n32ts16Ds32_binlcs - (rtDW.ADC_Data_Model.Sensor_Rear_Duct2, rtConstP.pooled58, - rtConstP.pooled57, 1023U); + (rtDW.ADC_Data_Model.Sensor_Rear_Duct2, rtConstP.pooled62, + rtConstP.pooled61, 1023U); } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* 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; - /* 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' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.dtc_state_error_model[30] = rtb_Compare_em; - /* 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; } 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; - /* 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' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.dtc_state_error_model[32] = rtb_Compare_kmz; - /* 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; } 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; - /* 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' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.dtc_state_error_model[34] = 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[33] = rtb_Compare_nq; } 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; - /* 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' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.dtc_state_error_model[36] = rtb_Compare_ck; - /* 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; } 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 Read1' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write3' + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct1_R = %d * 0.1 C %d V\n',Sensor, int16(V)); */ - rtb_Saturation2_a = rtDW.ADC_Data_Model.Sensor_Rear_Duct1; + Gain = rtDW.ADC_Data_Model.Sensor_Rear_Duct1; if (rtDW.ADC_Data_Model.Sensor_Rear_Duct1 > 32767) { - rtb_Saturation2_a = 32767U; + Gain = 32767U; } - printf("Duct1_R = %d * 0.1 C %d V\n", Duct3_R, (int16_t)rtb_Saturation2_a); + printf("Duct1_R = %d * 0.1 C %d V\n", Duct3_R, (int16_t)Gain); 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' - * DataStoreWrite: '/Data Store Write4' + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write4' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct2_R = %d * 0.1 C %d V\n',Sensor, int16(V)); */ - rtb_Saturation2_a = rtDW.ADC_Data_Model.Sensor_Rear_Duct2; + Gain = rtDW.ADC_Data_Model.Sensor_Rear_Duct2; if (rtDW.ADC_Data_Model.Sensor_Rear_Duct2 > 32767) { - rtb_Saturation2_a = 32767U; + Gain = 32767U; } - printf("Duct2_R = %d * 0.1 C %d V\n", Duct4_R, (int16_t)rtb_Saturation2_a); + printf("Duct2_R = %d * 0.1 C %d V\n", Duct4_R, (int16_t)Gain); 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 Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreWrite: '/Data Store Write1' + * DataStoreRead: '/Data Store Read2' + * DataStoreWrite: '/Data Store Write1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct3_R = %d * 0.1 C %d V\n',Sensor, int16(V)); */ - rtb_Saturation2_a = rtDW.ADC_Data_Model.Sensor_Rear_Duct3; + Gain = rtDW.ADC_Data_Model.Sensor_Rear_Duct3; if (rtDW.ADC_Data_Model.Sensor_Rear_Duct3 > 32767) { - rtb_Saturation2_a = 32767U; + Gain = 32767U; } - printf("Duct3_R = %d * 0.1 C %d V\n", Duct1_R, (int16_t)rtb_Saturation2_a); + printf("Duct3_R = %d * 0.1 C %d V\n", rtb_MultiportSwitch_ae, (int16_t)Gain); 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 Read1' - * DataStoreRead: '/Data Store Read3' - * DataStoreWrite: '/Data Store Write2' + * DataStoreRead: '/Data Store Read3' + * DataStoreWrite: '/Data Store Write2' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct4_R = %d * 0.1 C %d V\n',Sensor, int16(V)); */ - rtb_Saturation2_a = rtDW.ADC_Data_Model.Sensor_Rear_Duct4; + Gain = rtDW.ADC_Data_Model.Sensor_Rear_Duct4; if (rtDW.ADC_Data_Model.Sensor_Rear_Duct4 > 32767) { - rtb_Saturation2_a = 32767U; + Gain = 32767U; } - printf("Duct4_R = %d * 0.1 C %d V\n", Duct2_R, (int16_t)rtb_Saturation2_a); + printf("Duct4_R = %d * 0.1 C %d V\n", rtb_Bias1_h, (int16_t)Gain); 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) { @@ -18143,10 +17037,10 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR' */ + /* 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_Compare_jt) { @@ -18157,10 +17051,10 @@ 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_Compare_e) { @@ -18171,10 +17065,10 @@ void HVAC_model_step(void) 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_Compare_gs) { @@ -18185,157 +17079,153 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR3' */ + /* 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_au && (!rtDW.Cond_prev_private_DSTATE_l)) { rtDW.t_start_delay_private_DSTATE_oj = 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_gl && (!rtDW.Cond_prev_private_DSTATE_ja)) { rtDW.t_start_delay_private_DSTATE_oy = 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_m && (!rtDW.Cond_prev_private_DSTATE_g)) { rtDW.t_start_delay_private_DSTATE_cd = 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_i && (!rtDW.Cond_prev_private_DSTATE_cd)) { 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 Write' - * UnitDelay: '/Unit Delay' - * UnitDelay: '/Unit Delay1' - * UnitDelay: '/Unit Delay' - * UnitDelay: '/Unit Delay' + /* 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' */ 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.UnitDelay_DSTATE_da; + rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_Raw_FL_ro = rtDW.Incar_FL; 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.UnitDelay1_DSTATE_k; + rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_Raw_FR_ro = rtDW.Incar_FR; 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.UnitDelay_DSTATE_my; + rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_Raw_RL_ro = rtDW.Incar_RL; 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.UnitDelay_DSTATE_lt; + rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_Raw_RR_ro = rtDW.Incar_RR; rtDW.dbgCAN_dbg_Sen_Incar_model.dbg_Sen_Incar_RR_ro = rtDW.Incar_RR; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ rtDW.dtc_state_error_model[2] = rtb_LogicalOperator1_n; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ if (rtb_LogicalOperator1_n) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ - rtDW.dtc_state_error_model[3] = rtb_Compare_a; + rtDW.dtc_state_error_model[3] = rtb_Compare_p1p; - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataTypeConversion: '/Data Type Conversion2' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataTypeConversion: '/Data Type Conversion2' */ rtDW.dtc_state_error_model[2] = rtb_Compare_bu; } 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' + /* 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; - /* 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; } 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' + /* 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_FLU_tg_correct_o); + rtb_u8Vtg_FX_plus); fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR' */ + /* 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) { @@ -18346,132 +17236,132 @@ 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' - * UnitDelay: '/Unit Delay' + /* MATLAB Function: '/Write IncarFL' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write1' */ /* : 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_da); + printf("IncarFL = %d * 0.1 C\n", rtDW.Incar_FL); fflush(stdout); } - /* End of MATLAB Function: '/Write IncarFL' */ + /* End of MATLAB Function: '/Write IncarFL' */ - /* MATLAB Function: '/Write IncarRL' incorporates: - * DataStoreRead: '/Data Store Read1' - * UnitDelay: '/Unit Delay' + /* MATLAB Function: '/Write IncarRL' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write4' */ /* : 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_my); + printf("IncarRL = %d * 0.1 C\n", rtDW.Incar_RL); fflush(stdout); } - /* End of MATLAB Function: '/Write IncarRL' */ + /* 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: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' */ - if (rtb_Compare_ot && (!rtDW.Cond_prev_private_DSTATE_e)) { + if (rtb_LogicalOperator5 && (!rtDW.Cond_prev_private_DSTATE_e)) { rtDW.t_start_delay_private_DSTATE_go = 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_FailCond_lt && (!rtDW.Cond_prev_private_DSTATE_mv)) { rtDW.t_start_delay_private_DSTATE_j = rtDW.t_now; } - /* 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[4] = rtb_LogicalOperator1_m2; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ if (rtb_LogicalOperator1_m2) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataTypeConversion: '/Data Type Conversion1' */ rtDW.dtc_state_error_model[5] = rtb_Compare_kt; - /* 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; } else { - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.dtc_state_error_model[5] = 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[8] = rtb_LogicalOperator3_p5; - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * Switch: '/Switch1' + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * Switch: '/Switch1' */ if (rtb_LogicalOperator3_p5) { - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataTypeConversion: '/Data Type Conversion1' + /* 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' + /* 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 ERROR' incorporates: + * DataStoreRead: '/Data Store Read' */ /* : 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_Product_fy); + rtb_Divide1_l5); fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR' */ + /* 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_p5) { @@ -18482,335 +17372,1536 @@ void HVAC_model_step(void) fflush(stdout); } - /* End of MATLAB Function: '/Write ERROR1' */ + /* End of MATLAB Function: '/Write ERROR1' */ - /* MATLAB Function: '/Write IncarFR' incorporates: - * DataStoreRead: '/Data Store Read' - * UnitDelay: '/Unit Delay1' + /* MATLAB Function: '/Write IncarFR' incorporates: + * DataStoreRead: '/Data Store Read' + * DataStoreWrite: '/Data Store Write3' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('IncarFR = %d * 0.1 C\n',IncarFR); */ - printf("IncarFR = %d * 0.1 C\n", rtDW.UnitDelay1_DSTATE_k); + printf("IncarFR = %d * 0.1 C\n", rtDW.Incar_FR); fflush(stdout); } - /* End of MATLAB Function: '/Write IncarFR' */ + /* End of MATLAB Function: '/Write IncarFR' */ - /* MATLAB Function: '/Write IncarRR' incorporates: - * DataStoreRead: '/Data Store Read1' - * UnitDelay: '/Unit Delay' + /* MATLAB Function: '/Write IncarRR' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreWrite: '/Data Store Write5' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('IncarRR = %d * 0.1 C\n',IncarRR); */ - printf("IncarRR = %d * 0.1 C\n", rtDW.UnitDelay_DSTATE_lt); + printf("IncarRR = %d * 0.1 C\n", rtDW.Incar_RR); fflush(stdout); } - /* End of MATLAB Function: '/Write IncarRR' */ + /* 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 ' + /* 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_m4 && (!rtDW.Cond_prev_private_DSTATE_jl)) { + if (rtb_Compare_dq && (!rtDW.Cond_prev_private_DSTATE_jl)) { rtDW.t_start_delay_private_DSTATE_k = 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_FailCond_h && (!rtDW.Cond_prev_private_DSTATE_ei)) { rtDW.t_start_delay_private_DSTATE_gd = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Write new FR' */ - rtDW.Temp_FR_store = rtb_Merge1; + /* 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; /* 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_Divide1 = (double)rtDW.ADC_Data_Model.BTS5120_2EKA_ShutoffValvePowerTXV1 / - 4095.0 * 5.0; + rtb_u8Vtg_FX_plus = (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_Divide1, - rtb_Divide1 / 1200.0 * 550.0); + printf("BTS5120_2EKA_ShutoffValvePowerTXV1 V = %f Iout = %f\n", + rtb_u8Vtg_FX_plus, rtb_u8Vtg_FX_plus / 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_Divide1 = (double)rtDW.ADC_Data_Model.BTS5120_2EKA_ShutoffValvePowerTXV2 / - 4095.0 * 5.0; + rtb_u8Vtg_FX_plus = (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_Divide1, - rtb_Divide1 / 1200.0 * 550.0); + printf("BTS5120_2EKA_ShutoffValvePowerTXV2 V = %f Iout = %f\n", + rtb_u8Vtg_FX_plus, rtb_u8Vtg_FX_plus / 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_Divide1 = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_ChannelPTCPower1 / + rtb_u8Vtg_FX_plus = (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_Divide1, - rtb_Divide1 / 1200.0 * 550.0); + printf("BTS5180_2EKA_ChannelPTCPower1 V = %f Iout = %f\n", rtb_u8Vtg_FX_plus, + rtb_u8Vtg_FX_plus / 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_Divide1 = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_ChannelPTCPower2 / + rtb_u8Vtg_FX_plus = (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_Divide1, - rtb_Divide1 / 1200.0 * 550.0); + printf("BTS5180_2EKA_ChannelPTCPower2 V = %f Iout = %f\n", rtb_u8Vtg_FX_plus, + rtb_u8Vtg_FX_plus / 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_Divide1 = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_FrontIncarMotor / + rtb_u8Vtg_FX_plus = (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_Divide1, - rtb_Divide1 / 1200.0 * 550.0); + printf("BTS5180_2EKA_FrontIncarMotor V = %f Iout = %f\n", rtb_u8Vtg_FX_plus, + rtb_u8Vtg_FX_plus / 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_Divide1 = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_RearIncarMotor / 4095.0 - * 5.0; + rtb_u8Vtg_FX_plus = (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_Divide1, - rtb_Divide1 / 1200.0 * 550.0); + printf("BTS5180_2EKA_RearIncarMotor V = %f Iout = %f\n", rtb_u8Vtg_FX_plus, + rtb_u8Vtg_FX_plus / 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_Divide1 = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_ReservePowerSupply / - 4095.0 * 5.0; + rtb_u8Vtg_FX_plus = (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_Divide1, - rtb_Divide1 / 1200.0 * 550.0); + printf("BTS5180_2EKA_ReservePowerSupply V = %f Iout = %f\n", + rtb_u8Vtg_FX_plus, rtb_u8Vtg_FX_plus / 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_Divide1 = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_ShutOFFValveFront / - 4095.0 * 5.0; + rtb_u8Vtg_FX_plus = (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_Divide1, - rtb_Divide1 / 1200.0 * 550.0); + printf("BTS5180_2EKA_ShutOFFValveFront V = %f Iout = %f\n", + rtb_u8Vtg_FX_plus, rtb_u8Vtg_FX_plus / 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_Divide1 = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_ShutOFFValveRear / + rtb_u8Vtg_FX_plus = (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_Divide1, - rtb_Divide1 / 1200.0 * 550.0); + printf("BTS5180_2EKA_ShutOFFValveRear V = %f Iout = %f\n", rtb_u8Vtg_FX_plus, + rtb_u8Vtg_FX_plus / 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_Divide1 = (double)rtDW.ADC_Data_Model.BTS5180_2EKA_TwoWayValve / 4095.0 * - 5.0; + rtb_u8Vtg_FX_plus = (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_Divide1, - rtb_Divide1 / 1200.0 * 550.0); + printf("BTS5180_2EKA_TwoWayValve V = %f Iout = %f\n", rtb_u8Vtg_FX_plus, + rtb_u8Vtg_FX_plus / 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 Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18820,15 +18911,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 Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18838,15 +18929,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 Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18856,15 +18947,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 Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18874,15 +18965,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 Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18892,15 +18983,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 Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18910,15 +19001,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 Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18928,15 +19019,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 Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18947,15 +19038,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 Read1' - * DataStoreRead: '/Data Store Read' - * Product: '/Divide' - * Product: '/Divide1' + * DataStoreRead: '/Data Store Read' + * Product: '/Divide' + * Product: '/Divide1' */ /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { @@ -18966,59 +19057,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_Divide1 = (double) + rtb_u8Vtg_FX_plus = (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_Divide1, rtb_Divide1 / 2490.0 * 5890.0); + rtb_u8Vtg_FX_plus, rtb_u8Vtg_FX_plus / 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_Divide1 = (double)rtDW.ADC_Data_Model.VN7008AJ_RearLINActuatorPowerDriverC - / 4095.0 * 5.0; + rtb_u8Vtg_FX_plus = (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_Divide1, rtb_Divide1 / 2490.0 * 5890.0); + rtb_u8Vtg_FX_plus, rtb_u8Vtg_FX_plus / 2490.0 * 5890.0); fflush(stdout); } - /* End of MATLAB Function: '/Write' */ + /* End of MATLAB Function: '/Write' */ /* MATLAB Function: '/Write' incorporates: * DataStoreRead: '/Data Store Read2' @@ -19189,9 +19280,9 @@ void HVAC_model_step(void) /* DataStoreWrite: '/Data Store Write37' */ rtDW.CCU_DEF_FL = rtB.out_def_i; - /* Logic: '/Logical Operator' incorporates: + /* Logic: '/Logical Operator' incorporates: * DataStoreRead: '/Data Store Read10' - * DataStoreWrite: '/Data Store Write' + * 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) || @@ -19201,504 +19292,553 @@ void HVAC_model_step(void) (rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompTorqueStallErr_Stat != 0) || (rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompVoltSensErr_Stat != 0)); - /* Gain: '/Gain' incorporates: + /* Gain: '/Gain' incorporates: * DataStoreRead: '/Data Store Read10' - * DataStoreWrite: '/Data Store Write' + * DataStoreWrite: '/Data Store Write' */ rtDW.eComp_InputC = (uint16_t) (rtDW.HVC_ERR_STATUS_MSG_MODEL.HVC_CompInputC_Val_ro << 7); - /* Bias: '/Bias' incorporates: + /* Bias: '/Bias' incorporates: * DataStoreRead: '/Data Store Read10' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' + * 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' + /* RelationalOperator: '/Compare' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read11' */ - rtb_Merge1 = (int16_t)floor((0.01 * (double) - rtDW.CCUCAN_BCM_Powertrain_model.BCM_AmbTempRaw_ro - 40.0) * 10.0); + rtb_Compare_p1p = (rtDW.TM_CP_model.CCPF_RecButton_Stat > 0); - /* If: '/If' incorporates: - * RelationalOperator: '/Relational Operator1' - * UnitDelay: '/Unit Delay' + /* RelationalOperator: '/FixPt Relational Operator' incorporates: + * UnitDelay: '/Delay Input1' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM */ - 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_Merge1; + rtb_Compare_bu = ((int32_t)rtb_Compare_p1p > (int32_t)rtDW.DelayInput1_DSTATE); - /* SignalConversion generated from: '/AMB_out' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtb_FLU_tg_correct_o = rtDW.AMB_store; + /* Chart: '/Full_Rec_Active' incorporates: + * DataStoreWrite: '/Data Store Write9' + */ + if (rtDW.is_active_c836_HVAC_model == 0U) { + rtDW.is_active_c836_HVAC_model = 1U; + rtDW.is_c836_HVAC_model = IN_REC_OFF; - /* End of Outputs for SubSystem: '/Инициализация температуры' */ + /* : Full_Rec_Active = 0; */ + rtDW.Full_Rec = 0U; + } else if (rtDW.is_c836_HVAC_model == IN_REC_OFF) { + rtDW.Full_Rec = 0U; + + /* : sf_internal_predicateOutput = Btn_Pulse==1; */ + if (rtb_Compare_bu) { + rtDW.is_c836_HVAC_model = IN_REC_ON; + + /* : Full_Rec_Active = 1; */ + rtDW.Full_Rec = 1U; + } } else { - /* Outputs for IfAction SubSystem: '/Фильтрация температуры' incorporates: - * ActionPort: '/Action Port' - */ - /* Lookup_n-D: '/Get LVL for temp' incorporates: - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion1' - */ - rtb_y_pc = rtConstP.pooled48[plook_u32s16_bincka(rtb_Merge1, - rtConstP.GetLVLfortemp_bp01Data, 5U)]; + /* case IN_REC_ON: */ + rtDW.Full_Rec = 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_Merge1, rtb_y_pc, &rtb_Merge_j, &rtDW.AMB_store, - &rtDW.KEEP_RISING_UNTIL_LIMIT); + /* : sf_internal_predicateOutput = Btn_Pulse==1; */ + if (rtb_Compare_bu) { + rtDW.is_c836_HVAC_model = IN_REC_OFF; - /* End of Outputs for SubSystem: '/включен ускоренный режим' */ - } else { - /* Outputs for IfAction SubSystem: '/обычный режим' incorporates: - * ActionPort: '/Action Port' - */ - u_a5(rtb_Merge1, rtb_y_pc, &rtb_Merge_j, &rtDW.AMB_store, - &rtDW.KEEP_RISING_UNTIL_LIMIT); - - /* End of Outputs for SubSystem: '/обычный режим' */ + /* : Full_Rec_Active = 0; */ + rtDW.Full_Rec = 0U; } - - /* 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_Merge1, rtb_y_pc, &rtb_Merge_hu, &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_Merge1, rtb_y_pc, &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_dt_ca = 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' - */ - u_hd(rtb_Merge1, rtb_y_pc, &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_Merge1, rtb_y_pc, &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_Merge1, rtb_y_pc, &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_Merge1, rtb_y_pc, &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_Merge1 - rtDW.AMB_store) <= 0.01) { - /* SignalConversion generated from: '/AMB_new' */ - rtb_Divide1 = rtDW.AMB_store; - } else { - if (rtb_Merge1 > rtDW.AMB_store) { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - */ - rtb_y_pc = rtb_Merge_g; - } else { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * UnaryMinus: '/Unary Minus' - */ - rtb_y_pc = (int16_t)-rtb_Merge_m2; - } - - /* SignalConversion generated from: '/AMB_new' incorporates: - * Constant: '/Constant' - * Product: '/Divide' - * Product: '/Product' - * Sum: '/Add' - * Switch: '/Switch' - */ - rtb_Divide1 = (double)rtb_dt_ca / 60000.0 * (double)rtb_y_pc + - 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_Merge1, rtb_y_pc, &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_Merge1, rtb_y_pc, &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_Merge1, rtb_y_pc, &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_Merge1, rtb_y_pc, &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_Merge1 - rtDW.AMB_store) <= 0.01) { - /* SignalConversion generated from: '/AMB_new' */ - rtb_Divide1 = rtDW.AMB_store; - } else { - if (rtb_Merge1 > rtDW.AMB_store) { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - */ - rtb_y_pc = rtb_Merge_g; - } else { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * UnaryMinus: '/Unary Minus' - */ - rtb_y_pc = (int16_t)-rtb_Merge_m2; - } - - /* SignalConversion generated from: '/AMB_new' incorporates: - * Constant: '/Constant' - * Product: '/Divide' - * Product: '/Product' - * Sum: '/Add' - * Switch: '/Switch' - */ - rtb_Divide1 = (double)rtb_dt_ca / 60000.0 * (double)rtb_y_pc + - 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_y_pc + 1; - if (rtb_y_pc + 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_y_pc); - 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_Merge1 - rtDW.AMB_store) <= 0.01) { - rtb_Divide1 = rtb_Merge1; - } else { - if (rtb_Merge1 > 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_Divide1 = look1_iu16td_binlc(rtDW.VehicleSpeed, - rtConstP.uDLookupTable1_bp01Data, rtb_f_lower_upper_bounds, 1U); - } else { - rtb_Divide1 = 0.5; - } - - /* End of Switch: '/Скорость >10' */ - } else { - /* MATLAB Function: '/обычное понижение темп.' incorporates: - * MATLAB Function: '/границы' - */ - i = rtb_y_pc + 1; - if (rtb_y_pc + 1 > 32767) { - i = 32767; - } - - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * MATLAB Function: '/обычное понижение темп.' - * UnaryMinus: '/Unary Minus' - */ - rtb_Divide1 = -(double)g_aucAMBRATE_FALLING[i - 1]; - } - - rtb_Divide1 = (double)rtb_dt_ca / 60000.0 * rtb_Divide1 + 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_Merge1 - rtDW.AMB_store) > 0.01) { - /* Switch: '/Switch' incorporates: - * DataTypeConversion: '/Data Type Conversion' - * DataTypeConversion: '/Data Type Conversion' - * RelationalOperator: '/AMBraw > AMB' - * UnaryMinus: '/Unary Minus' - */ - if (rtb_Merge1 > rtDW.AMB_store) { - rtb_y_pc = rtb_Merge_j; - } else { - rtb_y_pc = (int16_t)-rtb_Merge_hu; - } - - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant' - * Product: '/Divide' - * Product: '/Product' - * Sum: '/Add' - * Switch: '/Switch' - */ - rtDW.AMB_store += (double)rtb_dt_ca / 60000.0 * (double)rtb_y_pc; - } - - /* End of Switch: '/Switch1' */ - } else if (rtDW.VehicleSpeed != 0) { - /* Switch: '/Switch1' incorporates: - * DataStoreWrite: '/Write new AMB' - * Switch: '/Switch' - */ - rtDW.AMB_store = rtb_Divide1; - } - - /* End of Switch: '/Switch' */ - - /* SignalConversion generated from: '/AMB_out' incorporates: - * DataStoreWrite: '/Write new AMB' - */ - rtb_FLU_tg_correct_o = rtDW.AMB_store; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/Data Store Read15' - */ - rtDW.UnitDelay_DSTATE = rtDW.t_now; - - /* End of Outputs for SubSystem: '/Фильтрация температуры' */ } - /* End of If: '/If' */ + /* End of Chart: '/Full_Rec_Active' */ - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* 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(rtb_FLU_tg_correct_o); + rtb_Bias5 = (int16_t)floor((0.01 * (double) + rtDW.CCUCAN_BCM_Powertrain_model.BCM_AmbTempRaw_ro - 40.0) * 10.0); - /* Gain: '/Gain' incorporates: + /* Outputs for Atomic SubSystem: '/Фильтрация температуры' */ + /* Lookup_n-D: '/Get LVL for temp' incorporates: + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion1' + */ + 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' + */ + u_hd(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_j, &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_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' + */ + u_de(rtb_Bias5, rtb_FLU_tg_correct_g, &rtb_Merge_hu, &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_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 (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' + */ + rtb_FLU_tg_correct_g = rtb_Merge_g; + } else { + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * UnaryMinus: '/Unary Minus' + */ + rtb_FLU_tg_correct_g = (int16_t)-rtb_Merge_m2; + } + + /* SignalConversion generated from: '/AMB_new' incorporates: + * Constant: '/Constant' + * Product: '/Divide' + * Product: '/Product' + * 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 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' + */ + rtb_FLU_tg_correct_g = rtb_Merge_g; + } else { + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * UnaryMinus: '/Unary Minus' + */ + rtb_FLU_tg_correct_g = (int16_t)-rtb_Merge_m2; + } + + /* SignalConversion generated from: '/AMB_new' incorporates: + * Constant: '/Constant' + * Product: '/Divide' + * Product: '/Product' + * 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' + */ + rtb_u8Vtg_FX_plus = look1_iu16td_binlc(rtDW.VehicleSpeed, + rtConstP.uDLookupTable1_bp01Data, rtb_f_lower_upper_bounds, 1U); + } else { + rtb_u8Vtg_FX_plus = 0.5; + } + + /* End of Switch: '/Скорость >10' */ + } else { + /* MATLAB Function: '/обычное понижение темп.' incorporates: + * MATLAB Function: '/границы' + */ + i = rtb_FLU_tg_correct_g + 1; + if (rtb_FLU_tg_correct_g + 1 > 32767) { + i = 32767; + } + + /* Switch: '/Switch' incorporates: + * DataTypeConversion: '/Data Type Conversion' + * MATLAB Function: '/обычное понижение темп.' + * UnaryMinus: '/Unary Minus' + */ + rtb_u8Vtg_FX_plus = -(double)g_aucAMBRATE_FALLING[i - 1]; + } + + 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' + */ + if (rtb_Bias5 > rtDW.AMB_store) { + rtb_FLU_tg_correct_g = rtb_Merge_j; + } else { + rtb_FLU_tg_correct_g = (int16_t)-rtb_Merge_hu; + } + + /* 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' */ + } else if (rtDW.VehicleSpeed != 0) { + /* Switch: '/Switch1' incorporates: + * DataStoreWrite: '/Write new AMB' + * Switch: '/Switch' + */ + rtDW.AMB_store = rtb_u8Vtg_FX_plus; + } + + /* 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: '/Фильтрация температуры' */ + + /* 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: * 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); @@ -19719,12 +19859,12 @@ void HVAC_model_step(void) rtDW.SeatOccupied = rtDW.CCUCAN_OCURL_MSG_model.OCURL_SeatOccupied_Stat; /* 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); } @@ -19732,16 +19872,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; } @@ -19749,22 +19889,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; } @@ -19772,17 +19912,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; } @@ -19790,17 +19930,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; } @@ -19808,12 +19948,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; @@ -19821,18 +19961,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; @@ -19840,10 +19980,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; } @@ -19851,24 +19991,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; } @@ -19876,14 +20016,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: @@ -19899,17 +20039,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); } @@ -19917,197 +20057,191 @@ 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' + /* 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.0) * 10.0); + 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; - } else if (rtDW.CCU_SET_FL < 155) { - /* DataTypeConversion: '/Data Type Conversion1' */ - rtDW.CCU_SET_FL = 155U; } - /* 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.0) * 10.0); + 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; - } else if (rtDW.CCU_SET_FR < 155) { - /* DataTypeConversion: '/Data Type Conversion1' */ - rtDW.CCU_SET_FR = 155U; } - /* 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; } @@ -20115,11 +20249,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); @@ -20128,11 +20262,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); @@ -20142,86 +20276,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.0) * 10.0); + 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; - } else if (rtDW.CCU_SET_RL < 155) { - /* DataTypeConversion: '/Data Type Conversion1' */ - rtDW.CCU_SET_RL = 155U; } - /* 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; } @@ -20229,11 +20360,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; } @@ -20241,17 +20372,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; } @@ -20259,86 +20390,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.0) * 10.0); + 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; - } else if (rtDW.CCU_SET_RR < 155) { - /* DataTypeConversion: '/Data Type Conversion1' */ - rtDW.CCU_SET_RR = 155U; } - /* 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; } @@ -20346,16 +20474,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; } @@ -20363,11 +20491,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; } @@ -20375,17 +20503,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; } @@ -20393,17 +20521,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; } @@ -20411,12 +20539,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; @@ -20424,10 +20552,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; } @@ -20435,12 +20563,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; @@ -20448,10 +20576,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; } @@ -20459,24 +20587,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; } @@ -20484,16 +20612,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; } @@ -20501,33 +20629,33 @@ 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' */ + /* 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' */ + /* End of Outputs for SubSystem: '/sync off rear action' */ } - /* End of If: '/If' */ + /* End of If: '/If' */ } /* End of DataStoreRead: '/Data Store Read2' */ @@ -20577,99 +20705,99 @@ void HVAC_model_step(void) rtDW.CCU_STAT1_MODEL.CCU_Recirculation_Stat = rtDW.CCU_RECIRC; rtDW.CCU_STAT1_MODEL.CCU_BlowerSpeedFL_Stat = rtDW.CCU_BLOWERS_FL; - /* Saturate: '/Saturation' incorporates: + /* Saturate: '/Saturation' incorporates: * DataStoreRead: '/Data Store Read13' */ if (rtDW.CCU_SET_FL > 310) { - rtb_Saturation2_a = 310U; + Gain = 310U; } else if (rtDW.CCU_SET_FL < 155) { - rtb_Saturation2_a = 155U; + Gain = 155U; } else { - rtb_Saturation2_a = rtDW.CCU_SET_FL; + Gain = rtDW.CCU_SET_FL; } /* BusCreator: '/Bus Creator' incorporates: - * Bias: '/Bias' + * Bias: '/Bias' * DataStoreRead: '/Data Store Read12' * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - * Saturate: '/Saturation' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + * Saturate: '/Saturation' */ rtDW.CCU_STAT1_MODEL.CCU_TargetTempFL_Stat_ro = (uint8_t)((0.10000038146972656 - * (double)rtb_Saturation2_a - 15.5) * 2.0); + * (double)Gain - 16.0) * 2.0); rtDW.CCU_STAT1_MODEL.CCU_BlowerSpeedFR_Stat = rtDW.CCU_BLOWERS_FR; - /* Saturate: '/Saturation' incorporates: + /* Saturate: '/Saturation' incorporates: * DataStoreRead: '/Data Store Read14' */ if (rtDW.CCU_SET_FR > 310) { - rtb_Saturation2_a = 310U; + Gain = 310U; } else if (rtDW.CCU_SET_FR < 155) { - rtb_Saturation2_a = 155U; + Gain = 155U; } else { - rtb_Saturation2_a = rtDW.CCU_SET_FR; + Gain = rtDW.CCU_SET_FR; } /* BusCreator: '/Bus Creator' incorporates: - * Bias: '/Bias1' + * Bias: '/Bias1' * DataStoreRead: '/Data Store Read26' * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - * Saturate: '/Saturation' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + * Saturate: '/Saturation' */ rtDW.CCU_STAT1_MODEL.CCU_TargetTempFR_Stat_ro = (uint8_t)((0.10000038146972656 - * (double)rtb_Saturation2_a - 15.5) * 2.0); + * (double)Gain - 16.0) * 2.0); rtDW.CCU_STAT1_MODEL.CCU_BlowerSpeedRL_Stat = rtDW.CCU_BLOWERS_RL; - /* Saturate: '/Saturation' incorporates: + /* Saturate: '/Saturation' incorporates: * DataStoreRead: '/Data Store Read15' */ if (rtDW.CCU_SET_RR > 310) { - rtb_Saturation2_a = 310U; + Gain = 310U; } else if (rtDW.CCU_SET_RR < 155) { - rtb_Saturation2_a = 155U; + Gain = 155U; } else { - rtb_Saturation2_a = rtDW.CCU_SET_RR; + Gain = rtDW.CCU_SET_RR; } /* BusCreator: '/Bus Creator' incorporates: - * Bias: '/Bias' + * Bias: '/Bias' * DataStoreRead: '/Data Store Read25' * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - * Saturate: '/Saturation' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + * Saturate: '/Saturation' */ rtDW.CCU_STAT1_MODEL.CCU_TargetTempRR_Stat_ro = (uint8_t)((0.10000038146972656 - * (double)rtb_Saturation2_a - 15.5) * 2.0); + * (double)Gain - 16.0) * 2.0); rtDW.CCU_STAT1_MODEL.CCU_BlowerSpeedRR_Stat = rtDW.CCU_BLOWERS_RR; - /* Saturate: '/Saturation' incorporates: + /* Saturate: '/Saturation' incorporates: * DataStoreRead: '/Data Store Read16' */ if (rtDW.CCU_SET_RL > 310) { - rtb_Saturation2_a = 310U; + Gain = 310U; } else if (rtDW.CCU_SET_RL < 155) { - rtb_Saturation2_a = 155U; + Gain = 155U; } else { - rtb_Saturation2_a = rtDW.CCU_SET_RL; + Gain = rtDW.CCU_SET_RL; } /* BusCreator: '/Bus Creator' incorporates: - * Bias: '/Bias' + * Bias: '/Bias' * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - * Saturate: '/Saturation' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + * Saturate: '/Saturation' */ rtDW.CCU_STAT1_MODEL.CCU_TargetTempRL_Stat_ro = (uint8_t)((0.10000038146972656 - * (double)rtb_Saturation2_a - 15.5) * 2.0); + * (double)Gain - 16.0) * 2.0); /* BusCreator: '/Bus Creator1' incorporates: * DataStoreRead: '/Data Store Read27' @@ -20707,24 +20835,24 @@ void HVAC_model_step(void) * 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' + * 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_is_ending_with_5 || rtb_LogicalOperator6 || rtb_LogicalOperator8 || + 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); @@ -20748,14 +20876,29 @@ void HVAC_model_step(void) 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' + */ + rtDW.CCUCAN_HVC_REQ_MSG_MODEL.CCU_eCompSpeedReq_Val_ro = (uint8_t)rpm_phys; + } else { + /* BusCreator: '/Bus Creator3' incorporates: + * DataStoreWrite: '/Data Store Write3' + */ + 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' - * MATLAB Function: '/MATLAB Function' */ - rtDW.CCUCAN_HVC_REQ_MSG_MODEL.CCU_eCompSpeedReq_Val_ro = (uint8_t)rpm_phys; 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; @@ -20793,45 +20936,65 @@ void HVAC_model_step(void) rtDW.CCU_Msg3_model.CCU_MSG3_RC = 0U; rtDW.CCU_Msg3_model.CCU_MSG3_CS = 0U; - /* DataTypeConversion: '/Data Type Conversion' */ + /* 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' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read' + * Gain: '/Gain' + * Product: '/Divide' */ - rtb_y_pc = rtDW.MaxPositionCh0_private[i]; - if (rtb_y_pc != 0) { - rtb_Divide1 = (double)Actuator_Ch0_Status_Model.in_CPOS_ALL[i] / (double) - rtb_y_pc * 100.0; + 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; } else { - rtb_Divide1 = 0.0; + rtb_u8Vtg_FX_plus = 0.0; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Saturate: '/Saturation' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* Saturate: '/Saturation' incorporates: + * DataTypeConversion: '/Data Type Conversion' */ - if (rtb_Divide1 > 100.0) { + if (rtb_u8Vtg_FX_plus > 100.0) { rtb_DataTypeConversion_bh[i] = 100U; - } else if (rtb_Divide1 < 0.0) { + } else if (rtb_u8Vtg_FX_plus < 0.0) { rtb_DataTypeConversion_bh[i] = 0U; } else { - rtb_DataTypeConversion_bh[i] = (uint8_t)rtb_Divide1; + rtb_DataTypeConversion_bh[i] = (uint8_t)rtb_u8Vtg_FX_plus; } - /* 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; @@ -20839,40 +21002,40 @@ void HVAC_model_step(void) rtb_y_b2 = 1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* SwitchCase: '/Switch Case' */ + /* SwitchCase: '/Switch Case' */ switch (rtb_y_b2) { 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); - /* 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) { @@ -20881,55 +21044,55 @@ 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_f1 = rtb_y_b2; - /* 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); - /* 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) { @@ -20938,55 +21101,55 @@ void HVAC_model_step(void) 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_f1 = rtb_y_b2; - /* 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); - /* 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) { @@ -20995,79 +21158,79 @@ 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_f1 = rtb_y_b2; - /* 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); - /* 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) { @@ -21076,35 +21239,35 @@ 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_f1 = rtb_y_b2; - /* 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] = @@ -21113,10 +21276,10 @@ void HVAC_model_step(void) (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]; for (i = 0; i < 8; i++) { @@ -21124,43 +21287,43 @@ void HVAC_model_step(void) rtb_LogicalOperator3_i5[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) { - /* 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); - /* 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) { @@ -21169,54 +21332,54 @@ 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_f1 = rtb_y_b2; - /* 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); - /* 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) { @@ -21225,77 +21388,77 @@ 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_f1 = rtb_y_b2; - /* 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); - /* 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) { @@ -21304,35 +21467,35 @@ 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_f1 = rtb_y_b2; - /* 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] = @@ -21341,10 +21504,10 @@ void HVAC_model_step(void) (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]; for (i = 0; i < 8; i++) { @@ -21352,43 +21515,43 @@ void HVAC_model_step(void) rtb_LogicalOperator3_i5[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) { - /* 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); - /* 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) { @@ -21397,74 +21560,75 @@ 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_f1 = rtb_y_b2; - /* 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_oo[i] = (double)rtDW.MaxPositionCh0_private[i] / (double) + rtb_Divide1_e[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_Divide1 = rtb_Divide1_oo[i]; + /* RelationalOperator: '/Compare' */ + rtb_u8Vtg_FX_plus = rtb_Divide1_e[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_Divide1 >= 0.5) && (rtb_Divide1 <= 1.9)); + rtb_LogicalOperator1 = ((rtb_u8Vtg_FX_plus >= 0.5) && (rtb_u8Vtg_FX_plus + <= 1.9)); rtb_LogicalOperator3_i5[i] = rtb_LogicalOperator1; - /* 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] != 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) { @@ -21477,85 +21641,85 @@ void HVAC_model_step(void) /* : 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_oo[i], (int16_t)!rtb_LogicalOperator3_i5[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' */ + /* Logic: '/Logical Operator1' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && rtb_LogicalOperator3_i5[i + 1]); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator1' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator1' */ if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_ac = 4; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' */ rtB.Merge_ac = 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_oo[i] > 1.5); + rtb_LogicalOperator3_i5[i] = (rtb_Divide1_e[i] > 1.5); } - /* End of RelationalOperator: '/Compare' */ + /* End of RelationalOperator: '/Compare' */ - /* Logic: '/Logical Operator' */ + /* Logic: '/Logical Operator' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || rtb_LogicalOperator3_i5[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; 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; - /* 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)); - /* 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' incorporates: + * DataStoreRead: '/Data Store Read6' */ /* : if(LOGGER>=0) */ if (rtDW.LOGGER_LIN >= 0.0) { @@ -21570,35 +21734,35 @@ 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' */ + /* Logic: '/Logical Operator1' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_i5[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] != 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; } - /* 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: '/Data Store Read5' + * DataStoreRead: '/MIN ACT1T 1' + * DataStoreWrite: '/Data Store Write' */ /* : if(LOGGER>0) */ if (rtDW.LOGGER_LIN > 0.0) { @@ -21613,16 +21777,16 @@ void HVAC_model_step(void) /* : 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_oo[i], (int16_t)rtDW.ErrorCalibration_private[i]); + rtb_Divide1_e[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); for (i = 0; i < 8; i++) { @@ -21630,55 +21794,55 @@ void HVAC_model_step(void) (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' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_ac = 2; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_ac = 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_Divide1 = rtb_Divide1_oo[i]; + /* RelationalOperator: '/Compare' */ + rtb_u8Vtg_FX_plus = rtb_Divide1_e[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_Divide1 < 0.97) || (rtb_Divide1 > 1.03)) && - (rtDW.ErrorCalibration_private[i] != 0)); + 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; - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * DataStoreWrite: '/Data Store Write1' */ rtDW.ErrorCalibration_private[i] = rtb_LogicalOperator1; } - /* 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) { @@ -21693,211 +21857,194 @@ void HVAC_model_step(void) /* : 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_oo[i], 1); + rtb_Divide1_e[i], 1); fflush(stdout); } } } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* Logic: '/Logical Operator2' */ + /* Logic: '/Logical Operator2' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || rtb_LogicalOperator3_i5[i + 1]); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator2' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator2' */ if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant3' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant3' */ rtB.Merge_ac = 3; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_ac = 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) { /* : fprintf("[LIN 1] Homing 3. Start Time on step %d\n",int16(step)); */ - rtb_Divide1 = rt_roundd(rtDW.ErrorHomming_private); - if (rtb_Divide1 < 32768.0) { - if (rtb_Divide1 >= -32768.0) { - rtb_y_pc = (int16_t)rtb_Divide1; + 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_y_pc = INT16_MIN; + rtb_FLU_tg_correct_g = INT16_MIN; } } else { - rtb_y_pc = INT16_MAX; + rtb_FLU_tg_correct_g = INT16_MAX; } - printf("[LIN 1] Homing 3. Start Time on step %d\n", rtb_y_pc); + printf("[LIN 1] Homing 3. Start Time on step %d\n", rtb_FLU_tg_correct_g); 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 < 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_e, + MATLABFunction(rtDW.Start_timer_n, rtDW.t_now, &rtb_dt_an, &rtDW.sf_MATLABFunction_h); - /* 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) { /* : fprintf("[LIN 1] Homing 3. Start TIme dt = %d \n",int32(data)); */ - rtb_dt_ca = rtb_dt_e; - if (rtb_dt_e > 2147483647U) { - rtb_dt_ca = 2147483647U; + 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_dt_ca); + printf("[LIN 1] Homing 3. Start TIme dt = %d \n", (int32_t) + rtb_Subtract); fflush(stdout); } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* If: '/If' */ - if (rtb_dt_e > 30000U) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* If: '/If' */ + if (rtb_dt_an > 30000U) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' */ + /* Merge: '/Merge' */ IfActionSubsystem(&rtB.Merge_ac, &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_cc[i]; + rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_out_dwb[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_CCU_DuctTempSenErrR_Stat_n; + rtDW.BUS_ADR_private[1] = rtb_Switch_m5; - /* DataStoreRead: '/Data Store Read3' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read3' incorporates: + * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[2] = rtb_Saturation4_l; + rtDW.BUS_ADR_private[2] = rtb_u_gnq; - /* Switch: '/Switch1' incorporates: - * Concatenate: '/Vector Concatenate' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write10' + /* DataStoreRead: '/Data Store Read' incorporates: + * Concatenate: '/Vector Concatenate' */ - if (rtB.Cmd_FrontTemp > 0.0) { - rtDW.BUS_ADR_private[3] = rtDW.PID_TempFUL; - } else { - rtDW.BUS_ADR_private[3] = 0U; - } + rtDW.BUS_ADR_private[3] = rtDW.PID_TempFUL; - /* End of Switch: '/Switch1' */ - - /* 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]; - /* Switch: '/Switch2' incorporates: - * Concatenate: '/Vector Concatenate' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read6' - * DataStoreWrite: '/Data Store Write10' + /* DataStoreRead: '/Data Store Read6' incorporates: + * Concatenate: '/Vector Concatenate' */ - if (rtB.Cmd_FrontTemp > 0.0) { - rtDW.BUS_ADR_private[6] = rtDW.PID_TempFLL; - } else { - rtDW.BUS_ADR_private[6] = 0U; - } + rtDW.BUS_ADR_private[6] = rtDW.PID_TempFLL; - /* End of Switch: '/Switch2' */ - - /* 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' */ + /* Product: '/Product' */ Valve_2_way = 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.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); } - /* Logic: '/Logical Operator' */ + /* Logic: '/Logical Operator' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && @@ -21905,11 +22052,11 @@ void HVAC_model_step(void) } 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) { rtDW.COM_private[i] = 0U; @@ -21917,171 +22064,153 @@ void HVAC_model_step(void) 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.pooled98[i]); + rtConstP.pooled106[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; - /* 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); - /* 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_cc[i]; + rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_out_dwb[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_CCU_DuctTempSenErrR_Stat_n; + rtDW.BUS_ADR_private[1] = rtb_Switch_m5; - /* DataStoreRead: '/Data Store Read3' incorporates: - * Concatenate: '/Vector Concatenate' + /* DataStoreRead: '/Data Store Read3' incorporates: + * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[2] = rtb_Saturation4_l; + rtDW.BUS_ADR_private[2] = rtb_u_gnq; - /* Switch: '/Switch1' incorporates: - * Concatenate: '/Vector Concatenate' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write10' + /* DataStoreRead: '/Data Store Read' incorporates: + * Concatenate: '/Vector Concatenate' */ - if (rtB.Cmd_FrontTemp > 0.0) { - rtDW.BUS_ADR_private[3] = rtDW.PID_TempFUL; - } else { - rtDW.BUS_ADR_private[3] = 0U; - } + rtDW.BUS_ADR_private[3] = rtDW.PID_TempFUL; - /* End of Switch: '/Switch1' */ - - /* 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]; - /* Switch: '/Switch2' incorporates: - * Concatenate: '/Vector Concatenate' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read6' - * DataStoreWrite: '/Data Store Write10' + /* DataStoreRead: '/Data Store Read6' incorporates: + * Concatenate: '/Vector Concatenate' */ - if (rtB.Cmd_FrontTemp > 0.0) { - rtDW.BUS_ADR_private[6] = rtDW.PID_TempFLL; - } else { - rtDW.BUS_ADR_private[6] = 0U; - } + rtDW.BUS_ADR_private[6] = rtDW.PID_TempFLL; - /* End of Switch: '/Switch2' */ - - /* 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' */ + /* Product: '/Product' */ Valve_2_way = 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.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); } - /* Logic: '/Logical Operator' */ + /* Logic: '/Logical Operator' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && @@ -22089,11 +22218,11 @@ void HVAC_model_step(void) } 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) { rtDW.COM_private[i] = 0U; @@ -22101,86 +22230,86 @@ void HVAC_model_step(void) 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.pooled98[i]); + rtConstP.pooled106[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; - /* 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' */ + /* DataStoreWrite: '/Data Store Write2' */ rtDW.stepHoming_private = rtB.Merge_ac; - /* 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]; @@ -22192,14 +22321,14 @@ 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); } - /* Logic: '/Logical Operator' */ + /* Logic: '/Logical Operator' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || @@ -22207,77 +22336,77 @@ void HVAC_model_step(void) } 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) { rtDW.BUS_ADR_private[i] = (uint8_t)((uint32_t) - rtDW.ErrorCalibration_private[i] * rtConstP.pooled98[i]); + rtDW.ErrorCalibration_private[i] * rtConstP.pooled106[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_y_pc = rtDW.MaxPositionCh1_private[i]; - if (rtb_y_pc != 0) { - rtb_Divide1 = (double)Actuator_Ch1_Status_Model.in_CPOS_ALL[i] / (double) - rtb_y_pc * 100.0; + 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; } else { - rtb_Divide1 = 0.0; + rtb_u8Vtg_FX_plus = 0.0; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Saturate: '/Saturation' */ - if (rtb_Divide1 > 100.0) { + /* Saturate: '/Saturation' */ + if (rtb_u8Vtg_FX_plus > 100.0) { rtb_DataTypeConversion_bq[i] = 100U; - } else if (rtb_Divide1 < 0.0) { + } else if (rtb_u8Vtg_FX_plus < 0.0) { rtb_DataTypeConversion_bq[i] = 0U; } else { - rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_Divide1; + rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_u8Vtg_FX_plus; } - /* 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; @@ -22285,40 +22414,40 @@ void HVAC_model_step(void) rtb_y_b2 = 1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* SwitchCase: '/Switch Case' */ + /* SwitchCase: '/Switch Case' */ switch (rtb_y_b2) { 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); - /* 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) { @@ -22327,55 +22456,55 @@ 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; - /* 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); - /* 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) { @@ -22384,55 +22513,55 @@ void HVAC_model_step(void) 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; - /* 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); - /* 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) { @@ -22441,79 +22570,79 @@ 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; - /* 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); - /* 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) { @@ -22522,35 +22651,35 @@ 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; - /* 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] = @@ -22559,10 +22688,10 @@ void HVAC_model_step(void) (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]; for (i = 0; i < 5; i++) { @@ -22570,43 +22699,43 @@ void HVAC_model_step(void) rtb_LogicalOperator3_n1[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) { - /* 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); - /* 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) { @@ -22626,54 +22755,54 @@ 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; - /* 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); - /* 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) { @@ -22682,79 +22811,79 @@ 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; - /* 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); - /* 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) { @@ -22763,35 +22892,35 @@ 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; - /* 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] = @@ -22800,10 +22929,10 @@ void HVAC_model_step(void) (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]; for (i = 0; i < 5; i++) { @@ -22811,24 +22940,24 @@ void HVAC_model_step(void) rtb_LogicalOperator3_n1[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) { - /* 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] = @@ -22837,19 +22966,19 @@ 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); - /* 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) { @@ -22869,81 +22998,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_e = rtb_y_b2; - /* 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_oo[i] = (double)rtDW.MaxPositionCh1_private[i] / (double) + rtb_Divide1_e[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_oo[6] = 1.0; - rtb_Divide1_oo[7] = 1.0; - rtb_Divide1_oo[8] = 1.0; + rtb_Divide1_e[6] = 1.0; + rtb_Divide1_e[7] = 1.0; + rtb_Divide1_e[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_Divide1 = rtb_Divide1_oo[i]; + /* RelationalOperator: '/Compare' */ + rtb_u8Vtg_FX_plus = rtb_Divide1_e[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_Divide1 >= 0.9) && (rtb_Divide1 <= 1.1)); + rtb_LogicalOperator1 = ((rtb_u8Vtg_FX_plus >= 0.9) && (rtb_u8Vtg_FX_plus + <= 1.1)); rtb_LogicalOperator3_i5[i] = rtb_LogicalOperator1; - /* 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] != 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) { @@ -22956,85 +23086,85 @@ 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_oo[i], (int16_t)!rtb_LogicalOperator3_i5[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' */ + /* Logic: '/Logical Operator1' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && rtb_LogicalOperator3_i5[i + 1]); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator1' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator1' */ if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* 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_oo[i] > 1.5); + rtb_LogicalOperator3_i5[i] = (rtb_Divide1_e[i] > 1.5); } - /* End of RelationalOperator: '/Compare' */ + /* End of RelationalOperator: '/Compare' */ - /* Logic: '/Logical Operator' */ + /* Logic: '/Logical Operator' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || rtb_LogicalOperator3_i5[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; 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; - /* 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)); - /* 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) { @@ -23049,35 +23179,35 @@ 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' */ + /* Logic: '/Logical Operator1' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_i5[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] != 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; } - /* 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) { @@ -23092,16 +23222,16 @@ 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_oo[i], (int16_t)rtDW.ErrorCalibration_private_p[i]); + rtb_Divide1_e[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); for (i = 0; i < 8; i++) { @@ -23109,55 +23239,56 @@ void HVAC_model_step(void) (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' + /* 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_Divide1 = rtb_Divide1_oo[i]; + /* RelationalOperator: '/Compare' */ + rtb_u8Vtg_FX_plus = rtb_Divide1_e[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_Divide1 < 0.97) || (rtb_Divide1 > 1.03)) && - (rtDW.ErrorCalibration_private_p[i] != 0)); + 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; - /* 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; } - /* 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) { @@ -23172,214 +23303,197 @@ 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_oo[i], 1); + rtb_Divide1_e[i], 1); fflush(stdout); } } } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* Logic: '/Logical Operator2' */ + /* Logic: '/Logical Operator2' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || rtb_LogicalOperator3_i5[i + 1]); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator2' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator2' */ if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant3' + /* 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) { /* : fprintf("[LIN 2] Homing 3. Start Time on step %d\n",int16(step)); */ - rtb_Divide1 = rt_roundd(rtDW.ErrorHomming_private_h); - if (rtb_Divide1 < 32768.0) { - if (rtb_Divide1 >= -32768.0) { - rtb_y_pc = (int16_t)rtb_Divide1; + 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; } else { - rtb_y_pc = INT16_MIN; + rtb_FLU_tg_correct_g = INT16_MIN; } } else { - rtb_y_pc = INT16_MAX; + rtb_FLU_tg_correct_g = INT16_MAX; } - printf("[LIN 2] Homing 3. Start Time on step %d\n", rtb_y_pc); + printf("[LIN 2] Homing 3. Start Time on step %d\n", rtb_FLU_tg_correct_g); 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_e, + MATLABFunction(rtDW.Start_timer_j, rtDW.t_now, &rtb_dt_an, &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) { /* : fprintf("[LIN 2] Homing 3. Start TIme dt = %d \n",int32(data)); */ - rtb_dt_ca = rtb_dt_e; - if (rtb_dt_e > 2147483647U) { - rtb_dt_ca = 2147483647U; + rtb_Subtract = rtb_dt_an; + if (rtb_dt_an > 2147483647U) { + rtb_Subtract = 2147483647U; } - printf("[LIN 2] Homing 3. Start TIme dt = %d \n", (int32_t)rtb_dt_ca); + printf("[LIN 2] Homing 3. Start TIme dt = %d \n", (int32_t) + rtb_Subtract); fflush(stdout); } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* If: '/If' */ - if (rtb_dt_e > 30000U) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* If: '/If' */ + if (rtb_dt_an > 30000U) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' */ + /* Merge: '/Merge' */ IfActionSubsystem(&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; - /* Switch: '/Switch2' incorporates: - * Concatenate: '/LIN1' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write10' + /* DataStoreRead: '/Data Store Read' incorporates: + * Concatenate: '/LIN1' */ - if (rtB.Cmd_FrontTemp > 0.0) { - rtDW.BUS_ADR_private_j[0] = rtDW.PID_TempFUR; - } else { - rtDW.BUS_ADR_private_j[0] = 0U; - } + rtDW.BUS_ADR_private_j[0] = rtDW.PID_TempFUR; - /* End of Switch: '/Switch2' */ - - /* 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_cc[i]; + rtb_DataTypeConversion_fb[i] = (uint8_t)rtb_out_dwb[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]; - /* Switch: '/Switch3' incorporates: - * Concatenate: '/LIN1' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read2' - * DataStoreWrite: '/Data Store Write10' + /* DataStoreRead: '/Data Store Read2' incorporates: + * Concatenate: '/LIN1' */ - if (rtB.Cmd_FrontTemp > 0.0) { - rtDW.BUS_ADR_private_j[3] = rtDW.PID_TempFRL; - } else { - rtDW.BUS_ADR_private_j[3] = 0U; - } + rtDW.BUS_ADR_private_j[3] = rtDW.PID_TempFRL; - /* End of Switch: '/Switch3' */ - - /* 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' */ + /* Product: '/Product' */ Valve_2_way = 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.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); } - /* Logic: '/Logical Operator' */ + /* Logic: '/Logical Operator' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && @@ -23387,11 +23501,11 @@ void HVAC_model_step(void) } 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) { rtDW.COM_private_g[i] = 0U; @@ -23399,174 +23513,156 @@ void HVAC_model_step(void) 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.pooled98[i]); + rtConstP.pooled106[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); - /* 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' */ - /* Switch: '/Switch2' incorporates: - * Concatenate: '/LIN1' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read' - * DataStoreWrite: '/Data Store Write10' + /* DataStoreRead: '/Data Store Read' incorporates: + * Concatenate: '/LIN1' */ - if (rtB.Cmd_FrontTemp > 0.0) { - rtDW.BUS_ADR_private_j[0] = rtDW.PID_TempFUR; - } else { - rtDW.BUS_ADR_private_j[0] = 0U; - } + rtDW.BUS_ADR_private_j[0] = rtDW.PID_TempFUR; - /* End of Switch: '/Switch2' */ - - /* 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_cc[i]; + rtb_DataTypeConversion_fb[i] = (uint8_t)rtb_out_dwb[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]; - /* Switch: '/Switch3' incorporates: - * Concatenate: '/LIN1' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read2' - * DataStoreWrite: '/Data Store Write10' + /* DataStoreRead: '/Data Store Read2' incorporates: + * Concatenate: '/LIN1' */ - if (rtB.Cmd_FrontTemp > 0.0) { - rtDW.BUS_ADR_private_j[3] = rtDW.PID_TempFRL; - } else { - rtDW.BUS_ADR_private_j[3] = 0U; - } + rtDW.BUS_ADR_private_j[3] = rtDW.PID_TempFRL; - /* End of Switch: '/Switch3' */ - - /* 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' */ + /* Product: '/Product' */ Valve_2_way = 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.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); } - /* Logic: '/Logical Operator' */ + /* Logic: '/Logical Operator' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && @@ -23574,11 +23670,11 @@ void HVAC_model_step(void) } 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) { rtDW.COM_private_g[i] = 0U; @@ -23586,54 +23682,54 @@ void HVAC_model_step(void) 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.pooled98[i]); + rtConstP.pooled106[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) { @@ -23642,41 +23738,41 @@ void HVAC_model_step(void) 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]; @@ -23690,30 +23786,30 @@ 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); } - /* End of RelationalOperator: '/Compare' */ + /* End of RelationalOperator: '/Compare' */ - /* Logic: '/Logical Operator' */ + /* Logic: '/Logical Operator' */ rtb_LogicalOperator1_n = rtb_Compare_le[0]; for (i = 0; i < 5; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || rtb_Compare_le[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) { @@ -23724,71 +23820,71 @@ 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_y_pc = rtDW.MaxPositionCh2_private[i]; - if (rtb_y_pc != 0) { - rtb_Divide1 = (double)Actuator_Ch2_Status_Model.in_CPOS_ALL[i] / (double) - rtb_y_pc * 100.0; + 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; } else { - rtb_Divide1 = 0.0; + rtb_u8Vtg_FX_plus = 0.0; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Saturate: '/Saturation' */ - if (rtb_Divide1 > 100.0) { + /* Saturate: '/Saturation' */ + if (rtb_u8Vtg_FX_plus > 100.0) { rtb_DataTypeConversion_bq[i] = 100U; - } else if (rtb_Divide1 < 0.0) { + } else if (rtb_u8Vtg_FX_plus < 0.0) { rtb_DataTypeConversion_bq[i] = 0U; } else { - rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_Divide1; + rtb_DataTypeConversion_bq[i] = (uint8_t)rtb_u8Vtg_FX_plus; } - /* 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; @@ -23796,40 +23892,40 @@ void HVAC_model_step(void) rtb_y_b2 = 1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* SwitchCase: '/Switch Case' */ + /* SwitchCase: '/Switch Case' */ switch (rtb_y_b2) { 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); - /* 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) { @@ -23838,55 +23934,55 @@ 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; - /* 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); - /* 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) { @@ -23895,55 +23991,55 @@ void HVAC_model_step(void) 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; - /* 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); - /* 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) { @@ -23952,79 +24048,79 @@ 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; - /* 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); - /* 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) { @@ -24033,35 +24129,35 @@ 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; - /* 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) @@ -24069,53 +24165,53 @@ void HVAC_model_step(void) (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]; for (i = 0; i < 7; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && rtb_Compare_le[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) { - /* 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); - /* 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) { @@ -24135,54 +24231,54 @@ 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; - /* 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); - /* 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) { @@ -24191,79 +24287,79 @@ 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; - /* 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); - /* 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) { @@ -24272,35 +24368,35 @@ 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; - /* 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) @@ -24308,34 +24404,34 @@ void HVAC_model_step(void) || (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]; for (i = 0; i < 7; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && rtb_Compare_le[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) { - /* 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] = @@ -24344,19 +24440,19 @@ 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); - /* 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) { @@ -24376,79 +24472,80 @@ 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; - /* 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_oo[i] = (double)rtDW.MaxPositionCh2_private[i] / (double) + rtb_Divide1_e[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_oo[8] = 1.0; + rtb_Divide1_e[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_Divide1 = rtb_Divide1_oo[i]; + /* RelationalOperator: '/Compare' */ + rtb_u8Vtg_FX_plus = rtb_Divide1_e[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_Divide1 >= 0.9) && (rtb_Divide1 <= 1.1)); + rtb_LogicalOperator1 = ((rtb_u8Vtg_FX_plus >= 0.9) && (rtb_u8Vtg_FX_plus + <= 1.1)); rtb_LogicalOperator3_i5[i] = rtb_LogicalOperator1; - /* 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] != 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) { @@ -24461,85 +24558,85 @@ 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_oo[i], (int16_t)!rtb_LogicalOperator3_i5[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' */ + /* Logic: '/Logical Operator1' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && rtb_LogicalOperator3_i5[i + 1]); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator1' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator1' */ if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_h = 4; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' */ rtB.Merge_h = 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_oo[i] > 1.5); + rtb_LogicalOperator3_i5[i] = (rtb_Divide1_e[i] > 1.5); } - /* End of RelationalOperator: '/Compare' */ + /* End of RelationalOperator: '/Compare' */ - /* Logic: '/Logical Operator' */ + /* Logic: '/Logical Operator' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || rtb_LogicalOperator3_i5[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; 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; - /* 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)); - /* 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) { @@ -24554,35 +24651,35 @@ 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' */ + /* Logic: '/Logical Operator1' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_i5[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] != 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; } - /* 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) { @@ -24597,16 +24694,16 @@ 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_oo[i], (int16_t)rtDW.ErrorCalibration_private_b[i]); + rtb_Divide1_e[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); for (i = 0; i < 8; i++) { @@ -24614,55 +24711,56 @@ void HVAC_model_step(void) (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' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_h = 2; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_h = 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_Divide1 = rtb_Divide1_oo[i]; + /* RelationalOperator: '/Compare' */ + rtb_u8Vtg_FX_plus = rtb_Divide1_e[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_Divide1 < 0.97) || (rtb_Divide1 > 1.03)) && - (rtDW.ErrorCalibration_private_b[i] != 0)); + 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; - /* 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; } - /* 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) { @@ -24677,203 +24775,196 @@ 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_oo[i], 1); + rtb_Divide1_e[i], 1); fflush(stdout); } } } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* Logic: '/Logical Operator2' */ + /* Logic: '/Logical Operator2' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || rtb_LogicalOperator3_i5[i + 1]); } - /* Switch: '/Switch' incorporates: - * Logic: '/Logical Operator2' + /* Switch: '/Switch' incorporates: + * Logic: '/Logical Operator2' */ if (rtb_LogicalOperator1_n) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant3' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant3' */ rtB.Merge_h = 3; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_h = 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) { /* : fprintf("[LIN 3] Homing 3. Start Time on step %d\n",int16(step)); */ - rtb_Divide1 = rt_roundd(rtDW.ErrorHomming_private_m); - if (rtb_Divide1 < 32768.0) { - if (rtb_Divide1 >= -32768.0) { - rtb_y_pc = (int16_t)rtb_Divide1; + 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; } else { - rtb_y_pc = INT16_MIN; + rtb_FLU_tg_correct_g = INT16_MIN; } } else { - rtb_y_pc = INT16_MAX; + rtb_FLU_tg_correct_g = INT16_MAX; } - printf("[LIN 3] Homing 3. Start Time on step %d\n", rtb_y_pc); + printf("[LIN 3] Homing 3. Start Time on step %d\n", rtb_FLU_tg_correct_g); 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_e, + MATLABFunction(rtDW.Start_timer, rtDW.t_now, &rtb_dt_an, &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) { /* : fprintf("[LIN 3] Homing 3. Start TIme dt = %d \n",int32(data)); */ - rtb_dt_ca = rtb_dt_e; - if (rtb_dt_e > 2147483647U) { - rtb_dt_ca = 2147483647U; + rtb_Subtract = rtb_dt_an; + if (rtb_dt_an > 2147483647U) { + rtb_Subtract = 2147483647U; } - printf("[LIN 3] Homing 3. Start TIme dt = %d \n", (int32_t)rtb_dt_ca); + printf("[LIN 3] Homing 3. Start TIme dt = %d \n", (int32_t) + rtb_Subtract); fflush(stdout); } - /* End of MATLAB Function: '/MAX POSITION' */ + /* End of MATLAB Function: '/MAX POSITION' */ - /* If: '/If' */ - if (rtb_dt_e > 30000U) { - /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + /* If: '/If' */ + if (rtb_dt_an > 30000U) { + /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' */ + /* Merge: '/Merge' */ IfActionSubsystem(&rtB.Merge_h, &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; - /* Switch: '/Switch1' incorporates: - * Concatenate: '/Vector Concatenate' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read2' - * DataStoreWrite: '/Data Store Write28' - * Switch: '/Switch2' + /* DataStoreRead: '/Data Store Read2' incorporates: + * Concatenate: '/Vector Concatenate' */ - if (rtB.Cmd_RearTemp > 0.0) { - rtDW.BUS_ADR_private_a[0] = rtDW.PID_TempRR; - rtDW.BUS_ADR_private_a[1] = rtDW.PID_TempRL; - } else { - rtDW.BUS_ADR_private_a[0] = 0U; - rtDW.BUS_ADR_private_a[1] = 0U; - } + rtDW.BUS_ADR_private_a[0] = rtDW.PID_TempRR; - /* End of Switch: '/Switch1' */ + /* 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: + * DataStoreRead: '/valves target in percent' */ for (i = 0; i < 6; i++) { - rtb_DataTypeConversion2_cs[i] = (uint8_t)rtb_Gain1_nj[i]; + rtb_DataTypeConversion2_ie[i] = (uint8_t)rtb_Gain1_nj[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_cs[0]; + 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_cs[4]; + 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_cs[1]; + 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_cs[2]; + 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_cs[5]; + 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_cs[3]; + 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' */ + /* Product: '/Product' */ Valve_2_way = 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.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); } - /* Logic: '/Logical Operator' */ + /* Logic: '/Logical Operator' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && @@ -24881,11 +24972,11 @@ void HVAC_model_step(void) } 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) { rtDW.COM_private_k[i] = 0U; @@ -24893,163 +24984,155 @@ void HVAC_model_step(void) 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.pooled98[i]); + rtConstP.pooled106[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; - /* 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); - /* 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' */ - /* Switch: '/Switch1' incorporates: - * Concatenate: '/Vector Concatenate' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read2' - * DataStoreWrite: '/Data Store Write28' - * Switch: '/Switch2' + /* DataStoreRead: '/Data Store Read2' incorporates: + * Concatenate: '/Vector Concatenate' */ - if (rtB.Cmd_RearTemp > 0.0) { - rtDW.BUS_ADR_private_a[0] = rtDW.PID_TempRR; - rtDW.BUS_ADR_private_a[1] = rtDW.PID_TempRL; - } else { - rtDW.BUS_ADR_private_a[0] = 0U; - rtDW.BUS_ADR_private_a[1] = 0U; - } + rtDW.BUS_ADR_private_a[0] = rtDW.PID_TempRR; - /* End of Switch: '/Switch1' */ + /* 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: + * DataStoreRead: '/valves target in percent' */ for (i = 0; i < 6; i++) { - rtb_DataTypeConversion2_cs[i] = (uint8_t)rtb_Gain1_nj[i]; + rtb_DataTypeConversion2_ie[i] = (uint8_t)rtb_Gain1_nj[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_cs[0]; + 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_cs[4]; + 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_cs[1]; + 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_cs[2]; + 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_cs[5]; + 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_cs[3]; + 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' */ + /* Product: '/Product' */ Valve_2_way = 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.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); } - /* Logic: '/Logical Operator' */ + /* Logic: '/Logical Operator' */ rtb_LogicalOperator1_n = rtb_LogicalOperator3_i5[0]; for (i = 0; i < 8; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n && @@ -25057,11 +25140,11 @@ void HVAC_model_step(void) } 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) { rtDW.COM_private_k[i] = 0U; @@ -25069,54 +25152,54 @@ void HVAC_model_step(void) 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.pooled98[i]); + rtConstP.pooled106[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; - /* 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) { @@ -25125,46 +25208,46 @@ void HVAC_model_step(void) 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_a = rtB.Merge_h; - /* 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' */ + /* 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]; @@ -25178,30 +25261,30 @@ 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' + /* 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); } - /* End of RelationalOperator: '/Compare' */ + /* End of RelationalOperator: '/Compare' */ - /* Logic: '/Logical Operator' */ + /* Logic: '/Logical Operator' */ rtb_LogicalOperator1_n = rtb_Compare_le[0]; for (i = 0; i < 7; i++) { rtb_LogicalOperator1_n = (rtb_LogicalOperator1_n || rtb_Compare_le[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) { @@ -25212,19 +25295,19 @@ 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; } @@ -25238,20 +25321,20 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read2' * Sum: '/Subtract' */ - rtb_Gain_pl = (int16_t)(rtb_y_hd - rtb_y_lp) * 26214; + rtb_Gain_pl = (int16_t)(rtb_FLU_tg_correct - rtb_y_fe) * 26214; - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' - * Gain: '/Proportional Gain' + /* Sum: '/Sum' incorporates: + * DiscreteIntegrator: '/Integrator' + * Gain: '/Proportional Gain' * Gain: '/Gain' - * Sum: '/SumI2' + * Sum: '/SumI2' */ rtb_SumI2_e = (int64_t)((int32_t)(((int64_t)rtb_Gain_pl << 30) >> 49) + (int32_t)(rtDW.Integrator_DSTATE >> 32)) << 32; - /* Saturate: '/Saturation' incorporates: + /* Saturate: '/Saturation' incorporates: * DataStoreWrite: '/Data Store Write' - * Sum: '/SumI2' + * Sum: '/SumI2' */ if (rtb_SumI2_e >= 429496729600LL) { rtDW.PID_TempFUL = 100U; @@ -25261,27 +25344,27 @@ void HVAC_model_step(void) rtDW.PID_TempFUL = (uint8_t)(rtb_SumI2_e >> 32); } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ /* Gain: '/Gain1' incorporates: * DataStoreRead: '/Data Store Read1' * DataStoreRead: '/Data Store Read3' * Sum: '/Subtract1' */ - rpm_phys = (int16_t)(rtb_y_ha - rtb_y_cy) * 26214; + rpm_phys = (int16_t)(rtb_Selector_p - rtb_y_bf) * 26214; - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' - * Gain: '/Proportional Gain' + /* Sum: '/Sum' incorporates: + * DiscreteIntegrator: '/Integrator' + * Gain: '/Proportional Gain' * Gain: '/Gain1' - * Sum: '/SumI2' + * 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: + /* Saturate: '/Saturation' incorporates: * DataStoreWrite: '/Data Store Write1' - * Sum: '/SumI2' + * Sum: '/SumI2' */ if (rtb_SumI2_je >= 429496729600LL) { rtDW.PID_TempFUR = 100U; @@ -25291,27 +25374,27 @@ void HVAC_model_step(void) rtDW.PID_TempFUR = (uint8_t)(rtb_SumI2_je >> 32); } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ /* Gain: '/Gain4' incorporates: * DataStoreRead: '/Data Store Read10' * DataStoreRead: '/Data Store Read6' * Sum: '/Subtract4' */ - rtb_Gain4 = (int16_t)(rtb_u0101_a - rtb_Gain2_ay) * 26214; + rtb_Gain4 = (int16_t)(rtb_FLU_tg_correct_de - rtb_y_ar) * 26214; - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' - * Gain: '/Proportional Gain' + /* Sum: '/Sum' incorporates: + * DiscreteIntegrator: '/Integrator' + * Gain: '/Proportional Gain' * Gain: '/Gain4' - * Sum: '/SumI2' + * 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: + /* Saturate: '/Saturation' incorporates: * DataStoreWrite: '/Data Store Write4' - * Sum: '/SumI2' + * Sum: '/SumI2' */ if (rtb_SumI2_b >= 429496729600LL) { rtDW.PID_TempFLL = 100U; @@ -25321,27 +25404,27 @@ void HVAC_model_step(void) rtDW.PID_TempFLL = (uint8_t)(rtb_SumI2_b >> 32); } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ /* Gain: '/Gain5' incorporates: * DataStoreRead: '/Data Store Read11' * DataStoreRead: '/Data Store Read9' * Sum: '/Subtract5' */ - rtb_Gain5 = (int16_t)(rtb_Merge_kr - rtb_y_j5) * 26214; + rtb_Gain5 = (int16_t)(rtb_FLU_tg_correct_b - rtb_y_h5) * 26214; - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' + /* Sum: '/Sum' incorporates: + * DiscreteIntegrator: '/Integrator' + * Gain: '/Proportional Gain' * Gain: '/Gain5' - * Gain: '/Proportional Gain' - * Sum: '/SumI2' + * 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: + /* Saturate: '/Saturation' incorporates: * DataStoreWrite: '/Data Store Write5' - * Sum: '/SumI2' + * Sum: '/SumI2' */ if (rtb_SumI2_c >= 429496729600LL) { rtDW.PID_TempFRL = 100U; @@ -25351,27 +25434,26 @@ void HVAC_model_step(void) rtDW.PID_TempFRL = (uint8_t)(rtb_SumI2_c >> 32); } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ /* Gain: '/Gain2' incorporates: - * DataStoreRead: '/Data Store Read4' * DataStoreRead: '/Data Store Read5' * Sum: '/Subtract2' */ - rtb_Gain2 = (int16_t)(g_assEVA_TG_AMB_F_n - Duct1_R) * 26214; + rtb_Gain2 = 26214 * (int16_t)-rtb_MultiportSwitch_ae; - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' - * Gain: '/Proportional Gain' + /* Sum: '/Sum' incorporates: + * DiscreteIntegrator: '/Integrator' + * Gain: '/Proportional Gain' * Gain: '/Gain2' - * Sum: '/SumI2' + * 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: + /* Saturate: '/Saturation' incorporates: * DataStoreWrite: '/Data Store Write2' - * Sum: '/SumI2' + * Sum: '/SumI2' */ if (rtb_SumI2_o >= 429496729600LL) { rtDW.PID_TempRL = 100U; @@ -25381,27 +25463,27 @@ void HVAC_model_step(void) 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 - Duct2_R) * 26214; + rtb_Gain3 = (int16_t)(rtDW.Duct_RR_Tg - rtb_Bias1_h) * 26214; - /* Sum: '/Sum' incorporates: - * DiscreteIntegrator: '/Integrator' - * Gain: '/Integral Gain' - * Gain: '/Proportional Gain' + /* 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: + /* Saturate: '/Saturation' incorporates: * DataStoreWrite: '/Data Store Write3' - * Gain: '/Integral Gain' + * Gain: '/Integral Gain' */ if (rtb_IntegralGain >= 429496729600LL) { rtDW.PID_TempRR = 100U; @@ -25411,7 +25493,7 @@ void HVAC_model_step(void) rtDW.PID_TempRR = (uint8_t)(rtb_IntegralGain >> 32); } - /* End of Saturate: '/Saturation' */ + /* End of Saturate: '/Saturation' */ /* Product: '/Divide' incorporates: * Constant: '/Constant' @@ -25419,17 +25501,17 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read7' * Sum: '/Add' */ - rtb_Divide1 = (double)(Comp_Max_RPM_Allowed + rtb_Switch3_ed) / 4.0; + Blower_AF_FL = floor(Blower_AF_FL + Blower_AF_FR) / 4.0; /* Switch: '/Switch' */ - if (rtb_Divide1 > 0.0) { + if (Blower_AF_FL > 0.0) { /* Saturate: '/Saturation2' */ - if (rtb_Divide1 > 80.0) { + if (Blower_AF_FL > 80.0) { /* DataTypeConversion: '/Data Type Conversion1' incorporates: * DataStoreWrite: '/Data Store Write2' */ rtDW.PWM_front = 80U; - } else if (rtb_Divide1 < 15.0) { + } else if (Blower_AF_FL < 15.0) { /* DataTypeConversion: '/Data Type Conversion1' incorporates: * DataStoreWrite: '/Data Store Write2' */ @@ -25438,7 +25520,7 @@ void HVAC_model_step(void) /* DataTypeConversion: '/Data Type Conversion1' incorporates: * DataStoreWrite: '/Data Store Write2' */ - rtDW.PWM_front = (uint8_t)rtb_Divide1; + rtDW.PWM_front = (uint8_t)Blower_AF_FL; } /* End of Saturate: '/Saturation2' */ @@ -25458,17 +25540,17 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read3' * Sum: '/Add1' */ - rtb_Divide1 = (double)(Blower_AF_RL + rtb_Saturation9) / 4.0; + Blower_AF_FL = (double)(Blower_AF_RL + rtb_Saturation9) / 4.0; /* Switch: '/Switch1' */ - if (rtb_Divide1 > 0.0) { + if (Blower_AF_FL > 0.0) { /* Saturate: '/Saturation1' */ - if (rtb_Divide1 > 80.0) { + if (Blower_AF_FL > 80.0) { /* DataTypeConversion: '/Data Type Conversion2' incorporates: * DataStoreWrite: '/Data Store Write3' */ rtDW.PWM_rear = 80U; - } else if (rtb_Divide1 < 15.0) { + } else if (Blower_AF_FL < 15.0) { /* DataTypeConversion: '/Data Type Conversion2' incorporates: * DataStoreWrite: '/Data Store Write3' */ @@ -25477,7 +25559,7 @@ void HVAC_model_step(void) /* DataTypeConversion: '/Data Type Conversion2' incorporates: * DataStoreWrite: '/Data Store Write3' */ - rtDW.PWM_rear = (uint8_t)rtb_Divide1; + rtDW.PWM_rear = (uint8_t)Blower_AF_FL; } /* End of Saturate: '/Saturation1' */ @@ -25548,287 +25630,288 @@ void HVAC_model_step(void) rtDW.PowerEnable_Model.EN_BATTChiller = (uint8_t)(EN_BATTChiller == 0); rtDW.PowerEnable_Model.EN_PowerReserve = rtDW.EN_PowerReserve; - /* Logic: '/Logical Operator' incorporates: - * Constant: '/Constant' - * Constant: '/Constant' - * Constant: '/Constant' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * Logic: '/Logical Operator1' - * RelationalOperator: '/Compare' - * RelationalOperator: '/Compare' - * RelationalOperator: '/Compare' - */ - rtb_is_ending_with_5 = ((rtDW.BCM_T15_Stat == 0) || ((rtDW.CCU_BLOWERS_RL == 0) - && (rtDW.CCU_BLOWERS_RR == 0))); - /* Outport: '/PWM_Get' incorporates: * DataStoreRead: '/Data Store Read7' */ rtY.PWM_Get_f = PWM_Get; - /* SwitchCase: '/Switch Case' incorporates: - * DataTypeConversion: '/Data Type Conversion' + /* 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 (!rtb_is_ending_with_5) { + 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' + * 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' */ } else { /* Outputs for IfAction SubSystem: '/Subsystem' incorporates: - * ActionPort: '/Action Port' + * 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 SwitchCase: '/Switch Case' */ + /* 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_FLU_tg_correct_o = fabs(rtDW.Sun_L); - if (rtb_FLU_tg_correct_o < 4.503599627370496E+15) { - if (rtb_FLU_tg_correct_o >= 0.5) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + 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' */ 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_FLU_tg_correct_o = fabs(rtDW.Sun_R); - if (rtb_FLU_tg_correct_o < 4.503599627370496E+15) { - if (rtb_FLU_tg_correct_o >= 0.5) { - /* BusCreator: '/Bus Creator' incorporates: - * DataStoreWrite: '/Data Store Write' + 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' */ 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 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' + /* 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' */ 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 = g_assEVA_TG_AMB_F_n; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FR_Upper_Tgt_ro = rtb_y_ha; + 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_RR_Tgt_ro = rtDW.Duct_RR_Tg; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Upper_Tgt_ro = rtb_y_hd; - 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_y_cy; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Upper_Fb_ro = rtb_y_lp; - 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_y_k2; + 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_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_Merge_kr; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Lower_Tgt_ro = rtb_u0101_a; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FR_Lower_Fb_ro = rtb_y_j5; - rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Lower_Fb_ro = rtb_Gain2_ay; + rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FR_Lower_Tgt_ro = + rtb_FLU_tg_correct_b; + 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; - /* 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' + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion4' + * Logic: '/Logical Operator5' */ 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 = rtB.Cmd_2Way; + rtDW.dbgCAN_CCU_IO_model.dbg_IO_2WayValve = (uint8_t)(rtB.Cmd_2Way == 0); 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) { - rtb_Saturation2_a = 310U; + Gain = 310U; } else if (rtDW.CCU_SET_FL < 155) { - rtb_Saturation2_a = 155U; + Gain = 155U; } else { - rtb_Saturation2_a = rtDW.CCU_SET_FL; + Gain = 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)rtb_Saturation2_a - 15.5) * 2.0); + (double)Gain - 16.0) * 2.0); - /* Saturate: '/Saturation' incorporates: - * DataStoreRead: '/Data Store Read3' + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read3' */ if (rtDW.CCU_SET_FR > 310) { - rtb_Saturation2_a = 310U; + Gain = 310U; } else if (rtDW.CCU_SET_FR < 155) { - rtb_Saturation2_a = 155U; + Gain = 155U; } else { - rtb_Saturation2_a = rtDW.CCU_SET_FR; + Gain = 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)rtb_Saturation2_a - 15.5) * 2.0); + (double)Gain - 16.0) * 2.0); - /* Saturate: '/Saturation' incorporates: - * DataStoreRead: '/Data Store Read4' + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read4' */ if (rtDW.CCU_SET_RL > 310) { - rtb_Saturation2_a = 310U; + Gain = 310U; } else if (rtDW.CCU_SET_RL < 155) { - rtb_Saturation2_a = 155U; + Gain = 155U; } else { - rtb_Saturation2_a = rtDW.CCU_SET_RL; + 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' + /* 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)rtb_Saturation2_a - 15.5) * 2.0); + (double)Gain - 16.0) * 2.0); - /* Saturate: '/Saturation' incorporates: - * DataStoreRead: '/Data Store Read5' + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read5' */ if (rtDW.CCU_SET_RR > 310) { - rtb_Saturation2_a = 310U; + Gain = 310U; } else if (rtDW.CCU_SET_RR < 155) { - rtb_Saturation2_a = 155U; + Gain = 155U; } else { - rtb_Saturation2_a = rtDW.CCU_SET_RR; + Gain = 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)rtb_Saturation2_a - 15.5) * 2.0); + (double)Gain - 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 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; @@ -25842,20 +25925,22 @@ void HVAC_model_step(void) rtDW.dbg_Logic_Ac_model.Logic_Ac_WinterSts_Front = 0U; rtDW.dbg_Logic_Ac_model.Logic_Ac_WinterSts_Rear = 0U; - /* BusCreator: '/Bus Creator' incorporates: - * 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 = 0U; + 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_Winter = 0U; - rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_Partial_Summer = - rtb_DataTypeConversion2_bb; + rtDW.dbgCAN_Logic_Rec_model.Logic_Rec_Partial_Summer = rtb_Saturation4_l; 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; @@ -25872,8 +25957,48 @@ void HVAC_model_step(void) 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; - rtDW.dbgCAN_Logic_State_model.Logic_Start_Ctrl_Front = 0U; - rtDW.dbgCAN_Logic_State_model.Logic_Start_Ctrl_Rear = 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_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; @@ -25881,10 +26006,10 @@ 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 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]; @@ -25895,11 +26020,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]; @@ -25911,11 +26036,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]; @@ -25926,27 +26051,124 @@ 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_Merge1; + rtDW.dbgCAN_dbg_Sen_Amb_model.dbg_Sen_Amb_Raw_ro = rtb_Bias5; rtDW.dbgCAN_dbg_Sen_Amb_model.dbg_Amb_Tg_ro = 0; - /* 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' + /* BusCreator: '/Bus Creator' incorporates: + * DataStoreWrite: '/Data Store Write' + * 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_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_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_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' + * */ + 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_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_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_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_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_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]; + 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 = + rtb_VectorConcatenate_jn[2]; + rtDW.dbg_Auto_Duct_model.dbg_Auto_Duct_Tg_Incar_RL_ro = (int16_t) + (rtDW.Duct_RL_Tg_DBG[4] - 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_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_Tg_Incar_RR_ro = (int16_t) + (rtDW.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' */ 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; @@ -25959,13 +26181,13 @@ void HVAC_model_step(void) 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; - /* 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_R_h; + 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; rtDW.dbgCAN_dbg_Sen_Eva_model.dbg_Sen_Eva_Target = rtDW.Eva_F; rtDW.dbgCAN_dbg_Sen_Eva_model.dbg_Sen_Eva_Diff_FrontRear = rtDW.Eva_R; @@ -26066,65 +26288,26 @@ void HVAC_model_step(void) */ rtY.dbgCAN_Logic_State_model = rtDW.dbgCAN_Logic_State_model; - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read25' - * RelationalOperator: '/FixPt Relational Operator' - * UnitDelay: '/t_start_delay_private ' - * UnitDelay: '/Delay Input1' - * - * Block description for '/Delay Input1': - * - * Store in Global RAM + /* Outport: '/CCU_Msg1_model' incorporates: + * DataStoreRead: '/Data Store Read14' */ - if (!rtDW.DelayInput1_DSTATE) { - rtDW.t_start_delay_private_DSTATE_l = rtDW.t_now; - } + rtY.CCU_Msg1_model = rtDW.CCU_Msg1_model; - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read25' - * RelationalOperator: '/FixPt Relational Operator' - * UnitDelay: '/t_start_delay_private ' - * UnitDelay: '/Delay Input1' - * - * Block description for '/Delay Input1': - * - * Store in Global RAM + /* Outport: '/dbgCAN_Auto_Duct_model' incorporates: + * DataStoreRead: '/Data Store Read62' */ - if (!rtDW.DelayInput1_DSTATE_d) { - rtDW.t_start_delay_private_DSTATE_gg = rtDW.t_now; - } + rtY.dbgCAN_Auto_Duct_model = rtDW.dbg_Auto_Duct_model; - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/is_ending_with_5' */ - is_ending_with_5(Gain, &rtb_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]; */ - /* : disp('all correction rate:') */ - /* : disp(correct_rate) */ - /* : y = correct_rate(LVL + 1, idivide(SET - 16 + 1, 2)); */ - /* : disp('correction rate:') */ - /* : 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_is_ending_with_5); + /* Outport: '/dbgCAN_Auto_AF_model' incorporates: + * DataStoreRead: '/Data Store Read63' + */ + 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' */ - /* : 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]; */ - /* : 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)); */ if ((rtDW.start_control_finished_front == 0) && (rtDW.SKIPPED_FIRST_SIMULATION_STEP == 0.0)) { /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: @@ -26159,7 +26342,7 @@ void HVAC_model_step(void) /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: * DataStoreRead: '/Data Store Read3' */ - g_assSTART_ENTER_INCAR_f(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); + g_assSTART_ENTER_INCAR_f(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: * DataStoreRead: '/Data Store Read4' @@ -26183,7 +26366,7 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator2' * RelationalOperator: '/Relational Operator3' */ - if ((rtDW.Incar_FL > g_assEVA_TG_AMB_R_h) && (rtDW.CCU_MODE_FL == 1) && + 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: @@ -26208,7 +26391,7 @@ void HVAC_model_step(void) /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: * DataStoreRead: '/Data Store Read3' */ - g_assSTART_ENTER_INCAR_f(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); + g_assSTART_ENTER_INCAR_f(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: * DataStoreRead: '/Data Store Read4' @@ -26219,9 +26402,9 @@ void HVAC_model_step(void) i = 255; } - rtb_Saturation2_a = g_ausSTART_ENTER_SETTEMP[i - 1]; - if (rtb_Saturation2_a > 32767) { - rtb_Saturation2_a = 32767U; + Gain = g_ausSTART_ENTER_SETTEMP[i - 1]; + if (Gain > 32767) { + Gain = 32767U; } /* Switch: '/Switch' incorporates: @@ -26237,9 +26420,8 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator2' * RelationalOperator: '/Relational Operator3' */ - if ((rtDW.Incar_FL > g_assEVA_TG_AMB_R_h) && (rtDW.CCU_MODE_FL == 1) && - (rtDW.CCU_SET_FL < rtb_Saturation2_a) && (rtDW.LO_HI_MODE_FL == 0)) - { + 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' */ @@ -26271,7 +26453,7 @@ void HVAC_model_step(void) /* MATLAB Function: '/g_assSTART_ENTER_COOLANT ' incorporates: * DataStoreRead: '/Data Store Read3' */ - g_assSTART_ENTER_COOLANT_j(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); + g_assSTART_ENTER_COOLANT_j(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read' @@ -26280,7 +26462,7 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator' * RelationalOperator: '/Relational Operator2' */ - if ((rtDW.ECT < g_assEVA_TG_AMB_R_h) && (rtDW.CCU_MODE_FL == 1)) { + if ((rtDW.ECT < g_assEVA_TG_AMB_F_n) && (rtDW.CCU_MODE_FL == 1)) { /* Merge: '/Merge' incorporates: * Constant: '/Constant1' */ @@ -26395,7 +26577,7 @@ void HVAC_model_step(void) /* DataStoreWrite: '/Data Store Write7' incorporates: * Constant: '/Recirc logic Partial REC' */ - rtb_Divide1 = 1.0; + Blower_AF_FL = 1.0; /* DataStoreWrite: '/Data Store Write8' incorporates: * Constant: '/Valve open' @@ -26416,9 +26598,9 @@ void HVAC_model_step(void) i = 255; } - rtb_dt_ca = (uint32_t)i - 2U; + rtb_Subtract = (uint32_t)i - 2U; if ((uint32_t)i - 2U > (uint32_t)i) { - rtb_dt_ca = 0U; + rtb_Subtract = 0U; } /* Merge: '/Merge' incorporates: @@ -26428,7 +26610,7 @@ void HVAC_model_step(void) * Switch: '/Switch' */ rtB.Merge_fb = (int8_t)(rtDW.ECT > g_assSTART_COOLANT_STEP0_TO_1 - [(int32_t)rtb_dt_ca - 1]); + [(int32_t)rtb_Subtract - 1]); /* End of Outputs for SubSystem: '/Level 3' */ break; @@ -26472,7 +26654,7 @@ void HVAC_model_step(void) /* DataStoreWrite: '/Data Store Write7' incorporates: * Constant: '/Recirc logic Partial REC' */ - rtb_Divide1 = 1.0; + Blower_AF_FL = 1.0; /* DataStoreWrite: '/Data Store Write8' incorporates: * Constant: '/Valve open' @@ -26487,14 +26669,14 @@ void HVAC_model_step(void) /* 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_R_h); + 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_R_h); + rtB.Merge_fb = (int8_t)(rtDW.ECT > g_assEVA_TG_AMB_F_n); /* End of Outputs for SubSystem: '/Level 4' */ break; @@ -26538,7 +26720,7 @@ void HVAC_model_step(void) /* DataStoreWrite: '/Data Store Write7' incorporates: * Constant: '/Recirc logic Partial REC' */ - rtb_Divide1 = 1.0; + Blower_AF_FL = 1.0; /* DataStoreWrite: '/Data Store Write8' incorporates: * Constant: '/Valve open' @@ -26553,14 +26735,14 @@ void HVAC_model_step(void) /* 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_R_h); + 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_R_h); + rtB.Merge_fb = (int8_t)(rtDW.ECT > g_assEVA_TG_AMB_F_n); /* End of Outputs for SubSystem: '/Level 5' */ break; @@ -26633,7 +26815,7 @@ void HVAC_model_step(void) /* DataStoreWrite: '/Data Store Write7' incorporates: * Constant: '/Recirc logic Partial REC' */ - rtb_Divide1 = 1.0; + Blower_AF_FL = 1.0; /* RelationalOperator: '/Equal' incorporates: * DataStoreRead: '/current step' @@ -26643,7 +26825,7 @@ void HVAC_model_step(void) /* 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); + Incartempgotofromstep1tostep2(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: * DataStoreRead: '/Data Store Read4' @@ -26654,9 +26836,9 @@ void HVAC_model_step(void) i = 255; } - rtb_Saturation2_a = g_ausSTART_TIME_STEP1_TO_2[i - 1]; - if (rtb_Saturation2_a > 32767) { - rtb_Saturation2_a = 32767U; + Gain = g_ausSTART_TIME_STEP1_TO_2[i - 1]; + if (Gain > 32767) { + Gain = 32767U; } /* Switch: '/Switch' incorporates: @@ -26670,9 +26852,8 @@ void HVAC_model_step(void) * Sum: '/Subtract' * UnitDelay: '/t_start_delay_private ' */ - if ((rtDW.Incar_FL < g_assEVA_TG_AMB_R_h) || (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_ch > (uint16_t)(1000 * - rtb_Saturation2_a))) { + 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' @@ -26762,7 +26943,7 @@ void HVAC_model_step(void) /* DataStoreWrite: '/Data Store Write7' incorporates: * Constant: '/Recirc logic Partial REC' */ - rtb_Divide1 = 1.0; + Blower_AF_FL = 1.0; /* RelationalOperator: '/Equal' incorporates: * DataStoreRead: '/current step' @@ -26772,12 +26953,12 @@ void HVAC_model_step(void) /* 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); + 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, &rtb_y_hd); + Timegotofromstep1tostep2(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); /* RelationalOperator: '/Relational Operator1' incorporates: * DataStoreRead: '/Data Store Read4' @@ -26786,7 +26967,8 @@ void HVAC_model_step(void) * UnitDelay: '/t_start_delay_private ' */ rtb_LogicalOperator1 = (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_jr > (uint32_t)(1000 * rtb_y_hd)); + rtDW.t_start_delay_private_DSTATE_jr > (uint32_t)(1000 * + g_assEVA_TG_AMB_R_h)); /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -26806,7 +26988,7 @@ void HVAC_model_step(void) * Logic: '/Logical Operator' * RelationalOperator: '/Relational Operator' */ - if ((rtDW.Incar_FL < g_assEVA_TG_AMB_R_h) || rtb_LogicalOperator1) { + if ((rtDW.Incar_FL < g_assEVA_TG_AMB_F_n) || rtb_LogicalOperator1) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step' */ @@ -26876,23 +27058,23 @@ void HVAC_model_step(void) /* MATLAB Function: '/blower min max' incorporates: * DataStoreRead: '/Data Store Read7' */ - blowerminmax(rtDW.LEVEL, rtb_out_df); + blowerminmax(rtDW.LEVEL, rtb_out_g4); /* MATLAB Function: '/ECT min max' incorporates: * DataStoreRead: '/Data Store Read7' */ - ECTminmax(rtDW.LEVEL, rtb_out_jy); + ECTminmax(rtDW.LEVEL, rtb_out_mt); /* Lookup_n-D: '/blower для текущего ECT' incorporates: * DataStoreRead: '/engine coolant temp' */ - g_assEVA_TG_AMB_R_h = look1_is16lu64n32tu16Ds32Is16_binlcs(rtDW.ECT, - rtb_out_jy, rtb_out_df, 1U); + 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_R_h; + rtDW.Blower_FL = (uint16_t)g_assEVA_TG_AMB_F_n; /* DataStoreWrite: '/Data Store Write11' incorporates: * DataStoreRead: '/Data Store Read8' @@ -26909,7 +27091,7 @@ void HVAC_model_step(void) /* DataStoreWrite: '/Data Store Write7' incorporates: * Constant: '/Recirc logic Partial REC' */ - rtb_Divide1 = 1.0; + Blower_AF_FL = 1.0; /* RelationalOperator: '/Equal' incorporates: * DataStoreRead: '/current step' @@ -26919,12 +27101,12 @@ void HVAC_model_step(void) /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: * DataStoreRead: '/Data Store Read3' */ - Incartempgotofromstep1tostep2(rtDW.LEVEL, &rtb_y_hd); + 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_R_h); + Timegotofromstep1tostep2(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* RelationalOperator: '/Relational Operator1' incorporates: * DataStoreRead: '/Data Store Read4' @@ -26933,7 +27115,7 @@ void HVAC_model_step(void) * UnitDelay: '/t_start_delay_private ' */ rtb_LogicalOperator1 = (rtDW.t_now - rtDW.t_start_delay_private_DSTATE_d - > (uint32_t)(1000 * g_assEVA_TG_AMB_R_h)); + > (uint32_t)(1000 * g_assEVA_TG_AMB_F_n)); /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -26958,11 +27140,11 @@ void HVAC_model_step(void) } /* MW:begin MISRA2012:D4.1 CERT-C:INT30-C 'Justifying MISRA CPP rule violation' */ - rtb_dt_ca = (uint32_t)i - 3U; + rtb_Subtract = (uint32_t)i - 3U; /* MW:end MISRA2012:D4.1 CERT-C:INT30-C */ if ((uint32_t)i - 3U > (uint32_t)i) { - rtb_dt_ca = 0U; + rtb_Subtract = 0U; } /* Switch: '/Switch' incorporates: @@ -26973,8 +27155,9 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator' * RelationalOperator: '/Relational Operator2' */ - if ((rtDW.Incar_FL < rtb_y_hd) || rtb_LogicalOperator1 || (rtDW.ECT > - g_assSTART_COOLANT_TO_STEP2[(int32_t)rtb_dt_ca - 1])) { + 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' */ @@ -27002,7 +27185,7 @@ void HVAC_model_step(void) &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, - &rtb_Divide1, &ShutOffRear_EN, &rtDW.step_start_controle_front, + &Blower_AF_FL, &ShutOffRear_EN, &rtDW.step_start_controle_front, &rtDW.t_now, &rtDW.Level4_hv); /* End of Outputs for SubSystem: '/Level 4' */ @@ -27016,7 +27199,7 @@ void HVAC_model_step(void) &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, - &rtb_Divide1, &ShutOffRear_EN, &rtDW.step_start_controle_front, + &Blower_AF_FL, &ShutOffRear_EN, &rtDW.step_start_controle_front, &rtDW.t_now, &rtDW.Level5_b); /* End of Outputs for SubSystem: '/Level 5' */ @@ -27299,7 +27482,7 @@ void HVAC_model_step(void) /* DataStoreWrite: '/Data Store Write7' incorporates: * Constant: '/Recirc logic Partial REC' */ - rtb_Divide1 = 1.0; + Blower_AF_FL = 1.0; /* RelationalOperator: '/Equal' incorporates: * DataStoreRead: '/current step' @@ -27310,7 +27493,7 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_ca = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_jt; + rtb_Subtract = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_jt; /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -27328,13 +27511,13 @@ void HVAC_model_step(void) /* MATLAB Function: '/Time goto from step 2 to step 3 ' incorporates: * DataStoreRead: '/Data Store Read4' */ - Timegotofromstep2tostep3(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); + Timegotofromstep2tostep3(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* Switch: '/Switch' incorporates: * Gain: '/из сек в мс' * RelationalOperator: '/Relational Operator1' */ - if (rtb_dt_ca > (uint32_t)(1000 * g_assEVA_TG_AMB_R_h)) { + if (rtb_Subtract > (uint32_t)(1000 * g_assEVA_TG_AMB_F_n)) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step' */ @@ -27639,7 +27822,7 @@ void HVAC_model_step(void) /* DataStoreWrite: '/Data Store Write7' incorporates: * Constant: '/Recirc logic Partial REC' */ - rtb_Divide1 = 1.0; + Blower_AF_FL = 1.0; /* RelationalOperator: '/Equal' incorporates: * DataStoreRead: '/current step' @@ -27650,7 +27833,7 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_ca = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_n; + rtb_Subtract = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_n; /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -27668,13 +27851,13 @@ void HVAC_model_step(void) /* MATLAB Function: '/Time goto from step 2 to step 3 ' incorporates: * DataStoreRead: '/Data Store Read4' */ - Timegotofromstep2tostep3(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); + Timegotofromstep2tostep3(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* Switch: '/Switch' incorporates: * Gain: '/из сек в мс' * RelationalOperator: '/Relational Operator1' */ - if (rtb_dt_ca > (uint32_t)(1000 * g_assEVA_TG_AMB_R_h)) { + if (rtb_Subtract > (uint32_t)(1000 * g_assEVA_TG_AMB_F_n)) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step' */ @@ -27732,7 +27915,7 @@ void HVAC_model_step(void) &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, &rtb_Divide1, &ShutOffRear_EN, + &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' */ @@ -27747,7 +27930,7 @@ void HVAC_model_step(void) &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, &rtb_Divide1, &ShutOffRear_EN, + &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' */ @@ -28023,7 +28206,7 @@ void HVAC_model_step(void) /* DataStoreWrite: '/Data Store Write7' incorporates: * Constant: '/Recirc logic Partial REC' */ - rtb_Divide1 = 1.0; + Blower_AF_FL = 1.0; /* RelationalOperator: '/Equal' incorporates: * DataStoreRead: '/current step' @@ -28033,7 +28216,7 @@ void HVAC_model_step(void) /* MATLAB Function: '/Time goto from step 2 to step 3 ' incorporates: * DataStoreRead: '/Data Store Read4' */ - Timegotofromstep2tostep3(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); + Timegotofromstep2tostep3(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* RelationalOperator: '/Relational Operator1' incorporates: * DataStoreRead: '/Data Store Read4' @@ -28043,7 +28226,7 @@ void HVAC_model_step(void) */ rtb_LogicalOperator1 = (rtDW.t_now - rtDW.t_start_delay_private_DSTATE_it > (uint32_t)(1000 * - g_assEVA_TG_AMB_R_h)); + g_assEVA_TG_AMB_F_n)); /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -28163,7 +28346,7 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read4' */ /* : out = int16(g_assSTART_ENTER_INCAR(LVL + 1 + 6)); */ - g_ausSTART_ENTER_SETTEMP_m(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); + g_ausSTART_ENTER_SETTEMP_m(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: * DataStoreRead: '/Data Store Read3' @@ -28192,7 +28375,7 @@ void HVAC_model_step(void) * 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_R_h) && + (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' @@ -28216,12 +28399,12 @@ void HVAC_model_step(void) /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: * DataStoreRead: '/Data Store Read3' */ - g_assSTART_ENTER_INCAR_c(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); + 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, &rtb_y_hd); + g_ausSTART_ENTER_SETTEMP_m(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); /* Switch: '/Switch' incorporates: * Constant: '/not LO or HI' @@ -28235,8 +28418,9 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator2' * RelationalOperator: '/Relational Operator3' */ - if ((rtDW.Incar_RR > g_assEVA_TG_AMB_R_h) && (rtDW.CCU_MODE_RR == 1) && - (rtDW.CCU_SET_RR < rtb_y_hd) && (rtDW.LO_HI_MODE_FL == 0)) { + 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' */ @@ -28259,12 +28443,12 @@ void HVAC_model_step(void) /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: * DataStoreRead: '/Data Store Read3' */ - g_assSTART_ENTER_INCAR_c(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); + 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, &rtb_y_hd); + g_ausSTART_ENTER_SETTEMP_m(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); /* Switch: '/Switch' incorporates: * Constant: '/LOW' @@ -28278,8 +28462,9 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator2' * RelationalOperator: '/Relational Operator3' */ - if ((rtDW.Incar_RR < g_assEVA_TG_AMB_R_h) && (rtDW.CCU_MODE_RR == 1) && - (rtDW.CCU_SET_RR > rtb_y_hd) && (rtDW.LO_HI_MODE_FL != 1)) { + 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' */ @@ -28302,12 +28487,12 @@ void HVAC_model_step(void) /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: * DataStoreRead: '/Data Store Read4' */ - g_assSTART_ENTER_INCAR_c(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); + 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, &rtb_y_hd); + g_assSTART_ENTER_COOLANT_c(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: * DataStoreRead: '/Data Store Read6' @@ -28323,9 +28508,9 @@ void HVAC_model_step(void) i_0 = 255; } - rtb_Saturation2_a = g_ausSTART_ENTER_SETTEMP[i_0 - 1]; - if (rtb_Saturation2_a > 32767) { - rtb_Saturation2_a = 32767U; + Gain = g_ausSTART_ENTER_SETTEMP[i_0 - 1]; + if (Gain > 32767) { + Gain = 32767U; } /* Switch: '/Switch' incorporates: @@ -28344,9 +28529,9 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator3' * RelationalOperator: '/Relational Operator4' */ - if (((rtDW.Incar_RR < g_assEVA_TG_AMB_R_h) || (rtDW.ECT < rtb_y_hd)) && - (rtDW.CCU_MODE_RR == 1) && (rtDW.CCU_SET_RR > rtb_Saturation2_a) && - (rtDW.LO_HI_MODE_FL != 1)) { + 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' */ @@ -28494,14 +28679,14 @@ void HVAC_model_step(void) /* 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_R_h); + 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_R_h); + rtB.Merge_c = (int8_t)(rtDW.ECT > g_assEVA_TG_AMB_F_n); /* End of Outputs for SubSystem: '/Level 3' */ break; @@ -28549,7 +28734,7 @@ void HVAC_model_step(void) */ 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, &rtb_Divide1, + &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); @@ -28562,7 +28747,7 @@ void HVAC_model_step(void) */ 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, &rtb_Divide1, + &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); @@ -28591,25 +28776,25 @@ void HVAC_model_step(void) /* MATLAB Function: '/blower start finish' incorporates: * DataStoreRead: '/Data Store Read7' */ - blowerstartfinish(rtDW.LEVEL, rtb_out_df); + 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_jy[0] = g_assSTART_COOLANT_STEP0_TO_1[4]; - rtb_out_jy[1] = g_assSTART_COOLANT_TO_STEP2[1]; + 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_R_h = look1_is16lu64n32tu16Ds32Is16_binlcs(rtDW.ECT, - rtb_out_jy, rtb_out_df, 1U); + 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_R_h; + rtDW.Blower_RR = (uint16_t)g_assEVA_TG_AMB_F_n; /* DataStoreWrite: '/Data Store Write10' incorporates: * DataStoreRead: '/Data Store Read8' @@ -28625,18 +28810,18 @@ void HVAC_model_step(void) /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: * DataStoreRead: '/Data Store Read3' */ - Incartempgotofromstep1tostep2_n(rtDW.LEVEL, &rtb_y_hd); + Incartempgotofromstep1tostep2_n(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); /* Sum: '/Subtract' incorporates: * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_ca = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_e; + 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_R_h); + Timegotofromstep1tostep2_p(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -28662,9 +28847,9 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator1' * RelationalOperator: '/Relational Operator2' */ - if ((rtDW.Incar_RR > rtb_y_hd) || (rtb_dt_ca > (uint16_t)(1000 * - g_assEVA_TG_AMB_R_h)) || (rtDW.ECT > g_assSTART_COOLANT_TO_STEP2[1])) - { + 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' */ @@ -28706,23 +28891,23 @@ void HVAC_model_step(void) /* MATLAB Function: '/blower start finish' incorporates: * DataStoreRead: '/Data Store Read7' */ - blowerstartfinish(rtDW.LEVEL, rtb_out_df); + blowerstartfinish(rtDW.LEVEL, rtb_out_g4); /* MATLAB Function: '/ECT min max' incorporates: * DataStoreRead: '/Data Store Read7' */ - ECTminmax_b(rtDW.LEVEL, rtb_out_jy); + ECTminmax_b(rtDW.LEVEL, rtb_out_mt); /* Lookup_n-D: '/blower для текущего ECT' incorporates: * DataStoreRead: '/engine coolant temp' */ - g_assEVA_TG_AMB_R_h = look1_is16lu64n32tu16Ds32Is16_binlcs(rtDW.ECT, - rtb_out_jy, rtb_out_df, 1U); + 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_R_h; + rtDW.Blower_RR = (uint16_t)g_assEVA_TG_AMB_F_n; /* DataStoreWrite: '/Data Store Write10' incorporates: * DataStoreRead: '/Data Store Read8' @@ -28738,18 +28923,18 @@ void HVAC_model_step(void) /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: * DataStoreRead: '/Data Store Read3' */ - Incartempgotofromstep1tostep2_n(rtDW.LEVEL, &rtb_y_hd); + Incartempgotofromstep1tostep2_n(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); /* Sum: '/Subtract' incorporates: * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_ca = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_l3; + 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_R_h); + Timegotofromstep1tostep2_p(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -28760,7 +28945,7 @@ void HVAC_model_step(void) */ /* : out = int16(g_assSTART_COOLANT_TO_STEP2(3)); */ if (eComp_stop && (!rtDW.Cond_prev_private_DSTATE_pk)) { - rtDW.t_start_delay_private_DSTATE_l3 = rtDW.t_now; + rtDW.t_start_delay_private_DSTATE_l = rtDW.t_now; } /* End of Switch: '/Switch' */ @@ -28775,9 +28960,9 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator1' * RelationalOperator: '/Relational Operator2' */ - if ((rtDW.Incar_RR > rtb_y_hd) || (rtb_dt_ca > (uint16_t)(1000 * - g_assEVA_TG_AMB_R_h)) || (rtDW.ECT > g_assSTART_COOLANT_TO_STEP2[2])) - { + 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' */ @@ -28804,7 +28989,7 @@ void HVAC_model_step(void) 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, - &rtb_Divide1, &Valve_2_way, &rtDW.step_start_controle_rear, + &Blower_AF_FL, &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, &rtDW.Level4_ns); /* End of Outputs for SubSystem: '/Level 4' */ @@ -28817,7 +29002,7 @@ void HVAC_model_step(void) 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, - &rtb_Divide1, &Valve_2_way, &rtDW.step_start_controle_rear, + &Blower_AF_FL, &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, &rtDW.Level5_f); /* End of Outputs for SubSystem: '/Level 5' */ @@ -29025,7 +29210,7 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_ca = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_hn; + rtb_Subtract = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_hn; /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -29043,13 +29228,13 @@ void HVAC_model_step(void) /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: * DataStoreRead: '/Data Store Read4' */ - Timegotofromstep1tostep2_p(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); + Timegotofromstep1tostep2_p(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* Switch: '/Switch' incorporates: * Gain: '/из сек в мс' * RelationalOperator: '/Relational Operator1' */ - if (rtb_dt_ca > (uint16_t)(1000 * g_assEVA_TG_AMB_R_h)) { + if (rtb_Subtract > (uint16_t)(1000 * g_assEVA_TG_AMB_F_n)) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step' */ @@ -29273,7 +29458,7 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_ca = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_pa; + rtb_Subtract = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_pa; /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -29291,13 +29476,13 @@ void HVAC_model_step(void) /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: * DataStoreRead: '/Data Store Read4' */ - Timegotofromstep1tostep2_p(rtDW.LEVEL, &g_assEVA_TG_AMB_R_h); + Timegotofromstep1tostep2_p(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* Switch: '/Switch' incorporates: * Gain: '/из сек в мс' * RelationalOperator: '/Relational Operator1' */ - if (rtb_dt_ca > (uint16_t)(1000 * g_assEVA_TG_AMB_R_h)) { + if (rtb_Subtract > (uint16_t)(1000 * g_assEVA_TG_AMB_F_n)) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step' */ @@ -29521,12 +29706,12 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_ca = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_kh; + 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_R_h); + Timegotofromstep1tostep2_p(rtDW.LEVEL, &g_assEVA_TG_AMB_F_n); /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -29547,7 +29732,7 @@ void HVAC_model_step(void) * Logic: '/Logical Operator' * RelationalOperator: '/Relational Operator1' */ - if ((rtb_dt_ca > (uint16_t)(1000 * g_assEVA_TG_AMB_R_h)) || + if ((rtb_Subtract > (uint16_t)(1000 * g_assEVA_TG_AMB_F_n)) || rtDW.HI_logic_on) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step' @@ -29591,7 +29776,7 @@ void HVAC_model_step(void) &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, - &rtb_Divide1, &Valve_2_way, &rtDW.step_start_controle_rear, + &Blower_AF_FL, &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, &rtDW.Level3_jn); /* End of Outputs for SubSystem: '/Level 3' */ @@ -29605,7 +29790,7 @@ void HVAC_model_step(void) &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, - &rtb_Divide1, &Valve_2_way, &rtDW.step_start_controle_rear, + &Blower_AF_FL, &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, &rtDW.Level4_d); /* End of Outputs for SubSystem: '/Level 4' */ @@ -29619,7 +29804,7 @@ void HVAC_model_step(void) &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, - &rtb_Divide1, &Valve_2_way, &rtDW.step_start_controle_rear, + &Blower_AF_FL, &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, &rtDW.Level5_cf); /* End of Outputs for SubSystem: '/Level 5' */ @@ -29664,108 +29849,108 @@ void HVAC_model_step(void) */ if (rtDW.CCU_ALL_ZONE_SYNC > 0) { /* Outputs for IfAction SubSystem: '/all zone sync' incorporates: - * ActionPort: '/Action Port' + * 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; @@ -29779,41 +29964,41 @@ void HVAC_model_step(void) */ if (rtDW.CCU_FRONT_SYNC > 0) { /* Outputs for IfAction SubSystem: '/front sync' incorporates: - * ActionPort: '/Action Port' + * 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; @@ -29827,36 +30012,36 @@ void HVAC_model_step(void) */ if (rtDW.CCU_REAR_SYNC > 0) { /* Outputs for IfAction SubSystem: '/rear sync' incorporates: - * ActionPort: '/Action Port' + * 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; @@ -29865,8 +30050,8 @@ void HVAC_model_step(void) /* End of If: '/If2' */ - /* Update for DiscreteIntegrator: '/Integrator' incorporates: - * Switch: '/Switch' + /* Update for DiscreteIntegrator: '/Integrator' incorporates: + * Switch: '/Switch' */ if ((rtDW.Integrator_DSTATE_l < 0) && (rtb_Switch_fs < INT32_MIN - rtDW.Integrator_DSTATE_l)) { @@ -29880,165 +30065,167 @@ void HVAC_model_step(void) rtDW.Integrator_PrevResetState = (int8_t)Enable_Comp_PID; - /* End of Update for DiscreteIntegrator: '/Integrator' */ + /* End of Update for DiscreteIntegrator: '/Integrator' */ - /* Update for UnitDelay: '/Unit Delay' incorporates: - * Constant: '/Constant' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreWrite: '/Data Store Write4' */ - rtDW.UnitDelay_DSTATE_l0 = 1; + rtDW.UnitDelay_DSTATE_lk = 0; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * Constant: '/Constant' - */ - rtDW.UnitDelay_DSTATE_c = 1; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/Data Store Read6' - */ - rtDW.UnitDelay_DSTATE_lk = g_assEVA_TG_AMB_F_n; - - /* Update for UnitDelay: '/Unit Delay1' incorporates: + /* Update for UnitDelay: '/Unit Delay1' incorporates: * DataStoreRead: '/Data Store Read7' */ rtDW.UnitDelay1_DSTATE = rtDW.Duct_RR_Tg; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE = rtb_FailCond_fn; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_p = rtb_FailCond_gk; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_a = rtb_FailCond; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_h = rtb_Compare_ah; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_c = rtb_Compare; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_m = rtb_Compare_eu; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_j = rtb_Compare_e3; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_f = rtb_Compare_fr; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_cn = rtb_Compare_b; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_l = rtb_Compare_au; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_ja = rtb_Compare_gl; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_g = rtb_Compare_m; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* 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_e = rtb_Compare_ot; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_e = rtb_LogicalOperator5; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* 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_jl = rtb_Compare_m4; + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_jl = rtb_Compare_dq; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_ei = rtb_FailCond_h; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreWrite: '/Data Store Write' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreWrite: '/Data Store Write1' */ - rtDW.UnitDelay_DSTATE_d5 = rtb_Merge1; + rtDW.UnitDelay_DSTATE_da = rtDW.Incar_FL; - /* Update for DiscreteIntegrator: '/Integrator' incorporates: + /* 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' + * + * Block description for '/Delay Input1': + * + * Store in Global RAM + */ + rtDW.DelayInput1_DSTATE = rtb_Compare_p1p; + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreWrite: '/Data Store Write' + */ + rtDW.UnitDelay_DSTATE_d5 = rtb_Bias5; + + /* Update for DiscreteIntegrator: '/Integrator' incorporates: * DataStoreWrite: '/Data Store Write' - * Gain: '/Integral Gain' + * Gain: '/Integral Gain' * Gain: '/Gain' - * Sum: '/SumI2' - * Sum: '/SumI4' - * Sum: '/SumI2' + * Sum: '/SumI2' + * Sum: '/SumI4' + * Sum: '/SumI2' */ rtDW.Integrator_DSTATE += (int64_t)((rtDW.PID_TempFUL - (int32_t)(rtb_SumI2_e >> 32)) + (int32_t)((1717986918LL * rtb_Gain_pl) >> 52)) << 32; - /* Update for DiscreteIntegrator: '/Integrator' incorporates: + /* Update for DiscreteIntegrator: '/Integrator' incorporates: * DataStoreWrite: '/Data Store Write1' - * Gain: '/Integral Gain' + * Gain: '/Integral Gain' * Gain: '/Gain1' - * Sum: '/SumI2' - * Sum: '/SumI4' - * Sum: '/SumI2' + * Sum: '/SumI2' + * Sum: '/SumI4' + * Sum: '/SumI2' */ rtDW.Integrator_DSTATE_k += (int64_t)((rtDW.PID_TempFUR - (int32_t) (rtb_SumI2_je >> 32)) + (int32_t)((1717986918LL * rpm_phys) >> 52)) << 32; - /* Update for DiscreteIntegrator: '/Integrator' incorporates: + /* Update for DiscreteIntegrator: '/Integrator' incorporates: * DataStoreWrite: '/Data Store Write4' - * Gain: '/Integral Gain' + * Gain: '/Integral Gain' * Gain: '/Gain4' - * Sum: '/SumI2' - * Sum: '/SumI4' - * Sum: '/SumI2' + * Sum: '/SumI2' + * Sum: '/SumI4' + * Sum: '/SumI2' */ rtDW.Integrator_DSTATE_h += (int64_t)((rtDW.PID_TempFLL - (int32_t) (rtb_SumI2_b >> 32)) + (int32_t)((1717986918LL * rtb_Gain4) >> 52)) << 32; - /* Update for DiscreteIntegrator: '/Integrator' incorporates: + /* Update for DiscreteIntegrator: '/Integrator' incorporates: * DataStoreWrite: '/Data Store Write5' + * Gain: '/Integral Gain' * Gain: '/Gain5' - * Gain: '/Integral Gain' - * Sum: '/SumI2' - * Sum: '/SumI2' - * Sum: '/SumI4' + * Sum: '/SumI2' + * Sum: '/SumI2' + * Sum: '/SumI4' */ rtDW.Integrator_DSTATE_i += (int64_t)((rtDW.PID_TempFRL - (int32_t) (rtb_SumI2_c >> 32)) + (int32_t)((1717986918LL * rtb_Gain5) >> 52)) << 32; - /* Update for DiscreteIntegrator: '/Integrator' incorporates: + /* Update for DiscreteIntegrator: '/Integrator' incorporates: * DataStoreWrite: '/Data Store Write2' - * Gain: '/Integral Gain' + * Gain: '/Integral Gain' * Gain: '/Gain2' - * Sum: '/SumI2' - * Sum: '/SumI4' - * Sum: '/SumI2' + * Sum: '/SumI2' + * Sum: '/SumI4' + * Sum: '/SumI2' */ rtDW.Integrator_DSTATE_n += (int64_t)((rtDW.PID_TempRL - (int32_t)(rtb_SumI2_o >> 32)) + (int32_t)((1717986918LL * rtb_Gain2) >> 52)) << 32; - /* Update for DiscreteIntegrator: '/Integrator' incorporates: + /* Update for DiscreteIntegrator: '/Integrator' incorporates: * DataStoreWrite: '/Data Store Write3' - * Gain: '/Integral Gain' + * Gain: '/Integral Gain' * Gain: '/Gain3' - * Sum: '/SumI2' - * Sum: '/SumI4' + * Sum: '/SumI2' + * Sum: '/SumI4' */ rtDW.Integrator_DSTATE_a += (int64_t)((rtDW.PID_TempRR - (int32_t) (rtb_IntegralGain >> 32)) + (int32_t)((1717986918LL * rtb_Gain3) >> 52)) << 32; - - /* Update for UnitDelay: '/Delay Input1' - * - * Block description for '/Delay Input1': - * - * Store in Global RAM - */ - rtDW.DelayInput1_DSTATE = true; - - /* Update for UnitDelay: '/Delay Input1' - * - * Block description for '/Delay Input1': - * - * Store in Global RAM - */ - rtDW.DelayInput1_DSTATE_d = true; } /* Model initialize function */ @@ -30071,56 +30258,44 @@ void HVAC_model_initialize(void) { int32_t i; - /* Start for Merge: '/Merge' incorporates: - * DataStoreMemory: '/Data Store Memory' - */ + /* Start for DataStoreMemory: '/Data Store Memory' */ rtDW.Temp_FL_store = -9999; - /* Start for Sum: '/Add1' incorporates: - * DataStoreMemory: '/Data Store Memory10' - */ + /* Start for DataStoreMemory: '/Data Store Memory10' */ rtDW.Temp_RR_store = -9999; - /* Start for DataStoreMemory: '/Data Store Memory4' */ + /* Start for DataStoreMemory: '/Data Store Memory4' */ rtDW.Temp_FR_store = -9999; - /* Start for Merge: '/Merge' incorporates: - * DataStoreMemory: '/Data Store Memory6' - */ + /* Start for DataStoreMemory: '/Data Store Memory6' */ rtDW.Temp_RL_store = -9999; - /* 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]; } - /* Start for DataStoreMemory: '/Data Store Memory' */ - rtDW.step_start_controle_front = -1; - - /* Start for DataStoreMemory: '/Data Store Memory1' */ - rtDW.step_start_controle_rear = -1; - /* Start for DataStoreMemory: '/Data Store Memory110' */ rtDW.CCU_FACE_RL = 1U; @@ -30133,20 +30308,20 @@ 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 = 225U; + 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 = 225U; + 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 = 225U; + rtDW.CCU_SET_RR = 230U; /* Start for DataStoreMemory: '/Data Store Memory160' */ rtDW.SW5V_EN = 1U; @@ -30163,10 +30338,10 @@ 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 = 225U; + rtDW.CCU_SET_RL = 230U; /* Start for DataStoreMemory: '/Data Store Memory170' */ rtDW.EN_ReservePower = 1U; @@ -30186,6 +30361,12 @@ void HVAC_model_initialize(void) /* Start for DataStoreMemory: '/Data Store Memory176' */ rtDW.EN_PowerReserve = 1U; + /* Start for DataStoreMemory: '/Data Store Memory231' */ + rtDW.step_start_controle_front = -1; + + /* Start for DataStoreMemory: '/Data Store Memory232' */ + rtDW.step_start_controle_rear = -1; + /* Start for DataStoreMemory: '/Data Store Memory42' */ rtDW.ADC_Data_Model = rtConstP.DataStoreMemory42_InitialValue; @@ -30210,31 +30391,31 @@ 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' */ 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' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ rtDW.UnitDelay_DSTATE_da = -9999; - /* InitializeConditions for UnitDelay: '/Unit Delay1' */ + /* InitializeConditions for UnitDelay: '/Unit Delay1' */ rtDW.UnitDelay1_DSTATE_k = -9999; - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ rtDW.UnitDelay_DSTATE_my = -9999; - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ rtDW.UnitDelay_DSTATE_lt = -9999; - /* InitializeConditions for UnitDelay: '/Unit Delay' */ + /* InitializeConditions for UnitDelay: '/Unit Delay' */ rtDW.UnitDelay_DSTATE_d5 = -9999; /* SystemInitialize for Chart: '/A//C Control' */ @@ -30265,14 +30446,12 @@ void HVAC_model_initialize(void) /* SystemInitialize for Chart: '/13,1,3,15 Valve control' */ rtDW.t_start_1 = 0U; rtB.Cmd_3Way = 0U; - rtB.Cmd_FrontTemp = 0.0; 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; - rtB.Cmd_RearTemp = 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; @@ -30287,7 +30466,7 @@ void HVAC_model_initialize(void) /* SystemInitialize for MATLAB Function: '/Log Ambient Lv' */ rtDW.current_Ambient_Lv_not_empty = false; - /* SystemInitialize for Chart: '/Spd_Comp_Trigger' */ + /* SystemInitialize for Chart: '/Spd_OSA_Trigger' */ rtDW.is_active_c834_HVAC_model = 0U; rtDW.is_c834_HVAC_model = IN_NO_ACTIVE_CHILD_o; @@ -30319,64 +30498,68 @@ 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 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 Chart: '/Full_Rec_Active' */ + rtDW.is_active_c836_HVAC_model = 0U; + rtDW.is_c836_HVAC_model = IN_NO_ACTIVE_CHILD_o; + + /* 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' */ + /* SystemInitialize for Merge: '/Merge' */ rtB.Merge_ac = 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' */ + /* SystemInitialize for Merge: '/Merge' */ rtB.Merge_h = 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' */ diff --git a/HVAC_model.h b/HVAC_model.h old mode 100755 new mode 100644 index 67d697c..95315d3 --- a/HVAC_model.h +++ b/HVAC_model.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.1140 + * Model version : 1.1202 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Wed Jun 24 09:01:39 2026 + * C/C++ source code generated on : Fri Jun 26 14:54:36 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -100,11 +100,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,15 +114,13 @@ 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' */ - double Cmd_FrontTemp; /* '/13,1,3,15 Valve control' */ - double Cmd_RearTemp; /* '/13,1,3,15 Valve 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' */ @@ -147,12 +145,12 @@ typedef struct { 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_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' */ bool FRONT_eTXV; /* '/A//C Control' */ @@ -162,7 +160,9 @@ typedef struct { /* Block states (default storage) for system '' */ typedef struct { + dbg_Auto_Duct_Bus dbg_Auto_Duct_model;/* '/Data Store Memory234' */ 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' */ @@ -172,45 +172,46 @@ typedef struct { dbgCAN_Logic_State_Bus dbgCAN_Logic_State_model;/* '/Data Store Memory227' */ CCUCAN_BCM_Climatic_Bus CCUCAN_BCM_Climatic_model;/* '/Data Store Memory138' */ BCM_VEH_STATE_Bus CCUCAN_BCM_VEH_STATE_model;/* '/Data Store Memory177' */ + CCUCAN_TM_CP_Bus TM_CP_model; /* '/Data Store Memory209' */ 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' */ + 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 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 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 Sun_L; /* '/Data Store Memory143' */ double Sun_R; /* '/Data Store Memory144' */ - double Full_Rec; /* '/Data Store Memory216' */ 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' */ @@ -225,30 +226,28 @@ 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_l;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_gg;/* '/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 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' */ @@ -261,7 +260,7 @@ typedef struct { 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_l3;/* '/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' */ @@ -281,37 +280,37 @@ typedef struct { 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' */ + int32_t Integrator_DSTATE_l; /* '/Integrator' */ 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_l0; /* '/Unit Delay' */ - int16_t UnitDelay_DSTATE_c; /* '/Unit Delay' */ - 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' */ + 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' */ 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 AMB; /* '/Data Store Memory4' */ int16_t Pressure; /* '/Data Store Memory6' */ int16_t Incar_FL; /* '/Data Store Memory7' */ @@ -319,10 +318,10 @@ 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' */ @@ -333,25 +332,24 @@ typedef struct { uint16_t Blower_logic_RR; /* '/Data Store Memory56' */ 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 DelayInput1_DSTATE_d; /* '/Delay Input1' */ + 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 ' */ @@ -363,47 +361,47 @@ typedef struct { 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' */ - int8_t step_start_controle_front; /* '/Data Store Memory' */ - int8_t step_start_controle_rear; /* '/Data Store Memory1' */ + 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' */ + 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' */ + 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' */ @@ -453,6 +451,7 @@ typedef struct { uint8_t changed_RL_params; /* '/Data Store Memory205' */ uint8_t changed_RR_params; /* '/Data Store Memory206' */ uint8_t SeatOccupied; /* '/Data Store Memory214' */ + 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 LO_HI_MODE_FL; /* '/Data Store Memory223' */ @@ -487,6 +486,8 @@ typedef struct { /* '/Synchronization stateflow chart' */ uint8_t is_c618_HVAC_model; /* '/Synchronization stateflow chart' */ 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_c621_HVAC_model; /* '/A//C Control' */ uint8_t is_PRESSURE_MONITOR; /* '/A//C Control' */ uint8_t is_FRONT_CONTOUR; /* '/A//C Control' */ @@ -494,8 +495,8 @@ typedef struct { uint8_t is_CHILLER_CONTOUR; /* '/A//C Control' */ uint8_t is_E_COMP_MANAGER; /* '/A//C Control' */ uint8_t is_COMP_PROTECTION; /* '/A//C Control' */ - uint8_t is_active_c834_HVAC_model; /* '/Spd_Comp_Trigger' */ - uint8_t is_c834_HVAC_model; /* '/Spd_Comp_Trigger' */ + uint8_t is_active_c834_HVAC_model; /* '/Spd_OSA_Trigger' */ + uint8_t is_c834_HVAC_model; /* '/Spd_OSA_Trigger' */ uint8_t is_active_c776_HVAC_model; /* '/Chart' */ uint8_t is_c776_HVAC_model; /* '/Chart' */ uint8_t is_PARTIAL_REC_ON; /* '/Chart' */ @@ -513,9 +514,9 @@ typedef struct { 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' */ + 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' */ @@ -533,16 +534,16 @@ typedef struct { 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' */ + const uint8_t DataTypeConversion[9]; /* '/Data Type Conversion' */ } ConstB_IfActionSubsystem1; /* 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 IfActionSubsystem1_fn;/* '/If Action Subsystem1' */ + ConstB_IfActionSubsystem1 IfActionSubsystem1_c;/* '/If Action Subsystem1' */ + ConstB_IfActionSubsystem1 IfActionSubsystem1_h;/* '/If Action Subsystem1' */ } ConstB; /* Constant parameters (default storage) */ @@ -555,22 +556,22 @@ 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]; /* 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 Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' */ double pooled9[1024]; @@ -579,17 +580,70 @@ typedef struct { * '/Выбор режима Left' * '/Выбор режима Right' */ - uint32_t pooled46[2]; + uint32_t pooled49[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' + */ + int16_t pooled51[13]; /* Pooled Parameter (Expression: [5, 4, 3, 2, 1, 0]) * Referenced by: * '/1-D Lookup Table' - * '/Get LVL for temp' + * '/Get LVL for temp' */ - int16_t pooled48[6]; + int16_t pooled52[6]; /* Computed Parameter: GetLVLfortemp_bp01Data - * Referenced by: '/Get LVL for temp' + * Referenced by: '/Get LVL for temp' */ int16_t GetLVLfortemp_bp01Data[6]; @@ -598,88 +652,117 @@ typedef struct { * '/Выбор режима Left' * '/Выбор режима Right' */ - int16_t pooled56[13]; + int16_t pooled60[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 pooled57[1024]; + int16_t pooled61[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 pooled58[1024]; + int16_t pooled62[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' + */ + uint16_t pooled72[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 Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' */ - uint16_t pooled65[1024]; + uint16_t pooled73[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: [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 pooled98[9]; + uint8_t pooled106[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]; @@ -688,7 +771,7 @@ typedef struct { * '/Выбор режима Left' * '/Выбор режима Right' */ - uint8_t pooled104[6]; + uint8_t pooled112[6]; } ConstP; /* External outputs (root outports fed by signals with default storage) */ @@ -715,6 +798,9 @@ typedef struct { CCU_Msg3_Bus CCU_Msg3_model; /* '/CCU_Msg3_model' */ dbgCAN_Logic_Rec_Bus dbgCAN_Logic_Rec_model;/* '/dbgCAN_Logic_Rec_model' */ dbgCAN_Logic_State_Bus dbgCAN_Logic_State_model;/* '/dbgCAN_Logic_State_model' */ + 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' */ } ExtY; /* Real-time Model Data Structure */ @@ -750,9 +836,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 Memory15' */ +extern ActuatorCmdBus Actuator_Ch1_Command_Model;/* '/Data Store Memory15' */ +extern ActuatorCmdBus Actuator_Ch2_Command_Model;/* '/Data Store Memory15' */ 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' */ @@ -1186,6 +1272,7 @@ extern RT_MODEL *const rtM; * 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 @@ -1301,29 +1388,27 @@ extern RT_MODEL *const rtM; * 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 '/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 '/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 @@ -1335,35 +1420,31 @@ 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 '/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 '/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 '/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 @@ -1371,116 +1452,44 @@ 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 '/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 '/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 '/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 '/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 '/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 '/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 * Block '/Display1' : Unused code path elimination * Block '/Display10' : Unused code path elimination @@ -1497,42 +1506,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 '/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 '/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 @@ -1552,628 +1556,675 @@ extern RT_MODEL *const rtM; * Block '/t внутри авто - спереди слева' : Unused code path elimination * Block '/t внутри авто - спереди справа' : Unused code path elimination * Block '/t окр. среды' : 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 '/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 '/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 '/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 '/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 '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : 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 '/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 '/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 '/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 '/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 '/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 '/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 '/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 '/Saturation7' : Unused code path elimination - * Block '/Saturation8' : 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 '/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 '/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 '/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 '/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 '/Display4' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display4' : 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 '/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 '/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 '/Display1' : 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 '/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 '/Display1' : 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 '/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 '/Display' : 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 '/Display' : 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 '/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 '/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 @@ -2229,36 +2280,40 @@ extern RT_MODEL *const rtM; * 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 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 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 */ /*- @@ -2546,7 +2601,7 @@ extern RT_MODEL *const rtM; * '' : '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_Comp_Trigger' + * '' : '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' @@ -3069,1383 +3124,1327 @@ extern RT_MODEL *const rtM; * '' : '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/FLU_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.3 FLL_tg' - * '' : '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 R_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/FLL_tg_max' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/FLL_tg_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))/is_ending_with_5' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.5 FLL_tg_incar/2.1 Incar target' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.5 FLL_tg_incar/X1-X4 для FLL_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.5 FLL_tg_incar/Y1-Y4 для FLL_tg_incar' - * '' : '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/Amb_Tg ' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.6 FLL_tg_amb/X1-X4 для FLL_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.6 FLL_tg_amb/Y1-Y4 для FLL_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.7 R_tg_sun/X1-X4 для FLU_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLL_tg_correct (Front Left Lower (Legs))/2.7 R_tg_sun/Y1-Y4 для FLL_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.3 FLU_tg' - * '' : '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)/FXU_tg_max' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/FXU_tg_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)/is_ending_with_5' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/убираем одинаковые точки' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.5 FLU_tg_incar/2.1 Incar target' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.5 FLU_tg_incar/X1-X4 для FLU_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.5 FLU_tg_incar/Y1-Y4 для FLU_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.6 FLU_tg_amb/Amb_Tg ' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.6 FLU_tg_amb/X1-X4 для FLU_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.6 FLU_tg_amb/Y1-Y4 для FLU_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.7 R_tg_sun/X1-X4 для FLU_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FLU_tg_correct (Front Left)/2.7 R_tg_sun/Y1-Y4 для FLU_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.3 FRL_tg' - * '' : '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 R_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/FRL_tg_max' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/FRL_tg_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))/is_ending_with_5' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.5 FRL_tg_incar/2.1 Incar target' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.5 FRL_tg_incar/X1-X4 для FRL_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.5 FRL_tg_incar/Y1-Y4 для FRL_tg_incar' - * '' : '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/Amb_Tg ' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.6 FRL_tg_amb/X1-X4 для FLL_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.6 FRL_tg_amb/Y1-Y4 для FRL_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.7 R_tg_sun/X1-X4 для FRL_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ FRL_tg_correct (Front Right Lower (Legs))/2.7 R_tg_sun/Y1-Y4 для FRL_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.3 RL_tg' - * '' : '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 R_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/R_tg_max' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/R_tg_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)/is_ending_with_5' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.5 RL_tg_incar/2.1 Incar target' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.5 RL_tg_incar/X1-X4 для R_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.5 RL_tg_incar/Y1-Y4 для R_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.6 R_tg_amb/Amb_Tg ' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.6 R_tg_amb/X1-X4 для R_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.6 R_tg_amb/Y1-Y4 для R_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.7 R_tg_sun/X1-X4 для R_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RL_tg_correct (Rear Left)/2.7 R_tg_sun/Y1-Y4 для R_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.3 RR_tg' - * '' : '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 R_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.7 R_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/R_tg_max' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/R_tg_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)/is_ending_with_5' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.5 RR_tg_incar/2.1 Incar target' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.5 RR_tg_incar/X1-X4 для R_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.5 RR_tg_incar/Y1-Y4 для R_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.6 R_tg_amb/Amb_Tg ' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.6 R_tg_amb/X1-X4 для R_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.6 R_tg_amb/Y1-Y4 для R_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.7 R_tg_sun/X1-X4 для R_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/ RR_tg_correct (Rear Right)/2.7 R_tg_sun/Y1-Y4 для R_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/2.3 FRU_tg' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/2.5 FLU_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/2.6 FLU_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/2.7 FLU_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/FXU_tg_max' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/FXU_tg_min' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/Saturation Dynamic' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/is_ending_with_5' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/2.5 FLU_tg_incar/2.1 Incar target' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/2.5 FLU_tg_incar/X1-X4 для FLU_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/2.5 FLU_tg_incar/Y1-Y4 для FLU_tg_incar' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/2.6 FLU_tg_amb/Amb_Tg ' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/2.6 FLU_tg_amb/X1-X4 для FLU_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/2.6 FLU_tg_amb/Y1-Y4 для FLU_tg_amb' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/2.7 FLU_tg_sun/X1-X4 для FLU_tg_sun' - * '' : 'HVAC_model/13.1.3.3 Dtg model/FLU_tg_correct (Front Right)/2.7 FLU_tg_sun/Y1-Y4 для FLU_tg_sun' - * '' : '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.3 Vtg_FLU' - * '' : '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)/Saturation Dynamic' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/Vtg_FX_plus_max' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/Vtg_FX_plus_min' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/is_ending_with_5' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.5 Vtg_FL_incar/2.1 Incar target Left' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.5 Vtg_FL_incar/X1-X4 для Vtg_FX_incar' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.5 Vtg_FL_incar/Y1-Y4 для Vtg_FX_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/Amb_Tg ' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.6 Vtg_FX_amb/X1-X2 для Vtg_FL_amb' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.6 Vtg_FX_amb/Y1-Y2 для Vtg_FL_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/X1-X2 для Vtg_FX_sun' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FL_correct (Front Left)/2.7 Vtg_FX_sun/Y1-Y2 для Vtg_FX_sun' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.3 Vtg_FRU' - * '' : '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)/FXU_tg_min' - * '' : '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)/Vtg_FX_plus_max' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/is_ending_with_5' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.5 Vtg_FR_incar/2.1 Incar target Right' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.5 Vtg_FR_incar/X1-X4 для Vtg_FX_incar' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.5 Vtg_FR_incar/Y1-Y4 для Vtg_FX_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/Amb_Tg ' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.6 Vtg_FX_amb/X1-X4 для Vtg_FR_amb' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.6 Vtg_FX_amb/Y1-Y4 для Vtg_FR_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/X1-X4 для Vtg_FX_sun' - * '' : 'HVAC_model/Blower speed (AF) auto or manual/Blower speed (auto mode)/Front/Calc Vtg_FR_correct (Front Right)/2.7 Vtg_FR_sun/Y1-Y4 для Vtg_FX_sun' - * '' : '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/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/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/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' */ #endif /* HVAC_model_h_ */ diff --git a/HVAC_model_data.c b/HVAC_model_data.c old mode 100755 new mode 100644 index 4c632d0..bd9d97a --- a/HVAC_model_data.c +++ b/HVAC_model_data.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.1140 + * Model version : 1.1202 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Wed Jun 24 09:01:39 2026 + * C/C++ source code generated on : Fri Jun 26 14:54:36 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 Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' */ { 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, @@ -623,15 +623,68 @@ const ConstP rtConstP = { */ { 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' + */ + { 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' + * '/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 }, @@ -644,8 +697,8 @@ const ConstP rtConstP = { /* 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, @@ -719,8 +772,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, @@ -800,29 +853,59 @@ 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' + */ + { 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 Table1' + * '/1-D Lookup Table2' + * '/1-D Lookup Table1' + * '/1-D Lookup Table2' */ { 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, @@ -916,44 +999,44 @@ 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: [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 }, diff --git a/HVAC_model_private.h b/HVAC_model_private.h old mode 100755 new mode 100644 index e8290b8..9af2cc7 --- a/HVAC_model_private.h +++ b/HVAC_model_private.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.1140 + * Model version : 1.1202 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Wed Jun 24 09:01:39 2026 + * C/C++ source code generated on : Fri Jun 26 14:54:36 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -76,7 +76,7 @@ preprocessor word size checks. 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_6, const int16_t bp[], uint32_t +extern uint32_t binsearch_u32s16(int16_t u_2, const int16_t bp[], uint32_t startIndex, uint32_t maxIndex); extern int16_t look1_is16lu64n32Ds32_binlcs(int16_t u0, const int16_t bp0[], const int16_t table[], uint32_t maxIndex); @@ -84,22 +84,24 @@ extern int16_t look1_is16lu64n32tu8Ds16Is16_binlcs(int16_t u0, const int16_t bp0[], const uint8_t table[], uint32_t maxIndex); extern int16_t look1_is16lu64n32Ds32_binlcn(int16_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 +extern int16_t look1_bs16ts16Dd_binlc(double u0, const int16_t bp0[], const int16_t table[], uint32_t maxIndex); -extern int16_t look1_is16bdlu64n48Ds32_binlcn(int16_t u0, const double bp0[], - const int16_t table[], uint32_t maxIndex); extern uint8_t look2_iu8bu8s16lu64n32_binlcse(uint8_t u0, uint8_t u1, const uint8_t bp0[], const int16_t bp1[], const uint8_t table[], const uint32_t 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_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 int16_t look1_iu16bs16lu64n32ts16Ds32_binlcs(uint16_t u0, const int16_t - bp0[], const int16_t table[], uint32_t maxIndex); -extern uint32_t plook_u32s16_bincka(int16_t u_8, const int16_t bp[], uint32_t +extern uint32_t plook_u32s16_bincka(int16_t u_3, const int16_t bp[], uint32_t maxIndex); extern void get_tg_FLL_for_LVL(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp, int16_t *rty_vals); @@ -233,42 +235,10 @@ extern void Level3_j(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_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 u1Incartarget(int16_t rtu_SET, uint8_t rtu_LVL, bool - rtu_set_has_half, int16_t *rty_y); -extern void Y1Y4FLL_tg_incar(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]); -extern void u(const int16_t rtu_y_in[5], double rty_y_fixed[5]); -extern void Amb_Tg(uint8_t rtu_LVL, int16_t *rty_y); -extern void X1X4FLL_tg_amb(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void Y1Y4FLL_tg_amb(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void X1X4FLU_tg_sun(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void Y1Y4FLL_tg_sun(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void FLL_tg_max(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y); -extern void FLL_tg_min(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 X1X4FLU_tg_incar(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]); -extern void Y1Y4FLU_tg_incar(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]); -extern void X1X4FLU_tg_amb(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void Y1Y4FLU_tg_amb(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void X1X4FLU_tg_sun_h(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void Y1Y4FLU_tg_sun(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void FXU_tg_min(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y); -extern void u1Incartarget_e(int16_t rtu_SET, uint8_t rtu_LVL, bool - rtu_set_has_half, int16_t *rty_y); -extern void X1X4R_tg_incar(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]); -extern void Y1Y4R_tg_incar(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]); -extern void X1X4R_tg_amb(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void Y1Y4R_tg_amb(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void X1X4R_tg_sun(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void Y1Y4R_tg_sun(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void R_tg_max(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y); -extern void R_tg_min(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y); -extern void u1Incartarget_p(int16_t rtu_SET, uint8_t rtu_LVL, bool - rtu_set_has_half, int16_t *rty_y); -extern void u1Incartarget_l(int16_t rtu_SET, uint8_t rtu_LVL, bool - rtu_set_has_half, int16_t *rty_y); 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_j(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_FALLING_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); @@ -288,7 +258,7 @@ 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_jy(uint8_t rtu_lvl, uint16_t *rty_f_g_ausINCARRATE_RISING_R); +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 g_ausINCARRATE_RISING_DIFF_R8(uint16_t @@ -322,15 +292,9 @@ extern void RearLeftAFmanualdirections(bool rtu_Enable, uint8_t rtu_blowerspeed, 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 Y1Y2Vtg_FL_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_FX_sun(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[3]); -extern void Vtg_FX_plus_max(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y); -extern void Vtg_FX_plus_min(int16_t rtu_SET, uint8_t rtu_LVL, int16_t *rty_y); -extern void X1X4Vtg_FX_incar_o(int16_t rtu_SET, uint8_t rtu_LVL, int16_t rty_y[5]); -extern void Y1Y4Vtg_FX_incar_o(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_p(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); diff --git a/HVAC_model_types.h b/HVAC_model_types.h old mode 100755 new mode 100644 index 8e664c6..3f32c7c --- a/HVAC_model_types.h +++ b/HVAC_model_types.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.1140 + * Model version : 1.1202 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Wed Jun 24 09:01:39 2026 + * C/C++ source code generated on : Fri Jun 26 14:54:36 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -186,6 +186,29 @@ typedef struct { #endif +#ifndef DEFINED_TYPEDEF_FOR_CCU_Msg1_Bus_ +#define DEFINED_TYPEDEF_FOR_CCU_Msg1_Bus_ + +typedef struct { + uint8_t CCU_MirrorHeating_Req; + uint8_t CCU_RecirculationLed_Cmd; + uint8_t CCU_DefrostLed_Req; + uint8_t CCU_SideWindowHeating_Req; + uint8_t CCU_RearWindowHeating_Req; + uint8_t CCU_FrontWindowHeating_Req; + uint8_t CCU_EmergAirCleaning_Stat; + uint8_t CCU_FireExtinguishSys_Stat; + uint8_t CCU_FLAutoPsngrLed_Cmd; + uint8_t CCU_FRAutoPsngrLed_Cmd; + uint8_t CCU_RLAutoPsngrLed_Cmd; + uint8_t CCU_RRAutoPsngrLed_Cmd; + uint8_t CCU_AC_MaxLed_Cmd; + uint8_t CCU_MSG1_RC; + uint8_t CCU_MSG1_CS; +} CCU_Msg1_Bus; + +#endif + #ifndef DEFINED_TYPEDEF_FOR_ActuatorCmdBus_ #define DEFINED_TYPEDEF_FOR_ActuatorCmdBus_ @@ -427,6 +450,80 @@ typedef struct { #endif +#ifndef DEFINED_TYPEDEF_FOR_dbg_Auto_AF_Bus_ +#define DEFINED_TYPEDEF_FOR_dbg_Auto_AF_Bus_ + +typedef struct { + uint8_t dbg_Auto_AF_MultMsg_Idx; + int16_t dbg_Auto_AF_Correct_FL; + int16_t dbg_Auto_AF_Correct_FR; + int16_t dbg_Auto_AF_Correct_RL; + int16_t dbg_Auto_AF_Correct_RR; + int16_t dbg_Auto_AF_Vtg_RL; + int16_t dbg_Auto_AF_Vtg_FL; + int16_t dbg_Auto_AF_Vtg_FR; + int16_t dbg_Auto_AF_Vtg_RR; + int16_t dbg_Auto_AF_Incar_RL; + int16_t dbg_Auto_AF_Incar_FR; + int16_t dbg_Auto_AF_Incar_RR; + int16_t dbg_Auto_AF_Incar_FL; + int16_t dbg_Auto_AF_Amb_RL; + int16_t dbg_Auto_AF_Amb_FR; + int16_t dbg_Auto_AF_Sun_RR; + int16_t dbg_Auto_AF_Amb_FL; + int16_t dbg_Auto_AF_Sun_FR; + int16_t dbg_Auto_AF_Sun_RL; + int16_t dbg_Auto_AF_Amb_RR; + int16_t dbg_Auto_AF_Sun_FL; +} dbg_Auto_AF_Bus; + +#endif + +#ifndef DEFINED_TYPEDEF_FOR_dbg_Auto_Duct_Bus_ +#define DEFINED_TYPEDEF_FOR_dbg_Auto_Duct_Bus_ + +typedef struct { + uint8_t dbg_Auto_Duct_MultMsg_Idx; + int16_t dbg_Auto_Duct_Tgt_FL_Upper_ro; + int16_t dbg_Auto_Duct_Tg_Incar_FL_Upper_ro; + int16_t dbg_Auto_Duct_Tgt_RR_ro; + int16_t dbg_Auto_Duct_Tgt_RL_ro; + int16_t dbg_Auto_Duct_Tgt_FR_Upper_ro; + int16_t dbg_Auto_Duct_Tgt_FR_Lower_ro; + int16_t dbg_Auto_Duct_Tgt_FL_Lower_ro; + int16_t dbg_Auto_Duct_Tg_Incar_FR_Upper_ro; + int16_t dbg_Auto_Duct_Tg_FL_Upper_ro; + int16_t dbg_Auto_Duct_Tg_FL_Lower_ro; + int16_t dbg_Auto_Duct_Tg_FR_Lower_ro; + int16_t dbg_Auto_Duct_Tg_FR_Upper_ro; + int16_t dbg_Auto_Duct_Tg_RL_ro; + int16_t dbg_Auto_Duct_Tg_RR_ro; + int16_t dbg_Auto_Duct_Tg_Incar_FL_Lower_ro; + int16_t dbg_Auto_Duct_Incar_FL_Lower_ro; + int16_t dbg_Auto_Duct_Incar_RR_ro; + int16_t dbg_Auto_Duct_Incar_RL_ro; + int16_t dbg_Auto_Duct_Incar_FR_Upper_ro; + int16_t dbg_Auto_Duct_Incar_FR_Lower_ro; + int16_t dbg_Auto_Duct_Incar_FL_Upper_ro; + int16_t dbg_Auto_Duct_Tg_Incar_FR_Lower_ro; + int16_t dbg_Auto_Duct_Amb_RL_ro; + int16_t dbg_Auto_Duct_Amb_FR_Upper_ro; + int16_t dbg_Auto_Duct_Amb_FR_Lower_ro; + int16_t dbg_Auto_Duct_Amb_RR_ro; + int16_t dbg_Auto_Duct_Amb_FL_Lower_ro; + int16_t dbg_Auto_Duct_Amb_FL_Upper_ro; + int16_t dbg_Auto_Duct_Tg_Incar_RL_ro; + int16_t dbg_Auto_Duct_Sun_FL_Lower_ro; + int16_t dbg_Auto_Duct_Sun_FR_Lower_ro; + int16_t dbg_Auto_Duct_Sun_FR_Upper_ro; + int16_t dbg_Auto_Duct_Sun_RL_ro; + int16_t dbg_Auto_Duct_Sun_FL_Upper_ro; + int16_t dbg_Auto_Duct_Sun_RR_ro; + int16_t dbg_Auto_Duct_Tg_Incar_RR_ro; +} dbg_Auto_Duct_Bus; + +#endif + #ifndef DEFINED_TYPEDEF_FOR_dbgCAN_dbg_Logic_Blower_Bus_ #define DEFINED_TYPEDEF_FOR_dbgCAN_dbg_Logic_Blower_Bus_ diff --git a/Model_Task.c b/Model_Task.c index d2bd05f..2a8aa8c 100644 --- a/Model_Task.c +++ b/Model_Task.c @@ -16,6 +16,19 @@ void ModelTask_Init( tLinTaskActuator *linTaskActuator1, tLinTaskActuator *linTaskActuator2, tLinTaskActuator *linTaskActuator3, + + tPwms *pwms, + + tGpios *gpios, + + tAdc0Task *adc0Task, + tAdc1Task *adc1Task, + + tCanSpamReceiver *canSpamReceiver, + tCanSpamTransmitter *canSpamTransmitter, + tCanSpamDebugTransmitter *canSpamDebugTransmitter, + tDiagnostic *diagnostic, + tLoggerInterface *logger ) { HVAC_model_initialize(); @@ -24,6 +37,18 @@ void ModelTask_Init( env->linTaskActuator2 = linTaskActuator2; env->linTaskActuator3 = linTaskActuator3; + env->pwms = pwms; + env->gpios = gpios; + + env->adc0Task = adc0Task; + env->adc1Task = adc1Task; + + env->canSpamReceiver = canSpamReceiver; + env->canSpamTransmitter = canSpamTransmitter; + env->canSpamDebugTransmitter = canSpamDebugTransmitter; + + env->diagnostic = diagnostic; + env->access = osMutexNew(NULL); env->logger = logger; InitThreadAtrStatic(&env->thread.attr, "ModelTask", env->thread.controlBlock, env->thread.stack, osPriorityNormal); @@ -218,20 +243,119 @@ static bool setActuatorBusy(tModelTask *env) { static _Noreturn void ModelTask_Thread(tModelTask *env) { for (;;) { if (osMutexAcquire(env->access, 1000) == osOK) { - rtDW.t_now = SystemGetMs(); +// LoggerFormatError(LOGGER, LOG_SIGN, "Step 1 = %d", SystemGetMs()) + + getCmdBusADCData(env->adc0Task, &rtDW.ADC_Data_Model); +// LoggerFormatError(LOGGER, LOG_SIGN, "Step 2 = %d", SystemGetMs()) + + getCmdBusADC2Data(env->adc1Task, (CmdBusADC2Data *)&rtDW.ADC_Data_Model.VN7008AJ_DIAG_FrontLINActuatorPowerDriverAB); +// LoggerFormatError(LOGGER, LOG_SIGN, "Step 3 = %d", SystemGetMs()) + + +// PWM_Get.pwmPercentFront = env->pwms->pwmFrontCaptureIO.getPwm(env->pwms->pwmFrontCaptureIO.env); +// PWM_Get.pwmPercentRear = env->pwms->pwmRearCaptureIO.getPwm(env->pwms->pwmRearCaptureIO.env); +// PWM_Get.pwmPercentFrontReserved = env->pwms->pwmFrontCaptureIO.getPwm(env->pwms->pwmFrontReservedCaptureIO.env); +// PWM_Get.pwmPercentRearReserved = env->pwms->pwmRearCaptureIO.getPwm(env->pwms->pwmRearReservedCaptureIO.env); + +// LoggerFormatError(LOGGER, LOG_SIGN, "Step 4 = %d", SystemGetMs()) + + get_CanSpamReceiver(env->canSpamReceiver); + +// LoggerFormatError(LOGGER, LOG_SIGN, "Step 5 = %d", SystemGetMs()) + HVAC_model_step(); + setActuatorBusy(env); - env->isRunning = true; + // Включение 5V (0 - Р’РљР›) + GpioPinSet(&env->gpios->power.SW5V_EN, rtY.PowerEnable_Model.SW5V_EN); +// GpioPinSet(&env->gpios->power.SW5V_EN, true); + // Контроль напряжения Р±РѕСЂС‚-сети (1 - Р’РљР›) + GpioPinSet(&env->gpios->power.PBATT_CK_EN, rtY.PowerEnable_Model.PBATT_CK_EN); + + GpioPinSet(&env->gpios->power.BTS5180_2EKA_FrontRearIncarMotor.Incar_Motor_Front_EN, rtY.PowerEnable_Model.Incar_Motor_Front_EN); + GpioPinSet(&env->gpios->power.BTS5180_2EKA_FrontRearIncarMotor.Incar_EN_Diag, true); + GpioPinSet(&env->gpios->power.BTS5180_2EKA_FrontRearIncarMotor.Incar_Motor_Rear_EN, rtY.PowerEnable_Model.Incar_Motor_Rear_EN); + + GpioPinSet(&env->gpios->power.BTS5180_2EKA_TwoWayValveAndReservePowerSupply.TwoWayValve_EN, rtY.PowerEnable_Model.TwoWayValve_EN); + GpioPinSet(&env->gpios->power.BTS5180_2EKA_TwoWayValveAndReservePowerSupply.TwoWayValve_EN_Diag, true); + GpioPinSet(&env->gpios->power.BTS5180_2EKA_TwoWayValveAndReservePowerSupply.ReservePower_EN, rtY.PowerEnable_Model.ReservePower_EN); + + GpioPinSet(&env->gpios->power.BTS4175SGAXUMA1_ReservePowerOutput.EN_ReservePower, rtY.PowerEnable_Model.EN_ReservePower); + GpioPinSet(&env->gpios->power.BTS4175SGAXUMA1_PowerReserve.EN_PowerReserve, rtY.PowerEnable_Model.EN_PowerReserve); + + GpioPinSet(&env->gpios->power.BTS5180_2EKA_2xChannelPTCPower.PtcRelayDriver1_EN, rtY.PowerEnable_Model.PtcRelayDriver1_EN); + GpioPinSet(&env->gpios->power.BTS5180_2EKA_2xChannelPTCPower.PtcRelayDriver_EN_Diag, true); + GpioPinSet(&env->gpios->power.BTS5180_2EKA_2xChannelPTCPower.PtcRelayDriver2_EN, rtY.PowerEnable_Model.PtcRelayDriver2_EN); + + GpioPinSet(&env->gpios->power.VN7008AJ_FrontLINActuatorPowerDriverAB.LIN_ActPower_AB, rtY.PowerEnable_Model.LIN_ActPower_AB); + GpioPinSet(&env->gpios->power.VN7008AJ_FrontLINActuatorPowerDriverAB.EN_CurrentSensing_AB, true); + + GpioPinSet(&env->gpios->power.VN7008AJ_RearLINActuatorPowerDriverC.LIN_ActPower_C, rtY.PowerEnable_Model.LIN_ActPower_C); + GpioPinSet(&env->gpios->power.VN7008AJ_RearLINActuatorPowerDriverC.EN_CurrentSensing_C, true); + + GpioPinSet(&env->gpios->power.BTS4175SGAXUMA1_ShutOFFValveBatteryChiller.EN_BATTChiller, rtY.PowerEnable_Model.EN_BATTChiller); + + + GpioPinSet(&env->gpios->power.BTS5180_2EKA_ShutOFFValveFrontRear.ShutOffFront_EN, rtY.PowerEnable_Model.ShutOffFront_EN); + GpioPinSet(&env->gpios->power.BTS5180_2EKA_ShutOFFValveFrontRear.ShutOff_EN_Diag, true); + GpioPinSet(&env->gpios->power.BTS5180_2EKA_ShutOFFValveFrontRear.ShutOffRear_EN, rtY.PowerEnable_Model.ShutOffRear_EN); + + GpioPinSet(&env->gpios->power.BTS5120_2EKA_ShutoffValvePowerTXV.ShutOffTXV1_EN, rtY.PowerEnable_Model.ShutOffTXV1_EN); + GpioPinSet(&env->gpios->power.BTS5120_2EKA_ShutoffValvePowerTXV.ShutOffTXV_EN_Diag, true); + GpioPinSet(&env->gpios->power.BTS5120_2EKA_ShutoffValvePowerTXV.ShutOffTXV2_EN, rtY.PowerEnable_Model.ShutOffTXV2_EN); + + + env->pwms->pwmFrontIo.setActivePercent(env->pwms->pwmFrontIo.env, rtY.PWM_Get_f.pwmPercentFront); + env->pwms->pwmRearIo.setActivePercent(env->pwms->pwmRearIo.env, rtY.PWM_Get_f.pwmPercentRear); + env->pwms->pwmFrontReservedIo.setActivePercent(env->pwms->pwmFrontReservedIo.env, rtY.PWM_Get_f.pwmPercentFrontReserved); + env->pwms->pwmRearReservedIo.setActivePercent(env->pwms->pwmRearReservedIo.env, rtY.PWM_Get_f.pwmPercentRearReserved); + + + memcpy(&env->ccu_candb_tx.CCU_Errors, &rtY.CCU_Errors_model, sizeof(env->ccu_candb_tx.CCU_Errors)); + memcpy(&env->ccu_candb_tx.CCU_Stat1, &rtY.CCU_Stat1_model, sizeof(env->ccu_candb_tx.CCU_Stat1)); + memcpy(&env->ccu_candb_tx.CCU_Stat2, &rtY.CCU_Stat2_model, sizeof(env->ccu_candb_tx.CCU_Stat2)); + memcpy(&env->ccu_candb_tx.CCU_HVC_Req_Msg, &rtY.CCUCAN_HVC_REQ_MSG_MODEL, sizeof(env->ccu_candb_tx.CCU_HVC_Req_Msg)); + memcpy(&env->ccu_candb_tx.CCU_Msg3, &rtY.CCU_Msg3_model, sizeof(env->ccu_candb_tx.CCU_Msg3)); + memcpy(&env->ccu_candb_tx.CCU_Msg1, &rtY.CCU_Msg1_model, sizeof(env->ccu_candb_tx.CCU_Msg1)); + set_CanSpamTransmitter(env->canSpamTransmitter, &env->ccu_candb_tx); + + + memcpy(&env->ccu_candb_dbg_tx.dbg_Act0, &rtY.dbgCAN_dbg_Act0_model, sizeof(env->ccu_candb_dbg_tx.dbg_Act0)); + memcpy(&env->ccu_candb_dbg_tx.dbg_Act1, &rtY.dbgCAN_dbg_Act1_model, sizeof(env->ccu_candb_dbg_tx.dbg_Act1)); + memcpy(&env->ccu_candb_dbg_tx.dbg_Act2, &rtY.dbgCAN_dbg_Act2_model, sizeof(env->ccu_candb_dbg_tx.dbg_Act2)); + memcpy(&env->ccu_candb_dbg_tx.dbg_Sen_Duct, &rtY.dbgCAN_dbg_Sen_Duct_model, sizeof(env->ccu_candb_dbg_tx.dbg_Sen_Duct)); + memcpy(&env->ccu_candb_dbg_tx.dbg_Sen_Eva, &rtY.dbgCAN_dbg_Sen_Eva_model, sizeof(env->ccu_candb_dbg_tx.dbg_Sen_Eva)); + memcpy(&env->ccu_candb_dbg_tx.dbg_Logic_Blower, &rtY.dbgCAN_dbg_Logic_Blower_model, sizeof(env->ccu_candb_dbg_tx.dbg_Logic_Blower)); + memcpy(&env->ccu_candb_dbg_tx.dbg_Sen_Amb, &rtY.dbgCAN_dbg_Sen_Amb_model, sizeof(env->ccu_candb_dbg_tx.dbg_Sen_Amb)); + memcpy(&env->ccu_candb_dbg_tx.dbg_Sen_Incar, &rtY.dbgCAN_dbg_Sen_Incar_model, sizeof(env->ccu_candb_dbg_tx.dbg_Sen_Incar)); + memcpy(&env->ccu_candb_dbg_tx.dbg_Sen_0, &rtY.dbgCAN_dbg_Sen_0_model, sizeof(env->ccu_candb_dbg_tx.dbg_Sen_0)); + memcpy(&env->ccu_candb_dbg_tx.dbg_Logic_Ac, &rtY.dbg_Logic_Ac_model, sizeof(env->ccu_candb_dbg_tx.dbg_Logic_Ac)); + memcpy(&env->ccu_candb_dbg_tx.dbg_CCU_IO, &rtY.dbgCAN_CCU_IO_model, sizeof(env->ccu_candb_dbg_tx.dbg_CCU_IO)); + memcpy(&env->ccu_candb_dbg_tx.dbg_Logic_Rec, &rtY.dbgCAN_Logic_Rec_model, sizeof(env->ccu_candb_dbg_tx.dbg_Logic_Rec)); + memcpy(&env->ccu_candb_dbg_tx.dbg_Logic_State, &rtY.dbgCAN_Logic_State_model, sizeof(env->ccu_candb_dbg_tx.dbg_Logic_State)); + + 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)); + + set_CanDebugSpamTransmitter(env->canSpamDebugTransmitter, &env->ccu_candb_dbg_tx); + + set_Dtc_state(env->diagnostic); + +// LoggerFormatError(LOGGER, LOG_SIGN, "Step END = %d", SystemGetMs()) + + env->isRunning = true; osMutexRelease(env->access); } else { LoggerErrorStatic(LOGGER, LOG_SIGN, "Access error ModelTask_Thread"); } - SystemDelayMs(100); + + SystemDelayMs(10); + } } diff --git a/Model_Task.h b/Model_Task.h index 44f4bac..a307071 100644 --- a/Model_Task.h +++ b/Model_Task.h @@ -10,11 +10,34 @@ #include "LoggerInterface.h" #include "HVAC_model.h" #include "LinActuatorTasks.h" +#include "AdcTasks.h" +#include "ccu_candb-binutil.h" +#include "ccu_candb_dbg-binutil.h" +#include "CanSpamTransmitter.h" +#include "CanSpamDebugTransmitter.h" +#include "Pwms.h" +#include "CanSpamReceiver.h" +#include "DiagnosticTask.h" typedef struct { + + tAdc0Task *adc0Task; + tAdc1Task *adc1Task; + tCanSpamReceiver *canSpamReceiver; + tCanSpamTransmitter *canSpamTransmitter; + tCanSpamDebugTransmitter *canSpamDebugTransmitter; + tGpios *gpios; + tPwms *pwms; + tDiagnostic *diagnostic; + + ccu_candb_tx_t ccu_candb_tx; + ccu_candb_dbg_tx_t ccu_candb_dbg_tx; + + osMutexId_t access; + tLoggerInterface *logger; tLinTaskActuator *linTaskActuator1; @@ -44,6 +67,14 @@ void ModelTask_Init( tLinTaskActuator *linTaskActuator1, tLinTaskActuator *linTaskActuator2, tLinTaskActuator *linTaskActuator3, + tPwms *pwms, + tGpios *gpios, + tAdc0Task *adc0Task, + tAdc1Task *adc1Task, + tCanSpamReceiver *canSpamReceiver, + tCanSpamTransmitter *canSpamTransmitter, + tCanSpamDebugTransmitter *canSpamDebugTransmitter, + tDiagnostic *diagnostic, tLoggerInterface *logger );