Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
bf24c047
Commit
bf24c047
authored
Sep 02, 2024
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:56322 【豪进750TFT】【车、转速】转速走格不流畅,车、转速显示异常
parent
5e66304c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
44 deletions
+40
-44
Data_ESpeed.c
Firmware/Source/Application/Data_ESpeed.c
+20
-20
Data_VSpeed.c
Firmware/Source/Application/Data_VSpeed.c
+18
-8
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+2
-16
No files found.
Firmware/Source/Application/Data_ESpeed.c
View file @
bf24c047
...
...
@@ -289,26 +289,26 @@ void Data_Engine_Speed_Processing_Service ( void )
}
}
DataESpeedDisp
=
DataESPeedDamping
.
Speed
;
//
//
第4步 增加回差
//
if (DataESpeedDisp <= 80)
//
{
//
DataESpeedDisp = DataESPeedDamping.Speed;
//
}
//
else
//
{
//
if ( DataESpeedDisp < DataESPeedDamping.Speed )
//
{
//
DataESpeedDisp = DataESPeedDamping.Speed;
//
}
//
else
//
{
//
Delta = DataESpeedDisp - DataESPeedDamping.Speed;
//
if ( Delta >= DATA_ESPEED_HYSTERESIS )
//
{
//
DataESpeedDisp = DataESPeedDamping.Speed;
//
}
//
}
//
}
//第4步 增加回差
if
(
DataESpeedDisp
<=
80
)
{
DataESpeedDisp
=
DataESPeedDamping
.
Speed
;
}
else
{
if
(
DataESpeedDisp
<
DataESPeedDamping
.
Speed
)
{
DataESpeedDisp
=
DataESPeedDamping
.
Speed
;
}
else
{
Delta
=
DataESpeedDisp
-
DataESPeedDamping
.
Speed
;
if
(
Delta
>=
DATA_ESPEED_HYSTERESIS
)
{
DataESpeedDisp
=
DataESPeedDamping
.
Speed
;
}
}
}
}
uint8_t
Get_EngineValid
(
void
)
...
...
Firmware/Source/Application/Data_VSpeed.c
View file @
bf24c047
...
...
@@ -321,12 +321,22 @@ void Data_Vehicle_Speed_Processing_Service(void)
}
// 第3步:生成显示车速
DataVSpeedHysteresis
=
DataVSPeedDamping
.
Speed
;
if
((
DataVSPeedDamping
.
Speed
>=
DataVSpeedHysteresis
)
||
(
DataVSPeedDamping
.
Speed
<
DATA_VSPEED_HYSTERESIS
))
{
DataVSpeedHysteresis
=
DataVSPeedDamping
.
Speed
;
}
else
{
if
(
DataVSpeedHysteresis
-
DataVSPeedDamping
.
Speed
>=
DATA_VSPEED_HYSTERESIS
)
{
DataVSpeedHysteresis
=
DataVSPeedDamping
.
Speed
;
}
}
VSpeedCal
=
(
uint32_t
)
DataVSpeedHysteresis
;
if
(
DataVSpeedValid
)
{
//
if ( DataVSpeedValid )
//
{
VSpeedCal
*=
105
;
VSpeedCal
/=
100
;
// if((VSpeedCal % 10) >= 5)
...
...
@@ -334,11 +344,11 @@ void Data_Vehicle_Speed_Processing_Service(void)
// VSpeedCal += 5; /* 四舍五入 */
// }
DataVSpeedDisp
=
(
uint16_t
)
VSpeedCal
;
}
else
{
DataVSpeedDisp
=
0
;
}
//
}
//
else
//
{
//
DataVSpeedDisp = 0;
//
}
}
/*车速有效位:有效=1,无效=0*/
...
...
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
bf24c047
...
...
@@ -4217,23 +4217,9 @@ void AMT630H_GUI_BACKGRAND()
VechileSpeed
=
Get_DispVechileSpeed
()
/
10
;
}
if
(
Get_VechileSpeedValid
()
==
1
)
{
AMT630H_GUI_VSpeed
(
VechileSpeed
);
}
else
{
AMT630H_GUI_VSpeed
(
0
);
}
AMT630H_GUI_VSpeed
(
VechileSpeed
);
/*转速*/
if
(
Get_EngineValid
()
==
1
)
{
AMT630H_GUI_ESpeed
(
Get_DispEngineSpeed
());
}
else
{
AMT630H_GUI_ESpeed
(
0
);
}
AMT630H_GUI_ESpeed
(
Get_DispEngineSpeed
());
}
...
...
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