测试语音播报

master
lxw 6 months ago
parent cd2d247738
commit 0afd37583c

@ -78,6 +78,24 @@ public class StationReadyState : IState
}; };
} }
public InvokeStatus PlcIsAuto(SwappingStateMachine machine)
{
bool isAuto = false;
return Invoker.Invoke("check plc remote", 1000, 5, machine.IsCanceled, () => isAuto,
() =>
{
if (PlcApi.IsAuto())
{
isAuto = true;
}
},
() =>
{
SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.InfoStationModel)
;
}, true, () => { }, 5, InvokeStatus.None);
}
public InvokeStatus PlcIsRemote(SwappingStateMachine machine) public InvokeStatus PlcIsRemote(SwappingStateMachine machine)
{ {
@ -102,7 +120,7 @@ public class StationReadyState : IState
{ {
SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.InfoStationModelRemoteErr) SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.InfoStationModelRemoteErr)
; ;
}, true); }, true, () => { }, 5, InvokeStatus.None);
} }
public InvokeStatus EntranceRadar(SwappingStateMachine machine) public InvokeStatus EntranceRadar(SwappingStateMachine machine)

Loading…
Cancel
Save