Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
DC360_1drap3_xiaoju_V1
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
丁雨邯
DC360_1drap3_xiaoju_V1
Commits
620b36ac
提交
620b36ac
authored
6月 02, 2020
作者:
wysheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
恢复AB枪电子锁端口
上级
17e9ce90
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
183 行增加
和
132 行删除
+183
-132
Drv_BoardIo.h
DcPillar/Src/Drivers/Drv_BoardIo.h
+12
-12
Drv_SmartAllocation.c
DcPillar/Src/SmartAllocation/Drv_SmartAllocation.c
+6
-14
Drv_SmartAllocation_DcModule.c
DcPillar/Src/SmartAllocation/Drv_SmartAllocation_DcModule.c
+148
-96
SmartAllocation_B_ChgRun.c
DcPillar/Src/SmartAllocation/SmartAllocation_B_ChgRun.c
+4
-4
SmartAllocation_ChgRun.c
DcPillar/Src/SmartAllocation/SmartAllocation_ChgRun.c
+2
-2
ChgPro_ChgIdle.c
DcPillar/Src/Thread/Charge/ChgPro_ChgIdle.c
+2
-0
LcdPro_FactoryTestTwo.c
DcPillar/Src/Thread/Lcd/LcdPro_FactoryTestTwo.c
+2
-2
Thd_Mult.c
DcPillar/Src/Thread/Thd_Mult.c
+7
-2
没有找到文件。
DcPillar/Src/Drivers/Drv_BoardIo.h
浏览文件 @
620b36ac
...
...
@@ -28,13 +28,13 @@
#define DcOutChkPos_Port GPIOE
#define DcOutChkPos_RCC RCC_AHB1Periph_GPIOE
#define Lock_Pin GPIO_Pin_12
#define Lock_Port GPIOD
#define Lock_RCC RCC_AHB1Periph_GPIOD
#define Lock_
B_
Pin GPIO_Pin_12
#define Lock_
B_
Port GPIOD
#define Lock_
B_
RCC RCC_AHB1Periph_GPIOD
#define LockChk_Pin GPIO_Pin_14
#define LockChk_Port GPIOD
#define LockChk_RCC RCC_AHB1Periph_GPIOD
#define LockChk_
B_
Pin GPIO_Pin_14
#define LockChk_
B_
Port GPIOD
#define LockChk_
B_
RCC RCC_AHB1Periph_GPIOD
#define ChgLed_Pin GPIO_Pin_10
#define ChgLed_Port GPIOE
...
...
@@ -87,13 +87,13 @@
#define DcOutChkNeg_B_RCC RCC_AHB1Periph_GPIOE
#define Lock_
B_
Pin GPIO_Pin_13
#define Lock_
B_
Port GPIOD
#define Lock_
B_
RCC RCC_AHB1Periph_GPIOD
#define Lock_Pin GPIO_Pin_13
#define Lock_Port GPIOD
#define Lock_RCC RCC_AHB1Periph_GPIOD
#define LockChk_
B_
Pin GPIO_Pin_15
#define LockChk_
B_
Port GPIOD
#define LockChk_
B_
RCC RCC_AHB1Periph_GPIOD
#define LockChk_Pin GPIO_Pin_15
#define LockChk_Port GPIOD
#define LockChk_RCC RCC_AHB1Periph_GPIOD
#define ChgLed_B_Pin GPIO_Pin_13
#define ChgLed_B_Port GPIOE
...
...
DcPillar/Src/SmartAllocation/Drv_SmartAllocation.c
浏览文件 @
620b36ac
...
...
@@ -291,16 +291,11 @@ void DcModuleCtrlProcess_SmartAllocation(void)
static
u32
Tick
=
0
;
//
if
(
Tick
==
0
)
Tick
=
GetSystemTick
();
if
((
GetSystemTick
()
-
Tick
)
<
100
)
{
return
;
}
Tick
=
GetSystemTick
();
Tick
=
GetSystemTick
();
static
StructDcModuleUsedStatus
status
[
4
]
=
{
...
...
@@ -311,7 +306,6 @@ void DcModuleCtrlProcess_SmartAllocation(void)
Invalid
,
Invalid
,
Invalid
,
Invalid
};
//StructDcModuleSend DataSend;
u32
Temp
;
u8
addr
;
u32
Volt
=
0
;
...
...
@@ -420,7 +414,6 @@ void DcModuleCtrlProcess_SmartAllocation(void)
{
if
(
DcModuleGroup
[
i
].
status
==
Hold_A
&&
i
!=
0
)
{
if
(
abs
((
s16
)
(
DcModuleGroup
[
i
].
Voltage
)
-
(
s16
)
(
DcModuleManage
.
SetVolt
/
100
))
>
100
)
//差距在10V以内,升压完成
{
Temp
++
;
...
...
@@ -451,7 +444,7 @@ void DcModuleCtrlProcess_SmartAllocation(void)
for
(
u8
j
=
0
;
j
<
DcModuleGroup
[
i
].
num
;
j
++
)
{
addr
=
DcModuleGroup
[
i
].
modules
[
j
].
addr
;
addr
=
DcModuleGroup
[
i
].
modules
[
j
].
addr
;
DcModuleManage_B
.
Cmd
=
0x55
;
//开机
DcModuleGroup
[
i
].
modules
[
j
].
cmd
=
0x55
;
...
...
@@ -471,7 +464,7 @@ void DcModuleCtrlProcess_SmartAllocation(void)
Temp
++
;
for
(
u8
j
=
0
;
j
<
DcModuleGroup
[
i
].
num
;
j
++
)
{
addr
=
DcModuleGroup
[
i
].
modules
[
j
].
addr
;
addr
=
DcModuleGroup
[
i
].
modules
[
j
].
addr
;
DcModuleGroup
[
i
].
modules
[
j
].
cmd
=
0xAA
;
SendCmdToDcModule
(
addr
,
0xAA
);
//关机
}
...
...
@@ -583,7 +576,6 @@ void DcModuleCtrlProcess_SmartAllocation(void)
}
if
(
Temp
)
return
;
...
...
@@ -599,9 +591,9 @@ void DcModuleCtrlProcess_SmartAllocation(void)
Temp
++
;
}
if
((
GetSystemTick
()
-
CtrlTick
)
>
100
)
//
if ((GetSystemTick() -CtrlTick) > 100)
{
CtrlTick
=
GetSystemTick
();
//
CtrlTick = GetSystemTick();
Temp
++
;
}
...
...
@@ -712,7 +704,7 @@ void DcModuleCtrlProcess_SmartAllocation(void)
for
(
u8
j
=
0
;
j
<
DcModuleGroup
[
i
].
num
;
j
++
)
{
addr
=
DcModuleGroup
[
i
].
modules
[
j
].
addr
;
addr
=
DcModuleGroup
[
i
].
modules
[
j
].
addr
;
DcModuleManage_B
.
Cmd
=
0x55
;
//开机
DcModuleGroup
[
i
].
modules
[
j
].
cmd
=
0x55
;
...
...
DcPillar/Src/SmartAllocation/Drv_SmartAllocation_DcModule.c
浏览文件 @
620b36ac
差异被折叠。
点击展开。
DcPillar/Src/SmartAllocation/SmartAllocation_B_ChgRun.c
浏览文件 @
620b36ac
...
...
@@ -23,8 +23,8 @@ s32 GetChgVoltChgRun_B(void)
s32
GetChgCurrtChgRun_B
(
void
)
{
if
(
eMeterSta_Unavail
!=
MeterComm
.
Status_B
)
return
MeterValue_B
.
Current
/
100
;
//
if(eMeterSta_Unavail != MeterComm.Status_B)
//
return MeterValue_B.Current/100;
if
(
BcsMsg_B
.
Valid
)
return
abs
((
s32
)
BcsMsg_B
.
ChgCurrt
-
4000
);
return
-
1
;
...
...
@@ -97,7 +97,7 @@ void ChgProChgRun_B(StructChargeCtrl_B *pChargeCtrl)
{
if
((
GetSystemTick
()
-
CCS_SendTick
)
>
50
)
{
CCS_Send_B
(
MeterValue_B
.
Voltage
,
(
4000
-
MeterValue_B
.
Current
/
100
),
GetChgMin
(),
CcsChgEnable
);
CCS_Send_B
(
GetDcModuleVolt_B
(),
(
4000
-
GetDcModuleCurrt_B
()),
GetChgMin_B
(),
CcsChgEnable
);
CCS_SendTick
=
GetSystemTick
();
}
...
...
@@ -227,7 +227,7 @@ void ChgProChgRun_B(StructChargeCtrl_B *pChargeCtrl)
if
((
eChgVer_2011
!=
UserParam
.
ChgVer
)
&&
(
eChgVer_2011
!=
ChgVer_B
))
{
Temp
=
GetChgCurrtChgRun_B
();
if
((
0
!=
CcsChgEnable
)
&&
(
Temp
>
(
DcModuleAbility
.
MinCurrt
*
DcModuleManage_B
.
ValidNum
))
&&
(
Temp
>
GetDcModuleCurrtSet_B
()))
if
((
Temp
>
0
)
&&
(
0
!=
CcsChgEnable
)
&&
(
Temp
>
(
DcModuleAbility
.
MinCurrt
*
DcModuleManage_B
.
ValidNum
))
&&
(
Temp
>
GetDcModuleCurrtSet_B
()))
{
if
((
Temp
-
GetDcModuleCurrtSet_B
())
>
(
GetDcModuleCurrtSet_B
()
*
10
/
100
))
{
...
...
DcPillar/Src/SmartAllocation/SmartAllocation_ChgRun.c
浏览文件 @
620b36ac
...
...
@@ -104,7 +104,7 @@ void ChgProChgRun(StructChargeCtrl * pChargeCtrl)
{
if
((
GetSystemTick
()
-
CCS_SendTick
)
>
50
)
{
CCS_Send
(
MeterValue
.
Voltage
,
(
4000
-
MeterValue
.
Current
/
100
),
GetChgMin
(),
CcsChgEnable
);
CCS_Send
(
GetDcModuleVolt
(),
(
4000
-
GetDcModuleCurrt
()
),
GetChgMin
(),
CcsChgEnable
);
CCS_SendTick
=
GetSystemTick
();
}
...
...
@@ -244,7 +244,7 @@ void ChgProChgRun(StructChargeCtrl * pChargeCtrl)
{
Temp
=
GetChgCurrtChgRun
();
if
((
0
!=
CcsChgEnable
)
&&
(
Temp
>
(
DcModuleAbility
.
MinCurrt
*
DcModuleManage
.
ValidNum
))
&&
if
((
Temp
>
0
)
&&
(
0
!=
CcsChgEnable
)
&&
(
Temp
>
(
DcModuleAbility
.
MinCurrt
*
DcModuleManage
.
ValidNum
))
&&
(
Temp
>
GetDcModuleCurrtSet
()))
{
if
((
Temp
-
GetDcModuleCurrtSet
())
>
(
GetDcModuleCurrtSet
()
*
10
/
100
))
...
...
DcPillar/Src/Thread/Charge/ChgPro_ChgIdle.c
浏览文件 @
620b36ac
...
...
@@ -33,6 +33,8 @@ void ChgProChgIdle(StructChargeCtrl *pChargeCtrl)
BmsCanInit
();
osDelay
(
20
);
//TCUCurChgRecd.TCUChargeEnable = 1;
while
(
1
)
{
ChgPgnRecv
(
&
PgnRecv
);
...
...
DcPillar/Src/Thread/Lcd/LcdPro_FactoryTestTwo.c
浏览文件 @
620b36ac
...
...
@@ -239,10 +239,10 @@ void LcdProFactoryTestTwo(StructLcdCtrl *pLcdCtrl)
//DcOutNegSet(eSwSta_On);
break
;
case
BtnFactoryTestTwo_DehOff
:
//Dehumidifie
rSet(eSwSta_Off);
ACContacto
rSet
(
eSwSta_Off
);
break
;
case
BtnFactoryTestTwo_DehOn
:
//Dehumidifie
rSet(eSwSta_On);
ACContacto
rSet
(
eSwSta_On
);
break
;
case
BtnFactoryTestTwo_eLockOff
:
LockSet
(
eSwSta_Off
);
...
...
DcPillar/Src/Thread/Thd_Mult.c
浏览文件 @
620b36ac
...
...
@@ -748,12 +748,17 @@ void Thd_Mult(void const *parameter)
}
/*输入电压异常检测*/
extern
s8
getDcMoudleVoltChkCnt
(
void
);
if
(
(
5
==
getDcMoudleVoltChkCnt
())
||
(
-
5
==
getDcMoudleVoltChkCnt
()
))
if
(
5
==
getDcMoudleVoltChkCnt
(
))
{
PillarError
.
Value
.
InVolt
=
1
;
PillarError_B
.
Value
.
InVolt
=
1
;
}
else
if
(
0
==
VoltChkCnt
)
else
if
(
-
5
==
getDcMoudleVoltChkCnt
())
{
PillarError
.
Value
.
InVolt
=
1
;
PillarError_B
.
Value
.
InVolt
=
1
;
}
else
if
(
0
==
getDcMoudleVoltChkCnt
())
{
PillarError
.
Value
.
InVolt
=
0
;
PillarError_B
.
Value
.
InVolt
=
0
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论