Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
AGV_3D_Line
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e2a05607
由
张东亮
编写于
2021-12-16 14:52:05 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
更改从产线回来的大料架不去双层线入口问题
1 个父辈
94444c72
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
15 行增加
和
15 行删除
DeviceLibrary/manager/AGVManager.cs
DeviceLibrary/manager/AGVManager.cs
查看文件 @
e2a0560
...
@@ -281,21 +281,21 @@ namespace DeviceLibrary
...
@@ -281,21 +281,21 @@ namespace DeviceLibrary
}
}
tarIdx
=
nodeInfo
.
FindIndex
(
s
=>
s
.
Name
==
SettingString
.
A6
&&
//
tarIdx = nodeInfo.FindIndex(s => s.Name == SettingString.A6 &&
(
s
.
StateEquals
(
eNodeStatus
.
NeedEnter
)
||
s
.
StateEquals
(
eNodeStatus
.
NeedEnterLeave
))
&&
s
.
IsUse
);
//
(s.StateEquals(eNodeStatus.NeedEnter) || s.StateEquals(eNodeStatus.NeedEnterLeave)) && s.IsUse);
if
(
tarIdx
>
-
1
)
//
if (tarIdx > -1)
{
//
{
tarIdx
=
agvInfo
.
FindIndex
(
s
=>
!
s
.
IP
.
Equals
(
agv
.
IP
)
&&
s
.
CurJob
!=
null
&&
s
.
CurJob
is
EmptyShelfBackJob
//
tarIdx = agvInfo.FindIndex(s => !s.IP.Equals(agv.IP) && s.CurJob != null && s.CurJob is EmptyShelfBackJob
&&
((((
EmptyShelfBackJob
)
s
.
CurJob
).
EmptyShelfTargetPlace
)
!=
null
)
&&
((
EmptyShelfBackJob
)
s
.
CurJob
).
EmptyShelfTargetPlace
.
Equals
(
SettingString
.
A6
));
//
&& ((((EmptyShelfBackJob)s.CurJob).EmptyShelfTargetPlace) != null) && ((EmptyShelfBackJob)s.CurJob).EmptyShelfTargetPlace.Equals(SettingString.A6));
if
(
tarIdx
==
-
1
)
//
if (tarIdx == -1)
{
//
{
nodeName
=
SettingString
.
A6
;
//
nodeName = SettingString.A6;
log
.
Debug
(
string
.
Format
(
"{0} {1}需要大料架"
,
agv
.
Name
,
SettingString
.
A6
));
//
log.Debug(string.Format("{0} {1}需要大料架", agv.Name, SettingString.A6));
return
true
;
//
return true;
}
//
}
}
//
}
}
}
return
false
;
return
false
;
...
@@ -562,7 +562,7 @@ namespace DeviceLibrary
...
@@ -562,7 +562,7 @@ namespace DeviceLibrary
if
(
idx
>
-
1
)
if
(
idx
>
-
1
)
{
{
nodeName
=
nodeInfo
[
idx
].
Name
;
nodeName
=
nodeInfo
[
idx
].
Name
;
log
.
Info
(
agv
.
Name
+
" 双层线左侧需要大料架,准备去4D-"
+
nodeName
);
log
.
Debug
(
agv
.
Name
+
" 双层线左侧需要大料架,准备去4D-"
+
nodeName
);
return
true
;
return
true
;
}
}
...
@@ -594,7 +594,7 @@ namespace DeviceLibrary
...
@@ -594,7 +594,7 @@ namespace DeviceLibrary
if
(
idx
>
-
1
)
if
(
idx
>
-
1
)
{
{
nodeName
=
nodeInfo
[
idx
].
Name
;
nodeName
=
nodeInfo
[
idx
].
Name
;
log
.
Info
(
agv
.
Name
+
" 双层线右侧需要料架,准备去4D-"
+
nodeName
);
log
.
Debug
(
agv
.
Name
+
" 双层线右侧需要料架,准备去4D-"
+
nodeName
);
return
true
;
return
true
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论