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
1ef1d534
Commit
1ef1d534
authored
Mar 10, 2017
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for using Vehicle Setup pages in core plugin
parent
7c20424b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
25 deletions
+27
-25
PX4AutoPilotPlugin.cc
src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.cc
+1
-1
PX4AutoPilotPlugin.h
src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.h
+5
-3
SafetyComponent.h
src/AutoPilotPlugins/PX4/SafetyComponent.h
+10
-10
SensorsComponent.h
src/AutoPilotPlugins/PX4/SensorsComponent.h
+9
-9
SetupView.qml
src/VehicleSetup/SetupView.qml
+1
-1
QGCCorePlugin.cc
src/api/QGCCorePlugin.cc
+1
-1
No files found.
src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.cc
View file @
1ef1d534
...
...
@@ -23,6 +23,7 @@
PX4AutoPilotPlugin
::
PX4AutoPilotPlugin
(
Vehicle
*
vehicle
,
QObject
*
parent
)
:
AutoPilotPlugin
(
vehicle
,
parent
)
,
_incorrectParameterVersion
(
false
)
,
_airframeComponent
(
NULL
)
,
_radioComponent
(
NULL
)
,
_esp8266Component
(
NULL
)
...
...
@@ -33,7 +34,6 @@ PX4AutoPilotPlugin::PX4AutoPilotPlugin(Vehicle* vehicle, QObject* parent)
,
_motorComponent
(
NULL
)
,
_tuningComponent
(
NULL
)
,
_mixersComponent
(
NULL
)
,
_incorrectParameterVersion
(
false
)
{
Q_ASSERT
(
vehicle
);
...
...
src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.h
View file @
1ef1d534
...
...
@@ -41,8 +41,8 @@ public:
~
PX4AutoPilotPlugin
();
// Overrides from AutoPilotPlugin
const
QVariantList
&
vehicleComponents
(
void
)
final
;
void
parametersReadyPreChecks
(
void
)
final
;
const
QVariantList
&
vehicleComponents
(
void
)
override
;
void
parametersReadyPreChecks
(
void
)
override
;
// These methods should only be used by objects within the plugin
AirframeComponent
*
airframeComponent
(
void
)
{
return
_airframeComponent
;
}
...
...
@@ -57,6 +57,9 @@ public:
PX4TuningComponent
*
tuningComponent
(
void
)
{
return
_tuningComponent
;
}
MixersComponent
*
mixersComponent
(
void
)
{
return
_mixersComponent
;
}
protected:
bool
_incorrectParameterVersion
;
///< true: parameter version incorrect, setup not allowed
private:
PX4AirframeLoader
*
_airframeFacts
;
QVariantList
_components
;
...
...
@@ -71,7 +74,6 @@ private:
MotorComponent
*
_motorComponent
;
PX4TuningComponent
*
_tuningComponent
;
MixersComponent
*
_mixersComponent
;
bool
_incorrectParameterVersion
;
///< true: parameter version incorrect, setup not allowed
};
#endif
src/AutoPilotPlugins/PX4/SafetyComponent.h
View file @
1ef1d534
...
...
@@ -26,18 +26,18 @@ public:
SafetyComponent
(
Vehicle
*
vehicle
,
AutoPilotPlugin
*
autopilot
,
QObject
*
parent
=
NULL
);
// Virtuals from VehicleComponent
QStringList
setupCompleteChangedTriggerList
(
void
)
const
;
QStringList
setupCompleteChangedTriggerList
(
void
)
const
override
;
// Virtuals from VehicleComponent
QString
name
(
void
)
const
final
;
QString
description
(
void
)
const
final
;
QString
iconResource
(
void
)
const
final
;
bool
requiresSetup
(
void
)
const
final
;
bool
setupComplete
(
void
)
const
final
;
QUrl
setupSource
(
void
)
const
final
;
QUrl
summaryQmlSource
(
void
)
const
final
;
QString
prerequisiteSetup
(
void
)
const
final
;
bool
allowSetupWhileArmed
(
void
)
const
final
{
return
true
;
}
QString
name
(
void
)
const
override
;
QString
description
(
void
)
const
override
;
QString
iconResource
(
void
)
const
override
;
bool
requiresSetup
(
void
)
const
override
;
bool
setupComplete
(
void
)
const
override
;
QUrl
setupSource
(
void
)
const
override
;
QUrl
summaryQmlSource
(
void
)
const
override
;
QString
prerequisiteSetup
(
void
)
const
override
;
bool
allowSetupWhileArmed
(
void
)
const
override
{
return
true
;
}
private:
const
QString
_name
;
...
...
src/AutoPilotPlugins/PX4/SensorsComponent.h
View file @
1ef1d534
...
...
@@ -25,17 +25,17 @@ public:
SensorsComponent
(
Vehicle
*
vehicle
,
AutoPilotPlugin
*
autopilot
,
QObject
*
parent
=
NULL
);
// Virtuals from VehicleComponent
virtual
QStringList
setupCompleteChangedTriggerList
(
void
)
const
;
QStringList
setupCompleteChangedTriggerList
(
void
)
const
override
;
// Virtuals from VehicleComponent
virtual
QString
name
(
void
)
const
;
virtual
QString
description
(
void
)
const
;
virtual
QString
iconResource
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
virtual
QString
name
(
void
)
const
override
;
virtual
QString
description
(
void
)
const
override
;
virtual
QString
iconResource
(
void
)
const
override
;
virtual
bool
requiresSetup
(
void
)
const
override
;
virtual
bool
setupComplete
(
void
)
const
override
;
virtual
QUrl
setupSource
(
void
)
const
override
;
virtual
QUrl
summaryQmlSource
(
void
)
const
override
;
virtual
QString
prerequisiteSetup
(
void
)
const
override
;
private:
const
QString
_name
;
...
...
src/VehicleSetup/SetupView.qml
View file @
1ef1d534
...
...
@@ -307,7 +307,7 @@ Rectangle {
SubMenuButton
{
setupIndicator
:
false
exclusiveGroup
:
setupButtonGroup
visible
:
QGroundControl
.
multiVehicleManager
.
parameterReadyVehicleAvailable
visible
:
QGroundControl
.
multiVehicleManager
.
parameterReadyVehicleAvailable
&&
QGroundControl
.
corePlugin
.
showAdvancedUI
text
:
"
Parameters
"
Layout.fillWidth
:
true
...
...
src/api/QGCCorePlugin.cc
View file @
1ef1d534
...
...
@@ -82,7 +82,7 @@ QGCCorePlugin::~QGCCorePlugin()
QGCCorePlugin
::
QGCCorePlugin
(
QGCApplication
*
app
)
:
QGCTool
(
app
)
,
_showTouchAreas
(
false
)
,
_showAdvancedUI
(
fals
e
)
,
_showAdvancedUI
(
tru
e
)
{
_p
=
new
QGCCorePlugin_p
;
}
...
...
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