From 6a77807279352270e64b137a18f700b6377e56c6 Mon Sep 17 00:00:00 2001
From: darya
Date: Wed, 24 Jun 2026 09:09:18 +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=2023.06.2026?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
HVAC_model.c | 20973 +++++++++++++++++++++--------------------
HVAC_model.h | 7735 +++++++--------
HVAC_model_data.c | 108 +-
HVAC_model_private.h | 4 +-
HVAC_model_types.h | 49 +-
5 files changed, 14713 insertions(+), 14156 deletions(-)
diff --git a/HVAC_model.c b/HVAC_model.c
index 0a424e5..34d0963 100755
--- a/HVAC_model.c
+++ b/HVAC_model.c
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'HVAC_model'.
*
- * Model version : 1.1128
+ * Model version : 1.1140
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
- * C/C++ source code generated on : Tue Jun 23 15:07:47 2026
+ * C/C++ source code generated on : Wed Jun 24 09:01:39 2026
*
* Target selection: ert.tlc
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
@@ -24,7 +24,7 @@
#include "HVAC_model_types.h"
#include "Rs_Cal_Base.h"
-/* Named constants for Chart: '/Zone_Climate_Logic_Auto_FL1' */
+/* Named constants for Chart: '/Zone_Climate_Logic_Auto_FL1' */
#define IN_AC_Off ((uint8_t)1U)
#define IN_AC_On ((uint8_t)2U)
#define IN_AUTO_MODE ((uint8_t)1U)
@@ -37,7 +37,7 @@
#define IN_MANUAL_MODE ((uint8_t)2U)
#define IN_NO_ACTIVE_CHILD ((uint8_t)0U)
-/* Named constants for Chart: '/Zone_Climate_Logic_Auto_FL2' */
+/* Named constants for Chart: '/Zone_Climate_Logic_Auto_FL2' */
#define IN_AC_Off_p ((uint8_t)1U)
#define IN_AC_On_k ((uint8_t)2U)
#define IN_AUTO_MODE_k ((uint8_t)1U)
@@ -50,19 +50,29 @@
#define IN_MANUAL_MODE_e ((uint8_t)2U)
#define IN_NO_ACTIVE_CHILD_g ((uint8_t)0U)
-/* Named constants for Chart: '/Chart' */
+/* Named constants for Chart: '/13,1,3,15 Valve control' */
+#define IN_Entry_2W ((uint8_t)1U)
+#define IN_Entry_3W ((uint8_t)1U)
+#define IN_ExitSeq_2W ((uint8_t)2U)
+#define IN_ExitSeq_3W ((uint8_t)2U)
+#define IN_NO_ACTIVE_CHILD_o ((uint8_t)0U)
+#define IN_Wait_2W ((uint8_t)3U)
+#define IN_Wait_3W ((uint8_t)3U)
+
+/* Named constants for Chart: '/Chart' */
#define IN_COND_1 ((uint8_t)1U)
#define IN_COND_2 ((uint8_t)2U)
#define IN_COND_3 ((uint8_t)3U)
#define IN_HOLDING ((uint8_t)1U)
-#define IN_NO_ACTIVE_CHILD_h ((uint8_t)0U)
#define IN_PARTIAL_REC_OFF ((uint8_t)1U)
#define IN_PARTIAL_REC_ON ((uint8_t)2U)
#define IN_TRACKING ((uint8_t)2U)
-/* Named constants for Chart: '/A//C Control' */
+/* Named constants for Chart: '/Spd_Comp_Trigger' */
#define IN_COMP_OFF ((uint8_t)1U)
#define IN_COMP_ON ((uint8_t)2U)
+
+/* Named constants for Chart: '/A//C Control' */
#define IN_Chiller_OFF ((uint8_t)1U)
#define IN_Chiller_ON ((uint8_t)2U)
#define IN_FAULT_HIGH_PRESS ((uint8_t)1U)
@@ -76,11 +86,6 @@
#define IN_Rear_A_C_OFF ((uint8_t)1U)
#define IN_Rear_A_C_ON ((uint8_t)2U)
-/* Named constants for Chart: '/Chart' */
-#define IN_Entry_2W ((uint8_t)1U)
-#define IN_ExitSeq_2W ((uint8_t)2U)
-#define IN_Wait_2W ((uint8_t)3U)
-
/* Named constants for Chart: '/Synchronization stateflow chart' */
#define IN_FRONT_ONLY ((uint8_t)1U)
#define IN_FULL_SYNC ((uint8_t)2U)
@@ -223,9 +228,9 @@ const ActuatorCmdBusInput HVAC_model_rtZActuatorCmdBusInput = {
}; /* ActuatorCmdBusInput ground */
/* Exported block states */
-ActuatorCmdBus Actuator_Ch0_Command_Model;/* '/Data Store Memory15' */
-ActuatorCmdBus Actuator_Ch1_Command_Model;/* '/Data Store Memory15' */
-ActuatorCmdBus Actuator_Ch2_Command_Model;/* '/Data Store Memory15' */
+ActuatorCmdBus Actuator_Ch0_Command_Model;/* '/Data Store Memory15' */
+ActuatorCmdBus Actuator_Ch1_Command_Model;/* '/Data Store Memory15' */
+ActuatorCmdBus Actuator_Ch2_Command_Model;/* '/Data Store Memory15' */
ActuatorCmdBusInput Actuator_Ch0_Status_Model;/* '/Data Store Memory61' */
ActuatorCmdBusInput Actuator_Ch1_Status_Model;/* '/Data Store Memory62' */
ActuatorCmdBusInput Actuator_Ch2_Status_Model;/* '/Data Store Memory63' */
@@ -1134,12 +1139,12 @@ uint32_t plook_u32s16_bincka(int16_t u_8, const int16_t bp[], uint32_t maxIndex)
/*
* Output and update for atomic system:
- * '/get_tg_FLL_for_LVL'
- * '/get_tg_FLL_for_LVL'
- * '/get_tg_for_LVL'
- * '/get_tg_FLL_for_LVL'
- * '/get_tg_FLL_for_LVL'
- * '/get_tg_for_LVL'
+ * '/get_tg_FLL_for_LVL'
+ * '/get_tg_FLL_for_LVL'
+ * '/get_tg_for_LVL'
+ * '/get_tg_FLL_for_LVL'
+ * '/get_tg_FLL_for_LVL'
+ * '/get_tg_for_LVL'
*/
void get_tg_FLL_for_LVL(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp, int16_t
*rty_vals)
@@ -1184,12 +1189,12 @@ void get_tg_FLL_for_LVL(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp, int16_t
/*
* Output and update for atomic system:
- * '/get_tg_FLL_for_LVL'
- * '/get_tg_FLL_for_LVL'
- * '/get_tg_FLL_for_LVL'
- * '/get_tg_FLL_for_LVL'
- * '/get_tg_FLL_for_LVL'
- * '/get_tg_FLL_for_LVL'
+ * '/get_tg_FLL_for_LVL'
+ * '/get_tg_FLL_for_LVL'
+ * '/get_tg_FLL_for_LVL'
+ * '/get_tg_FLL_for_LVL'
+ * '/get_tg_FLL_for_LVL'
+ * '/get_tg_FLL_for_LVL'
*/
void get_tg_FLL_for_LVL_j(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp, int16_t *
rty_vals)
@@ -1234,10 +1239,10 @@ void get_tg_FLL_for_LVL_j(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp, int16_t
/*
* Output and update for atomic system:
- * '/g_assFLOW_BI_AMB_TGT'
- * '/g_assFLOW_BI_AMB_TGT'
- * '/g_assFLOW_BI_AMB_TGT'
- * '/g_assFLOW_BI_AMB_TGT'
+ * '/g_assFLOW_BI_AMB_TGT'
+ * '/g_assFLOW_BI_AMB_TGT'
+ * '/g_assFLOW_BI_AMB_TGT'
+ * '/g_assFLOW_BI_AMB_TGT'
*/
void g_assFLOW_BI_AMB_TGT_n(uint8_t rtu_LVL, int16_t *rty_c_g_assFLOW_BI_AMB_TGT)
{
@@ -1254,8 +1259,8 @@ void g_assFLOW_BI_AMB_TGT_n(uint8_t rtu_LVL, int16_t *rty_c_g_assFLOW_BI_AMB_TGT
/*
* Output and update for action system:
- * '/Bilevel'
- * '/Bilevel'
+ * '/Bilevel'
+ * '/Bilevel'
*/
void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t
rtu_setTempFL, uint8_t rtu_setTempFR)
@@ -1278,55 +1283,55 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t
uint8_t rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN;
uint8_t rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN_a;
- /* MATLAB Function: '/get_tg_FLL_for_LVL' */
+ /* MATLAB Function: '/get_tg_FLL_for_LVL' */
/* : c_g_assFLOW_BI_TEMP_TGT = g_assFLOW_BI_TEMP_TGT(LVL + 1); */
get_tg_FLL_for_LVL(rtu_LVL, rtu_setTempFL, &rtb_u_eg);
- /* MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */
+ /* MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT' */
tmp_0 = (int32_t)(rtu_LVL + 1U);
if (rtu_LVL + 1U > 255U) {
tmp_0 = 255;
}
- /* Sum: '/ 1' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* Sum: '/ 1' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
rtb_u_eg = (int16_t)(g_assFLOW_BI_TEMP_TGT[tmp_0 - 1] - rtb_u_eg);
- /* Gain: '/Gain6' */
+ /* Gain: '/Gain6' */
tmp_0 = 13107 * rtb_u_eg;
rtb_X = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 &
65535U) != 0U) || (tmp_0 > 0))) + (tmp_0 >> 17));
- /* Switch: '/Switch1' incorporates:
- * Gain: '/Gain6'
- * Sum: '/Add'
+ /* Switch: '/Switch1' incorporates:
+ * Gain: '/Gain6'
+ * Sum: '/Add'
*/
/* : c_g_aucFLOW_BI_FOOT_PLUS = g_aucFLOW_BI_FOOT_PLUS(LVL + 1); */
if (rtb_X >= 0) {
rtb_FLF_NEW = rty_Out1[4];
} else {
- /* MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_LEFT' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_LEFT' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
tmp_0 = (int32_t)(rtu_LVL + 1U);
if (rtu_LVL + 1U > 255U) {
tmp_0 = 255;
}
- /* Gain: '/Gain6' incorporates:
- * MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_LEFT'
- * Product: '/Product3'
+ /* Gain: '/Gain6' incorporates:
+ * MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_LEFT'
+ * Product: '/Product3'
*/
tmp_0 = g_aucFLOW_BI_FOOT_PLUS[tmp_0 - 1] * rtb_X * 13107;
rtb_FLF_NEW = (uint16_t)((int16_t)rty_Out1[4] - (int8_t)(((((uint32_t)tmp_0
& 65536U) != 0U) && (((uint32_t)tmp_0 & 65535U) != 0U)) + (tmp_0 >> 17)));
}
- /* End of Switch: '/Switch1' */
+ /* End of Switch: '/Switch1' */
- /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX1' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX1' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
/* : c_g_aucFLOW_BI_FOOT_VALVE_MAX = g_aucFLOW_BI_FOOT_VALVE_MAX(LVL + 1); */
tmp_0 = (int32_t)(rtu_LVL + 1U);
@@ -1336,10 +1341,10 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t
rtb_c_g_aucFLOW_BI_FOOT_VALVE_MAX_n = g_aucFLOW_BI_FOOT_VALVE_MAX[tmp_0 - 1];
- /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX1' */
+ /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX1' */
- /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN1' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN1' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
/* : c_g_aucFLOW_BI2_FOOT_VALVE_MIN = g_aucFLOW_BI_FOOT_VALVE_MIN(LVL +1); */
tmp_0 = (int32_t)(rtu_LVL + 1U);
@@ -1349,14 +1354,14 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t
rtb_c_g_aucFLOW_BI2_FOOT_VALVE_MIN = g_aucFLOW_BI_FOOT_VALVE_MIN[tmp_0 - 1];
- /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN1' */
+ /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN1' */
- /* MATLAB Function: '/get_tg_FLL_for_LVL' */
+ /* MATLAB Function: '/get_tg_FLL_for_LVL' */
/* : c_g_assFLOW_BI_TEMP_TGT = g_assFLOW_BI_TEMP_TGT(LVL + 1 + 6); */
get_tg_FLL_for_LVL_j(rtu_LVL, rtu_setTempFR, &rtb_u_eg);
- /* MATLAB Function: '/g_assFLOW_BI_TEMP_TGT_RIGHT' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* MATLAB Function: '/g_assFLOW_BI_TEMP_TGT_RIGHT' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
tmp_0 = (int32_t)(rtu_LVL + 1U);
if (rtu_LVL + 1U > 255U) {
@@ -1368,26 +1373,26 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t
tmp = 255;
}
- /* Sum: '/ 1' incorporates:
- * MATLAB Function: '/g_assFLOW_BI_TEMP_TGT_RIGHT'
+ /* Sum: '/ 1' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI_TEMP_TGT_RIGHT'
*/
rtb_u_eg = (int16_t)(g_assFLOW_BI_TEMP_TGT[tmp - 1] - rtb_u_eg);
- /* Gain: '/Gain6' */
+ /* Gain: '/Gain6' */
tmp_0 = 13107 * rtb_u_eg;
rtb_X = (int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) && ((((uint32_t)tmp_0 &
65535U) != 0U) || (tmp_0 > 0))) + (tmp_0 >> 17));
- /* Switch: '/Switch3' incorporates:
- * Gain: '/Gain7'
- * Sum: '/Add1'
+ /* Switch: '/Switch3' incorporates:
+ * Gain: '/Gain7'
+ * Sum: '/Add1'
*/
/* : c_g_aucFLOW_BI_FOOT_PLUS = g_aucFLOW_BI_FOOT_PLUS(LVL + 1 + 6); */
if (rtb_X >= 0) {
rtb_FRF_NEW = rty_Out1[6];
} else {
- /* MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_RIGHT' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_RIGHT' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
tmp_0 = (int32_t)(rtu_LVL + 1U);
if (rtu_LVL + 1U > 255U) {
@@ -1399,19 +1404,19 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t
tmp = 255;
}
- /* Gain: '/Gain7' incorporates:
- * MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_RIGHT'
- * Product: '/Product4'
+ /* Gain: '/Gain7' incorporates:
+ * MATLAB Function: '/g_aucFLOW_BI_FOOT_PLUS_RIGHT'
+ * Product: '/Product4'
*/
tmp_0 = g_aucFLOW_BI_FOOT_PLUS[tmp - 1] * rtb_X * 13107;
rtb_FRF_NEW = (uint16_t)((int16_t)rty_Out1[6] - (int8_t)(((((uint32_t)tmp_0
& 65536U) != 0U) && (((uint32_t)tmp_0 & 65535U) != 0U)) + (tmp_0 >> 17)));
}
- /* End of Switch: '/Switch3' */
+ /* End of Switch: '/Switch3' */
- /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX2' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX2' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
/* : c_g_aucFLOW_BI_FOOT_VALVE_MAX = g_aucFLOW_BI_FOOT_VALVE_MAX(LVL + 1 + 6); */
tmp_0 = (int32_t)(rtu_LVL + 1U);
@@ -1426,10 +1431,10 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t
rtb_c_g_aucFLOW_BI_FOOT_VALVE_MAX = g_aucFLOW_BI_FOOT_VALVE_MAX[tmp - 1];
- /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX2' */
+ /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MAX2' */
- /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN2' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN2' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
/* : c_g_aucFLOW_BI_FOOT_VALVE_MIN = g_aucFLOW_BI_FOOT_VALVE_MIN(LVL + 1 + 6); */
tmp_0 = (int32_t)(rtu_LVL + 1U);
@@ -1444,45 +1449,45 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t
rtb_c_g_aucFLOW_BI_FOOT_VALVE_MIN = g_aucFLOW_BI_FOOT_VALVE_MIN[tmp - 1];
- /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN2' */
+ /* End of MATLAB Function: '/g_aucFLOW_BI_FOOT_VALVE_MIN2' */
- /* MATLAB Function: '/g_assFLOW_BI_AMB_TGT' */
+ /* MATLAB Function: '/g_assFLOW_BI_AMB_TGT' */
/* : c_g_aucFLOW_BI_VENT_PLUS = g_aucFLOW_BI_VENT_PLUS(LVL + 1); */
g_assFLOW_BI_AMB_TGT_n(rtu_LVL, &rtb_u_eg);
- /* MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
tmp_0 = (int32_t)(rtu_LVL + 1U);
if (rtu_LVL + 1U > 255U) {
tmp_0 = 255;
}
- /* Gain: '/Gain2' incorporates:
- * Sum: '/deg'
+ /* Gain: '/Gain2' incorporates:
+ * Sum: '/deg'
*/
tmp = (int16_t)(rtb_u_eg - rtu_Amb_Fb) * 13107;
- /* Product: '/Умножили' incorporates:
- * Gain: '/Gain'
- * Gain: '/Gain2'
- * MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS'
+ /* Product: '/Умножили' incorporates:
+ * Gain: '/Gain'
+ * Gain: '/Gain2'
+ * MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS'
*/
rtb_u_eg = (int16_t)((int8_t)(((((uint32_t)tmp & 65536U) != 0U) &&
((((uint32_t)tmp & 65535U) != 0U) || (tmp > 0))) + (tmp >> 17)) * (int32_t)
((g_aucFLOW_BI_VENT_PLUS[tmp_0 - 1] * 205U + 1024U) >> 11));
- /* DataTypeConversion: '/Data Type Conversion' incorporates:
- * Sum: '/ '
- * Switch: '/Switch2'
+ /* DataTypeConversion: '/Data Type Conversion' incorporates:
+ * Sum: '/ '
+ * Switch: '/Switch2'
*/
rtb_Switch2_a5_idx_0 = (uint16_t)((uint16_t)((rty_Out1[0] - rtb_u_eg) >> 1) <<
1);
rtb_Switch2_a5_idx_1 = (uint16_t)((uint16_t)((rty_Out1[1] - rtb_u_eg) >> 1) <<
1);
- /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
/* : c_g_aucFLOW_BI_VENT_VALVE_MAX = g_aucFLOW_BI_VENT_VALVE_MAX(LVL + 1); */
tmp_0 = (int32_t)(rtu_LVL + 1U);
@@ -1492,10 +1497,10 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t
rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX_h = g_aucFLOW_BI_VENT_VALVE_MAX[tmp_0 - 1];
- /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' */
+ /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' */
- /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
/* : c_g_aucFLOW_BI_VENT_VALVE_MIN = g_aucFLOW_BI_VENT_VALVE_MIN(LVL + 1); */
tmp_0 = (int32_t)(rtu_LVL + 1U);
@@ -1505,14 +1510,14 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t
rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN_a = g_aucFLOW_BI_VENT_VALVE_MIN[tmp_0 - 1];
- /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' */
+ /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' */
- /* MATLAB Function: '/g_assFLOW_BI_AMB_TGT' */
+ /* MATLAB Function: '/g_assFLOW_BI_AMB_TGT' */
/* : c_g_aucFLOW_BI_VENT_PLUS = g_aucFLOW_BI_VENT_PLUS(LVL + 1 + 6); */
g_assFLOW_BI_AMB_TGT_n(rtu_LVL, &rtb_u_eg);
- /* MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
tmp_0 = (int32_t)(rtu_LVL + 1U);
if (rtu_LVL + 1U > 255U) {
@@ -1524,23 +1529,23 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t
tmp = 255;
}
- /* Gain: '/Gain2' incorporates:
- * Sum: '/deg'
+ /* Gain: '/Gain2' incorporates:
+ * Sum: '/deg'
*/
tmp_0 = (int16_t)(rtb_u_eg - rtu_Amb_Fb) * 13107;
- /* Product: '/Умножили' incorporates:
- * Gain: '/Gain'
- * Gain: '/Gain2'
- * MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS'
+ /* Product: '/Умножили' incorporates:
+ * Gain: '/Gain'
+ * Gain: '/Gain2'
+ * MATLAB Function: '/g_aucFLOW_BI_VENT_PLUS'
*/
rtb_u_eg = (int16_t)((int8_t)(((((uint32_t)tmp_0 & 65536U) != 0U) &&
((((uint32_t)tmp_0 & 65535U) != 0U) || (tmp_0 > 0))) + (tmp_0 >> 17)) *
(int32_t)((g_aucFLOW_BI_VENT_PLUS[tmp - 1] * 205U + 1024U)
>> 11));
- /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
/* : c_g_aucFLOW_BI_VENT_VALVE_MAX = g_aucFLOW_BI_VENT_VALVE_MAX(LVL + 1 + 6); */
tmp_0 = (int32_t)(rtu_LVL + 1U);
@@ -1555,10 +1560,10 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t
rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX = g_aucFLOW_BI_VENT_VALVE_MAX[tmp - 1];
- /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' */
+ /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MAX' */
- /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' incorporates:
- * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
+ /* MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' incorporates:
+ * MATLAB Function: '/g_assFLOW_BI2_TEMP_TGT_LEFT'
*/
/* : c_g_aucFLOW_BI_VENT_VALVE_MIN = g_aucFLOW_BI_VENT_VALVE_MIN(LVL + 1 + 6); */
tmp_0 = (int32_t)(rtu_LVL + 1U);
@@ -1573,175 +1578,175 @@ void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9], uint8_t
rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN = g_aucFLOW_BI_VENT_VALVE_MIN[tmp - 1];
- /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' */
+ /* End of MATLAB Function: '/g_aucFLOW_BI_VENT_VALVE_MIN' */
- /* DataTypeConversion: '/Data Type Conversion' incorporates:
- * Sum: '/ '
- * Switch: '/Switch2'
+ /* DataTypeConversion: '/Data Type Conversion' incorporates:
+ * Sum: '/ '
+ * Switch: '/Switch2'
*/
rtb_Switch2_c_0 = (uint16_t)((uint16_t)((rty_Out1[0] - rtb_u_eg) >> 1) << 1);
- /* Switch: '/Switch2' incorporates:
- * RelationalOperator: '/LowerRelop1'
- * RelationalOperator: '/UpperRelop'
- * Switch: '/Switch'
+ /* Switch: '/Switch2' incorporates:
+ * RelationalOperator: '/LowerRelop1'
+ * RelationalOperator: '/UpperRelop'
+ * Switch: '/Switch'
*/
if (rtb_Switch2_a5_idx_0 > rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX_h) {
- /* Assignment: '/Присваивание в [1-2]' incorporates:
- * SignalConversion generated from: '/Out1'
+ /* Assignment: '/Присваивание в [1-2]' incorporates:
+ * SignalConversion generated from: '/Out1'
*/
rty_Out1[0] = rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX_h;
} else if (rtb_Switch2_a5_idx_0 < rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN_a) {
- /* Switch: '/Switch' incorporates:
- * Assignment: '/Присваивание в [1-2]'
- * SignalConversion generated from: '/Out1'
+ /* Switch: '/Switch' incorporates:
+ * Assignment: '/Присваивание в [1-2]'
+ * SignalConversion generated from: '/Out1'
*/
rty_Out1[0] = rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN_a;
} else {
- /* Assignment: '/Присваивание в [1-2]' incorporates:
- * SignalConversion generated from: '/Out1'
- * Switch: '/Switch'
+ /* Assignment: '/Присваивание в [1-2]' incorporates:
+ * SignalConversion generated from: '/Out1'
+ * Switch: '/Switch'
*/
rty_Out1[0] = rtb_Switch2_a5_idx_0;
}
- /* Switch: '/Switch2' incorporates:
- * RelationalOperator: '/LowerRelop1'
- * RelationalOperator: '/UpperRelop'
- * Switch: '/Switch'
+ /* Switch: '/Switch2' incorporates:
+ * RelationalOperator: '/LowerRelop1'
+ * RelationalOperator: '/UpperRelop'
+ * Switch: '/Switch'
*/
if (rtb_Switch2_c_0 > rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX) {
- /* Assignment: '/Присваивание в [3-4]' incorporates:
- * SignalConversion generated from: '/Out1'
+ /* Assignment: '/Присваивание в [3-4]' incorporates:
+ * SignalConversion generated from: '/Out1'
*/
rty_Out1[2] = rtb_c_g_aucFLOW_BI_VENT_VALVE_MAX;
} else if (rtb_Switch2_c_0 < rtb_c_g_aucFLOW_BI_VENT_VALVE_MIN) {
- /* Switch: '/Switch' incorporates:
- * Assignment: '/Присваивание в [3-4]'
- * SignalConversion generated from: '/Out1'
+ /* Switch: '/Switch' incorporates:
+ * Assignment: '/Присваивание в [3-4]'
+ * SignalConversion generated from: '