Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
顾剑亮
/
AGVControl_Steel
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 8fd8c936
由
顾剑亮
编写于
2020-10-21 12:44:58 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
debug
1 个父辈
ab3dd788
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
14 行增加
和
13 行删除
.vs/AGVControl_Steel/v16/.suo
BLL/Job/MoveJob.cs
BLL/Job/StandbyJob.cs
BLL/SteelManage.cs
.vs/AGVControl_Steel/v16/.suo
查看文件 @
8fd8c93
此文件类型无法预览
BLL/Job/MoveJob.cs
查看文件 @
8fd8c93
...
@@ -14,7 +14,7 @@ namespace BLL
...
@@ -14,7 +14,7 @@ namespace BLL
public
MoveJob
(
string
mission
)
public
MoveJob
(
string
mission
)
{
{
IsEnd
=
false
;
IsEnd
=
false
;
this
.
_mission
=
mission
;
_mission
=
mission
;
moveStep
=
new
JobStep
<
MoveStep
>(
MoveStep
.
Send
);
moveStep
=
new
JobStep
<
MoveStep
>(
MoveStep
.
Send
);
}
}
...
@@ -71,7 +71,7 @@ namespace BLL
...
@@ -71,7 +71,7 @@ namespace BLL
rtn
=
Common
.
mir
.
Get_MissionState
(
_info
.
IP
,
_info
.
Authorization
,
_id
,
out
state
);
rtn
=
Common
.
mir
.
Get_MissionState
(
_info
.
IP
,
_info
.
Authorization
,
_id
,
out
state
);
if
(
rtn
)
if
(
rtn
)
{
{
Common
.
log
.
Debug
(
"MoveJob To:"
+
_info
.
Name
+
", "
+
_mission
+
state
.
ToString
());
Common
.
log
.
Debug
(
"MoveJob To:"
+
_info
.
Name
+
", "
+
_mission
+
", "
+
state
.
ToString
());
if
(
state
==
MissionState
.
Done
.
ToString
())
if
(
state
==
MissionState
.
Done
.
ToString
())
moveStep
.
NextStep
(
MoveStep
.
End
);
moveStep
.
NextStep
(
MoveStep
.
End
);
else
if
(
state
==
MissionState
.
Aborted
.
ToString
())
else
if
(
state
==
MissionState
.
Aborted
.
ToString
())
...
@@ -106,7 +106,8 @@ namespace BLL
...
@@ -106,7 +106,8 @@ namespace BLL
{
{
Aborted
,
Aborted
,
Executing
,
Executing
,
Done
Done
,
Pending
}
}
}
}
}
}
BLL/Job/StandbyJob.cs
查看文件 @
8fd8c93
...
@@ -78,7 +78,7 @@ namespace BLL
...
@@ -78,7 +78,7 @@ namespace BLL
move
=
new
MoveJob
(
mission
);
move
=
new
MoveJob
(
mission
);
move
.
Execute
(
_info
);
move
.
Execute
(
_info
);
standbyStep
.
NextStep
(
StandbyStep
.
MoveStandby
);
standbyStep
.
NextStep
(
StandbyStep
.
MoveStandby
);
standbyStep
.
Msg
=
_info
.
Name
+
"
发送任务
"
+
mission
;
standbyStep
.
Msg
=
_info
.
Name
+
"
,发送任务,
"
+
mission
;
}
}
private
void
PassDoor
()
private
void
PassDoor
()
...
...
BLL/SteelManage.cs
查看文件 @
8fd8c93
...
@@ -371,15 +371,15 @@ namespace BLL
...
@@ -371,15 +371,15 @@ namespace BLL
private
static
bool
GetWash
(
AgvInfo
info
)
private
static
bool
GetWash
(
AgvInfo
info
)
{
{
int
inde
x
=
Common
.
agvLines
.
FindIndex
(
s
=>
s
.
Workshop
==
info
.
Workshop
);
int
lineId
x
=
Common
.
agvLines
.
FindIndex
(
s
=>
s
.
Workshop
==
info
.
Workshop
);
if
(
inde
x
==
-
1
)
return
false
;
if
(
lineId
x
==
-
1
)
return
false
;
bool
find
=
false
;
bool
find
=
false
;
for
(
int
i
=
0
;
i
<
newSteelWork
.
Count
;
i
++)
for
(
int
i
=
0
;
i
<
newSteelWork
.
Count
;
i
++)
{
{
if
(
newSteelWork
[
i
].
From
==
newSteelWork
[
i
].
Place
)
if
(
newSteelWork
[
i
].
From
==
newSteelWork
[
i
].
Place
)
{
{
in
dex
=
Array
.
FindIndex
(
Common
.
agvLines
[
inde
x
].
Lines
,
s
=>
s
==
oldSteelWork
[
i
].
Place
);
in
t
index
=
Array
.
FindIndex
(
Common
.
agvLines
[
lineId
x
].
Lines
,
s
=>
s
==
oldSteelWork
[
i
].
Place
);
if
(
index
>
-
1
)
if
(
index
>
-
1
)
{
{
find
=
true
;
find
=
true
;
...
@@ -392,13 +392,13 @@ namespace BLL
...
@@ -392,13 +392,13 @@ namespace BLL
private
static
bool
GetOldSteel
(
AgvInfo
info
)
private
static
bool
GetOldSteel
(
AgvInfo
info
)
{
{
int
inde
x
=
Common
.
agvLines
.
FindIndex
(
s
=>
s
.
Workshop
==
info
.
Workshop
);
int
lineId
x
=
Common
.
agvLines
.
FindIndex
(
s
=>
s
.
Workshop
==
info
.
Workshop
);
if
(
inde
x
==
-
1
)
return
false
;
if
(
lineId
x
==
-
1
)
return
false
;
bool
find
=
false
;
bool
find
=
false
;
for
(
int
i
=
0
;
i
<
oldSteelWork
.
Count
;
i
++)
for
(
int
i
=
0
;
i
<
oldSteelWork
.
Count
;
i
++)
{
{
in
dex
=
Array
.
FindIndex
(
Common
.
agvLines
[
inde
x
].
Lines
,
s
=>
s
==
oldSteelWork
[
i
].
Place
);
in
t
index
=
Array
.
FindIndex
(
Common
.
agvLines
[
lineId
x
].
Lines
,
s
=>
s
==
oldSteelWork
[
i
].
Place
);
if
(
index
>
-
1
)
if
(
index
>
-
1
)
{
{
find
=
true
;
find
=
true
;
...
@@ -410,13 +410,13 @@ namespace BLL
...
@@ -410,13 +410,13 @@ namespace BLL
private
static
bool
GetStorage
(
AgvInfo
info
)
private
static
bool
GetStorage
(
AgvInfo
info
)
{
{
int
inde
x
=
Common
.
agvLines
.
FindIndex
(
s
=>
s
.
Workshop
==
info
.
Workshop
);
int
lineId
x
=
Common
.
agvLines
.
FindIndex
(
s
=>
s
.
Workshop
==
info
.
Workshop
);
if
(
inde
x
==
-
1
)
return
false
;
if
(
lineId
x
==
-
1
)
return
false
;
bool
find
=
false
;
bool
find
=
false
;
for
(
int
i
=
0
;
i
<
storageWork
.
Count
;
i
++)
for
(
int
i
=
0
;
i
<
storageWork
.
Count
;
i
++)
{
{
in
dex
=
Array
.
FindIndex
(
Common
.
agvLines
[
inde
x
].
Lines
,
s
=>
s
==
storageWork
[
i
].
Place
);
in
t
index
=
Array
.
FindIndex
(
Common
.
agvLines
[
lineId
x
].
Lines
,
s
=>
s
==
storageWork
[
i
].
Place
);
if
(
index
>
-
1
)
if
(
index
>
-
1
)
{
{
find
=
true
;
find
=
true
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论