Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
DC360_1drap3_xiaoju_V1
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
丁雨邯
DC360_1drap3_xiaoju_V1
Commits
72114aef
提交
72114aef
authored
6月 17, 2020
作者:
wysheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
接触器据动/粘连检测
上级
760f1216
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
40 行增加
和
6 行删除
+40
-6
Drv_SmartAllocation.c
DcPillar/Src/SmartAllocation/Drv_SmartAllocation.c
+34
-0
Thd_Mult.c
DcPillar/Src/Thread/Thd_Mult.c
+6
-6
没有找到文件。
DcPillar/Src/SmartAllocation/Drv_SmartAllocation.c
浏览文件 @
72114aef
...
@@ -1360,31 +1360,65 @@ void RelayStatusCheck(void)
...
@@ -1360,31 +1360,65 @@ void RelayStatusCheck(void)
flag
=
5
;
flag
=
5
;
PillarError
.
Value
.
UniContactor
=
1
;
PillarError
.
Value
.
UniContactor
=
1
;
PillarError_B
.
Value
.
UniContactor
=
1
;
PillarError_B
.
Value
.
UniContactor
=
1
;
if
(
GetDcModeleRelaySet
(
Relay_K5K6
)
==
eSwSta_Off
)
{
PillarError
.
Value
.
UniContactor2
=
1
;
PillarError_B
.
Value
.
UniContactor2
=
1
;
}
else
{
PillarError
.
Value
.
UniContactor1
=
1
;
PillarError_B
.
Value
.
UniContactor1
=
1
;
}
}
}
else
else
{
{
PillarError
.
Value
.
UniContactor
=
0
;
PillarError
.
Value
.
UniContactor
=
0
;
PillarError_B
.
Value
.
UniContactor
=
0
;
PillarError_B
.
Value
.
UniContactor
=
0
;
PillarError
.
Value
.
UniContactor1
=
0
;
PillarError_B
.
Value
.
UniContactor1
=
0
;
PillarError
.
Value
.
UniContactor2
=
0
;
PillarError_B
.
Value
.
UniContactor2
=
0
;
}
}
if
(
flag_A
>=
5
)
if
(
flag_A
>=
5
)
{
{
flag_A
=
5
;
flag_A
=
5
;
PillarError
.
Value
.
Contactor
=
1
;
PillarError
.
Value
.
Contactor
=
1
;
if
(
GetDcModeleRelaySet
(
Relay_K1K2
)
==
eSwSta_Off
)
{
PillarError
.
Value
.
Contactor2
=
1
;
}
else
{
PillarError
.
Value
.
Contactor1
=
1
;
}
}
}
else
else
{
{
PillarError
.
Value
.
Contactor
=
0
;
PillarError
.
Value
.
Contactor
=
0
;
PillarError
.
Value
.
Contactor1
=
0
;
PillarError
.
Value
.
Contactor2
=
0
;
}
}
if
(
flag_B
>=
5
)
if
(
flag_B
>=
5
)
{
{
flag_B
=
5
;
flag_B
=
5
;
PillarError_B
.
Value
.
Contactor
=
1
;
PillarError_B
.
Value
.
Contactor
=
1
;
if
(
GetDcModeleRelaySet
(
Relay_K7K8
)
==
eSwSta_Off
)
{
PillarError_B
.
Value
.
Contactor2
=
1
;
}
else
{
PillarError_B
.
Value
.
Contactor1
=
1
;
}
}
}
else
else
{
{
PillarError_B
.
Value
.
Contactor
=
0
;
PillarError_B
.
Value
.
Contactor
=
0
;
PillarError_B
.
Value
.
Contactor1
=
0
;
PillarError_B
.
Value
.
Contactor2
=
0
;
}
}
}
}
...
...
DcPillar/Src/Thread/Thd_Mult.c
浏览文件 @
72114aef
...
@@ -868,16 +868,16 @@ void Thd_Mult(void const *parameter)
...
@@ -868,16 +868,16 @@ void Thd_Mult(void const *parameter)
{
{
PillarError
.
Value
.
ACContactor
=
1
;
PillarError
.
Value
.
ACContactor
=
1
;
PillarError_B
.
Value
.
ACContactor
=
1
;
PillarError_B
.
Value
.
ACContactor
=
1
;
if
((
ACContactorSta
==
eSwSta_On
)
&&
(
ACContactorGet
()
==
eSwSta_Off
))
if
((
ACContactorSta
==
eSwSta_Off
)
&&
(
ACContactorGet
()
==
eSwSta_On
))
{
PillarError
.
Value
.
ACContactor1
=
1
;
PillarError_B
.
Value
.
ACContactor1
=
1
;
}
else
if
((
ACContactorSta
==
eSwSta_Off
)
&&
(
ACContactorGet
()
==
eSwSta_On
))
{
{
PillarError
.
Value
.
ACContactor2
=
1
;
PillarError
.
Value
.
ACContactor2
=
1
;
PillarError_B
.
Value
.
ACContactor2
=
1
;
PillarError_B
.
Value
.
ACContactor2
=
1
;
}
}
else
// if((ACContactorSta==eSwSta_Off)&&(ACContactorGet()==eSwSta_On))
{
PillarError
.
Value
.
ACContactor1
=
1
;
PillarError_B
.
Value
.
ACContactor1
=
1
;
}
}
}
}
}
else
else
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论