|
@@ -63,6 +63,7 @@ void LockAndUnlockCtrl()
|
|
|
{
|
|
|
case DriveMode: //行车状态,自动进入,默认状态
|
|
|
{
|
|
|
+ ebcd_st_SwitchCtrlFlg = Lock;
|
|
|
PSwtDrv_Interface(_PSWT_INDEX_EBCLEDCONTROL, 0); //行车状态换电指示灯关闭
|
|
|
if (bled_flg_handShake == 1)
|
|
|
{
|
|
@@ -173,7 +174,7 @@ void GetHVLockState(void)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- m_flg_HVlock1 = 1;
|
|
|
+ m_flg_HVlock1 = 0;
|
|
|
}
|
|
|
//互锁2检测,高有效,悬空为0则未接入,高电平为1则接入,
|
|
|
m_flg_HVlock2 = DINDrv_GetChanState(_DIN_INDEX_PLUGHVLOCK);
|
|
@@ -210,10 +211,6 @@ void GetDIOState(void)
|
|
|
temp[1] = !DINDrv_GetChanState(_DIN_INDEX_LOCKSENSOR2);
|
|
|
temp[2] = !DINDrv_GetChanState(_DIN_INDEX_LOCKSENSOR3);
|
|
|
temp[3] = !DINDrv_GetChanState(_DIN_INDEX_LOCKSENSOR4);
|
|
|
- temp[0] = 1;
|
|
|
- temp[1] = 1;
|
|
|
- temp[2] = 1;
|
|
|
- temp[3] = 1;
|
|
|
ebcd_st_lockSensor = (getbit(temp[3], 0) << 3) | (getbit(temp[2], 0) << 2) | (getbit(temp[1], 0) << 1) | (getbit(temp[0], 0) << 0);
|
|
|
|
|
|
//落座传感器检测,高有效,悬空为0则未接入,高电平为1则接入
|