Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Valentin Platzgummer
qgroundcontrol
Commits
5ceb7b27
Commit
5ceb7b27
authored
Mar 10, 2015
by
Susurrus
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1347 from Susurrus/audio_imps
Audio improvements
parents
ed9c6f45
8fad0044
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
UAS.cc
src/uas/UAS.cc
+4
-4
No files found.
src/uas/UAS.cc
View file @
5ceb7b27
...
...
@@ -561,7 +561,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
if
(
statechanged
&&
((
int
)
state
.
system_status
==
(
int
)
MAV_STATE_CRITICAL
||
state
.
system_status
==
(
int
)
MAV_STATE_EMERGENCY
))
{
GAudioOutput
::
instance
()
->
say
(
QString
(
"
e
mergency for system %1"
).
arg
(
this
->
getUASID
()),
GAudioOutput
::
AUDIO_SEVERITY_EMERGENCY
);
GAudioOutput
::
instance
()
->
say
(
QString
(
"
E
mergency for system %1"
).
arg
(
this
->
getUASID
()),
GAudioOutput
::
AUDIO_SEVERITY_EMERGENCY
);
QTimer
::
singleShot
(
3000
,
GAudioOutput
::
instance
(),
SLOT
(
startEmergency
()));
}
else
if
(
modechanged
||
statechanged
)
...
...
@@ -617,7 +617,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
/* warn only every 12 seconds */
&&
(
QGC
::
groundTimeUsecs
()
-
lastVoltageWarning
)
>
12000000
)
{
GAudioOutput
::
instance
()
->
say
(
QString
(
"
voltage warning: %1 volts"
).
arg
(
lpVoltage
,
0
,
'f'
,
1
,
QChar
(
' '
)));
GAudioOutput
::
instance
()
->
say
(
QString
(
"
Voltage warning for system %1: %2 volts"
).
arg
(
getUASID
()
).
arg
(
lpVoltage
,
0
,
'f'
,
1
,
QChar
(
' '
)));
lastVoltageWarning
=
QGC
::
groundTimeUsecs
();
lastTickVoltageValue
=
tickLowpassVoltage
;
}
...
...
@@ -1209,7 +1209,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
mavlink_mission_item_reached_t
wpr
;
mavlink_msg_mission_item_reached_decode
(
&
message
,
&
wpr
);
waypointManager
.
handleWaypointReached
(
message
.
sysid
,
message
.
compid
,
&
wpr
);
QString
text
=
QString
(
"System %1 reached waypoint %2"
).
arg
(
getUAS
Name
()).
arg
(
wpr
.
seq
);
QString
text
=
QString
(
"System %1 reached waypoint %2"
).
arg
(
getUAS
ID
()).
arg
(
wpr
.
seq
);
GAudioOutput
::
instance
()
->
say
(
text
);
emit
textMessageReceived
(
message
.
sysid
,
message
.
compid
,
MAV_SEVERITY_INFO
,
text
);
}
...
...
@@ -3360,7 +3360,7 @@ void UAS::startLowBattAlarm()
{
if
(
!
lowBattAlarm
)
{
GAudioOutput
::
instance
()
->
alert
(
tr
(
"
system %1 has low battery"
).
arg
(
getUASName
()));
GAudioOutput
::
instance
()
->
alert
(
tr
(
"
System %1 has low battery"
).
arg
(
getUASID
()));
QTimer
::
singleShot
(
3000
,
GAudioOutput
::
instance
(),
SLOT
(
startEmergency
()));
lowBattAlarm
=
true
;
}
...
...
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