|
@@ -39,6 +39,7 @@ void BCU(void)
|
|
BCU_Init();
|
|
BCU_Init();
|
|
cmnc_num_cellUNum = AppDataInfo.BattCellCount; /* 电压采样点实际个数; */
|
|
cmnc_num_cellUNum = AppDataInfo.BattCellCount; /* 电压采样点实际个数; */
|
|
cmnc_num_modTNum = AppDataInfo.BattTempCount; /* 温度采样点实际个数; */
|
|
cmnc_num_modTNum = AppDataInfo.BattTempCount; /* 温度采样点实际个数; */
|
|
|
|
+ ihd_st_EOLState = AppNVMData.EOLState;
|
|
memcpy(blcv_Q_totalCpEi, BcuDataInfo.blcv_Q_totalCpE, sizeof(blcv_Q_totalCpEi));
|
|
memcpy(blcv_Q_totalCpEi, BcuDataInfo.blcv_Q_totalCpE, sizeof(blcv_Q_totalCpEi));
|
|
memcpy(blcv_Q_reqCpEi, BcuDataInfo.blcv_Q_reqCpE, sizeof(blcv_Q_reqCpEi));
|
|
memcpy(blcv_Q_reqCpEi, BcuDataInfo.blcv_Q_reqCpE, sizeof(blcv_Q_reqCpEi));
|
|
socd_pct_bcuSocEi = BcuDataInfo.socd_pct_bcuSocE;
|
|
socd_pct_bcuSocEi = BcuDataInfo.socd_pct_bcuSocE;
|
|
@@ -58,7 +59,8 @@ void BCU(void)
|
|
sfmd_flg_heatRunFltEi = BcuDataInfo.sfmd_flg_heatRunFltE;
|
|
sfmd_flg_heatRunFltEi = BcuDataInfo.sfmd_flg_heatRunFltE;
|
|
sfmd_flg_iscFltEi = BcuDataInfo.sfmd_flg_iscFltE;
|
|
sfmd_flg_iscFltEi = BcuDataInfo.sfmd_flg_iscFltE;
|
|
ihd_tm_parkTime = BcuDataInfo.ihd_tm_parkTimeE;
|
|
ihd_tm_parkTime = BcuDataInfo.ihd_tm_parkTimeE;
|
|
- ihd_st_EOLState = AppNVMData.EOLState;
|
|
|
|
|
|
+ BcuDataInfo.ihd_tm_parkTimeE = 0;
|
|
|
|
+ BcuDataInfo.appDataModify = TRUE;
|
|
appd_st_preCyc = 1;
|
|
appd_st_preCyc = 1;
|
|
PROC_BCU_STATE_SWITCH(PROCESS_STATE_WORK);
|
|
PROC_BCU_STATE_SWITCH(PROCESS_STATE_WORK);
|
|
break;
|
|
break;
|
|
@@ -130,9 +132,7 @@ void BCU(void)
|
|
ihd_st_chrgMosControl = ChargeForbiddenControl == 0;
|
|
ihd_st_chrgMosControl = ChargeForbiddenControl == 0;
|
|
ihd_st_disChrgMosControl = DisChargeForbiddenControl == 0;
|
|
ihd_st_disChrgMosControl = DisChargeForbiddenControl == 0;
|
|
ihd_st_relayControl = RelayForbiddenControl == 0;
|
|
ihd_st_relayControl = RelayForbiddenControl == 0;
|
|
-
|
|
|
|
ihd_st_heatStat = battHeatEnableState;
|
|
ihd_st_heatStat = battHeatEnableState;
|
|
- // ihd_flg_DTCClear = 1; //////clear
|
|
|
|
|
|
|
|
//调用算法
|
|
//调用算法
|
|
SFM();
|
|
SFM();
|
|
@@ -148,18 +148,15 @@ void BCU(void)
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
//
|
|
- if (BattWorkStateDelay == 0 && battI == 10000)
|
|
|
|
|
|
+ if (BattWorkStateDelay == 0)
|
|
{
|
|
{
|
|
memcpy(appv_V_cellU, sfmv_V_cellU, sizeof(sfmv_V_cellU));
|
|
memcpy(appv_V_cellU, sfmv_V_cellU, sizeof(sfmv_V_cellU));
|
|
}
|
|
}
|
|
|
|
|
|
- if (ihd_tm_parkTime < cmnc_tm_parkTime || battI != 10000)
|
|
|
|
|
|
+ if (ihd_tm_parkTime < cmnc_tm_parkTime || BattWorkStateDelay != 0)
|
|
{
|
|
{
|
|
appd_st_preCyc = 0;
|
|
appd_st_preCyc = 0;
|
|
}
|
|
}
|
|
-
|
|
|
|
- BcuDataInfo.ihd_tm_parkTimeE = 0;
|
|
|
|
- BcuDataInfo.appDataModify = TRUE;
|
|
|
|
}
|
|
}
|
|
osDelay(100);
|
|
osDelay(100);
|
|
}
|
|
}
|