Обновление
This commit is contained in:
parent
87457e685f
commit
c16c69a3b3
10427
HVAC_model.c
10427
HVAC_model.c
File diff suppressed because it is too large
Load Diff
1658
HVAC_model.h
1658
HVAC_model.h
File diff suppressed because one or more lines are too long
|
|
@ -3,9 +3,9 @@
|
||||||
*
|
*
|
||||||
* Code generated for Simulink model 'HVAC_model'.
|
* Code generated for Simulink model 'HVAC_model'.
|
||||||
*
|
*
|
||||||
* Model version : 1.760
|
* Model version : 1.784
|
||||||
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
|
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
|
||||||
* C/C++ source code generated on : Fri Apr 3 18:15:49 2026
|
* C/C++ source code generated on : Tue Apr 14 14:42:16 2026
|
||||||
*
|
*
|
||||||
* Target selection: ert.tlc
|
* Target selection: ert.tlc
|
||||||
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
||||||
|
|
@ -479,11 +479,6 @@ const ConstP rtConstP = {
|
||||||
*/
|
*/
|
||||||
{ 5U, 12U },
|
{ 5U, 12U },
|
||||||
|
|
||||||
/* Computed Parameter: ACT2_Value
|
|
||||||
* Referenced by: '<S388>/ACT2'
|
|
||||||
*/
|
|
||||||
{ 5000, 1, 1195, 1315, 1300, 1485, 1440, 1195, 1175 },
|
|
||||||
|
|
||||||
/* Computed Parameter: uDLookupTable_tableData_h
|
/* Computed Parameter: uDLookupTable_tableData_h
|
||||||
* Referenced by: '<S8>/1-D Lookup Table'
|
* Referenced by: '<S8>/1-D Lookup Table'
|
||||||
*/
|
*/
|
||||||
|
|
@ -599,7 +594,7 @@ const ConstP rtConstP = {
|
||||||
4080U, 4084U, 4088U, 4092U },
|
4080U, 4084U, 4088U, 4092U },
|
||||||
|
|
||||||
/* Computed Parameter: ACT1_Value
|
/* Computed Parameter: ACT1_Value
|
||||||
* Referenced by: '<S402>/ACT1'
|
* Referenced by: '<S400>/ACT1'
|
||||||
*/
|
*/
|
||||||
{ 1050U, 1250U, 1195U, 1315U, 1300U, 1485U, 1440U, 1195U, 1175U },
|
{ 1050U, 1250U, 1195U, 1315U, 1300U, 1485U, 1440U, 1195U, 1175U },
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
*
|
*
|
||||||
* Code generated for Simulink model 'HVAC_model'.
|
* Code generated for Simulink model 'HVAC_model'.
|
||||||
*
|
*
|
||||||
* Model version : 1.760
|
* Model version : 1.784
|
||||||
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
|
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
|
||||||
* C/C++ source code generated on : Fri Apr 3 18:15:49 2026
|
* C/C++ source code generated on : Tue Apr 14 14:42:16 2026
|
||||||
*
|
*
|
||||||
* Target selection: ert.tlc
|
* Target selection: ert.tlc
|
||||||
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
||||||
|
|
@ -108,17 +108,14 @@ extern void g_aucFLOW_AFSM_FOOT_VALVE_MAX_f(uint8_t rtu_LVL, uint8_t
|
||||||
extern void Afoot_Summer(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1
|
extern void Afoot_Summer(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1
|
||||||
[9], uint8_t rtu_setTempFL, uint8_t rtu_setTempFR);
|
[9], uint8_t rtu_setTempFL, uint8_t rtu_setTempFR);
|
||||||
extern void left(uint8_t rtu_idx, uint16_t rty_vals[9]);
|
extern void left(uint8_t rtu_idx, uint16_t rty_vals[9]);
|
||||||
extern void StopMode(int8_t rtu_stepIn, int8_t *rty_step, const uint8_t
|
extern void g_assSTART_ENTER_INCAR_j(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
*rtd_Busy_private_a, uint8_t rtd_COM_private_h[9], const
|
extern void g_assSTART_ENTER_COOLANT_p(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
uint8_t *rtd_Error_Connect_private_f, uint8_t
|
extern void Level4(int8_t *rty_step1, const uint16_t *rtd_ECT, const uint8_t
|
||||||
rtd_MODE_private_a[9]);
|
|
||||||
extern void g_assSTART_ENTER_INCAR_a(uint8_t rtu_LVL, int16_t *rty_out);
|
|
||||||
extern void Level3(int8_t *rty_step1, const uint16_t *rtd_ECT, const uint8_t
|
|
||||||
*rtd_LEVEL, const double *rtd_MODE_DRIVER);
|
*rtd_LEVEL, const double *rtd_MODE_DRIVER);
|
||||||
extern void Level0(int8_t *rty_step);
|
extern void Level0(int8_t *rty_step);
|
||||||
extern void incarfilterdown(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void incarfilterdown(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void incarfilterup(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void incarfilterup(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void g_assSTART_COOLANT_STEP0_TO_1_k(uint8_t rtu_LVL, int16_t *rty_out);
|
extern void g_assSTART_COOLANT_STEP0_TO_1_h(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
extern void uwayvalvestatus(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void uwayvalvestatus(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void Dtg_FrontLower_X(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void Dtg_FrontLower_X(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void Dtg_FrontUpper_X(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void Dtg_FrontUpper_X(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
|
@ -129,50 +126,49 @@ extern void windowheating(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void Timegotofromstep1tostep2(uint8_t rtu_LVL, int16_t *rty_out);
|
extern void Timegotofromstep1tostep2(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
extern void ECTminmax(uint8_t rtu_LVL, int16_t rty_out[2]);
|
extern void ECTminmax(uint8_t rtu_LVL, int16_t rty_out[2]);
|
||||||
extern void blowerminmax(uint8_t rtu_LVL, uint16_t rty_out[2]);
|
extern void blowerminmax(uint8_t rtu_LVL, uint16_t rty_out[2]);
|
||||||
extern void Level4(int8_t *rty_step, uint16_t *rtd_Blower_FL, uint16_t
|
extern 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,
|
*rtd_Blower_FR, uint8_t *rtd_Dtg_FLL, uint8_t *rtd_Dtg_FLR,
|
||||||
uint8_t *rtd_Dtg_FUL, uint8_t *rtd_Dtg_FUR, const uint16_t
|
uint8_t *rtd_Dtg_FUL, uint8_t *rtd_Dtg_FUR, const uint16_t *
|
||||||
*rtd_ECT, uint8_t *rtd_El_window_heating, const int16_t
|
rtd_ECT, uint8_t *rtd_El_window_heating, const int16_t
|
||||||
*rtd_Incar_FL, uint8_t *rtd_Incar_filter_down_value, uint8_t *
|
*rtd_Incar_FL, uint8_t *rtd_Incar_filter_down_value,
|
||||||
rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, uint8_t *
|
uint8_t *rtd_Incar_filter_up_value, const uint8_t
|
||||||
rtd_Mode_FL, uint8_t *rtd_Mode_FR, double *rtd_Recirculation,
|
*rtd_LEVEL, uint8_t *rtd_Mode_FL, uint8_t *rtd_Mode_FR,
|
||||||
uint8_t *rtd_Valve_3_way, const int8_t
|
double *rtd_Recirculation, uint8_t *rtd_Valve_3_way, const
|
||||||
*rtd_step_start_controle_front, const uint32_t *rtd_t_now,
|
int8_t *rtd_step_start_controle_front, const uint32_t
|
||||||
DW_Level4 *localDW);
|
*rtd_t_now, DW_Level4_n *localDW);
|
||||||
extern void uwayvalvestatus_m(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void uwayvalvestatus_a(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void timeforstep(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void timeforstep(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void timeforstep_a(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void timeforstep_j(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void Timegotofromstep2tostep3(uint8_t rtu_LVL, int16_t *rty_out);
|
extern void Timegotofromstep2tostep3(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
extern void blowerstep(uint8_t rtu_LVL, uint16_t *rty_out);
|
extern void blowerstep(uint8_t rtu_LVL, uint16_t *rty_out);
|
||||||
extern void blowertimeforstep(uint8_t rtu_LVL, uint16_t *rty_out);
|
extern void blowertimeforstep(uint8_t rtu_LVL, uint16_t *rty_out);
|
||||||
extern void step_l(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void step_j(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void timeforstep_f(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void timeforstep_g(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void windowheating_k(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void windowheating_k(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void autodemistautodefog(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void autodemistautodefog(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void Level3_d(int8_t *rty_step, uint8_t *rtd_Autodefog, uint16_t
|
extern void Level3(int8_t *rty_step, uint8_t *rtd_Autodefog, uint16_t
|
||||||
*rtd_Blower_FL, uint16_t *rtd_Blower_FR, const uint16_t
|
*rtd_Blower_FL, uint16_t *rtd_Blower_FR, const uint16_t
|
||||||
*rtd_Blower_logic_FL, uint8_t *rtd_Dtg_FLL, uint8_t
|
*rtd_Blower_logic_FL, uint8_t *rtd_Dtg_FLL, uint8_t
|
||||||
*rtd_Dtg_FLR, uint8_t *rtd_Dtg_FUL, uint8_t *rtd_Dtg_FUR,
|
*rtd_Dtg_FLR, uint8_t *rtd_Dtg_FUL, uint8_t *rtd_Dtg_FUR,
|
||||||
const uint8_t *rtd_Dtg_logic_FLL, const uint8_t
|
const uint8_t *rtd_Dtg_logic_FLL, const uint8_t
|
||||||
*rtd_Dtg_logic_FUL, uint8_t *rtd_El_window_heating, const
|
*rtd_Dtg_logic_FUL, uint8_t *rtd_El_window_heating, const
|
||||||
bool *rtd_HI_logic_on, uint8_t *rtd_Incar_filter_down_value,
|
bool *rtd_HI_logic_on, uint8_t *rtd_Incar_filter_down_value,
|
||||||
uint8_t *rtd_Incar_filter_up_value, const uint8_t
|
uint8_t *rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL,
|
||||||
*rtd_LEVEL, uint8_t *rtd_Mode_FL, uint8_t *rtd_Mode_FR,
|
uint8_t *rtd_Mode_FL, uint8_t *rtd_Mode_FR, const uint8_t
|
||||||
const uint8_t *rtd_Mode_logic_FL, double *rtd_Recirculation,
|
*rtd_Mode_logic_FL, double *rtd_Recirculation, uint8_t
|
||||||
uint8_t *rtd_Valve_3_way, const int8_t
|
*rtd_Valve_3_way, const int8_t *rtd_step_start_controle_front,
|
||||||
*rtd_step_start_controle_front, const uint32_t *rtd_t_now,
|
const uint32_t *rtd_t_now, DW_Level3 *localDW);
|
||||||
DW_Level3_h *localDW);
|
extern void Step3F(int8_t *rty_step, int8_t *rtd_start_control_finished_front);
|
||||||
extern void Step3(int8_t *rty_step, int8_t *rtd_start_control_finished_front);
|
extern void g_ausSTART_ENTER_SETTEMP_b(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
extern void g_ausSTART_ENTER_SETTEMP_p(uint8_t rtu_LVL, int16_t *rty_out);
|
extern void g_assSTART_ENTER_INCAR_p(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
extern void g_assSTART_ENTER_INCAR_l(uint8_t rtu_LVL, int16_t *rty_out);
|
extern void g_assSTART_ENTER_COOLANT_e(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
extern void g_assSTART_ENTER_COOLANT_i(uint8_t rtu_LVL, int16_t *rty_out);
|
extern void Level4_e(int8_t *rty_step1, const uint16_t *rtd_ECT, const int16_t
|
||||||
extern void Level4_i(int8_t *rty_step1, const uint16_t *rtd_ECT, const int16_t
|
|
||||||
*rtd_Incar_RR, const uint8_t *rtd_LEVEL, const double
|
*rtd_Incar_RR, const uint8_t *rtd_LEVEL, const double
|
||||||
*rtd_MODE_RR_passenger);
|
*rtd_MODE_RR_passenger);
|
||||||
extern void incarfilterdown_j(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void incarfilterdown_c(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void incarfilterup_d(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void incarfilterup_i(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void g_assSTART_COOLANT_STEP0_TO_1_g(uint8_t rtu_LVL, int16_t *rty_out);
|
extern void g_assSTART_COOLANT_STEP0_TO_1_e(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
extern void Level4_h(int8_t *rty_step1, uint16_t *rtd_Blower_RL, uint16_t
|
extern 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,
|
*rtd_Blower_RR, uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR,
|
||||||
const uint16_t *rtd_ECT, uint8_t
|
const uint16_t *rtd_ECT, uint8_t
|
||||||
*rtd_Incar_filter_down_value, uint8_t
|
*rtd_Incar_filter_down_value, uint8_t
|
||||||
|
|
@ -181,10 +177,10 @@ extern void Level4_h(int8_t *rty_step1, uint16_t *rtd_Blower_RL, uint16_t
|
||||||
*rtd_Valve_2_way, uint8_t *rtd_Valve_3_way);
|
*rtd_Valve_2_way, uint8_t *rtd_Valve_3_way);
|
||||||
extern void uwayvalve(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void uwayvalve(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void Dtg_rear(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void Dtg_rear(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void Incartempgotofromstep1tostep2_b(uint8_t rtu_LVL, int16_t *rty_out);
|
extern void Incartempgotofromstep1tostep2_j(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
extern void Timegotofromstep1tostep2_h(uint8_t rtu_LVL, int16_t *rty_out);
|
extern void Timegotofromstep1tostep2_l(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
extern void moderearstep1(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void moderearstep1(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void Level0_h(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t
|
extern 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,
|
*rtd_Blower_RR, uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR,
|
||||||
const int16_t *rtd_Incar_RR, uint8_t
|
const int16_t *rtd_Incar_RR, uint8_t
|
||||||
*rtd_Incar_filter_down_value, uint8_t
|
*rtd_Incar_filter_down_value, uint8_t
|
||||||
|
|
@ -192,9 +188,9 @@ extern void Level0_h(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t
|
||||||
uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR, double
|
uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR, double
|
||||||
*rtd_Recirculation, uint8_t *rtd_Valve_2_way, const int8_t *
|
*rtd_Recirculation, uint8_t *rtd_Valve_2_way, const int8_t *
|
||||||
rtd_step_start_controle_rear, const uint32_t *rtd_t_now,
|
rtd_step_start_controle_rear, const uint32_t *rtd_t_now,
|
||||||
DW_Level0_p *localDW);
|
DW_Level0_c *localDW);
|
||||||
extern void blowerstartfinish(uint8_t rtu_LVL, uint16_t rty_out[2]);
|
extern void blowerstartfinish(uint8_t rtu_LVL, uint16_t rty_out[2]);
|
||||||
extern void ECTminmax_h(uint8_t rtu_LVL, int16_t rty_out[2]);
|
extern void ECTminmax_l(uint8_t rtu_LVL, int16_t rty_out[2]);
|
||||||
extern void Level4_d(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t
|
extern 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,
|
*rtd_Blower_RR, uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR,
|
||||||
const uint16_t *rtd_ECT, const int16_t *rtd_Incar_RR,
|
const uint16_t *rtd_ECT, const int16_t *rtd_Incar_RR,
|
||||||
|
|
@ -203,32 +199,23 @@ extern void Level4_d(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t
|
||||||
uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR, double
|
uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR, double
|
||||||
*rtd_Recirculation, uint8_t *rtd_Valve_2_way, const int8_t *
|
*rtd_Recirculation, uint8_t *rtd_Valve_2_way, const int8_t *
|
||||||
rtd_step_start_controle_rear, const uint32_t *rtd_t_now,
|
rtd_step_start_controle_rear, const uint32_t *rtd_t_now,
|
||||||
DW_Level4_m *localDW);
|
DW_Level4_a *localDW);
|
||||||
extern void timeforstep_fu(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void timeforstep_jn(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void blowerstep_j(uint8_t rtu_LVL, uint16_t *rty_out);
|
extern void blowerstep_d(uint8_t rtu_LVL, uint16_t *rty_out);
|
||||||
extern void blowertimeforstep_a(uint8_t rtu_LVL, uint16_t *rty_out);
|
extern void blowertimeforstep_l(uint8_t rtu_LVL, uint16_t *rty_out);
|
||||||
extern void step_c(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void step_a(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void timeforstep_h(uint8_t rtu_LVL, uint8_t *rty_out);
|
extern void timeforstep_h(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
extern void Level0_j(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t
|
extern void Level3_i(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t
|
||||||
*rtd_Blower_RR, const uint16_t *rtd_Blower_logic_RR,
|
*rtd_Blower_RR, const uint16_t *rtd_Blower_logic_RR,
|
||||||
uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, const uint8_t
|
uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, const uint8_t
|
||||||
*rtd_Dtg_logic_RR, uint8_t *rtd_Incar_filter_down_value,
|
|
||||||
uint8_t *rtd_Incar_filter_up_value, const uint8_t
|
|
||||||
*rtd_LEVEL, uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR,
|
|
||||||
const uint8_t *rtd_Mode_logic_RR, double *rtd_Recirculation,
|
|
||||||
uint8_t *rtd_Valve_2_way, const int8_t
|
|
||||||
*rtd_step_start_controle_rear, const uint32_t *rtd_t_now,
|
|
||||||
DW_Level0_n *localDW);
|
|
||||||
extern void Level2(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t
|
|
||||||
*rtd_Blower_RR, const uint16_t *rtd_Blower_logic_RR, uint8_t *
|
|
||||||
rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, const uint8_t
|
|
||||||
*rtd_Dtg_logic_RR, const bool *rtd_HI_logic_on, uint8_t
|
*rtd_Dtg_logic_RR, const bool *rtd_HI_logic_on, uint8_t
|
||||||
*rtd_Incar_filter_down_value, uint8_t
|
*rtd_Incar_filter_down_value, uint8_t
|
||||||
*rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, uint8_t
|
*rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL,
|
||||||
*rtd_Mode_RL, uint8_t *rtd_Mode_RR, const uint8_t
|
uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR, const uint8_t
|
||||||
*rtd_Mode_logic_RR, double *rtd_Recirculation, uint8_t
|
*rtd_Mode_logic_RR, double *rtd_Recirculation, uint8_t
|
||||||
*rtd_Valve_2_way, const int8_t *rtd_step_start_controle_rear,
|
*rtd_Valve_2_way, const int8_t
|
||||||
const uint32_t *rtd_t_now, DW_Level2 *localDW);
|
*rtd_step_start_controle_rear, const uint32_t *rtd_t_now,
|
||||||
|
DW_Level3_n *localDW);
|
||||||
|
|
||||||
#endif /* HVAC_model_private_h_ */
|
#endif /* HVAC_model_private_h_ */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
*
|
*
|
||||||
* Code generated for Simulink model 'HVAC_model'.
|
* Code generated for Simulink model 'HVAC_model'.
|
||||||
*
|
*
|
||||||
* Model version : 1.760
|
* Model version : 1.784
|
||||||
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
|
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
|
||||||
* C/C++ source code generated on : Fri Apr 3 18:15:49 2026
|
* C/C++ source code generated on : Tue Apr 14 14:42:16 2026
|
||||||
*
|
*
|
||||||
* Target selection: ert.tlc
|
* Target selection: ert.tlc
|
||||||
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
||||||
|
|
@ -174,6 +174,25 @@ typedef struct {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef DEFINED_TYPEDEF_FOR_ActuatorCmdBusInput_
|
||||||
|
#define DEFINED_TYPEDEF_FOR_ActuatorCmdBusInput_
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
int16_t in_CPOS_ALL[9];
|
||||||
|
int8_t in_Act_Emrf_Slave[9];
|
||||||
|
int8_t in_Mode_Slave[9];
|
||||||
|
int8_t in_Act_Err1_Supply[9];
|
||||||
|
int8_t in_Act_Err2_Communication[9];
|
||||||
|
int8_t in_Act_Err3_Temperature[9];
|
||||||
|
int8_t in_Act_Err4_Permanent_Electrical[9];
|
||||||
|
int8_t in_Act_Stall_Slave[9];
|
||||||
|
int8_t in_Act_Reset[9];
|
||||||
|
uint8_t Busy;
|
||||||
|
uint8_t Error_Connect;
|
||||||
|
} ActuatorCmdBusInput;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef DEFINED_TYPEDEF_FOR_CmdBusStatus_
|
#ifndef DEFINED_TYPEDEF_FOR_CmdBusStatus_
|
||||||
#define DEFINED_TYPEDEF_FOR_CmdBusStatus_
|
#define DEFINED_TYPEDEF_FOR_CmdBusStatus_
|
||||||
|
|
||||||
|
|
@ -232,25 +251,6 @@ typedef struct {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DEFINED_TYPEDEF_FOR_ActuatorCmdBusInput_
|
|
||||||
#define DEFINED_TYPEDEF_FOR_ActuatorCmdBusInput_
|
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
int16_t in_CPOS_ALL[9];
|
|
||||||
int8_t in_Act_Emrf_Slave[9];
|
|
||||||
int8_t in_Mode_Slave[9];
|
|
||||||
int8_t in_Act_Err1_Supply[9];
|
|
||||||
int8_t in_Act_Err2_Communication[9];
|
|
||||||
int8_t in_Act_Err3_Temperature[9];
|
|
||||||
int8_t in_Act_Err4_Permanent_Electrical[9];
|
|
||||||
int8_t in_Act_Stall_Slave[9];
|
|
||||||
int8_t in_Act_Reset[9];
|
|
||||||
uint8_t Busy;
|
|
||||||
uint8_t Error_Connect;
|
|
||||||
} ActuatorCmdBusInput;
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef DEFINED_TYPEDEF_FOR_CmdBusPWMGet_
|
#ifndef DEFINED_TYPEDEF_FOR_CmdBusPWMGet_
|
||||||
#define DEFINED_TYPEDEF_FOR_CmdBusPWMGet_
|
#define DEFINED_TYPEDEF_FOR_CmdBusPWMGet_
|
||||||
|
|
||||||
|
|
|
||||||
10
Model_Task.c
10
Model_Task.c
|
|
@ -39,11 +39,11 @@ static bool setActuatorBusy(tModelTask *env) {
|
||||||
|
|
||||||
memcpy(&env->triggerActuatorCmdBus_1, &Actuator_Ch0_Command_Model, sizeof(ActuatorCmdBus));
|
memcpy(&env->triggerActuatorCmdBus_1, &Actuator_Ch0_Command_Model, sizeof(ActuatorCmdBus));
|
||||||
|
|
||||||
rtDW.Actuator_Ch0_Status_Model.Busy = 1;
|
Actuator_Ch0_Status_Model.Busy = 1;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
for (uint8_t i = 0; i < env->linTaskActuator2->LIN_ISSR_ALL; ++i) {
|
for (uint8_t i = 0; i < env->linTaskActuator2->LIN_ISSR_ALL; ++i) {
|
||||||
if (Actuator_Ch1_Command_Model.COM[i] != 0) {
|
if (Actuator_Ch1_Command_Model.COM[i] != 0) {
|
||||||
|
|
||||||
|
|
@ -51,7 +51,7 @@ static bool setActuatorBusy(tModelTask *env) {
|
||||||
|
|
||||||
memcpy(&env->triggerActuatorCmdBus_2, &Actuator_Ch1_Command_Model, sizeof(ActuatorCmdBus));
|
memcpy(&env->triggerActuatorCmdBus_2, &Actuator_Ch1_Command_Model, sizeof(ActuatorCmdBus));
|
||||||
|
|
||||||
rtDW.Actuator_Ch1_Status_Model.Busy = 1;
|
Actuator_Ch1_Status_Model.Busy = 1;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -63,11 +63,11 @@ static bool setActuatorBusy(tModelTask *env) {
|
||||||
|
|
||||||
memcpy(&env->triggerActuatorCmdBus_3, &Actuator_Ch2_Command_Model, sizeof(ActuatorCmdBus));
|
memcpy(&env->triggerActuatorCmdBus_3, &Actuator_Ch2_Command_Model, sizeof(ActuatorCmdBus));
|
||||||
|
|
||||||
rtDW.Actuator_Ch2_Status_Model.Busy = 1;
|
Actuator_Ch2_Status_Model.Busy = 1;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue