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
8881fd25
Commit
8881fd25
authored
Apr 01, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:40658删除雷达报警音,立即删除
parent
c952b065
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
Popups.c
le19源码/Source/Application/Alarm/Popups.c
+32
-1
No files found.
le19源码/Source/Application/Alarm/Popups.c
View file @
8881fd25
...
@@ -507,6 +507,8 @@ void Popups_Polling(void)
...
@@ -507,6 +507,8 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_Radar_1HZ
);
Popup_Request
(
POPUP_Radar_1HZ
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_4HZ
);
}
}
else
if
(
RADAR_SOUND
==
POPUP_Radar_2HZ
)
else
if
(
RADAR_SOUND
==
POPUP_Radar_2HZ
)
{
{
...
@@ -516,6 +518,8 @@ void Popups_Polling(void)
...
@@ -516,6 +518,8 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_Radar_2HZ
);
Popup_Request
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_1HZ
);
Popup_Clear
(
POPUP_Radar_4HZ
);
}
}
else
if
(
RADAR_SOUND
==
POPUP_Radar_4HZ
)
else
if
(
RADAR_SOUND
==
POPUP_Radar_4HZ
)
{
{
...
@@ -525,6 +529,8 @@ void Popups_Polling(void)
...
@@ -525,6 +529,8 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_Radar_4HZ
);
Popup_Request
(
POPUP_Radar_4HZ
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_1HZ
);
Popup_Clear
(
POPUP_Radar_2HZ
);
}
}
else
if
(
RADAR_SOUND
==
POPUP_Radar_Changming
)
else
if
(
RADAR_SOUND
==
POPUP_Radar_Changming
)
{
{
...
@@ -533,15 +539,20 @@ void Popups_Polling(void)
...
@@ -533,15 +539,20 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_4HZ
);
PopupAndSound_Delete
(
POPUP_Radar_4HZ
);
PopupAndSound_Delete
(
POPUP_Radar_1HZ
);
PopupAndSound_Delete
(
POPUP_Radar_1HZ
);
Popup_Request
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_1HZ
);
Popup_Clear
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_4HZ
);
}
}
else
else
{
{
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
PopupAndSound_Delete
(
POPUP_Radar_4HZ
);
PopupAndSound_Delete
(
POPUP_Radar_4HZ
);
PopupAndSound_Delete
(
POPUP_Radar_1HZ
);
PopupAndSound_Delete
(
POPUP_Radar_1HZ
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_1HZ
);
Popup_Clear
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_4HZ
);
}
}
}
}
else
else
...
@@ -550,7 +561,10 @@ void Popups_Polling(void)
...
@@ -550,7 +561,10 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_4HZ
);
PopupAndSound_Delete
(
POPUP_Radar_4HZ
);
PopupAndSound_Delete
(
POPUP_Radar_1HZ
);
PopupAndSound_Delete
(
POPUP_Radar_1HZ
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_1HZ
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_4HZ
);
}
}
}
}
else
else
...
@@ -559,7 +573,10 @@ void Popups_Polling(void)
...
@@ -559,7 +573,10 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_4HZ
);
PopupAndSound_Delete
(
POPUP_Radar_4HZ
);
PopupAndSound_Delete
(
POPUP_Radar_1HZ
);
PopupAndSound_Delete
(
POPUP_Radar_1HZ
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_1HZ
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_4HZ
);
}
}
}
}
else
if
(
Val_EOL_F102_RadarType
()
==
3
)
else
if
(
Val_EOL_F102_RadarType
()
==
3
)
...
@@ -575,6 +592,7 @@ void Popups_Polling(void)
...
@@ -575,6 +592,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_Radar_2HZ
);
Popup_Request
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_4HZ
);
break
;
break
;
case
2
:
//4hz
case
2
:
//4hz
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
...
@@ -583,6 +601,7 @@ void Popups_Polling(void)
...
@@ -583,6 +601,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Request
(
POPUP_Radar_4HZ
);
Popup_Request
(
POPUP_Radar_4HZ
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_2HZ
);
break
;
break
;
case
3
:
//长鸣
case
3
:
//长鸣
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
...
@@ -590,6 +609,8 @@ void Popups_Polling(void)
...
@@ -590,6 +609,8 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_RADAR_CHECK_OK
);
PopupAndSound_Delete
(
POPUP_RADAR_CHECK_OK
);
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Request
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_4HZ
);
break
;
break
;
case
4
:
//长鸣0.5s
case
4
:
//长鸣0.5s
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
...
@@ -598,6 +619,8 @@ void Popups_Polling(void)
...
@@ -598,6 +619,8 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Request
(
POPUP_RADAR_CHECK_OK
);
Popup_Request
(
POPUP_RADAR_CHECK_OK
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_4HZ
);
break
;
break
;
case
5
:
//雷达故障 长鸣2s
case
5
:
//雷达故障 长鸣2s
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
...
@@ -606,6 +629,8 @@ void Popups_Polling(void)
...
@@ -606,6 +629,8 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Request
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_4HZ
);
break
;
break
;
case
6
:
//雷达数据超时 长鸣2s
case
6
:
//雷达数据超时 长鸣2s
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
...
@@ -614,6 +639,8 @@ void Popups_Polling(void)
...
@@ -614,6 +639,8 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Request
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_4HZ
);
break
;
break
;
default:
//0 不报警
default:
//0 不报警
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
...
@@ -622,6 +649,8 @@ void Popups_Polling(void)
...
@@ -622,6 +649,8 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_4HZ
);
break
;
break
;
}
}
}
}
...
@@ -633,6 +662,8 @@ void Popups_Polling(void)
...
@@ -633,6 +662,8 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_4HZ
);
}
}
}
}
else
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