Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c2617b00
由
LN
编写于
2024-07-02 09:24:20 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
红外感应器报警显示红色
1 个父辈
f6bbb9d0
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
8 行删除
DeviceLibrary/theMachine/MainMachine _LedRGBProcess.cs
DeviceLibrary/theMachine/MainMachine.cs
DeviceLibrary/theMachine/MainMachine_Store.cs
DeviceLibrary/theMachine/MainMachine _LedRGBProcess.cs
查看文件 @
c2617b0
...
...
@@ -73,10 +73,14 @@ namespace DeviceLibrary
{
return
;
}
//if (lastColor != "" && lastColor.Equals(color.Name.ToString()))
//{
// return;
//}
if
(
lastColor
!=
""
&&
lastColor
.
Equals
(
color
.
Name
.
ToString
()))
{
return
;
}
else
{
LogUtil
.
info
(
Name
+
" ShowColor "
+
lastS
+
"="
+
lastColor
);
}
//if (lastColor.Equals("yellowL")||lastColor.Equals("greenL"))
//{
// rGB_Controller.CloseLed();
...
...
@@ -85,8 +89,7 @@ namespace DeviceLibrary
lastS
=
lastState
;
//rGB_Controller.CloseLed();
rGB_Controller
.
ShowColor
(
color
);
lastColor
=
color
.
Name
.
ToString
();
LogUtil
.
info
(
Name
+
" ShowColor "
+
lastS
+
"="
+
lastColor
);
lastColor
=
color
.
Name
.
ToString
();
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"ShowColror "
+
color
+
", "
+
lastState
+
"出错:"
+
ex
.
ToString
());
}
...
...
DeviceLibrary/theMachine/MainMachine.cs
查看文件 @
c2617b0
...
...
@@ -706,7 +706,7 @@ namespace DeviceLibrary
ResetMoveInfo
.
log
(
"声波传感器检测OK"
);
break
;
case
MoveStep
.
H31_HomeError
:
ResetMoveInfo
.
NextMoveStep
(
MoveStep
.
H
END_HomeReset
);
ResetMoveInfo
.
NextMoveStep
(
MoveStep
.
H
31_HomeError
);
ResetMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
Msg
.
add
(
crc
.
GetString
(
"shengboError"
,
"声波传感器误差过大,请检查后重新复位"
),
MsgLevel
.
alarm
);
ResetMoveInfo
.
log
(
crc
.
GetString
(
"shengboError"
,
"声波传感器误差过大,请检查后重新复位"
));
...
...
DeviceLibrary/theMachine/MainMachine_Store.cs
查看文件 @
c2617b0
...
...
@@ -244,7 +244,7 @@ namespace DeviceLibrary
}
break
;
case
MoveStep
.
StoreOut20
:
Msg
.
add
(
crc
.
GetString
(
L
.
sensor_alarm
,
"红外传感器偏差过大,需要检查后复位."
),
MsgLevel
.
info
);
Msg
.
add
(
crc
.
GetString
(
L
.
sensor_alarm
,
"红外传感器偏差过大,需要检查后复位."
),
MsgLevel
.
alarm
);
break
;
default
:
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论