Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
Qisda-SO1037-AGVDispatch
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit faf5080b
由
张东亮
编写于
2023-03-22 09:21:07 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
e16c1872
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
DeviceLibrary/bean/agv/Agv_Info.cs
DeviceLibrary/bean/agv/Agv_Info.cs
查看文件 @
faf5080
...
...
@@ -355,15 +355,16 @@ namespace DeviceLibrary
SetKanban
();
if
(!
Control
.
CheckOnline
(
this
))
return
;
//获取AGV状态
MiR_API
.
Get_State
(
this
,
out
eAGVState
stateID
,
out
string
stateText
,
out
int
battery
,
out
string
mission_text
,
out
AgvInfo
.
MirPosition
position
,
out
List
<
Mir_Error
>
errors
);
Thread
.
Sleep
(
50
);
SetState
(
stateID
,
battery
,
mission_text
,
position
,
errors
);
bool
rtn
=
MiR_API
.
Get_State
(
this
,
out
eAGVState
stateID
,
out
string
stateText
,
out
int
battery
,
out
string
mission_text
,
out
AgvInfo
.
MirPosition
position
,
out
List
<
Mir_Error
>
errors
);
bool
rtn1
=
MiR_API
.
Get_Task_State
(
this
);
if
(
rtn
&&
rtn1
)
SetState
(
stateID
,
battery
,
mission_text
,
position
,
errors
);
if
(!
TaskRunState
.
IsAllocatingTask
&&
Auto
&&
CurJob
!=
null
&&
TaskRunState
.
TaskID
.
Equals
(-
1
)
&&
TaskRunState
.
Task
!=
null
&&
!
string
.
IsNullOrEmpty
(
TaskRunState
.
Task
.
Guid
))
{
if
(!
MiR_API
.
Get_MissionByDescrp
(
this
))
{
if
(
AgvTaskManager
.
IsExistTask
(
TaskRunState
.
Task
.
Name
,
this
))
if
(
AgvTaskManager
.
IsExistTask
(
TaskRunState
.
Task
.
Name
,
this
))
{
LogUtil
.
info
(
$
"{Name}:Task=-1处理,Fleet无任务,重发任务:{TaskRunState.Task.Name},{TaskRunState.Task.Guid}"
);
CurJob
?.
ResendTask
(
this
);
...
...
@@ -377,7 +378,6 @@ namespace DeviceLibrary
//if ((agv.CurJob != null && !(agv.CurJob is ChargeJob || agv.CurJob is StandyJob))
// && (AGVManager.agvInfo[i].StateID.Equals(eAGVState.Executing)))
{
MiR_API
.
Get_Task_State
(
this
);
Thread
.
Sleep
(
50
);
MiR_API
.
Get_IO_Status
(
this
);
}
...
...
@@ -398,7 +398,7 @@ namespace DeviceLibrary
public
List
<
string
>
RunInfos
;
DateTime
IoStartTime
=
DateTime
.
MaxValue
;
int
IoLastTime
=
5000
;
int
StandLastTimeMinute
=
AppConfigHelper
.
GetIntValue
(
SettingString
.
StandTimeout
,
6
);
int
StandLastTimeMinute
=
AppConfigHelper
.
GetIntValue
(
SettingString
.
StandTimeout
,
6
);
public
DateTime
StandStartTime
=
DateTime
.
MaxValue
;
public
bool
SetState
(
eAGVState
stateID
,
int
battery
,
string
missionText
,
MirPosition
position
,
List
<
Mir_Error
>
mir_Errors
)
{
...
...
@@ -688,7 +688,7 @@ namespace DeviceLibrary
Common
.
LogUtil
.
error
(
Name
+
"上报小车运行步骤失败"
+
ex
.
Message
+
ex
.
StackTrace
);
}
}
HttpManager
.
updateDeviceAlarmMsg
(
Httpserver
,
msglist
);
HttpManager
.
updateDeviceAlarmMsg
(
Httpserver
,
msglist
);
}
catch
(
Exception
ex
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论