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
d28aa046
Commit
d28aa046
authored
Sep 05, 2012
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor polishing on error messages and fixed link outage time announcement
parent
d19ac386
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
UAS.cc
src/uas/UAS.cc
+7
-1
No files found.
src/uas/UAS.cc
View file @
d28aa046
...
...
@@ -204,11 +204,16 @@ void UAS::updateState()
emit
heartbeatTimeout
(
heartbeatInterval
);
emit
heartbeatTimeout
();
connectionLost
=
true
;
connectionLossTime
=
heartbeatInterval
;
QString
audiostring
=
QString
(
"Link lost to system %1"
).
arg
(
this
->
getUASID
());
GAudioOutput
::
instance
()
->
say
(
audiostring
.
toLower
());
}
// Update connection loss time on each iteration
if
(
connectionLost
&&
(
heartbeatInterval
>
timeoutIntervalHeartbeat
))
{
connectionLossTime
=
heartbeatInterval
;
}
// Connection gained
if
(
connectionLost
&&
(
heartbeatInterval
<
timeoutIntervalHeartbeat
))
{
...
...
@@ -1182,6 +1187,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
case
MAVLINK_MSG_ID_NAMED_VALUE_FLOAT
:
case
MAVLINK_MSG_ID_NAMED_VALUE_INT
:
case
MAVLINK_MSG_ID_MANUAL_CONTROL
:
case
MAVLINK_MSG_ID_HIGHRES_IMU
:
break
;
default:
{
...
...
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