From 877e88610f86795086a27d5680dc4fe48540d6cc Mon Sep 17 00:00:00 2001
From: darya
Date: Fri, 5 Jun 2026 09:38:47 +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=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D0=B8?=
=?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=BA=D0=B0=2005.06.2026?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
HVAC_model.c | 17822 ++++++++++++++++++++---------------------
HVAC_model.h | 6430 ++++++++-------
HVAC_model_data.c | 106 +-
HVAC_model_private.h | 4 +-
HVAC_model_types.h | 59 +-
5 files changed, 12180 insertions(+), 12241 deletions(-)
mode change 100644 => 100755 HVAC_model.c
mode change 100644 => 100755 HVAC_model.h
mode change 100644 => 100755 HVAC_model_data.c
mode change 100644 => 100755 HVAC_model_private.h
mode change 100644 => 100755 HVAC_model_types.h
diff --git a/HVAC_model.c b/HVAC_model.c
old mode 100644
new mode 100755
index 7420cfa..ea5be25
--- a/HVAC_model.c
+++ b/HVAC_model.c
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'HVAC_model'.
*
- * Model version : 1.1038
+ * Model version : 1.1051
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
- * C/C++ source code generated on : Wed Jun 3 16:40:55 2026
+ * C/C++ source code generated on : Thu Jun 4 14:09:18 2026
*
* Target selection: ert.tlc
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
@@ -183,9 +183,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' */
@@ -954,12 +954,12 @@ uint32_t plook_u32s16_bincka(int16_t u_8, const int16_t bp[], uint32_t maxIndex)
/*
* Output and update for atomic system:
- * '/обычное понижение темп.'
- * '/обычное повышение темп.'
- * '/обычное понижение темп.'
- * '/обычное повышение темп.'
- * '/обычное понижение темп.'
- * '/обычное повышение темп.'
+ * '/обычное понижение темп.'
+ * '/обычное повышение темп.'
+ * '/обычное понижение темп.'
+ * '/обычное повышение темп.'
+ * '/обычное понижение темп.'
+ * '/обычное повышение темп.'
*/
void u(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_FALLING)
{
@@ -976,130 +976,130 @@ void u(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_FALLING)
/*
* Output and update for action system:
- * '/включен ускоренный режим'
- * '/включен ускоренный режим'
- * '/включен ускоренный режим'
+ * '/включен ускоренный режим'
+ * '/включен ускоренный режим'
+ * '/включен ускоренный режим'
*/
void u_d(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_out, const double
*rtd_AMB_store, double *rtd_KEEP_FALLING_UNTIL_LIMIT)
{
int32_t tmp;
- /* If: '/If' incorporates:
- * Abs: '/ABS(AMBraw - AMB)'
- * DataStoreRead: '/Read Amb'
- * MATLAB Function: '/AMBRATE_RISING_DIFF[8]'
- * RelationalOperator: '/Relational Operator'
- * Sum: '/Add'
+ /* If: '/If' incorporates:
+ * Abs: '/ABS(AMBraw - AMB)'
+ * DataStoreRead: '/Read Amb'
+ * MATLAB Function: '/AMBRATE_RISING_DIFF[8]'
+ * RelationalOperator: '/Relational Operator'
+ * Sum: '/Add'
*/
/* : f_g_aucAMBRATE_FALLING_DIFF = g_aucAMBRATE_FALLING_DIFF(8); */
if (fabs((double)rtu_amb_raw - *rtd_AMB_store) <= g_aucAMBRATE_FALLING_DIFF[7])
{
- /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates:
- * ActionPort: '/Action Port'
+ /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates:
+ * ActionPort: '/Action Port'
*/
- /* DataStoreWrite: '/Data Store Write' incorporates:
- * Constant: '/Constant'
+ /* DataStoreWrite: '/Data Store Write' incorporates:
+ * Constant: '/Constant'
*/
*rtd_KEEP_FALLING_UNTIL_LIMIT = 0.0;
- /* SignalConversion generated from: '/out' incorporates:
- * MATLAB Function: '/обычное понижение темп.'
- * Merge: '/Merge'
+ /* SignalConversion generated from: '/out' incorporates:
+ * MATLAB Function: '/обычное понижение темп.'
+ * Merge: '/Merge'
*/
u(rtu_lvl, rty_out);
- /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */
+ /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */
} else {
- /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates:
- * ActionPort: '/Action Port'
+ /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates:
+ * ActionPort: '/Action Port'
*/
- /* MATLAB Function: '/ускоренное повышение темп.' */
+ /* MATLAB Function: '/ускоренное повышение темп.' */
/* : f_g_aucAMBRATE_FALLING_DIFF = g_aucAMBRATE_FALLING_DIFF(lvl + 1); */
tmp = rtu_lvl + 1;
if (rtu_lvl + 1 > 32767) {
tmp = 32767;
}
- /* SignalConversion generated from: '/out' incorporates:
- * MATLAB Function: '/ускоренное повышение темп.'
- * Merge: '/Merge'
+ /* SignalConversion generated from: '/out' incorporates:
+ * MATLAB Function: '/ускоренное повышение темп.'
+ * Merge: '/Merge'
*/
*rty_out = g_aucAMBRATE_FALLING_DIFF[tmp - 1];
- /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */
- }
-
- /* End of If: '/If' */
-}
-
-/*
- * Output and update for action system:
- * '/обычный режим'
- * '/обычный режим'
- * '/обычный режим'
- */
-void u_c(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_riseperminute, const
- double *rtd_AMB_store, double *rtd_KEEP_FALLING_UNTIL_LIMIT)
-{
- int32_t tmp;
-
- /* If: '/If' incorporates:
- * Abs: '/ABS(AMBraw - AMB)'
- * DataStoreRead: '/Read Amb'
- * MATLAB Function: '/AMBRATE_FALLING_DIFF[7]'
- * RelationalOperator: '/Relational Operator'
- * Sum: '/Add'
- */
- /* : f_g_aucAMBRATE_FALLING_DIFF = g_aucAMBRATE_FALLING_DIFF(7); */
- if (fabs((double)rtu_amb_raw - *rtd_AMB_store) > g_aucAMBRATE_FALLING_DIFF[6])
- {
- /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates:
- * ActionPort: '/Action Port'
- */
- /* DataStoreWrite: '/Data Store Write' incorporates:
- * Constant: '/Constant'
- */
- *rtd_KEEP_FALLING_UNTIL_LIMIT = 1.0;
-
- /* MATLAB Function: '/ускоренное повышение темп.' */
- /* : f_g_aucAMBRATE_FALLING_DIFF_LVL = g_aucAMBRATE_FALLING_DIFF(lvl + 1); */
- tmp = rtu_lvl + 1;
- if (rtu_lvl + 1 > 32767) {
- tmp = 32767;
- }
-
- /* SignalConversion generated from: '/rise per minute' incorporates:
- * MATLAB Function: '/ускоренное повышение темп.'
- * Merge: '/Merge'
- */
- *rty_riseperminute = g_aucAMBRATE_FALLING_DIFF[tmp - 1];
-
- /* End of Outputs for SubSystem: '/включаем ускоренный режим' */
- } else {
- /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates:
- * ActionPort: '/Action Port'
- */
- /* SignalConversion generated from: '/rise per minute' incorporates:
- * MATLAB Function: '/обычное повышение темп.'
- * Merge: '/Merge'
- */
- u(rtu_lvl, rty_riseperminute);
-
- /* End of Outputs for SubSystem: '/обычный режим повышения' */
+ /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */
}
/* End of If: '/If' */
}
+/*
+ * Output and update for action system:
+ * '/обычный режим'
+ * '/обычный режим'
+ * '/обычный режим'
+ */
+void u_c(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_riseperminute, const
+ double *rtd_AMB_store, double *rtd_KEEP_FALLING_UNTIL_LIMIT)
+{
+ int32_t tmp;
+
+ /* If: '/If' incorporates:
+ * Abs: '/ABS(AMBraw - AMB)'
+ * DataStoreRead: '/Read Amb'
+ * MATLAB Function: '/AMBRATE_FALLING_DIFF[7]'
+ * RelationalOperator: '/Relational Operator'
+ * Sum: '/Add'
+ */
+ /* : f_g_aucAMBRATE_FALLING_DIFF = g_aucAMBRATE_FALLING_DIFF(7); */
+ if (fabs((double)rtu_amb_raw - *rtd_AMB_store) > g_aucAMBRATE_FALLING_DIFF[6])
+ {
+ /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates:
+ * ActionPort: '/Action Port'
+ */
+ /* DataStoreWrite: '/Data Store Write' incorporates:
+ * Constant: '/Constant'
+ */
+ *rtd_KEEP_FALLING_UNTIL_LIMIT = 1.0;
+
+ /* MATLAB Function: '/ускоренное повышение темп.' */
+ /* : f_g_aucAMBRATE_FALLING_DIFF_LVL = g_aucAMBRATE_FALLING_DIFF(lvl + 1); */
+ tmp = rtu_lvl + 1;
+ if (rtu_lvl + 1 > 32767) {
+ tmp = 32767;
+ }
+
+ /* SignalConversion generated from: '/rise per minute' incorporates:
+ * MATLAB Function: '/ускоренное повышение темп.'
+ * Merge: '/Merge'
+ */
+ *rty_riseperminute = g_aucAMBRATE_FALLING_DIFF[tmp - 1];
+
+ /* End of Outputs for SubSystem: '/включаем ускоренный режим' */
+ } else {
+ /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates:
+ * ActionPort: '/Action Port'
+ */
+ /* SignalConversion generated from: '/rise per minute' incorporates:
+ * MATLAB Function: '/обычное повышение темп.'
+ * Merge: '/Merge'
+ */
+ u(rtu_lvl, rty_riseperminute);
+
+ /* End of Outputs for SubSystem: '/обычный режим повышения' */
+ }
+
+ /* End of If: '/If' */
+}
+
/*
* Output and update for atomic system:
- * '/обычное повышение темп.'
- * '/обычное повышение темп.'
- * '/обычное повышение темп.'
- * '/обычное повышение темп.'
- * '/обычное повышение темп.'
- * '/обычное повышение темп.'
+ * '/обычное повышение темп.'
+ * '/обычное повышение темп.'
+ * '/обычное повышение темп.'
+ * '/обычное повышение темп.'
+ * '/обычное повышение темп.'
+ * '/обычное повышение темп.'
*/
void u_b(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING)
{
@@ -1116,12 +1116,12 @@ void u_b(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING)
/*
* Output and update for atomic system:
- * '/ускоренное повышение темп.'
- * '/ускоренное повышение темп.'
- * '/ускоренное повышение темп.'
- * '/ускоренное повышение темп.'
- * '/ускоренное повышение темп.'
- * '/ускоренное повышение темп.'
+ * '/ускоренное повышение темп.'
+ * '/ускоренное повышение темп.'
+ * '/ускоренное повышение темп.'
+ * '/ускоренное повышение темп.'
+ * '/ускоренное повышение темп.'
+ * '/ускоренное повышение темп.'
*/
void u_g(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING_DIFF_LVL)
{
@@ -1138,108 +1138,108 @@ void u_g(int16_t rtu_lvl, uint8_t *rty_f_g_aucAMBRATE_RISING_DIFF_LVL)
/*
* Output and update for action system:
- * '/включен ускоренный режим'
- * '/включен ускоренный режим'
- * '/включен ускоренный режим'
+ * '/включен ускоренный режим'
+ * '/включен ускоренный режим'
+ * '/включен ускоренный режим'
*/
void u_h(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_out, const double
*rtd_AMB_store, double *rtd_KEEP_RISING_UNTIL_LIMIT)
{
- /* If: '/If' incorporates:
- * Abs: '/ABS(AMBraw - AMB)'
- * DataStoreRead: '/Read Amb'
- * MATLAB Function: '/AMBRATE_RISING_DIFF[8]'
- * RelationalOperator: '/Relational Operator'
- * Sum: '/Add'
+ /* If: '/If' incorporates:
+ * Abs: '/ABS(AMBraw - AMB)'
+ * DataStoreRead: '/Read Amb'
+ * MATLAB Function: '/AMBRATE_RISING_DIFF[8]'
+ * RelationalOperator: '/Relational Operator'
+ * Sum: '/Add'
*/
/* : f_g_aucAMBRATE_RISING_DIFF = g_aucAMBRATE_RISING_DIFF(8); */
if (fabs((double)rtu_amb_raw - *rtd_AMB_store) <= g_aucAMBRATE_RISING_DIFF[7])
{
- /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates:
- * ActionPort: '/Action Port'
+ /* Outputs for IfAction SubSystem: '/Отключаем ускоренный режим' incorporates:
+ * ActionPort: '/Action Port'
*/
- /* DataStoreWrite: '/Data Store Write' incorporates:
- * Constant: '/Constant'
+ /* DataStoreWrite: '/Data Store Write' incorporates:
+ * Constant: '/Constant'
*/
*rtd_KEEP_RISING_UNTIL_LIMIT = 0.0;
- /* SignalConversion generated from: '/out' incorporates:
- * MATLAB Function: '/обычное повышение темп.'
+ /* SignalConversion generated from: '/out' incorporates:
+ * MATLAB Function: '/обычное повышение темп.'
*/
u_b(rtu_lvl, rty_out);
- /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */
+ /* End of Outputs for SubSystem: '/Отключаем ускоренный режим' */
} else {
- /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates:
- * ActionPort: '/Action Port'
+ /* Outputs for IfAction SubSystem: '/Продолжаем в ускоренном' incorporates:
+ * ActionPort: '/Action Port'
*/
- /* SignalConversion generated from: '/out' incorporates:
- * MATLAB Function: '/ускоренное повышение темп.'
+ /* SignalConversion generated from: '/out' incorporates:
+ * MATLAB Function: '/ускоренное повышение темп.'
*/
u_g(rtu_lvl, rty_out);
- /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */
- }
-
- /* End of If: '/If' */
-}
-
-/*
- * Output and update for action system:
- * '/обычный режим'
- * '/обычный режим'
- * '/обычный режим'
- */
-void u_a(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_riseperminute, const
- double *rtd_AMB_store, double *rtd_KEEP_RISING_UNTIL_LIMIT)
-{
- /* If: '/If' incorporates:
- * Abs: '/ABS(AMBraw - AMB)'
- * DataStoreRead: '/Read Amb'
- * MATLAB Function: '/AMBRATE_RISING_DIFF[7]'
- * RelationalOperator: '/Relational Operator'
- * Sum: '/Add'
- */
- /* : f_g_aucAMBRATE_RISING_DIFF = g_aucAMBRATE_RISING_DIFF(7); */
- if (fabs((double)rtu_amb_raw - *rtd_AMB_store) > g_aucAMBRATE_RISING_DIFF[6])
- {
- /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates:
- * ActionPort: '/Action Port'
- */
- /* DataStoreWrite: '/Data Store Write' incorporates:
- * Constant: '/Constant'
- */
- *rtd_KEEP_RISING_UNTIL_LIMIT = 1.0;
-
- /* SignalConversion generated from: '/out' incorporates:
- * MATLAB Function: '/ускоренное повышение темп.'
- */
- u_g(rtu_lvl, rty_riseperminute);
-
- /* End of Outputs for SubSystem: '/включаем ускоренный режим' */
- } else {
- /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates:
- * ActionPort: '/Action Port'
- */
- /* SignalConversion generated from: '/out' incorporates:
- * MATLAB Function: '/обычное повышение темп.'
- */
- u_b(rtu_lvl, rty_riseperminute);
-
- /* End of Outputs for SubSystem: '/обычный режим повышения' */
+ /* End of Outputs for SubSystem: '/Продолжаем в ускоренном' */
}
/* End of If: '/If' */
}
+/*
+ * Output and update for action system:
+ * '/обычный режим'
+ * '/обычный режим'
+ * '/обычный режим'
+ */
+void u_a(int16_t rtu_amb_raw, int16_t rtu_lvl, uint8_t *rty_riseperminute, const
+ double *rtd_AMB_store, double *rtd_KEEP_RISING_UNTIL_LIMIT)
+{
+ /* If: '/If' incorporates:
+ * Abs: '/ABS(AMBraw - AMB)'
+ * DataStoreRead: '/Read Amb'
+ * MATLAB Function: '/AMBRATE_RISING_DIFF[7]'
+ * RelationalOperator: '/Relational Operator'
+ * Sum: '/Add'
+ */
+ /* : f_g_aucAMBRATE_RISING_DIFF = g_aucAMBRATE_RISING_DIFF(7); */
+ if (fabs((double)rtu_amb_raw - *rtd_AMB_store) > g_aucAMBRATE_RISING_DIFF[6])
+ {
+ /* Outputs for IfAction SubSystem: '/включаем ускоренный режим' incorporates:
+ * ActionPort: '/Action Port'
+ */
+ /* DataStoreWrite: '/Data Store Write' incorporates:
+ * Constant: '/Constant'
+ */
+ *rtd_KEEP_RISING_UNTIL_LIMIT = 1.0;
+
+ /* SignalConversion generated from: '/out' incorporates:
+ * MATLAB Function: '/ускоренное повышение темп.'
+ */
+ u_g(rtu_lvl, rty_riseperminute);
+
+ /* End of Outputs for SubSystem: '/включаем ускоренный режим' */
+ } else {
+ /* Outputs for IfAction SubSystem: '/обычный режим повышения' incorporates:
+ * ActionPort: '/Action Port'
+ */
+ /* SignalConversion generated from: '/out' incorporates:
+ * MATLAB Function: '/обычное повышение темп.'
+ */
+ u_b(rtu_lvl, rty_riseperminute);
+
+ /* End of Outputs for SubSystem: '/обычный режим повышения' */
+ }
+
+ /* End of If: '/If' */
+}
+
/*
* 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)
@@ -1284,12 +1284,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'
+ * '