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
54b76f93
Commit
54b76f93
authored
Feb 16, 2015
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing from NAV_DLL_N to COM_DL_LOSS_T for determining data link loss (telemetry).
parent
b35962d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
SafetyComponent.cc
src/AutoPilotPlugins/PX4/SafetyComponent.cc
+14
-14
SafetyComponent.qml
src/AutoPilotPlugins/PX4/SafetyComponent.qml
+1
-1
No files found.
src/AutoPilotPlugins/PX4/SafetyComponent.cc
View file @
54b76f93
/*=====================================================================
QGroundControl Open Source Ground Control Station
(c) 2009 - 2014 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
This file is part of the QGROUNDCONTROL project
QGROUNDCONTROL is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
QGROUNDCONTROL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with QGROUNDCONTROL. If not, see <http://www.gnu.org/licenses/>.
======================================================================*/
/// @file
...
...
@@ -67,7 +67,7 @@ bool SafetyComponent::setupComplete(void) const
QString
SafetyComponent
::
setupStateDescription
(
void
)
const
{
const
char
*
stateDescription
;
if
(
requiresSetup
())
{
stateDescription
=
"Requires setup"
;
}
else
{
...
...
@@ -84,7 +84,7 @@ const char** SafetyComponent::setupCompleteChangedTriggerList(void) const
QStringList
SafetyComponent
::
paramFilterList
(
void
)
const
{
QStringList
list
;
return
list
;
}
...
...
@@ -92,11 +92,11 @@ QWidget* SafetyComponent::setupWidget(void) const
{
QGCQmlWidgetHolder
*
holder
=
new
QGCQmlWidgetHolder
();
Q_CHECK_PTR
(
holder
);
holder
->
setAutoPilot
(
_autopilot
);
holder
->
setSource
(
QUrl
::
fromUserInput
(
"qrc:/qml/SafetyComponent.qml"
));
return
holder
;
}
...
...
@@ -109,10 +109,10 @@ QString SafetyComponent::prerequisiteSetup(void) const
{
PX4AutoPilotPlugin
*
plugin
=
dynamic_cast
<
PX4AutoPilotPlugin
*>
(
_autopilot
);
Q_ASSERT
(
plugin
);
if
(
!
plugin
->
airframeComponent
()
->
setupComplete
())
{
return
plugin
->
airframeComponent
()
->
name
();
}
return
QString
();
}
src/AutoPilotPlugins/PX4/SafetyComponent.qml
View file @
54b76f93
...
...
@@ -47,7 +47,7 @@ Rectangle {
}
FactTextField
{
id
:
telemetryLossField
fact
:
autopilot
.
parameters
[
"
NAV_DLL_N
"
];
fact
:
autopilot
.
parameters
[
"
COM_DL_LOSS_T
"
];
showUnits
:
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