|
|
@@ -198,7 +198,7 @@ namespace BPASmartClient.MorkT_Container |
|
|
|
bFirstTrig_Coffee = true; |
|
|
|
delayTimeOut_Coffee = DateTime.Now; |
|
|
|
} |
|
|
|
else if (DateTime.Now.Subtract(delayTimeOut_Coffee).TotalSeconds > 18 && bFirstTrig_Coffee == true) |
|
|
|
else if (DateTime.Now.Subtract(delayTimeOut_Coffee).TotalSeconds > 180 && bFirstTrig_Coffee == true) |
|
|
|
{ |
|
|
|
DeviceProcessLogShow("接咖啡超时,接咖啡结束,等待取咖啡"); |
|
|
|
bFirstTrig_Coffee = false; |
|
|
@@ -231,7 +231,7 @@ namespace BPASmartClient.MorkT_Container |
|
|
|
bFirstTrig_Juice = true; |
|
|
|
delayTimeOut_Juice = DateTime.Now; |
|
|
|
} |
|
|
|
else if (DateTime.Now.Subtract(delayTimeOut_Juice).TotalSeconds > 3 && bFirstTrig_Juice == true) |
|
|
|
else if (DateTime.Now.Subtract(delayTimeOut_Juice).TotalSeconds > 15 && bFirstTrig_Juice == true) |
|
|
|
{ |
|
|
|
DeviceProcessLogShow("接果汁超时,接果汁结束,等待取果汁"); |
|
|
|
bFirstTrig_Juice = false; |
|
|
@@ -246,7 +246,7 @@ namespace BPASmartClient.MorkT_Container |
|
|
|
bFirstTrig_TeaWater = true; |
|
|
|
delayTimeOut_Water = DateTime.Now;//开启接水信号后,记录当前时间 |
|
|
|
} |
|
|
|
else if (DateTime.Now.Subtract(delayTimeOut_Water).TotalSeconds >= 5 && bFirstTrig_TeaWater == true)//接水超过50s后,启动接水完成标志,开启接水程序 |
|
|
|
else if (DateTime.Now.Subtract(delayTimeOut_Water).TotalSeconds >= 50 && bFirstTrig_TeaWater == true)//接水超过50s后,启动接水完成标志,开启接水程序 |
|
|
|
{ |
|
|
|
DeviceProcessLogShow("接茶或水延迟时间结束"); |
|
|
|
bFirstTrig_TeaWater = false; |
|
|
@@ -329,7 +329,7 @@ namespace BPASmartClient.MorkT_Container |
|
|
|
/// 判断是否有咖啡订单 |
|
|
|
/// </summary> |
|
|
|
/// <returns></returns> |
|
|
|
private bool IsMakeCoffee() |
|
|
|
private bool IsMakeCoffee() |
|
|
|
{ |
|
|
|
bool bMake = (IsHealth && morkTLebaiJC.morkOrderPushesCoffee.Count > 0 && !morkTLebaiJC.IsHaveCoffeeCup) ? true : false; |
|
|
|
return bMake; |
|
|
@@ -340,7 +340,7 @@ namespace BPASmartClient.MorkT_Container |
|
|
|
/// <returns></returns> |
|
|
|
private bool IsMakeJuice() |
|
|
|
{ |
|
|
|
bool bMake = (IsHealth && morkTLebaiJC.morkOrderPushesJuicer.Count > 0 && !morkTLebaiJC.IsHaveJuiceCup) ? true : false; |
|
|
|
bool bMake = (IsHealth && morkTLebaiJC.morkOrderPushesJuicer.Count > 0 && !morkTLebaiJC.IsHaveJuiceCup) ? true : false; |
|
|
|
return bMake; |
|
|
|
} |
|
|
|
/// <summary> |
|
|
@@ -490,7 +490,7 @@ namespace BPASmartClient.MorkT_Container |
|
|
|
outCupCheck = false; |
|
|
|
OrderChange(morkTLebaiJC.morkOrderPushesCoffee.ElementAt(0).SuborderId, BPA.Message.Enum.ORDER_STATUS.COOKING); |
|
|
|
int resultTakeCup = takeCup(); |
|
|
|
if (resultTakeCup == 1 || true) |
|
|
|
if (resultTakeCup == 1) |
|
|
|
{ |
|
|
|
new LebaiRobot_SetValueEvent { DeviceId = DeviceId, RobotSetValue = 0 }.Publish(); |
|
|
|
Sence(GVL_MorkT.机器人安全位); |
|
|
@@ -549,7 +549,7 @@ namespace BPASmartClient.MorkT_Container |
|
|
|
{ |
|
|
|
OrderChange(morkTLebaiJC.morkOrderPushesWater.ElementAt(0).SuborderId, BPA.Message.Enum.ORDER_STATUS.COOKING); |
|
|
|
int resultTakeCup = takeCup(); |
|
|
|
if (resultTakeCup == 1 || true) |
|
|
|
if (resultTakeCup == 1) |
|
|
|
{ |
|
|
|
new LebaiRobot_SetValueEvent { DeviceId = DeviceId, RobotSetValue = 0 }.Publish(); |
|
|
|
Sence(GVL_MorkT.接开水); |
|
|
@@ -587,7 +587,7 @@ namespace BPASmartClient.MorkT_Container |
|
|
|
{ |
|
|
|
OrderChange(morkTLebaiJC.morkOrderPushesTea.ElementAt(0).SuborderId, BPA.Message.Enum.ORDER_STATUS.COOKING); |
|
|
|
int resultTakeCup = takeCup(); |
|
|
|
if (resultTakeCup == 1 || true) |
|
|
|
if (resultTakeCup == 1) |
|
|
|
{ |
|
|
|
DeviceProcessLogShow("取茶杯完成"); |
|
|
|
new LebaiRobot_SetValueEvent { DeviceId = DeviceId, RobotSetValue = 0 }.Publish(); |
|
|
@@ -688,7 +688,7 @@ namespace BPASmartClient.MorkT_Container |
|
|
|
OrderChange(morkTLebaiJC.morkOrderPushesJuicer.ElementAt(0).SuborderId, BPA.Message.Enum.ORDER_STATUS.COOKING); |
|
|
|
int resultTakeCup = takeCup(); |
|
|
|
JuiceCH = morkTLebaiJC.morkOrderPushesJuicer.ElementAt(0).Loc; |
|
|
|
if (resultTakeCup == 1 ||true ) |
|
|
|
if (resultTakeCup == 1) |
|
|
|
{ |
|
|
|
getIce(); |
|
|
|
new LebaiRobot_SetValueEvent { DeviceId = DeviceId, RobotSetValue = 0 }.Publish(); |
|
|
|