Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TY
TianYing_ty100
Commits
787e1778
Commit
787e1778
authored
Aug 17, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:更改水温上电和无效到有效情况立即指示到位
parent
c0c740ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
29 deletions
+45
-29
Data_Coolant.c
Firmware/Source/Application/Data_Coolant/Data_Coolant.c
+45
-29
No files found.
Firmware/Source/Application/Data_Coolant/Data_Coolant.c
View file @
787e1778
...
...
@@ -286,14 +286,16 @@ void Data_Coolant_Temp_Display ( void )
DataCoolantTemp_Dis
.
u8_DownFlashtimer
=
DataCoolantTemp_Dis
.
u8_Downtimer
;
DataCoolantTemp_Dis
.
u8_CurSeg
=
0
;
DataCoolantTemp_Dis
.
u8_DestSeg
=
0
;
DataCoolantTemp_Dis
.
u8_Flg
=
0
;
DataCoolantTemp_Dis
.
u8_Flg
=
0
;
u32ColCurNum
=
DataCoolantTemp
.
Value
*
100
;
DataCoolantTemp_Dis
.
u8_Holdtimer
=
CoolantFlashtimer
;
}
else
{
DataCoolantTemp_Dis
.
Dis_Valid
=
1
;
if
(
DataCoolantTemp_Dis
.
u8_Flg
==
2
)
{
DataCoolantTemp_Dis
.
u8_Flg
=
1
;
DataCoolantTemp_Dis
.
u8_Flg
=
1
;
DataCoolantTemp_Dis
.
u8_UpFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_DownFlashtimer
=
0
;
}
...
...
@@ -303,6 +305,8 @@ void Data_Coolant_Temp_Display ( void )
DataCoolantTemp_Dis
.
u8_CurSeg
=
DataCoolantTemp_Dis
.
u8_DestSeg
;
DataCoolantTemp_Dis
.
u8_UpFlashtimer
=
DataCoolantTemp_Dis
.
u8_Uptimer
;
DataCoolantTemp_Dis
.
u8_DownFlashtimer
=
DataCoolantTemp_Dis
.
u8_Downtimer
;
u32ColCurNum
=
DataCoolantTemp
.
Value
*
100
;
DataCoolantTemp_Dis
.
u8_Holdtimer
=
CoolantFlashtimer
;
}
else
{
...
...
@@ -311,44 +315,56 @@ void Data_Coolant_Temp_Display ( void )
}
}
if
(
DataCoolantTemp_Dis
.
u8_CurSeg
>
DataCoolantTemp_Dis
.
u8_DestSeg
)
if
(
Common_GetIgnOnTime
()
>=
3030
)
{
u32ColCurNum
=
Data_Coolant_Cal_Num
(
DataCoolantTemp_Dis
.
u8_CurSeg
,
0
,
(
DataCoolantTemp_Dis
.
u8_Downtimer
-
DataCoolantTemp_Dis
.
u8_DownFlashtimer
),
u32ColCurNum
,
DataCoolantTemp
.
Value
*
100
);
DataCoolantTemp_Dis
.
u8_UpFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_Holdtimer
=
0
;
DataCoolantTemp_Dis
.
u8_DownFlashtimer
++
;
if
(
DataCoolantTemp_Dis
.
u8_DownFlashtimer
>=
DataCoolantTemp_Dis
.
u8_Downtimer
)
if
(
DataCoolantTemp_Dis
.
u8_CurSeg
>
DataCoolantTemp_Dis
.
u8_DestSeg
)
{
u32ColCurNum
=
Data_Coolant_Cal_Num
(
DataCoolantTemp_Dis
.
u8_CurSeg
,
0
,
(
DataCoolantTemp_Dis
.
u8_Downtimer
-
DataCoolantTemp_Dis
.
u8_DownFlashtimer
),
u32ColCurNum
,
DataCoolantTemp
.
Value
*
100
);
DataCoolantTemp_Dis
.
u8_UpFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_Holdtimer
=
0
;
DataCoolantTemp_Dis
.
u8_DownFlashtimer
++
;
if
(
DataCoolantTemp_Dis
.
u8_DownFlashtimer
>=
DataCoolantTemp_Dis
.
u8_Downtimer
)
{
DataCoolantTemp_Dis
.
u8_DownFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_CurSeg
--
;
}
}
else
if
(
DataCoolantTemp_Dis
.
u8_CurSeg
<
DataCoolantTemp_Dis
.
u8_DestSeg
)
{
u32ColCurNum
=
Data_Coolant_Cal_Num
(
DataCoolantTemp_Dis
.
u8_CurSeg
,
1
,
(
DataCoolantTemp_Dis
.
u8_Uptimer
-
DataCoolantTemp_Dis
.
u8_UpFlashtimer
),
u32ColCurNum
,
DataCoolantTemp
.
Value
*
100
);
DataCoolantTemp_Dis
.
u8_DownFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_CurSeg
--
;
DataCoolantTemp_Dis
.
u8_Holdtimer
=
0
;
DataCoolantTemp_Dis
.
u8_UpFlashtimer
++
;
if
(
DataCoolantTemp_Dis
.
u8_UpFlashtimer
>=
DataCoolantTemp_Dis
.
u8_Uptimer
)
{
DataCoolantTemp_Dis
.
u8_UpFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_CurSeg
++
;
}
}
}
else
if
(
DataCoolantTemp_Dis
.
u8_CurSeg
<
DataCoolantTemp_Dis
.
u8_DestSeg
)
{
u32ColCurNum
=
Data_Coolant_Cal_Num
(
DataCoolantTemp_Dis
.
u8_CurSeg
,
1
,
(
DataCoolantTemp_Dis
.
u8_Uptimer
-
DataCoolantTemp_Dis
.
u8_UpFlashtimer
),
u32ColCurNum
,
DataCoolantTemp
.
Value
*
100
);
DataCoolantTemp_Dis
.
u8_DownFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_Holdtimer
=
0
;
DataCoolantTemp_Dis
.
u8_UpFlashtimer
++
;
if
(
DataCoolantTemp_Dis
.
u8_UpFlashtimer
>=
DataCoolantTemp_Dis
.
u8_Uptimer
)
else
{
DataCoolantTemp_Dis
.
u8_DownFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_UpFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_CurSeg
++
;
DataCoolantTemp_Dis
.
u8_Holdtimer
++
;
if
(
DataCoolantTemp_Dis
.
u8_Holdtimer
>=
CoolantFlashtimer
)
{
DataCoolantTemp_Dis
.
u8_Holdtimer
=
CoolantFlashtimer
;
}
/*目标格和当前格一致时,数显如何处理*/
/*5S后更新为目标数值*/
u32ColCurNum
=
Data_Coolant_Cal_Num
(
DataCoolantTemp_Dis
.
u8_CurSeg
,
2
,
(
CoolantFlashtimer
-
DataCoolantTemp_Dis
.
u8_Holdtimer
),
u32ColCurNum
,
DataCoolantTemp
.
Value
*
100
);
}
}
else
{
DataCoolantTemp_Dis
.
u8_DownFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_UpFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_Holdtimer
++
;
if
(
DataCoolantTemp_Dis
.
u8_Holdtimer
>=
CoolantFlashtimer
)
{
DataCoolantTemp_Dis
.
u8_Holdtimer
=
CoolantFlashtimer
;
}
/*目标格和当前格一致时,数显如何处理*/
/*5S后更新为目标数值*/
u32ColCurNum
=
Data_Coolant_Cal_Num
(
DataCoolantTemp_Dis
.
u8_CurSeg
,
2
,
(
CoolantFlashtimer
-
DataCoolantTemp_Dis
.
u8_Holdtimer
),
u32ColCurNum
,
DataCoolantTemp
.
Value
*
100
);
u32ColCurNum
=
DataCoolantTemp
.
Value
*
100
;
}
// warning
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment