Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
bc8dbe8a
Commit
bc8dbe8a
authored
Sep 07, 2012
by
Lorenz Meier
Browse files
Start emergency only once
parent
2eeb79f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/uas/UAS.cc
View file @
bc8dbe8a
...
...
@@ -467,7 +467,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
audiostring
+=
modeAudio
+
stateAudio
+
navModeAudio
;
}
if
((
int
)
state
.
system_status
==
(
int
)
MAV_STATE_CRITICAL
||
state
.
system_status
==
(
int
)
MAV_STATE_EMERGENCY
)
if
(
statechanged
&&
((
int
)
state
.
system_status
==
(
int
)
MAV_STATE_CRITICAL
||
state
.
system_status
==
(
int
)
MAV_STATE_EMERGENCY
)
)
{
GAudioOutput
::
instance
()
->
say
(
QString
(
"emergency for system %1"
).
arg
(
this
->
getUASID
()));
QTimer
::
singleShot
(
3000
,
GAudioOutput
::
instance
(),
SLOT
(
startEmergency
()));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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