|
|
|
@ -86,7 +86,7 @@ public class CarPrepareState : IState
|
|
|
|
|
|
|
|
|
|
return new StateResult()
|
|
|
|
|
{
|
|
|
|
|
SwappingState = SwappingState.SwapCanStart
|
|
|
|
|
SwappingState = SwappingState.CarCtrl
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -142,6 +142,10 @@ public class CarPrepareState : IState
|
|
|
|
|
{
|
|
|
|
|
return Invoker.Invoke("cloud check vehicle", 500, 20, machine.IsCanceled,
|
|
|
|
|
() => machine.CloudVelCheckFlag, () =>
|
|
|
|
|
{
|
|
|
|
|
if (StationConstant.StationModel.Remote ==
|
|
|
|
|
BaseEnumExtensions.GetEnumByCode<StationConstant.StationModel>(
|
|
|
|
|
StaticStationInfo.StationModel))
|
|
|
|
|
{
|
|
|
|
|
int vehicleCheck = -1;
|
|
|
|
|
vehicleCheck = CloudApi.VehicleCheck(machine.RfidReadModel, machine.SwapOrder);
|
|
|
|
@ -163,6 +167,11 @@ public class CarPrepareState : IState
|
|
|
|
|
_CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.CloudVelCheckFlag,
|
|
|
|
|
machine);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
machine.CloudVelCheckFlag = true;
|
|
|
|
|
}
|
|
|
|
|
}, () =>
|
|
|
|
|
{
|
|
|
|
|
// machine.LedTool?.WriteProgramContent(InfoEnum.SwapInfo.ErrorCloudCheck.GetLed());
|
|
|
|
|