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
e53e991e
Commit
e53e991e
authored
May 07, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加车速外发接口
parent
da3e8754
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
Data_VSpeed.c
Firmware/Source/Application/Data_VSpeed/Data_VSpeed.c
+12
-0
Data_VSpeed.h
Firmware/Source/Application/Data_VSpeed/Data_VSpeed.h
+1
-1
No files found.
Firmware/Source/Application/Data_VSpeed/Data_VSpeed.c
View file @
e53e991e
...
...
@@ -339,6 +339,18 @@ uint16_t Get_DispVechileSpeed(void)
return
Vspeed
;
}
/*外发显示车速,精度10倍,取整,舍去小数点*/
uint16_t
Get_DispVechileSpeed
(
void
)
{
uint16_t
Vspeed
=
0
;
if
(
DataVSpeedDisp
>=
1990
)
{
DataVSpeedDisp
=
1990
;
}
Vspeed
=
DataVSpeedDisp
;
return
Vspeed
;
}
Firmware/Source/Application/Data_VSpeed/Data_VSpeed.h
View file @
e53e991e
...
...
@@ -11,7 +11,7 @@
#define DATA_VSPEED_INC_STEP 2 //速度增加时慢加速速度变化步长
#define DATA_VSPEED_DEC_STEP 6 //方向改变时急减速速度变化步长
#define DATA_VSPEED_APPR_SPEED_MIN 2 //最小逼近速度
#define DATA_VSPEED_HYSTERESIS 1
0
//回差
#define DATA_VSPEED_HYSTERESIS 1
5
//回差
/*** 控制结构 ***/
typedef
struct
...
...
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