|
|
@@ -475,8 +475,14 @@ namespace BPASmartClient.MorkT |
|
|
|
|
|
|
|
Wait(); |
|
|
|
// EventBus.EventBus.GetInstance().Publish(new SCChip_TakeCupEvent { DeviceId = DeviceId, Cup = IC_CUP.CUP_COFFEE });//落碗控制 |
|
|
|
//EventBus.EventBus.GetInstance().Publish(new LebaiRobot_SetOutPutEvent { DeviceId = DeviceId, Value = true ,Pin = 1}); |
|
|
|
|
|
|
|
EventBus.EventBus.GetInstance().Publish(new LebaiRobot_SetOutPutEvent { DeviceId = DeviceId, Value = true, Pin = 1 }); |
|
|
|
EventBus.EventBus.GetInstance().Publish(new LebaiRobot_GetInputEvent { DeviceId = DeviceId, Pin = 1 }, (o) => |
|
|
|
{ |
|
|
|
//if (o != null && o.Length > 0 && o[0] is bool resultValue) |
|
|
|
//{ |
|
|
|
// result = resultValue; |
|
|
|
//} |
|
|
|
}); |
|
|
|
Thread.Sleep(500); |
|
|
|
DeviceProcessLogShow("尝试取咖啡杯!"); |
|
|
|
EventBus.EventBus.GetInstance().Publish(new LebaiRobot_SetValueEvent { DeviceId = DeviceId, RobotSetValue = 1 }, (o) => { }); |
|
|
|