From eff81b70e0ef475731f831b15cce8291100c66ef Mon Sep 17 00:00:00 2001 From: cfif Date: Fri, 8 May 2026 14:38:38 +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=BB=D0=B0=D1=82=D1=8B=20=D0=BD?= =?UTF-8?q?=D0=B0=20V2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HVAC_model.c | 8172 +++++++++++++++++++++--------------------- HVAC_model.h | 1538 ++++---- HVAC_model_data.c | 19 +- HVAC_model_private.h | 22 +- HVAC_model_types.h | 4 +- 5 files changed, 4959 insertions(+), 4796 deletions(-) diff --git a/HVAC_model.c b/HVAC_model.c index 5a31888..0140751 100644 --- a/HVAC_model.c +++ b/HVAC_model.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.876 + * Model version : 1.900 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Wed May 6 14:55:30 2026 + * C/C++ source code generated on : Fri May 8 11:49:57 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -530,12 +530,6 @@ uint32_t plook_u32s16_bincka(int16_t u, const int16_t bp[], uint32_t maxIndex) return bpIndex; } -int32_t div_nde_s32_floor(int32_t numerator, int32_t denominator) -{ - return (((numerator < 0) != (denominator < 0)) && (numerator % denominator != - 0) ? -1 : 0) + numerator / denominator; -} - /* * Output and update for atomic system: * '/get_tg_FLL_for_LVL' @@ -2699,8 +2693,8 @@ void IfActionSubsystem1_l(int8_t *rty_Out1, double *rtd_Start_timer_l) /* * 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) { @@ -2717,8 +2711,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) { @@ -2735,8 +2729,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) { @@ -2753,8 +2747,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) { @@ -2771,8 +2765,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) { @@ -2789,8 +2783,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) { @@ -2807,8 +2801,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) { @@ -2825,8 +2819,8 @@ void AFforVentmode(uint8_t rtu_blower_speed, uint16_t *rty_out) /* * Output and update for atomic system: - * '/AF for Bi Level R' - * '/AF for Bi Level R' + * '/AF for Bi Level R' + * '/AF for Bi Level R' */ void AFforBiLevelR(uint8_t rtu_blower_speed, uint16_t *rty_out) { @@ -2843,8 +2837,8 @@ void AFforBiLevelR(uint8_t rtu_blower_speed, uint16_t *rty_out) /* * Output and update for atomic system: - * '/AF for Foot R' - * '/AF for Foot R' + * '/AF for Foot R' + * '/AF for Foot R' */ void AFforFootR(uint8_t rtu_blower_speed, uint16_t *rty_out) { @@ -2861,8 +2855,8 @@ void AFforFootR(uint8_t rtu_blower_speed, uint16_t *rty_out) /* * Output and update for atomic system: - * '/AF for Vent mode R' - * '/AF for Vent mode R' + * '/AF for Vent mode R' + * '/AF for Vent mode R' */ void AFforVentmodeR(uint8_t rtu_blower_speed, uint16_t *rty_out) { @@ -2879,188 +2873,113 @@ void AFforVentmodeR(uint8_t rtu_blower_speed, uint16_t *rty_out) /* * Output and update for atomic system: - * '/Valves for Bi Level' - * '/Valves for Bi Level' + * '/Valves for Bi Level' + * '/Valves for Bi Level' */ -void ValvesforBiLevel(uint8_t rtu_blower_speed, uint16_t *rty_out) +void ValvesforBiLevel(uint16_t rty_out[9]) { - int32_t tmp; - - /* : out = uint16(g_ausFLOW_FR_BIVALVE_MANUAL(blower_speed + 1)); */ - tmp = (int32_t)(rtu_blower_speed + 1U); - if (rtu_blower_speed + 1U > 255U) { - tmp = 255; + int32_t i; + for (i = 0; i < 9; i++) { + rty_out[i] = g_ausFLOW_FR_BIVALVE_MANUAL[i]; } - *rty_out = g_ausFLOW_FR_BIVALVE_MANUAL[tmp - 1]; + /* : out = g_ausFLOW_FR_BIVALVE_MANUAL; */ } /* * Output and update for atomic system: - * '/Valves for Def' - * '/Valves for Def' + * '/Valves for Def' + * '/Valves for Def' */ -void ValvesforDef(uint8_t rtu_blower_speed, uint16_t *rty_out) +void ValvesforDef(uint16_t rty_out[9]) { - int32_t tmp; - - /* : out = uint16(g_ausFLOW_FR_DE2VALVE(blower_speed + 1)); */ - tmp = (int32_t)(rtu_blower_speed + 1U); - if (rtu_blower_speed + 1U > 255U) { - tmp = 255; + int32_t i; + for (i = 0; i < 9; i++) { + rty_out[i] = g_ausFLOW_FR_DE2VALVE[i]; } - *rty_out = g_ausFLOW_FR_DE2VALVE[tmp - 1]; + /* : out = g_ausFLOW_FR_DE2VALVE; */ } /* * Output and update for atomic system: - * '/Valves for Foot' - * '/Valves for Foot' + * '/Valves for Foot + Def' + * '/Valves for Foot + Def' */ -void ValvesforFoot(uint8_t rtu_blower_speed, uint16_t *rty_out) +void ValvesforFootDef(uint16_t rty_out[9]) { - int32_t tmp; - - /* : out = uint16(g_ausFLOW_FR_FO2VALVE(blower_speed + 1)); */ - tmp = (int32_t)(rtu_blower_speed + 1U); - if (rtu_blower_speed + 1U > 255U) { - tmp = 255; + int32_t i; + for (i = 0; i < 9; i++) { + rty_out[i] = g_ausFLOW_FR_FD2VALVE[i]; } - *rty_out = g_ausFLOW_FR_FO2VALVE[tmp - 1]; + /* : out = g_ausFLOW_FR_FD2VALVE; */ } /* * Output and update for atomic system: - * '/Valves for Foot + Def' - * '/Valves for Foot + Def' + * '/Valves for Hi_Level' + * '/Valves for Hi_Level' */ -void ValvesforFootDef(uint8_t rtu_blower_speed, uint16_t *rty_out) +void ValvesforHi_Level(uint16_t rty_out[9]) { - int32_t tmp; - - /* : out = uint16(g_ausFLOW_FR_FD2VALVE(blower_speed + 1)); */ - tmp = (int32_t)(rtu_blower_speed + 1U); - if (rtu_blower_speed + 1U > 255U) { - tmp = 255; + int32_t i; + for (i = 0; i < 9; i++) { + rty_out[i] = g_ausFLOW_FR_HI2VALVE[i]; } - *rty_out = g_ausFLOW_FR_FD2VALVE[tmp - 1]; + /* : out = g_ausFLOW_FR_HI2VALVE; */ } /* * Output and update for atomic system: - * '/Valves for Hi_Level' - * '/Valves for Hi_Level' + * '/Valves for Tri-Level' + * '/Valves for Tri-Level' */ -void ValvesforHi_Level(uint8_t rtu_blower_speed, uint16_t *rty_out) +void ValvesforTriLevel(uint16_t rty_out[9]) { - int32_t tmp; - - /* : out = uint16(g_ausFLOW_FR_HI2VALVE(blower_speed + 1)); */ - tmp = (int32_t)(rtu_blower_speed + 1U); - if (rtu_blower_speed + 1U > 255U) { - tmp = 255; + int32_t i; + for (i = 0; i < 9; i++) { + rty_out[i] = g_ausFLOW_FR_TR2VALVE[i]; } - *rty_out = g_ausFLOW_FR_HI2VALVE[tmp - 1]; + /* : out = g_ausFLOW_FR_TR2VALVE; */ } /* * Output and update for atomic system: - * '/Valves for Tri-Level' - * '/Valves for Tri-Level' + * '/AF for Bi Level' + * '/AF for Bi Level' */ -void ValvesforTriLevel(uint8_t rtu_blower_speed, uint16_t *rty_out) +void AFforBiLevel_m(uint16_t rty_out[6]) { - int32_t tmp; - - /* : out = uint16(g_ausFLOW_FR_TR2VALVE(blower_speed + 1)); */ - tmp = (int32_t)(rtu_blower_speed + 1U); - if (rtu_blower_speed + 1U > 255U) { - tmp = 255; + int32_t i; + for (i = 0; i < 6; i++) { + rty_out[i] = g_ausFLOW_RE_BI2VALVE_MANUAL[i]; } - *rty_out = g_ausFLOW_FR_TR2VALVE[tmp - 1]; + /* : out = g_ausFLOW_RE_BI2VALVE_MANUAL; */ } /* * Output and update for atomic system: - * '/Valves for Vent mode' - * '/Valves for Vent mode' + * '/valves for Vent mode' + * '/valves for Vent mode' */ -void ValvesforVentmode(uint8_t rtu_blower_speed, uint16_t *rty_out) +void valvesforVentmode(uint16_t rty_out[6]) { - int32_t tmp; - - /* : out = uint16(g_ausFLOW_FR_VE2VALVE(blower_speed + 1)); */ - tmp = (int32_t)(rtu_blower_speed + 1U); - if (rtu_blower_speed + 1U > 255U) { - tmp = 255; + int32_t i; + for (i = 0; i < 6; i++) { + rty_out[i] = g_ausFLOW_RE_VENT_MANUAL[i]; } - *rty_out = g_ausFLOW_FR_VE2VALVE[tmp - 1]; + /* : out = g_ausFLOW_RE_VENT_MANUAL; */ } /* * Output and update for atomic system: - * '/AF for Bi Level' - * '/AF for Bi Level' - */ -void AFforBiLevel_m(uint8_t rtu_blower_speed, uint16_t *rty_out) -{ - int32_t tmp; - - /* : out = uint16(g_ausFLOW_RE_BI2VALVE_MANUAL(blower_speed + 1)); */ - tmp = (int32_t)(rtu_blower_speed + 1U); - if (rtu_blower_speed + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_ausFLOW_RE_BI2VALVE_MANUAL[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/AF for Foot' - * '/AF for Foot' - */ -void AFforFoot_p(uint8_t rtu_blower_speed, uint16_t *rty_out) -{ - int32_t tmp; - - /* : out = uint16(g_ausFLOW_RE_FO2VALVE(blower_speed + 1)); */ - tmp = (int32_t)(rtu_blower_speed + 1U); - if (rtu_blower_speed + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_ausFLOW_RE_FO2VALVE[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/valves for Vent mode' - * '/valves for Vent mode' - */ -void valvesforVentmode(uint8_t rtu_blower_speed, uint16_t *rty_out) -{ - int32_t tmp; - - /* : out = uint16(g_ausFLOW_RE_VENT_MANUAL(blower_speed + 1)); */ - tmp = (int32_t)(rtu_blower_speed + 1U); - if (rtu_blower_speed + 1U > 255U) { - tmp = 255; - } - - *rty_out = g_ausFLOW_RE_VENT_MANUAL[tmp - 1]; -} - -/* - * Output and update for atomic system: - * '/g_assSTART_ENTER_INCAR' - * '/g_assSTART_ENTER_INCAR' + * '/g_assSTART_ENTER_INCAR' + * '/g_assSTART_ENTER_INCAR' */ void g_assSTART_ENTER_INCAR_j(uint8_t rtu_LVL, int16_t *rty_out) { @@ -3077,9 +2996,9 @@ void g_assSTART_ENTER_INCAR_j(uint8_t rtu_LVL, int16_t *rty_out) /* * Output and update for atomic system: - * '/g_assSTART_ENTER_COOLANT ' - * '/g_assSTART_ENTER_COOLANT ' - * '/g_assSTART_ENTER_COOLANT ' + * '/g_assSTART_ENTER_COOLANT ' + * '/g_assSTART_ENTER_COOLANT ' + * '/g_assSTART_ENTER_COOLANT ' */ void g_assSTART_ENTER_COOLANT_p(uint8_t rtu_LVL, int16_t *rty_out) { @@ -3105,28 +3024,28 @@ void g_assSTART_ENTER_COOLANT_p(uint8_t rtu_LVL, int16_t *rty_out) /* * Output and update for action system: - * '/Level 4' - * '/Level 5' + * '/Level 4' + * '/Level 5' */ void Level4(int8_t *rty_step1, const uint16_t *rtd_ECT, const uint8_t *rtd_LEVEL, const double *rtd_MODE_DRIVER) { int16_t rtb_out_p2; - /* MATLAB Function: '/g_assSTART_ENTER_COOLANT ' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/g_assSTART_ENTER_COOLANT ' incorporates: + * DataStoreRead: '/Data Store Read3' */ g_assSTART_ENTER_COOLANT_p(*rtd_LEVEL, &rtb_out_p2); - /* Switch: '/Switch' incorporates: - * Constant: '/AUTO' - * Constant: '/Constant' - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * Logic: '/AND' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator2' + /* Switch: '/Switch' incorporates: + * Constant: '/AUTO' + * Constant: '/Constant' + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * Logic: '/AND' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator2' */ if ((*rtd_ECT < rtb_out_p2) && (*rtd_MODE_DRIVER == 1.0)) { *rty_step1 = 0; @@ -3134,37 +3053,37 @@ void Level4(int8_t *rty_step1, const uint16_t *rtd_ECT, const uint8_t *rtd_LEVEL *rty_step1 = -1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } /* * Output and update for action system: - * '/Level 0' - * '/Level 1' - * '/Level 2' - * '/Level 0' - * '/Level 1' + * '/Level 0' + * '/Level 1' + * '/Level 2' + * '/Level 0' + * '/Level 1' */ void Level0(int8_t *rty_step) { - /* SignalConversion generated from: '/step' incorporates: - * Constant: '/Constant' + /* SignalConversion generated from: '/step' incorporates: + * Constant: '/Constant' */ *rty_step = 1; } /* * Output and update for atomic system: - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' + * '/incar filter down' + * '/incar filter down' + * '/incar filter down' * '/incar filter down' - * '/incar filter down' - * '/incar filter down' + * '/incar filter down' + * '/incar filter down' + * '/incar filter down' + * '/incar filter down' + * '/incar filter down' + * '/incar filter down' * ... */ void incarfilterdown(uint8_t rtu_LVL, uint8_t *rty_out) @@ -3182,16 +3101,16 @@ void incarfilterdown(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' + * '/incar filter up' + * '/incar filter up' + * '/incar filter up' * '/incar filter up' - * '/incar filter up' - * '/incar filter up' + * '/incar filter up' + * '/incar filter up' + * '/incar filter up' + * '/incar filter up' + * '/incar filter up' + * '/incar filter up' * ... */ void incarfilterup(uint8_t rtu_LVL, uint8_t *rty_out) @@ -3209,8 +3128,8 @@ void incarfilterup(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/g_assSTART_COOLANT_STEP0_TO_1 ' - * '/g_assSTART_COOLANT_STEP0_TO_1 ' + * '/g_assSTART_COOLANT_STEP0_TO_1 ' + * '/g_assSTART_COOLANT_STEP0_TO_1 ' */ void g_assSTART_COOLANT_STEP0_TO_1_h(uint8_t rtu_LVL, int16_t *rty_out) { @@ -3236,11 +3155,11 @@ void g_assSTART_COOLANT_STEP0_TO_1_h(uint8_t rtu_LVL, int16_t *rty_out) /* * Output and update for atomic system: - * '/3 way valve status' - * '/3 way valve status' - * '/3 way valve status' - * '/3 way valve status' * '/3 way valve status' + * '/3 way valve status' + * '/3 way valve status' + * '/3 way valve status' + * '/3 way valve status' */ void uwayvalvestatus(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -3257,9 +3176,9 @@ void uwayvalvestatus(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/Dtg_FrontLower_X' - * '/Dtg_FrontLower_X' - * '/Dtg_FrontLower_X' + * '/Dtg_FrontLower_X' + * '/Dtg_FrontLower_X' + * '/Dtg_FrontLower_X' */ void Dtg_FrontLower_X(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -3276,9 +3195,9 @@ void Dtg_FrontLower_X(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/Dtg_FrontUpper_X' - * '/Dtg_FrontUpper_X' - * '/Dtg_FrontUpper_X' + * '/Dtg_FrontUpper_X' + * '/Dtg_FrontUpper_X' + * '/Dtg_FrontUpper_X' */ void Dtg_FrontUpper_X(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -3295,11 +3214,11 @@ void Dtg_FrontUpper_X(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' * '/Incar temp goto from step 1 to step 2 ' + * '/Incar temp goto from step 1 to step 2 ' + * '/Incar temp goto from step 1 to step 2 ' + * '/Incar temp goto from step 1 to step 2 ' + * '/Incar temp goto from step 1 to step 2 ' */ void Incartempgotofromstep1tostep2(uint8_t rtu_LVL, int16_t *rty_out) { @@ -3316,8 +3235,8 @@ void Incartempgotofromstep1tostep2(uint8_t rtu_LVL, int16_t *rty_out) /* * Output and update for atomic system: - * '/blower FR' - * '/blower FR' + * '/blower FR' + * '/blower FR' */ void blowerFR(uint8_t rtu_LVL, uint16_t *rty_out) { @@ -3334,11 +3253,11 @@ void blowerFR(uint8_t rtu_LVL, uint16_t *rty_out) /* * Output and update for atomic system: - * '/mode FR step 1' - * '/mode FR step 1' - * '/mode FR step 1' - * '/mode FR step 1' * '/mode FR step 1' + * '/mode FR step 1' + * '/mode FR step 1' + * '/mode FR step 1' + * '/mode FR step 1' */ void modeFRstep1(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -3355,11 +3274,11 @@ void modeFRstep1(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/window heating' - * '/window heating' - * '/window heating' - * '/window heating' * '/window heating' + * '/window heating' + * '/window heating' + * '/window heating' + * '/window heating' */ void windowheating(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -3376,10 +3295,10 @@ void windowheating(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' + * '/Time goto from step 1 to step 2 ' + * '/Time goto from step 1 to step 2 ' + * '/Time goto from step 1 to step 2 ' + * '/Time goto from step 1 to step 2 ' */ void Timegotofromstep1tostep2(uint8_t rtu_LVL, int16_t *rty_out) { @@ -3402,9 +3321,9 @@ void Timegotofromstep1tostep2(uint8_t rtu_LVL, int16_t *rty_out) /* * Output and update for atomic system: - * '/ECT min max' - * '/ECT min max' - * '/ECT min max' + * '/ECT min max' + * '/ECT min max' + * '/ECT min max' */ void ECTminmax(uint8_t rtu_LVL, int16_t rty_out[2]) { @@ -3433,9 +3352,9 @@ void ECTminmax(uint8_t rtu_LVL, int16_t rty_out[2]) /* * Output and update for atomic system: - * '/blower min max' - * '/blower min max' - * '/blower min max' + * '/blower min max' + * '/blower min max' + * '/blower min max' */ void blowerminmax(uint8_t rtu_LVL, uint16_t rty_out[2]) { @@ -3455,8 +3374,8 @@ void blowerminmax(uint8_t rtu_LVL, uint16_t rty_out[2]) /* * Output and update for action system: - * '/Level 4' - * '/Level 5' + * '/Level 4' + * '/Level 5' */ void Level4_c(int8_t *rty_step, uint16_t *rtd_Blower_FL, uint16_t *rtd_Blower_FR, uint8_t *rtd_Dtg_FLL, uint8_t *rtd_Dtg_FLR, uint8_t *rtd_Dtg_FUL, @@ -3477,67 +3396,67 @@ void Level4_c(int8_t *rty_step, uint16_t *rtd_Blower_FL, uint16_t *rtd_Blower_FR bool rtb_Equal_b; bool rtb_RelationalOperator1_mub; - /* DataStoreWrite: '/Data Store Write8' incorporates: - * DataStoreRead: '/Data Store Read10' - * MATLAB Function: '/3 way valve status' + /* DataStoreWrite: '/Data Store Write8' incorporates: + * DataStoreRead: '/Data Store Read10' + * MATLAB Function: '/3 way valve status' */ uwayvalvestatus(*rtd_LEVEL, rtd_Valve_3_way); - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataStoreRead: '/Data Store Read1' + * MATLAB Function: '/incar filter up' */ incarfilterup(*rtd_LEVEL, rtd_Incar_filter_up_value); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataStoreRead: '/Data Store Read2' + * MATLAB Function: '/incar filter down' */ incarfilterdown(*rtd_LEVEL, rtd_Incar_filter_down_value); - /* MATLAB Function: '/mode FR step 1' incorporates: - * DataStoreRead: '/Data Store Read5' + /* MATLAB Function: '/mode FR step 1' incorporates: + * DataStoreRead: '/Data Store Read5' */ modeFRstep1(*rtd_LEVEL, &rtb_out_fa); - /* DataStoreWrite: '/Data Store Write2' */ + /* DataStoreWrite: '/Data Store Write2' */ *rtd_Mode_FR = rtb_out_fa; - /* DataStoreWrite: '/Data Store Write3' */ + /* DataStoreWrite: '/Data Store Write3' */ *rtd_Mode_FL = rtb_out_fa; - /* MATLAB Function: '/window heating' incorporates: - * DataStoreRead: '/Data Store Read6' + /* MATLAB Function: '/window heating' incorporates: + * DataStoreRead: '/Data Store Read6' */ windowheating(*rtd_LEVEL, &rtb_out_fa); - /* DataStoreWrite: '/Data Store Write4' */ + /* DataStoreWrite: '/Data Store Write4' */ *rtd_El_window_heating = rtb_out_fa; - /* MATLAB Function: '/blower min max' incorporates: - * DataStoreRead: '/Data Store Read7' + /* MATLAB Function: '/blower min max' incorporates: + * DataStoreRead: '/Data Store Read7' */ blowerminmax(*rtd_LEVEL, rtb_out_nm); - /* MATLAB Function: '/ECT min max' incorporates: - * DataStoreRead: '/Data Store Read7' + /* MATLAB Function: '/ECT min max' incorporates: + * DataStoreRead: '/Data Store Read7' */ ECTminmax(*rtd_LEVEL, rtb_out_jl); - /* Lookup_n-D: '/blower для текущего ECT' incorporates: - * DataStoreRead: '/engine coolant temp' - * DataStoreWrite: '/Data Store Write5' + /* Lookup_n-D: '/blower для текущего ECT' incorporates: + * DataStoreRead: '/engine coolant temp' + * DataStoreWrite: '/Data Store Write5' */ *rtd_Blower_FR = look1_iu16bs16lu64n32_binlcse(*rtd_ECT, rtb_out_jl, rtb_out_nm, 1U); - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreWrite: '/Data Store Write5' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * DataStoreWrite: '/Data Store Write5' */ *rtd_Blower_FL = *rtd_Blower_FR; - /* MATLAB Function: '/Dtg_FrontUpper_X' incorporates: - * DataStoreRead: '/Data Store Read8' + /* MATLAB Function: '/Dtg_FrontUpper_X' incorporates: + * DataStoreRead: '/Data Store Read8' */ /* : out = g_aucSTART_DUCT_TGT_STEP2_FX_U(LVL + 1); */ tmp = (int32_t)(*rtd_LEVEL + 1U); @@ -3547,16 +3466,16 @@ void Level4_c(int8_t *rty_step, uint16_t *rtd_Blower_FL, uint16_t *rtd_Blower_FR rtb_out_fa = g_aucSTART_DUCT_TGT_STEP2_FX_U[tmp - 1]; - /* DataStoreWrite: '/Data Store Write10' */ + /* DataStoreWrite: '/Data Store Write10' */ *rtd_Dtg_FUR = rtb_out_fa; - /* DataStoreWrite: '/Data Store Write11' */ + /* DataStoreWrite: '/Data Store Write11' */ *rtd_Dtg_FUL = rtb_out_fa; - /* MATLAB Function: '/Dtg_FrontLower_X' incorporates: - * DataStoreRead: '/Data Store Read8' - * DataStoreRead: '/Data Store Read9' - * MATLAB Function: '/Dtg_FrontUpper_X' + /* MATLAB Function: '/Dtg_FrontLower_X' incorporates: + * DataStoreRead: '/Data Store Read8' + * DataStoreRead: '/Data Store Read9' + * MATLAB Function: '/Dtg_FrontUpper_X' */ /* : out = g_aucSTART_DUCT_TGT_STEP2_FX_L(LVL + 1); */ tmp = (int32_t)(*rtd_LEVEL + 1U); @@ -3566,62 +3485,62 @@ void Level4_c(int8_t *rty_step, uint16_t *rtd_Blower_FL, uint16_t *rtd_Blower_FR rtb_out_fa = g_aucSTART_DUCT_TGT_STEP2_FX_L[tmp - 1]; - /* End of MATLAB Function: '/Dtg_FrontLower_X' */ + /* End of MATLAB Function: '/Dtg_FrontLower_X' */ - /* DataStoreWrite: '/Data Store Write12' */ + /* DataStoreWrite: '/Data Store Write12' */ *rtd_Dtg_FLR = rtb_out_fa; - /* DataStoreWrite: '/Data Store Write13' */ + /* DataStoreWrite: '/Data Store Write13' */ *rtd_Dtg_FLL = rtb_out_fa; - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Constant: '/Recirc logic Partial REC' */ *rtd_Recirculation = 1.0; - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' */ rtb_Equal_b = (*rtd_step_start_controle_front == 1); - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read3' */ Incartempgotofromstep1tostep2(*rtd_LEVEL, &rtb_out_nl); - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read4' */ Timegotofromstep1tostep2(*rtd_LEVEL, &rtb_out_pe); - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreRead: '/Data Store Read4' - * Gain: '/из сек в мс' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' + /* RelationalOperator: '/Relational Operator1' incorporates: + * DataStoreRead: '/Data Store Read4' + * Gain: '/из сек в мс' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' */ rtb_RelationalOperator1_mub = (*rtd_t_now - localDW->t_start_delay_private_DSTATE > (uint32_t)(1000 * rtb_out_pe)); - /* 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_Equal_b && (!localDW->Cond_prev_private_DSTATE)) { localDW->t_start_delay_private_DSTATE = *rtd_t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * Constant: '/go to next step' - * Constant: '/stay at step 1' - * DataStoreRead: '/incar temp' - * Logic: '/Logical Operator' - * RelationalOperator: '/Relational Operator' + /* Switch: '/Switch' incorporates: + * Constant: '/go to next step' + * Constant: '/stay at step 1' + * DataStoreRead: '/incar temp' + * Logic: '/Logical Operator' + * RelationalOperator: '/Relational Operator' */ if ((*rtd_Incar_FL > rtb_out_nl) || rtb_RelationalOperator1_mub) { *rty_step = 2; @@ -3629,19 +3548,19 @@ void Level4_c(int8_t *rty_step, uint16_t *rtd_Blower_FL, uint16_t *rtd_Blower_FR *rty_step = 1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ localDW->Cond_prev_private_DSTATE = rtb_Equal_b; } /* * Output and update for atomic system: - * '/3 way valve status' - * '/3 way valve status' - * '/3 way valve status' - * '/3 way valve status' * '/3 way valve status' + * '/3 way valve status' + * '/3 way valve status' + * '/3 way valve status' + * '/3 way valve status' */ void uwayvalvestatus_a(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -3664,11 +3583,11 @@ void uwayvalvestatus_a(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' */ void timeforstep(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -3691,11 +3610,11 @@ void timeforstep(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' */ void timeforstep_j(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -3718,11 +3637,11 @@ void timeforstep_j(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/Time goto from step 2 to step 3 ' - * '/Time goto from step 2 to step 3 ' - * '/Time goto from step 2 to step 3 ' - * '/Time goto from step 2 to step 3 ' * '/Time goto from step 2 to step 3 ' + * '/Time goto from step 2 to step 3 ' + * '/Time goto from step 2 to step 3 ' + * '/Time goto from step 2 to step 3 ' + * '/Time goto from step 2 to step 3 ' */ void Timegotofromstep2tostep3(uint8_t rtu_LVL, int16_t *rty_out) { @@ -3745,11 +3664,11 @@ void Timegotofromstep2tostep3(uint8_t rtu_LVL, int16_t *rty_out) /* * Output and update for atomic system: - * '/blower step' - * '/blower step' - * '/blower step' - * '/blower step' - * '/blower step' + * '/blower step' + * '/blower step' + * '/blower step' + * '/blower step' + * '/blower step' */ void blowerstep(uint8_t rtu_LVL, uint16_t *rty_out) { @@ -3766,11 +3685,11 @@ void blowerstep(uint8_t rtu_LVL, uint16_t *rty_out) /* * Output and update for atomic system: - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' + * '/blower time for step' + * '/blower time for step' + * '/blower time for step' + * '/blower time for step' + * '/blower time for step' */ void blowertimeforstep(uint8_t rtu_LVL, uint16_t *rty_out) { @@ -3793,11 +3712,11 @@ void blowertimeforstep(uint8_t rtu_LVL, uint16_t *rty_out) /* * Output and update for atomic system: - * '/step' - * '/step' - * '/step' - * '/step' - * '/step' + * '/step' + * '/step' + * '/step' + * '/step' + * '/step' */ void step_j(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -3814,11 +3733,11 @@ void step_j(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' */ void timeforstep_g(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -3841,10 +3760,10 @@ void timeforstep_g(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/window heating' - * '/window heating' - * '/window heating' - * '/window heating' + * '/window heating' + * '/window heating' + * '/window heating' + * '/window heating' */ void windowheating_k(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -3867,9 +3786,9 @@ void windowheating_k(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/autodemist (autodefog)' - * '/autodemist (autodefog)' - * '/autodemist (autodefog)' + * '/autodemist (autodefog)' + * '/autodemist (autodefog)' + * '/autodemist (autodefog)' */ void autodemistautodefog(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -3886,8 +3805,8 @@ void autodemistautodefog(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for action system: - * '/Level 3' - * '/Level 4' + * '/Level 3' + * '/Level 4' */ void Level3(int8_t *rty_step, uint8_t *rtd_Autodefog, uint16_t *rtd_Blower_FL, uint16_t *rtd_Blower_FR, const uint16_t *rtd_Blower_logic_FL, @@ -3903,109 +3822,53 @@ void Level3(int8_t *rty_step, uint8_t *rtd_Autodefog, uint16_t *rtd_Blower_FL, { int32_t tmp; int16_t rtb_out_cw; + uint16_t rtb_out_as; uint16_t rtb_out_gqg; - uint16_t rtb_out_ov4; - uint8_t rtb_out_ac; - uint8_t rtb_out_ln5; - uint8_t rtb_out_oq; + uint8_t rtb_out_iew; + uint8_t rtb_out_ir5; + uint8_t rtb_out_pr; bool rtb_Cond_prev_private_gh; bool rtb_RelationalOperator1_df; - /* DataStoreWrite: '/Data Store Write8' incorporates: - * DataStoreRead: '/Data Store Read10' - * MATLAB Function: '/3 way valve status' + /* DataStoreWrite: '/Data Store Write8' incorporates: + * DataStoreRead: '/Data Store Read10' + * MATLAB Function: '/3 way valve status' */ uwayvalvestatus_a(*rtd_LEVEL, rtd_Valve_3_way); - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read9' + /* MATLAB Function: '/step' incorporates: + * DataStoreRead: '/Data Store Read9' */ - Dtg_FrontLower_X(*rtd_LEVEL, &rtb_out_oq); + Dtg_FrontLower_X(*rtd_LEVEL, &rtb_out_iew); - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read9' + /* MATLAB Function: '/time for step' incorporates: + * DataStoreRead: '/Data Store Read9' */ - timeforstep(*rtd_LEVEL, &rtb_out_ac); + timeforstep(*rtd_LEVEL, &rtb_out_ir5); - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write12' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint8_t)(*rtd_Dtg_FLL - *rtd_Dtg_logic_FLL) <= 0.01) { - *rtd_Dtg_FLR = *rtd_Dtg_logic_FLL; - } else { - if (*rtd_Dtg_FLL <= *rtd_Dtg_logic_FLL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - tmp = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - tmp = -1; - } - - *rtd_Dtg_FLR = (uint8_t)((double)rtb_out_oq / (double)rtb_out_ac / 1000.0 * - (double)(*rtd_t_now - localDW->UnitDelay_DSTATE) * (double)tmp + (double)* - rtd_Dtg_FLL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write13' incorporates: - * DataStoreWrite: '/Data Store Write12' - */ - *rtd_Dtg_FLL = *rtd_Dtg_FLR; - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - Dtg_FrontUpper_X(*rtd_LEVEL, &rtb_out_oq); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - timeforstep_j(*rtd_LEVEL, &rtb_out_ac); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write10' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write12' + * Product: '/Product1' + * Product: '/change rate (dtg//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' * RelationalOperator: '/Relational Operator' * RelationalOperator: '/Relational Operator' - * Sum: '/Add' + * Sum: '/Add' * Sum: '/Add' * Sum: '/Subtract' * Switch: '/Switch' * UnitDelay: '/Unit Delay' */ - if ((uint8_t)(*rtd_Dtg_FUL - *rtd_Dtg_logic_FUL) <= 0.01) { - *rtd_Dtg_FUR = *rtd_Dtg_logic_FUL; + if ((uint8_t)(*rtd_Dtg_FLL - *rtd_Dtg_logic_FLL) <= 0.01) { + *rtd_Dtg_FLR = *rtd_Dtg_logic_FLL; } else { - if (*rtd_Dtg_FUL <= *rtd_Dtg_logic_FUL) { + if (*rtd_Dtg_FLL <= *rtd_Dtg_logic_FLL) { /* Switch: '/Switch' incorporates: * Constant: '/Constant' */ @@ -4017,146 +3880,51 @@ void Level3(int8_t *rty_step, uint8_t *rtd_Autodefog, uint16_t *rtd_Blower_FL, tmp = -1; } - *rtd_Dtg_FUR = (uint8_t)((double)rtb_out_oq / (double)rtb_out_ac / 1000.0 * - (double)(*rtd_t_now - localDW->UnitDelay_DSTATE_i) * (double)tmp + (double)* - rtd_Dtg_FUL); + *rtd_Dtg_FLR = (uint8_t)((double)rtb_out_iew / (double)rtb_out_ir5 / 1000.0 * + (double)(*rtd_t_now - localDW->UnitDelay_DSTATE) * (double)tmp + (double)* + rtd_Dtg_FLL); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write11' incorporates: - * DataStoreWrite: '/Data Store Write10' + /* DataStoreWrite: '/Data Store Write13' incorporates: + * DataStoreWrite: '/Data Store Write12' */ - *rtd_Dtg_FUL = *rtd_Dtg_FUR; + *rtd_Dtg_FLL = *rtd_Dtg_FLR; - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' + /* MATLAB Function: '/step' incorporates: + * DataStoreRead: '/Data Store Read8' */ - incarfilterup(*rtd_LEVEL, rtd_Incar_filter_up_value); + Dtg_FrontUpper_X(*rtd_LEVEL, &rtb_out_iew); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' + /* MATLAB Function: '/time for step' incorporates: + * DataStoreRead: '/Data Store Read8' */ - incarfilterdown(*rtd_LEVEL, rtd_Incar_filter_down_value); + timeforstep_j(*rtd_LEVEL, &rtb_out_ir5); - /* DataStoreWrite: '/Data Store Write14' incorporates: - * DataStoreRead: '/Data Store Read3' - * MATLAB Function: '/autodemist (autodefog)' - */ - autodemistautodefog(*rtd_LEVEL, rtd_Autodefog); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_out_oq = (uint8_t)(*rtd_Mode_FL - *rtd_Mode_logic_FL); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - step_j(*rtd_LEVEL, &rtb_out_ac); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - timeforstep_g(*rtd_LEVEL, &rtb_out_ln5); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write2' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if (rtb_out_oq <= 0.01) { - *rtd_Mode_FR = *rtd_Mode_logic_FL; - } else { - if (*rtd_Mode_FL <= *rtd_Mode_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - tmp = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - tmp = -1; - } - - *rtd_Mode_FR = (uint8_t)((double)rtb_out_ac / (double)rtb_out_ln5 / 1000.0 * - (double)(*rtd_t_now - localDW->UnitDelay_DSTATE_j) * (double)tmp + (double)* - rtd_Mode_FL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreWrite: '/Data Store Write2' - */ - *rtd_Mode_FL = *rtd_Mode_FR; - - /* MATLAB Function: '/window heating' incorporates: - * DataStoreRead: '/Data Store Read6' - */ - windowheating_k(*rtd_LEVEL, &rtb_out_oq); - - /* DataStoreWrite: '/Data Store Write4' */ - *rtd_El_window_heating = rtb_out_oq; - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_out_ov4 = (uint16_t)(*rtd_Blower_FL - *rtd_Blower_logic_FL); - - /* RelationalOperator: '/Relational Operator' incorporates: + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' * Constant: '/epsilon' - */ - rtb_Cond_prev_private_gh = (rtb_out_ov4 <= 0.01); - - /* MATLAB Function: '/blower step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstep(*rtd_LEVEL, &rtb_out_gqg); - - /* MATLAB Function: '/blower time for step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowertimeforstep(*rtd_LEVEL, &rtb_out_ov4); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write5' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write10' + * Product: '/Product1' + * Product: '/change rate (dtg//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * RelationalOperator: '/Relational Operator' * RelationalOperator: '/Relational Operator' - * Sum: '/Add' + * Sum: '/Add' + * Sum: '/Add' * Sum: '/Subtract' * Switch: '/Switch' * UnitDelay: '/Unit Delay' */ - if (rtb_Cond_prev_private_gh) { - *rtd_Blower_FR = *rtd_Blower_logic_FL; + if ((uint8_t)(*rtd_Dtg_FUL - *rtd_Dtg_logic_FUL) <= 0.01) { + *rtd_Dtg_FUR = *rtd_Dtg_logic_FUL; } else { - if (*rtd_Blower_FL <= *rtd_Blower_logic_FL) { + if (*rtd_Dtg_FUL <= *rtd_Dtg_logic_FUL) { /* Switch: '/Switch' incorporates: * Constant: '/Constant' */ @@ -4168,60 +3936,211 @@ void Level3(int8_t *rty_step, uint8_t *rtd_Autodefog, uint16_t *rtd_Blower_FL, tmp = -1; } - *rtd_Blower_FR = (uint16_t)((double)rtb_out_gqg / (double)rtb_out_ov4 / + *rtd_Dtg_FUR = (uint8_t)((double)rtb_out_iew / (double)rtb_out_ir5 / 1000.0 * + (double)(*rtd_t_now - localDW->UnitDelay_DSTATE_i) * (double)tmp + (double)* + rtd_Dtg_FUL); + } + + /* End of Switch: '/Switch' */ + + /* DataStoreWrite: '/Data Store Write11' incorporates: + * DataStoreWrite: '/Data Store Write10' + */ + *rtd_Dtg_FUL = *rtd_Dtg_FUR; + + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataStoreRead: '/Data Store Read1' + * MATLAB Function: '/incar filter up' + */ + incarfilterup(*rtd_LEVEL, rtd_Incar_filter_up_value); + + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataStoreRead: '/Data Store Read2' + * MATLAB Function: '/incar filter down' + */ + incarfilterdown(*rtd_LEVEL, rtd_Incar_filter_down_value); + + /* DataStoreWrite: '/Data Store Write14' incorporates: + * DataStoreRead: '/Data Store Read3' + * MATLAB Function: '/autodemist (autodefog)' + */ + autodemistautodefog(*rtd_LEVEL, rtd_Autodefog); + + /* Sum: '/Add' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + */ + rtb_out_iew = (uint8_t)(*rtd_Mode_FL - *rtd_Mode_logic_FL); + + /* MATLAB Function: '/step' incorporates: + * DataStoreRead: '/Data Store Read5' + */ + step_j(*rtd_LEVEL, &rtb_out_ir5); + + /* MATLAB Function: '/time for step' incorporates: + * DataStoreRead: '/Data Store Read5' + */ + timeforstep_g(*rtd_LEVEL, &rtb_out_pr); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write2' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + if (rtb_out_iew <= 0.01) { + *rtd_Mode_FR = *rtd_Mode_logic_FL; + } else { + if (*rtd_Mode_FL <= *rtd_Mode_logic_FL) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + tmp = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + tmp = -1; + } + + *rtd_Mode_FR = (uint8_t)((double)rtb_out_ir5 / (double)rtb_out_pr / 1000.0 * + (double)(*rtd_t_now - localDW->UnitDelay_DSTATE_j) * (double)tmp + (double)* + rtd_Mode_FL); + } + + /* End of Switch: '/Switch' */ + + /* DataStoreWrite: '/Data Store Write3' incorporates: + * DataStoreWrite: '/Data Store Write2' + */ + *rtd_Mode_FL = *rtd_Mode_FR; + + /* MATLAB Function: '/window heating' incorporates: + * DataStoreRead: '/Data Store Read6' + */ + windowheating_k(*rtd_LEVEL, &rtb_out_iew); + + /* DataStoreWrite: '/Data Store Write4' */ + *rtd_El_window_heating = rtb_out_iew; + + /* Sum: '/Add' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + */ + rtb_out_as = (uint16_t)(*rtd_Blower_FL - *rtd_Blower_logic_FL); + + /* RelationalOperator: '/Relational Operator' incorporates: + * Constant: '/epsilon' + */ + rtb_Cond_prev_private_gh = (rtb_out_as <= 0.01); + + /* MATLAB Function: '/blower step' incorporates: + * DataStoreRead: '/Data Store Read7' + */ + blowerstep(*rtd_LEVEL, &rtb_out_gqg); + + /* MATLAB Function: '/blower time for step' incorporates: + * DataStoreRead: '/Data Store Read7' + */ + blowertimeforstep(*rtd_LEVEL, &rtb_out_as); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write5' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + if (rtb_Cond_prev_private_gh) { + *rtd_Blower_FR = *rtd_Blower_logic_FL; + } else { + if (*rtd_Blower_FL <= *rtd_Blower_logic_FL) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + tmp = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + tmp = -1; + } + + *rtd_Blower_FR = (uint16_t)((double)rtb_out_gqg / (double)rtb_out_as / 1000.0 * (double)(*rtd_t_now - localDW->UnitDelay_DSTATE_a) * (double)tmp + (double)*rtd_Blower_FL); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreWrite: '/Data Store Write5' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * DataStoreWrite: '/Data Store Write5' */ *rtd_Blower_FL = *rtd_Blower_FR; - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Constant: '/Recirc logic Partial REC' */ *rtd_Recirculation = 1.0; - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' */ rtb_Cond_prev_private_gh = (*rtd_step_start_controle_front == 2); - /* MATLAB Function: '/Time goto from step 2 to step 3 ' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/Time goto from step 2 to step 3 ' incorporates: + * DataStoreRead: '/Data Store Read4' */ Timegotofromstep2tostep3(*rtd_LEVEL, &rtb_out_cw); - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreRead: '/Data Store Read4' - * Gain: '/из сек в мс' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' + /* RelationalOperator: '/Relational Operator1' incorporates: + * DataStoreRead: '/Data Store Read4' + * Gain: '/из сек в мс' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' */ rtb_RelationalOperator1_df = (*rtd_t_now - localDW->t_start_delay_private_DSTATE > (uint32_t)(1000 * rtb_out_cw)); - /* 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_Cond_prev_private_gh && (!localDW->Cond_prev_private_DSTATE)) { localDW->t_start_delay_private_DSTATE = *rtd_t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * Constant: '/go to next step' - * Constant: '/stay at step' - * DataStoreRead: '/Data Store Read' - * Logic: '/Logical Operator' + /* Switch: '/Switch' incorporates: + * Constant: '/go to next step' + * Constant: '/stay at step' + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator' */ if (rtb_RelationalOperator1_df || (*rtd_HI_logic_on)) { *rty_step = 3; @@ -4229,55 +4148,55 @@ void Level3(int8_t *rty_step, uint8_t *rtd_Autodefog, uint16_t *rtd_Blower_FL, *rty_step = 2; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ localDW->UnitDelay_DSTATE = *rtd_t_now; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ localDW->UnitDelay_DSTATE_i = *rtd_t_now; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ localDW->UnitDelay_DSTATE_j = *rtd_t_now; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ localDW->UnitDelay_DSTATE_a = *rtd_t_now; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ localDW->Cond_prev_private_DSTATE = rtb_Cond_prev_private_gh; } /* * Output and update for action system: - * '/Step 3 F' - * '/Step 3 R' + * '/Step 3 F' + * '/Step 3 R' */ void Step3F(int8_t *rty_step, int8_t *rtd_start_control_finished_front) { - /* DataStoreWrite: '/Data Store Write10' incorporates: - * Constant: '/True' + /* DataStoreWrite: '/Data Store Write10' incorporates: + * Constant: '/True' */ *rtd_start_control_finished_front = 1; - /* SignalConversion generated from: '/step' incorporates: - * Constant: '/Constant1' + /* SignalConversion generated from: '/step' incorporates: + * Constant: '/Constant1' */ *rty_step = 3; } /* * Output and update for atomic system: - * '/g_ausSTART_ENTER_SETTEMP' - * '/g_ausSTART_ENTER_SETTEMP' - * '/g_ausSTART_ENTER_SETTEMP' + * '/g_ausSTART_ENTER_SETTEMP' + * '/g_ausSTART_ENTER_SETTEMP' + * '/g_ausSTART_ENTER_SETTEMP' */ void g_ausSTART_ENTER_SETTEMP_b(uint8_t rtu_LVL, int16_t *rty_out) { @@ -4306,11 +4225,11 @@ void g_ausSTART_ENTER_SETTEMP_b(uint8_t rtu_LVL, int16_t *rty_out) /* * Output and update for atomic system: - * '/g_assSTART_ENTER_INCAR' - * '/g_assSTART_ENTER_INCAR' - * '/g_assSTART_ENTER_INCAR' - * '/g_assSTART_ENTER_INCAR' - * '/g_assSTART_ENTER_INCAR' + * '/g_assSTART_ENTER_INCAR' + * '/g_assSTART_ENTER_INCAR' + * '/g_assSTART_ENTER_INCAR' + * '/g_assSTART_ENTER_INCAR' + * '/g_assSTART_ENTER_INCAR' */ void g_assSTART_ENTER_INCAR_p(uint8_t rtu_LVL, int16_t *rty_out) { @@ -4333,9 +4252,9 @@ void g_assSTART_ENTER_INCAR_p(uint8_t rtu_LVL, int16_t *rty_out) /* * Output and update for atomic system: - * '/g_assSTART_ENTER_COOLANT ' - * '/g_assSTART_ENTER_COOLANT ' - * '/g_assSTART_ENTER_COOLANT ' + * '/g_assSTART_ENTER_COOLANT ' + * '/g_assSTART_ENTER_COOLANT ' + * '/g_assSTART_ENTER_COOLANT ' */ void g_assSTART_ENTER_COOLANT_e(uint8_t rtu_LVL, int16_t *rty_out) { @@ -4352,8 +4271,8 @@ void g_assSTART_ENTER_COOLANT_e(uint8_t rtu_LVL, int16_t *rty_out) /* * Output and update for action system: - * '/Level 4' - * '/Level 5' + * '/Level 4' + * '/Level 5' */ void Level4_e(int8_t *rty_step1, const uint16_t *rtd_ECT, const int16_t *rtd_Incar_RR, const uint8_t *rtd_LEVEL, const double @@ -4362,28 +4281,28 @@ void Level4_e(int8_t *rty_step1, const uint16_t *rtd_ECT, const int16_t int16_t rtb_out_ef; int16_t rtb_out_ntg; - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: + * DataStoreRead: '/Data Store Read4' */ g_assSTART_ENTER_INCAR_p(*rtd_LEVEL, &rtb_out_ntg); - /* MATLAB Function: '/g_assSTART_ENTER_COOLANT ' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/g_assSTART_ENTER_COOLANT ' incorporates: + * DataStoreRead: '/Data Store Read3' */ g_assSTART_ENTER_COOLANT_e(*rtd_LEVEL, &rtb_out_ef); - /* Switch: '/Switch' incorporates: - * Constant: '/AUTO' - * Constant: '/Constant' - * Constant: '/Constant1' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * Logic: '/AND' - * Logic: '/AND1' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' + /* Switch: '/Switch' incorporates: + * Constant: '/AUTO' + * Constant: '/Constant' + * Constant: '/Constant1' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * Logic: '/AND' + * Logic: '/AND1' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' */ if (((*rtd_Incar_RR < rtb_out_ntg) || (*rtd_ECT < rtb_out_ef)) && (*rtd_MODE_RR_passenger == 1.0)) { @@ -4392,15 +4311,15 @@ void Level4_e(int8_t *rty_step1, const uint16_t *rtd_ECT, const int16_t *rty_step1 = -1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ } /* * Output and update for atomic system: - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' - * '/incar filter down' + * '/incar filter down' + * '/incar filter down' + * '/incar filter down' + * '/incar filter down' */ void incarfilterdown_c(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -4423,10 +4342,10 @@ void incarfilterdown_c(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' - * '/incar filter up' + * '/incar filter up' + * '/incar filter up' + * '/incar filter up' + * '/incar filter up' */ void incarfilterup_i(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -4449,9 +4368,9 @@ void incarfilterup_i(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/g_assSTART_COOLANT_STEP0_TO_1 ' - * '/g_assSTART_COOLANT_STEP0_TO_1 ' - * '/g_assSTART_COOLANT_STEP0_TO_1 ' + * '/g_assSTART_COOLANT_STEP0_TO_1 ' + * '/g_assSTART_COOLANT_STEP0_TO_1 ' + * '/g_assSTART_COOLANT_STEP0_TO_1 ' */ void g_assSTART_COOLANT_STEP0_TO_1_e(uint8_t rtu_LVL, int16_t *rty_out) { @@ -4468,8 +4387,8 @@ void g_assSTART_COOLANT_STEP0_TO_1_e(uint8_t rtu_LVL, int16_t *rty_out) /* * Output and update for action system: - * '/Level 4' - * '/Level 5' + * '/Level 4' + * '/Level 5' */ void Level4_m(int8_t *rty_step1, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR, uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, const @@ -4480,82 +4399,82 @@ void Level4_m(int8_t *rty_step1, uint16_t *rtd_Blower_RL, uint16_t { int16_t rtb_out_ls; - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ *rtd_Blower_RR = 10U; - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ *rtd_Blower_RL = 10U; - /* DataStoreWrite: '/Data Store Write10' incorporates: - * Constant: '/Constant4' + /* DataStoreWrite: '/Data Store Write10' incorporates: + * Constant: '/Constant4' */ *rtd_Dtg_RR = 80U; - /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant5' + /* DataStoreWrite: '/Data Store Write11' incorporates: + * Constant: '/Constant5' */ *rtd_Dtg_RL = 80U; - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataStoreRead: '/Data Store Read1' + * MATLAB Function: '/incar filter up' */ incarfilterup_i(*rtd_LEVEL, rtd_Incar_filter_up_value); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataStoreRead: '/Data Store Read2' + * MATLAB Function: '/incar filter down' */ incarfilterdown_c(*rtd_LEVEL, rtd_Incar_filter_down_value); - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Mode - foot' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Mode - foot' */ *rtd_Mode_RR = 60U; - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Mode - foot' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Mode - foot' */ *rtd_Mode_RL = 60U; - /* DataStoreWrite: '/Data Store Write8' incorporates: - * Constant: '/Valve open' + /* DataStoreWrite: '/Data Store Write8' incorporates: + * Constant: '/Valve open' */ *rtd_Valve_3_way = 1U; - /* DataStoreWrite: '/Data Store Write9' incorporates: - * Constant: '/Valve open' + /* DataStoreWrite: '/Data Store Write9' incorporates: + * Constant: '/Valve open' */ *rtd_Valve_2_way = 1U; - /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' incorporates: + * DataStoreRead: '/Data Store Read3' */ g_assSTART_COOLANT_STEP0_TO_1_e(*rtd_LEVEL, &rtb_out_ls); - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Engine coolant temp' - * RelationalOperator: '/Relational Operator' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Engine coolant temp' + * RelationalOperator: '/Relational Operator' */ *rty_step1 = (int8_t)(*rtd_ECT > rtb_out_ls); } /* * Output and update for atomic system: - * '/2 way valve' - * '/2 way valve' - * '/2 way valve' - * '/2 way valve' - * '/2 way valve' * '/2 way valve' - * '/2 way valve' - * '/2 way valve' - * '/2 way valve' - * '/2 way valve' + * '/2 way valve' + * '/2 way valve' + * '/2 way valve' + * '/2 way valve' + * '/2 way valve' + * '/2 way valve' + * '/2 way valve' + * '/2 way valve' + * '/2 way valve' * ... */ void uwayvalve(uint8_t rtu_LVL, uint8_t *rty_out) @@ -4573,12 +4492,12 @@ void uwayvalve(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/Dtg_rear' - * '/Dtg_rear' - * '/Dtg_rear' - * '/Dtg_rear' - * '/Dtg_rear' * '/Dtg_rear' + * '/Dtg_rear' + * '/Dtg_rear' + * '/Dtg_rear' + * '/Dtg_rear' + * '/Dtg_rear' */ void Dtg_rear(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -4595,12 +4514,12 @@ void Dtg_rear(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' - * '/Incar temp goto from step 1 to step 2 ' * '/Incar temp goto from step 1 to step 2 ' + * '/Incar temp goto from step 1 to step 2 ' + * '/Incar temp goto from step 1 to step 2 ' + * '/Incar temp goto from step 1 to step 2 ' + * '/Incar temp goto from step 1 to step 2 ' + * '/Incar temp goto from step 1 to step 2 ' */ void Incartempgotofromstep1tostep2_j(uint8_t rtu_LVL, int16_t *rty_out) { @@ -4623,16 +4542,16 @@ void Incartempgotofromstep1tostep2_j(uint8_t rtu_LVL, int16_t *rty_out) /* * Output and update for atomic system: - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' - * '/Time goto from step 1 to step 2 ' + * '/Time goto from step 1 to step 2 ' + * '/Time goto from step 1 to step 2 ' + * '/Time goto from step 1 to step 2 ' + * '/Time goto from step 1 to step 2 ' + * '/Time goto from step 1 to step 2 ' + * '/Time goto from step 1 to step 2 ' + * '/Time goto from step 1 to step 2 ' + * '/Time goto from step 1 to step 2 ' + * '/Time goto from step 1 to step 2 ' * ... */ void Timegotofromstep1tostep2_l(uint8_t rtu_LVL, int16_t *rty_out) @@ -4662,12 +4581,12 @@ void Timegotofromstep1tostep2_l(uint8_t rtu_LVL, int16_t *rty_out) /* * Output and update for atomic system: - * '/mode rear step 1' - * '/mode rear step 1' - * '/mode rear step 1' - * '/mode rear step 1' - * '/mode rear step 1' * '/mode rear step 1' + * '/mode rear step 1' + * '/mode rear step 1' + * '/mode rear step 1' + * '/mode rear step 1' + * '/mode rear step 1' */ void moderearstep1(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -4690,8 +4609,8 @@ void moderearstep1(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for action system: - * '/Level 0' - * '/Level 1' + * '/Level 0' + * '/Level 1' */ void Level0_b(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR, uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, const int16_t @@ -4710,37 +4629,37 @@ void Level0_b(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR uint8_t rtb_out_hl; bool rtb_Equal_eo; - /* DataStoreWrite: '/Data Store Write9' incorporates: - * DataStoreRead: '/Data Store Read6' - * MATLAB Function: '/2 way valve' + /* DataStoreWrite: '/Data Store Write9' incorporates: + * DataStoreRead: '/Data Store Read6' + * MATLAB Function: '/2 way valve' */ uwayvalve(*rtd_LEVEL, rtd_Valve_2_way); - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataStoreRead: '/Data Store Read1' + * MATLAB Function: '/incar filter up' */ incarfilterup_i(*rtd_LEVEL, rtd_Incar_filter_up_value); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataStoreRead: '/Data Store Read2' + * MATLAB Function: '/incar filter down' */ incarfilterdown_c(*rtd_LEVEL, rtd_Incar_filter_down_value); - /* MATLAB Function: '/mode rear step 1' incorporates: - * DataStoreRead: '/Data Store Read5' + /* MATLAB Function: '/mode rear step 1' incorporates: + * DataStoreRead: '/Data Store Read5' */ moderearstep1(*rtd_LEVEL, &rtb_out_hl); - /* DataStoreWrite: '/Data Store Write2' */ + /* DataStoreWrite: '/Data Store Write2' */ *rtd_Mode_RR = rtb_out_hl; - /* DataStoreWrite: '/Data Store Write3' */ + /* DataStoreWrite: '/Data Store Write3' */ *rtd_Mode_RL = rtb_out_hl; - /* MATLAB Function: '/blower rear' incorporates: - * DataStoreRead: '/Data Store Read7' + /* MATLAB Function: '/blower rear' incorporates: + * DataStoreRead: '/Data Store Read7' */ /* : out = g_ausSTART_BLR_AF_STEP12_R(LVL + 1); */ tmp = (int32_t)(*rtd_LEVEL + 1U); @@ -4750,72 +4669,72 @@ void Level0_b(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR rtb_out_ne = g_ausSTART_BLR_AF_STEP12_R[tmp - 1]; - /* End of MATLAB Function: '/blower rear' */ + /* End of MATLAB Function: '/blower rear' */ - /* DataStoreWrite: '/Data Store Write5' */ + /* DataStoreWrite: '/Data Store Write5' */ *rtd_Blower_RR = rtb_out_ne; - /* DataStoreWrite: '/Data Store Write6' */ + /* DataStoreWrite: '/Data Store Write6' */ *rtd_Blower_RL = rtb_out_ne; - /* MATLAB Function: '/Dtg_rear' incorporates: - * DataStoreRead: '/Data Store Read8' + /* MATLAB Function: '/Dtg_rear' incorporates: + * DataStoreRead: '/Data Store Read8' */ Dtg_rear(*rtd_LEVEL, &rtb_out_hl); - /* DataStoreWrite: '/Data Store Write10' */ + /* DataStoreWrite: '/Data Store Write10' */ *rtd_Dtg_RR = rtb_out_hl; - /* DataStoreWrite: '/Data Store Write11' */ + /* DataStoreWrite: '/Data Store Write11' */ *rtd_Dtg_RL = rtb_out_hl; - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Constant: '/Recirc logic Partial REC' */ *rtd_Recirculation = 1.0; - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' */ rtb_Equal_eo = (*rtd_step_start_controle_rear == 1); - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read3' */ Incartempgotofromstep1tostep2_j(*rtd_LEVEL, &rtb_out_kdi); - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' + /* Sum: '/Subtract' incorporates: + * DataStoreRead: '/Data Store Read4' + * UnitDelay: '/t_start_delay_private ' */ rtb_dt_b = *rtd_t_now - localDW->t_start_delay_private_DSTATE; - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read4' */ Timegotofromstep1tostep2_l(*rtd_LEVEL, &rtb_out_gb); - /* 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_Equal_eo && (!localDW->Cond_prev_private_DSTATE)) { localDW->t_start_delay_private_DSTATE = *rtd_t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * Constant: '/go to next step' - * Constant: '/stay at step 1' - * DataStoreRead: '/incar temp' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' + /* Switch: '/Switch' incorporates: + * Constant: '/go to next step' + * Constant: '/stay at step 1' + * DataStoreRead: '/incar temp' + * Gain: '/из сек в мс' + * Logic: '/Logical Operator' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' */ if ((*rtd_Incar_RR < rtb_out_kdi) || (rtb_dt_b > (uint16_t)(1000 * rtb_out_gb))) { @@ -4824,18 +4743,18 @@ void Level0_b(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR *rty_step = 1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ localDW->Cond_prev_private_DSTATE = rtb_Equal_eo; } /* * Output and update for atomic system: - * '/blower start finish' - * '/blower start finish' - * '/blower start finish' - * '/blower start finish' + * '/blower start finish' + * '/blower start finish' + * '/blower start finish' + * '/blower start finish' */ void blowerstartfinish(uint8_t rtu_LVL, uint16_t rty_out[2]) { @@ -4866,9 +4785,9 @@ void blowerstartfinish(uint8_t rtu_LVL, uint16_t rty_out[2]) /* * Output and update for atomic system: - * '/ECT min max' - * '/ECT min max' - * '/ECT min max' + * '/ECT min max' + * '/ECT min max' + * '/ECT min max' */ void ECTminmax_l(uint8_t rtu_LVL, int16_t rty_out[2]) { @@ -4888,8 +4807,8 @@ void ECTminmax_l(uint8_t rtu_LVL, int16_t rty_out[2]) /* * Output and update for action system: - * '/Level 4' - * '/Level 5' + * '/Level 4' + * '/Level 5' */ void Level4_d(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR, uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, const uint16_t *rtd_ECT, @@ -4908,115 +4827,115 @@ void Level4_d(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR uint8_t rtb_out_gz; bool rtb_Equal_m3; - /* DataStoreWrite: '/Data Store Write9' incorporates: - * DataStoreRead: '/Data Store Read6' - * MATLAB Function: '/2 way valve' + /* DataStoreWrite: '/Data Store Write9' incorporates: + * DataStoreRead: '/Data Store Read6' + * MATLAB Function: '/2 way valve' */ uwayvalve(*rtd_LEVEL, rtd_Valve_2_way); - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataStoreRead: '/Data Store Read1' + * MATLAB Function: '/incar filter up' */ incarfilterup_i(*rtd_LEVEL, rtd_Incar_filter_up_value); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataStoreRead: '/Data Store Read2' + * MATLAB Function: '/incar filter down' */ incarfilterdown_c(*rtd_LEVEL, rtd_Incar_filter_down_value); - /* MATLAB Function: '/mode rear step 1' incorporates: - * DataStoreRead: '/Data Store Read5' + /* MATLAB Function: '/mode rear step 1' incorporates: + * DataStoreRead: '/Data Store Read5' */ moderearstep1(*rtd_LEVEL, &rtb_out_gz); - /* DataStoreWrite: '/Data Store Write2' */ + /* DataStoreWrite: '/Data Store Write2' */ *rtd_Mode_RR = rtb_out_gz; - /* DataStoreWrite: '/Data Store Write3' */ + /* DataStoreWrite: '/Data Store Write3' */ *rtd_Mode_RL = rtb_out_gz; - /* MATLAB Function: '/blower start finish' incorporates: - * DataStoreRead: '/Data Store Read7' + /* MATLAB Function: '/blower start finish' incorporates: + * DataStoreRead: '/Data Store Read7' */ blowerstartfinish(*rtd_LEVEL, rtb_out_dq); - /* MATLAB Function: '/ECT min max' incorporates: - * DataStoreRead: '/Data Store Read7' + /* MATLAB Function: '/ECT min max' incorporates: + * DataStoreRead: '/Data Store Read7' */ ECTminmax_l(*rtd_LEVEL, rtb_out_ij); - /* Lookup_n-D: '/blower для текущего ECT' incorporates: - * DataStoreRead: '/engine coolant temp' - * DataStoreWrite: '/Data Store Write5' + /* Lookup_n-D: '/blower для текущего ECT' incorporates: + * DataStoreRead: '/engine coolant temp' + * DataStoreWrite: '/Data Store Write5' */ *rtd_Blower_RR = look1_iu16bs16lu64n32_binlcse(*rtd_ECT, rtb_out_ij, rtb_out_dq, 1U); - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreWrite: '/Data Store Write5' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * DataStoreWrite: '/Data Store Write5' */ *rtd_Blower_RL = *rtd_Blower_RR; - /* MATLAB Function: '/Dtg_rear' incorporates: - * DataStoreRead: '/Data Store Read8' + /* MATLAB Function: '/Dtg_rear' incorporates: + * DataStoreRead: '/Data Store Read8' */ Dtg_rear(*rtd_LEVEL, &rtb_out_gz); - /* DataStoreWrite: '/Data Store Write10' */ + /* DataStoreWrite: '/Data Store Write10' */ *rtd_Dtg_RR = rtb_out_gz; - /* DataStoreWrite: '/Data Store Write11' */ + /* DataStoreWrite: '/Data Store Write11' */ *rtd_Dtg_RL = rtb_out_gz; - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Constant: '/Recirc logic Partial REC' */ *rtd_Recirculation = 1.0; - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' */ rtb_Equal_m3 = (*rtd_step_start_controle_rear == 1); - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read3' */ Incartempgotofromstep1tostep2_j(*rtd_LEVEL, &rtb_out_pf); - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' + /* Sum: '/Subtract' incorporates: + * DataStoreRead: '/Data Store Read4' + * UnitDelay: '/t_start_delay_private ' */ rtb_dt_ha = *rtd_t_now - localDW->t_start_delay_private_DSTATE; - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read4' */ Timegotofromstep1tostep2_l(*rtd_LEVEL, &rtb_out_ck); - /* 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_Equal_m3 && (!localDW->Cond_prev_private_DSTATE)) { localDW->t_start_delay_private_DSTATE = *rtd_t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * Constant: '/go to next step' - * Constant: '/stay at step 1' - * DataStoreRead: '/incar temp' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' + /* Switch: '/Switch' incorporates: + * Constant: '/go to next step' + * Constant: '/stay at step 1' + * DataStoreRead: '/incar temp' + * Gain: '/из сек в мс' + * Logic: '/Logical Operator' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' */ if ((*rtd_Incar_RR > rtb_out_pf) || (rtb_dt_ha > (uint16_t)(1000 * rtb_out_ck))) { @@ -5025,20 +4944,20 @@ void Level4_d(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR *rty_step = 1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ localDW->Cond_prev_private_DSTATE = rtb_Equal_m3; } /* * Output and update for atomic system: - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' */ void timeforstep_jn(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -5061,12 +4980,12 @@ void timeforstep_jn(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/blower step' - * '/blower step' - * '/blower step' - * '/blower step' - * '/blower step' - * '/blower step' + * '/blower step' + * '/blower step' + * '/blower step' + * '/blower step' + * '/blower step' + * '/blower step' */ void blowerstep_d(uint8_t rtu_LVL, uint16_t *rty_out) { @@ -5083,12 +5002,12 @@ void blowerstep_d(uint8_t rtu_LVL, uint16_t *rty_out) /* * Output and update for atomic system: - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' - * '/blower time for step' + * '/blower time for step' + * '/blower time for step' + * '/blower time for step' + * '/blower time for step' + * '/blower time for step' + * '/blower time for step' */ void blowertimeforstep_l(uint8_t rtu_LVL, uint16_t *rty_out) { @@ -5111,12 +5030,12 @@ void blowertimeforstep_l(uint8_t rtu_LVL, uint16_t *rty_out) /* * Output and update for atomic system: - * '/step' - * '/step' - * '/step' - * '/step' - * '/step' - * '/step' + * '/step' + * '/step' + * '/step' + * '/step' + * '/step' + * '/step' */ void step_a(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -5133,12 +5052,12 @@ void step_a(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for atomic system: - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' - * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' + * '/time for step' */ void timeforstep_h(uint8_t rtu_LVL, uint8_t *rty_out) { @@ -5161,9 +5080,9 @@ void timeforstep_h(uint8_t rtu_LVL, uint8_t *rty_out) /* * Output and update for action system: - * '/Level 3' - * '/Level 4' - * '/Level 5' + * '/Level 3' + * '/Level 4' + * '/Level 5' */ void Level3_i(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR, const uint16_t *rtd_Blower_logic_RR, uint8_t *rtd_Dtg_RL, uint8_t * @@ -5184,177 +5103,45 @@ void Level3_i(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR uint8_t rtb_out_i4; bool rtb_Cond_prev_private_e; - /* DataStoreWrite: '/Data Store Write9' incorporates: - * DataStoreRead: '/Data Store Read6' - * MATLAB Function: '/2 way valve' + /* DataStoreWrite: '/Data Store Write9' incorporates: + * DataStoreRead: '/Data Store Read6' + * MATLAB Function: '/2 way valve' */ uwayvalve(*rtd_LEVEL, rtd_Valve_2_way); - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read8' + /* MATLAB Function: '/step' incorporates: + * DataStoreRead: '/Data Store Read8' */ Dtg_rear(*rtd_LEVEL, &rtb_out_i4); - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read8' + /* MATLAB Function: '/time for step' incorporates: + * DataStoreRead: '/Data Store Read8' */ timeforstep_jn(*rtd_LEVEL, &rtb_out_cn); - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write10' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint8_t)(*rtd_Dtg_RR - *rtd_Dtg_logic_RR) <= 0.01) { - *rtd_Dtg_RR = *rtd_Dtg_logic_RR; - } else { - if (*rtd_Dtg_RR <= *rtd_Dtg_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - tmp = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - tmp = -1; - } - - *rtd_Dtg_RR = (uint8_t)((double)rtb_out_i4 / (double)rtb_out_cn / 1000.0 * - (double)(*rtd_t_now - localDW->UnitDelay_DSTATE) * (double)tmp + (double)* - rtd_Dtg_RR); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * DataStoreWrite: '/Data Store Write10' - */ - *rtd_Dtg_RL = *rtd_Dtg_RR; - - /* DataStoreWrite: '/Data Store Write' incorporates: - * DataStoreRead: '/Data Store Read1' - * MATLAB Function: '/incar filter up' - */ - incarfilterup_i(*rtd_LEVEL, rtd_Incar_filter_up_value); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * DataStoreRead: '/Data Store Read2' - * MATLAB Function: '/incar filter down' - */ - incarfilterdown_c(*rtd_LEVEL, rtd_Incar_filter_down_value); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_out_i4 = (uint8_t)(*rtd_Mode_RR - *rtd_Mode_logic_RR); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - rtb_Cond_prev_private_e = (rtb_out_i4 <= 0.01); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - step_a(*rtd_LEVEL, &rtb_out_cn); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - timeforstep_h(*rtd_LEVEL, &rtb_out_i4); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write2' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if (rtb_Cond_prev_private_e) { - *rtd_Mode_RR = *rtd_Mode_logic_RR; - } else { - if (*rtd_Mode_RR <= *rtd_Mode_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - tmp = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - tmp = -1; - } - - *rtd_Mode_RR = (uint8_t)((double)rtb_out_cn / (double)rtb_out_i4 / 1000.0 * - (double)(*rtd_t_now - localDW->UnitDelay_DSTATE_i) * (double)tmp + (double)* - rtd_Mode_RR); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreWrite: '/Data Store Write2' - */ - *rtd_Mode_RL = *rtd_Mode_RR; - - /* MATLAB Function: '/blower step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstep_d(*rtd_LEVEL, &rtb_out_gx); - - /* MATLAB Function: '/blower time for step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowertimeforstep_l(*rtd_LEVEL, &rtb_out_bz); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write5' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write10' + * Product: '/Product1' + * Product: '/change rate (dtg//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' * RelationalOperator: '/Relational Operator' * RelationalOperator: '/Relational Operator' - * Sum: '/Add' + * Sum: '/Add' * Sum: '/Add' * Sum: '/Subtract' * Switch: '/Switch' * UnitDelay: '/Unit Delay' */ - if ((uint16_t)(*rtd_Blower_RR - *rtd_Blower_logic_RR) <= 0.01) { - *rtd_Blower_RR = *rtd_Blower_logic_RR; + if ((uint8_t)(*rtd_Dtg_RR - *rtd_Dtg_logic_RR) <= 0.01) { + *rtd_Dtg_RR = *rtd_Dtg_logic_RR; } else { - if (*rtd_Blower_RR <= *rtd_Blower_logic_RR) { + if (*rtd_Dtg_RR <= *rtd_Dtg_logic_RR) { /* Switch: '/Switch' incorporates: * Constant: '/Constant' */ @@ -5366,59 +5153,191 @@ void Level3_i(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR tmp = -1; } + *rtd_Dtg_RR = (uint8_t)((double)rtb_out_i4 / (double)rtb_out_cn / 1000.0 * + (double)(*rtd_t_now - localDW->UnitDelay_DSTATE) * (double)tmp + (double)* + rtd_Dtg_RR); + } + + /* End of Switch: '/Switch' */ + + /* DataStoreWrite: '/Data Store Write11' incorporates: + * DataStoreWrite: '/Data Store Write10' + */ + *rtd_Dtg_RL = *rtd_Dtg_RR; + + /* DataStoreWrite: '/Data Store Write' incorporates: + * DataStoreRead: '/Data Store Read1' + * MATLAB Function: '/incar filter up' + */ + incarfilterup_i(*rtd_LEVEL, rtd_Incar_filter_up_value); + + /* DataStoreWrite: '/Data Store Write1' incorporates: + * DataStoreRead: '/Data Store Read2' + * MATLAB Function: '/incar filter down' + */ + incarfilterdown_c(*rtd_LEVEL, rtd_Incar_filter_down_value); + + /* Sum: '/Add' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + */ + rtb_out_i4 = (uint8_t)(*rtd_Mode_RR - *rtd_Mode_logic_RR); + + /* RelationalOperator: '/Relational Operator' incorporates: + * Constant: '/epsilon' + */ + rtb_Cond_prev_private_e = (rtb_out_i4 <= 0.01); + + /* MATLAB Function: '/step' incorporates: + * DataStoreRead: '/Data Store Read5' + */ + step_a(*rtd_LEVEL, &rtb_out_cn); + + /* MATLAB Function: '/time for step' incorporates: + * DataStoreRead: '/Data Store Read5' + */ + timeforstep_h(*rtd_LEVEL, &rtb_out_i4); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write2' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + if (rtb_Cond_prev_private_e) { + *rtd_Mode_RR = *rtd_Mode_logic_RR; + } else { + if (*rtd_Mode_RR <= *rtd_Mode_logic_RR) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + tmp = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + tmp = -1; + } + + *rtd_Mode_RR = (uint8_t)((double)rtb_out_cn / (double)rtb_out_i4 / 1000.0 * + (double)(*rtd_t_now - localDW->UnitDelay_DSTATE_i) * (double)tmp + (double)* + rtd_Mode_RR); + } + + /* End of Switch: '/Switch' */ + + /* DataStoreWrite: '/Data Store Write3' incorporates: + * DataStoreWrite: '/Data Store Write2' + */ + *rtd_Mode_RL = *rtd_Mode_RR; + + /* MATLAB Function: '/blower step' incorporates: + * DataStoreRead: '/Data Store Read7' + */ + blowerstep_d(*rtd_LEVEL, &rtb_out_gx); + + /* MATLAB Function: '/blower time for step' incorporates: + * DataStoreRead: '/Data Store Read7' + */ + blowertimeforstep_l(*rtd_LEVEL, &rtb_out_bz); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write5' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + if ((uint16_t)(*rtd_Blower_RR - *rtd_Blower_logic_RR) <= 0.01) { + *rtd_Blower_RR = *rtd_Blower_logic_RR; + } else { + if (*rtd_Blower_RR <= *rtd_Blower_logic_RR) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + tmp = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + tmp = -1; + } + *rtd_Blower_RR = (uint16_t)((double)rtb_out_gx / (double)rtb_out_bz / 1000.0 * (double)(*rtd_t_now - localDW->UnitDelay_DSTATE_e) * (double)tmp + (double)*rtd_Blower_RR); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreWrite: '/Data Store Write5' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * DataStoreWrite: '/Data Store Write5' */ *rtd_Blower_RL = *rtd_Blower_RR; - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Constant: '/Recirc logic Partial REC' */ *rtd_Recirculation = 1.0; - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' */ rtb_Cond_prev_private_e = (*rtd_step_start_controle_rear == 2); - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' + /* Sum: '/Subtract' incorporates: + * DataStoreRead: '/Data Store Read4' + * UnitDelay: '/t_start_delay_private ' */ rtb_dt_ho = *rtd_t_now - localDW->t_start_delay_private_DSTATE; - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read4' */ Timegotofromstep1tostep2_l(*rtd_LEVEL, &rtb_out_cw); - /* 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_Cond_prev_private_e && (!localDW->Cond_prev_private_DSTATE)) { localDW->t_start_delay_private_DSTATE = *rtd_t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * Constant: '/go to next step' - * Constant: '/stay at step' - * DataStoreRead: '/Data Store Read' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * RelationalOperator: '/Relational Operator1' + /* Switch: '/Switch' incorporates: + * Constant: '/go to next step' + * Constant: '/stay at step' + * DataStoreRead: '/Data Store Read' + * Gain: '/из сек в мс' + * Logic: '/Logical Operator' + * RelationalOperator: '/Relational Operator1' */ if ((rtb_dt_ho > (uint16_t)(1000 * rtb_out_cw)) || (*rtd_HI_logic_on)) { *rty_step = 3; @@ -5426,24 +5345,24 @@ void Level3_i(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR *rty_step = 2; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ localDW->UnitDelay_DSTATE = *rtd_t_now; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ localDW->UnitDelay_DSTATE_i = *rtd_t_now; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ localDW->UnitDelay_DSTATE_e = *rtd_t_now; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ localDW->Cond_prev_private_DSTATE = rtb_Cond_prev_private_e; } @@ -5458,11 +5377,11 @@ void HVAC_model_step(void) double rtb_Divide6; double rtb_Divide8; int32_t i; - int32_t y; + int32_t tmp_0; uint32_t rtb_dt_fa; uint32_t rtb_dt_ih; int16_t tmp[6]; - int16_t rtb_out_j4[2]; + int16_t rtb_out_mn[2]; int16_t AMB; int16_t Duct1_F; int16_t Duct1_R; @@ -5482,30 +5401,33 @@ void HVAC_model_step(void) int16_t Incar_RR; int16_t Pressure; uint16_t Merge[9]; + uint16_t rtb_out_dt[9]; + uint16_t rtb_out_mj[9]; + uint16_t rtb_out_pf[9]; uint16_t rtb_vals_m[9]; - uint16_t rtb_out_jq[2]; - uint16_t FIU_SET_RR; - uint16_t rtb_out_b5; - uint16_t rtb_out_bko; - uint16_t rtb_out_e0; - uint16_t rtb_out_h; - uint16_t rtb_out_iir; - uint16_t rtb_out_jn; - uint16_t rtb_out_oc; - uint16_t rtb_out_pd; + uint16_t rtb_out_jy[6]; + uint16_t rtb_out_bdd[2]; + uint16_t rtb_out_b; + uint16_t rtb_out_gz3; + uint16_t rtb_out_j; + uint16_t rtb_out_jv; + uint16_t rtb_out_le; + uint16_t rtb_out_lef; + uint16_t rtb_out_lw; + uint16_t rtb_out_m4; int8_t rtb_Switch_hx; uint8_t rtb_get_modes_for_levels[78]; - uint8_t Actuator_pos_percent_Ch0[9]; - uint8_t rtb_DataTypeConversion_md[9]; - uint8_t rtb_DataTypeConversion_ns[9]; - uint8_t rtb_VectorConcatenate_c[9]; + uint8_t Actuator_pos_percent_Ch1[9]; + uint8_t rtb_DataTypeConversion_c1[9]; + uint8_t rtb_DataTypeConversion_hl[9]; + uint8_t rtb_DataTypeConversion_np[9]; uint8_t Autodefog; uint8_t Dtg_FUR; uint8_t El_window_heating; uint8_t Mode_FR; uint8_t Valve_2_way; uint8_t rtb_Gain2_hu; - uint8_t rtb_Gain_ge; + uint8_t rtb_Gain_l; uint8_t rtb_u_cuz; bool rtb_LogicalOperator3_a0[9]; bool rtb_Compare_l2[8]; @@ -6995,12 +6917,12 @@ void HVAC_model_step(void) /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct1_R = %d * 0.1 C %d V\n',Sensor, int16(V)); */ - rtb_out_oc = rtDW.ADC_Data_Model.Sensor_Rear_Duct1; + rtb_out_b = rtDW.ADC_Data_Model.Sensor_Rear_Duct1; if (rtDW.ADC_Data_Model.Sensor_Rear_Duct1 > 32767) { - rtb_out_oc = 32767U; + rtb_out_b = 32767U; } - printf("Duct1_R = %d * 0.1 C %d V\n", Duct1_R, (int16_t)rtb_out_oc); + printf("Duct1_R = %d * 0.1 C %d V\n", Duct1_R, (int16_t)rtb_out_b); fflush(stdout); } @@ -7014,12 +6936,12 @@ void HVAC_model_step(void) /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct2_R = %d * 0.1 C %d V\n',Sensor, int16(V)); */ - rtb_out_oc = rtDW.ADC_Data_Model.Sensor_Rear_Duct2; + rtb_out_b = rtDW.ADC_Data_Model.Sensor_Rear_Duct2; if (rtDW.ADC_Data_Model.Sensor_Rear_Duct2 > 32767) { - rtb_out_oc = 32767U; + rtb_out_b = 32767U; } - printf("Duct2_R = %d * 0.1 C %d V\n", Duct2_R, (int16_t)rtb_out_oc); + printf("Duct2_R = %d * 0.1 C %d V\n", Duct2_R, (int16_t)rtb_out_b); fflush(stdout); } @@ -7033,12 +6955,12 @@ void HVAC_model_step(void) /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct3_R = %d * 0.1 C %d V\n',Sensor, int16(V)); */ - rtb_out_oc = rtDW.ADC_Data_Model.Sensor_Rear_Duct3; + rtb_out_b = rtDW.ADC_Data_Model.Sensor_Rear_Duct3; if (rtDW.ADC_Data_Model.Sensor_Rear_Duct3 > 32767) { - rtb_out_oc = 32767U; + rtb_out_b = 32767U; } - printf("Duct3_R = %d * 0.1 C %d V\n", Duct3_R, (int16_t)rtb_out_oc); + printf("Duct3_R = %d * 0.1 C %d V\n", Duct3_R, (int16_t)rtb_out_b); fflush(stdout); } @@ -7052,12 +6974,12 @@ void HVAC_model_step(void) /* : if(LOGGER) */ if (rtDW.LOGGER_ACP != 0.0) { /* : fprintf('Duct4_R = %d * 0.1 C %d V\n',Sensor, int16(V)); */ - rtb_out_oc = rtDW.ADC_Data_Model.Sensor_Rear_Duct4; + rtb_out_b = rtDW.ADC_Data_Model.Sensor_Rear_Duct4; if (rtDW.ADC_Data_Model.Sensor_Rear_Duct4 > 32767) { - rtb_out_oc = 32767U; + rtb_out_b = 32767U; } - printf("Duct4_R = %d * 0.1 C %d V\n", Duct4_R, (int16_t)rtb_out_oc); + printf("Duct4_R = %d * 0.1 C %d V\n", Duct4_R, (int16_t)rtb_out_b); fflush(stdout); } @@ -8472,18 +8394,18 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read1' */ if (rtDW.FIU_SET_FL > 290) { - y = 290; + i = 290; } else if (rtDW.FIU_SET_FL < 170) { - y = 170; + i = 170; } else { - y = rtDW.FIU_SET_FL; + i = rtDW.FIU_SET_FL; } /* Gain: '/Gain' incorporates: * Saturate: '/Saturation' */ - y *= 13107; - rtb_Gain_ge = (uint8_t)((((uint32_t)y & 65536U) != 0U) + (y >> 17)); + i *= 13107; + rtb_Gain_l = (uint8_t)((((uint32_t)i & 65536U) != 0U) + (i >> 17)); /* MATLAB Function: '/Modes for levels' */ /* : get_modes_for_levels = [g_aucMODE_BY_SET_F_LV0; */ @@ -8493,13 +8415,13 @@ void HVAC_model_step(void) /* : g_aucMODE_BY_SET_F_LV4; */ /* : g_aucMODE_BY_SET_F_LV5; */ /* : ]; */ - for (y = 0; y < 13; y++) { - rtb_get_modes_for_levels[6 * y] = g_aucMODE_BY_SET_F_LV0[y]; - rtb_get_modes_for_levels[6 * y + 1] = g_aucMODE_BY_SET_F_LV1[y]; - rtb_get_modes_for_levels[6 * y + 2] = g_aucMODE_BY_SET_F_LV2[y]; - rtb_get_modes_for_levels[6 * y + 3] = g_aucMODE_BY_SET_F_LV3[y]; - rtb_get_modes_for_levels[6 * y + 4] = g_aucMODE_BY_SET_F_LV4[y]; - rtb_get_modes_for_levels[6 * y + 5] = g_aucMODE_BY_SET_F_LV5[y]; + for (i = 0; i < 13; i++) { + rtb_get_modes_for_levels[6 * i] = g_aucMODE_BY_SET_F_LV0[i]; + rtb_get_modes_for_levels[6 * i + 1] = g_aucMODE_BY_SET_F_LV1[i]; + rtb_get_modes_for_levels[6 * i + 2] = g_aucMODE_BY_SET_F_LV2[i]; + rtb_get_modes_for_levels[6 * i + 3] = g_aucMODE_BY_SET_F_LV3[i]; + rtb_get_modes_for_levels[6 * i + 4] = g_aucMODE_BY_SET_F_LV4[i]; + rtb_get_modes_for_levels[6 * i + 5] = g_aucMODE_BY_SET_F_LV5[i]; } /* End of MATLAB Function: '/Modes for levels' */ @@ -8508,7 +8430,7 @@ void HVAC_model_step(void) * Gain: '/Gain' * Merge: '/Merge' */ - rtb_u_cuz = look2_iu8bu8s16lu64n32_binlcse(rtB.Merge_b, rtb_Gain_ge, + rtb_u_cuz = look2_iu8bu8s16lu64n32_binlcse(rtB.Merge_b, rtb_Gain_l, rtConstP.pooled82, rtConstP.pooled43, rtb_get_modes_for_levels, rtConstP.pooled36, 6U); @@ -8519,18 +8441,18 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read2' */ if (rtDW.FIU_SET_FR > 290) { - y = 290; + i = 290; } else if (rtDW.FIU_SET_FR < 170) { - y = 170; + i = 170; } else { - y = rtDW.FIU_SET_FR; + i = rtDW.FIU_SET_FR; } /* Gain: '/Gain2' incorporates: * Saturate: '/Saturation1' */ - y *= 13107; - rtb_Gain2_hu = (uint8_t)((((uint32_t)y & 65536U) != 0U) + (y >> 17)); + i *= 13107; + rtb_Gain2_hu = (uint8_t)((((uint32_t)i & 65536U) != 0U) + (i >> 17)); /* SwitchCase: '/Switch for Left ' incorporates: * DataStoreRead: '/Data Store Read' @@ -8552,7 +8474,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Bilevel' incorporates: * ActionPort: '/Action Port' */ - Bilevel(AMB, rtB.Merge_b, Merge, rtb_Gain_ge, rtb_Gain2_hu); + Bilevel(AMB, rtB.Merge_b, Merge, rtb_Gain_l, rtb_Gain2_hu); /* End of Outputs for SubSystem: '/Bilevel' */ break; @@ -8570,7 +8492,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Bilevel2' incorporates: * ActionPort: '/Action Port' */ - Bilevel2(AMB, rtB.Merge_b, Merge, rtb_Gain_ge, rtb_Gain2_hu); + Bilevel2(AMB, rtB.Merge_b, Merge, rtb_Gain_l, rtb_Gain2_hu); /* End of Outputs for SubSystem: '/Bilevel2' */ break; @@ -8588,7 +8510,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Afoot' incorporates: * ActionPort: '/Action Port' */ - Afoot(AMB, rtB.Merge_b, Merge, rtb_Gain_ge, rtb_Gain2_hu); + Afoot(AMB, rtB.Merge_b, Merge, rtb_Gain_l, rtb_Gain2_hu); /* End of Outputs for SubSystem: '/Afoot' */ break; @@ -8606,7 +8528,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Afoot_Summer' incorporates: * ActionPort: '/Action Port' */ - Afoot_Summer(AMB, rtB.Merge_b, Merge, rtb_Gain_ge, rtb_Gain2_hu); + Afoot_Summer(AMB, rtB.Merge_b, Merge, rtb_Gain_l, rtb_Gain2_hu); /* End of Outputs for SubSystem: '/Afoot_Summer' */ break; @@ -8645,7 +8567,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Bilevel' incorporates: * ActionPort: '/Action Port' */ - Bilevel(AMB, rtB.Merge_b, Merge, rtb_Gain_ge, rtb_Gain2_hu); + Bilevel(AMB, rtB.Merge_b, Merge, rtb_Gain_l, rtb_Gain2_hu); /* End of Outputs for SubSystem: '/Bilevel' */ break; @@ -8663,7 +8585,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Bilevel2' incorporates: * ActionPort: '/Action Port' */ - Bilevel2(AMB, rtB.Merge_b, Merge, rtb_Gain_ge, rtb_Gain2_hu); + Bilevel2(AMB, rtB.Merge_b, Merge, rtb_Gain_l, rtb_Gain2_hu); /* End of Outputs for SubSystem: '/Bilevel2' */ break; @@ -8681,7 +8603,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Afoot' incorporates: * ActionPort: '/Action Port' */ - Afoot(AMB, rtB.Merge_b, Merge, rtb_Gain_ge, rtb_Gain2_hu); + Afoot(AMB, rtB.Merge_b, Merge, rtb_Gain_l, rtb_Gain2_hu); /* End of Outputs for SubSystem: '/Afoot' */ break; @@ -8699,7 +8621,7 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/Afoot_Summer' incorporates: * ActionPort: '/Action Port' */ - Afoot_Summer(AMB, rtB.Merge_b, Merge, rtb_Gain_ge, rtb_Gain2_hu); + Afoot_Summer(AMB, rtB.Merge_b, Merge, rtb_Gain_l, rtb_Gain2_hu); /* End of Outputs for SubSystem: '/Afoot_Summer' */ break; @@ -8733,175 +8655,6 @@ void HVAC_model_step(void) /* End of MATLAB Function: '/Log Ambient Lv' */ - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Bias: '/Bias' - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write1' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - */ - rtDW.FIU_SET_FL = (uint16_t)((0.5 * (double) - rtDW.FIU_CCU1_MODEL.FIU_TargetTempFL_Val_ro + 15.5) * 10.0); - - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Bias: '/Bias' - * DataStoreRead: '/Data Store Read1' - * DataStoreWrite: '/Data Store Write' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - */ - rtDW.FIU_SET_FR = (uint16_t)((0.5 * (double) - rtDW.FIU_CCU1_MODEL.FIU_TargetTempFR_Val_ro + 15.5) * 10.0); - - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Bias: '/Bias' - * DataStoreRead: '/Data Store Read2' - * DataStoreWrite: '/Data Store Write1' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' - */ - FIU_SET_RR = (uint16_t)((0.5 * (double) - rtDW.FIU_CCU2_MODEL.FIU_TargetTempRR_Val_ro + 15.5) * 10.0); - - /* Outputs for Enabled SubSystem: '/Subsystem1' incorporates: - * EnablePort: '/Enable' - */ - /* DataStoreRead: '/Data Store Read1' */ - if (rtDW.FIU_CCU1_MODEL.FIU_CCmodeFL_Req > 0) { - /* DataStoreWrite: '/Data Store Write6' */ - rtDW.FIU_MODE_FL = rtDW.FIU_CCU1_MODEL.FIU_CCmodeFL_Req; - } - - /* End of Outputs for SubSystem: '/Subsystem1' */ - - /* Outputs for Enabled SubSystem: '/Subsystem10' incorporates: - * EnablePort: '/Enable' - */ - if (rtDW.FIU_CCU1_MODEL.FIU_CCmodeFR_Req > 0) { - /* DataStoreWrite: '/Data Store Write10' */ - rtDW.FIU_MODE_FR = rtDW.FIU_CCU1_MODEL.FIU_CCmodeFR_Req; - } - - /* End of Outputs for SubSystem: '/Subsystem10' */ - - /* Outputs for Enabled SubSystem: '/Subsystem11' incorporates: - * EnablePort: '/Enable' - */ - if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Def_Req > 0) { - /* DataStoreWrite: '/Data Store Write11' */ - rtDW.FIU_DEF_FR = rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Def_Req; - } - - /* End of Outputs for SubSystem: '/Subsystem11' */ - - /* Outputs for Enabled SubSystem: '/Subsystem12' incorporates: - * EnablePort: '/Enable' - */ - if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Face_Req > 0) { - /* DataStoreWrite: '/Data Store Write12' */ - rtDW.FIU_FACE_FR = rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Face_Req; - } - - /* End of Outputs for SubSystem: '/Subsystem12' */ - - /* Outputs for Enabled SubSystem: '/Subsystem13' incorporates: - * EnablePort: '/Enable' - */ - if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Foot_Req > 0) { - /* DataStoreWrite: '/Data Store Write13' */ - rtDW.FIU_FOOT_FR = rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Foot_Req; - } - - /* End of Outputs for SubSystem: '/Subsystem13' */ - - /* Outputs for Enabled SubSystem: '/Subsystem14' incorporates: - * EnablePort: '/Enable' - */ - /* SignalConversion generated from: '/Bus Selector' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - if (rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFL_Req > 0) { - /* DataStoreWrite: '/Data Store Write14' */ - rtDW.FIU_BLOWERS_FL = rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFL_Req; - } - - /* End of SignalConversion generated from: '/Bus Selector' */ - /* End of Outputs for SubSystem: '/Subsystem14' */ - - /* Outputs for Enabled SubSystem: '/Subsystem15' incorporates: - * EnablePort: '/Enable' - */ - /* DataStoreRead: '/Data Store Read1' */ - if (rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFR_Req > 0) { - /* DataStoreWrite: '/Data Store Write15' */ - rtDW.FIU_BLOWERS_FR = rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFR_Req; - } - - /* End of Outputs for SubSystem: '/Subsystem15' */ - - /* Outputs for Enabled SubSystem: '/Subsystem16' incorporates: - * EnablePort: '/Enable' - */ - if (rtDW.FIU_CCU1_MODEL.FIU_CCautoModeFL_Req > 0) { - /* DataStoreWrite: '/Data Store Write16' */ - rtDW.FIU_AUTOMODE_FL = rtDW.FIU_CCU1_MODEL.FIU_CCautoModeFL_Req; - } - - /* End of Outputs for SubSystem: '/Subsystem16' */ - - /* Outputs for Enabled SubSystem: '/Subsystem17' incorporates: - * EnablePort: '/Enable' - */ - if (rtDW.FIU_CCU1_MODEL.FIU_CCautoModeFR_Req > 0) { - /* DataStoreWrite: '/Data Store Write17' */ - rtDW.FIU_AUTOMODE_FR = rtDW.FIU_CCU1_MODEL.FIU_CCautoModeFR_Req; - } - - /* End of Outputs for SubSystem: '/Subsystem17' */ - - /* Outputs for Enabled SubSystem: '/Subsystem18' incorporates: - * EnablePort: '/Enable' - */ - if (rtDW.FIU_CCU1_MODEL.FIU_Recirculation_Req > 0) { - /* DataStoreWrite: '/Data Store Write19' */ - rtDW.FIU_RECIRC = rtDW.FIU_CCU1_MODEL.FIU_Recirculation_Req; - } - - /* End of Outputs for SubSystem: '/Subsystem18' */ - - /* Outputs for Enabled SubSystem: '/Subsystem7' incorporates: - * EnablePort: '/Enable' - */ - if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Def_Req > 0) { - /* DataStoreWrite: '/Data Store Write7' */ - rtDW.FIU_DEF_FL = rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Def_Req; - } - - /* End of Outputs for SubSystem: '/Subsystem7' */ - - /* Outputs for Enabled SubSystem: '/Subsystem8' incorporates: - * EnablePort: '/Enable' - */ - if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Face_Req > 0) { - /* DataStoreWrite: '/Data Store Write8' */ - rtDW.FIU_FACE_FL = rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Face_Req; - } - - /* End of Outputs for SubSystem: '/Subsystem8' */ - - /* Outputs for Enabled SubSystem: '/Subsystem9' incorporates: - * EnablePort: '/Enable' - */ - if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Foot_Req > 0) { - /* DataStoreWrite: '/Data Store Write9' */ - rtDW.FIU_FOOT_FL = rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Foot_Req; - } - - /* End of Outputs for SubSystem: '/Subsystem9' */ - /* BusCreator: '/Bus Creator' incorporates: * DataStoreRead: '/Data Store Read' * DataStoreRead: '/Data Store Read1' @@ -8990,11 +8743,11 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read13' */ if (rtDW.FIU_SET_FL > 310) { - rtb_out_oc = 310U; + rtb_out_b = 310U; } else if (rtDW.FIU_SET_FL < 155) { - rtb_out_oc = 155U; + rtb_out_b = 155U; } else { - rtb_out_oc = rtDW.FIU_SET_FL; + rtb_out_b = rtDW.FIU_SET_FL; } /* BusCreator: '/Bus Creator' incorporates: @@ -9006,7 +8759,7 @@ void HVAC_model_step(void) * Saturate: '/Saturation' */ rtDW.CCU_STAT1_MODEL.CCU_TargetTempFL_Stat_ro = (uint8_t)((0.10000038146972656 - * (double)rtb_out_oc - 15.5) * 2.0); + * (double)rtb_out_b - 15.5) * 2.0); /* Switch: '/Switch5' incorporates: * DataStoreRead: '/Data Store Read12' @@ -9030,11 +8783,11 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read14' */ if (rtDW.FIU_SET_FR > 310) { - rtb_out_oc = 310U; + rtb_out_b = 310U; } else if (rtDW.FIU_SET_FR < 155) { - rtb_out_oc = 155U; + rtb_out_b = 155U; } else { - rtb_out_oc = rtDW.FIU_SET_FR; + rtb_out_b = rtDW.FIU_SET_FR; } /* BusCreator: '/Bus Creator' incorporates: @@ -9046,7 +8799,7 @@ void HVAC_model_step(void) * Saturate: '/Saturation' */ rtDW.CCU_STAT1_MODEL.CCU_TargetTempFR_Stat_ro = (uint8_t)((0.10000038146972656 - * (double)rtb_out_oc - 15.5) * 2.0); + * (double)rtb_out_b - 15.5) * 2.0); /* Switch: '/Switch6' incorporates: * DataStoreRead: '/Data Store Read26' @@ -9069,10 +8822,12 @@ void HVAC_model_step(void) /* Saturate: '/Saturation' incorporates: * DataStoreRead: '/Data Store Read15' */ - if (FIU_SET_RR > 310) { - rtb_out_oc = 310U; + if (rtDW.FIU_SET_RR > 310) { + rtb_out_b = 310U; + } else if (rtDW.FIU_SET_RR < 155) { + rtb_out_b = 155U; } else { - rtb_out_oc = FIU_SET_RR; + rtb_out_b = rtDW.FIU_SET_RR; } /* BusCreator: '/Bus Creator' incorporates: @@ -9084,7 +8839,7 @@ void HVAC_model_step(void) * Saturate: '/Saturation' */ rtDW.CCU_STAT1_MODEL.CCU_TargetTempRR_Stat_ro = (uint8_t)((0.10000038146972656 - * (double)rtb_out_oc - 15.5) * 2.0); + * (double)rtb_out_b - 15.5) * 2.0); /* Switch: '/Switch7' incorporates: * DataStoreRead: '/Data Store Read25' @@ -9104,19 +8859,15 @@ void HVAC_model_step(void) /* End of Switch: '/Switch7' */ - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Bias: '/Bias' - * DataStoreRead: '/Data Store Read2' - * DataTypeConversion: '/Data Type Conversion' - * Gain: '/Gain' - * Gain: '/Gain1' + /* Saturate: '/Saturation' incorporates: + * DataStoreRead: '/Data Store Read16' */ - rtb_out_oc = (uint16_t)((0.5 * (double) - rtDW.FIU_CCU2_MODEL.FIU_TargetTempRL_Val_ro + 15.5) * 10.0); - - /* Saturate: '/Saturation' */ - if (rtb_out_oc > 310) { - rtb_out_oc = 310U; + if (rtDW.FIU_SET_RL > 310) { + rtb_out_b = 310U; + } else if (rtDW.FIU_SET_RL < 155) { + rtb_out_b = 155U; + } else { + rtb_out_b = rtDW.FIU_SET_RL; } /* BusCreator: '/Bus Creator' incorporates: @@ -9128,7 +8879,9 @@ void HVAC_model_step(void) * Saturate: '/Saturation' */ rtDW.CCU_STAT1_MODEL.CCU_TargetTempRL_Stat_ro = (uint8_t)((0.10000038146972656 - * (double)rtb_out_oc - 15.5) * 2.0); + * (double)rtb_out_b - 15.5) * 2.0); + + /* DataTypeConversion: '/Data Type Conversion' */ for (i = 0; i < 9; i++) { /* Switch: '/Switch' incorporates: * Constant: '/Constant' @@ -9137,35 +8890,32 @@ void HVAC_model_step(void) * Gain: '/Gain' * Product: '/Divide' */ - if (rtDW.MaxPositionCh0_private[i] != 0) { - y = 100 * (int16_t)div_nde_s32_floor - (Actuator_Ch0_Status_Model.in_CPOS_ALL[i], rtDW.MaxPositionCh0_private[i]); + AMB = rtDW.MaxPositionCh0_private[i]; + if (AMB != 0) { + rtb_Divide1 = (double)Actuator_Ch0_Status_Model.in_CPOS_ALL[i] / (double) + AMB * 100.0; } else { - y = 0; + rtb_Divide1 = 0.0; } /* End of Switch: '/Switch' */ - /* Saturate: '/Saturation' */ - if (y > 100) { - y = 100; - } else if (y < 0) { - y = 0; + /* Saturate: '/Saturation' incorporates: + * DataTypeConversion: '/Data Type Conversion' + */ + if (rtb_Divide1 > 100.0) { + rtb_DataTypeConversion_hl[i] = 100U; + } else if (rtb_Divide1 < 0.0) { + rtb_DataTypeConversion_hl[i] = 0U; + } else { + rtb_DataTypeConversion_hl[i] = (uint8_t)rtb_Divide1; } /* End of Saturate: '/Saturation' */ - - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * DataTypeConversion: '/Data Type Conversion' - */ - rtb_DataTypeConversion_ns[i] = (uint8_t)y; - - /* DataStoreWrite: '/Data Store Write2' incorporates: - * DataTypeConversion: '/Data Type Conversion' - */ - Actuator_pos_percent_Ch0[i] = (uint8_t)y; } + /* End of DataTypeConversion: '/Data Type Conversion' */ + /* Switch: '/Switch' incorporates: * Constant: '/Constant1' * DataStoreRead: '/Data Store Read' @@ -9457,8 +9207,8 @@ void HVAC_model_step(void) * Logic: '/Logical Operator3' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { - rtb_LogicalOperator1 = (rtb_LogicalOperator1 && rtb_LogicalOperator3_a0[y + for (i = 0; i < 8; i++) { + rtb_LogicalOperator1 = (rtb_LogicalOperator1 && rtb_LogicalOperator3_a0[i + 1]); } @@ -9477,13 +9227,13 @@ void HVAC_model_step(void) * ActionPort: '/Action Port' */ /* DataStoreWrite: '/Data Store Write1' */ - for (y = 0; y < 9; y++) { + for (i = 0; i < 9; i++) { /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read1' */ - if (rtDW.ErrorCalibration_private[y] != 0) { - rtDW.MinPositionCh0_private[y] = - Actuator_Ch0_Status_Model.in_CPOS_ALL[y]; + if (rtDW.ErrorCalibration_private[i] != 0) { + rtDW.MinPositionCh0_private[i] = + Actuator_Ch0_Status_Model.in_CPOS_ALL[i]; } /* End of Switch: '/Switch' */ @@ -9685,8 +9435,8 @@ void HVAC_model_step(void) * Logic: '/Logical Operator3' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { - rtb_LogicalOperator1 = (rtb_LogicalOperator1 && rtb_LogicalOperator3_a0[y + for (i = 0; i < 8; i++) { + rtb_LogicalOperator1 = (rtb_LogicalOperator1 && rtb_LogicalOperator3_a0[i + 1]); } @@ -9705,13 +9455,13 @@ void HVAC_model_step(void) * ActionPort: '/Action Port' */ /* DataStoreWrite: '/Data Store Write1' */ - for (y = 0; y < 9; y++) { + for (i = 0; i < 9; i++) { /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read1' */ - if (rtDW.ErrorCalibration_private[y] != 0) { - rtDW.MaxPositionCh0_private[y] = - Actuator_Ch0_Status_Model.in_CPOS_ALL[y]; + if (rtDW.ErrorCalibration_private[i] != 0) { + rtDW.MaxPositionCh0_private[i] = + Actuator_Ch0_Status_Model.in_CPOS_ALL[i]; } /* End of Switch: '/Switch' */ @@ -9824,9 +9574,9 @@ void HVAC_model_step(void) /* Logic: '/Logical Operator1' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 && - rtb_LogicalOperator3_a0[y + 1]); + rtb_LogicalOperator3_a0[i + 1]); } /* Switch: '/Switch' incorporates: @@ -9863,9 +9613,9 @@ void HVAC_model_step(void) /* Logic: '/Logical Operator' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 || - rtb_LogicalOperator3_a0[y + 1]); + rtb_LogicalOperator3_a0[i + 1]); } /* DataTypeConversion: '/Data Type Conversion' incorporates: @@ -9963,9 +9713,9 @@ void HVAC_model_step(void) * DataStoreWrite: '/Data Store Write' */ rtb_LogicalOperator1 = (rtDW.ErrorCalibration_private[0] != 0); - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 || - (rtDW.ErrorCalibration_private[y + 1] != 0)); + (rtDW.ErrorCalibration_private[i + 1] != 0)); } /* Switch: '/Switch' incorporates: @@ -10041,9 +9791,9 @@ void HVAC_model_step(void) /* Logic: '/Logical Operator2' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 || - rtb_LogicalOperator3_a0[y + 1]); + rtb_LogicalOperator3_a0[i + 1]); } /* Switch: '/Switch' incorporates: @@ -10147,7 +9897,7 @@ void HVAC_model_step(void) * DataStoreRead: '/valves target in percent' */ for (i = 0; i < 9; i++) { - rtb_DataTypeConversion_md[i] = (uint8_t) + rtb_DataTypeConversion_c1[i] = (uint8_t) rtDW.valves_front_manual_target[i]; } @@ -10156,54 +9906,54 @@ void HVAC_model_step(void) /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[0] = rtb_DataTypeConversion_md[8]; + rtDW.BUS_ADR_private[0] = rtb_DataTypeConversion_c1[8]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' * DataStoreWrite: '/Data Store Write2' */ - rtDW.BUS_ADR_private[1] = rtb_DataTypeConversion_ns[1]; + rtDW.BUS_ADR_private[1] = rtb_DataTypeConversion_hl[1]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' * DataStoreWrite: '/Data Store Write2' */ - rtDW.BUS_ADR_private[2] = rtb_DataTypeConversion_ns[2]; + rtDW.BUS_ADR_private[2] = rtb_DataTypeConversion_hl[2]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' * DataStoreWrite: '/Data Store Write2' */ - rtDW.BUS_ADR_private[3] = rtb_DataTypeConversion_ns[3]; + rtDW.BUS_ADR_private[3] = rtb_DataTypeConversion_hl[3]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[4] = rtb_DataTypeConversion_md[1]; + rtDW.BUS_ADR_private[4] = rtb_DataTypeConversion_c1[1]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[5] = rtb_DataTypeConversion_md[0]; + rtDW.BUS_ADR_private[5] = rtb_DataTypeConversion_c1[0]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' * DataStoreWrite: '/Data Store Write2' */ - rtDW.BUS_ADR_private[6] = rtb_DataTypeConversion_ns[6]; + rtDW.BUS_ADR_private[6] = rtb_DataTypeConversion_hl[6]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[7] = rtb_DataTypeConversion_md[6]; + rtDW.BUS_ADR_private[7] = rtb_DataTypeConversion_c1[6]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[8] = rtb_DataTypeConversion_md[7]; + rtDW.BUS_ADR_private[8] = rtb_DataTypeConversion_c1[7]; for (i = 0; i < 9; i++) { /* Product: '/Product' */ - rtb_Gain_ge = rtDW.BUS_ADR_private[i]; + rtb_Gain_l = rtDW.BUS_ADR_private[i]; /* DataTypeConversion: '/Data Type Conversion1' incorporates: * Constant: '/Constant1' @@ -10212,21 +9962,21 @@ void HVAC_model_step(void) * Product: '/Divide1' * Product: '/Product' */ - rtDW.POS_private[i] = (uint16_t)((double)(rtb_Gain_ge * + rtDW.POS_private[i] = (uint16_t)((double)(rtb_Gain_l * rtDW.MaxPositionCh0_private[i]) / 100.0); /* RelationalOperator: '/Relational Operator1' incorporates: * DataStoreWrite: '/Data Store Write2' */ - rtb_LogicalOperator3_a0[i] = (rtb_DataTypeConversion_ns[i] == - rtb_Gain_ge); + rtb_LogicalOperator3_a0[i] = (rtb_DataTypeConversion_hl[i] == + rtb_Gain_l); } /* Logic: '/Logical Operator' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 && - rtb_LogicalOperator3_a0[y + 1]); + rtb_LogicalOperator3_a0[i + 1]); } for (i = 0; i < 9; i++) { @@ -10253,8 +10003,8 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator' */ rtDW.BUS_ADR_private[i] = (uint8_t)((uint32_t) - (rtb_DataTypeConversion_ns[i] != rtDW.BUS_ADR_private[i]) * - rtConstP.pooled76[i]); + (rtb_DataTypeConversion_hl[i] != rtDW.BUS_ADR_private[i]) * + rtConstP.pooled75[i]); /* DataStoreWrite: '/Data Store Write4' incorporates: * Constant: '/Constant1' @@ -10318,7 +10068,7 @@ void HVAC_model_step(void) * DataStoreRead: '/valves target in percent' */ for (i = 0; i < 9; i++) { - rtb_DataTypeConversion_md[i] = (uint8_t) + rtb_DataTypeConversion_c1[i] = (uint8_t) rtDW.valves_front_manual_target[i]; } @@ -10327,54 +10077,54 @@ void HVAC_model_step(void) /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[0] = rtb_DataTypeConversion_md[8]; + rtDW.BUS_ADR_private[0] = rtb_DataTypeConversion_c1[8]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' * DataStoreWrite: '/Data Store Write2' */ - rtDW.BUS_ADR_private[1] = rtb_DataTypeConversion_ns[1]; + rtDW.BUS_ADR_private[1] = rtb_DataTypeConversion_hl[1]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' * DataStoreWrite: '/Data Store Write2' */ - rtDW.BUS_ADR_private[2] = rtb_DataTypeConversion_ns[2]; + rtDW.BUS_ADR_private[2] = rtb_DataTypeConversion_hl[2]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' * DataStoreWrite: '/Data Store Write2' */ - rtDW.BUS_ADR_private[3] = rtb_DataTypeConversion_ns[3]; + rtDW.BUS_ADR_private[3] = rtb_DataTypeConversion_hl[3]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[4] = rtb_DataTypeConversion_md[1]; + rtDW.BUS_ADR_private[4] = rtb_DataTypeConversion_c1[1]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[5] = rtb_DataTypeConversion_md[0]; + rtDW.BUS_ADR_private[5] = rtb_DataTypeConversion_c1[0]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' * DataStoreWrite: '/Data Store Write2' */ - rtDW.BUS_ADR_private[6] = rtb_DataTypeConversion_ns[6]; + rtDW.BUS_ADR_private[6] = rtb_DataTypeConversion_hl[6]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[7] = rtb_DataTypeConversion_md[6]; + rtDW.BUS_ADR_private[7] = rtb_DataTypeConversion_c1[6]; /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Concatenate: '/Vector Concatenate' */ - rtDW.BUS_ADR_private[8] = rtb_DataTypeConversion_md[7]; + rtDW.BUS_ADR_private[8] = rtb_DataTypeConversion_c1[7]; for (i = 0; i < 9; i++) { /* Product: '/Product' */ - rtb_Gain_ge = rtDW.BUS_ADR_private[i]; + rtb_Gain_l = rtDW.BUS_ADR_private[i]; /* DataTypeConversion: '/Data Type Conversion1' incorporates: * Constant: '/Constant1' @@ -10383,21 +10133,20 @@ void HVAC_model_step(void) * Product: '/Divide1' * Product: '/Product' */ - rtDW.POS_private[i] = (uint16_t)((double)(rtb_Gain_ge * + rtDW.POS_private[i] = (uint16_t)((double)(rtb_Gain_l * rtDW.MaxPositionCh0_private[i]) / 100.0); /* RelationalOperator: '/Relational Operator1' incorporates: * DataStoreWrite: '/Data Store Write2' */ - rtb_LogicalOperator3_a0[i] = (rtb_DataTypeConversion_ns[i] == - rtb_Gain_ge); + rtb_LogicalOperator3_a0[i] = (rtb_DataTypeConversion_hl[i] == rtb_Gain_l); } /* Logic: '/Logical Operator' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 && - rtb_LogicalOperator3_a0[y + 1]); + rtb_LogicalOperator3_a0[i + 1]); } for (i = 0; i < 9; i++) { @@ -10424,8 +10173,8 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator' */ rtDW.BUS_ADR_private[i] = (uint8_t)((uint32_t) - (rtb_DataTypeConversion_ns[i] != rtDW.BUS_ADR_private[i]) * - rtConstP.pooled76[i]); + (rtb_DataTypeConversion_hl[i] != rtDW.BUS_ADR_private[i]) * + rtConstP.pooled75[i]); /* DataStoreWrite: '/Data Store Write4' incorporates: * Constant: '/Constant1' @@ -10513,8 +10262,8 @@ void HVAC_model_step(void) /* Logic: '/Logical Operator' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { - rtb_LogicalOperator1 = (rtb_LogicalOperator1 || rtb_LogicalOperator3_a0[y + + for (i = 0; i < 8; i++) { + rtb_LogicalOperator1 = (rtb_LogicalOperator1 || rtb_LogicalOperator3_a0[i + 1]); } @@ -10530,7 +10279,7 @@ void HVAC_model_step(void) */ if (rtb_LogicalOperator1) { rtDW.BUS_ADR_private[i] = (uint8_t)((uint32_t) - rtDW.ErrorCalibration_private[i] * rtConstP.pooled76[i]); + rtDW.ErrorCalibration_private[i] * rtConstP.pooled75[i]); } else { rtDW.BUS_ADR_private[i] = 0U; } @@ -10539,7 +10288,10 @@ void HVAC_model_step(void) /* DataStoreWrite: '/Data Store Write' */ rtDW.COM_private[i] = 0U; + } + /* DataTypeConversion: '/Data Type Conversion' */ + for (i = 0; i < 6; i++) { /* Switch: '/Switch' incorporates: * Constant: '/Constant' * DataStoreRead: '/Data Store Read1' @@ -10547,30 +10299,44 @@ void HVAC_model_step(void) * Gain: '/Gain' * Product: '/Divide' */ - if (rtDW.MaxPositionCh1_private[i] != 0) { - y = 100 * (int16_t)div_nde_s32_floor - (Actuator_Ch1_Status_Model.in_CPOS_ALL[i], rtDW.MaxPositionCh1_private[i]); + AMB = rtDW.MaxPositionCh1_private[i]; + if (AMB != 0) { + rtb_Divide1 = (double)Actuator_Ch1_Status_Model.in_CPOS_ALL[i] / (double) + AMB * 100.0; } else { - y = 0; + rtb_Divide1 = 0.0; } /* End of Switch: '/Switch' */ /* Saturate: '/Saturation' */ - if (y > 100) { - /* DataStoreWrite: '/Data Store Write2' */ - rtb_DataTypeConversion_md[i] = 100U; - } else if (y < 0) { - /* DataStoreWrite: '/Data Store Write2' */ - rtb_DataTypeConversion_md[i] = 0U; + if (rtb_Divide1 > 100.0) { + rtb_DataTypeConversion_c1[i] = 100U; + } else if (rtb_Divide1 < 0.0) { + rtb_DataTypeConversion_c1[i] = 0U; } else { - /* DataStoreWrite: '/Data Store Write2' */ - rtb_DataTypeConversion_md[i] = (uint8_t)y; + rtb_DataTypeConversion_c1[i] = (uint8_t)rtb_Divide1; } /* End of Saturate: '/Saturation' */ } + /* End of DataTypeConversion: '/Data Type Conversion' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant1' + */ + rtb_DataTypeConversion_c1[6] = 0U; + rtb_DataTypeConversion_c1[7] = 0U; + rtb_DataTypeConversion_c1[8] = 0U; + + /* DataStoreWrite: '/Data Store Write2' */ + for (i = 0; i < 9; i++) { + Actuator_pos_percent_Ch1[i] = rtb_DataTypeConversion_c1[i]; + } + + /* End of DataStoreWrite: '/Data Store Write2' */ + /* Switch: '/Switch' incorporates: * Constant: '/Constant1' * DataStoreRead: '/Data Store Read' @@ -10862,8 +10628,8 @@ void HVAC_model_step(void) * Logic: '/Logical Operator3' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_ev[0]; - for (y = 0; y < 5; y++) { - rtb_LogicalOperator1 = (rtb_LogicalOperator1 && rtb_LogicalOperator3_ev[y + for (i = 0; i < 5; i++) { + rtb_LogicalOperator1 = (rtb_LogicalOperator1 && rtb_LogicalOperator3_ev[i + 1]); } @@ -10882,13 +10648,13 @@ void HVAC_model_step(void) * ActionPort: '/Action Port' */ /* DataStoreWrite: '/Data Store Write1' */ - for (y = 0; y < 9; y++) { + for (i = 0; i < 9; i++) { /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read1' */ - if (rtDW.ErrorCalibration_private_b[y] != 0) { - rtDW.MinPositionCh1_private[y] = - Actuator_Ch1_Status_Model.in_CPOS_ALL[y]; + if (rtDW.ErrorCalibration_private_b[i] != 0) { + rtDW.MinPositionCh1_private[i] = + Actuator_Ch1_Status_Model.in_CPOS_ALL[i]; } /* End of Switch: '/Switch' */ @@ -11103,8 +10869,8 @@ void HVAC_model_step(void) * Logic: '/Logical Operator3' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_ev[0]; - for (y = 0; y < 5; y++) { - rtb_LogicalOperator1 = (rtb_LogicalOperator1 && rtb_LogicalOperator3_ev[y + for (i = 0; i < 5; i++) { + rtb_LogicalOperator1 = (rtb_LogicalOperator1 && rtb_LogicalOperator3_ev[i + 1]); } @@ -11262,9 +11028,9 @@ void HVAC_model_step(void) /* Logic: '/Logical Operator1' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 && - rtb_LogicalOperator3_a0[y + 1]); + rtb_LogicalOperator3_a0[i + 1]); } /* Switch: '/Switch' incorporates: @@ -11301,9 +11067,9 @@ void HVAC_model_step(void) /* Logic: '/Logical Operator' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 || - rtb_LogicalOperator3_a0[y + 1]); + rtb_LogicalOperator3_a0[i + 1]); } /* DataTypeConversion: '/Data Type Conversion' incorporates: @@ -11402,9 +11168,9 @@ void HVAC_model_step(void) * DataStoreWrite: '/Data Store Write' */ rtb_LogicalOperator1 = (rtDW.ErrorCalibration_private_b[0] != 0); - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 || - (rtDW.ErrorCalibration_private_b[y + 1] != 0)); + (rtDW.ErrorCalibration_private_b[i + 1] != 0)); } /* Switch: '/Switch' incorporates: @@ -11480,9 +11246,9 @@ void HVAC_model_step(void) /* Logic: '/Logical Operator2' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 || - rtb_LogicalOperator3_a0[y + 1]); + rtb_LogicalOperator3_a0[i + 1]); } /* Switch: '/Switch' incorporates: @@ -11688,8 +11454,8 @@ void HVAC_model_step(void) /* Logic: '/Logical Operator' */ rtb_LogicalOperator1 = rtb_Compare_l2[0]; - for (y = 0; y < 5; y++) { - rtb_LogicalOperator1 = (rtb_LogicalOperator1 || rtb_Compare_l2[y + 1]); + for (i = 0; i < 5; i++) { + rtb_LogicalOperator1 = (rtb_LogicalOperator1 || rtb_Compare_l2[i + 1]); } /* Switch: '/Switch1' incorporates: @@ -11701,10 +11467,10 @@ void HVAC_model_step(void) */ for (i = 0; i < 6; i++) { if (rtb_LogicalOperator1) { - rtb_VectorConcatenate_c[i] = (uint8_t)((uint32_t) + rtb_DataTypeConversion_c1[i] = (uint8_t)((uint32_t) rtDW.ErrorCalibration_private_b[i] * rtConstP.Constant3_Value[i]); } else { - rtb_VectorConcatenate_c[i] = 0U; + rtb_DataTypeConversion_c1[i] = 0U; } } @@ -11713,16 +11479,19 @@ void HVAC_model_step(void) /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Constant: '/Constant1' */ - rtb_VectorConcatenate_c[6] = 0U; - rtb_VectorConcatenate_c[7] = 0U; - rtb_VectorConcatenate_c[8] = 0U; + rtb_DataTypeConversion_c1[6] = 0U; + rtb_DataTypeConversion_c1[7] = 0U; + rtb_DataTypeConversion_c1[8] = 0U; for (i = 0; i < 9; i++) { /* DataStoreWrite: '/Data Store Write7' */ - rtDW.BUS_ADR_private_m[i] = rtb_VectorConcatenate_c[i]; + rtDW.BUS_ADR_private_m[i] = rtb_DataTypeConversion_c1[i]; /* DataStoreWrite: '/Data Store Write' */ rtDW.COM_private_n[i] = 0U; + } + /* DataTypeConversion: '/Data Type Conversion' */ + for (i = 0; i < 8; i++) { /* Switch: '/Switch' incorporates: * Constant: '/Constant' * DataStoreRead: '/Data Store Read1' @@ -11730,30 +11499,42 @@ void HVAC_model_step(void) * Gain: '/Gain' * Product: '/Divide' */ - if (rtDW.MaxPositionCh2_private[i] != 0) { - y = 100 * (int16_t)div_nde_s32_floor - (Actuator_Ch2_Status_Model.in_CPOS_ALL[i], rtDW.MaxPositionCh2_private[i]); + AMB = rtDW.MaxPositionCh2_private[i]; + if (AMB != 0) { + rtb_Divide1 = (double)Actuator_Ch2_Status_Model.in_CPOS_ALL[i] / (double) + AMB * 100.0; } else { - y = 0; + rtb_Divide1 = 0.0; } /* End of Switch: '/Switch' */ /* Saturate: '/Saturation' */ - if (y > 100) { - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_DataTypeConversion_ns[i] = 100U; - } else if (y < 0) { - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_DataTypeConversion_ns[i] = 0U; + if (rtb_Divide1 > 100.0) { + rtb_DataTypeConversion_c1[i] = 100U; + } else if (rtb_Divide1 < 0.0) { + rtb_DataTypeConversion_c1[i] = 0U; } else { - /* DataTypeConversion: '/Data Type Conversion' */ - rtb_DataTypeConversion_ns[i] = (uint8_t)y; + rtb_DataTypeConversion_c1[i] = (uint8_t)rtb_Divide1; } /* End of Saturate: '/Saturation' */ } + /* End of DataTypeConversion: '/Data Type Conversion' */ + + /* SignalConversion generated from: '/Vector Concatenate' incorporates: + * Constant: '/Constant1' + */ + rtb_DataTypeConversion_c1[8] = 0U; + + /* DataStoreWrite: '/Data Store Write2' */ + for (i = 0; i < 9; i++) { + rtb_DataTypeConversion_np[i] = rtb_DataTypeConversion_c1[i]; + } + + /* End of DataStoreWrite: '/Data Store Write2' */ + /* Switch: '/Switch' incorporates: * Constant: '/Constant1' * DataStoreRead: '/Data Store Read' @@ -12044,8 +11825,8 @@ void HVAC_model_step(void) * Logic: '/Logical Operator3' */ rtb_LogicalOperator1 = rtb_Compare_l2[0]; - for (y = 0; y < 7; y++) { - rtb_LogicalOperator1 = (rtb_LogicalOperator1 && rtb_Compare_l2[y + 1]); + for (i = 0; i < 7; i++) { + rtb_LogicalOperator1 = (rtb_LogicalOperator1 && rtb_Compare_l2[i + 1]); } /* If: '/If2' incorporates: @@ -12063,13 +11844,13 @@ void HVAC_model_step(void) * ActionPort: '/Action Port' */ /* DataStoreWrite: '/Data Store Write1' */ - for (y = 0; y < 9; y++) { + for (i = 0; i < 9; i++) { /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read1' */ - if (rtDW.ErrorCalibration_private_h[y] != 0) { - rtDW.MinPositionCh2_private[y] = - Actuator_Ch2_Status_Model.in_CPOS_ALL[y]; + if (rtDW.ErrorCalibration_private_h[i] != 0) { + rtDW.MinPositionCh2_private[i] = + Actuator_Ch2_Status_Model.in_CPOS_ALL[i]; } /* End of Switch: '/Switch' */ @@ -12283,8 +12064,8 @@ void HVAC_model_step(void) * Logic: '/Logical Operator3' */ rtb_LogicalOperator1 = rtb_Compare_l2[0]; - for (y = 0; y < 7; y++) { - rtb_LogicalOperator1 = (rtb_LogicalOperator1 && rtb_Compare_l2[y + 1]); + for (i = 0; i < 7; i++) { + rtb_LogicalOperator1 = (rtb_LogicalOperator1 && rtb_Compare_l2[i + 1]); } /* If: '/If2' incorporates: @@ -12439,9 +12220,9 @@ void HVAC_model_step(void) /* Logic: '/Logical Operator1' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 && - rtb_LogicalOperator3_a0[y + 1]); + rtb_LogicalOperator3_a0[i + 1]); } /* Switch: '/Switch' incorporates: @@ -12478,9 +12259,9 @@ void HVAC_model_step(void) /* Logic: '/Logical Operator' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 || - rtb_LogicalOperator3_a0[y + 1]); + rtb_LogicalOperator3_a0[i + 1]); } /* DataTypeConversion: '/Data Type Conversion' incorporates: @@ -12579,9 +12360,9 @@ void HVAC_model_step(void) * DataStoreWrite: '/Data Store Write' */ rtb_LogicalOperator1 = (rtDW.ErrorCalibration_private_h[0] != 0); - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 || - (rtDW.ErrorCalibration_private_h[y + 1] != 0)); + (rtDW.ErrorCalibration_private_h[i + 1] != 0)); } /* Switch: '/Switch' incorporates: @@ -12657,9 +12438,9 @@ void HVAC_model_step(void) /* Logic: '/Logical Operator2' */ rtb_LogicalOperator1 = rtb_LogicalOperator3_a0[0]; - for (y = 0; y < 8; y++) { + for (i = 0; i < 8; i++) { rtb_LogicalOperator1 = (rtb_LogicalOperator1 || - rtb_LogicalOperator3_a0[y + 1]); + rtb_LogicalOperator3_a0[i + 1]); } /* Switch: '/Switch' incorporates: @@ -12870,8 +12651,8 @@ void HVAC_model_step(void) /* Logic: '/Logical Operator' */ rtb_LogicalOperator1 = rtb_Compare_l2[0]; - for (y = 0; y < 7; y++) { - rtb_LogicalOperator1 = (rtb_LogicalOperator1 || rtb_Compare_l2[y + 1]); + for (i = 0; i < 7; i++) { + rtb_LogicalOperator1 = (rtb_LogicalOperator1 || rtb_Compare_l2[i + 1]); } /* Switch: '/Switch1' incorporates: @@ -12883,10 +12664,10 @@ void HVAC_model_step(void) */ for (i = 0; i < 8; i++) { if (rtb_LogicalOperator1) { - rtb_VectorConcatenate_c[i] = (uint8_t)((uint32_t) + rtb_DataTypeConversion_c1[i] = (uint8_t)((uint32_t) rtDW.ErrorCalibration_private_h[i] * rtConstP.Constant3_Value_j[i]); } else { - rtb_VectorConcatenate_c[i] = 0U; + rtb_DataTypeConversion_c1[i] = 0U; } } @@ -12895,10 +12676,10 @@ void HVAC_model_step(void) /* SignalConversion generated from: '/Vector Concatenate' incorporates: * Constant: '/Constant1' */ - rtb_VectorConcatenate_c[8] = 0U; + rtb_DataTypeConversion_c1[8] = 0U; for (i = 0; i < 9; i++) { /* DataStoreWrite: '/Data Store Write7' */ - rtDW.BUS_ADR_private_p[i] = rtb_VectorConcatenate_c[i]; + rtDW.BUS_ADR_private_p[i] = rtb_DataTypeConversion_c1[i]; /* DataStoreWrite: '/Data Store Write' */ rtDW.COM_private_b[i] = 0U; @@ -12907,19 +12688,27 @@ void HVAC_model_step(void) /* DataStoreWrite: '/Data Store Write' incorporates: * Constant: '/Constant' */ - rtDW.LOGGER_LIN = 1.0; + rtDW.LOGGER_LIN = 0.0; /* BusCreator: '/Bus Creator' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read1' * DataStoreRead: '/Data Store Read3' * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read5' * DataStoreWrite: '/Data Store Write' */ PWM_Get.pwmPercentFront = rtDW.PWM_front; PWM_Get.pwmPercentRear = rtDW.PWM_rear; - PWM_Get.pwmPercentFrontReserved = 0U; - PWM_Get.pwmPercentRearReserved = 0U; + PWM_Get.pwmPercentFrontReserved = rtDW.PWM_front; + PWM_Get.pwmPercentRearReserved = rtDW.PWM_rear; + + /* MATLAB Function: '/Write4' incorporates: + * DataStoreRead: '/Data Store Read3' + */ + /* : if(LOGGER) */ + /* : fprintf('GETPWMFront = %u \n',data); */ + printf("GETPWMFront = %u \n", rtDW.PWM_front); + fflush(stdout); /* MATLAB Function: '/Write' incorporates: * DataStoreRead: '/Data Store Read' @@ -12955,18 +12744,18 @@ void HVAC_model_step(void) rtDW.PWM_Set_Model.pwmPercentRearReserved); fflush(stdout); - /* BusCreator: '/Bus Creator1' incorporates: - * 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 Read3' - * DataStoreRead: '/Data Store Read4' - * DataStoreRead: '/Data Store Read8' - * DataStoreWrite: '/Data Store Write1' + /* BusCreator: '/Bus Creator1' incorporates: + * 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 Read3' + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read8' + * DataStoreWrite: '/Data Store Write1' */ rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Fb_Select = 0; rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_FL_Lower_Fb = 0; @@ -12990,59 +12779,59 @@ void HVAC_model_step(void) rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_RR_Side_Fb = Duct3_F; rtDW.dbgCAN_dbg_Sen_Duct_model.dbg_Sen_Duct_RR_Tgt = Duct4_F; - /* BusCreator: '/Bus Creator1' incorporates: - * DataStoreRead: '/Data Store Read3' - * DataStoreRead: '/Data Store Read4' - * DataStoreWrite: '/Data Store Write1' + /* BusCreator: '/Bus Creator1' incorporates: + * DataStoreRead: '/Data Store Read4' + * DataStoreWrite: '/Data Store Write1' + * DataStoreWrite: '/Data Store Write2' */ - rtDW.dbgCAN_dbg_Act0_model.dbg_Act00_Def = Actuator_pos_percent_Ch0[0]; - rtDW.dbgCAN_dbg_Act0_model.dbg_Act01_Vent_SFL = Actuator_pos_percent_Ch0[5]; - rtDW.dbgCAN_dbg_Act0_model.dbg_Act02_Vent_CFL = Actuator_pos_percent_Ch0[4]; - rtDW.dbgCAN_dbg_Act0_model.dbg_Act03_Foot_1FL = Actuator_pos_percent_Ch0[7]; - rtDW.dbgCAN_dbg_Act0_model.dbg_Act04_Foot_2FL = Actuator_pos_percent_Ch0[8]; - rtDW.dbgCAN_dbg_Act0_model.dbg_Act05_Vent_CFR = rtb_DataTypeConversion_md[1]; - rtDW.dbgCAN_dbg_Act0_model.dbg_Act06_Vent_SFR = rtb_DataTypeConversion_md[2]; - rtDW.dbgCAN_dbg_Act0_model.dbg_Act07_Foot_1FR = rtb_DataTypeConversion_md[4]; + rtDW.dbgCAN_dbg_Act0_model.dbg_Act00_Def = rtb_DataTypeConversion_hl[0]; + rtDW.dbgCAN_dbg_Act0_model.dbg_Act01_Vent_SFL = rtb_DataTypeConversion_hl[5]; + rtDW.dbgCAN_dbg_Act0_model.dbg_Act02_Vent_CFL = rtb_DataTypeConversion_hl[4]; + rtDW.dbgCAN_dbg_Act0_model.dbg_Act03_Foot_1FL = rtb_DataTypeConversion_hl[7]; + rtDW.dbgCAN_dbg_Act0_model.dbg_Act04_Foot_2FL = rtb_DataTypeConversion_hl[8]; + rtDW.dbgCAN_dbg_Act0_model.dbg_Act05_Vent_CFR = Actuator_pos_percent_Ch1[1]; + 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 Read3' - * DataStoreRead: '/Data Store Read4' - * 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 = Actuator_pos_percent_Ch0[6]; - rtDW.dbgCAN_dbg_Act2_model.dbg_Act17_TempU_FR = rtb_DataTypeConversion_md[0]; - rtDW.dbgCAN_dbg_Act2_model.dbg_Act18_TempL_FR = rtb_DataTypeConversion_md[3]; - rtDW.dbgCAN_dbg_Act2_model.dbg_Act19_Temp_RL = rtb_DataTypeConversion_ns[1]; - rtDW.dbgCAN_dbg_Act2_model.dbg_Act20_Temp_RR = rtb_DataTypeConversion_ns[0]; - rtDW.dbgCAN_dbg_Act2_model.dbg_Act21_Rec = Actuator_pos_percent_Ch0[1]; - rtDW.dbgCAN_dbg_Act2_model.dbg_Act22_OSA = Actuator_pos_percent_Ch0[2]; - rtDW.dbgCAN_dbg_Act2_model.dbg_Act23_SealingValve = rtb_DataTypeConversion_ns + rtDW.dbgCAN_dbg_Act2_model.dbg_Act16_TempL_FL = rtb_DataTypeConversion_hl[6]; + rtDW.dbgCAN_dbg_Act2_model.dbg_Act17_TempU_FR = Actuator_pos_percent_Ch1[0]; + rtDW.dbgCAN_dbg_Act2_model.dbg_Act18_TempL_FR = Actuator_pos_percent_Ch1[3]; + rtDW.dbgCAN_dbg_Act2_model.dbg_Act19_Temp_RL = rtb_DataTypeConversion_np[1]; + rtDW.dbgCAN_dbg_Act2_model.dbg_Act20_Temp_RR = rtb_DataTypeConversion_np[0]; + rtDW.dbgCAN_dbg_Act2_model.dbg_Act21_Rec = rtb_DataTypeConversion_hl[1]; + rtDW.dbgCAN_dbg_Act2_model.dbg_Act22_OSA = rtb_DataTypeConversion_hl[2]; + rtDW.dbgCAN_dbg_Act2_model.dbg_Act23_SealingValve = rtb_DataTypeConversion_np [8]; - /* BusCreator: '/Bus Creator2' incorporates: - * DataStoreRead: '/Data Store Read3' - * DataStoreRead: '/Data Store Read4' - * DataStoreWrite: '/Data Store Write3' - * DataStoreWrite: '/Data Store Write2' + /* BusCreator: '/Bus Creator2' incorporates: + * DataStoreRead: '/Data Store Read4' + * DataStoreRead: '/Data Store Read5' + * DataStoreWrite: '/Data Store Write3' + * DataStoreWrite: '/Data Store Write2' */ - rtDW.dbgCAN_dbg_Act1_model.dbg_Act08_Foot_2FR = rtb_DataTypeConversion_md[5]; - rtDW.dbgCAN_dbg_Act1_model.dbg_Act09_Vent_SRL = rtb_DataTypeConversion_ns[2]; - rtDW.dbgCAN_dbg_Act1_model.dbg_Act10_Vent_CRL = rtb_DataTypeConversion_ns[4]; - rtDW.dbgCAN_dbg_Act1_model.dbg_Act11_Foot_RL = rtb_DataTypeConversion_ns[3]; - rtDW.dbgCAN_dbg_Act1_model.dbg_Act12_Vent_CRR = rtb_DataTypeConversion_ns[5]; - rtDW.dbgCAN_dbg_Act1_model.dbg_Act13_Vent_SRR = rtb_DataTypeConversion_ns[7]; - rtDW.dbgCAN_dbg_Act1_model.dbg_Act14_Foot_RR = rtb_DataTypeConversion_ns[6]; - rtDW.dbgCAN_dbg_Act1_model.dbg_Act15_TempU_FL = Actuator_pos_percent_Ch0[3]; + 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_np[2]; + rtDW.dbgCAN_dbg_Act1_model.dbg_Act10_Vent_CRL = rtb_DataTypeConversion_np[4]; + rtDW.dbgCAN_dbg_Act1_model.dbg_Act11_Foot_RL = rtb_DataTypeConversion_np[3]; + rtDW.dbgCAN_dbg_Act1_model.dbg_Act12_Vent_CRR = rtb_DataTypeConversion_np[5]; + rtDW.dbgCAN_dbg_Act1_model.dbg_Act13_Vent_SRR = rtb_DataTypeConversion_np[7]; + rtDW.dbgCAN_dbg_Act1_model.dbg_Act14_Foot_RR = rtb_DataTypeConversion_np[6]; + rtDW.dbgCAN_dbg_Act1_model.dbg_Act15_TempU_FL = rtb_DataTypeConversion_hl[3]; - /* 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' - * 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' + * DataStoreWrite: '/Data Store Write' */ rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_Step_FL = 0U; rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_Step_FR = 0U; @@ -13055,10 +12844,10 @@ void HVAC_model_step(void) rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_AF_RL = rtDW.Blower_AF_RL; rtDW.dbgCAN_dbg_Logic_Blower_model.Logic_Blower_AF_RR = rtDW.Blower_AF_RR; - /* 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_Eva_model.dbg_Sen_Eva_F = 0; rtDW.dbgCAN_dbg_Sen_Eva_model.dbg_Sen_Eva_R = 0; @@ -13111,578 +12900,900 @@ void HVAC_model_step(void) */ rtY.dbgCAN_dbg_Logic_Blower_model = rtDW.dbgCAN_dbg_Logic_Blower_model; - /* Outputs for Enabled SubSystem: '/PWM and valves in manual1' incorporates: - * EnablePort: '/Enable' + /* Outputs for Enabled SubSystem: '/Subsystem1' incorporates: + * EnablePort: '/Enable' */ - /* Logic: '/Logical Operator1' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read11' - * DataStoreRead: '/Data Store Read12' - * RelationalOperator: '/Equal2' - * RelationalOperator: '/Equal3' + /* DataStoreRead: '/Data Store Read1' */ + if (rtDW.FIU_CCU1_MODEL.FIU_CCmodeFL_Req > 0) { + /* DataStoreWrite: '/Data Store Write6' */ + rtDW.FIU_MODE_FL = rtDW.FIU_CCU1_MODEL.FIU_CCmodeFL_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem1' */ + + /* Outputs for Enabled SubSystem: '/Subsystem10' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU1_MODEL.FIU_CCmodeFR_Req > 0) { + /* DataStoreWrite: '/Data Store Write10' */ + rtDW.FIU_MODE_FR = rtDW.FIU_CCU1_MODEL.FIU_CCmodeFR_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem10' */ + + /* Outputs for Enabled SubSystem: '/Subsystem11' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Def_Req > 0) { + /* DataStoreWrite: '/Data Store Write11' */ + rtDW.FIU_DEF_FR = rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Def_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem11' */ + + /* Outputs for Enabled SubSystem: '/Subsystem12' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Face_Req > 0) { + /* DataStoreWrite: '/Data Store Write12' */ + rtDW.FIU_FACE_FR = rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Face_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem12' */ + + /* Outputs for Enabled SubSystem: '/Subsystem13' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Foot_Req > 0) { + /* DataStoreWrite: '/Data Store Write13' */ + rtDW.FIU_FOOT_FR = rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFR_Foot_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem13' */ + + /* Outputs for Enabled SubSystem: '/Subsystem14' incorporates: + * EnablePort: '/Enable' + */ + /* SignalConversion generated from: '/Bus Selector' incorporates: + * DataStoreRead: '/Data Store Read1' + */ + if (rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFL_Req > 0) { + /* DataStoreWrite: '/Data Store Write14' */ + rtDW.FIU_BLOWERS_FL = rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFL_Req; + } + + /* End of SignalConversion generated from: '/Bus Selector' */ + /* End of Outputs for SubSystem: '/Subsystem14' */ + + /* Outputs for Enabled SubSystem: '/Subsystem15' incorporates: + * EnablePort: '/Enable' + */ + /* DataStoreRead: '/Data Store Read1' */ + if (rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFR_Req > 0) { + /* DataStoreWrite: '/Data Store Write15' */ + rtDW.FIU_BLOWERS_FR = rtDW.FIU_CCU1_MODEL.FIU_BlowerSpeedFR_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem15' */ + + /* Outputs for Enabled SubSystem: '/Subsystem16' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU1_MODEL.FIU_CCautoModeFL_Req > 0) { + /* DataStoreWrite: '/Data Store Write16' */ + rtDW.FIU_AUTOMODE_FL = rtDW.FIU_CCU1_MODEL.FIU_CCautoModeFL_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem16' */ + + /* Outputs for Enabled SubSystem: '/Subsystem17' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU1_MODEL.FIU_CCautoModeFR_Req > 0) { + /* DataStoreWrite: '/Data Store Write17' */ + rtDW.FIU_AUTOMODE_FR = rtDW.FIU_CCU1_MODEL.FIU_CCautoModeFR_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem17' */ + + /* Outputs for Enabled SubSystem: '/Subsystem18' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU1_MODEL.FIU_Recirculation_Req > 0) { + /* DataStoreWrite: '/Data Store Write19' */ + rtDW.FIU_RECIRC = rtDW.FIU_CCU1_MODEL.FIU_Recirculation_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem18' */ + + /* Outputs for Enabled SubSystem: '/Subsystem5' incorporates: + * EnablePort: '/Enable' + */ + /* SignalConversion generated from: '/Bus Selector' incorporates: + * DataStoreRead: '/Data Store Read1' + */ + if (rtDW.FIU_CCU1_MODEL.FIU_TargetTempFL_Val_ro > 0) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Bias: '/Bias' + * DataStoreWrite: '/Data Store Write1' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + */ + rtDW.FIU_SET_FL = (uint16_t)((0.5 * (double) + rtDW.FIU_CCU1_MODEL.FIU_TargetTempFL_Val_ro + 15.0) * 10.0); + } + + /* End of SignalConversion generated from: '/Bus Selector' */ + /* End of Outputs for SubSystem: '/Subsystem5' */ + + /* Outputs for Enabled SubSystem: '/Subsystem6' incorporates: + * EnablePort: '/Enable' + */ + /* DataStoreRead: '/Data Store Read1' */ + if (rtDW.FIU_CCU1_MODEL.FIU_TargetTempFR_Val_ro > 0) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Bias: '/Bias' + * DataStoreWrite: '/Data Store Write' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + */ + rtDW.FIU_SET_FR = (uint16_t)((0.5 * (double) + rtDW.FIU_CCU1_MODEL.FIU_TargetTempFR_Val_ro + 15.0) * 10.0); + } + + /* End of Outputs for SubSystem: '/Subsystem6' */ + + /* Outputs for Enabled SubSystem: '/Subsystem7' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Def_Req > 0) { + /* DataStoreWrite: '/Data Store Write7' */ + rtDW.FIU_DEF_FL = rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Def_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem7' */ + + /* Outputs for Enabled SubSystem: '/Subsystem8' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Face_Req > 0) { + /* DataStoreWrite: '/Data Store Write8' */ + rtDW.FIU_FACE_FL = rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Face_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem8' */ + + /* Outputs for Enabled SubSystem: '/Subsystem9' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Foot_Req > 0) { + /* DataStoreWrite: '/Data Store Write9' */ + rtDW.FIU_FOOT_FL = rtDW.FIU_CCU1_MODEL.FIU_AirDirectionFL_Foot_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem9' */ + + /* Outputs for Enabled SubSystem: '/Subsystem2' incorporates: + * EnablePort: '/Enable' + */ + /* DataStoreRead: '/Data Store Read2' */ + if (rtDW.FIU_CCU2_MODEL.FIU_TargetTempRL_Val_ro > 0) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Bias: '/Bias' + * DataStoreWrite: '/Data Store Write1' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + */ + rtDW.FIU_SET_RL = (uint16_t)((0.5 * (double) + rtDW.FIU_CCU2_MODEL.FIU_TargetTempRL_Val_ro + 15.0) * 10.0); + } + + /* End of Outputs for SubSystem: '/Subsystem2' */ + + /* Outputs for Enabled SubSystem: '/Subsystem27' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU2_MODEL.FIU_CCmodeRL_Req > 0) { + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.FIU_MODE_RL = rtDW.FIU_CCU2_MODEL.FIU_CCmodeRL_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem27' */ + + /* Outputs for Enabled SubSystem: '/Subsystem29' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRL_Face_Req > 0) { + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.FIU_FACE_RL = rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRL_Face_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem29' */ + + /* Outputs for Enabled SubSystem: '/Subsystem3' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU2_MODEL.FIU_TargetTempRR_Val_ro > 0) { + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Bias: '/Bias' + * DataStoreWrite: '/Data Store Write1' + * DataTypeConversion: '/Data Type Conversion' + * Gain: '/Gain' + * Gain: '/Gain1' + */ + rtDW.FIU_SET_RR = (uint16_t)((0.5 * (double) + rtDW.FIU_CCU2_MODEL.FIU_TargetTempRR_Val_ro + 15.0) * 10.0); + } + + /* End of Outputs for SubSystem: '/Subsystem3' */ + + /* Outputs for Enabled SubSystem: '/Subsystem30' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRL_Foot_Req > 0) { + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.FIU_FOOT_RL = rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRL_Foot_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem30' */ + + /* Outputs for Enabled SubSystem: '/Subsystem31' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU2_MODEL.FIU_CCmodeRR_Req > 0) { + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.FIU_MODE_RR = rtDW.FIU_CCU2_MODEL.FIU_CCmodeRR_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem31' */ + + /* Outputs for Enabled SubSystem: '/Subsystem33' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRR_Face_Req > 0) { + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.FIU_FACE_RR = rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRR_Face_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem33' */ + + /* Outputs for Enabled SubSystem: '/Subsystem34' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRR_Foot_Req > 0) { + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.FIU_FOOT_RR = rtDW.FIU_CCU2_MODEL.FIU_AirDirectionRR_Foot_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem34' */ + + /* Outputs for Enabled SubSystem: '/Subsystem35' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU2_MODEL.FIU_BlowerSpeedRL_Req > 0) { + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.FIU_BLOWERS_RL = rtDW.FIU_CCU2_MODEL.FIU_BlowerSpeedRL_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem35' */ + + /* Outputs for Enabled SubSystem: '/Subsystem36' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU2_MODEL.FIU_BlowerSpeedRR_Req > 0) { + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.FIU_BLOWERS_RR = rtDW.FIU_CCU2_MODEL.FIU_BlowerSpeedRR_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem36' */ + + /* Outputs for Enabled SubSystem: '/Subsystem37' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU2_MODEL.FIU_CCautoModeRL_Req > 0) { + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.FIU_AUTOMODE_RL = rtDW.FIU_CCU2_MODEL.FIU_CCautoModeRL_Req; + } + + /* End of Outputs for SubSystem: '/Subsystem37' */ + + /* Outputs for Enabled SubSystem: '/Subsystem38' incorporates: + * EnablePort: '/Enable' + */ + if (rtDW.FIU_CCU2_MODEL.FIU_CCautoModeRR_Req > 0) { + /* DataStoreWrite: '/Data Store Write1' */ + rtDW.FIU_AUTOMODE_RR = rtDW.FIU_CCU2_MODEL.FIU_CCautoModeRR_Req; + } + + /* End of DataStoreRead: '/Data Store Read2' */ + /* End of Outputs for SubSystem: '/Subsystem38' */ + + /* Outputs for Atomic SubSystem: '/PWM and valves in manual1' */ + /* Outputs for Enabled SubSystem: '/Subsystem' incorporates: + * EnablePort: '/Enable' + */ + /* Logic: '/Logical Operator1' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read11' + * DataStoreRead: '/Data Store Read12' + * RelationalOperator: '/Equal2' + * RelationalOperator: '/Equal3' */ if ((rtDW.FIU_MODE_FL == 1) && (rtDW.FIU_MODE_FR == 1)) { - /* MATLAB Function: '/Valves for Def' */ - ValvesforDef(0U, &rtb_out_oc); + /* MATLAB Function: '/Valves for Def' */ + ValvesforDef(rtb_vals_m); - /* MATLAB Function: '/Valves for Vent mode' */ - ValvesforVentmode(0U, &rtb_out_jn); + /* MATLAB Function: '/Valves for Hi_Level' */ + /* : out = g_ausFLOW_FR_VE2VALVE; */ + ValvesforHi_Level(Merge); - /* MATLAB Function: '/Valves for Hi_Level' */ - ValvesforHi_Level(0U, &rtb_out_pd); + /* MATLAB Function: '/Valves for Foot + Def' */ + /* : out = g_ausFLOW_FR_FO2VALVE; */ + ValvesforFootDef(rtb_out_pf); - /* MATLAB Function: '/Valves for Foot' */ - ValvesforFoot(0U, &rtb_out_b5); + /* MATLAB Function: '/Valves for Bi Level' */ + ValvesforBiLevel(rtb_out_dt); - /* MATLAB Function: '/Valves for Foot + Def' */ - ValvesforFootDef(0U, &rtb_out_iir); + /* MATLAB Function: '/Valves for Tri-Level' */ + ValvesforTriLevel(rtDW.valves_front_manual_target); - /* MATLAB Function: '/Valves for Bi Level' */ - ValvesforBiLevel(0U, &rtb_out_e0); - - /* MATLAB Function: '/Valves for Tri-Level' */ - ValvesforTriLevel(0U, &rtb_out_bko); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant2' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' * DataStoreRead: '/Data Store Read10' * DataStoreRead: '/Data Store Read4' * DataStoreRead: '/Data Store Read5' - * Gain: '/Gain1' - * Gain: '/Gain2' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * Sum: '/Add' + * Gain: '/Gain1' + * Gain: '/Gain2' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' + * Sum: '/Add' */ switch ((int32_t)(((uint32_t)((rtDW.FIU_FACE_FL == 1) << 1) + (uint32_t) (rtDW.FIU_DEF_FL == 1)) + (uint32_t)((rtDW.FIU_FOOT_FL == 1) << 2))) { case 0: + /* DataStoreWrite: '/Data Store Write' */ for (i = 0; i < 9; i++) { - /* Assignment: '/Присваивание в [7-8]' incorporates: - * DataStoreWrite: '/Data Store Write' - */ rtDW.valves_front_manual_target[i] = 0U; } break; case 1: + /* DataStoreWrite: '/Data Store Write' */ for (i = 0; i < 9; i++) { - /* Assignment: '/Присваивание в [7-8]' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtDW.valves_front_manual_target[i] = rtb_out_oc; + rtDW.valves_front_manual_target[i] = rtb_vals_m[i]; } break; case 2: + /* DataStoreWrite: '/Data Store Write' incorporates: + * MATLAB Function: '/Valves for Vent mode' + */ for (i = 0; i < 9; i++) { - /* Assignment: '/Присваивание в [7-8]' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtDW.valves_front_manual_target[i] = rtb_out_jn; + rtDW.valves_front_manual_target[i] = g_ausFLOW_FR_VE2VALVE[i]; } break; case 3: + /* DataStoreWrite: '/Data Store Write' */ for (i = 0; i < 9; i++) { - /* Assignment: '/Присваивание в [7-8]' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtDW.valves_front_manual_target[i] = rtb_out_pd; + rtDW.valves_front_manual_target[i] = Merge[i]; } break; case 4: + /* DataStoreWrite: '/Data Store Write' incorporates: + * MATLAB Function: '/Valves for Foot' + */ for (i = 0; i < 9; i++) { - /* Assignment: '/Присваивание в [7-8]' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtDW.valves_front_manual_target[i] = rtb_out_b5; + rtDW.valves_front_manual_target[i] = g_ausFLOW_FR_FO2VALVE[i]; } break; case 5: + /* DataStoreWrite: '/Data Store Write' */ for (i = 0; i < 9; i++) { - /* Assignment: '/Присваивание в [7-8]' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtDW.valves_front_manual_target[i] = rtb_out_iir; + rtDW.valves_front_manual_target[i] = rtb_out_pf[i]; } break; case 6: + /* DataStoreWrite: '/Data Store Write' */ for (i = 0; i < 9; i++) { - /* Assignment: '/Присваивание в [7-8]' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtDW.valves_front_manual_target[i] = rtb_out_e0; - } - break; - - default: - for (i = 0; i < 9; i++) { - /* Assignment: '/Присваивание в [7-8]' incorporates: - * DataStoreWrite: '/Data Store Write' - */ - rtDW.valves_front_manual_target[i] = rtb_out_bko; + rtDW.valves_front_manual_target[i] = rtb_out_dt[i]; } break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ - /* MATLAB Function: '/Valves for Def' */ - ValvesforDef(0U, &rtb_out_oc); + /* MATLAB Function: '/Valves for Def' */ + ValvesforDef(rtb_vals_m); - /* MATLAB Function: '/Valves for Vent mode' */ - ValvesforVentmode(0U, &rtb_out_jn); + /* MATLAB Function: '/Valves for Hi_Level' */ + /* : out = g_ausFLOW_FR_VE2VALVE; */ + ValvesforHi_Level(Merge); - /* MATLAB Function: '/Valves for Hi_Level' */ - ValvesforHi_Level(0U, &rtb_out_pd); + /* MATLAB Function: '/Valves for Foot + Def' */ + /* : out = g_ausFLOW_FR_FO2VALVE; */ + ValvesforFootDef(rtb_out_pf); - /* MATLAB Function: '/Valves for Foot' */ - ValvesforFoot(0U, &rtb_out_b5); + /* MATLAB Function: '/Valves for Bi Level' */ + ValvesforBiLevel(rtb_out_dt); - /* MATLAB Function: '/Valves for Foot + Def' */ - ValvesforFootDef(0U, &rtb_out_iir); + /* MATLAB Function: '/Valves for Tri-Level' */ + ValvesforTriLevel(rtb_out_mj); - /* MATLAB Function: '/Valves for Bi Level' */ - ValvesforBiLevel(0U, &rtb_out_e0); - - /* MATLAB Function: '/Valves for Tri-Level' */ - ValvesforTriLevel(0U, &rtb_out_bko); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant2' + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Assignment: '/Присваивание в [6] rear' + * 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' + * MATLAB Function: '/Valves for Foot' + * MATLAB Function: '/Valves for Vent mode' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' + * Sum: '/Add' */ switch ((int32_t)(((uint32_t)((rtDW.FIU_FACE_FR == 1) << 1) + (uint32_t) (rtDW.FIU_DEF_FR == 1)) + (uint32_t)((rtDW.FIU_FOOT_FR == 1) << 2))) { case 0: for (i = 0; i < 9; i++) { - rtb_vals_m[i] = 0U; + rtb_out_mj[i] = 0U; } break; case 1: for (i = 0; i < 9; i++) { - rtb_vals_m[i] = rtb_out_oc; + rtb_out_mj[i] = rtb_vals_m[i]; } break; case 2: for (i = 0; i < 9; i++) { - rtb_vals_m[i] = rtb_out_jn; + rtb_out_mj[i] = g_ausFLOW_FR_VE2VALVE[i]; } break; case 3: for (i = 0; i < 9; i++) { - rtb_vals_m[i] = rtb_out_pd; + rtb_out_mj[i] = Merge[i]; } break; case 4: for (i = 0; i < 9; i++) { - rtb_vals_m[i] = rtb_out_b5; + rtb_out_mj[i] = g_ausFLOW_FR_FO2VALVE[i]; } break; case 5: for (i = 0; i < 9; i++) { - rtb_vals_m[i] = rtb_out_iir; + rtb_out_mj[i] = rtb_out_pf[i]; } break; case 6: for (i = 0; i < 9; i++) { - rtb_vals_m[i] = rtb_out_e0; - } - break; - - default: - for (i = 0; i < 9; i++) { - rtb_vals_m[i] = rtb_out_bko; + rtb_out_mj[i] = rtb_out_dt[i]; } break; } - /* End of MultiPortSwitch: '/Multiport Switch' */ + /* End of MultiPortSwitch: '/Multiport Switch' */ - /* Assignment: '/Присваивание в [3-4]' incorporates: - * Assignment: '/Присваивание в [7-8]' - * DataStoreWrite: '/Data Store Write' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * DataStoreWrite: '/Data Store Write' */ - rtDW.valves_front_manual_target[2] = rtb_vals_m[2]; + rtDW.valves_front_manual_target[2] = rtb_out_mj[2]; - /* Assignment: '/Присваивание в [7-8]' incorporates: - * DataStoreWrite: '/Data Store Write' + /* Assignment: '/Присваивание в [7-8]' incorporates: + * DataStoreWrite: '/Data Store Write' */ - rtDW.valves_front_manual_target[6] = rtb_vals_m[6]; + rtDW.valves_front_manual_target[6] = rtb_out_mj[6]; - /* Assignment: '/Присваивание в [3-4]' incorporates: - * Assignment: '/Присваивание в [7-8]' - * DataStoreWrite: '/Data Store Write' + /* Assignment: '/Присваивание в [3-4]' incorporates: + * DataStoreWrite: '/Data Store Write' */ - rtDW.valves_front_manual_target[3] = rtb_vals_m[3]; + rtDW.valves_front_manual_target[3] = rtb_out_mj[3]; - /* Assignment: '/Присваивание в [7-8]' incorporates: - * DataStoreWrite: '/Data Store Write' + /* Assignment: '/Присваивание в [7-8]' incorporates: + * DataStoreWrite: '/Data Store Write' */ - rtDW.valves_front_manual_target[7] = rtb_vals_m[7]; + rtDW.valves_front_manual_target[7] = rtb_out_mj[7]; + } - /* MATLAB Function: '/valves for Vent mode' */ - valvesforVentmode(0U, &rtb_out_oc); + /* End of Logic: '/Logical Operator1' */ + /* End of Outputs for SubSystem: '/Subsystem' */ - /* MATLAB Function: '/AF for Foot' */ - AFforFoot_p(0U, &rtb_out_oc); + /* Outputs for Enabled SubSystem: '/Subsystem1' incorporates: + * EnablePort: '/Enable' + */ + /* Logic: '/Logical Operator2' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant4' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * RelationalOperator: '/Equal1' + * RelationalOperator: '/Equal4' + */ + if ((rtDW.FIU_MODE_RL == 1) && (rtDW.FIU_MODE_RR == 1)) { + /* MATLAB Function: '/valves for Vent mode' */ + valvesforVentmode(rtb_out_jy); - /* MATLAB Function: '/AF for Bi Level' */ - AFforBiLevel_m(0U, &rtb_out_oc); + /* MATLAB Function: '/AF for Bi Level' */ + /* : out = g_ausFLOW_RE_FO2VALVE; */ + AFforBiLevel_m(rtb_out_jy); - /* MATLAB Function: '/valves for Vent mode' */ - valvesforVentmode(0U, &rtb_out_oc); + /* MATLAB Function: '/valves for Vent mode' */ + valvesforVentmode(rtb_out_jy); - /* MATLAB Function: '/AF for Foot' */ - AFforFoot_p(0U, &rtb_out_oc); + /* MATLAB Function: '/AF for Bi Level' */ + /* : out = g_ausFLOW_RE_FO2VALVE; */ + AFforBiLevel_m(rtb_out_jy); + } - /* MATLAB Function: '/AF for Bi Level' */ - AFforBiLevel_m(0U, &rtb_out_oc); + /* End of Logic: '/Logical Operator2' */ + /* End of Outputs for SubSystem: '/Subsystem1' */ - /* MATLAB Function: '/AF for Vent mode' incorporates: + /* Outputs for Enabled SubSystem: '/Subsystem' incorporates: + * EnablePort: '/Enable' + */ + /* Logic: '/Logical Operator1' incorporates: + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read11' + * DataStoreRead: '/Data Store Read12' + * RelationalOperator: '/Equal2' + * RelationalOperator: '/Equal3' + */ + if ((rtDW.FIU_MODE_FL == 1) && (rtDW.FIU_MODE_FR == 1)) { + /* MATLAB Function: '/AF for Def' incorporates: * DataStoreRead: '/Data Store Read11' */ - AFforVentmode(rtDW.FIU_BLOWERS_FL, &rtb_out_oc); + AFforDef(rtDW.FIU_BLOWERS_FL, &rtb_out_lw); - /* MATLAB Function: '/AF for Bi Level' incorporates: + /* MATLAB Function: '/AF for Vent mode' incorporates: * DataStoreRead: '/Data Store Read11' */ - AFforBiLevel(rtDW.FIU_BLOWERS_FL, &rtb_out_jn); + AFforVentmode(rtDW.FIU_BLOWERS_FL, &rtb_out_le); - /* MATLAB Function: '/AF for Foot' incorporates: + /* MATLAB Function: '/AF for Hi_Level' incorporates: * DataStoreRead: '/Data Store Read11' */ - AFforFoot(rtDW.FIU_BLOWERS_FL, &rtb_out_pd); + AFforHi_Level(rtDW.FIU_BLOWERS_FL, &rtb_out_j); - /* MATLAB Function: '/AF for Foor + Def' incorporates: + /* MATLAB Function: '/AF for Foot' incorporates: * DataStoreRead: '/Data Store Read11' */ - AFforFoorDef(rtDW.FIU_BLOWERS_FL, &rtb_out_b5); + AFforFoot(rtDW.FIU_BLOWERS_FL, &rtb_out_gz3); - /* MATLAB Function: '/AF for Def' incorporates: + /* MATLAB Function: '/AF for Foor + Def' incorporates: * DataStoreRead: '/Data Store Read11' */ - AFforDef(rtDW.FIU_BLOWERS_FL, &rtb_out_iir); + AFforFoorDef(rtDW.FIU_BLOWERS_FL, &rtb_out_jv); - /* MATLAB Function: '/AF for Hi_Level' incorporates: + /* MATLAB Function: '/AF for Bi Level' incorporates: * DataStoreRead: '/Data Store Read11' */ - AFforHi_Level(rtDW.FIU_BLOWERS_FL, &rtb_out_e0); + AFforBiLevel(rtDW.FIU_BLOWERS_FL, &rtb_out_m4); - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant2' - * Constant: '/Constant3' + /* MATLAB Function: '/AF for Tri-Level' incorporates: + * DataStoreRead: '/Data Store Read11' + */ + AFforTriLevel(rtDW.FIU_BLOWERS_FL, &rtb_out_b); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' * DataStoreRead: '/Data Store Read6' * DataStoreRead: '/Data Store Read8' * DataStoreRead: '/Data Store Read9' - * 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.FIU_FACE_FL == 1) << 1) + (uint32_t) (rtDW.FIU_DEF_FL == 1)) + (uint32_t)((rtDW.FIU_FOOT_FL == 1) << 2))) { case 0: - rtb_out_oc = 0U; + rtb_out_b = 0U; break; case 1: + rtb_out_b = rtb_out_lw; break; case 2: - rtb_out_oc = rtb_out_jn; + rtb_out_b = rtb_out_le; break; case 3: - rtb_out_oc = rtb_out_pd; + rtb_out_b = rtb_out_j; break; case 4: - rtb_out_oc = rtb_out_b5; + rtb_out_b = rtb_out_gz3; break; case 5: - rtb_out_oc = rtb_out_iir; + rtb_out_b = rtb_out_jv; break; case 6: - rtb_out_oc = rtb_out_e0; - break; - - default: - rtb_out_oc = 0U; - break; - } - - /* End of MultiPortSwitch: '/Multiport Switch' */ - - /* MATLAB Function: '/AF for Vent mode' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - AFforVentmode(rtDW.FIU_BLOWERS_FR, &rtb_out_pd); - - /* MATLAB Function: '/AF for Bi Level' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - AFforBiLevel(rtDW.FIU_BLOWERS_FR, &rtb_out_b5); - - /* MATLAB Function: '/AF for Foot' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - AFforFoot(rtDW.FIU_BLOWERS_FR, &rtb_out_iir); - - /* MATLAB Function: '/AF for Foor + Def' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - AFforFoorDef(rtDW.FIU_BLOWERS_FR, &rtb_out_e0); - - /* MATLAB Function: '/AF for Def' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - AFforDef(rtDW.FIU_BLOWERS_FR, &rtb_out_bko); - - /* MATLAB Function: '/AF for Hi_Level' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - AFforHi_Level(rtDW.FIU_BLOWERS_FR, &rtb_out_h); - - /* MATLAB Function: '/AF for Tri-Level' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - AFforTriLevel(rtDW.FIU_BLOWERS_FR, &rtb_out_jn); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant' - * Constant: '/Constant1' - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read12' - * DataStoreRead: '/Data Store Read13' - * DataStoreRead: '/Data Store Read14' - * Gain: '/Gain1' - * Gain: '/Gain2' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * Sum: '/Add' - */ - switch ((int32_t)(((uint32_t)((rtDW.FIU_FACE_FR == 1) << 1) + (uint32_t) - (rtDW.FIU_DEF_FR == 1)) + (uint32_t)((rtDW.FIU_FOOT_FR == - 1) << 2))) { - case 0: - rtb_out_jn = 0U; - break; - - case 1: - rtb_out_jn = rtb_out_pd; - break; - - case 2: - rtb_out_jn = rtb_out_b5; - break; - - case 3: - rtb_out_jn = rtb_out_iir; - break; - - case 4: - rtb_out_jn = rtb_out_e0; - break; - - case 5: - rtb_out_jn = rtb_out_bko; - break; - - case 6: - rtb_out_jn = rtb_out_h; - break; - } - - /* End of MultiPortSwitch: '/Multiport Switch' */ - - /* DataTypeConversion: '/Data Type Conversion1' incorporates: - * Constant: '/Constant' - * DataStoreWrite: '/Data Store Write' - * Product: '/Divide' - * Sum: '/Add' - */ - rtDW.PWM_front = (uint8_t)((double)(uint16_t)((uint32_t)rtb_out_oc + - rtb_out_jn) / 4.0); - - /* DataTypeConversion: '/Data Type Conversion3' incorporates: - * DataStoreWrite: '/Data Store Write2' - */ - rtDW.Blower_AF_FL = (uint8_t)rtb_out_oc; - - /* DataTypeConversion: '/Data Type Conversion2' incorporates: - * DataStoreWrite: '/Data Store Write3' - */ - rtDW.Blower_AF_FR = (uint8_t)rtb_out_jn; - - /* MATLAB Function: '/AF for Vent mode R' incorporates: - * DataStoreRead: '/Data Store Read18' - */ - AFforVentmodeR(rtDW.FIU_FACE_RL, &rtb_out_jn); - - /* MATLAB Function: '/AF for Bi Level R' incorporates: - * DataStoreRead: '/Data Store Read18' - */ - AFforBiLevelR(rtDW.FIU_FACE_RL, &rtb_out_pd); - - /* MATLAB Function: '/AF for Foot R' incorporates: - * DataStoreRead: '/Data Store Read18' - */ - AFforFootR(rtDW.FIU_FACE_RL, &rtb_out_oc); - - /* MultiPortSwitch: '/Multiport Switch' incorporates: - * Constant: '/Constant1' - * Constant: '/Constant2' - * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read19' - * DataStoreRead: '/Data Store Read20' - * Gain: '/Gain2' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * Sum: '/Add' - */ - switch ((int32_t)((uint32_t)((rtDW.FIU_BLOWERS_RL == 1) << 1) + (uint32_t) - (rtDW.FIU_FOOT_RL == 1))) { - case 0: - rtb_out_oc = 0U; - break; - - case 1: - rtb_out_oc = rtb_out_jn; - break; - - case 2: - rtb_out_oc = rtb_out_pd; + rtb_out_b = rtb_out_m4; break; } /* End of MultiPortSwitch: '/Multiport Switch' */ - /* MATLAB Function: '/AF for Vent mode R' incorporates: - * DataStoreRead: '/Data Store Read15' + /* MATLAB Function: '/AF for Def' incorporates: + * DataStoreRead: '/Data Store Read7' */ - AFforVentmodeR(rtDW.FIU_BLOWERS_RR, &rtb_out_pd); + AFforDef(rtDW.FIU_BLOWERS_FR, &rtb_out_le); - /* MATLAB Function: '/AF for Bi Level R' incorporates: - * DataStoreRead: '/Data Store Read15' + /* MATLAB Function: '/AF for Vent mode' incorporates: + * DataStoreRead: '/Data Store Read7' */ - AFforBiLevelR(rtDW.FIU_BLOWERS_RR, &rtb_out_b5); + AFforVentmode(rtDW.FIU_BLOWERS_FR, &rtb_out_j); - /* MATLAB Function: '/AF for Foot R' incorporates: - * DataStoreRead: '/Data Store Read15' + /* MATLAB Function: '/AF for Hi_Level' incorporates: + * DataStoreRead: '/Data Store Read7' */ - AFforFootR(rtDW.FIU_BLOWERS_RR, &rtb_out_jn); + AFforHi_Level(rtDW.FIU_BLOWERS_FR, &rtb_out_gz3); + + /* MATLAB Function: '/AF for Foot' incorporates: + * DataStoreRead: '/Data Store Read7' + */ + AFforFoot(rtDW.FIU_BLOWERS_FR, &rtb_out_jv); + + /* MATLAB Function: '/AF for Foor + Def' incorporates: + * DataStoreRead: '/Data Store Read7' + */ + AFforFoorDef(rtDW.FIU_BLOWERS_FR, &rtb_out_m4); + + /* MATLAB Function: '/AF for Bi Level' incorporates: + * DataStoreRead: '/Data Store Read7' + */ + AFforBiLevel(rtDW.FIU_BLOWERS_FR, &rtb_out_lef); + + /* MATLAB Function: '/AF for Tri-Level' incorporates: + * DataStoreRead: '/Data Store Read7' + */ + AFforTriLevel(rtDW.FIU_BLOWERS_FR, &rtb_out_lw); /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant' * Constant: '/Constant1' * Constant: '/Constant2' * Constant: '/Constant3' - * DataStoreRead: '/Data Store Read16' - * DataStoreRead: '/Data Store Read17' + * DataStoreRead: '/Data Store Read12' + * DataStoreRead: '/Data Store Read13' + * DataStoreRead: '/Data Store Read14' + * Gain: '/Gain1' * Gain: '/Gain2' + * RelationalOperator: '/Relational Operator' * RelationalOperator: '/Relational Operator1' * RelationalOperator: '/Relational Operator2' * Sum: '/Add' */ - switch ((int32_t)((uint32_t)((rtDW.FIU_FOOT_RR == 1) << 1) + (uint32_t) - (rtDW.FIU_FACE_RR == 1))) { + switch ((int32_t)(((uint32_t)((rtDW.FIU_FACE_FR == 1) << 1) + (uint32_t) + (rtDW.FIU_DEF_FR == 1)) + (uint32_t)((rtDW.FIU_FOOT_FR == + 1) << 2))) { case 0: - rtb_out_jn = 0U; + rtb_out_lw = 0U; break; case 1: - rtb_out_jn = rtb_out_pd; + rtb_out_lw = rtb_out_le; break; case 2: - rtb_out_jn = rtb_out_b5; + rtb_out_lw = rtb_out_j; + break; + + case 3: + rtb_out_lw = rtb_out_gz3; + break; + + case 4: + rtb_out_lw = rtb_out_jv; + break; + + case 5: + rtb_out_lw = rtb_out_m4; + break; + + case 6: + rtb_out_lw = rtb_out_lef; break; } /* End of MultiPortSwitch: '/Multiport Switch' */ - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * Constant: '/Constant1' - * DataStoreWrite: '/Data Store Write1' - * Product: '/Divide1' - * Sum: '/Add1' + /* DataTypeConversion: '/Data Type Conversion1' incorporates: + * Constant: '/Constant' + * DataStoreWrite: '/Data Store Write' + * Product: '/Divide' + * Sum: '/Add' */ - rtDW.PWM_rear = (uint8_t)((double)(uint16_t)((uint32_t)rtb_out_oc + - rtb_out_jn) / 4.0); + rtDW.PWM_front = (uint8_t)((double)(uint16_t)((uint32_t)rtb_out_b + + rtb_out_lw) / 4.0); - /* DataTypeConversion: '/Data Type Conversion4' incorporates: - * DataStoreWrite: '/Data Store Write4' + /* DataTypeConversion: '/Data Type Conversion3' incorporates: + * DataStoreWrite: '/Data Store Write2' */ - rtDW.Blower_AF_RL = (uint8_t)rtb_out_oc; + rtDW.Blower_AF_FL = (uint8_t)rtb_out_b; - /* DataTypeConversion: '/Data Type Conversion5' incorporates: - * DataStoreWrite: '/Data Store Write5' + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * DataStoreWrite: '/Data Store Write3' */ - rtDW.Blower_AF_RR = (uint8_t)rtb_out_jn; + rtDW.Blower_AF_FR = (uint8_t)rtb_out_lw; - /* MATLAB Function: '/Write' incorporates: - * DataStoreWrite: '/Data Store Write' + /* MATLAB Function: '/Write' incorporates: + * DataStoreWrite: '/Data Store Write' */ /* : fprintf('pwmFront_output = %u \n',data); */ printf("pwmFront_output = %u \n", rtDW.PWM_front); fflush(stdout); - /* MATLAB Function: '/Write2' incorporates: + /* MATLAB Function: '/Write2' incorporates: * DataStoreRead: '/Data Store Read11' */ /* : fprintf('speedL_input = %u \n',data); */ printf("speedL_input = %u \n", rtDW.FIU_BLOWERS_FL); fflush(stdout); + } - /* MATLAB Function: '/AF for Tri-Level' incorporates: - * DataStoreRead: '/Data Store Read11' + /* End of Logic: '/Logical Operator1' */ + /* End of Outputs for SubSystem: '/Subsystem' */ + + /* Outputs for Enabled SubSystem: '/Subsystem1' incorporates: + * EnablePort: '/Enable' + */ + /* Logic: '/Logical Operator2' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant4' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * RelationalOperator: '/Equal1' + * RelationalOperator: '/Equal4' + */ + if ((rtDW.FIU_MODE_RL == 1) && (rtDW.FIU_MODE_RR == 1)) { + /* MATLAB Function: '/AF for Vent mode R' incorporates: + * DataStoreRead: '/Data Store Read18' */ - AFforTriLevel(rtDW.FIU_BLOWERS_FL, &rtb_out_oc); + AFforVentmodeR(rtDW.FIU_BLOWERS_RL, &rtb_out_lw); - /* MATLAB Function: '/Write1' incorporates: - * DataStoreWrite: '/Data Store Write1' + /* MATLAB Function: '/AF for Foot R' incorporates: + * DataStoreRead: '/Data Store Read18' + */ + AFforFootR(rtDW.FIU_BLOWERS_RL, &rtb_out_le); + + /* MATLAB Function: '/AF for Bi Level R' incorporates: + * DataStoreRead: '/Data Store Read18' + */ + AFforBiLevelR(rtDW.FIU_BLOWERS_RL, &rtb_out_b); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read19' + * DataStoreRead: '/Data Store Read20' + * Gain: '/Gain2' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' + * Sum: '/Add' + */ + switch ((int32_t)((uint32_t)((rtDW.FIU_FOOT_RL == 1) << 1) + (uint32_t) + (rtDW.FIU_FACE_RL == 1))) { + case 0: + rtb_out_b = 0U; + break; + + case 1: + rtb_out_b = rtb_out_lw; + break; + + case 2: + rtb_out_b = rtb_out_le; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch' */ + + /* MATLAB Function: '/AF for Vent mode R' incorporates: + * DataStoreRead: '/Data Store Read15' + */ + AFforVentmodeR(rtDW.FIU_BLOWERS_RR, &rtb_out_le); + + /* MATLAB Function: '/AF for Foot R' incorporates: + * DataStoreRead: '/Data Store Read15' + */ + AFforFootR(rtDW.FIU_BLOWERS_RR, &rtb_out_j); + + /* MATLAB Function: '/AF for Bi Level R' incorporates: + * DataStoreRead: '/Data Store Read15' + */ + AFforBiLevelR(rtDW.FIU_BLOWERS_RR, &rtb_out_lw); + + /* MultiPortSwitch: '/Multiport Switch' incorporates: + * Constant: '/Constant1' + * Constant: '/Constant2' + * Constant: '/Constant3' + * DataStoreRead: '/Data Store Read16' + * DataStoreRead: '/Data Store Read17' + * Gain: '/Gain2' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' + * Sum: '/Add' + */ + switch ((int32_t)((uint32_t)((rtDW.FIU_FOOT_RR == 1) << 1) + (uint32_t) + (rtDW.FIU_FACE_RR == 1))) { + case 0: + rtb_out_lw = 0U; + break; + + case 1: + rtb_out_lw = rtb_out_le; + break; + + case 2: + rtb_out_lw = rtb_out_j; + break; + } + + /* End of MultiPortSwitch: '/Multiport Switch' */ + + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * Constant: '/Constant1' + * DataStoreWrite: '/Data Store Write1' + * Product: '/Divide1' + * Sum: '/Add1' + */ + rtDW.PWM_rear = (uint8_t)((double)(uint16_t)((uint32_t)rtb_out_b + + rtb_out_lw) / 4.0); + + /* DataTypeConversion: '/Data Type Conversion4' incorporates: + * DataStoreWrite: '/Data Store Write4' + */ + rtDW.Blower_AF_RL = (uint8_t)rtb_out_b; + + /* DataTypeConversion: '/Data Type Conversion5' incorporates: + * DataStoreWrite: '/Data Store Write5' + */ + rtDW.Blower_AF_RR = (uint8_t)rtb_out_lw; + + /* MATLAB Function: '/Write1' incorporates: + * DataStoreWrite: '/Data Store Write1' */ /* : fprintf('pwmRear_output = %u \n',data); */ printf("pwmRear_output = %u \n", rtDW.PWM_rear); fflush(stdout); } - /* End of Logic: '/Logical Operator1' */ + /* End of Logic: '/Logical Operator2' */ + /* End of Outputs for SubSystem: '/Subsystem1' */ /* End of Outputs for SubSystem: '/PWM and valves in manual1' */ /* If: '/если SC front не завершен' incorporates: @@ -13693,1520 +13804,842 @@ void HVAC_model_step(void) if ((rtDW.start_control_finished_front == 0) && (rtDW.SKIPPED_FIRST_SIMULATION_STEP == 0.0)) { /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write' incorporates: - * Constant: '/Constant' + /* DataStoreWrite: '/Data Store Write' incorporates: + * Constant: '/Constant' */ rtDW.SKIPPED_FIRST_SIMULATION_STEP = 1.0; /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else if (rtDW.start_control_finished_front == 0) { /* Outputs for IfAction SubSystem: '/Start Control Front' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read' + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' */ switch (rtDW.step_start_controle_front) { case -1: - /* Outputs for IfAction SubSystem: '/Step -1 F (Entry Condition)' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Step -1 F (Entry Condition)' incorporates: + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' incorporates: + /* SwitchCase: '/Switch Case' incorporates: * DataStoreWrite: '/Data Store Write' */ switch (rtB.Merge_b) { case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 0' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' */ + /* MATLAB Function: '/g_assSTART_ENTER_INCAR' */ g_assSTART_ENTER_INCAR_j(rtB.Merge_b, &Eva_F); - /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' */ + /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' */ /* : out = g_ausSTART_ENTER_SETTEMP(LVL+1); */ - y = (int32_t)(rtB.Merge_b + 1U); + i = (int32_t)(rtB.Merge_b + 1U); if (rtB.Merge_b + 1U > 255U) { - y = 255; + i = 255; } - /* Switch: '/Switch' incorporates: - * Constant: '/AUTO' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * Logic: '/AND' - * MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' + /* Switch: '/Switch' incorporates: + * Constant: '/AUTO' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * Logic: '/AND' + * MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' */ if ((Incar_FL > Eva_F) && (rtDW.MODE_DRIVER == 1.0) && (rtDW.FIU_SET_FL < - g_ausSTART_ENTER_SETTEMP[y - 1])) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + g_ausSTART_ENTER_SETTEMP[i - 1])) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_ho = 0; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' */ rtB.Merge_ho = -1; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 0' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Level 0' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 1' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' */ + /* MATLAB Function: '/g_assSTART_ENTER_INCAR' */ g_assSTART_ENTER_INCAR_j(rtB.Merge_b, &Eva_F); - /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' */ + /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' */ /* : out = int16(g_ausSTART_ENTER_SETTEMP(LVL+1)); */ - y = (int32_t)(rtB.Merge_b + 1U); + i = (int32_t)(rtB.Merge_b + 1U); if (rtB.Merge_b + 1U > 255U) { - y = 255; + i = 255; } - rtb_out_oc = g_ausSTART_ENTER_SETTEMP[y - 1]; - if (rtb_out_oc > 32767) { - rtb_out_oc = 32767U; + rtb_out_b = g_ausSTART_ENTER_SETTEMP[i - 1]; + if (rtb_out_b > 32767) { + rtb_out_b = 32767U; } - /* Switch: '/Switch' incorporates: - * Constant: '/AUTO' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * Logic: '/AND' - * MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' + /* Switch: '/Switch' incorporates: + * Constant: '/AUTO' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * Logic: '/AND' + * MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' */ if ((Incar_FL > Eva_F) && (rtDW.MODE_DRIVER == 1.0) && (rtDW.FIU_SET_FL < - rtb_out_oc)) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + rtb_out_b)) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_ho = 0; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' */ rtB.Merge_ho = -1; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 1' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Level 1' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 2' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * SignalConversion generated from: '/step' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * SignalConversion generated from: '/step' */ rtB.Merge_ho = 0; - /* End of Outputs for SubSystem: '/Level 2' */ + /* End of Outputs for SubSystem: '/Level 2' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 3' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/g_assSTART_ENTER_COOLANT ' */ + /* MATLAB Function: '/g_assSTART_ENTER_COOLANT ' */ g_assSTART_ENTER_COOLANT_p(rtB.Merge_b, &Incar_FL); - /* Switch: '/Switch' incorporates: - * Constant: '/AUTO' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * Logic: '/AND' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator2' + /* Switch: '/Switch' incorporates: + * Constant: '/AUTO' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * Logic: '/AND' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator2' */ if ((rtDW.ECT < Incar_FL) && (rtDW.MODE_DRIVER == 1.0)) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_ho = 0; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' */ rtB.Merge_ho = -1; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 3' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Level 3' */ break; case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 4' incorporates: + * ActionPort: '/Action Port' */ Level4(&rtB.Merge_ho, &rtDW.ECT, &rtB.Merge_b, &rtDW.MODE_DRIVER); - /* End of Outputs for SubSystem: '/Level 4' */ + /* End of Outputs for SubSystem: '/Level 4' */ break; case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 5' incorporates: + * ActionPort: '/Action Port' */ Level4(&rtB.Merge_ho, &rtDW.ECT, &rtB.Merge_b, &rtDW.MODE_DRIVER); - /* End of Outputs for SubSystem: '/Level 5' */ + /* End of Outputs for SubSystem: '/Level 5' */ break; } - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step -1 F (Entry Condition)' */ + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/Step -1 F (Entry Condition)' */ break; case 0: - /* Outputs for IfAction SubSystem: '/Step 0 F' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Step 0 F' incorporates: + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' incorporates: + /* SwitchCase: '/Switch Case' incorporates: * DataStoreWrite: '/Data Store Write' */ switch (rtB.Merge_b) { case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 0' incorporates: + * ActionPort: '/Action Port' */ Level0(&rtB.Merge_ho); - /* End of Outputs for SubSystem: '/Level 0' */ + /* End of Outputs for SubSystem: '/Level 0' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 1' incorporates: + * ActionPort: '/Action Port' */ Level0(&rtB.Merge_ho); - /* End of Outputs for SubSystem: '/Level 1' */ + /* End of Outputs for SubSystem: '/Level 1' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 2' incorporates: + * ActionPort: '/Action Port' */ Level0(&rtB.Merge_ho); - /* End of Outputs for SubSystem: '/Level 2' */ + /* End of Outputs for SubSystem: '/Level 2' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 3' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Blower_FL = 20U; - /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant5' + /* DataStoreWrite: '/Data Store Write11' incorporates: + * Constant: '/Constant5' */ rtDW.Dtg_FUL = 60U; - /* DataStoreWrite: '/Data Store Write13' incorporates: - * Constant: '/Constant7' + /* DataStoreWrite: '/Data Store Write13' incorporates: + * Constant: '/Constant7' */ rtDW.Dtg_FLL = 80U; - /* DataStoreWrite: '/Data Store Write' incorporates: - * MATLAB Function: '/incar filter up' + /* DataStoreWrite: '/Data Store Write' incorporates: + * MATLAB Function: '/incar filter up' */ - incarfilterup(rtB.Merge_b, &rtb_Gain_ge); + incarfilterup(rtB.Merge_b, &rtb_Gain_l); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * MATLAB Function: '/incar filter down' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * MATLAB Function: '/incar filter down' */ incarfilterdown(rtB.Merge_b, &rtb_Gain2_hu); - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Mode - def' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Mode - def' */ rtDW.Mode_FL = 80U; - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Constant: '/Recirc logic Partial REC' */ rtb_Divide1 = 1.0; - /* DataStoreWrite: '/Data Store Write8' incorporates: - * Constant: '/Valve open' + /* DataStoreWrite: '/Data Store Write8' incorporates: + * Constant: '/Valve open' */ rtb_u_cuz = 1U; - /* DataStoreWrite: '/Data Store Write9' incorporates: - * Constant: '/Valve open' + /* DataStoreWrite: '/Data Store Write9' incorporates: + * Constant: '/Valve open' */ Valve_2_way = 1U; - /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' */ + /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' */ /* : out = int16(g_assSTART_COOLANT_STEP0_TO_1(LVL + 1 - 2)); */ - y = (int32_t)(rtB.Merge_b + 1U); + i = (int32_t)(rtB.Merge_b + 1U); if (rtB.Merge_b + 1U > 255U) { - y = 255; + i = 255; } - rtb_dt_fa = (uint32_t)y - 2U; - if ((uint32_t)y - 2U > (uint32_t)y) { + rtb_dt_fa = (uint32_t)i - 2U; + if ((uint32_t)i - 2U > (uint32_t)i) { rtb_dt_fa = 0U; } - /* Merge: '/Merge' incorporates: - * DataStoreRead: '/Engine coolant temp' - * MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' + /* Merge: '/Merge' incorporates: + * DataStoreRead: '/Engine coolant temp' + * MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch' */ rtB.Merge_ho = (int8_t)(rtDW.ECT > g_assSTART_COOLANT_STEP0_TO_1 [(int32_t)rtb_dt_fa - 1]); - /* End of Outputs for SubSystem: '/Level 3' */ + /* End of Outputs for SubSystem: '/Level 3' */ break; case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 4' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Blower_FL = 20U; - /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant5' + /* DataStoreWrite: '/Data Store Write11' incorporates: + * Constant: '/Constant5' */ rtDW.Dtg_FUL = 60U; - /* DataStoreWrite: '/Data Store Write13' incorporates: - * Constant: '/Constant7' + /* DataStoreWrite: '/Data Store Write13' incorporates: + * Constant: '/Constant7' */ rtDW.Dtg_FLL = 80U; - /* DataStoreWrite: '/Data Store Write' incorporates: - * MATLAB Function: '/incar filter up' + /* DataStoreWrite: '/Data Store Write' incorporates: + * MATLAB Function: '/incar filter up' */ - incarfilterup(rtB.Merge_b, &rtb_Gain_ge); + incarfilterup(rtB.Merge_b, &rtb_Gain_l); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * MATLAB Function: '/incar filter down' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * MATLAB Function: '/incar filter down' */ incarfilterdown(rtB.Merge_b, &rtb_Gain2_hu); - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Mode - def' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Mode - def' */ rtDW.Mode_FL = 80U; - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Constant: '/Recirc logic Partial REC' */ rtb_Divide1 = 1.0; - /* DataStoreWrite: '/Data Store Write8' incorporates: - * Constant: '/Valve open' + /* DataStoreWrite: '/Data Store Write8' incorporates: + * Constant: '/Valve open' */ rtb_u_cuz = 1U; - /* DataStoreWrite: '/Data Store Write9' incorporates: - * Constant: '/Valve open' + /* DataStoreWrite: '/Data Store Write9' incorporates: + * Constant: '/Valve open' */ Valve_2_way = 1U; - /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' */ + /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' */ g_assSTART_COOLANT_STEP0_TO_1_h(rtB.Merge_b, &Incar_FL); - /* Merge: '/Merge' incorporates: - * DataStoreRead: '/Engine coolant temp' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' + /* Merge: '/Merge' incorporates: + * DataStoreRead: '/Engine coolant temp' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch' */ rtB.Merge_ho = (int8_t)(rtDW.ECT > Incar_FL); - /* End of Outputs for SubSystem: '/Level 4' */ + /* End of Outputs for SubSystem: '/Level 4' */ break; case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 5' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant3' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant3' */ rtDW.Blower_FL = 20U; - /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant5' + /* DataStoreWrite: '/Data Store Write11' incorporates: + * Constant: '/Constant5' */ rtDW.Dtg_FUL = 80U; - /* DataStoreWrite: '/Data Store Write13' incorporates: - * Constant: '/Constant7' + /* DataStoreWrite: '/Data Store Write13' incorporates: + * Constant: '/Constant7' */ rtDW.Dtg_FLL = 80U; - /* DataStoreWrite: '/Data Store Write' incorporates: - * MATLAB Function: '/incar filter up' + /* DataStoreWrite: '/Data Store Write' incorporates: + * MATLAB Function: '/incar filter up' */ - incarfilterup(rtB.Merge_b, &rtb_Gain_ge); + incarfilterup(rtB.Merge_b, &rtb_Gain_l); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * MATLAB Function: '/incar filter down' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * MATLAB Function: '/incar filter down' */ incarfilterdown(rtB.Merge_b, &rtb_Gain2_hu); - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Mode - def' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Mode - def' */ rtDW.Mode_FL = 80U; - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Constant: '/Recirc logic Partial REC' */ rtb_Divide1 = 1.0; - /* DataStoreWrite: '/Data Store Write8' incorporates: - * Constant: '/Valve open' + /* DataStoreWrite: '/Data Store Write8' incorporates: + * Constant: '/Valve open' */ rtb_u_cuz = 1U; - /* DataStoreWrite: '/Data Store Write9' incorporates: - * Constant: '/Valve open' + /* DataStoreWrite: '/Data Store Write9' incorporates: + * Constant: '/Valve open' */ Valve_2_way = 1U; - /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' */ + /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' */ g_assSTART_COOLANT_STEP0_TO_1_h(rtB.Merge_b, &Incar_FL); - /* Merge: '/Merge' incorporates: - * DataStoreRead: '/Engine coolant temp' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' + /* Merge: '/Merge' incorporates: + * DataStoreRead: '/Engine coolant temp' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch' */ rtB.Merge_ho = (int8_t)(rtDW.ECT > Incar_FL); - /* End of Outputs for SubSystem: '/Level 5' */ + /* End of Outputs for SubSystem: '/Level 5' */ break; } - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step 0 F' */ + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/Step 0 F' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Step 1 F' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Step 1 F' incorporates: + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' incorporates: + /* SwitchCase: '/Switch Case' incorporates: * DataStoreWrite: '/Data Store Write' */ switch (rtB.Merge_b) { case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 0' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write8' incorporates: - * MATLAB Function: '/3 way valve status' + /* DataStoreWrite: '/Data Store Write8' incorporates: + * MATLAB Function: '/3 way valve status' */ uwayvalvestatus(rtB.Merge_b, &rtb_u_cuz); - /* DataStoreWrite: '/Data Store Write' incorporates: - * MATLAB Function: '/incar filter up' + /* DataStoreWrite: '/Data Store Write' incorporates: + * MATLAB Function: '/incar filter up' */ - incarfilterup(rtB.Merge_b, &rtb_Gain_ge); + incarfilterup(rtB.Merge_b, &rtb_Gain_l); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * MATLAB Function: '/incar filter down' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * MATLAB Function: '/incar filter down' */ incarfilterdown(rtB.Merge_b, &rtb_Gain2_hu); - /* DataStoreWrite: '/Data Store Write3' incorporates: - * MATLAB Function: '/mode FR step 1' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * MATLAB Function: '/mode FR step 1' */ modeFRstep1(rtB.Merge_b, &rtDW.Mode_FL); - /* DataStoreWrite: '/Data Store Write11' incorporates: - * MATLAB Function: '/window heating' + /* DataStoreWrite: '/Data Store Write11' incorporates: + * MATLAB Function: '/window heating' */ windowheating(rtB.Merge_b, &rtDW.Dtg_FUL); - /* DataStoreWrite: '/Data Store Write6' incorporates: - * MATLAB Function: '/blower FR' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * MATLAB Function: '/blower FR' */ blowerFR(rtB.Merge_b, &rtDW.Blower_FL); - /* DataStoreWrite: '/Data Store Write11' incorporates: - * MATLAB Function: '/Dtg_FrontUpper_X' + /* DataStoreWrite: '/Data Store Write11' incorporates: + * MATLAB Function: '/Dtg_FrontUpper_X' */ Dtg_FrontUpper_X(rtB.Merge_b, &rtDW.Dtg_FUL); - /* DataStoreWrite: '/Data Store Write13' incorporates: - * MATLAB Function: '/Dtg_FrontLower_X' + /* DataStoreWrite: '/Data Store Write13' incorporates: + * MATLAB Function: '/Dtg_FrontLower_X' */ Dtg_FrontLower_X(rtB.Merge_b, &rtDW.Dtg_FLL); - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Constant: '/Recirc logic Partial REC' */ rtb_Divide1 = 1.0; - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' */ rtb_LogicalOperator1 = (rtDW.step_start_controle_front == 1); - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' */ + /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' */ Incartempgotofromstep1tostep2(rtB.Merge_b, &Eva_F); - /* MATLAB Function: '/Time goto from step 1 to step 2 ' */ + /* MATLAB Function: '/Time goto from step 1 to step 2 ' */ /* : out = int16(g_ausSTART_TIME_STEP1_TO_2(LVL + 1)); */ - y = (int32_t)(rtB.Merge_b + 1U); + i = (int32_t)(rtB.Merge_b + 1U); if (rtB.Merge_b + 1U > 255U) { - y = 255; + i = 255; } - rtb_out_oc = g_ausSTART_TIME_STEP1_TO_2[y - 1]; - if (rtb_out_oc > 32767) { - rtb_out_oc = 32767U; + rtb_out_b = g_ausSTART_TIME_STEP1_TO_2[i - 1]; + if (rtb_out_b > 32767) { + rtb_out_b = 32767U; } - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/incar temp' - * DataStoreRead: '/Data Store Read4' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * MATLAB Function: '/Time goto from step 1 to step 2 ' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/incar temp' + * DataStoreRead: '/Data Store Read4' + * Gain: '/из сек в мс' + * Logic: '/Logical Operator' + * MATLAB Function: '/Time goto from step 1 to step 2 ' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' */ if ((Incar_FL < Eva_F) || (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_pd > (uint16_t)(1000 * rtb_out_oc))) + rtDW.t_start_delay_private_DSTATE_pd > (uint16_t)(1000 * rtb_out_b))) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - * SignalConversion generated from: '/step' + /* Merge: '/Merge' incorporates: + * Constant: '/go to next step' + * SignalConversion generated from: '/step' */ rtB.Merge_ho = 2; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step 1' - * SignalConversion generated from: '/step' + /* Merge: '/Merge' incorporates: + * Constant: '/stay at step 1' + * SignalConversion generated from: '/step' */ rtB.Merge_ho = 1; } - /* 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_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_gx)) { rtDW.t_start_delay_private_DSTATE_pd = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_gx = rtb_LogicalOperator1; - /* End of Outputs for SubSystem: '/Level 0' */ + /* End of Outputs for SubSystem: '/Level 0' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 1' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write8' incorporates: - * MATLAB Function: '/3 way valve status' + /* DataStoreWrite: '/Data Store Write8' incorporates: + * MATLAB Function: '/3 way valve status' */ uwayvalvestatus(rtB.Merge_b, &rtb_u_cuz); - /* DataStoreWrite: '/Data Store Write' incorporates: - * MATLAB Function: '/incar filter up' + /* DataStoreWrite: '/Data Store Write' incorporates: + * MATLAB Function: '/incar filter up' */ - incarfilterup(rtB.Merge_b, &rtb_Gain_ge); + incarfilterup(rtB.Merge_b, &rtb_Gain_l); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * MATLAB Function: '/incar filter down' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * MATLAB Function: '/incar filter down' */ incarfilterdown(rtB.Merge_b, &rtb_Gain2_hu); - /* DataStoreWrite: '/Data Store Write3' incorporates: - * MATLAB Function: '/mode FR step 1' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * MATLAB Function: '/mode FR step 1' */ modeFRstep1(rtB.Merge_b, &rtDW.Mode_FL); - /* DataStoreWrite: '/Data Store Write11' incorporates: - * MATLAB Function: '/window heating' + /* DataStoreWrite: '/Data Store Write11' incorporates: + * MATLAB Function: '/window heating' */ windowheating(rtB.Merge_b, &rtDW.Dtg_FUL); - /* DataStoreWrite: '/Data Store Write6' incorporates: - * MATLAB Function: '/blower FR' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * MATLAB Function: '/blower FR' */ blowerFR(rtB.Merge_b, &rtDW.Blower_FL); - /* DataStoreWrite: '/Data Store Write11' incorporates: - * MATLAB Function: '/Dtg_FrontUpper_X' + /* DataStoreWrite: '/Data Store Write11' incorporates: + * MATLAB Function: '/Dtg_FrontUpper_X' */ Dtg_FrontUpper_X(rtB.Merge_b, &rtDW.Dtg_FUL); - /* DataStoreWrite: '/Data Store Write13' incorporates: - * MATLAB Function: '/Dtg_FrontLower_X' + /* DataStoreWrite: '/Data Store Write13' incorporates: + * MATLAB Function: '/Dtg_FrontLower_X' */ Dtg_FrontLower_X(rtB.Merge_b, &rtDW.Dtg_FLL); - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Constant: '/Recirc logic Partial REC' */ rtb_Divide1 = 1.0; - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' */ rtb_LogicalOperator1 = (rtDW.step_start_controle_front == 1); - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' */ + /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' */ Incartempgotofromstep1tostep2(rtB.Merge_b, &Eva_F); - /* MATLAB Function: '/Time goto from step 1 to step 2 ' */ + /* MATLAB Function: '/Time goto from step 1 to step 2 ' */ Timegotofromstep1tostep2(rtB.Merge_b, &Eva_R); - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreRead: '/Data Store Read4' - * Gain: '/из сек в мс' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' + /* RelationalOperator: '/Relational Operator1' incorporates: + * DataStoreRead: '/Data Store Read4' + * Gain: '/из сек в мс' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' */ rtb_LogicalOperator1_g = (rtDW.t_now - rtDW.t_start_delay_private_DSTATE_mk > (uint32_t)(1000 * Eva_R)); - /* 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_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_h)) { rtDW.t_start_delay_private_DSTATE_mk = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/incar temp' - * Logic: '/Logical Operator' - * RelationalOperator: '/Relational Operator' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/incar temp' + * Logic: '/Logical Operator' + * RelationalOperator: '/Relational Operator' */ if ((Incar_FL < Eva_F) || rtb_LogicalOperator1_g) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' + /* Merge: '/Merge' incorporates: + * Constant: '/go to next step' */ rtB.Merge_ho = 2; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step 1' + /* Merge: '/Merge' incorporates: + * Constant: '/stay at step 1' */ rtB.Merge_ho = 1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_h = rtb_LogicalOperator1; - /* End of Outputs for SubSystem: '/Level 1' */ + /* End of Outputs for SubSystem: '/Level 1' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 2' incorporates: + * ActionPort: '/Action Port' */ - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * SignalConversion generated from: '/step' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * SignalConversion generated from: '/step' */ rtB.Merge_ho = 2; - /* End of Outputs for SubSystem: '/Level 2' */ + /* End of Outputs for SubSystem: '/Level 2' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 3' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write8' incorporates: - * MATLAB Function: '/3 way valve status' + /* DataStoreWrite: '/Data Store Write8' incorporates: + * MATLAB Function: '/3 way valve status' */ uwayvalvestatus(rtB.Merge_b, &rtb_u_cuz); - /* DataStoreWrite: '/Data Store Write' incorporates: - * MATLAB Function: '/incar filter up' + /* DataStoreWrite: '/Data Store Write' incorporates: + * MATLAB Function: '/incar filter up' */ - incarfilterup(rtB.Merge_b, &rtb_Gain_ge); + incarfilterup(rtB.Merge_b, &rtb_Gain_l); - /* DataStoreWrite: '/Data Store Write1' incorporates: - * MATLAB Function: '/incar filter down' + /* DataStoreWrite: '/Data Store Write1' incorporates: + * MATLAB Function: '/incar filter down' */ incarfilterdown(rtB.Merge_b, &rtb_Gain2_hu); - /* DataStoreWrite: '/Data Store Write3' incorporates: - * MATLAB Function: '/mode FR step 1' + /* DataStoreWrite: '/Data Store Write3' incorporates: + * MATLAB Function: '/mode FR step 1' */ modeFRstep1(rtB.Merge_b, &rtDW.Mode_FL); - /* DataStoreWrite: '/Data Store Write11' incorporates: - * MATLAB Function: '/window heating' + /* DataStoreWrite: '/Data Store Write11' incorporates: + * MATLAB Function: '/window heating' */ windowheating(rtB.Merge_b, &rtDW.Dtg_FUL); - /* MATLAB Function: '/blower min max' */ - blowerminmax(rtB.Merge_b, rtb_out_jq); + /* MATLAB Function: '/blower min max' */ + blowerminmax(rtB.Merge_b, rtb_out_bdd); - /* MATLAB Function: '/ECT min max' */ - ECTminmax(rtB.Merge_b, rtb_out_j4); + /* MATLAB Function: '/ECT min max' */ + ECTminmax(rtB.Merge_b, rtb_out_mn); - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreRead: '/engine coolant temp' - * Lookup_n-D: '/blower для текущего ECT' + /* DataStoreWrite: '/Data Store Write6' incorporates: + * DataStoreRead: '/engine coolant temp' + * Lookup_n-D: '/blower для текущего ECT' */ - rtDW.Blower_FL = look1_iu16bs16lu64n32_binlcse(rtDW.ECT, rtb_out_j4, - rtb_out_jq, 1U); + rtDW.Blower_FL = look1_iu16bs16lu64n32_binlcse(rtDW.ECT, rtb_out_mn, + rtb_out_bdd, 1U); - /* DataStoreWrite: '/Data Store Write11' incorporates: - * MATLAB Function: '/Dtg_FrontUpper_X' + /* DataStoreWrite: '/Data Store Write11' incorporates: + * MATLAB Function: '/Dtg_FrontUpper_X' */ Dtg_FrontUpper_X(rtB.Merge_b, &rtDW.Dtg_FUL); - /* DataStoreWrite: '/Data Store Write13' incorporates: - * MATLAB Function: '/Dtg_FrontLower_X' + /* DataStoreWrite: '/Data Store Write13' incorporates: + * MATLAB Function: '/Dtg_FrontLower_X' */ Dtg_FrontLower_X(rtB.Merge_b, &rtDW.Dtg_FLL); - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Constant: '/Recirc logic Partial REC' */ rtb_Divide1 = 1.0; - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' */ rtb_LogicalOperator1 = (rtDW.step_start_controle_front == 1); - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' */ + /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' */ Incartempgotofromstep1tostep2(rtB.Merge_b, &Eva_F); - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' + /* Sum: '/Subtract' incorporates: + * DataStoreRead: '/Data Store Read4' + * UnitDelay: '/t_start_delay_private ' */ rtb_dt_ih = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_fm; - /* MATLAB Function: '/Time goto from step 1 to step 2 ' */ + /* MATLAB Function: '/Time goto from step 1 to step 2 ' */ Timegotofromstep1tostep2(rtB.Merge_b, &Eva_R); - /* 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 ' */ /* : out = int16(g_assSTART_COOLANT_TO_STEP2(LVL + 1 - 3)); */ if (rtb_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_f)) { rtDW.t_start_delay_private_DSTATE_fm = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/g_assSTART_COOLANT_TO_STEP2 ' */ - y = (int32_t)(rtB.Merge_b + 1U); + /* MATLAB Function: '/g_assSTART_COOLANT_TO_STEP2 ' */ + i = (int32_t)(rtB.Merge_b + 1U); if (rtB.Merge_b + 1U > 255U) { - y = 255; + i = 255; } /* MW:begin MISRA2012:D4.1 CERT-C:INT30-C 'Justifying MISRA CPP rule violation' */ - rtb_dt_fa = (uint32_t)y - 3U; + rtb_dt_fa = (uint32_t)i - 3U; /* MW:end MISRA2012:D4.1 CERT-C:INT30-C */ - if ((uint32_t)y - 3U > (uint32_t)y) { + if ((uint32_t)i - 3U > (uint32_t)i) { rtb_dt_fa = 0U; } - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/engine coolant temp' - * DataStoreRead: '/incar temp' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * MATLAB Function: '/g_assSTART_COOLANT_TO_STEP2 ' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/engine coolant temp' + * DataStoreRead: '/incar temp' + * Gain: '/из сек в мс' + * Logic: '/Logical Operator' + * MATLAB Function: '/g_assSTART_COOLANT_TO_STEP2 ' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' */ if ((Incar_FL < Eva_F) || (rtb_dt_ih > (uint32_t)(1000 * Eva_R)) || (rtDW.ECT > g_assSTART_COOLANT_TO_STEP2[(int32_t)rtb_dt_fa - 1])) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step 2' + /* Merge: '/Merge' incorporates: + * Constant: '/go to next step 2' */ rtB.Merge_ho = 2; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step 1' + /* Merge: '/Merge' incorporates: + * Constant: '/stay at step 1' */ rtB.Merge_ho = 1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_f = rtb_LogicalOperator1; - /* End of Outputs for SubSystem: '/Level 3' */ + /* End of Outputs for SubSystem: '/Level 3' */ break; case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 4' incorporates: + * ActionPort: '/Action Port' */ - Level4_c(&rtB.Merge_ho, &rtDW.Blower_FL, &rtb_out_oc, &rtDW.Dtg_FLL, + Level4_c(&rtB.Merge_ho, &rtDW.Blower_FL, &rtb_out_b, &rtDW.Dtg_FLL, &Valve_2_way, &rtDW.Dtg_FUL, &Dtg_FUR, &rtDW.ECT, - &El_window_heating, &Incar_FL, &rtb_Gain2_hu, &rtb_Gain_ge, + &El_window_heating, &Incar_FL, &rtb_Gain2_hu, &rtb_Gain_l, &rtB.Merge_b, &rtDW.Mode_FL, &Mode_FR, &rtb_Divide1, &rtb_u_cuz, &rtDW.step_start_controle_front, &rtDW.t_now, &rtDW.Level4_cw); - /* End of Outputs for SubSystem: '/Level 4' */ + /* End of Outputs for SubSystem: '/Level 4' */ break; case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 5' incorporates: + * ActionPort: '/Action Port' */ - Level4_c(&rtB.Merge_ho, &rtDW.Blower_FL, &rtb_out_oc, &rtDW.Dtg_FLL, + Level4_c(&rtB.Merge_ho, &rtDW.Blower_FL, &rtb_out_b, &rtDW.Dtg_FLL, &Valve_2_way, &rtDW.Dtg_FUL, &Dtg_FUR, &rtDW.ECT, - &El_window_heating, &Incar_FL, &rtb_Gain2_hu, &rtb_Gain_ge, + &El_window_heating, &Incar_FL, &rtb_Gain2_hu, &rtb_Gain_l, &rtB.Merge_b, &rtDW.Mode_FL, &Mode_FR, &rtb_Divide1, &rtb_u_cuz, &rtDW.step_start_controle_front, &rtDW.t_now, &rtDW.Level5_g); - /* End of Outputs for SubSystem: '/Level 5' */ + /* End of Outputs for SubSystem: '/Level 5' */ break; } - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step 1 F' */ + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/Step 1 F' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Step 2 F' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Step 2 F' incorporates: + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' incorporates: + /* SwitchCase: '/Switch Case' incorporates: * DataStoreWrite: '/Data Store Write' */ switch (rtB.Merge_b) { case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write8' incorporates: - * MATLAB Function: '/3 way valve status' - */ - uwayvalvestatus_a(rtB.Merge_b, &rtb_u_cuz); - - /* MATLAB Function: '/step' */ - Dtg_FrontLower_X(rtB.Merge_b, &rtb_Gain_ge); - - /* MATLAB Function: '/time for step' */ - timeforstep(rtB.Merge_b, &rtb_Gain2_hu); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' - */ - if ((uint8_t)(rtDW.Dtg_FLL - rtDW.Dtg_logic_FLL) <= 0.01) { - /* DataStoreWrite: '/Data Store Write13' */ - rtDW.Dtg_FLL = rtDW.Dtg_logic_FLL; - } else { - if (rtDW.Dtg_FLL <= rtDW.Dtg_logic_FLL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - y = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - y = -1; - } - - /* DataStoreWrite: '/Data Store Write13' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Dtg_FLL = (uint8_t)((double)rtb_Gain_ge / (double)rtb_Gain2_hu / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_k) * (double)y - + (double)rtDW.Dtg_FLL); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/step' */ - Dtg_FrontUpper_X(rtB.Merge_b, &rtb_Gain_ge); - - /* MATLAB Function: '/time for step' */ - timeforstep_j(rtB.Merge_b, &rtb_Gain2_hu); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' - */ - if ((uint8_t)(rtDW.Dtg_FUL - rtDW.Dtg_logic_FUL) <= 0.01) { - /* DataStoreWrite: '/Data Store Write11' */ - rtDW.Dtg_FUL = rtDW.Dtg_logic_FUL; - } else { - if (rtDW.Dtg_FUL <= rtDW.Dtg_logic_FUL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - y = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - y = -1; - } - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Dtg_FUL = (uint8_t)((double)rtb_Gain_ge / (double)rtb_Gain2_hu / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_pb) * (double)y - + (double)rtDW.Dtg_FUL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write' incorporates: - * MATLAB Function: '/incar filter up' - */ - incarfilterup(rtB.Merge_b, &rtb_Gain_ge); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * MATLAB Function: '/incar filter down' - */ - incarfilterdown(rtB.Merge_b, &rtb_Gain2_hu); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_Gain_ge = (uint8_t)(rtDW.Mode_FL - rtDW.Mode_logic_FL); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - rtb_LogicalOperator1 = (rtb_Gain_ge <= 0.01); - - /* MATLAB Function: '/step' */ - step_j(rtB.Merge_b, &rtb_Gain2_hu); - - /* MATLAB Function: '/time for step' */ - timeforstep_g(rtB.Merge_b, &rtb_Gain_ge); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (rtb_LogicalOperator1) { - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtDW.Mode_FL = rtDW.Mode_logic_FL; - } else { - if (rtDW.Mode_FL <= rtDW.Mode_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - y = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - y = -1; - } - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Mode_FL = (uint8_t)((double)rtb_Gain2_hu / (double)rtb_Gain_ge / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_mk) * (double)y - + (double)rtDW.Mode_FL); - } - - /* End of Switch: '/Switch' */ - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - /* : out = g_aucSTART_ELEC_WINDOW(LVL + 1 + 6); */ - rtb_out_oc = (uint16_t)(rtDW.Blower_FL - rtDW.Blower_logic_FL); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - rtb_LogicalOperator1 = (rtb_out_oc <= 0.01); - - /* MATLAB Function: '/blower step' */ - blowerstep(rtB.Merge_b, &rtb_out_jn); - - /* MATLAB Function: '/blower time for step' */ - blowertimeforstep(rtB.Merge_b, &rtb_out_oc); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (rtb_LogicalOperator1) { - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtDW.Blower_FL = rtDW.Blower_logic_FL; - } else { - if (rtDW.Blower_FL <= rtDW.Blower_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - y = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - y = -1; - } - - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Blower_FL = (uint16_t)((double)rtb_out_jn / (double)rtb_out_oc / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_gm) * (double)y - + (double)rtDW.Blower_FL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - rtb_Divide1 = 1.0; - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - rtb_LogicalOperator1 = (rtDW.step_start_controle_front == 2); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_dt_fa = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_g; - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (rtb_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_m)) { - rtDW.t_start_delay_private_DSTATE_g = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/Time goto from step 2 to step 3 ' */ - Timegotofromstep2tostep3(rtB.Merge_b, &Incar_FL); - - /* Switch: '/Switch' incorporates: - * Gain: '/из сек в мс' - * RelationalOperator: '/Relational Operator1' - */ - if (rtb_dt_fa > (uint32_t)(1000 * Incar_FL)) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - */ - rtB.Merge_ho = 3; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step' - */ - rtB.Merge_ho = 2; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_k = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_pb = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_mk = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_gm = rtDW.t_now; - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_m = rtb_LogicalOperator1; - - /* End of Outputs for SubSystem: '/Level 0' */ - break; - - case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' - */ - /* DataStoreWrite: '/Data Store Write8' incorporates: - * MATLAB Function: '/3 way valve status' - */ - uwayvalvestatus_a(rtB.Merge_b, &rtb_u_cuz); - - /* MATLAB Function: '/step' */ - Dtg_FrontLower_X(rtB.Merge_b, &rtb_Gain_ge); - - /* MATLAB Function: '/time for step' */ - timeforstep(rtB.Merge_b, &rtb_Gain2_hu); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' - */ - if ((uint8_t)(rtDW.Dtg_FLL - rtDW.Dtg_logic_FLL) <= 0.01) { - /* DataStoreWrite: '/Data Store Write13' */ - rtDW.Dtg_FLL = rtDW.Dtg_logic_FLL; - } else { - if (rtDW.Dtg_FLL <= rtDW.Dtg_logic_FLL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - y = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - y = -1; - } - - /* DataStoreWrite: '/Data Store Write13' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Dtg_FLL = (uint8_t)((double)rtb_Gain_ge / (double)rtb_Gain2_hu / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_m) * (double)y - + (double)rtDW.Dtg_FLL); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/step' */ - Dtg_FrontUpper_X(rtB.Merge_b, &rtb_Gain_ge); - - /* MATLAB Function: '/time for step' */ - timeforstep_j(rtB.Merge_b, &rtb_Gain2_hu); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' - */ - if ((uint8_t)(rtDW.Dtg_FUL - rtDW.Dtg_logic_FUL) <= 0.01) { - /* DataStoreWrite: '/Data Store Write11' */ - rtDW.Dtg_FUL = rtDW.Dtg_logic_FUL; - } else { - if (rtDW.Dtg_FUL <= rtDW.Dtg_logic_FUL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - y = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - y = -1; - } - - /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Dtg_FUL = (uint8_t)((double)rtb_Gain_ge / (double)rtb_Gain2_hu / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_gf) * (double)y - + (double)rtDW.Dtg_FUL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write' incorporates: - * MATLAB Function: '/incar filter up' - */ - incarfilterup(rtB.Merge_b, &rtb_Gain_ge); - - /* DataStoreWrite: '/Data Store Write1' incorporates: - * MATLAB Function: '/incar filter down' - */ - incarfilterdown(rtB.Merge_b, &rtb_Gain2_hu); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_Gain_ge = (uint8_t)(rtDW.Mode_FL - rtDW.Mode_logic_FL); - - /* MATLAB Function: '/step' */ - step_j(rtB.Merge_b, &rtb_Gain2_hu); - - /* MATLAB Function: '/time for step' */ - timeforstep_g(rtB.Merge_b, &rtb_u_cuz); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (rtb_Gain_ge <= 0.01) { - /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtDW.Mode_FL = rtDW.Mode_logic_FL; - } else { - if (rtDW.Mode_FL <= rtDW.Mode_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - y = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - y = -1; - } - - /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Mode_FL = (uint8_t)((double)rtb_Gain2_hu / (double)rtb_u_cuz / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_l) * (double)y - + (double)rtDW.Mode_FL); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/window heating' */ - windowheating_k(rtB.Merge_b, &rtb_Gain_ge); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_out_oc = (uint16_t)(rtDW.Blower_FL - rtDW.Blower_logic_FL); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - rtb_LogicalOperator1 = (rtb_out_oc <= 0.01); - - /* MATLAB Function: '/blower step' */ - blowerstep(rtB.Merge_b, &rtb_out_jn); - - /* MATLAB Function: '/blower time for step' */ - blowertimeforstep(rtB.Merge_b, &rtb_out_oc); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' - */ - if (rtb_LogicalOperator1) { - /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtDW.Blower_FL = rtDW.Blower_logic_FL; - } else { - if (rtDW.Blower_FL <= rtDW.Blower_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - y = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - y = -1; - } - - /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - rtDW.Blower_FL = (uint16_t)((double)rtb_out_jn / (double)rtb_out_oc / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_p0) * (double)y - + (double)rtDW.Blower_FL); - } - - /* End of Switch: '/Switch' */ - - /* DataStoreWrite: '/Data Store Write7' incorporates: - * Constant: '/Recirc logic Partial REC' - */ - rtb_Divide1 = 1.0; - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - rtb_LogicalOperator1 = (rtDW.step_start_controle_front == 2); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_dt_fa = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_mz; - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (rtb_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_b3)) { - rtDW.t_start_delay_private_DSTATE_mz = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/Time goto from step 2 to step 3 ' */ - Timegotofromstep2tostep3(rtB.Merge_b, &Incar_FL); - - /* Switch: '/Switch' incorporates: - * Gain: '/из сек в мс' - * RelationalOperator: '/Relational Operator1' - */ - if (rtb_dt_fa > (uint32_t)(1000 * Incar_FL)) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - */ - rtB.Merge_ho = 3; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step' - */ - rtB.Merge_ho = 2; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_m = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_gf = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_l = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_p0 = rtDW.t_now; - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_b3 = rtb_LogicalOperator1; - - /* End of Outputs for SubSystem: '/Level 1' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' - */ - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' - * SignalConversion generated from: '/step' - */ - rtB.Merge_ho = 3; - - /* End of Outputs for SubSystem: '/Level 2' */ - break; - - case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' - */ - Level3(&rtB.Merge_ho, &Autodefog, &rtDW.Blower_FL, &rtb_out_oc, - &rtDW.Blower_logic_FL, &rtDW.Dtg_FLL, &Valve_2_way, &rtDW.Dtg_FUL, - &Dtg_FUR, &rtDW.Dtg_logic_FLL, &rtDW.Dtg_logic_FUL, - &El_window_heating, &rtDW.HI_logic_on, &rtb_Gain2_hu, - &rtb_Gain_ge, &rtB.Merge_b, &rtDW.Mode_FL, &Mode_FR, - &rtDW.Mode_logic_FL, &rtb_Divide1, &rtb_u_cuz, - &rtDW.step_start_controle_front, &rtDW.t_now, &rtDW.Level3_l); - - /* End of Outputs for SubSystem: '/Level 3' */ - break; - - case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' - */ - Level3(&rtB.Merge_ho, &Autodefog, &rtDW.Blower_FL, &rtb_out_oc, - &rtDW.Blower_logic_FL, &rtDW.Dtg_FLL, &Valve_2_way, &rtDW.Dtg_FUL, - &Dtg_FUR, &rtDW.Dtg_logic_FLL, &rtDW.Dtg_logic_FUL, - &El_window_heating, &rtDW.HI_logic_on, &rtb_Gain2_hu, - &rtb_Gain_ge, &rtB.Merge_b, &rtDW.Mode_FL, &Mode_FR, - &rtDW.Mode_logic_FL, &rtb_Divide1, &rtb_u_cuz, - &rtDW.step_start_controle_front, &rtDW.t_now, &rtDW.Level4_a); - - /* End of Outputs for SubSystem: '/Level 4' */ - break; - - case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: + /* Outputs for IfAction SubSystem: '/Level 0' incorporates: * ActionPort: '/Action Port' */ /* DataStoreWrite: '/Data Store Write8' incorporates: @@ -15214,240 +14647,238 @@ void HVAC_model_step(void) */ uwayvalvestatus_a(rtB.Merge_b, &rtb_u_cuz); - /* MATLAB Function: '/step' */ - Dtg_FrontLower_X(rtB.Merge_b, &rtb_Gain_ge); + /* MATLAB Function: '/step' */ + Dtg_FrontLower_X(rtB.Merge_b, &rtb_Gain_l); - /* MATLAB Function: '/time for step' */ + /* MATLAB Function: '/time for step' */ timeforstep(rtB.Merge_b, &rtb_Gain2_hu); - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' + /* Switch: '/Switch' incorporates: + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Switch: '/Switch' */ if ((uint8_t)(rtDW.Dtg_FLL - rtDW.Dtg_logic_FLL) <= 0.01) { /* DataStoreWrite: '/Data Store Write13' */ rtDW.Dtg_FLL = rtDW.Dtg_logic_FLL; } else { if (rtDW.Dtg_FLL <= rtDW.Dtg_logic_FLL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' */ - y = 1; + i = 1; } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' */ - y = -1; + i = -1; } /* DataStoreWrite: '/Data Store Write13' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Subtract' - * Sum: '/Add' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' + * Constant: '/Constant' + * DataStoreRead: '/текущее время в мс' + * Product: '/Product1' + * Product: '/change rate (dtg//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' */ - rtDW.Dtg_FLL = (uint8_t)((double)rtb_Gain_ge / (double)rtb_Gain2_hu / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_f) * (double)y + rtDW.Dtg_FLL = (uint8_t)((double)rtb_Gain_l / (double)rtb_Gain2_hu / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_k) * (double)i + (double)rtDW.Dtg_FLL); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/step' */ - Dtg_FrontUpper_X(rtB.Merge_b, &rtb_Gain_ge); + /* MATLAB Function: '/step' */ + Dtg_FrontUpper_X(rtB.Merge_b, &rtb_Gain_l); - /* MATLAB Function: '/time for step' */ + /* MATLAB Function: '/time for step' */ timeforstep_j(rtB.Merge_b, &rtb_Gain2_hu); - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Switch: '/Switch' + /* Switch: '/Switch' incorporates: + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Switch: '/Switch' */ if ((uint8_t)(rtDW.Dtg_FUL - rtDW.Dtg_logic_FUL) <= 0.01) { /* DataStoreWrite: '/Data Store Write11' */ rtDW.Dtg_FUL = rtDW.Dtg_logic_FUL; } else { if (rtDW.Dtg_FUL <= rtDW.Dtg_logic_FUL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' */ - y = 1; + i = 1; } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' */ - y = -1; + i = -1; } /* DataStoreWrite: '/Data Store Write11' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Subtract' - * Sum: '/Add' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' + * Constant: '/Constant' + * DataStoreRead: '/текущее время в мс' + * Product: '/Product1' + * Product: '/change rate (dtg//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' */ - rtDW.Dtg_FUL = (uint8_t)((double)rtb_Gain_ge / (double)rtb_Gain2_hu / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_pu) * (double)y + rtDW.Dtg_FUL = (uint8_t)((double)rtb_Gain_l / (double)rtb_Gain2_hu / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_pb) * (double)i + (double)rtDW.Dtg_FUL); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ /* DataStoreWrite: '/Data Store Write' incorporates: * MATLAB Function: '/incar filter up' */ - incarfilterup(rtB.Merge_b, &rtb_Gain_ge); + incarfilterup(rtB.Merge_b, &rtb_Gain_l); /* DataStoreWrite: '/Data Store Write1' incorporates: * MATLAB Function: '/incar filter down' */ incarfilterdown(rtB.Merge_b, &rtb_Gain2_hu); - /* MATLAB Function: '/autodemist (autodefog)' */ - autodemistautodefog(rtB.Merge_b, &rtb_Gain_ge); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' + /* Sum: '/Add' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' */ - rtb_Gain2_hu = (uint8_t)(rtDW.Mode_FL - rtDW.Mode_logic_FL); + rtb_Gain_l = (uint8_t)(rtDW.Mode_FL - rtDW.Mode_logic_FL); - /* MATLAB Function: '/step' */ - step_j(rtB.Merge_b, &rtb_Gain_ge); - - /* MATLAB Function: '/time for step' */ - timeforstep_g(rtB.Merge_b, &rtb_u_cuz); - - /* Switch: '/Switch' incorporates: - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' + /* RelationalOperator: '/Relational Operator' incorporates: + * Constant: '/epsilon' */ - if (rtb_Gain2_hu <= 0.01) { + rtb_LogicalOperator1 = (rtb_Gain_l <= 0.01); + + /* MATLAB Function: '/step' */ + step_j(rtB.Merge_b, &rtb_Gain2_hu); + + /* MATLAB Function: '/time for step' */ + timeforstep_g(rtB.Merge_b, &rtb_Gain_l); + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch' + */ + if (rtb_LogicalOperator1) { /* DataStoreWrite: '/Data Store Write3' incorporates: - * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/значение auto (в соответствии с логикой)' */ rtDW.Mode_FL = rtDW.Mode_logic_FL; } else { if (rtDW.Mode_FL <= rtDW.Mode_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' */ - y = 1; + i = 1; } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' */ - y = -1; + i = -1; } /* DataStoreWrite: '/Data Store Write3' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' + * Constant: '/Constant' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/текущее время в мс' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' */ - rtDW.Mode_FL = (uint8_t)((double)rtb_Gain_ge / (double)rtb_u_cuz / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_b) * (double)y + rtDW.Mode_FL = (uint8_t)((double)rtb_Gain2_hu / (double)rtb_Gain_l / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_mk) * (double)i + (double)rtDW.Mode_FL); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/window heating' */ - windowheating_k(rtB.Merge_b, &rtb_Gain2_hu); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' + /* Sum: '/Add' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' */ - rtb_out_oc = (uint16_t)(rtDW.Blower_FL - rtDW.Blower_logic_FL); + /* : out = g_aucSTART_ELEC_WINDOW(LVL + 1 + 6); */ + rtb_out_b = (uint16_t)(rtDW.Blower_FL - rtDW.Blower_logic_FL); - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' + /* RelationalOperator: '/Relational Operator' incorporates: + * Constant: '/epsilon' */ - rtb_LogicalOperator1 = (rtb_out_oc <= 0.01); + rtb_LogicalOperator1 = (rtb_out_b <= 0.01); - /* MATLAB Function: '/blower step' */ - blowerstep(rtB.Merge_b, &rtb_out_jn); + /* MATLAB Function: '/blower step' */ + blowerstep(rtB.Merge_b, &rtb_out_lw); - /* MATLAB Function: '/blower time for step' */ - blowertimeforstep(rtB.Merge_b, &rtb_out_oc); + /* MATLAB Function: '/blower time for step' */ + blowertimeforstep(rtB.Merge_b, &rtb_out_b); - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch' */ if (rtb_LogicalOperator1) { /* DataStoreWrite: '/Data Store Write6' incorporates: - * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/значение auto (в соответствии с логикой)' */ rtDW.Blower_FL = rtDW.Blower_logic_FL; } else { if (rtDW.Blower_FL <= rtDW.Blower_logic_FL) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' */ - y = 1; + i = 1; } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' */ - y = -1; + i = -1; } /* DataStoreWrite: '/Data Store Write6' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/текущее время в мс' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' + * Constant: '/Constant' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/текущее время в мс' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' */ - rtDW.Blower_FL = (uint16_t)((double)rtb_out_jn / (double)rtb_out_oc / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_e) * (double)y + rtDW.Blower_FL = (uint16_t)((double)rtb_out_lw / (double)rtb_out_b / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_gm) * (double)i + (double)rtDW.Blower_FL); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ /* DataStoreWrite: '/Data Store Write7' incorporates: * Constant: '/Recirc logic Partial REC' @@ -15459,42 +14890,39 @@ void HVAC_model_step(void) */ rtb_LogicalOperator1 = (rtDW.step_start_controle_front == 2); + /* Sum: '/Subtract' incorporates: + * DataStoreRead: '/Data Store Read4' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_dt_fa = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_g; + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' + */ + if (rtb_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_m)) { + rtDW.t_start_delay_private_DSTATE_g = rtDW.t_now; + } + + /* End of Switch: '/Switch' */ + /* MATLAB Function: '/Time goto from step 2 to step 3 ' */ Timegotofromstep2tostep3(rtB.Merge_b, &Incar_FL); - /* RelationalOperator: '/Relational Operator1' incorporates: - * DataStoreRead: '/Data Store Read4' - * Gain: '/из сек в мс' - * Sum: '/Subtract' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_LogicalOperator1_g = (rtDW.t_now - - rtDW.t_start_delay_private_DSTATE_nr > (uint32_t)(1000 * Incar_FL)); - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (rtb_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_iy)) { - rtDW.t_start_delay_private_DSTATE_nr = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read' - * Logic: '/Logical Operator' + * Gain: '/из сек в мс' + * RelationalOperator: '/Relational Operator1' */ - if (rtb_LogicalOperator1_g || rtDW.HI_logic_on) { - /* Merge: '/Merge' incorporates: + if (rtb_dt_fa > (uint32_t)(1000 * Incar_FL)) { + /* Merge: '/Merge' incorporates: * Constant: '/go to next step' */ rtB.Merge_ho = 3; } else { - /* Merge: '/Merge' incorporates: + /* Merge: '/Merge' incorporates: * Constant: '/stay at step' */ rtB.Merge_ho = 2; @@ -15502,50 +14930,733 @@ void HVAC_model_step(void) /* End of Switch: '/Switch' */ - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' + */ + rtDW.UnitDelay_DSTATE_k = rtDW.t_now; + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' + */ + rtDW.UnitDelay_DSTATE_pb = rtDW.t_now; + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' + */ + rtDW.UnitDelay_DSTATE_mk = rtDW.t_now; + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' + */ + rtDW.UnitDelay_DSTATE_gm = rtDW.t_now; + + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_m = rtb_LogicalOperator1; + + /* End of Outputs for SubSystem: '/Level 0' */ + break; + + case 1: + /* Outputs for IfAction SubSystem: '/Level 1' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write8' incorporates: + * MATLAB Function: '/3 way valve status' + */ + uwayvalvestatus_a(rtB.Merge_b, &rtb_u_cuz); + + /* MATLAB Function: '/step' */ + Dtg_FrontLower_X(rtB.Merge_b, &rtb_Gain_l); + + /* MATLAB Function: '/time for step' */ + timeforstep(rtB.Merge_b, &rtb_Gain2_hu); + + /* Switch: '/Switch' incorporates: + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Switch: '/Switch' + */ + if ((uint8_t)(rtDW.Dtg_FLL - rtDW.Dtg_logic_FLL) <= 0.01) { + /* DataStoreWrite: '/Data Store Write13' */ + rtDW.Dtg_FLL = rtDW.Dtg_logic_FLL; + } else { + if (rtDW.Dtg_FLL <= rtDW.Dtg_logic_FLL) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + i = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + i = -1; + } + + /* DataStoreWrite: '/Data Store Write13' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/текущее время в мс' + * Product: '/Product1' + * Product: '/change rate (dtg//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + rtDW.Dtg_FLL = (uint8_t)((double)rtb_Gain_l / (double)rtb_Gain2_hu / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_m) * (double)i + + (double)rtDW.Dtg_FLL); + } + + /* End of Switch: '/Switch' */ + + /* MATLAB Function: '/step' */ + Dtg_FrontUpper_X(rtB.Merge_b, &rtb_Gain_l); + + /* MATLAB Function: '/time for step' */ + timeforstep_j(rtB.Merge_b, &rtb_Gain2_hu); + + /* Switch: '/Switch' incorporates: + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Switch: '/Switch' + */ + if ((uint8_t)(rtDW.Dtg_FUL - rtDW.Dtg_logic_FUL) <= 0.01) { + /* DataStoreWrite: '/Data Store Write11' */ + rtDW.Dtg_FUL = rtDW.Dtg_logic_FUL; + } else { + if (rtDW.Dtg_FUL <= rtDW.Dtg_logic_FUL) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + i = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + i = -1; + } + + /* DataStoreWrite: '/Data Store Write11' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/текущее время в мс' + * Product: '/Product1' + * Product: '/change rate (dtg//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + rtDW.Dtg_FUL = (uint8_t)((double)rtb_Gain_l / (double)rtb_Gain2_hu / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_gf) * (double)i + + (double)rtDW.Dtg_FUL); + } + + /* End of Switch: '/Switch' */ + + /* DataStoreWrite: '/Data Store Write' incorporates: + * MATLAB Function: '/incar filter up' + */ + incarfilterup(rtB.Merge_b, &rtb_Gain_l); + + /* DataStoreWrite: '/Data Store Write1' incorporates: + * MATLAB Function: '/incar filter down' + */ + incarfilterdown(rtB.Merge_b, &rtb_Gain2_hu); + + /* Sum: '/Add' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + */ + rtb_Gain_l = (uint8_t)(rtDW.Mode_FL - rtDW.Mode_logic_FL); + + /* MATLAB Function: '/step' */ + step_j(rtB.Merge_b, &rtb_Gain2_hu); + + /* MATLAB Function: '/time for step' */ + timeforstep_g(rtB.Merge_b, &rtb_u_cuz); + + /* Switch: '/Switch' incorporates: + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch' + */ + if (rtb_Gain_l <= 0.01) { + /* DataStoreWrite: '/Data Store Write3' incorporates: + * DataStoreRead: '/значение auto (в соответствии с логикой)' + */ + rtDW.Mode_FL = rtDW.Mode_logic_FL; + } else { + if (rtDW.Mode_FL <= rtDW.Mode_logic_FL) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + i = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + i = -1; + } + + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/текущее время в мс' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + rtDW.Mode_FL = (uint8_t)((double)rtb_Gain2_hu / (double)rtb_u_cuz / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_l) * (double)i + + (double)rtDW.Mode_FL); + } + + /* End of Switch: '/Switch' */ + + /* MATLAB Function: '/window heating' */ + windowheating_k(rtB.Merge_b, &rtb_Gain_l); + + /* Sum: '/Add' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + */ + rtb_out_b = (uint16_t)(rtDW.Blower_FL - rtDW.Blower_logic_FL); + + /* RelationalOperator: '/Relational Operator' incorporates: + * Constant: '/epsilon' + */ + rtb_LogicalOperator1 = (rtb_out_b <= 0.01); + + /* MATLAB Function: '/blower step' */ + blowerstep(rtB.Merge_b, &rtb_out_lw); + + /* MATLAB Function: '/blower time for step' */ + blowertimeforstep(rtB.Merge_b, &rtb_out_b); + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch' + */ + if (rtb_LogicalOperator1) { + /* DataStoreWrite: '/Data Store Write6' incorporates: + * DataStoreRead: '/значение auto (в соответствии с логикой)' + */ + rtDW.Blower_FL = rtDW.Blower_logic_FL; + } else { + if (rtDW.Blower_FL <= rtDW.Blower_logic_FL) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + i = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + i = -1; + } + + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/текущее время в мс' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + rtDW.Blower_FL = (uint16_t)((double)rtb_out_lw / (double)rtb_out_b / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_p0) * (double)i + + (double)rtDW.Blower_FL); + } + + /* End of Switch: '/Switch' */ + + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Constant: '/Recirc logic Partial REC' + */ + rtb_Divide1 = 1.0; + + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' + */ + rtb_LogicalOperator1 = (rtDW.step_start_controle_front == 2); + + /* Sum: '/Subtract' incorporates: + * DataStoreRead: '/Data Store Read4' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_dt_fa = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_mz; + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' + */ + if (rtb_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_b3)) { + rtDW.t_start_delay_private_DSTATE_mz = rtDW.t_now; + } + + /* End of Switch: '/Switch' */ + + /* MATLAB Function: '/Time goto from step 2 to step 3 ' */ + Timegotofromstep2tostep3(rtB.Merge_b, &Incar_FL); + + /* Switch: '/Switch' incorporates: + * Gain: '/из сек в мс' + * RelationalOperator: '/Relational Operator1' + */ + if (rtb_dt_fa > (uint32_t)(1000 * Incar_FL)) { + /* Merge: '/Merge' incorporates: + * Constant: '/go to next step' + */ + rtB.Merge_ho = 3; + } else { + /* Merge: '/Merge' incorporates: + * Constant: '/stay at step' + */ + rtB.Merge_ho = 2; + } + + /* End of Switch: '/Switch' */ + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' + */ + rtDW.UnitDelay_DSTATE_m = rtDW.t_now; + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' + */ + rtDW.UnitDelay_DSTATE_gf = rtDW.t_now; + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' + */ + rtDW.UnitDelay_DSTATE_l = rtDW.t_now; + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' + */ + rtDW.UnitDelay_DSTATE_p0 = rtDW.t_now; + + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_b3 = rtb_LogicalOperator1; + + /* End of Outputs for SubSystem: '/Level 1' */ + break; + + case 2: + /* Outputs for IfAction SubSystem: '/Level 2' incorporates: + * ActionPort: '/Action Port' + */ + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' + * SignalConversion generated from: '/step' + */ + rtB.Merge_ho = 3; + + /* End of Outputs for SubSystem: '/Level 2' */ + break; + + case 3: + /* Outputs for IfAction SubSystem: '/Level 3' incorporates: + * ActionPort: '/Action Port' + */ + Level3(&rtB.Merge_ho, &Autodefog, &rtDW.Blower_FL, &rtb_out_b, + &rtDW.Blower_logic_FL, &rtDW.Dtg_FLL, &Valve_2_way, &rtDW.Dtg_FUL, + &Dtg_FUR, &rtDW.Dtg_logic_FLL, &rtDW.Dtg_logic_FUL, + &El_window_heating, &rtDW.HI_logic_on, &rtb_Gain2_hu, &rtb_Gain_l, + &rtB.Merge_b, &rtDW.Mode_FL, &Mode_FR, &rtDW.Mode_logic_FL, + &rtb_Divide1, &rtb_u_cuz, &rtDW.step_start_controle_front, + &rtDW.t_now, &rtDW.Level3_l); + + /* End of Outputs for SubSystem: '/Level 3' */ + break; + + case 4: + /* Outputs for IfAction SubSystem: '/Level 4' incorporates: + * ActionPort: '/Action Port' + */ + Level3(&rtB.Merge_ho, &Autodefog, &rtDW.Blower_FL, &rtb_out_b, + &rtDW.Blower_logic_FL, &rtDW.Dtg_FLL, &Valve_2_way, &rtDW.Dtg_FUL, + &Dtg_FUR, &rtDW.Dtg_logic_FLL, &rtDW.Dtg_logic_FUL, + &El_window_heating, &rtDW.HI_logic_on, &rtb_Gain2_hu, &rtb_Gain_l, + &rtB.Merge_b, &rtDW.Mode_FL, &Mode_FR, &rtDW.Mode_logic_FL, + &rtb_Divide1, &rtb_u_cuz, &rtDW.step_start_controle_front, + &rtDW.t_now, &rtDW.Level4_a); + + /* End of Outputs for SubSystem: '/Level 4' */ + break; + + case 5: + /* Outputs for IfAction SubSystem: '/Level 5' incorporates: + * ActionPort: '/Action Port' + */ + /* DataStoreWrite: '/Data Store Write8' incorporates: + * MATLAB Function: '/3 way valve status' + */ + uwayvalvestatus_a(rtB.Merge_b, &rtb_u_cuz); + + /* MATLAB Function: '/step' */ + Dtg_FrontLower_X(rtB.Merge_b, &rtb_Gain_l); + + /* MATLAB Function: '/time for step' */ + timeforstep(rtB.Merge_b, &rtb_Gain2_hu); + + /* Switch: '/Switch' incorporates: + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Switch: '/Switch' + */ + if ((uint8_t)(rtDW.Dtg_FLL - rtDW.Dtg_logic_FLL) <= 0.01) { + /* DataStoreWrite: '/Data Store Write13' */ + rtDW.Dtg_FLL = rtDW.Dtg_logic_FLL; + } else { + if (rtDW.Dtg_FLL <= rtDW.Dtg_logic_FLL) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + i = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + i = -1; + } + + /* DataStoreWrite: '/Data Store Write13' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/текущее время в мс' + * Product: '/Product1' + * Product: '/change rate (dtg//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + rtDW.Dtg_FLL = (uint8_t)((double)rtb_Gain_l / (double)rtb_Gain2_hu / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_f) * (double)i + + (double)rtDW.Dtg_FLL); + } + + /* End of Switch: '/Switch' */ + + /* MATLAB Function: '/step' */ + Dtg_FrontUpper_X(rtB.Merge_b, &rtb_Gain_l); + + /* MATLAB Function: '/time for step' */ + timeforstep_j(rtB.Merge_b, &rtb_Gain2_hu); + + /* Switch: '/Switch' incorporates: + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Switch: '/Switch' + */ + if ((uint8_t)(rtDW.Dtg_FUL - rtDW.Dtg_logic_FUL) <= 0.01) { + /* DataStoreWrite: '/Data Store Write11' */ + rtDW.Dtg_FUL = rtDW.Dtg_logic_FUL; + } else { + if (rtDW.Dtg_FUL <= rtDW.Dtg_logic_FUL) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + i = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + i = -1; + } + + /* DataStoreWrite: '/Data Store Write11' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/текущее время в мс' + * Product: '/Product1' + * Product: '/change rate (dtg//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + rtDW.Dtg_FUL = (uint8_t)((double)rtb_Gain_l / (double)rtb_Gain2_hu / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_pu) * (double)i + + (double)rtDW.Dtg_FUL); + } + + /* End of Switch: '/Switch' */ + + /* DataStoreWrite: '/Data Store Write' incorporates: + * MATLAB Function: '/incar filter up' + */ + incarfilterup(rtB.Merge_b, &rtb_Gain_l); + + /* DataStoreWrite: '/Data Store Write1' incorporates: + * MATLAB Function: '/incar filter down' + */ + incarfilterdown(rtB.Merge_b, &rtb_Gain2_hu); + + /* MATLAB Function: '/autodemist (autodefog)' */ + autodemistautodefog(rtB.Merge_b, &rtb_Gain_l); + + /* Sum: '/Add' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + */ + rtb_Gain2_hu = (uint8_t)(rtDW.Mode_FL - rtDW.Mode_logic_FL); + + /* MATLAB Function: '/step' */ + step_j(rtB.Merge_b, &rtb_Gain_l); + + /* MATLAB Function: '/time for step' */ + timeforstep_g(rtB.Merge_b, &rtb_u_cuz); + + /* Switch: '/Switch' incorporates: + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch' + */ + if (rtb_Gain2_hu <= 0.01) { + /* DataStoreWrite: '/Data Store Write3' incorporates: + * DataStoreRead: '/значение auto (в соответствии с логикой)' + */ + rtDW.Mode_FL = rtDW.Mode_logic_FL; + } else { + if (rtDW.Mode_FL <= rtDW.Mode_logic_FL) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + i = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + i = -1; + } + + /* DataStoreWrite: '/Data Store Write3' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/текущее время в мс' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + rtDW.Mode_FL = (uint8_t)((double)rtb_Gain_l / (double)rtb_u_cuz / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_b) * (double)i + + (double)rtDW.Mode_FL); + } + + /* End of Switch: '/Switch' */ + + /* MATLAB Function: '/window heating' */ + windowheating_k(rtB.Merge_b, &rtb_Gain2_hu); + + /* Sum: '/Add' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + */ + rtb_out_b = (uint16_t)(rtDW.Blower_FL - rtDW.Blower_logic_FL); + + /* RelationalOperator: '/Relational Operator' incorporates: + * Constant: '/epsilon' + */ + rtb_LogicalOperator1 = (rtb_out_b <= 0.01); + + /* MATLAB Function: '/blower step' */ + blowerstep(rtB.Merge_b, &rtb_out_lw); + + /* MATLAB Function: '/blower time for step' */ + blowertimeforstep(rtB.Merge_b, &rtb_out_b); + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch' + */ + if (rtb_LogicalOperator1) { + /* DataStoreWrite: '/Data Store Write6' incorporates: + * DataStoreRead: '/значение auto (в соответствии с логикой)' + */ + rtDW.Blower_FL = rtDW.Blower_logic_FL; + } else { + if (rtDW.Blower_FL <= rtDW.Blower_logic_FL) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + i = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + i = -1; + } + + /* DataStoreWrite: '/Data Store Write6' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/текущее время в мс' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + rtDW.Blower_FL = (uint16_t)((double)rtb_out_lw / (double)rtb_out_b / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_e) * (double)i + + (double)rtDW.Blower_FL); + } + + /* End of Switch: '/Switch' */ + + /* DataStoreWrite: '/Data Store Write7' incorporates: + * Constant: '/Recirc logic Partial REC' + */ + rtb_Divide1 = 1.0; + + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' + */ + rtb_LogicalOperator1 = (rtDW.step_start_controle_front == 2); + + /* MATLAB Function: '/Time goto from step 2 to step 3 ' */ + Timegotofromstep2tostep3(rtB.Merge_b, &Incar_FL); + + /* RelationalOperator: '/Relational Operator1' incorporates: + * DataStoreRead: '/Data Store Read4' + * Gain: '/из сек в мс' + * Sum: '/Subtract' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_LogicalOperator1_g = (rtDW.t_now - + rtDW.t_start_delay_private_DSTATE_nr > (uint32_t)(1000 * Incar_FL)); + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' + */ + if (rtb_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_iy)) { + rtDW.t_start_delay_private_DSTATE_nr = rtDW.t_now; + } + + /* End of Switch: '/Switch' */ + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator' + */ + if (rtb_LogicalOperator1_g || rtDW.HI_logic_on) { + /* Merge: '/Merge' incorporates: + * Constant: '/go to next step' + */ + rtB.Merge_ho = 3; + } else { + /* Merge: '/Merge' incorporates: + * Constant: '/stay at step' + */ + rtB.Merge_ho = 2; + } + + /* End of Switch: '/Switch' */ + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ rtDW.UnitDelay_DSTATE_f = rtDW.t_now; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ rtDW.UnitDelay_DSTATE_pu = rtDW.t_now; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ rtDW.UnitDelay_DSTATE_b = rtDW.t_now; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ rtDW.UnitDelay_DSTATE_e = rtDW.t_now; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_iy = rtb_LogicalOperator1; - /* End of Outputs for SubSystem: '/Level 5' */ + /* End of Outputs for SubSystem: '/Level 5' */ break; } - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step 2 F' */ + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/Step 2 F' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Step 3 F' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Step 3 F' incorporates: + * ActionPort: '/Action Port' */ Step3F(&rtB.Merge_ho, &rtDW.start_control_finished_front); - /* End of Outputs for SubSystem: '/Step 3 F' */ + /* End of Outputs for SubSystem: '/Step 3 F' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.step_start_controle_front = rtB.Merge_ho; /* End of Outputs for SubSystem: '/Start Control Front' */ @@ -15558,1487 +15669,1487 @@ void HVAC_model_step(void) */ if (rtDW.start_control_finished_rear == 0.0) { /* Outputs for IfAction SubSystem: '/Start Control Rear' incorporates: - * ActionPort: '/Action Port' + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read' + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read' */ switch (rtDW.step_start_controle_rear) { case -1: - /* Outputs for IfAction SubSystem: '/Step -1 R (Entry Condition)' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Step -1 R (Entry Condition)' incorporates: + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read1' + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read1' */ switch (rtB.Merge_b) { case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 0' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: + * DataStoreRead: '/Data Store Read4' */ /* : out = int16(g_assSTART_ENTER_INCAR(LVL + 1 + 6)); */ g_ausSTART_ENTER_SETTEMP_b(rtB.Merge_b, &Incar_FL); - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: + * DataStoreRead: '/Data Store Read3' */ - y = (int32_t)(rtB.Merge_b + 1U); + i = (int32_t)(rtB.Merge_b + 1U); if (rtB.Merge_b + 1U > 255U) { - y = 255; - } - - i = (int32_t)((uint32_t)y + 6U); - if ((uint32_t)y + 6U > 255U) { i = 255; } - /* Switch: '/Switch' incorporates: - * Constant: '/AUTO' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * Logic: '/AND' - * MATLAB Function: '/g_assSTART_ENTER_INCAR' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' + tmp_0 = (int32_t)((uint32_t)i + 6U); + if ((uint32_t)i + 6U > 255U) { + tmp_0 = 255; + } + + /* Switch: '/Switch' incorporates: + * Constant: '/AUTO' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * Logic: '/AND' + * MATLAB Function: '/g_assSTART_ENTER_INCAR' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' */ - if ((Incar_RR > g_assSTART_ENTER_INCAR[i - 1]) && - (rtDW.MODE_RR_passenger == 1.0) && (FIU_SET_RR < Incar_FL)) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + if ((Incar_RR > g_assSTART_ENTER_INCAR[tmp_0 - 1]) && + (rtDW.MODE_RR_passenger == 1.0) && (rtDW.FIU_SET_RR < Incar_FL)) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_c = 0; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' */ rtB.Merge_c = -1; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 0' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Level 0' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 1' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: + * DataStoreRead: '/Data Store Read3' */ g_assSTART_ENTER_INCAR_p(rtB.Merge_b, &Incar_FL); - /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: + * DataStoreRead: '/Data Store Read4' */ g_ausSTART_ENTER_SETTEMP_b(rtB.Merge_b, &Eva_F); - /* Switch: '/Switch' incorporates: - * Constant: '/AUTO' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * Logic: '/AND' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' + /* Switch: '/Switch' incorporates: + * Constant: '/AUTO' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * Logic: '/AND' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' */ if ((Incar_RR > Incar_FL) && (rtDW.MODE_RR_passenger == 1.0) && - (FIU_SET_RR < Eva_F)) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + (rtDW.FIU_SET_RR < Eva_F)) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_c = 0; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' */ rtB.Merge_c = -1; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 1' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Level 1' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 2' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: + * DataStoreRead: '/Data Store Read3' */ g_assSTART_ENTER_INCAR_p(rtB.Merge_b, &Incar_FL); - /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: + * DataStoreRead: '/Data Store Read4' */ g_ausSTART_ENTER_SETTEMP_b(rtB.Merge_b, &Eva_F); - /* Switch: '/Switch' incorporates: - * Constant: '/AUTO' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * Logic: '/AND' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' + /* Switch: '/Switch' incorporates: + * Constant: '/AUTO' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * Logic: '/AND' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' */ if ((Incar_RR < Incar_FL) && (rtDW.MODE_RR_passenger == 1.0) && - (FIU_SET_RR > Eva_F)) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + (rtDW.FIU_SET_RR > Eva_F)) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_c = 0; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' */ rtB.Merge_c = -1; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 2' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Level 2' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 3' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/g_assSTART_ENTER_INCAR' incorporates: + * DataStoreRead: '/Data Store Read4' */ g_assSTART_ENTER_INCAR_p(rtB.Merge_b, &Incar_FL); - /* MATLAB Function: '/g_assSTART_ENTER_COOLANT ' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/g_assSTART_ENTER_COOLANT ' incorporates: + * DataStoreRead: '/Data Store Read3' */ g_assSTART_ENTER_COOLANT_e(rtB.Merge_b, &Eva_F); - /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: - * DataStoreRead: '/Data Store Read6' + /* MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' incorporates: + * DataStoreRead: '/Data Store Read6' */ /* : out = int16(g_ausSTART_ENTER_SETTEMP(LVL+1+6)); */ - y = (int32_t)(rtB.Merge_b + 1U); + i = (int32_t)(rtB.Merge_b + 1U); if (rtB.Merge_b + 1U > 255U) { - y = 255; - } - - i = (int32_t)((uint32_t)y + 6U); - if ((uint32_t)y + 6U > 255U) { i = 255; } - rtb_out_oc = g_ausSTART_ENTER_SETTEMP[i - 1]; - if (rtb_out_oc > 32767) { - rtb_out_oc = 32767U; + tmp_0 = (int32_t)((uint32_t)i + 6U); + if ((uint32_t)i + 6U > 255U) { + tmp_0 = 255; } - /* Switch: '/Switch' incorporates: - * Constant: '/AUTO' - * DataStoreRead: '/Data Store Read' - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read5' - * Logic: '/AND' - * Logic: '/AND1' - * MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - * RelationalOperator: '/Relational Operator3' + rtb_out_b = g_ausSTART_ENTER_SETTEMP[tmp_0 - 1]; + if (rtb_out_b > 32767) { + rtb_out_b = 32767U; + } + + /* Switch: '/Switch' incorporates: + * Constant: '/AUTO' + * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read5' + * Logic: '/AND' + * Logic: '/AND1' + * MATLAB Function: '/g_ausSTART_ENTER_SETTEMP' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' + * RelationalOperator: '/Relational Operator3' */ if (((Incar_RR < Incar_FL) || (rtDW.ECT < Eva_F)) && - (rtDW.MODE_RR_passenger == 1.0) && (FIU_SET_RR > rtb_out_oc)) { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant1' + (rtDW.MODE_RR_passenger == 1.0) && (rtDW.FIU_SET_RR > rtb_out_b)) { + /* Merge: '/Merge' incorporates: + * Constant: '/Constant1' */ rtB.Merge_c = 0; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/Constant' + /* Merge: '/Merge' incorporates: + * Constant: '/Constant' */ rtB.Merge_c = -1; } - /* End of Switch: '/Switch' */ - /* End of Outputs for SubSystem: '/Level 3' */ + /* End of Switch: '/Switch' */ + /* End of Outputs for SubSystem: '/Level 3' */ break; case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 4' incorporates: + * ActionPort: '/Action Port' */ Level4_e(&rtB.Merge_c, &rtDW.ECT, &Incar_RR, &rtB.Merge_b, &rtDW.MODE_RR_passenger); - /* End of Outputs for SubSystem: '/Level 4' */ + /* End of Outputs for SubSystem: '/Level 4' */ break; case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 5' incorporates: + * ActionPort: '/Action Port' */ Level4_e(&rtB.Merge_c, &rtDW.ECT, &Incar_RR, &rtB.Merge_b, &rtDW.MODE_RR_passenger); - /* End of Outputs for SubSystem: '/Level 5' */ + /* End of Outputs for SubSystem: '/Level 5' */ break; } - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step -1 R (Entry Condition)' */ + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/Step -1 R (Entry Condition)' */ break; case 0: - /* Outputs for IfAction SubSystem: '/Step 0 R' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Step 0 R' incorporates: + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read1' + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read1' */ switch (rtB.Merge_b) { case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 0' incorporates: + * ActionPort: '/Action Port' */ Level0(&rtB.Merge_c); - /* End of Outputs for SubSystem: '/Level 0' */ + /* End of Outputs for SubSystem: '/Level 0' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 1' incorporates: + * ActionPort: '/Action Port' */ Level0(&rtB.Merge_c); - /* End of Outputs for SubSystem: '/Level 1' */ + /* End of Outputs for SubSystem: '/Level 1' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 2' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Blower_RR = 10U; - /* DataStoreWrite: '/Data Store Write10' incorporates: - * Constant: '/Constant4' + /* DataStoreWrite: '/Data Store Write10' incorporates: + * Constant: '/Constant4' */ rtDW.Dtg_RR = 65U; - /* MATLAB Function: '/incar filter up' incorporates: - * DataStoreRead: '/Data Store Read1' + /* MATLAB Function: '/incar filter up' incorporates: + * DataStoreRead: '/Data Store Read1' */ - incarfilterup_i(rtB.Merge_b, &rtb_Gain_ge); + incarfilterup_i(rtB.Merge_b, &rtb_Gain_l); - /* MATLAB Function: '/incar filter down' incorporates: - * DataStoreRead: '/Data Store Read2' + /* MATLAB Function: '/incar filter down' incorporates: + * DataStoreRead: '/Data Store Read2' */ - incarfilterdown_c(rtB.Merge_b, &rtb_Gain_ge); + incarfilterdown_c(rtB.Merge_b, &rtb_Gain_l); - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Mode - foot' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Mode - foot' */ rtDW.Mode_RR = 60U; - /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' incorporates: + * DataStoreRead: '/Data Store Read3' */ /* : out = int16(g_assSTART_COOLANT_STEP0_TO_1(LVL + 3)); */ - y = (int32_t)(rtB.Merge_b + 3U); + i = (int32_t)(rtB.Merge_b + 3U); if (rtB.Merge_b + 3U > 255U) { - y = 255; + i = 255; } - /* Merge: '/Merge' incorporates: - * DataStoreRead: '/Engine coolant temp' - * MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' + /* Merge: '/Merge' incorporates: + * DataStoreRead: '/Engine coolant temp' + * MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch' */ - rtB.Merge_c = (int8_t)(rtDW.ECT > g_assSTART_COOLANT_STEP0_TO_1[y - 1]); + rtB.Merge_c = (int8_t)(rtDW.ECT > g_assSTART_COOLANT_STEP0_TO_1[i - 1]); - /* End of Outputs for SubSystem: '/Level 2' */ + /* End of Outputs for SubSystem: '/Level 2' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 3' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write5' incorporates: - * Constant: '/Constant2' + /* DataStoreWrite: '/Data Store Write5' incorporates: + * Constant: '/Constant2' */ rtDW.Blower_RR = 10U; - /* DataStoreWrite: '/Data Store Write10' incorporates: - * Constant: '/Constant4' + /* DataStoreWrite: '/Data Store Write10' incorporates: + * Constant: '/Constant4' */ rtDW.Dtg_RR = 65U; - /* MATLAB Function: '/incar filter up' incorporates: - * DataStoreRead: '/Data Store Read1' + /* MATLAB Function: '/incar filter up' incorporates: + * DataStoreRead: '/Data Store Read1' */ - incarfilterup_i(rtB.Merge_b, &rtb_Gain_ge); + incarfilterup_i(rtB.Merge_b, &rtb_Gain_l); - /* MATLAB Function: '/incar filter down' incorporates: - * DataStoreRead: '/Data Store Read2' + /* MATLAB Function: '/incar filter down' incorporates: + * DataStoreRead: '/Data Store Read2' */ - incarfilterdown_c(rtB.Merge_b, &rtb_Gain_ge); + incarfilterdown_c(rtB.Merge_b, &rtb_Gain_l); - /* DataStoreWrite: '/Data Store Write2' incorporates: - * Constant: '/Mode - foot' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Mode - foot' */ rtDW.Mode_RR = 60U; - /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/g_assSTART_COOLANT_STEP0_TO_1 ' incorporates: + * DataStoreRead: '/Data Store Read3' */ g_assSTART_COOLANT_STEP0_TO_1_e(rtB.Merge_b, &Incar_RR); - /* Merge: '/Merge' incorporates: - * DataStoreRead: '/Engine coolant temp' - * RelationalOperator: '/Relational Operator' - * Switch: '/Switch' + /* Merge: '/Merge' incorporates: + * DataStoreRead: '/Engine coolant temp' + * RelationalOperator: '/Relational Operator' + * Switch: '/Switch' */ rtB.Merge_c = (int8_t)(rtDW.ECT > Incar_RR); - /* End of Outputs for SubSystem: '/Level 3' */ + /* End of Outputs for SubSystem: '/Level 3' */ break; case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 4' incorporates: + * ActionPort: '/Action Port' */ - Level4_m(&rtB.Merge_c, &FIU_SET_RR, &rtDW.Blower_RR, &Dtg_FUR, - &rtDW.Dtg_RR, &rtDW.ECT, &rtb_Gain2_hu, &rtb_Gain_ge, + Level4_m(&rtB.Merge_c, &rtb_out_b, &rtDW.Blower_RR, &Dtg_FUR, + &rtDW.Dtg_RR, &rtDW.ECT, &rtb_Gain2_hu, &rtb_Gain_l, &rtB.Merge_b, &El_window_heating, &rtDW.Mode_RR, &Valve_2_way, &rtb_u_cuz); - /* End of Outputs for SubSystem: '/Level 4' */ + /* End of Outputs for SubSystem: '/Level 4' */ break; case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 5' incorporates: + * ActionPort: '/Action Port' */ - Level4_m(&rtB.Merge_c, &FIU_SET_RR, &rtDW.Blower_RR, &Dtg_FUR, - &rtDW.Dtg_RR, &rtDW.ECT, &rtb_Gain2_hu, &rtb_Gain_ge, + Level4_m(&rtB.Merge_c, &rtb_out_b, &rtDW.Blower_RR, &Dtg_FUR, + &rtDW.Dtg_RR, &rtDW.ECT, &rtb_Gain2_hu, &rtb_Gain_l, &rtB.Merge_b, &El_window_heating, &rtDW.Mode_RR, &Valve_2_way, &rtb_u_cuz); - /* End of Outputs for SubSystem: '/Level 5' */ + /* End of Outputs for SubSystem: '/Level 5' */ break; } - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step 0 R' */ + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/Step 0 R' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Step 1 R' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Step 1 R' incorporates: + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read1' + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read1' */ switch (rtB.Merge_b) { case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 0' incorporates: + * ActionPort: '/Action Port' */ - Level0_b(&rtB.Merge_c, &FIU_SET_RR, &rtDW.Blower_RR, &Dtg_FUR, - &rtDW.Dtg_RR, &Incar_RR, &rtb_Gain2_hu, &rtb_Gain_ge, + Level0_b(&rtB.Merge_c, &rtb_out_b, &rtDW.Blower_RR, &Dtg_FUR, + &rtDW.Dtg_RR, &Incar_RR, &rtb_Gain2_hu, &rtb_Gain_l, &rtB.Merge_b, &El_window_heating, &rtDW.Mode_RR, &rtb_Divide1, &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, &rtDW.Level0_bc); - /* End of Outputs for SubSystem: '/Level 0' */ + /* End of Outputs for SubSystem: '/Level 0' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 1' incorporates: + * ActionPort: '/Action Port' */ - Level0_b(&rtB.Merge_c, &FIU_SET_RR, &rtDW.Blower_RR, &Dtg_FUR, - &rtDW.Dtg_RR, &Incar_RR, &rtb_Gain2_hu, &rtb_Gain_ge, + Level0_b(&rtB.Merge_c, &rtb_out_b, &rtDW.Blower_RR, &Dtg_FUR, + &rtDW.Dtg_RR, &Incar_RR, &rtb_Gain2_hu, &rtb_Gain_l, &rtB.Merge_b, &El_window_heating, &rtDW.Mode_RR, &rtb_Divide1, &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, &rtDW.Level1_d3); - /* End of Outputs for SubSystem: '/Level 1' */ + /* End of Outputs for SubSystem: '/Level 1' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 2' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write2' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/Data Store Read6' - * MATLAB Function: '/2 way valve' - * MATLAB Function: '/incar filter down' - * MATLAB Function: '/incar filter up' - * MATLAB Function: '/mode rear step 1' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/Data Store Read6' + * MATLAB Function: '/2 way valve' + * MATLAB Function: '/incar filter down' + * MATLAB Function: '/incar filter up' + * MATLAB Function: '/mode rear step 1' */ uwayvalve(rtB.Merge_b, &rtDW.Mode_RR); incarfilterup_i(rtB.Merge_b, &rtDW.Mode_RR); incarfilterdown_c(rtB.Merge_b, &rtDW.Mode_RR); moderearstep1(rtB.Merge_b, &rtDW.Mode_RR); - /* MATLAB Function: '/blower start finish' incorporates: - * DataStoreRead: '/Data Store Read7' + /* MATLAB Function: '/blower start finish' incorporates: + * DataStoreRead: '/Data Store Read7' */ - blowerstartfinish(rtB.Merge_b, rtb_out_jq); + blowerstartfinish(rtB.Merge_b, rtb_out_bdd); - /* MATLAB Function: '/ECT min max' */ + /* 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_j4[0] = g_assSTART_COOLANT_STEP0_TO_1[4]; - rtb_out_j4[1] = g_assSTART_COOLANT_TO_STEP2[1]; + rtb_out_mn[0] = g_assSTART_COOLANT_STEP0_TO_1[4]; + rtb_out_mn[1] = g_assSTART_COOLANT_TO_STEP2[1]; - /* Lookup_n-D: '/blower для текущего ECT' incorporates: - * DataStoreRead: '/engine coolant temp' - * DataStoreWrite: '/Data Store Write5' + /* Lookup_n-D: '/blower для текущего ECT' incorporates: + * DataStoreRead: '/engine coolant temp' + * DataStoreWrite: '/Data Store Write5' */ - rtDW.Blower_RR = look1_iu16bs16lu64n32_binlcse(rtDW.ECT, rtb_out_j4, - rtb_out_jq, 1U); + rtDW.Blower_RR = look1_iu16bs16lu64n32_binlcse(rtDW.ECT, rtb_out_mn, + rtb_out_bdd, 1U); - /* DataStoreWrite: '/Data Store Write10' incorporates: - * DataStoreRead: '/Data Store Read8' - * MATLAB Function: '/Dtg_rear' + /* DataStoreWrite: '/Data Store Write10' incorporates: + * DataStoreRead: '/Data Store Read8' + * MATLAB Function: '/Dtg_rear' */ Dtg_rear(rtB.Merge_b, &rtDW.Dtg_RR); - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' */ rtb_LogicalOperator1 = (rtDW.step_start_controle_rear == 1); - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read3' */ Incartempgotofromstep1tostep2_j(rtB.Merge_b, &Incar_FL); - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' + /* Sum: '/Subtract' incorporates: + * DataStoreRead: '/Data Store Read4' + * UnitDelay: '/t_start_delay_private ' */ rtb_dt_fa = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_em; - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read4' */ Timegotofromstep1tostep2_l(rtB.Merge_b, &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 ' */ /* : out = int16(g_assSTART_COOLANT_TO_STEP2(2)); */ if (rtb_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_cp)) { rtDW.t_start_delay_private_DSTATE_em = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/engine coolant temp' - * DataStoreRead: '/incar temp' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * MATLAB Function: '/g_assSTART_COOLANT_TO_STEP2 ' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/engine coolant temp' + * DataStoreRead: '/incar temp' + * Gain: '/из сек в мс' + * Logic: '/Logical Operator' + * MATLAB Function: '/g_assSTART_COOLANT_TO_STEP2 ' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' */ if ((Incar_RR > Incar_FL) || (rtb_dt_fa > (uint16_t)(1000 * Eva_F)) || (rtDW.ECT > g_assSTART_COOLANT_TO_STEP2[1])) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' + /* Merge: '/Merge' incorporates: + * Constant: '/go to next step' */ rtB.Merge_c = 2; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step 1' + /* Merge: '/Merge' incorporates: + * Constant: '/stay at step 1' */ rtB.Merge_c = 1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_cp = rtb_LogicalOperator1; - /* End of Outputs for SubSystem: '/Level 2' */ + /* End of Outputs for SubSystem: '/Level 2' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 3' incorporates: + * ActionPort: '/Action Port' */ - /* DataStoreWrite: '/Data Store Write2' incorporates: - * DataStoreRead: '/Data Store Read1' - * DataStoreRead: '/Data Store Read2' - * DataStoreRead: '/Data Store Read5' - * DataStoreRead: '/Data Store Read6' - * MATLAB Function: '/2 way valve' - * MATLAB Function: '/incar filter down' - * MATLAB Function: '/incar filter up' - * MATLAB Function: '/mode rear step 1' + /* DataStoreWrite: '/Data Store Write2' incorporates: + * DataStoreRead: '/Data Store Read1' + * DataStoreRead: '/Data Store Read2' + * DataStoreRead: '/Data Store Read5' + * DataStoreRead: '/Data Store Read6' + * MATLAB Function: '/2 way valve' + * MATLAB Function: '/incar filter down' + * MATLAB Function: '/incar filter up' + * MATLAB Function: '/mode rear step 1' */ uwayvalve(rtB.Merge_b, &rtDW.Mode_RR); incarfilterup_i(rtB.Merge_b, &rtDW.Mode_RR); incarfilterdown_c(rtB.Merge_b, &rtDW.Mode_RR); moderearstep1(rtB.Merge_b, &rtDW.Mode_RR); - /* MATLAB Function: '/blower start finish' incorporates: - * DataStoreRead: '/Data Store Read7' + /* MATLAB Function: '/blower start finish' incorporates: + * DataStoreRead: '/Data Store Read7' */ - blowerstartfinish(rtB.Merge_b, rtb_out_jq); + blowerstartfinish(rtB.Merge_b, rtb_out_bdd); - /* MATLAB Function: '/ECT min max' incorporates: - * DataStoreRead: '/Data Store Read7' + /* MATLAB Function: '/ECT min max' incorporates: + * DataStoreRead: '/Data Store Read7' */ - ECTminmax_l(rtB.Merge_b, rtb_out_j4); + ECTminmax_l(rtB.Merge_b, rtb_out_mn); - /* Lookup_n-D: '/blower для текущего ECT' incorporates: - * DataStoreRead: '/engine coolant temp' - * DataStoreWrite: '/Data Store Write5' + /* Lookup_n-D: '/blower для текущего ECT' incorporates: + * DataStoreRead: '/engine coolant temp' + * DataStoreWrite: '/Data Store Write5' */ - rtDW.Blower_RR = look1_iu16bs16lu64n32_binlcse(rtDW.ECT, rtb_out_j4, - rtb_out_jq, 1U); + rtDW.Blower_RR = look1_iu16bs16lu64n32_binlcse(rtDW.ECT, rtb_out_mn, + rtb_out_bdd, 1U); - /* DataStoreWrite: '/Data Store Write10' incorporates: - * DataStoreRead: '/Data Store Read8' - * MATLAB Function: '/Dtg_rear' + /* DataStoreWrite: '/Data Store Write10' incorporates: + * DataStoreRead: '/Data Store Read8' + * MATLAB Function: '/Dtg_rear' */ Dtg_rear(rtB.Merge_b, &rtDW.Dtg_RR); - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' */ rtb_LogicalOperator1 = (rtDW.step_start_controle_rear == 1); - /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read3' + /* MATLAB Function: '/Incar temp goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read3' */ Incartempgotofromstep1tostep2_j(rtB.Merge_b, &Incar_FL); - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' + /* Sum: '/Subtract' incorporates: + * DataStoreRead: '/Data Store Read4' + * UnitDelay: '/t_start_delay_private ' */ rtb_dt_fa = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_o; - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read4' */ Timegotofromstep1tostep2_l(rtB.Merge_b, &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 ' */ /* : out = int16(g_assSTART_COOLANT_TO_STEP2(3)); */ if (rtb_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_aw)) { rtDW.t_start_delay_private_DSTATE_o = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/engine coolant temp' - * DataStoreRead: '/incar temp' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * MATLAB Function: '/g_assSTART_COOLANT_TO_STEP2 ' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/engine coolant temp' + * DataStoreRead: '/incar temp' + * Gain: '/из сек в мс' + * Logic: '/Logical Operator' + * MATLAB Function: '/g_assSTART_COOLANT_TO_STEP2 ' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' */ if ((Incar_RR > Incar_FL) || (rtb_dt_fa > (uint16_t)(1000 * Eva_F)) || (rtDW.ECT > g_assSTART_COOLANT_TO_STEP2[2])) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' + /* Merge: '/Merge' incorporates: + * Constant: '/go to next step' */ rtB.Merge_c = 2; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step 1' + /* Merge: '/Merge' incorporates: + * Constant: '/stay at step 1' */ rtB.Merge_c = 1; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_aw = rtb_LogicalOperator1; - /* End of Outputs for SubSystem: '/Level 3' */ + /* End of Outputs for SubSystem: '/Level 3' */ break; case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 4' incorporates: + * ActionPort: '/Action Port' */ - Level4_d(&rtB.Merge_c, &FIU_SET_RR, &rtDW.Blower_RR, &Dtg_FUR, - &rtDW.Dtg_RR, &rtDW.ECT, &Incar_RR, &rtb_Gain2_hu, &rtb_Gain_ge, + Level4_d(&rtB.Merge_c, &rtb_out_b, &rtDW.Blower_RR, &Dtg_FUR, + &rtDW.Dtg_RR, &rtDW.ECT, &Incar_RR, &rtb_Gain2_hu, &rtb_Gain_l, &rtB.Merge_b, &El_window_heating, &rtDW.Mode_RR, &rtb_Divide1, &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, &rtDW.Level4_dp); - /* End of Outputs for SubSystem: '/Level 4' */ + /* End of Outputs for SubSystem: '/Level 4' */ break; case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 5' incorporates: + * ActionPort: '/Action Port' */ - Level4_d(&rtB.Merge_c, &FIU_SET_RR, &rtDW.Blower_RR, &Dtg_FUR, - &rtDW.Dtg_RR, &rtDW.ECT, &Incar_RR, &rtb_Gain2_hu, &rtb_Gain_ge, + Level4_d(&rtB.Merge_c, &rtb_out_b, &rtDW.Blower_RR, &Dtg_FUR, + &rtDW.Dtg_RR, &rtDW.ECT, &Incar_RR, &rtb_Gain2_hu, &rtb_Gain_l, &rtB.Merge_b, &El_window_heating, &rtDW.Mode_RR, &rtb_Divide1, &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, &rtDW.Level5_f); - /* End of Outputs for SubSystem: '/Level 5' */ + /* End of Outputs for SubSystem: '/Level 5' */ break; } - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step 1 R' */ + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/Step 1 R' */ break; case 2: - /* Outputs for IfAction SubSystem: '/Step 2 R' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Step 2 R' incorporates: + * ActionPort: '/Action Port' */ - /* SwitchCase: '/Switch Case' incorporates: - * DataStoreRead: '/Data Store Read1' + /* SwitchCase: '/Switch Case' incorporates: + * DataStoreRead: '/Data Store Read1' */ switch (rtB.Merge_b) { case 0: - /* Outputs for IfAction SubSystem: '/Level 0' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 0' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/2 way valve' incorporates: - * DataStoreRead: '/Data Store Read6' + /* MATLAB Function: '/2 way valve' incorporates: + * DataStoreRead: '/Data Store Read6' */ - uwayvalve(rtB.Merge_b, &rtb_Gain_ge); + uwayvalve(rtB.Merge_b, &rtb_Gain_l); - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read8' + /* MATLAB Function: '/step' incorporates: + * DataStoreRead: '/Data Store Read8' */ - Dtg_rear(rtB.Merge_b, &rtb_Gain_ge); + Dtg_rear(rtB.Merge_b, &rtb_Gain_l); - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read8' + /* MATLAB Function: '/time for step' incorporates: + * DataStoreRead: '/Data Store Read8' */ timeforstep_jn(rtB.Merge_b, &rtb_Gain2_hu); - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write10' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint8_t)(rtDW.Dtg_RR - rtDW.Dtg_logic_RR) <= 0.01) { - rtDW.Dtg_RR = rtDW.Dtg_logic_RR; - } else { - if (rtDW.Dtg_RR <= rtDW.Dtg_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - y = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - y = -1; - } - - rtDW.Dtg_RR = (uint8_t)((double)rtb_Gain_ge / (double)rtb_Gain2_hu / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_d) * (double)y - + (double)rtDW.Dtg_RR); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/incar filter up' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - incarfilterup_i(rtB.Merge_b, &rtb_Gain_ge); - - /* MATLAB Function: '/incar filter down' incorporates: - * DataStoreRead: '/Data Store Read2' - */ - incarfilterdown_c(rtB.Merge_b, &rtb_Gain_ge); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_Gain2_hu = (uint8_t)(rtDW.Mode_RR - rtDW.Mode_logic_RR); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - rtb_LogicalOperator1 = (rtb_Gain2_hu <= 0.01); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - step_a(rtB.Merge_b, &rtb_Gain_ge); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - timeforstep_h(rtB.Merge_b, &rtb_Gain2_hu); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write2' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if (rtb_LogicalOperator1) { - rtDW.Mode_RR = rtDW.Mode_logic_RR; - } else { - if (rtDW.Mode_RR <= rtDW.Mode_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - y = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - y = -1; - } - - rtDW.Mode_RR = (uint8_t)((double)rtb_Gain_ge / (double)rtb_Gain2_hu / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_nc) * (double)y - + (double)rtDW.Mode_RR); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/blower step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstep_d(rtB.Merge_b, &FIU_SET_RR); - - /* MATLAB Function: '/blower time for step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowertimeforstep_l(rtB.Merge_b, &rtb_out_oc); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write5' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write10' + * Product: '/Product1' + * Product: '/change rate (dtg//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' * RelationalOperator: '/Relational Operator' * RelationalOperator: '/Relational Operator' - * Sum: '/Add' + * Sum: '/Add' * Sum: '/Add' * Sum: '/Subtract' * Switch: '/Switch' * UnitDelay: '/Unit Delay' */ - if ((uint16_t)(rtDW.Blower_RR - rtDW.Blower_logic_RR) <= 0.01) { - rtDW.Blower_RR = rtDW.Blower_logic_RR; + if ((uint8_t)(rtDW.Dtg_RR - rtDW.Dtg_logic_RR) <= 0.01) { + rtDW.Dtg_RR = rtDW.Dtg_logic_RR; } else { - if (rtDW.Blower_RR <= rtDW.Blower_logic_RR) { + if (rtDW.Dtg_RR <= rtDW.Dtg_logic_RR) { /* Switch: '/Switch' incorporates: * Constant: '/Constant' */ - y = 1; + i = 1; } else { /* Switch: '/Switch' incorporates: * Constant: '/Constant1' */ - y = -1; + i = -1; } - rtDW.Blower_RR = (uint16_t)((double)FIU_SET_RR / (double)rtb_out_oc / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_hs) * (double)y + rtDW.Dtg_RR = (uint8_t)((double)rtb_Gain_l / (double)rtb_Gain2_hu / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_d) * (double)i + + (double)rtDW.Dtg_RR); + } + + /* End of Switch: '/Switch' */ + + /* MATLAB Function: '/incar filter up' incorporates: + * DataStoreRead: '/Data Store Read1' + */ + incarfilterup_i(rtB.Merge_b, &rtb_Gain_l); + + /* MATLAB Function: '/incar filter down' incorporates: + * DataStoreRead: '/Data Store Read2' + */ + incarfilterdown_c(rtB.Merge_b, &rtb_Gain_l); + + /* Sum: '/Add' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + */ + rtb_Gain2_hu = (uint8_t)(rtDW.Mode_RR - rtDW.Mode_logic_RR); + + /* RelationalOperator: '/Relational Operator' incorporates: + * Constant: '/epsilon' + */ + rtb_LogicalOperator1 = (rtb_Gain2_hu <= 0.01); + + /* MATLAB Function: '/step' incorporates: + * DataStoreRead: '/Data Store Read5' + */ + step_a(rtB.Merge_b, &rtb_Gain_l); + + /* MATLAB Function: '/time for step' incorporates: + * DataStoreRead: '/Data Store Read5' + */ + timeforstep_h(rtB.Merge_b, &rtb_Gain2_hu); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write2' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + if (rtb_LogicalOperator1) { + rtDW.Mode_RR = rtDW.Mode_logic_RR; + } else { + if (rtDW.Mode_RR <= rtDW.Mode_logic_RR) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + i = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + i = -1; + } + + rtDW.Mode_RR = (uint8_t)((double)rtb_Gain_l / (double)rtb_Gain2_hu / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_nc) * (double)i + + (double)rtDW.Mode_RR); + } + + /* End of Switch: '/Switch' */ + + /* MATLAB Function: '/blower step' incorporates: + * DataStoreRead: '/Data Store Read7' + */ + blowerstep_d(rtB.Merge_b, &rtb_out_b); + + /* MATLAB Function: '/blower time for step' incorporates: + * DataStoreRead: '/Data Store Read7' + */ + blowertimeforstep_l(rtB.Merge_b, &rtb_out_lw); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write5' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + if ((uint16_t)(rtDW.Blower_RR - rtDW.Blower_logic_RR) <= 0.01) { + rtDW.Blower_RR = rtDW.Blower_logic_RR; + } else { + if (rtDW.Blower_RR <= rtDW.Blower_logic_RR) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + i = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + i = -1; + } + + rtDW.Blower_RR = (uint16_t)((double)rtb_out_b / (double)rtb_out_lw / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_hs) * (double)i + (double)rtDW.Blower_RR); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' */ rtb_LogicalOperator1 = (rtDW.step_start_controle_rear == 2); - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' + /* Sum: '/Subtract' incorporates: + * DataStoreRead: '/Data Store Read4' + * UnitDelay: '/t_start_delay_private ' */ rtb_dt_fa = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_fvm; - /* 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_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_i5)) { rtDW.t_start_delay_private_DSTATE_fvm = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read4' */ Timegotofromstep1tostep2_l(rtB.Merge_b, &Incar_RR); - /* Switch: '/Switch' incorporates: - * Gain: '/из сек в мс' - * RelationalOperator: '/Relational Operator1' + /* Switch: '/Switch' incorporates: + * Gain: '/из сек в мс' + * RelationalOperator: '/Relational Operator1' */ if (rtb_dt_fa > (uint16_t)(1000 * Incar_RR)) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' + /* Merge: '/Merge' incorporates: + * Constant: '/go to next step' */ rtB.Merge_c = 3; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step' + /* Merge: '/Merge' incorporates: + * Constant: '/stay at step' */ rtB.Merge_c = 2; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ rtDW.UnitDelay_DSTATE_d = rtDW.t_now; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ rtDW.UnitDelay_DSTATE_nc = rtDW.t_now; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ rtDW.UnitDelay_DSTATE_hs = rtDW.t_now; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_i5 = rtb_LogicalOperator1; - /* End of Outputs for SubSystem: '/Level 0' */ + /* End of Outputs for SubSystem: '/Level 0' */ break; case 1: - /* Outputs for IfAction SubSystem: '/Level 1' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 1' incorporates: + * ActionPort: '/Action Port' */ - /* MATLAB Function: '/2 way valve' incorporates: - * DataStoreRead: '/Data Store Read6' + /* MATLAB Function: '/2 way valve' incorporates: + * DataStoreRead: '/Data Store Read6' */ - uwayvalve(rtB.Merge_b, &rtb_Gain_ge); + uwayvalve(rtB.Merge_b, &rtb_Gain_l); - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read8' + /* MATLAB Function: '/step' incorporates: + * DataStoreRead: '/Data Store Read8' */ - Dtg_rear(rtB.Merge_b, &rtb_Gain_ge); + Dtg_rear(rtB.Merge_b, &rtb_Gain_l); - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read8' + /* MATLAB Function: '/time for step' incorporates: + * DataStoreRead: '/Data Store Read8' */ timeforstep_jn(rtB.Merge_b, &rtb_Gain2_hu); - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write10' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if ((uint8_t)(rtDW.Dtg_RR - rtDW.Dtg_logic_RR) <= 0.01) { - rtDW.Dtg_RR = rtDW.Dtg_logic_RR; - } else { - if (rtDW.Dtg_RR <= rtDW.Dtg_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - y = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - y = -1; - } - - rtDW.Dtg_RR = (uint8_t)((double)rtb_Gain_ge / (double)rtb_Gain2_hu / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_g) * (double)y - + (double)rtDW.Dtg_RR); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/incar filter up' incorporates: - * DataStoreRead: '/Data Store Read1' - */ - incarfilterup_i(rtB.Merge_b, &rtb_Gain_ge); - - /* MATLAB Function: '/incar filter down' incorporates: - * DataStoreRead: '/Data Store Read2' - */ - incarfilterdown_c(rtB.Merge_b, &rtb_Gain_ge); - - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - */ - rtb_Gain2_hu = (uint8_t)(rtDW.Mode_RR - rtDW.Mode_logic_RR); - - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' - */ - rtb_LogicalOperator1 = (rtb_Gain2_hu <= 0.01); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - step_a(rtB.Merge_b, &rtb_Gain_ge); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - timeforstep_h(rtB.Merge_b, &rtb_Gain2_hu); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write2' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ - if (rtb_LogicalOperator1) { - rtDW.Mode_RR = rtDW.Mode_logic_RR; - } else { - if (rtDW.Mode_RR <= rtDW.Mode_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - y = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - y = -1; - } - - rtDW.Mode_RR = (uint8_t)((double)rtb_Gain_ge / (double)rtb_Gain2_hu / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_p) * (double)y - + (double)rtDW.Mode_RR); - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/blower step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowerstep_d(rtB.Merge_b, &FIU_SET_RR); - - /* MATLAB Function: '/blower time for step' incorporates: - * DataStoreRead: '/Data Store Read7' - */ - blowertimeforstep_l(rtB.Merge_b, &rtb_out_oc); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write5' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write10' + * Product: '/Product1' + * Product: '/change rate (dtg//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' * RelationalOperator: '/Relational Operator' * RelationalOperator: '/Relational Operator' - * Sum: '/Add' + * Sum: '/Add' * Sum: '/Add' * Sum: '/Subtract' * Switch: '/Switch' * UnitDelay: '/Unit Delay' */ - if ((uint16_t)(rtDW.Blower_RR - rtDW.Blower_logic_RR) <= 0.01) { - rtDW.Blower_RR = rtDW.Blower_logic_RR; - } else { - if (rtDW.Blower_RR <= rtDW.Blower_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - */ - y = 1; - } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' - */ - y = -1; - } - - rtDW.Blower_RR = (uint16_t)((double)FIU_SET_RR / (double)rtb_out_oc / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_j) * (double)y - + (double)rtDW.Blower_RR); - } - - /* End of Switch: '/Switch' */ - - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' - */ - rtb_LogicalOperator1 = (rtDW.step_start_controle_rear == 2); - - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' - */ - rtb_dt_fa = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_jh; - - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read4' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (rtb_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_j)) { - rtDW.t_start_delay_private_DSTATE_jh = rtDW.t_now; - } - - /* End of Switch: '/Switch' */ - - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' - */ - Timegotofromstep1tostep2_l(rtB.Merge_b, &Incar_RR); - - /* Switch: '/Switch' incorporates: - * Gain: '/из сек в мс' - * RelationalOperator: '/Relational Operator1' - */ - if (rtb_dt_fa > (uint16_t)(1000 * Incar_RR)) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' - */ - rtB.Merge_c = 3; - } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step' - */ - rtB.Merge_c = 2; - } - - /* End of Switch: '/Switch' */ - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_g = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_p = rtDW.t_now; - - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' - */ - rtDW.UnitDelay_DSTATE_j = rtDW.t_now; - - /* Update for UnitDelay: '/Cond_prev_private ' */ - rtDW.Cond_prev_private_DSTATE_j = rtb_LogicalOperator1; - - /* End of Outputs for SubSystem: '/Level 1' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/Level 2' incorporates: - * ActionPort: '/Action Port' - */ - /* MATLAB Function: '/2 way valve' incorporates: - * DataStoreRead: '/Data Store Read6' - */ - uwayvalve(rtB.Merge_b, &rtb_Gain_ge); - - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - Dtg_rear(rtB.Merge_b, &rtb_Gain_ge); - - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read8' - */ - timeforstep_jn(rtB.Merge_b, &rtb_Gain2_hu); - - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write10' - * Product: '/Product1' - * Product: '/change rate (dtg//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' - */ if ((uint8_t)(rtDW.Dtg_RR - rtDW.Dtg_logic_RR) <= 0.01) { rtDW.Dtg_RR = rtDW.Dtg_logic_RR; } else { if (rtDW.Dtg_RR <= rtDW.Dtg_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' */ - y = 1; + i = 1; } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' */ - y = -1; + i = -1; } - rtDW.Dtg_RR = (uint8_t)((double)rtb_Gain_ge / (double)rtb_Gain2_hu / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE) * (double)y + - (double)rtDW.Dtg_RR); + rtDW.Dtg_RR = (uint8_t)((double)rtb_Gain_l / (double)rtb_Gain2_hu / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_g) * (double)i + + (double)rtDW.Dtg_RR); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/incar filter up' incorporates: - * DataStoreRead: '/Data Store Read1' + /* MATLAB Function: '/incar filter up' incorporates: + * DataStoreRead: '/Data Store Read1' */ - incarfilterup_i(rtB.Merge_b, &rtb_Gain_ge); + incarfilterup_i(rtB.Merge_b, &rtb_Gain_l); - /* MATLAB Function: '/incar filter down' incorporates: - * DataStoreRead: '/Data Store Read2' + /* MATLAB Function: '/incar filter down' incorporates: + * DataStoreRead: '/Data Store Read2' */ - incarfilterdown_c(rtB.Merge_b, &rtb_Gain_ge); + incarfilterdown_c(rtB.Merge_b, &rtb_Gain_l); - /* Sum: '/Add' incorporates: - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' + /* Sum: '/Add' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' */ rtb_Gain2_hu = (uint8_t)(rtDW.Mode_RR - rtDW.Mode_logic_RR); - /* RelationalOperator: '/Relational Operator' incorporates: - * Constant: '/epsilon' + /* RelationalOperator: '/Relational Operator' incorporates: + * Constant: '/epsilon' */ rtb_LogicalOperator1 = (rtb_Gain2_hu <= 0.01); - /* MATLAB Function: '/step' incorporates: - * DataStoreRead: '/Data Store Read5' + /* MATLAB Function: '/step' incorporates: + * DataStoreRead: '/Data Store Read5' */ - step_a(rtB.Merge_b, &rtb_Gain_ge); + step_a(rtB.Merge_b, &rtb_Gain_l); - /* MATLAB Function: '/time for step' incorporates: - * DataStoreRead: '/Data Store Read5' + /* MATLAB Function: '/time for step' incorporates: + * DataStoreRead: '/Data Store Read5' */ timeforstep_h(rtB.Merge_b, &rtb_Gain2_hu); - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write2' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write2' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' */ if (rtb_LogicalOperator1) { rtDW.Mode_RR = rtDW.Mode_logic_RR; } else { if (rtDW.Mode_RR <= rtDW.Mode_logic_RR) { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' */ - y = 1; + i = 1; } else { - /* Switch: '/Switch' incorporates: - * Constant: '/Constant1' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' */ - y = -1; + i = -1; } - rtDW.Mode_RR = (uint8_t)((double)rtb_Gain_ge / (double)rtb_Gain2_hu / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_h) * (double)y + rtDW.Mode_RR = (uint8_t)((double)rtb_Gain_l / (double)rtb_Gain2_hu / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_p) * (double)i + (double)rtDW.Mode_RR); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* MATLAB Function: '/blower step' incorporates: - * DataStoreRead: '/Data Store Read7' + /* MATLAB Function: '/blower step' incorporates: + * DataStoreRead: '/Data Store Read7' */ - blowerstep_d(rtB.Merge_b, &FIU_SET_RR); + blowerstep_d(rtB.Merge_b, &rtb_out_b); - /* MATLAB Function: '/blower time for step' incorporates: - * DataStoreRead: '/Data Store Read7' + /* MATLAB Function: '/blower time for step' incorporates: + * DataStoreRead: '/Data Store Read7' */ - blowertimeforstep_l(rtB.Merge_b, &rtb_out_oc); + blowertimeforstep_l(rtB.Merge_b, &rtb_out_lw); - /* Switch: '/Switch' incorporates: - * Constant: '/Constant' - * Constant: '/epsilon' - * DataStoreRead: '/Текущее значение blower ' - * DataStoreRead: '/значение auto (в соответствии с логикой)' - * DataStoreRead: '/текущее время в мс' - * DataStoreWrite: '/Data Store Write5' - * Product: '/Product1' - * Product: '/change rate (step//sec)' - * Product: '/скорость в мс' - * Product: '/шаг изменения' - * RelationalOperator: '/Relational Operator' - * RelationalOperator: '/Relational Operator' - * Sum: '/Add' - * Sum: '/Add' - * Sum: '/Subtract' - * Switch: '/Switch' - * UnitDelay: '/Unit Delay' + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write5' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' */ if ((uint16_t)(rtDW.Blower_RR - rtDW.Blower_logic_RR) <= 0.01) { rtDW.Blower_RR = rtDW.Blower_logic_RR; } else { if (rtDW.Blower_RR <= rtDW.Blower_logic_RR) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + i = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + i = -1; + } + + rtDW.Blower_RR = (uint16_t)((double)rtb_out_b / (double)rtb_out_lw / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_j) * (double)i + + (double)rtDW.Blower_RR); + } + + /* End of Switch: '/Switch' */ + + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' + */ + rtb_LogicalOperator1 = (rtDW.step_start_controle_rear == 2); + + /* Sum: '/Subtract' incorporates: + * DataStoreRead: '/Data Store Read4' + * UnitDelay: '/t_start_delay_private ' + */ + rtb_dt_fa = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_jh; + + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read4' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' + * UnitDelay: '/Cond_prev_private ' + * UnitDelay: '/t_start_delay_private ' + */ + if (rtb_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_j)) { + rtDW.t_start_delay_private_DSTATE_jh = rtDW.t_now; + } + + /* End of Switch: '/Switch' */ + + /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read4' + */ + Timegotofromstep1tostep2_l(rtB.Merge_b, &Incar_RR); + + /* Switch: '/Switch' incorporates: + * Gain: '/из сек в мс' + * RelationalOperator: '/Relational Operator1' + */ + if (rtb_dt_fa > (uint16_t)(1000 * Incar_RR)) { + /* Merge: '/Merge' incorporates: + * Constant: '/go to next step' + */ + rtB.Merge_c = 3; + } else { + /* Merge: '/Merge' incorporates: + * Constant: '/stay at step' + */ + rtB.Merge_c = 2; + } + + /* End of Switch: '/Switch' */ + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' + */ + rtDW.UnitDelay_DSTATE_g = rtDW.t_now; + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' + */ + rtDW.UnitDelay_DSTATE_p = rtDW.t_now; + + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' + */ + rtDW.UnitDelay_DSTATE_j = rtDW.t_now; + + /* Update for UnitDelay: '/Cond_prev_private ' */ + rtDW.Cond_prev_private_DSTATE_j = rtb_LogicalOperator1; + + /* End of Outputs for SubSystem: '/Level 1' */ + break; + + case 2: + /* Outputs for IfAction SubSystem: '/Level 2' incorporates: + * ActionPort: '/Action Port' + */ + /* MATLAB Function: '/2 way valve' incorporates: + * DataStoreRead: '/Data Store Read6' + */ + uwayvalve(rtB.Merge_b, &rtb_Gain_l); + + /* MATLAB Function: '/step' incorporates: + * DataStoreRead: '/Data Store Read8' + */ + Dtg_rear(rtB.Merge_b, &rtb_Gain_l); + + /* MATLAB Function: '/time for step' incorporates: + * DataStoreRead: '/Data Store Read8' + */ + timeforstep_jn(rtB.Merge_b, &rtb_Gain2_hu); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write10' + * Product: '/Product1' + * Product: '/change rate (dtg//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + if ((uint8_t)(rtDW.Dtg_RR - rtDW.Dtg_logic_RR) <= 0.01) { + rtDW.Dtg_RR = rtDW.Dtg_logic_RR; + } else { + if (rtDW.Dtg_RR <= rtDW.Dtg_logic_RR) { /* Switch: '/Switch' incorporates: * Constant: '/Constant' */ - y = 1; + i = 1; } else { /* Switch: '/Switch' incorporates: * Constant: '/Constant1' */ - y = -1; + i = -1; } - rtDW.Blower_RR = (uint16_t)((double)FIU_SET_RR / (double)rtb_out_oc / - 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_n) * (double)y + rtDW.Dtg_RR = (uint8_t)((double)rtb_Gain_l / (double)rtb_Gain2_hu / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE) * (double)i + + (double)rtDW.Dtg_RR); + } + + /* End of Switch: '/Switch' */ + + /* MATLAB Function: '/incar filter up' incorporates: + * DataStoreRead: '/Data Store Read1' + */ + incarfilterup_i(rtB.Merge_b, &rtb_Gain_l); + + /* MATLAB Function: '/incar filter down' incorporates: + * DataStoreRead: '/Data Store Read2' + */ + incarfilterdown_c(rtB.Merge_b, &rtb_Gain_l); + + /* Sum: '/Add' incorporates: + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + */ + rtb_Gain2_hu = (uint8_t)(rtDW.Mode_RR - rtDW.Mode_logic_RR); + + /* RelationalOperator: '/Relational Operator' incorporates: + * Constant: '/epsilon' + */ + rtb_LogicalOperator1 = (rtb_Gain2_hu <= 0.01); + + /* MATLAB Function: '/step' incorporates: + * DataStoreRead: '/Data Store Read5' + */ + step_a(rtB.Merge_b, &rtb_Gain_l); + + /* MATLAB Function: '/time for step' incorporates: + * DataStoreRead: '/Data Store Read5' + */ + timeforstep_h(rtB.Merge_b, &rtb_Gain2_hu); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write2' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + if (rtb_LogicalOperator1) { + rtDW.Mode_RR = rtDW.Mode_logic_RR; + } else { + if (rtDW.Mode_RR <= rtDW.Mode_logic_RR) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + i = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + i = -1; + } + + rtDW.Mode_RR = (uint8_t)((double)rtb_Gain_l / (double)rtb_Gain2_hu / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_h) * (double)i + + (double)rtDW.Mode_RR); + } + + /* End of Switch: '/Switch' */ + + /* MATLAB Function: '/blower step' incorporates: + * DataStoreRead: '/Data Store Read7' + */ + blowerstep_d(rtB.Merge_b, &rtb_out_b); + + /* MATLAB Function: '/blower time for step' incorporates: + * DataStoreRead: '/Data Store Read7' + */ + blowertimeforstep_l(rtB.Merge_b, &rtb_out_lw); + + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + * Constant: '/epsilon' + * DataStoreRead: '/Текущее значение blower ' + * DataStoreRead: '/значение auto (в соответствии с логикой)' + * DataStoreRead: '/текущее время в мс' + * DataStoreWrite: '/Data Store Write5' + * Product: '/Product1' + * Product: '/change rate (step//sec)' + * Product: '/скорость в мс' + * Product: '/шаг изменения' + * RelationalOperator: '/Relational Operator' + * RelationalOperator: '/Relational Operator' + * Sum: '/Add' + * Sum: '/Add' + * Sum: '/Subtract' + * Switch: '/Switch' + * UnitDelay: '/Unit Delay' + */ + if ((uint16_t)(rtDW.Blower_RR - rtDW.Blower_logic_RR) <= 0.01) { + rtDW.Blower_RR = rtDW.Blower_logic_RR; + } else { + if (rtDW.Blower_RR <= rtDW.Blower_logic_RR) { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant' + */ + i = 1; + } else { + /* Switch: '/Switch' incorporates: + * Constant: '/Constant1' + */ + i = -1; + } + + rtDW.Blower_RR = (uint16_t)((double)rtb_out_b / (double)rtb_out_lw / + 1000.0 * (double)(rtDW.t_now - rtDW.UnitDelay_DSTATE_n) * (double)i + (double)rtDW.Blower_RR); } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* RelationalOperator: '/Equal' incorporates: - * DataStoreRead: '/current step' + /* RelationalOperator: '/Equal' incorporates: + * DataStoreRead: '/current step' */ rtb_LogicalOperator1 = (rtDW.step_start_controle_rear == 2); - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read4' - * UnitDelay: '/t_start_delay_private ' + /* Sum: '/Subtract' incorporates: + * DataStoreRead: '/Data Store Read4' + * UnitDelay: '/t_start_delay_private ' */ rtb_dt_fa = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_ed; - /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: - * DataStoreRead: '/Data Store Read4' + /* MATLAB Function: '/Time goto from step 1 to step 2 ' incorporates: + * DataStoreRead: '/Data Store Read4' */ Timegotofromstep1tostep2_l(rtB.Merge_b, &Incar_RR); - /* 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_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_ei)) { rtDW.t_start_delay_private_DSTATE_ed = rtDW.t_now; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read' - * Gain: '/из сек в мс' - * Logic: '/Logical Operator' - * RelationalOperator: '/Relational Operator1' + /* Switch: '/Switch' incorporates: + * DataStoreRead: '/Data Store Read' + * Gain: '/из сек в мс' + * Logic: '/Logical Operator' + * RelationalOperator: '/Relational Operator1' */ if ((rtb_dt_fa > (uint16_t)(1000 * Incar_RR)) || rtDW.HI_logic_on) { - /* Merge: '/Merge' incorporates: - * Constant: '/go to next step' + /* Merge: '/Merge' incorporates: + * Constant: '/go to next step' */ rtB.Merge_c = 3; } else { - /* Merge: '/Merge' incorporates: - * Constant: '/stay at step' + /* Merge: '/Merge' incorporates: + * Constant: '/stay at step' */ rtB.Merge_c = 2; } - /* End of Switch: '/Switch' */ + /* End of Switch: '/Switch' */ - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ rtDW.UnitDelay_DSTATE = rtDW.t_now; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ rtDW.UnitDelay_DSTATE_h = rtDW.t_now; - /* Update for UnitDelay: '/Unit Delay' incorporates: - * DataStoreRead: '/текущее время в мс' + /* Update for UnitDelay: '/Unit Delay' incorporates: + * DataStoreRead: '/текущее время в мс' */ rtDW.UnitDelay_DSTATE_n = rtDW.t_now; - /* Update for UnitDelay: '/Cond_prev_private ' */ + /* Update for UnitDelay: '/Cond_prev_private ' */ rtDW.Cond_prev_private_DSTATE_ei = rtb_LogicalOperator1; - /* End of Outputs for SubSystem: '/Level 2' */ + /* End of Outputs for SubSystem: '/Level 2' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Level 3' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 3' incorporates: + * ActionPort: '/Action Port' */ - Level3_i(&rtB.Merge_c, &FIU_SET_RR, &rtDW.Blower_RR, + Level3_i(&rtB.Merge_c, &rtb_out_b, &rtDW.Blower_RR, &rtDW.Blower_logic_RR, &Dtg_FUR, &rtDW.Dtg_RR, &rtDW.Dtg_logic_RR, &rtDW.HI_logic_on, &rtb_Gain2_hu, - &rtb_Gain_ge, &rtB.Merge_b, &El_window_heating, &rtDW.Mode_RR, + &rtb_Gain_l, &rtB.Merge_b, &El_window_heating, &rtDW.Mode_RR, &rtDW.Mode_logic_RR, &rtb_Divide1, &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, &rtDW.Level3_i0); - /* End of Outputs for SubSystem: '/Level 3' */ + /* End of Outputs for SubSystem: '/Level 3' */ break; case 4: - /* Outputs for IfAction SubSystem: '/Level 4' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 4' incorporates: + * ActionPort: '/Action Port' */ - Level3_i(&rtB.Merge_c, &FIU_SET_RR, &rtDW.Blower_RR, + Level3_i(&rtB.Merge_c, &rtb_out_b, &rtDW.Blower_RR, &rtDW.Blower_logic_RR, &Dtg_FUR, &rtDW.Dtg_RR, &rtDW.Dtg_logic_RR, &rtDW.HI_logic_on, &rtb_Gain2_hu, - &rtb_Gain_ge, &rtB.Merge_b, &El_window_heating, &rtDW.Mode_RR, + &rtb_Gain_l, &rtB.Merge_b, &El_window_heating, &rtDW.Mode_RR, &rtDW.Mode_logic_RR, &rtb_Divide1, &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, &rtDW.Level4_j); - /* End of Outputs for SubSystem: '/Level 4' */ + /* End of Outputs for SubSystem: '/Level 4' */ break; case 5: - /* Outputs for IfAction SubSystem: '/Level 5' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Level 5' incorporates: + * ActionPort: '/Action Port' */ - Level3_i(&rtB.Merge_c, &FIU_SET_RR, &rtDW.Blower_RR, + Level3_i(&rtB.Merge_c, &rtb_out_b, &rtDW.Blower_RR, &rtDW.Blower_logic_RR, &Dtg_FUR, &rtDW.Dtg_RR, &rtDW.Dtg_logic_RR, &rtDW.HI_logic_on, &rtb_Gain2_hu, - &rtb_Gain_ge, &rtB.Merge_b, &El_window_heating, &rtDW.Mode_RR, + &rtb_Gain_l, &rtB.Merge_b, &El_window_heating, &rtDW.Mode_RR, &rtDW.Mode_logic_RR, &rtb_Divide1, &Valve_2_way, &rtDW.step_start_controle_rear, &rtDW.t_now, &rtDW.Level5_e); - /* End of Outputs for SubSystem: '/Level 5' */ + /* End of Outputs for SubSystem: '/Level 5' */ break; } - /* End of SwitchCase: '/Switch Case' */ - /* End of Outputs for SubSystem: '/Step 2 R' */ + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/Step 2 R' */ break; case 3: - /* Outputs for IfAction SubSystem: '/Step 3 R' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Step 3 R' incorporates: + * ActionPort: '/Action Port' */ Step3F(&rtB.Merge_c, &rtDW.start_control_finished_front); - /* End of Outputs for SubSystem: '/Step 3 R' */ + /* End of Outputs for SubSystem: '/Step 3 R' */ break; } - /* End of SwitchCase: '/Switch Case' */ + /* End of SwitchCase: '/Switch Case' */ - /* DataStoreWrite: '/Data Store Write' */ + /* DataStoreWrite: '/Data Store Write' */ rtDW.step_start_controle_rear = rtB.Merge_c; /* End of Outputs for SubSystem: '/Start Control Rear' */ @@ -17134,11 +17245,22 @@ void HVAC_model_initialize(void) /* Start for DataStoreMemory: '/Data Store Memory1' */ rtDW.ErrorCalibration_private[i] = 1U; + /* Start for DataStoreMemory: '/Data Store Memory13' */ + rtDW.MaxPositionCh0_private[i] = rtConstP.DataStoreMemory13_InitialValue[i]; + /* Start for DataStoreMemory: '/Data Store Memory1' */ rtDW.ErrorCalibration_private_b[i] = 1U; + /* Start for DataStoreMemory: '/Data Store Memory13' */ + rtDW.MaxPositionCh1_private[i] = + rtConstP.DataStoreMemory13_InitialValue_c[i]; + /* Start for DataStoreMemory: '/Data Store Memory1' */ rtDW.ErrorCalibration_private_h[i] = 1U; + + /* Start for DataStoreMemory: '/Data Store Memory13' */ + rtDW.MaxPositionCh2_private[i] = + rtConstP.DataStoreMemory13_InitialValue_cb[i]; } /* Start for DataStoreMemory: '/Data Store Memory' */ @@ -17147,12 +17269,24 @@ void HVAC_model_initialize(void) /* Start for DataStoreMemory: '/Data Store Memory1' */ rtDW.step_start_controle_rear = -1; + /* Start for DataStoreMemory: '/Data Store Memory108' */ + rtDW.FIU_MODE_RL = 1U; + + /* Start for DataStoreMemory: '/Data Store Memory114' */ + rtDW.FIU_MODE_RR = 1U; + /* Start for DataStoreMemory: '/Data Store Memory42' */ rtDW.ADC_Data_Model = rtConstP.DataStoreMemory42_InitialValue; /* Start for DataStoreMemory: '/Data Store Memory5' */ rtDW.t_now = 10U; + /* Start for DataStoreMemory: '/Data Store Memory78' */ + rtDW.FIU_MODE_FL = 1U; + + /* Start for DataStoreMemory: '/Data Store Memory87' */ + rtDW.FIU_MODE_FR = 1U; + /* SystemInitialize for Merge: '/Merge' */ rtB.Merge_b = 0U; @@ -17220,13 +17354,13 @@ void HVAC_model_initialize(void) rtB.Merge_bj = 0; /* SystemInitialize for IfAction SubSystem: '/Start Control Front' */ - /* SystemInitialize for Merge: '/Merge' */ + /* SystemInitialize for Merge: '/Merge' */ rtB.Merge_ho = 0; /* End of SystemInitialize for SubSystem: '/Start Control Front' */ /* SystemInitialize for IfAction SubSystem: '/Start Control Rear' */ - /* SystemInitialize for Merge: '/Merge' */ + /* SystemInitialize for Merge: '/Merge' */ rtB.Merge_c = 0; /* End of SystemInitialize for SubSystem: '/Start Control Rear' */ diff --git a/HVAC_model.h b/HVAC_model.h index 9fc9f4b..53fe45c 100644 --- a/HVAC_model.h +++ b/HVAC_model.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.876 + * Model version : 1.900 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Wed May 6 14:55:30 2026 + * C/C++ source code generated on : Fri May 8 11:49:57 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -47,41 +47,41 @@ typedef struct { bool t_start_not_empty; /* '/MATLAB Function' */ } DW_MATLABFunction; -/* Block states (default storage) for system '/Level 4' */ +/* Block states (default storage) for system '/Level 4' */ typedef struct { - uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ - bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ + uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ + bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ } DW_Level4_n; -/* Block states (default storage) for system '/Level 3' */ +/* Block states (default storage) for system '/Level 3' */ typedef struct { - uint32_t UnitDelay_DSTATE; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_i; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_j; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_a; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ - bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ + uint32_t UnitDelay_DSTATE; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_i; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_j; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_a; /* '/Unit Delay' */ + uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ + bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ } DW_Level3; -/* Block states (default storage) for system '/Level 0' */ +/* Block states (default storage) for system '/Level 0' */ typedef struct { - uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ - bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ + uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ + bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ } DW_Level0_c; -/* Block states (default storage) for system '/Level 4' */ +/* Block states (default storage) for system '/Level 4' */ typedef struct { - uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ - bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ + uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ + bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ } DW_Level4_a; -/* Block states (default storage) for system '/Level 3' */ +/* Block states (default storage) for system '/Level 3' */ typedef struct { - uint32_t UnitDelay_DSTATE; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_i; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_e; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ - bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ + uint32_t UnitDelay_DSTATE; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_i; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_e; /* '/Unit Delay' */ + uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ + bool Cond_prev_private_DSTATE; /* '/Cond_prev_private ' */ } DW_Level3_n; /* Block signals (default storage) */ @@ -90,8 +90,8 @@ typedef struct { int8_t Merge_l; /* '/Merge' */ int8_t Merge_h; /* '/Merge' */ int8_t Merge_bj; /* '/Merge' */ - int8_t Merge_c; /* '/Merge' */ - int8_t Merge_ho; /* '/Merge' */ + int8_t Merge_c; /* '/Merge' */ + int8_t Merge_ho; /* '/Merge' */ int8_t Merge_j; /* '/Merge' */ int8_t Merge_hu; /* '/Merge' */ int8_t Merge_h1; /* '/Merge' */ @@ -141,38 +141,38 @@ typedef struct { uint32_t t_start_delay_private_DSTATE_n;/* '/t_start_delay_private ' */ uint32_t t_start_delay_private_DSTATE_ew;/* '/t_start_delay_private ' */ uint32_t t_start_delay_private_DSTATE_i0;/* '/t_start_delay_private ' */ - uint32_t UnitDelay_DSTATE; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_h; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_n; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE_ed;/* '/t_start_delay_private ' */ - uint32_t UnitDelay_DSTATE_g; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_p; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_j; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE_jh;/* '/t_start_delay_private ' */ - uint32_t UnitDelay_DSTATE_d; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_nc; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_hs; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE_fvm;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_o;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_em;/* '/t_start_delay_private ' */ - uint32_t UnitDelay_DSTATE_f; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_pu; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_b; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_e; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE_nr;/* '/t_start_delay_private ' */ - uint32_t UnitDelay_DSTATE_m; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_gf; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_l; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_p0; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE_mz;/* '/t_start_delay_private ' */ - uint32_t UnitDelay_DSTATE_k; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_pb; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_mk; /* '/Unit Delay' */ - uint32_t UnitDelay_DSTATE_gm; /* '/Unit Delay' */ - uint32_t t_start_delay_private_DSTATE_g;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_fm;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_mk;/* '/t_start_delay_private ' */ - uint32_t t_start_delay_private_DSTATE_pd;/* '/t_start_delay_private ' */ + uint32_t UnitDelay_DSTATE; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_h; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_n; /* '/Unit Delay' */ + uint32_t t_start_delay_private_DSTATE_ed;/* '/t_start_delay_private ' */ + uint32_t UnitDelay_DSTATE_g; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_p; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_j; /* '/Unit Delay' */ + uint32_t t_start_delay_private_DSTATE_jh;/* '/t_start_delay_private ' */ + uint32_t UnitDelay_DSTATE_d; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_nc; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_hs; /* '/Unit Delay' */ + uint32_t t_start_delay_private_DSTATE_fvm;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_o;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_em;/* '/t_start_delay_private ' */ + uint32_t UnitDelay_DSTATE_f; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_pu; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_b; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_e; /* '/Unit Delay' */ + uint32_t t_start_delay_private_DSTATE_nr;/* '/t_start_delay_private ' */ + uint32_t UnitDelay_DSTATE_m; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_gf; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_l; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_p0; /* '/Unit Delay' */ + uint32_t t_start_delay_private_DSTATE_mz;/* '/t_start_delay_private ' */ + uint32_t UnitDelay_DSTATE_k; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_pb; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_mk; /* '/Unit Delay' */ + uint32_t UnitDelay_DSTATE_gm; /* '/Unit Delay' */ + uint32_t t_start_delay_private_DSTATE_g;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_fm;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_mk;/* '/t_start_delay_private ' */ + uint32_t t_start_delay_private_DSTATE_pd;/* '/t_start_delay_private ' */ uint32_t t_now; /* '/Data Store Memory5' */ int16_t MinPositionCh0_private[9]; /* '/Data Store Memory12' */ int16_t MaxPositionCh0_private[9]; /* '/Data Store Memory13' */ @@ -186,6 +186,8 @@ typedef struct { uint16_t valves_front_manual_target[9];/* '/Data Store Memory133' */ uint16_t FIU_SET_FR; /* '/Data Store Memory14' */ uint16_t FIU_SET_FL; /* '/Data Store Memory15' */ + uint16_t FIU_SET_RR; /* '/Data Store Memory16' */ + uint16_t FIU_SET_RL; /* '/Data Store Memory17' */ uint16_t Blower_FL; /* '/Data Store Memory27' */ uint16_t Blower_RR; /* '/Data Store Memory32' */ uint16_t Blower_logic_FL; /* '/Data Store Memory37' */ @@ -209,17 +211,17 @@ typedef struct { bool Cond_prev_private_DSTATE_gc; /* '/Cond_prev_private ' */ bool Cond_prev_private_DSTATE_ao; /* '/Cond_prev_private ' */ bool Cond_prev_private_DSTATE_ck; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_ei; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_j; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_i5; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_aw; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_cp; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_iy; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_b3; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_m; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_f; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_h; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_gx; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_ei; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_j; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_i5; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_aw; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_cp; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_iy; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_b3; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_m; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_f; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_h; /* '/Cond_prev_private ' */ + bool Cond_prev_private_DSTATE_gx; /* '/Cond_prev_private ' */ int8_t stepSig_private; /* '/Data Store Memory' */ int8_t stepHoming_private; /* '/Data Store Memory17' */ int8_t stepSig_private_j; /* '/Data Store Memory' */ @@ -262,23 +264,15 @@ typedef struct { uint8_t CCU_ActuatorErrF_Stat_private;/* '/Data Store Memory' */ uint8_t dtc_state_error_model[127]; /* '/Data Store Memory1' */ uint8_t FIU_MODE_RL; /* '/Data Store Memory108' */ - uint8_t FIU_DEF_RL; /* '/Data Store Memory109' */ uint8_t FIU_FACE_RL; /* '/Data Store Memory110' */ uint8_t FIU_FOOT_RL; /* '/Data Store Memory111' */ uint8_t FIU_BLOWERS_RL; /* '/Data Store Memory112' */ uint8_t FIU_AUTOMODE_RL; /* '/Data Store Memory113' */ uint8_t FIU_MODE_RR; /* '/Data Store Memory114' */ - uint8_t FIU_DEF_RR; /* '/Data Store Memory115' */ uint8_t FIU_FACE_RR; /* '/Data Store Memory116' */ uint8_t FIU_FOOT_RR; /* '/Data Store Memory117' */ uint8_t FIU_BLOWERS_RR; /* '/Data Store Memory118' */ uint8_t FIU_AUTOMODE_RR; /* '/Data Store Memory119' */ - uint8_t FIU_DeflectorSwRLB; /* '/Data Store Memory120' */ - uint8_t FIU_DeflectorSwFCL; /* '/Data Store Memory121' */ - uint8_t FIU_AC_REAR; /* '/Data Store Memory122' */ - uint8_t FIU_DeflectorSwFCR; /* '/Data Store Memory123' */ - uint8_t FIU_DeflectorSwRRB; /* '/Data Store Memory124' */ - uint8_t FIU_REAR_SYNC; /* '/Data Store Memory125' */ uint8_t Blower_AF_FL; /* '/Data Store Memory126' */ uint8_t Blower_AF_FR; /* '/Data Store Memory127' */ uint8_t Blower_AF_RL; /* '/Data Store Memory130' */ @@ -312,17 +306,17 @@ typedef struct { uint8_t current_Ambient_Lv; /* '/Log Ambient Lv' */ bool HI_logic_on; /* '/Data Store Memory48' */ bool current_Ambient_Lv_not_empty; /* '/Log Ambient Lv' */ - DW_Level3_n Level5_e; /* '/Level 5' */ - DW_Level3_n Level4_j; /* '/Level 4' */ - DW_Level3_n Level3_i0; /* '/Level 3' */ - DW_Level4_a Level5_f; /* '/Level 5' */ - DW_Level4_a Level4_dp; /* '/Level 4' */ - DW_Level0_c Level1_d3; /* '/Level 1' */ - DW_Level0_c Level0_bc; /* '/Level 0' */ - DW_Level3 Level4_a; /* '/Level 4' */ - DW_Level3 Level3_l; /* '/Level 3' */ - DW_Level4_n Level5_g; /* '/Level 5' */ - DW_Level4_n Level4_cw; /* '/Level 4' */ + DW_Level3_n Level5_e; /* '/Level 5' */ + DW_Level3_n Level4_j; /* '/Level 4' */ + DW_Level3_n Level3_i0; /* '/Level 3' */ + DW_Level4_a Level5_f; /* '/Level 5' */ + DW_Level4_a Level4_dp; /* '/Level 4' */ + DW_Level0_c Level1_d3; /* '/Level 1' */ + DW_Level0_c Level0_bc; /* '/Level 0' */ + DW_Level3 Level4_a; /* '/Level 4' */ + DW_Level3 Level3_l; /* '/Level 3' */ + DW_Level4_n Level5_g; /* '/Level 5' */ + DW_Level4_n Level4_cw; /* '/Level 4' */ DW_MATLABFunction sf_MATLABFunction_c;/* '/MATLAB Function' */ DW_MATLABFunction sf_MATLABFunction_i;/* '/MATLAB Function' */ DW_MATLABFunction sf_MATLABFunction; /* '/MATLAB Function' */ @@ -407,6 +401,21 @@ typedef struct { */ int16_t pooled43[13]; + /* Computed Parameter: DataStoreMemory13_InitialValue + * Referenced by: '/Data Store Memory13' + */ + int16_t DataStoreMemory13_InitialValue[9]; + + /* Computed Parameter: DataStoreMemory13_InitialValue_c + * Referenced by: '/Data Store Memory13' + */ + int16_t DataStoreMemory13_InitialValue_c[9]; + + /* Computed Parameter: DataStoreMemory13_InitialValue_cb + * Referenced by: '/Data Store Memory13' + */ + int16_t DataStoreMemory13_InitialValue_cb[9]; + /* Pooled Parameter (Expression: [0:4:4092]) * Referenced by: * '/1-D Lookup Table' @@ -451,7 +460,7 @@ typedef struct { * '/Constant5' * '/Constant5' */ - uint8_t pooled76[9]; + uint8_t pooled75[9]; /* Computed Parameter: Constant3_Value * Referenced by: '/Constant3' @@ -968,6 +977,7 @@ extern RT_MODEL *const rtM; * Block '/Display' : Unused code path elimination * Block '/Display2' : Unused code path elimination * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display1' : Unused code path elimination @@ -1012,88 +1022,95 @@ extern RT_MODEL *const rtM; * 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 '/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 '/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 '/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 '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display10' : Unused code path elimination - * Block '/Display11' : Unused code path elimination - * Block '/Display12' : Unused code path elimination - * Block '/Display13' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display4' : Unused code path elimination - * Block '/Display5' : Unused code path elimination - * Block '/Display6' : Unused code path elimination - * Block '/Display7' : Unused code path elimination - * Block '/Display8' : Unused code path elimination - * Block '/Display9' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display10' : Unused code path elimination + * Block '/Display11' : Unused code path elimination + * Block '/Display12' : Unused code path elimination + * Block '/Display13' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display4' : Unused code path elimination + * Block '/Display5' : Unused code path elimination + * Block '/Display6' : Unused code path elimination + * Block '/Display7' : Unused code path elimination + * Block '/Display8' : Unused code path elimination + * Block '/Display9' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination * Block '/Display' : Unused code path elimination - * Block '/Display1' : Unused code path elimination - * Block '/Display2' : Unused code path elimination - * Block '/Display3' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination - * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination * Block '/Data Type Conversion' : Eliminate redundant data type conversion * Block '/Data Type Conversion' : Eliminate redundant data type conversion * Block '/Data Type Conversion' : Eliminate redundant data type conversion @@ -1104,77 +1121,73 @@ extern RT_MODEL *const rtM; * 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 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 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 Conversion3' : 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 Conversion3' : 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 Conversion' : Eliminate redundant data type conversion - * Block '/Abs' : Eliminated since data is unsigned + * 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 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 '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned + * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned + * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned + * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned + * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Data Type Conversion' : Eliminate redundant data type conversion - * Block '/Abs' : Eliminated since data is unsigned + * Block '/Abs' : Eliminated since data is unsigned + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion + * Block '/Data Type Conversion' : Eliminate redundant data type conversion * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned + * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned + * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned + * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned + * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned - * Block '/Abs' : Eliminated since data is unsigned + * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned * Block '/Abs' : Eliminated since data is unsigned + * Block '/Abs' : Eliminated since data is unsigned */ /*- @@ -1673,7 +1686,7 @@ extern RT_MODEL *const rtM; * '' : 'HVAC_model/CAN INPUT/Subsystem2/Subsystem' * '' : 'HVAC_model/CAN INPUT/Subsystem3/Subsystem' * '' : 'HVAC_model/CAN INPUT/Subsystem5/Subsystem' - * '' : 'HVAC_model/CAN INPUT/Subsystem6/Subsystem1' + * '' : 'HVAC_model/CAN INPUT/Subsystem6/Subsystem' * '' : 'HVAC_model/CAN OUTPUT/Subsystem' * '' : 'HVAC_model/CAN OUTPUT/Subsystem1' * '' : 'HVAC_model/CAN OUTPUT/Subsystem10' @@ -1901,584 +1914,589 @@ extern RT_MODEL *const rtM; * '' : 'HVAC_model/LIN/CHANEL2/Stop Mode/If Action Subsystem2/Write' * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode' * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode ' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Left AF - manual directions' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Right AF - manual directions' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Rear Left AF - manual directions' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Rear Right AF - manual directions' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Write' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Write1' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Write2' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Left AF - manual directions/AF for Bi Level' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Left AF - manual directions/AF for Def' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Left AF - manual directions/AF for Foor + Def' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Left AF - manual directions/AF for Foot' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Left AF - manual directions/AF for Hi_Level' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Left AF - manual directions/AF for Tri-Level' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Left AF - manual directions/AF for Vent mode' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Right AF - manual directions/AF for Bi Level' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Right AF - manual directions/AF for Def' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Right AF - manual directions/AF for Foor + Def' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Right AF - manual directions/AF for Foot' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Right AF - manual directions/AF for Hi_Level' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Right AF - manual directions/AF for Tri-Level' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Front Right AF - manual directions/AF for Vent mode' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Rear Left AF - manual directions/AF for Bi Level R' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Rear Left AF - manual directions/AF for Foot R' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Rear Left AF - manual directions/AF for Vent mode R' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Rear Right AF - manual directions/AF for Bi Level R' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Rear Right AF - manual directions/AF for Foot R' - * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Rear Right AF - manual directions/AF for Vent mode R' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Left Valves - manual directions' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Right Valves - manual directions' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Rear Left AF - manual directions' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Rear Right AF - manual directions' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Left Valves - manual directions/Valves for Bi Level' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Left Valves - manual directions/Valves for Def' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Left Valves - manual directions/Valves for Foot' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Left Valves - manual directions/Valves for Foot + Def' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Left Valves - manual directions/Valves for Hi_Level' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Left Valves - manual directions/Valves for Tri-Level' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Left Valves - manual directions/Valves for Vent mode' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Right Valves - manual directions/Valves for Bi Level' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Right Valves - manual directions/Valves for Def' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Right Valves - manual directions/Valves for Foot' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Right Valves - manual directions/Valves for Foot + Def' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Right Valves - manual directions/Valves for Hi_Level' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Right Valves - manual directions/Valves for Tri-Level' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Front Right Valves - manual directions/Valves for Vent mode' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Rear Left AF - manual directions/AF for Bi Level' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Rear Left AF - manual directions/AF for Foot' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Rear Left AF - manual directions/valves for Vent mode' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Rear Right AF - manual directions/AF for Bi Level' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Rear Right AF - manual directions/AF for Foot' - * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Rear Right AF - manual directions/valves for Vent mode' - * '' : 'HVAC_model/PWN/Write' - * '' : 'HVAC_model/PWN/Write1' - * '' : 'HVAC_model/PWN/Write2' - * '' : 'HVAC_model/PWN/Write3' - * '' : 'HVAC_model/Start control/If Action Subsystem' - * '' : 'HVAC_model/Start control/Start Control Front' - * '' : 'HVAC_model/Start control/Start Control Rear' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F' - * '' : 'HVAC_model/Start control/Start Control Front/Step 3 F' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 0' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 1' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 2' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 3' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 4' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 5' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 0/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 0/g_ausSTART_ENTER_SETTEMP' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 1/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 1/g_ausSTART_ENTER_SETTEMP' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 3/g_assSTART_ENTER_COOLANT ' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 4/g_assSTART_ENTER_COOLANT ' - * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 5/g_assSTART_ENTER_COOLANT ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 0' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 1' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 2' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 3' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 4' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 5' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 3/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 3/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 3/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 4/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 4/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 4/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 5/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 5/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 5/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 2' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/3 way valve status' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/Dtg_FrontLower_X' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/Dtg_FrontUpper_X' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/blower FR' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/mode FR step 1' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/window heating' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/3 way valve status' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/Dtg_FrontLower_X' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/Dtg_FrontUpper_X' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/blower FR' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/mode FR step 1' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/window heating' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/3 way valve status' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/Dtg_FrontLower_X' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/Dtg_FrontUpper_X' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/blower в зависимости от ECT' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/g_assSTART_COOLANT_TO_STEP2 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/mode FR step 1' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/window heating' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/blower в зависимости от ECT/blower min max' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/3 way valve status' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/Dtg_FrontLower_X' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/Dtg_FrontUpper_X' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/blower в зависимости от ECT' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/mode FR step 1' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/window heating' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/blower в зависимости от ECT/blower min max' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/3 way valve status' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/Dtg_FrontLower_X' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/Dtg_FrontUpper_X' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/blower в зависимости от ECT' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/mode FR step 1' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/window heating' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/blower в зависимости от ECT/blower min max' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 2' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/3 way valve status' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/Time goto from step 2 to step 3 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/window heating' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/3 way valve status' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/Time goto from step 2 to step 3 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/window heating' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/3 way valve status' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/Time goto from step 2 to step 3 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/autodemist (autodefog)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/window heating' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/3 way valve status' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/Time goto from step 2 to step 3 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/autodemist (autodefog)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/window heating' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/3 way valve status' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/Time goto from step 2 to step 3 ' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/autodemist (autodefog)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/window heating' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 3 R' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 0' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 1' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 2' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 3' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 4' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 5' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 0/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 0/g_ausSTART_ENTER_SETTEMP' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 1/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 1/g_ausSTART_ENTER_SETTEMP' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 2/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 2/g_ausSTART_ENTER_SETTEMP' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 3/g_assSTART_ENTER_COOLANT ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 3/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 3/g_ausSTART_ENTER_SETTEMP' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 4/g_assSTART_ENTER_COOLANT ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 4/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 5/g_assSTART_ENTER_COOLANT ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 5/g_assSTART_ENTER_INCAR' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 0' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 1' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 2' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 3' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 4' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 5' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 2/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 2/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 2/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 3/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 3/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 3/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 4/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 4/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 4/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 5/g_assSTART_COOLANT_STEP0_TO_1 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 5/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 5/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/2 way valve' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/Dtg_rear' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/blower rear' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/mode rear step 1' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/2 way valve' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/Dtg_rear' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/blower rear' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/mode rear step 1' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/2 way valve' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/Dtg_rear' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/blower в зависимости от ECT' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/g_assSTART_COOLANT_TO_STEP2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/mode rear step 1' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/blower в зависимости от ECT/blower start finish' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/2 way valve' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/Dtg_rear' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/blower в зависимости от ECT' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/g_assSTART_COOLANT_TO_STEP2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/mode rear step 1' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/blower в зависимости от ECT/blower start finish' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/2 way valve' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/Dtg_rear' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/blower в зависимости от ECT' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/mode rear step 1' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/blower в зависимости от ECT/blower start finish' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/2 way valve' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/Dtg_rear' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/Incar temp goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/blower в зависимости от ECT' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/mode rear step 1' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/blower в зависимости от ECT/ECT min max' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/blower в зависимости от ECT/blower start finish' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/2 way valve' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/2 way valve' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/2 way valve' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/2 way valve' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/2 way valve' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/2 way valve' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/RealTime_Timer' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/Time goto from step 1 to step 2 ' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/incar filter down' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/incar filter up' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/blower step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/blower time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/Almost equal' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/Calculate delta time' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/time for step' - * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/знак для изменения (+//-)' - * '' : 'HVAC_model/dbg CAN/ACP (duct sensors) to dbg' - * '' : 'HVAC_model/dbg CAN/actuators to dbg' - * '' : 'HVAC_model/dbg CAN/blower to dbg' - * '' : 'HVAC_model/dbg CAN/sen_eva (evaporator) to dbg' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem1' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Left AF - manual directions' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Right AF - manual directions' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Write' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Write2' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Left AF - manual directions/AF for Bi Level' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Left AF - manual directions/AF for Def' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Left AF - manual directions/AF for Foor + Def' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Left AF - manual directions/AF for Foot' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Left AF - manual directions/AF for Hi_Level' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Left AF - manual directions/AF for Tri-Level' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Left AF - manual directions/AF for Vent mode' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Right AF - manual directions/AF for Bi Level' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Right AF - manual directions/AF for Def' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Right AF - manual directions/AF for Foor + Def' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Right AF - manual directions/AF for Foot' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Right AF - manual directions/AF for Hi_Level' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Right AF - manual directions/AF for Tri-Level' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem/Front Right AF - manual directions/AF for Vent mode' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem1/Rear Left AF - manual directions' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem1/Rear Right AF - manual directions' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem1/Write1' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem1/Rear Left AF - manual directions/AF for Bi Level R' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem1/Rear Left AF - manual directions/AF for Foot R' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem1/Rear Left AF - manual directions/AF for Vent mode R' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem1/Rear Right AF - manual directions/AF for Bi Level R' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem1/Rear Right AF - manual directions/AF for Foot R' + * '' : 'HVAC_model/PWM and valves in manual1/PWM in manual mode/Subsystem1/Rear Right AF - manual directions/AF for Vent mode R' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem1' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Left Valves - manual directions' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Right Valves - manual directions' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Left Valves - manual directions/Valves for Bi Level' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Left Valves - manual directions/Valves for Def' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Left Valves - manual directions/Valves for Foot' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Left Valves - manual directions/Valves for Foot + Def' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Left Valves - manual directions/Valves for Hi_Level' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Left Valves - manual directions/Valves for Tri-Level' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Left Valves - manual directions/Valves for Vent mode' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Right Valves - manual directions/Valves for Bi Level' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Right Valves - manual directions/Valves for Def' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Right Valves - manual directions/Valves for Foot' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Right Valves - manual directions/Valves for Foot + Def' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Right Valves - manual directions/Valves for Hi_Level' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Right Valves - manual directions/Valves for Tri-Level' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem/Front Right Valves - manual directions/Valves for Vent mode' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem1/Rear Left AF - manual directions' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem1/Rear Right AF - manual directions' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem1/Rear Left AF - manual directions/AF for Bi Level' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem1/Rear Left AF - manual directions/AF for Foot' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem1/Rear Left AF - manual directions/valves for Vent mode' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem1/Rear Right AF - manual directions/AF for Bi Level' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem1/Rear Right AF - manual directions/AF for Foot' + * '' : 'HVAC_model/PWM and valves in manual1/valves in manual mode /Subsystem1/Rear Right AF - manual directions/valves for Vent mode' + * '' : 'HVAC_model/PWN/Write' + * '' : 'HVAC_model/PWN/Write1' + * '' : 'HVAC_model/PWN/Write2' + * '' : 'HVAC_model/PWN/Write3' + * '' : 'HVAC_model/PWN/Write4' + * '' : 'HVAC_model/Start control/If Action Subsystem' + * '' : 'HVAC_model/Start control/Start Control Front' + * '' : 'HVAC_model/Start control/Start Control Rear' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F' + * '' : 'HVAC_model/Start control/Start Control Front/Step 3 F' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 0' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 1' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 2' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 3' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 4' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 5' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 0/g_assSTART_ENTER_INCAR' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 0/g_ausSTART_ENTER_SETTEMP' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 1/g_assSTART_ENTER_INCAR' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 1/g_ausSTART_ENTER_SETTEMP' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 3/g_assSTART_ENTER_COOLANT ' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 4/g_assSTART_ENTER_COOLANT ' + * '' : 'HVAC_model/Start control/Start Control Front/Step -1 F (Entry Condition)/Level 5/g_assSTART_ENTER_COOLANT ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 0' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 1' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 2' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 3' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 4' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 5' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 3/g_assSTART_COOLANT_STEP0_TO_1 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 3/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 3/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 4/g_assSTART_COOLANT_STEP0_TO_1 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 4/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 4/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 5/g_assSTART_COOLANT_STEP0_TO_1 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 5/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Front/Step 0 F/Level 5/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 2' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/3 way valve status' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/Dtg_FrontLower_X' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/Dtg_FrontUpper_X' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/Incar temp goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/blower FR' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/mode FR step 1' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 0/window heating' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/3 way valve status' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/Dtg_FrontLower_X' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/Dtg_FrontUpper_X' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/Incar temp goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/blower FR' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/mode FR step 1' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 1/window heating' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/3 way valve status' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/Dtg_FrontLower_X' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/Dtg_FrontUpper_X' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/Incar temp goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/blower в зависимости от ECT' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/g_assSTART_COOLANT_TO_STEP2 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/mode FR step 1' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/window heating' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/blower в зависимости от ECT/ECT min max' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 3/blower в зависимости от ECT/blower min max' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/3 way valve status' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/Dtg_FrontLower_X' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/Dtg_FrontUpper_X' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/Incar temp goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/blower в зависимости от ECT' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/mode FR step 1' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/window heating' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/blower в зависимости от ECT/ECT min max' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 4/blower в зависимости от ECT/blower min max' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/3 way valve status' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/Dtg_FrontLower_X' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/Dtg_FrontUpper_X' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/Incar temp goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/blower в зависимости от ECT' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/mode FR step 1' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/window heating' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/blower в зависимости от ECT/ECT min max' + * '' : 'HVAC_model/Start control/Start Control Front/Step 1 F/Level 5/blower в зависимости от ECT/blower min max' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 2' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/3 way valve status' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/Time goto from step 2 to step 3 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/window heating' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/blower step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/blower time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/blower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 0/mode, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/3 way valve status' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/Time goto from step 2 to step 3 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/window heating' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/blower step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/blower time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/blower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 1/mode, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/3 way valve status' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/Time goto from step 2 to step 3 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/autodemist (autodefog)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/window heating' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/blower step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/blower time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/blower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 3/mode, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/3 way valve status' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/Time goto from step 2 to step 3 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/autodemist (autodefog)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/window heating' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/blower step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/blower time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/blower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 4/mode, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/3 way valve status' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/Time goto from step 2 to step 3 ' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/autodemist (autodefog)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/window heating' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Lower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/DTG F Upper, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/blower step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/blower time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/blower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Front/Step 2 F/Level 5/mode, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 3 R' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 0' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 1' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 2' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 3' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 4' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 5' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 0/g_assSTART_ENTER_INCAR' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 0/g_ausSTART_ENTER_SETTEMP' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 1/g_assSTART_ENTER_INCAR' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 1/g_ausSTART_ENTER_SETTEMP' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 2/g_assSTART_ENTER_INCAR' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 2/g_ausSTART_ENTER_SETTEMP' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 3/g_assSTART_ENTER_COOLANT ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 3/g_assSTART_ENTER_INCAR' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 3/g_ausSTART_ENTER_SETTEMP' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 4/g_assSTART_ENTER_COOLANT ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 4/g_assSTART_ENTER_INCAR' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 5/g_assSTART_ENTER_COOLANT ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step -1 R (Entry Condition)/Level 5/g_assSTART_ENTER_INCAR' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 0' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 1' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 2' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 3' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 4' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 5' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 2/g_assSTART_COOLANT_STEP0_TO_1 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 2/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 2/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 3/g_assSTART_COOLANT_STEP0_TO_1 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 3/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 3/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 4/g_assSTART_COOLANT_STEP0_TO_1 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 4/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 4/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 5/g_assSTART_COOLANT_STEP0_TO_1 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 5/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 0 R/Level 5/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/2 way valve' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/Dtg_rear' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/Incar temp goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/blower rear' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 0/mode rear step 1' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/2 way valve' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/Dtg_rear' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/Incar temp goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/blower rear' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 1/mode rear step 1' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/2 way valve' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/Dtg_rear' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/Incar temp goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/blower в зависимости от ECT' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/g_assSTART_COOLANT_TO_STEP2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/mode rear step 1' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/blower в зависимости от ECT/ECT min max' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 2/blower в зависимости от ECT/blower start finish' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/2 way valve' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/Dtg_rear' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/Incar temp goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/blower в зависимости от ECT' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/g_assSTART_COOLANT_TO_STEP2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/mode rear step 1' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/blower в зависимости от ECT/ECT min max' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 3/blower в зависимости от ECT/blower start finish' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/2 way valve' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/Dtg_rear' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/Incar temp goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/blower в зависимости от ECT' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/mode rear step 1' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/blower в зависимости от ECT/ECT min max' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 4/blower в зависимости от ECT/blower start finish' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/2 way valve' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/Dtg_rear' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/Incar temp goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/blower в зависимости от ECT' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/mode rear step 1' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/blower в зависимости от ECT/ECT min max' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 1 R/Level 5/blower в зависимости от ECT/blower start finish' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/2 way valve' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/blower step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/blower time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/blower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 0/mode, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/2 way valve' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/blower step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/blower time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/blower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 1/mode, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/2 way valve' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/blower step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/blower time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/blower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 2/mode, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/2 way valve' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/blower step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/blower time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/blower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 3/mode, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/2 way valve' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/blower step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/blower time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/blower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 4/mode, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/2 way valve' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/RealTime_Timer' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/Time goto from step 1 to step 2 ' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/incar filter down' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/incar filter up' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/DTG Rear, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/blower step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/blower time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/blower, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/Almost equal' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/Calculate delta time' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/time for step' + * '' : 'HVAC_model/Start control/Start Control Rear/Step 2 R/Level 5/mode, стремящийся к AUTO/знак для изменения (+//-)' + * '' : 'HVAC_model/dbg CAN/ACP (duct sensors) to dbg' + * '' : 'HVAC_model/dbg CAN/actuators to dbg' + * '' : 'HVAC_model/dbg CAN/blower to dbg' + * '' : 'HVAC_model/dbg CAN/sen_eva (evaporator) to dbg' */ #endif /* HVAC_model_h_ */ diff --git a/HVAC_model_data.c b/HVAC_model_data.c index cf90938..858f9fc 100644 --- a/HVAC_model_data.c +++ b/HVAC_model_data.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.876 + * Model version : 1.900 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Wed May 6 14:55:30 2026 + * C/C++ source code generated on : Fri May 8 11:49:57 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -644,6 +644,21 @@ const ConstP rtConstP = { */ { 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 }, + /* Computed Parameter: DataStoreMemory13_InitialValue + * Referenced by: '/Data Store Memory13' + */ + { 1050, 1250, 1175, 1195, 1315, 1300, 1485, 1440, 1195 }, + + /* Computed Parameter: DataStoreMemory13_InitialValue_c + * Referenced by: '/Data Store Memory13' + */ + { 1225, 1320, 1270, 1540, 1480, 1175, 0, 0, 0 }, + + /* Computed Parameter: DataStoreMemory13_InitialValue_cb + * Referenced by: '/Data Store Memory13' + */ + { 3075, 3075, 1605, 1840, 1650, 1635, 1820, 1650, 0 }, + /* Pooled Parameter (Expression: [0:4:4092]) * Referenced by: * '/1-D Lookup Table' diff --git a/HVAC_model_private.h b/HVAC_model_private.h index 8c35b3d..dc599e9 100644 --- a/HVAC_model_private.h +++ b/HVAC_model_private.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.876 + * Model version : 1.900 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Wed May 6 14:55:30 2026 + * C/C++ source code generated on : Fri May 8 11:49:57 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -85,7 +85,6 @@ extern int16_t look1_iu16tdIs16_binlcs(uint16_t u0, const uint16_t bp0[], const double table[], uint32_t maxIndex); extern uint32_t plook_u32s16_bincka(int16_t u, const int16_t bp[], uint32_t maxIndex); -extern int32_t div_nde_s32_floor(int32_t numerator, int32_t denominator); extern void get_tg_FLL_for_LVL(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp, int16_t *rty_vals); extern void get_tg_FLL_for_LVL_j(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp, @@ -130,16 +129,13 @@ extern void AFforVentmode(uint8_t rtu_blower_speed, uint16_t *rty_out); extern void AFforBiLevelR(uint8_t rtu_blower_speed, uint16_t *rty_out); extern void AFforFootR(uint8_t rtu_blower_speed, uint16_t *rty_out); extern void AFforVentmodeR(uint8_t rtu_blower_speed, uint16_t *rty_out); -extern void ValvesforBiLevel(uint8_t rtu_blower_speed, uint16_t *rty_out); -extern void ValvesforDef(uint8_t rtu_blower_speed, uint16_t *rty_out); -extern void ValvesforFoot(uint8_t rtu_blower_speed, uint16_t *rty_out); -extern void ValvesforFootDef(uint8_t rtu_blower_speed, uint16_t *rty_out); -extern void ValvesforHi_Level(uint8_t rtu_blower_speed, uint16_t *rty_out); -extern void ValvesforTriLevel(uint8_t rtu_blower_speed, uint16_t *rty_out); -extern void ValvesforVentmode(uint8_t rtu_blower_speed, uint16_t *rty_out); -extern void AFforBiLevel_m(uint8_t rtu_blower_speed, uint16_t *rty_out); -extern void AFforFoot_p(uint8_t rtu_blower_speed, uint16_t *rty_out); -extern void valvesforVentmode(uint8_t rtu_blower_speed, uint16_t *rty_out); +extern void ValvesforBiLevel(uint16_t rty_out[9]); +extern void ValvesforDef(uint16_t rty_out[9]); +extern void ValvesforFootDef(uint16_t rty_out[9]); +extern void ValvesforHi_Level(uint16_t rty_out[9]); +extern void ValvesforTriLevel(uint16_t rty_out[9]); +extern void AFforBiLevel_m(uint16_t rty_out[6]); +extern void valvesforVentmode(uint16_t rty_out[6]); extern void g_assSTART_ENTER_INCAR_j(uint8_t rtu_LVL, int16_t *rty_out); extern void g_assSTART_ENTER_COOLANT_p(uint8_t rtu_LVL, int16_t *rty_out); extern void Level4(int8_t *rty_step1, const uint16_t *rtd_ECT, const uint8_t diff --git a/HVAC_model_types.h b/HVAC_model_types.h index 2d35d8b..a444362 100644 --- a/HVAC_model_types.h +++ b/HVAC_model_types.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.876 + * Model version : 1.900 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Wed May 6 14:55:30 2026 + * C/C++ source code generated on : Fri May 8 11:49:57 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M