Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
Qisda-SO1037-AGVDispatch
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 131d64c1
由
张东亮
编写于
2023-09-20 10:22:56 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
添加4C到3C双向运输
1 个父辈
ed7e3a8b
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
7 行删除
DeviceLibrary/manager/MissionManager.cs
DeviceLibrary/manager/NodeManager.cs
DeviceLibrary/manager/MissionManager.cs
查看文件 @
131d64c
...
@@ -911,6 +911,10 @@ namespace DeviceLibrary.manager
...
@@ -911,6 +911,10 @@ namespace DeviceLibrary.manager
{
{
liftname
=
SettingString
.
LIFT_C1
;
liftname
=
SettingString
.
LIFT_C1
;
}
}
else
if
(
missionInfo
.
destinationWorkshop
.
Equals
(
SettingString
.
_3D
))
{
liftname
=
SettingString
.
LIFT_D2
;
}
}
}
if
(
missionInfo
.
destinationWorkshop
.
Equals
(
SettingString
.
_3C
))
if
(
missionInfo
.
destinationWorkshop
.
Equals
(
SettingString
.
_3C
))
{
{
...
...
DeviceLibrary/manager/NodeManager.cs
查看文件 @
131d64c
...
@@ -205,11 +205,11 @@ namespace DeviceLibrary.manager
...
@@ -205,11 +205,11 @@ namespace DeviceLibrary.manager
/// key:车间名
/// key:车间名
/// val:线体名
/// val:线体名
/// </summary>
/// </summary>
public
static
Dictionary
<
string
,
List
<
string
>>
linesInAirShower
=
new
Dictionary
<
string
,
List
<
string
>>();
public
static
Dictionary
<
string
,
List
<
string
>>
linesInAirShower
=
new
Dictionary
<
string
,
List
<
string
>>();
static
void
InitLinesInAirShower
()
static
void
InitLinesInAirShower
()
{
{
//添加3D的
//添加3D的
linesInAirShower
.
Add
(
"3D"
,
new
List
<
string
>()
{
"S3Tail"
,
"MI7Tail"
});
linesInAirShower
.
Add
(
"3D"
,
new
List
<
string
>()
{
"S3Tail"
,
"MI7Tail"
});
//添加4C的
//添加4C的
linesInAirShower
.
Add
(
"4C"
,
new
List
<
string
>()
{
"C14Tail"
,
"C15Tail"
});
linesInAirShower
.
Add
(
"4C"
,
new
List
<
string
>()
{
"C14Tail"
,
"C15Tail"
});
}
}
...
@@ -224,7 +224,18 @@ namespace DeviceLibrary.manager
...
@@ -224,7 +224,18 @@ namespace DeviceLibrary.manager
isIn
=
true
;
isIn
=
true
;
isAirDoor
=
false
;
isAirDoor
=
false
;
if
(
agv
.
Scope
.
Workshop
.
Equals
(
"1F"
))
return
false
;
if
(
agv
.
Scope
.
Workshop
.
Equals
(
"1F"
))
return
false
;
if
(
agv
.
Scope
.
Workshop
.
Equals
(
"4C"
))
return
false
;
if
(
agv
.
Scope
.
Workshop
.
Equals
(
"4C"
))
{
if
(
cur
.
Workshop
.
Equals
(
"4C"
)
&&
next
.
Type
.
Equals
(
NodeType
.
Lift
)&&
next
.
Name
.
Equals
(
SettingString
.
LIFT_D2
))
{
isIn
=
false
;
return
true
;
}
else
if
((
cur
.
Workshop
.
Equals
(
"4D"
)||(
cur
.
Type
.
Equals
(
NodeType
.
Lift
)
&&
cur
.
Name
.
Equals
(
SettingString
.
LIFT_D2
)))
&&
(
next
.
Type
.
Equals
(
NodeType
.
Standby
)
||
next
.
Type
.
Equals
(
NodeType
.
AutoCharge
)))
{
return
true
;
}
}
if
(
agv
.
Scope
.
Workshop
.
Equals
(
"3C"
))
return
false
;
if
(
agv
.
Scope
.
Workshop
.
Equals
(
"3C"
))
return
false
;
try
try
{
{
...
@@ -244,9 +255,9 @@ namespace DeviceLibrary.manager
...
@@ -244,9 +255,9 @@ namespace DeviceLibrary.manager
}
}
else
//在相同车间
else
//在相同车间
{
{
if
(
cur
.
Type
.
Equals
(
NodeType
.
Lift
)
||
cur
.
Type
.
Equals
(
NodeType
.
Standby
)
||
cur
.
Type
.
Equals
(
NodeType
.
AutoCharge
))
if
(
cur
.
Type
.
Equals
(
NodeType
.
Lift
)
||
cur
.
Type
.
Equals
(
NodeType
.
Standby
)
||
cur
.
Type
.
Equals
(
NodeType
.
AutoCharge
))
{
{
if
(
linesInAirShower
.
ContainsKey
(
next
.
Workshop
)
&&
linesInAirShower
[
next
.
Workshop
].
Contains
(
next
.
Name
))
if
(
linesInAirShower
.
ContainsKey
(
next
.
Workshop
)
&&
linesInAirShower
[
next
.
Workshop
].
Contains
(
next
.
Name
))
{
{
//电梯到风淋门内
//电梯到风淋门内
isAirDoor
=
true
;
isAirDoor
=
true
;
...
@@ -254,7 +265,7 @@ namespace DeviceLibrary.manager
...
@@ -254,7 +265,7 @@ namespace DeviceLibrary.manager
return
true
;
return
true
;
}
}
}
}
else
if
(
next
.
Type
.
Equals
(
NodeType
.
Lift
)
||
next
.
Type
.
Equals
(
NodeType
.
Standby
)
||
next
.
Type
.
Equals
(
NodeType
.
AutoCharge
))
else
if
(
next
.
Type
.
Equals
(
NodeType
.
Lift
)
||
next
.
Type
.
Equals
(
NodeType
.
Standby
)
||
next
.
Type
.
Equals
(
NodeType
.
AutoCharge
))
{
{
if
(
linesInAirShower
.
ContainsKey
(
cur
.
Workshop
)
&&
linesInAirShower
[
cur
.
Workshop
].
Contains
(
cur
.
Name
))
if
(
linesInAirShower
.
ContainsKey
(
cur
.
Workshop
)
&&
linesInAirShower
[
cur
.
Workshop
].
Contains
(
cur
.
Name
))
{
{
...
@@ -264,7 +275,7 @@ namespace DeviceLibrary.manager
...
@@ -264,7 +275,7 @@ namespace DeviceLibrary.manager
return
true
;
return
true
;
}
}
}
}
else
if
(
cur
.
Type
.
Equals
(
NodeType
.
Node
)
&&
next
.
Type
.
Equals
(
NodeType
.
Node
))
else
if
(
cur
.
Type
.
Equals
(
NodeType
.
Node
)
&&
next
.
Type
.
Equals
(
NodeType
.
Node
))
{
{
if
(
linesInAirShower
.
ContainsKey
(
cur
.
Workshop
)
&&
linesInAirShower
.
ContainsKey
(
next
.
Workshop
))
if
(
linesInAirShower
.
ContainsKey
(
cur
.
Workshop
)
&&
linesInAirShower
.
ContainsKey
(
next
.
Workshop
))
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论