修改语音中间时常

master
赵宝玉 1 month ago
parent ddffedd805
commit d5a097e022

@ -119,8 +119,8 @@ public class InfoEnum
[Const("PLC状态检测")] Plc, [Const("PLC状态检测")] Plc,
[Const("rfid扫描完成")] RfidReadFlag, [Const("rfid扫描完成")] RfidReadFlag,
[Const("二次雷达检测")] Carradar, [Const("二次雷达检测")] Carradar,
[Const("车辆到位")] CarInPositionFlag,
[Const("选包成功")] SelectPackSuccess, [Const("选包成功")] SelectPackSuccess,
[Const("车辆到位")] CarInPositionFlag,
[Const("车辆解锁")] VelUnlockFlag, [Const("车辆解锁")] VelUnlockFlag,
[Const("下发plc选包")] DistributeSelectPackFlag, [Const("下发plc选包")] DistributeSelectPackFlag,
[Const("开始换电")] StartSwappingFlag, [Const("开始换电")] StartSwappingFlag,

@ -47,7 +47,7 @@ public class CarCtrlState : IState
/// <returns></returns> /// <returns></returns>
public InvokeStatus UnLockCar(SwappingStateMachine machine) public InvokeStatus UnLockCar(SwappingStateMachine machine)
{ {
return Invoker.Invoke("UnLockCar", 500, 3, machine.IsCanceled, return Invoker.Invoke("UnLockCar", 500, 5, machine.IsCanceled,
() => machine.VelUnlockFlag, () => () => machine.VelUnlockFlag, () =>
{ {
Task<bool> result = TBoxApi.UnLockCarManyTimes(machine.RfidReadModel.VelVin); Task<bool> result = TBoxApi.UnLockCarManyTimes(machine.RfidReadModel.VelVin);
@ -71,7 +71,7 @@ public class CarCtrlState : IState
SoundClient = AppInfo.Container.Resolve<SoundClient>(); SoundClient = AppInfo.Container.Resolve<SoundClient>();
SoundClient.SoundPlay(SoundEnum.music93); SoundClient.SoundPlay(SoundEnum.music93);
Thread.Sleep(3000); Thread.Sleep(6000);
SoundClient.SoundPlay(SoundEnum.music92); SoundClient.SoundPlay(SoundEnum.music92);
} }
} }
@ -82,12 +82,12 @@ public class CarCtrlState : IState
LedClient.SendMsgByKey(InfoEnum.SwapInfo.ErrUnLockCar.GetLed()); LedClient.SendMsgByKey(InfoEnum.SwapInfo.ErrUnLockCar.GetLed());
SoundClient = AppInfo.Container.Resolve<SoundClient>(); SoundClient = AppInfo.Container.Resolve<SoundClient>();
SoundClient.SoundPlay(SoundEnum.music105);
Thread.Sleep(4000);
SoundClient.SoundPlay(SoundEnum.music106); SoundClient.SoundPlay(SoundEnum.music106);
Thread.Sleep(7000);
SoundClient.SoundPlay(SoundEnum.music105);
}, false, () => { machine.ExceptionReason = ExceptionReason.UnLockCarError; } }, false, () => { machine.ExceptionReason = ExceptionReason.UnLockCarError; }
, 2, InvokeStatus.None); , 4, InvokeStatus.None);
} }
} }

@ -217,9 +217,9 @@ public class SwapDoneState : IState
var SoundClient = AppInfo.Container.Resolve<SoundClient>(); var SoundClient = AppInfo.Container.Resolve<SoundClient>();
SoundClient.SoundPlay(SoundEnum.music76); SoundClient.SoundPlay(SoundEnum.music76);
Thread.Sleep(5000); Thread.Sleep(7000);
SoundClient.SoundPlay(SoundEnum.music77);
SoundClient.SoundPlay(SoundEnum.music77); SoundClient.SoundPlay(SoundEnum.music77);
// SoundClient.SoundPlay(SoundEnum.music77);
machine.BoxCarInfoModel = carInfo.Result; machine.BoxCarInfoModel = carInfo.Result;
SoundApi.PlayOneSound(machine.SwapStatus == (int)InfoEnum.SwapOrderResult.Success SoundApi.PlayOneSound(machine.SwapStatus == (int)InfoEnum.SwapOrderResult.Success

Loading…
Cancel
Save