Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 4d1ea6c5
由
刘韬
编写于
2022-11-23 17:17:47 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
ea944e7c
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
4 行删除
DeviceLibrary/DeviceLibrary/CodeManager.cs
DeviceLibrary/theMachine/RobotManage.cs
DeviceLibrary/DeviceLibrary/CodeManager.cs
查看文件 @
4d1ea6c
...
@@ -261,9 +261,10 @@ namespace DeviceLibrary
...
@@ -261,9 +261,10 @@ namespace DeviceLibrary
if
(
bmp
==
null
)
if
(
bmp
==
null
)
{
{
if
(
retrytime
>
2
)
if
(
retrytime
>
2
)
return
fals
e
;
return
tru
e
;
retrytime
++;
retrytime
++;
CloseCamera
(
cameraName
);
LoadCamera
(
true
);
LogUtil
.
info
(
$
"bitmap为空重试第{retrytime}次"
);
LogUtil
.
info
(
$
"bitmap为空重试第{retrytime}次"
);
Thread
.
Sleep
(
500
);
Thread
.
Sleep
(
500
);
goto
retry
;
goto
retry
;
...
...
DeviceLibrary/theMachine/RobotManage.cs
查看文件 @
4d1ea6c
...
@@ -102,17 +102,25 @@ namespace DeviceLibrary
...
@@ -102,17 +102,25 @@ namespace DeviceLibrary
LoadFinishEvent
?.
Invoke
(
true
,
crc
.
GetString
(
L
.
open_debug_mode
,
"打开调试模式"
));
LoadFinishEvent
?.
Invoke
(
true
,
crc
.
GetString
(
L
.
open_debug_mode
,
"打开调试模式"
));
}
}
public
static
void
Start
()
{
public
static
void
Start
()
{
//Init();
if
(!
IsLoadOk
)
if
(!
IsLoadOk
)
{
{
LogUtil
.
info
(
"系统还未加载完毕,无法启动"
);
LogUtil
.
info
(
"系统还未加载完毕,无法启动"
);
if
(!
IsConfigMode
)
if
(!
IsConfigMode
)
return
;
return
;
}
}
lock
(
mainMachine
)
{
if
(
isRunning
)
{
LogUtil
.
info
(
"系统已经在运行"
);
return
;
}
isRunning
=
true
;
mainThread
=
new
Thread
(
new
ThreadStart
(
mainMachine
.
Start
));
mainThread
=
new
Thread
(
new
ThreadStart
(
mainMachine
.
Start
));
mainThread
.
Start
();
mainThread
.
Start
();
}
isRunning
=
true
;
GC
.
KeepAlive
(
mainThread
);
GC
.
KeepAlive
(
mainThread
);
Task
.
Run
(()=>
{
Task
.
Run
(()=>
{
AxisBean
.
List
.
ForEach
((
x
)
=>
{
AxisManager
.
AlarmClear
(
x
.
Config
.
DeviceName
,
x
.
Config
.
GetAxisValue
());
});
AxisBean
.
List
.
ForEach
((
x
)
=>
{
AxisManager
.
AlarmClear
(
x
.
Config
.
DeviceName
,
x
.
Config
.
GetAxisValue
());
});
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论