Commit c2617b00 LN

红外感应器报警显示红色

1 个父辈 f6bbb9d0
...@@ -73,10 +73,14 @@ namespace DeviceLibrary ...@@ -73,10 +73,14 @@ namespace DeviceLibrary
{ {
return; return;
} }
//if (lastColor != "" && lastColor.Equals(color.Name.ToString())) if (lastColor != "" && lastColor.Equals(color.Name.ToString()))
//{ {
// return; return;
//} }
else
{
LogUtil.info(Name + " ShowColor " + lastS + "=" + lastColor);
}
//if (lastColor.Equals("yellowL")||lastColor.Equals("greenL")) //if (lastColor.Equals("yellowL")||lastColor.Equals("greenL"))
//{ //{
// rGB_Controller.CloseLed(); // rGB_Controller.CloseLed();
...@@ -85,8 +89,7 @@ namespace DeviceLibrary ...@@ -85,8 +89,7 @@ namespace DeviceLibrary
lastS = lastState; lastS = lastState;
//rGB_Controller.CloseLed(); //rGB_Controller.CloseLed();
rGB_Controller.ShowColor(color); rGB_Controller.ShowColor(color);
lastColor = color.Name.ToString(); lastColor = color.Name.ToString();
LogUtil.info(Name + " ShowColor " + lastS + "=" + lastColor);
} }
catch (Exception ex) { LogUtil.error("ShowColror " + color + ", " + lastState + "出错:" + ex.ToString()); } catch (Exception ex) { LogUtil.error("ShowColror " + color + ", " + lastState + "出错:" + ex.ToString()); }
......
...@@ -706,7 +706,7 @@ namespace DeviceLibrary ...@@ -706,7 +706,7 @@ namespace DeviceLibrary
ResetMoveInfo.log("声波传感器检测OK"); ResetMoveInfo.log("声波传感器检测OK");
break; break;
case MoveStep.H31_HomeError: case MoveStep.H31_HomeError:
ResetMoveInfo.NextMoveStep(MoveStep.HEND_HomeReset); ResetMoveInfo.NextMoveStep(MoveStep.H31_HomeError);
ResetMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(3000)); ResetMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(3000));
Msg.add(crc.GetString("shengboError", "声波传感器误差过大,请检查后重新复位"), MsgLevel.alarm); Msg.add(crc.GetString("shengboError", "声波传感器误差过大,请检查后重新复位"), MsgLevel.alarm);
ResetMoveInfo.log(crc.GetString("shengboError", "声波传感器误差过大,请检查后重新复位")); ResetMoveInfo.log(crc.GetString("shengboError", "声波传感器误差过大,请检查后重新复位"));
......
...@@ -244,7 +244,7 @@ namespace DeviceLibrary ...@@ -244,7 +244,7 @@ namespace DeviceLibrary
} }
break; break;
case MoveStep.StoreOut20: case MoveStep.StoreOut20:
Msg.add(crc.GetString(L.sensor_alarm, "红外传感器偏差过大,需要检查后复位."), MsgLevel.info); Msg.add(crc.GetString(L.sensor_alarm, "红外传感器偏差过大,需要检查后复位."), MsgLevel.alarm);
break; break;
default: default:
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!