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
f39283e7
Commit
f39283e7
authored
Oct 21, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:里程最大值公英制统一
parent
bb405dff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
Services_Mileage_User.c
Firmware/Source/Component/Mileage/Services_Mileage_User.c
+7
-3
No files found.
Firmware/Source/Component/Mileage/Services_Mileage_User.c
View file @
f39283e7
...
...
@@ -64,7 +64,7 @@ void Data_User_Mileage_KL30Init(void)
{
ODOInit
.
Offset
=
TempBuf
[
1
];
}
ODOInit
.
MaxValue
=
1999990
;
ODOInit
.
MaxValue
=
3218672
;
//英里199999
Data_ODO_KL30_Init
(
DataODOBuf
,
&
ODOInit
,
Func
.
EEPromWrite_Cbk
);
(
void
)
Data_User_EEPROM_Read
(
EM_TRIP_BLOCK
,
TempBuf
+
3
,
2
);
...
...
@@ -85,7 +85,7 @@ void Data_User_Mileage_KL30Init(void)
TripInit
[
EM_TRIP_A
].
Offset
=
TempBuf
[
4
];
}
//TripInit[EM_TRIP_A].Offset = TempBuf[4];
TripInit
[
EM_TRIP_A
].
MaxValue
=
9999
;
/*
最大999.9km 进行复位 */
TripInit
[
EM_TRIP_A
].
MaxValue
=
16091
;
/* 英里
最大999.9km 进行复位 */
TripInit
[
EM_TRIP_A
].
IsRestart
=
1u
;
//TripInit[EM_TRIP_B].Stamp = 0xFFFFFFFFu;
...
...
@@ -297,7 +297,7 @@ void Services_Mileage_Callback(void)
//Data_Mileage_ISR();
Data_ODO_Processing
();
Data_Trip_Processing
();
//
Trip_Clear_Km_Service();
Trip_Clear_Km_Service
();
}
/**
...
...
@@ -319,6 +319,10 @@ uint32_t Get_ODO_Value(void)
{
ODO
=
Data_ODO_Read
();
}
if
(
ODO
>=
199999
)
{
ODO
=
199999
;
}
return
ODO
;
}
...
...
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