Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
顾剑亮
/
AGVControl-Qisda-ProductionLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 3dfbe19c
由
张东亮
编写于
2020-08-25 19:44:24 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
添加接驳台离线看板
1 个父辈
dd30264f
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
16 行增加
和
6 行删除
.vs/AGVControl-ProductionLine/v16/.suo
AGVControl-ProductionLine/BLL/Control.cs
.vs/AGVControl-ProductionLine/v16/.suo
查看文件 @
3dfbe19
此文件类型无法预览
AGVControl-ProductionLine/BLL/Control.cs
查看文件 @
3dfbe19
...
...
@@ -61,6 +61,19 @@ namespace BLL
bool
rtn
;
if
(
AgvStateInProcess
)
return
;
AgvStateInProcess
=
true
;
//上报异常
bool
isAlarm
=
false
;
List
<
AlarmMsg
>
msglist
=
new
List
<
AlarmMsg
>();
for
(
int
j
=
0
;
j
<
Common
.
nodeInfo
.
Count
;
j
++)
{
if
(!
Common
.
nodeInfo
[
j
].
Online
)
{
isAlarm
=
true
;
msglist
.
Add
(
new
AlarmMsg
(
Common
.
nodeInfo
[
j
].
AliceName
,
"agv."
+
Common
.
nodeInfo
[
j
].
Name
+
".OnLine"
,
"接驳台状态:离线"
));
}
}
for
(
int
i
=
0
;
i
<
Common
.
agvInfo
.
Count
;
i
++)
{
if
(!
CheckOnline
(
i
))
continue
;
...
...
@@ -74,10 +87,6 @@ namespace BLL
bool
change
=
false
;
if
(
rtn
)
change
=
Common
.
agvInfo
[
i
].
SetState
(
stateID
,
stateText
,
battery
,
mission_text
,
position
);
//上报异常
bool
isAlarm
=
false
;
List
<
AlarmMsg
>
msglist
=
new
List
<
AlarmMsg
>();
if
(
Common
.
agvInfo
[
i
].
StateID
.
Equals
(
eAGVState
.
Docking
))
{
if
(!
Common
.
agvInfo
[
i
].
StateID
.
Equals
(
preAGVState
))
...
...
@@ -116,8 +125,7 @@ namespace BLL
}
}
if
(
isAlarm
)
BLL
.
AGVManager
.
updateDeviceAlarmMsg
(
msglist
);
//获取地点任务状态
...
...
@@ -152,6 +160,8 @@ namespace BLL
//}
}
if
(
isAlarm
)
BLL
.
AGVManager
.
updateDeviceAlarmMsg
(
msglist
);
AgvStateInProcess
=
false
;
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论