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
7ff1da3e
Commit
7ff1da3e
authored
Sep 09, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:里程累积放在100ms中断里执行
parent
10a64715
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
CommonInterface.c
...ware/Source/Application/CommonInterface/CommonInterface.c
+1
-1
Services_Mileage_User.c
Firmware/Source/Component/Mileage/Services_Mileage_User.c
+1
-1
Sys_Task_List.c
Firmware/Source/System/Sys_Task_List.c
+6
-0
No files found.
Firmware/Source/Application/CommonInterface/CommonInterface.c
View file @
7ff1da3e
...
...
@@ -45,7 +45,7 @@ uint16_t Common_Get_Act_V_Speed(void)
}
uint16_t
Common_Get_Act_V_Speed_ODO
(
void
)
{
return
Act_V_Speed
*
101
/
100
;
return
Act_V_Speed
;
//
* 101 / 100;
}
uint16_t
Common_Get_Disp_V_Speed
(
void
)
{
...
...
Firmware/Source/Component/Mileage/Services_Mileage_User.c
View file @
7ff1da3e
...
...
@@ -220,7 +220,7 @@ uint32_t Get_MileageInit_Status(void)
void
Services_Mileage_Callback
(
void
)
{
Data_Mileage_ISR
();
//
Data_Mileage_ISR();
Data_ODO_Processing
();
Data_Trip_Processing
();
//Trip_Clear_Km_Service();
...
...
Firmware/Source/System/Sys_Task_List.c
View file @
7ff1da3e
...
...
@@ -131,9 +131,15 @@ void Sys_100ms_Tasks(void)
void
Sys_Exact_50us_Tasks
(
void
)
{
static
uint32_t
task_1ms
=
0u
;
static
uint32_t
task_100ms
=
0u
;
Can_Write_Fun
(
&
CAN_CH0_CanMsgTxOp
,
50u
);
DoCAN_Timer_Update
(
50u
);
GenDelay_Tick
();
task_100ms
++
;
if
(
task_100ms
>=
2000
)
{
Data_Mileage_ISR
();
}
task_1ms
++
;
if
(
task_1ms
>=
20U
)
{
...
...
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