|
|
@ -116,13 +116,13 @@ public class CarPrepareState : IState
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (StaticStationInfo.TboxStateBreak)
|
|
|
|
//if (StaticStationInfo.TboxStateBreak)
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
if (status?.Break == 1)
|
|
|
|
// if (status?.Break == 1)
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
succCount++;
|
|
|
|
// succCount++;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
if (StaticStationInfo.TboxStateN)
|
|
|
|
if (StaticStationInfo.TboxStateN)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -136,7 +136,6 @@ public class CarPrepareState : IState
|
|
|
|
if (succCount == successCount)
|
|
|
|
if (succCount == successCount)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
machine.VehiclesInPlaceFlag = true;
|
|
|
|
machine.VehiclesInPlaceFlag = true;
|
|
|
|
|
|
|
|
|
|
|
|
_CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.CarInPositionFlag,
|
|
|
|
_CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.CarInPositionFlag,
|
|
|
|
machine);
|
|
|
|
machine);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -145,7 +144,8 @@ public class CarPrepareState : IState
|
|
|
|
SoundClient = AppInfo.Container.Resolve<SoundClient>();
|
|
|
|
SoundClient = AppInfo.Container.Resolve<SoundClient>();
|
|
|
|
//SoundClient.SoundPlay(AppSettingsHelper.GetContent("SoundAddr", "Address06"));
|
|
|
|
//SoundClient.SoundPlay(AppSettingsHelper.GetContent("SoundAddr", "Address06"));
|
|
|
|
//TODO::播报请熄火挂N挡拉手刹
|
|
|
|
//TODO::播报请熄火挂N挡拉手刹
|
|
|
|
SoundClient.SoundPlay(SoundEnum.music06);
|
|
|
|
|
|
|
|
|
|
|
|
// SoundClient.SoundPlay(SoundEnum.music06);
|
|
|
|
machine.ExceptionReason = ExceptionReason.CarInPositionError;
|
|
|
|
machine.ExceptionReason = ExceptionReason.CarInPositionError;
|
|
|
|
// machine.LedTool?.WriteProgramContent(InfoEnum.SwapInfo.ErrorCarInPositionTimeout.GetLed());
|
|
|
|
// machine.LedTool?.WriteProgramContent(InfoEnum.SwapInfo.ErrorCarInPositionTimeout.GetLed());
|
|
|
|
//SoundApi.PlayOneSound((int)InfoEnum.SwapInfo.ErrorCarInPositionTimeout);
|
|
|
|
//SoundApi.PlayOneSound((int)InfoEnum.SwapInfo.ErrorCarInPositionTimeout);
|
|
|
@ -255,14 +255,12 @@ public class CarPrepareState : IState
|
|
|
|
}, () => { machine.ExceptionReason = ExceptionReason.LocalCheckVarError; }, true, () =>
|
|
|
|
}, () => { machine.ExceptionReason = ExceptionReason.LocalCheckVarError; }, true, () =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
machine.ExceptionReason = ExceptionReason.LocalCheckVarError;
|
|
|
|
machine.ExceptionReason = ExceptionReason.LocalCheckVarError;
|
|
|
|
|
|
|
|
|
|
|
|
SoundClient = AppInfo.Container.Resolve<SoundClient>();
|
|
|
|
SoundClient = AppInfo.Container.Resolve<SoundClient>();
|
|
|
|
SoundClient.SoundPlay(SoundEnum.music108);
|
|
|
|
SoundClient.SoundPlay(SoundEnum.music108);
|
|
|
|
Thread.Sleep(3000);
|
|
|
|
Thread.Sleep(3000);
|
|
|
|
SoundClient.SoundPlay(SoundEnum.music109);
|
|
|
|
SoundClient.SoundPlay(SoundEnum.music109);
|
|
|
|
Thread.Sleep(3000);
|
|
|
|
Thread.Sleep(3000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
, 30, InvokeStatus.TimeOut);
|
|
|
|
, 30, InvokeStatus.TimeOut);
|
|
|
|
}
|
|
|
|
}
|
|
|
|