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
6a8a0949
Commit
6a8a0949
authored
Mar 10, 2015
by
Bryant
Browse files
Be sure to specify the system for audio alerts.
parent
368594b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/uas/UAS.cc
View file @
6a8a0949
...
@@ -617,7 +617,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
...
@@ -617,7 +617,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
/* warn only every 12 seconds */
/* warn only every 12 seconds */
&&
(
QGC
::
groundTimeUsecs
()
-
lastVoltageWarning
)
>
12000000
)
&&
(
QGC
::
groundTimeUsecs
()
-
lastVoltageWarning
)
>
12000000
)
{
{
GAudioOutput
::
instance
()
->
say
(
QString
(
"
v
oltage warning
: %1 volts"
).
arg
(
lpVoltage
,
0
,
'f'
,
1
,
QChar
(
' '
)));
GAudioOutput
::
instance
()
->
say
(
QString
(
"
V
oltage warning
for system %1: %2 volts"
).
arg
(
getUASID
()
).
arg
(
lpVoltage
,
0
,
'f'
,
1
,
QChar
(
' '
)));
lastVoltageWarning
=
QGC
::
groundTimeUsecs
();
lastVoltageWarning
=
QGC
::
groundTimeUsecs
();
lastTickVoltageValue
=
tickLowpassVoltage
;
lastTickVoltageValue
=
tickLowpassVoltage
;
}
}
...
...
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