|
@@ -61,7 +61,6 @@ void BCU(void)
|
|
ihd_tm_parkTime = BcuDataInfo.ihd_tm_parkTimeE;
|
|
ihd_tm_parkTime = BcuDataInfo.ihd_tm_parkTimeE;
|
|
BcuDataInfo.ihd_tm_parkTimeE = 0;
|
|
BcuDataInfo.ihd_tm_parkTimeE = 0;
|
|
BcuDataInfo.appDataModify = TRUE;
|
|
BcuDataInfo.appDataModify = TRUE;
|
|
- appd_st_preCyc = 1;
|
|
|
|
PROC_BCU_STATE_SWITCH(PROCESS_STATE_WORK);
|
|
PROC_BCU_STATE_SWITCH(PROCESS_STATE_WORK);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
@@ -153,10 +152,18 @@ void BCU(void)
|
|
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 || BattWorkStateDelay != 0)
|
|
|
|
|
|
+ if (ihd_st_wakeUpStat == 8)
|
|
{
|
|
{
|
|
- appd_st_preCyc = 0;
|
|
|
|
|
|
+ if (bcud_flg_firstRun)
|
|
|
|
+ {
|
|
|
|
+ appd_st_preCyc = 1;
|
|
|
|
+ }
|
|
|
|
+ if(BattWorkStateDelay != 0)
|
|
|
|
+ {
|
|
|
|
+ appd_st_preCyc = 0;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ bcud_flg_firstRun = false;
|
|
}
|
|
}
|
|
osDelay(100);
|
|
osDelay(100);
|
|
}
|
|
}
|
|
@@ -202,6 +209,7 @@ void BCU(void)
|
|
//========================算法初始化========================================
|
|
//========================算法初始化========================================
|
|
void BCU_Init(void)
|
|
void BCU_Init(void)
|
|
{
|
|
{
|
|
|
|
+ bcud_flg_firstRun = true;
|
|
SFM_Init();
|
|
SFM_Init();
|
|
TMS_Init();
|
|
TMS_Init();
|
|
CSM_Init();
|
|
CSM_Init();
|