|
|
@ -49,6 +49,14 @@ public class CarPrepareState : IState
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
////调整车辆
|
|
|
|
|
|
|
|
var adjustCarByRadar = AdjustCarByRadar(machine);
|
|
|
|
|
|
|
|
if (InvokeStatus.Done != adjustCarByRadar)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return SwappingStateMachine.ReturnWithInvokeErr(adjustCarByRadar, ExceptionReason.None);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//检查tbox链接状态
|
|
|
|
//检查tbox链接状态
|
|
|
|
InvokeStatus checkTBoxConnect = CheckTBoxConnectFlag(machine);
|
|
|
|
InvokeStatus checkTBoxConnect = CheckTBoxConnectFlag(machine);
|
|
|
|
if (checkTBoxConnect != InvokeStatus.Done)
|
|
|
|
if (checkTBoxConnect != InvokeStatus.Done)
|
|
|
@ -83,14 +91,6 @@ public class CarPrepareState : IState
|
|
|
|
_CommonMgr.SaveSwapBattery(machine);
|
|
|
|
_CommonMgr.SaveSwapBattery(machine);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
////调整车辆
|
|
|
|
|
|
|
|
var adjustCarByRadar = AdjustCarByRadar(machine);
|
|
|
|
|
|
|
|
if (InvokeStatus.Done != adjustCarByRadar)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return SwappingStateMachine.ReturnWithInvokeErr(adjustCarByRadar, ExceptionReason.None);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//车辆到位
|
|
|
|
//车辆到位
|
|
|
|
InvokeStatus carInPosition = CarInPosition(machine);
|
|
|
|
InvokeStatus carInPosition = CarInPosition(machine);
|
|
|
|
if (carInPosition != InvokeStatus.Done)
|
|
|
|
if (carInPosition != InvokeStatus.Done)
|
|
|
|