Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LE19
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
时昊
LE19
Commits
fa19fc03
Commit
fa19fc03
authored
Mar 25, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加超速报警标志位
parent
27207d34
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
Popups.c
le19源码/Source/Application/Alarm/Popups.c
+4
-1
Gauge_Display.c
le19源码/Source/Application/Display/Gauge_Display.c
+8
-10
No files found.
le19源码/Source/Application/Alarm/Popups.c
View file @
fa19fc03
...
...
@@ -12,7 +12,7 @@
uint8_t
OverSpeed
;
uint8_t
Over_Speed_Status
;
uint8_t
OIL_Low_popup_flag
;
uint8_t
RADAR_SOUND
;
/*雷达声音*/
...
...
@@ -448,6 +448,7 @@ void Popups_Polling(void)
if
(
m_Vspeed
>
Over_Speed_Config
)
{
Popup_Request
(
POPUP_Over_Speed
);
Over_Speed_Status
=
1
;
}
if
(
Over_Speed_Config
>=
30
)
...
...
@@ -455,12 +456,14 @@ void Popups_Polling(void)
if
(
m_Vspeed
<=
(
Over_Speed_Config
-
30
))
{
PopupAndSound_Delete
(
POPUP_Over_Speed
);
Over_Speed_Status
=
0
;
}
}
}
else
{
PopupAndSound_Delete
(
POPUP_Over_Speed
);
Over_Speed_Status
=
0
;
}
/*雷达距离声音提示*/
...
...
le19源码/Source/Application/Display/Gauge_Display.c
View file @
fa19fc03
...
...
@@ -12,6 +12,7 @@
#include "Common_Interface.h"
#include "Telltales_user.h"
extern
uint8_t
Over_Speed_Status
;
RTC_Time_st_t
RTCTimeCurrent
;
extern
uint32_t
Factory_ClearOdo_Display_Flag
;
BattCurr_st_t
BattCurr
;
...
...
@@ -104,18 +105,15 @@ void Gauge_VSpeed_Display(void)
{
if
(
Gauge_VSpeed_Display_Flag
==
1
)
{
if
(
Over_Speed_
Config
>=
30
)
if
(
Over_Speed_
Status
==
1
)
{
if
(
Common_Get_Disp_V_Speed
(
)
<=
(
Over_Speed_Config
-
30
))
{
SEG_SET_VSpeed_NUM
(
1u
,
VSpeedDisplayValue
/
10
);
Gauge_VSpeed_Display_Flag
=
0
;
}
else
{
SEG_SET_VSpeed_NUM
(
FLASH_SYNC_1Hz
,
VSpeedDisplayValue
/
10
);
}
SEG_SET_VSpeed_NUM
(
FLASH_SYNC_1Hz
,
VSpeedDisplayValue
/
10
);
}
else
{
SEG_SET_VSpeed_NUM
(
1u
,
VSpeedDisplayValue
/
10
);
Gauge_VSpeed_Display_Flag
=
0
;
}
}
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