Commit ecd1e341 张东亮

停留超时逻辑更新

1 个父辈 163e080f
......@@ -332,7 +332,8 @@ namespace AGVControl
/// <returns></returns>
private void CheckStandTimeOut(clsPosition position)
{
if (IsUse && CurJob !=null && !(CurJob is ChargeJob) && !CurTaskName.Contains(SettingString.AutoCharge) && !CurTaskName.Contains(SettingString.Standby))
if (IsUse && CurJob !=null && !(CurJob is ChargeJob) &&
(!CurTaskName.Contains(SettingString.AutoCharge) || !CurTaskName.Contains(SettingString.Standby)))
{
if (Math.Abs(position.x - Position.x) < 1 && Math.Abs(position.y - Position.y) < 1)
{
......@@ -352,7 +353,14 @@ namespace AGVControl
}
}
else if(CurJob != null && (CurJob is ChargeJob))
{
StandTimeOut = false;
}
else
{
StandTimeOut = false;
}
Position = position;
}
//public void GetPlace(int value)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!