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
65d5985d
Commit
65d5985d
authored
Mar 05, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All speed moved to Vehicle
parent
9705cd4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
UAS.cc
src/uas/UAS.cc
+0
-31
No files found.
src/uas/UAS.cc
View file @
65d5985d
...
...
@@ -279,47 +279,16 @@ void UAS::receiveMessage(mavlink_message_t message)
emit
valueChanged
(
uasId
,
name
.
arg
(
"custom_mode"
),
"bits"
,
state
.
custom_mode
,
time
);
emit
valueChanged
(
uasId
,
name
.
arg
(
"system_status"
),
"-"
,
state
.
system_status
,
time
);
QString
audiostring
=
QString
(
"System %1"
).
arg
(
uasId
);
QString
stateAudio
=
""
;
QString
navModeAudio
=
""
;
bool
statechanged
=
false
;
if
((
state
.
system_status
!=
this
->
status
)
&&
state
.
system_status
!=
MAV_STATE_UNINIT
)
{
statechanged
=
true
;
this
->
status
=
state
.
system_status
;
getStatusForCode
((
int
)
state
.
system_status
,
uasState
,
stateDescription
);
emit
statusChanged
(
this
,
uasState
,
stateDescription
);
emit
statusChanged
(
this
->
status
);
// Adjust for better audio
if
(
uasState
==
QString
(
"STANDBY"
))
uasState
=
QString
(
"standing by"
);
if
(
uasState
==
QString
(
"EMERGENCY"
))
uasState
=
QString
(
"emergency condition"
);
if
(
uasState
==
QString
(
"CRITICAL"
))
uasState
=
QString
(
"critical condition"
);
if
(
uasState
==
QString
(
"SHUTDOWN"
))
uasState
=
QString
(
"shutting down"
);
stateAudio
=
uasState
;
}
// We got the mode
receivedMode
=
true
;
// AUDIO
if
(
statechanged
)
{
// Output the one message
audiostring
+=
stateAudio
;
}
if
(
statechanged
&&
((
int
)
state
.
system_status
==
(
int
)
MAV_STATE_CRITICAL
||
state
.
system_status
==
(
int
)
MAV_STATE_EMERGENCY
))
{
_say
(
QString
(
"Emergency for system %1"
).
arg
(
this
->
getUASID
()),
GAudioOutput
::
AUDIO_SEVERITY_EMERGENCY
);
QTimer
::
singleShot
(
3000
,
qgcApp
()
->
toolbox
()
->
audioOutput
(),
SLOT
(
startEmergency
()));
}
else
if
(
statechanged
)
{
_say
(
audiostring
.
toLower
());
}
}
break
;
...
...
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