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
06a627fb
Commit
06a627fb
authored
Jul 05, 2024
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:转速修改最大值
parent
32274280
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Data_ESpeed.c
Firmware/Source/Application/Data_ESpeed.c
+8
-8
No files found.
Firmware/Source/Application/Data_ESpeed.c
View file @
06a627fb
...
...
@@ -64,8 +64,8 @@ void Data_Engine_Speed_Processing_Service ( void )
DataESpeedValid
=
1
;
ESpeed
=
4
;
//Get_CAN_CH0_ID_101_Sig_ECU_Engine_Speed();
ESpeed
/=
4
;
if
(
ESpeed
>
1
1
000
)
ESpeed
=
1
1
000
;
if
(
ESpeed
>
1
2
000
)
ESpeed
=
1
2
000
;
DataESpeedActual
=
ESpeed
;
}
else
...
...
@@ -87,8 +87,8 @@ void Data_Engine_Speed_Processing_Service ( void )
DataESpeedSampler
.
Cnt
=
0
;
ESpeed
=
DataESpeedSampler
.
Buffer
[
3
];
ESpeed
/=
4
;
if
(
ESpeed
>
1
1
000
)
ESpeed
=
1
1
000
;
if
(
ESpeed
>
1
2
000
)
ESpeed
=
1
2
000
;
DataESpeedActual
=
ESpeed
;
}
}
...
...
@@ -221,8 +221,8 @@ void Data_Engine_Speed_Processing_Service ( void )
else
{
DataESPeedDamping
.
Speed
+=
Delta
;
if
(
DataESPeedDamping
.
Speed
>
1
1
000
)
DataESPeedDamping
.
Speed
=
1
1
000
;
if
(
DataESPeedDamping
.
Speed
>
1
2
000
)
DataESPeedDamping
.
Speed
=
1
2
000
;
}
}
else
//显示值正在向实际值减小,则维持当前方向调节增加速度
...
...
@@ -270,8 +270,8 @@ void Data_Engine_Speed_Processing_Service ( void )
else
{
DataESPeedDamping
.
Speed
+=
Delta
;
if
(
DataESPeedDamping
.
Speed
>
1
1
000
)
DataESPeedDamping
.
Speed
=
1
1
000
;
if
(
DataESPeedDamping
.
Speed
>
1
2
000
)
DataESPeedDamping
.
Speed
=
1
2
000
;
}
}
else
//显示值当前是减小方向
...
...
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