diff --git a/HVAC_model.c b/HVAC_model.c old mode 100755 new mode 100644 index b427f2d..24fbdfb --- a/HVAC_model.c +++ b/HVAC_model.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.815 + * Model version : 1.820 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Fri Apr 17 15:57:38 2026 + * C/C++ source code generated on : Tue Apr 21 14:12:53 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -4618,7 +4618,7 @@ void Level3_i(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR uint16_t rtb_out_gx; uint8_t rtb_out_cn; uint8_t rtb_out_i4; - bool rtb_Cond_prev_private_a4; + bool rtb_Cond_prev_private_e; /* DataStoreWrite: '/Data Store Write9' incorporates: * DataStoreRead: '/Data Store Read6' @@ -4703,7 +4703,7 @@ void Level3_i(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR /* RelationalOperator: '/Relational Operator' incorporates: * Constant: '/epsilon' */ - rtb_Cond_prev_private_a4 = (rtb_out_i4 <= 0.01); + rtb_Cond_prev_private_e = (rtb_out_i4 <= 0.01); /* MATLAB Function: '/step' incorporates: * DataStoreRead: '/Data Store Read5' @@ -4731,7 +4731,7 @@ void Level3_i(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR * Switch: '/Switch' * UnitDelay: '/Unit Delay' */ - if (rtb_Cond_prev_private_a4) { + if (rtb_Cond_prev_private_e) { *rtd_Mode_RR = *rtd_Mode_logic_RR; } else { if (*rtd_Mode_RR <= *rtd_Mode_logic_RR) { @@ -4822,7 +4822,7 @@ void Level3_i(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR /* RelationalOperator: '/Equal' incorporates: * DataStoreRead: '/current step' */ - rtb_Cond_prev_private_a4 = (*rtd_step_start_controle_rear == 2); + rtb_Cond_prev_private_e = (*rtd_step_start_controle_rear == 2); /* Sum: '/Subtract' incorporates: * DataStoreRead: '/Data Store Read4' @@ -4842,7 +4842,7 @@ void Level3_i(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR * UnitDelay: '/Cond_prev_private ' * UnitDelay: '/t_start_delay_private ' */ - if (rtb_Cond_prev_private_a4 && (!localDW->Cond_prev_private_DSTATE)) { + if (rtb_Cond_prev_private_e && (!localDW->Cond_prev_private_DSTATE)) { localDW->t_start_delay_private_DSTATE = *rtd_t_now; } @@ -4880,7 +4880,7 @@ void Level3_i(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t *rtd_Blower_RR localDW->UnitDelay_DSTATE_e = *rtd_t_now; /* Update for UnitDelay: '/Cond_prev_private ' */ - localDW->Cond_prev_private_DSTATE = rtb_Cond_prev_private_a4; + localDW->Cond_prev_private_DSTATE = rtb_Cond_prev_private_e; } /* Model step function */ @@ -4891,7 +4891,7 @@ void HVAC_model_step(void) double rtb_Divide3; int32_t i; int32_t tmp_0; - uint32_t rtb_dt_dv; + uint32_t rtb_dt_f1; uint32_t rtb_dt_l; int16_t tmp[6]; int16_t rtb_out_js[2]; @@ -7440,7 +7440,8 @@ void HVAC_model_step(void) * Logic: '/Logical Operator2' * RelationalOperator: '/Relational Operator' * RelationalOperator: '/Relational Operator1' - */ + * SignalConversion generated from: '/Bus Selector' + * */ for (i = 0; i < 9; i++) { rtb_LogicalOperator3_c[i] = ((Actuator_Ch0_Status_Model.in_Act_Stall_Slave[i] == 1) || @@ -7477,6 +7478,7 @@ void HVAC_model_step(void) for (i = 0; i < 9; i++) { /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read1' + * SignalConversion generated from: '/Bus Selector' */ if (rtDW.ErrorCalibration_private[i] != 0) { rtDW.MinPositionCh0_private[i] = @@ -7672,7 +7674,8 @@ void HVAC_model_step(void) * Logic: '/Logical Operator2' * RelationalOperator: '/Relational Operator' * RelationalOperator: '/Relational Operator1' - */ + * SignalConversion generated from: '/Bus Selector' + * */ for (i = 0; i < 9; i++) { rtb_LogicalOperator3_c[i] = ((Actuator_Ch0_Status_Model.in_Act_Stall_Slave[i] == 1) || @@ -7709,6 +7712,7 @@ void HVAC_model_step(void) for (i = 0; i < 9; i++) { /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read1' + * SignalConversion generated from: '/Bus Selector' */ if (rtDW.ErrorCalibration_private[i] != 0) { rtDW.MaxPositionCh0_private[i] = @@ -7993,12 +7997,19 @@ void HVAC_model_step(void) * ActionPort: '/Action Port' */ for (i = 0; i < 9; i++) { + /* RelationalOperator: '/Compare' */ + rtb_Divide1 = rtb_Divide1_ja[i]; + /* Logic: '/Logical Operator3' incorporates: * Constant: '/Constant' + * Constant: '/Constant' * DataStoreRead: '/Data Store Read' + * Logic: '/Logical Operator1' + * Logic: '/Logical Operator4' * RelationalOperator: '/Compare' + * RelationalOperator: '/Compare' */ - rtb_LogicalOperator1 = ((rtb_Divide1_ja[i] <= 0.97) && + rtb_LogicalOperator1 = (((rtb_Divide1 < 0.97) || (rtb_Divide1 > 1.03)) && (rtDW.ErrorCalibration_private[i] != 0)); rtb_LogicalOperator3_c[i] = rtb_LogicalOperator1; @@ -8093,23 +8104,63 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: * ActionPort: '/Action Port' */ - /* Logic: '/AND' incorporates: + /* MATLAB Function: '/MATLAB Function' incorporates: * DataStoreRead: '/Data Store Read' + * DataStoreRead: '/Data Store Read1' */ - rtb_LogicalOperator1 = (rtDW.ErrorCalibration_private[0] != 0); - for (i = 0; i < 8; i++) { - rtb_LogicalOperator1 = (rtb_LogicalOperator1 && - (rtDW.ErrorCalibration_private[i + 1] != 0)); + /* : dt = uint32(0); */ + /* : if isempty(t_start) */ + if (!rtDW.t_start_not_empty) { + /* : t_start = t_now; */ + rtDW.t_start = rtDW.t_now; + rtDW.t_start_not_empty = true; + + /* : cond_prev = 0; */ } - /* Sum: '/Subtract' incorporates: - * DataStoreRead: '/Data Store Read' - * UnitDelay: '/t_start_delay_private ' + /* : if cond > 0.5 && cond_prev <= 0.5 */ + if ((rtDW.Start_timer > 0.5) && (rtDW.cond_prev <= 0.5)) { + /* : t_start = t_now; */ + rtDW.t_start = rtDW.t_now; + } + + /* : if cond > 0.5 */ + if (rtDW.Start_timer > 0.5) { + /* : dt = uint32(t_now - t_start); */ + rtb_dt_f1 = rtDW.t_now - /*MW:OvSatOk*/ rtDW.t_start; + if (rtb_dt_f1 > rtDW.t_now) { + rtb_dt_f1 = 0U; + } + } else { + /* : else */ + /* : dt = uint32(0); */ + rtb_dt_f1 = 0U; + } + + /* : cond_prev = cond; */ + rtDW.cond_prev = rtDW.Start_timer; + + /* End of MATLAB Function: '/MATLAB Function' */ + + /* MATLAB Function: '/MAX POSITION' incorporates: + * DataStoreRead: '/Data Store Read5' */ - rtb_dt_dv = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_h; + /* : if(LOGGER>0) */ + if (rtDW.LOGGER_LIN > 0.0) { + /* : fprintf("Homing 3. Start TIme dt = %d \n",int32(data)); */ + rtb_dt_l = rtb_dt_f1; + if (rtb_dt_f1 > 2147483647U) { + rtb_dt_l = 2147483647U; + } + + printf("Homing 3. Start TIme dt = %d \n", (int32_t)rtb_dt_l); + fflush(stdout); + } + + /* End of MATLAB Function: '/MAX POSITION' */ /* If: '/If' */ - if (rtb_dt_dv > 30000U) { + if (rtb_dt_f1 > 30000U) { /* Outputs for IfAction SubSystem: '/If Action Subsystem' incorporates: * ActionPort: '/Action Port' */ @@ -8125,6 +8176,11 @@ void HVAC_model_step(void) */ rtDW.ErrorHomming_private++; + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant3' + */ + rtDW.Start_timer = 0.0; + /* Merge: '/Merge' incorporates: * Constant: '/Constant1' * Merge: '/Merge' @@ -8137,6 +8193,11 @@ void HVAC_model_step(void) /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: * ActionPort: '/Action Port' */ + /* DataStoreWrite: '/Data Store Write2' incorporates: + * Constant: '/Constant3' + */ + rtDW.Start_timer = 1.0; + /* Merge: '/Merge' incorporates: * Constant: '/Constant1' * Merge: '/Merge' @@ -8148,49 +8209,6 @@ void HVAC_model_step(void) } /* End of If: '/If' */ - - /* MATLAB Function: '/MAX POSITION' incorporates: - * DataStoreRead: '/Data Store Read5' - */ - /* : if(LOGGER>0) */ - if (rtDW.LOGGER_LIN > 0.0) { - /* : fprintf("Homing 3. Start TIme dt = %d \n",int32(data)); */ - if (rtb_dt_dv > 2147483647U) { - rtb_dt_dv = 2147483647U; - } - - printf("Homing 3. Start TIme dt = %d \n", (int32_t)rtb_dt_dv); - fflush(stdout); - } - - /* End of MATLAB Function: '/MAX POSITION' */ - - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant' - * Logic: '/AND' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * Switch: '/Switch' - * UnitDelay: '/Cond_prev_private ' - * UnitDelay: '/t_start_delay_private ' - */ - if (rtb_LogicalOperator1 && (!rtDW.Cond_prev_private_DSTATE_d)) { - rtDW.t_start_delay_private_DSTATE_h = 0U; - } else if (rtb_LogicalOperator1) { - /* Switch: '/Switch' incorporates: - * DataStoreRead: '/Data Store Read' - * UnitDelay: '/t_start_delay_private ' - */ - rtDW.t_start_delay_private_DSTATE_h = rtDW.t_now; - } - - /* End of Switch: '/Switch1' */ - - /* Update for UnitDelay: '/Cond_prev_private ' incorporates: - * Logic: '/AND' - */ - rtDW.Cond_prev_private_DSTATE_d = rtb_LogicalOperator1; - /* End of Outputs for SubSystem: '/If Action Subsystem' */ } else { /* Outputs for IfAction SubSystem: '/If Action Subsystem1' incorporates: @@ -8667,9 +8685,9 @@ void HVAC_model_step(void) i = 255; } - rtb_dt_dv = (uint32_t)i - 2U; + rtb_dt_f1 = (uint32_t)i - 2U; if ((uint32_t)i - 2U > (uint32_t)i) { - rtb_dt_dv = 0U; + rtb_dt_f1 = 0U; } /* Merge: '/Merge' incorporates: @@ -8679,7 +8697,7 @@ void HVAC_model_step(void) * Switch: '/Switch' */ rtB.Merge_h = (int8_t)(rtDW.ECT > g_assSTART_COOLANT_STEP0_TO_1[(int32_t) - rtb_dt_dv - 1]); + rtb_dt_f1 - 1]); /* End of Outputs for SubSystem: '/Level 3' */ break; @@ -9153,11 +9171,11 @@ void HVAC_model_step(void) } /* MW:begin MISRA2012:D4.1 CERT-C:INT30-C 'Justifying MISRA CPP rule violation' */ - rtb_dt_dv = (uint32_t)i - 3U; + rtb_dt_f1 = (uint32_t)i - 3U; /* MW:end MISRA2012:D4.1 CERT-C:INT30-C */ if ((uint32_t)i - 3U > (uint32_t)i) { - rtb_dt_dv = 0U; + rtb_dt_f1 = 0U; } /* Switch: '/Switch' incorporates: @@ -9171,7 +9189,7 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator2' */ if ((Incar_FL < AMB) || (rtb_dt_l > (uint32_t)(1000 * Eva_F)) || - (rtDW.ECT > g_assSTART_COOLANT_TO_STEP2[(int32_t)rtb_dt_dv - 1])) { + (rtDW.ECT > g_assSTART_COOLANT_TO_STEP2[(int32_t)rtb_dt_f1 - 1])) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step 2' */ @@ -9486,7 +9504,7 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_dv = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_g; + rtb_dt_f1 = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_g; /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -9508,7 +9526,7 @@ void HVAC_model_step(void) * Gain: '/из сек в мс' * RelationalOperator: '/Relational Operator1' */ - if (rtb_dt_dv > (uint32_t)(1000 * Incar_FL)) { + if (rtb_dt_f1 > (uint32_t)(1000 * Incar_FL)) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step' */ @@ -9803,7 +9821,7 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_dv = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_m; + rtb_dt_f1 = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_m; /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -9825,7 +9843,7 @@ void HVAC_model_step(void) * Gain: '/из сек в мс' * RelationalOperator: '/Relational Operator1' */ - if (rtb_dt_dv > (uint32_t)(1000 * Incar_FL)) { + if (rtb_dt_f1 > (uint32_t)(1000 * Incar_FL)) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step' */ @@ -10739,7 +10757,7 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_dv = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_em; + rtb_dt_f1 = 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' @@ -10770,7 +10788,7 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator1' * RelationalOperator: '/Relational Operator2' */ - if ((Incar_RR > Incar_FL) || (rtb_dt_dv > (uint16_t)(1000 * AMB)) || + if ((Incar_RR > Incar_FL) || (rtb_dt_f1 > (uint16_t)(1000 * AMB)) || (rtDW.ECT > g_assSTART_COOLANT_TO_STEP2[1])) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step' @@ -10847,7 +10865,7 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_dv = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_o; + rtb_dt_f1 = 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' @@ -10878,7 +10896,7 @@ void HVAC_model_step(void) * RelationalOperator: '/Relational Operator1' * RelationalOperator: '/Relational Operator2' */ - if ((Incar_RR > Incar_FL) || (rtb_dt_dv > (uint16_t)(1000 * AMB)) || + if ((Incar_RR > Incar_FL) || (rtb_dt_f1 > (uint16_t)(1000 * AMB)) || (rtDW.ECT > g_assSTART_COOLANT_TO_STEP2[2])) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step' @@ -11127,7 +11145,7 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_dv = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_f; + rtb_dt_f1 = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_f; /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -11151,7 +11169,7 @@ void HVAC_model_step(void) * Gain: '/из сек в мс' * RelationalOperator: '/Relational Operator1' */ - if (rtb_dt_dv > (uint16_t)(1000 * Incar_RR)) { + if (rtb_dt_f1 > (uint16_t)(1000 * Incar_RR)) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step' */ @@ -11375,7 +11393,7 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_dv = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_jh; + rtb_dt_f1 = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_jh; /* Switch: '/Switch' incorporates: * DataStoreRead: '/Data Store Read4' @@ -11399,7 +11417,7 @@ void HVAC_model_step(void) * Gain: '/из сек в мс' * RelationalOperator: '/Relational Operator1' */ - if (rtb_dt_dv > (uint16_t)(1000 * Incar_RR)) { + if (rtb_dt_f1 > (uint16_t)(1000 * Incar_RR)) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step' */ @@ -11623,7 +11641,7 @@ void HVAC_model_step(void) * DataStoreRead: '/Data Store Read4' * UnitDelay: '/t_start_delay_private ' */ - rtb_dt_dv = rtDW.t_now - rtDW.t_start_delay_private_DSTATE_ed; + rtb_dt_f1 = 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' @@ -11649,7 +11667,7 @@ void HVAC_model_step(void) * Logic: '/Logical Operator' * RelationalOperator: '/Relational Operator1' */ - if ((rtb_dt_dv > (uint16_t)(1000 * Incar_RR)) || rtDW.HI_logic_on) { + if ((rtb_dt_f1 > (uint16_t)(1000 * Incar_RR)) || rtDW.HI_logic_on) { /* Merge: '/Merge' incorporates: * Constant: '/go to next step' */ @@ -11830,6 +11848,18 @@ void HVAC_model_initialize(void) rtDW.current_Ambient_Lv_not_empty = false; /* SystemInitialize for IfAction SubSystem: '/Homing' */ + /* SystemInitialize for IfAction SubSystem: '/Switch Case Action Subsystem3' */ + /* SystemInitialize for IfAction SubSystem: '/If Action Subsystem' */ + /* Start for DataStoreMemory: '/Data Store Memory' */ + rtDW.Start_timer = 1.0; + + /* SystemInitialize for MATLAB Function: '/MATLAB Function' */ + rtDW.t_start_not_empty = false; + rtDW.cond_prev = 0.0; + + /* End of SystemInitialize for SubSystem: '/If Action Subsystem' */ + /* End of SystemInitialize for SubSystem: '/Switch Case Action Subsystem3' */ + /* SystemInitialize for Merge: '/Merge' */ rtB.Merge_h1 = 0; diff --git a/HVAC_model.h b/HVAC_model.h old mode 100755 new mode 100644 index fb908c5..155a0cf --- a/HVAC_model.h +++ b/HVAC_model.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.815 + * Model version : 1.820 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Fri Apr 17 15:57:38 2026 + * C/C++ source code generated on : Tue Apr 21 14:12:53 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M @@ -99,6 +99,8 @@ typedef struct { double MODE_RR_passenger; /* '/Data Store Memory19' */ double SKIPPED_FIRST_SIMULATION_STEP;/* '/Data Store Memory64' */ double start_control_finished_rear; /* '/SC Rear' */ + double Start_timer; /* '/Data Store Memory' */ + double cond_prev; /* '/MATLAB Function' */ CmdBusADCDataKey ADC_Key_Data_Model; /* '/Data Store Memory3' */ uint32_t t_start_delay_private_DSTATE;/* '/t_start_delay_private ' */ uint32_t t_start_delay_private_DSTATE_p;/* '/t_start_delay_private ' */ @@ -140,8 +142,8 @@ typedef struct { 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_start_delay_private_DSTATE_h;/* '/t_start_delay_private ' */ uint32_t t_now; /* '/Data Store Memory5' */ + uint32_t t_start; /* '/MATLAB Function' */ int16_t MinPositionCh0_private[9]; /* '/Data Store Memory12' */ int16_t MaxPositionCh0_private[9]; /* '/Data Store Memory13' */ uint16_t POS_private[9]; /* '/Data Store Memory3' */ @@ -169,7 +171,6 @@ typedef struct { bool Cond_prev_private_DSTATE_fi; /* '/Cond_prev_private ' */ bool Cond_prev_private_DSTATE_hs; /* '/Cond_prev_private ' */ bool Cond_prev_private_DSTATE_g; /* '/Cond_prev_private ' */ - bool Cond_prev_private_DSTATE_d; /* '/Cond_prev_private ' */ int8_t stepSig_private; /* '/Data Store Memory' */ int8_t stepHoming_private; /* '/Data Store Memory17' */ int8_t step_start_controle_front; /* '/Data Store Memory' */ @@ -200,6 +201,7 @@ typedef struct { uint8_t Dtg_logic_RR; /* '/Data Store Memory58' */ uint8_t current_Ambient_Lv; /* '/Log Ambient Lv' */ bool HI_logic_on; /* '/Data Store Memory48' */ + bool t_start_not_empty; /* '/MATLAB Function' */ bool current_Ambient_Lv_not_empty; /* '/Log Ambient Lv' */ DW_Level3_n Level5_e; /* '/Level 5' */ DW_Level3_n Level4_j; /* '/Level 4' */ @@ -779,14 +781,28 @@ extern RT_MODEL *const rtM; * 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 '/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 '/Display1' : Unused code path elimination * Block '/Display2' : Unused code path elimination * Block '/Display1' : Unused code path elimination * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display1' : Unused code path elimination + * Block '/Display' : Unused code path elimination + * Block '/Display1' : Unused code path elimination + * Block '/Display2' : Unused code path elimination + * Block '/Display3' : Unused code path elimination * Block '/Display' : Unused code path elimination * Block '/Display1' : Unused code path elimination * Block '/Display' : Unused code path elimination @@ -1362,8 +1378,8 @@ extern RT_MODEL *const rtM; * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/MAX POSITION' * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem' * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/If Action Subsystem1' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/RealTime_Timer' - * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/RealTime_Timer/MAX POSITION' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/MATLAB Function' + * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem/MAX POSITION' * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR' * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem1/UDS ERROR' * '' : 'HVAC_model/LIN/CHANEL0/Homing/Switch Case Action Subsystem3/If Action Subsystem1/CAN ERROR/Write ERROR' diff --git a/HVAC_model_data.c b/HVAC_model_data.c old mode 100755 new mode 100644 index a65b04c..cb5e32d --- a/HVAC_model_data.c +++ b/HVAC_model_data.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.815 + * Model version : 1.820 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Fri Apr 17 15:57:38 2026 + * C/C++ source code generated on : Tue Apr 21 14:12:53 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M diff --git a/HVAC_model_private.h b/HVAC_model_private.h old mode 100755 new mode 100644 index 521b3dc..00e9bfb --- a/HVAC_model_private.h +++ b/HVAC_model_private.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.815 + * Model version : 1.820 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Fri Apr 17 15:57:38 2026 + * C/C++ source code generated on : Tue Apr 21 14:12:53 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M diff --git a/HVAC_model_types.h b/HVAC_model_types.h old mode 100755 new mode 100644 index 6e150bc..9bcea72 --- a/HVAC_model_types.h +++ b/HVAC_model_types.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'HVAC_model'. * - * Model version : 1.815 + * Model version : 1.820 * Simulink Coder version : 24.1 (R2024a) 19-Nov-2023 - * C/C++ source code generated on : Fri Apr 17 15:57:38 2026 + * C/C++ source code generated on : Tue Apr 21 14:12:53 2026 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex-M