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
18a58249
Commit
18a58249
authored
Mar 13, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3006 from DonLakeFlyer/ReorderComponents
Reorder vehicle components
parents
16e91924
5024b7ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
25 deletions
+24
-25
APMAutoPilotPlugin.cc
src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc
+17
-18
PX4AutoPilotPlugin.cc
src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.cc
+7
-7
No files found.
src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc
View file @
18a58249
...
@@ -75,33 +75,22 @@ const QVariantList& APMAutoPilotPlugin::vehicleComponents(void)
...
@@ -75,33 +75,22 @@ const QVariantList& APMAutoPilotPlugin::vehicleComponents(void)
_airframeComponent
->
setupTriggerSignals
();
_airframeComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_airframeComponent
));
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_airframeComponent
));
_cameraComponent
=
new
APMCameraComponent
(
_vehicle
,
this
);
_cameraComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_cameraComponent
));
_flightModesComponent
=
new
APMFlightModesComponent
(
_vehicle
,
this
);
_flightModesComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_flightModesComponent
));
_powerComponent
=
new
APMPowerComponent
(
_vehicle
,
this
);
_powerComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_powerComponent
));
_radioComponent
=
new
APMRadioComponent
(
_vehicle
,
this
);
_radioComponent
=
new
APMRadioComponent
(
_vehicle
,
this
);
_radioComponent
->
setupTriggerSignals
();
_radioComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_radioComponent
));
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_radioComponent
));
//-- Is there an ESP8266 Connected?
_flightModesComponent
=
new
APMFlightModesComponent
(
_vehicle
,
this
);
if
(
factExists
(
FactSystem
::
ParameterProvider
,
MAV_COMP_ID_UDP_BRIDGE
,
"SW_VER"
))
{
_flightModesComponent
->
setupTriggerSignals
();
_esp8266Component
=
new
ESP8266Component
(
_vehicle
,
this
);
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_flightModesComponent
));
_esp8266Component
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_esp8266Component
));
}
_sensorsComponent
=
new
APMSensorsComponent
(
_vehicle
,
this
);
_sensorsComponent
=
new
APMSensorsComponent
(
_vehicle
,
this
);
_sensorsComponent
->
setupTriggerSignals
();
_sensorsComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_sensorsComponent
));
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_sensorsComponent
));
_powerComponent
=
new
APMPowerComponent
(
_vehicle
,
this
);
_powerComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_powerComponent
));
_safetyComponent
=
new
APMSafetyComponent
(
_vehicle
,
this
);
_safetyComponent
=
new
APMSafetyComponent
(
_vehicle
,
this
);
_safetyComponent
->
setupTriggerSignals
();
_safetyComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_safetyComponent
));
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_safetyComponent
));
...
@@ -110,6 +99,16 @@ const QVariantList& APMAutoPilotPlugin::vehicleComponents(void)
...
@@ -110,6 +99,16 @@ const QVariantList& APMAutoPilotPlugin::vehicleComponents(void)
_tuningComponent
->
setupTriggerSignals
();
_tuningComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_tuningComponent
));
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_tuningComponent
));
_cameraComponent
=
new
APMCameraComponent
(
_vehicle
,
this
);
_cameraComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_cameraComponent
));
//-- Is there an ESP8266 Connected?
if
(
factExists
(
FactSystem
::
ParameterProvider
,
MAV_COMP_ID_UDP_BRIDGE
,
"SW_VER"
))
{
_esp8266Component
=
new
ESP8266Component
(
_vehicle
,
this
);
_esp8266Component
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_esp8266Component
));
}
}
else
{
}
else
{
qWarning
()
<<
"Call to vehicleCompenents prior to parametersReady"
;
qWarning
()
<<
"Call to vehicleCompenents prior to parametersReady"
;
}
}
...
...
src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.cc
View file @
18a58249
...
@@ -105,13 +105,6 @@ const QVariantList& PX4AutoPilotPlugin::vehicleComponents(void)
...
@@ -105,13 +105,6 @@ const QVariantList& PX4AutoPilotPlugin::vehicleComponents(void)
_radioComponent
->
setupTriggerSignals
();
_radioComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_radioComponent
));
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_radioComponent
));
//-- Is there an ESP8266 Connected?
if
(
factExists
(
FactSystem
::
ParameterProvider
,
MAV_COMP_ID_UDP_BRIDGE
,
"SW_VER"
))
{
_esp8266Component
=
new
ESP8266Component
(
_vehicle
,
this
);
_esp8266Component
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_esp8266Component
));
}
_flightModesComponent
=
new
FlightModesComponent
(
_vehicle
,
this
);
_flightModesComponent
=
new
FlightModesComponent
(
_vehicle
,
this
);
_flightModesComponent
->
setupTriggerSignals
();
_flightModesComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_flightModesComponent
));
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_flightModesComponent
));
...
@@ -131,6 +124,13 @@ const QVariantList& PX4AutoPilotPlugin::vehicleComponents(void)
...
@@ -131,6 +124,13 @@ const QVariantList& PX4AutoPilotPlugin::vehicleComponents(void)
_tuningComponent
=
new
PX4TuningComponent
(
_vehicle
,
this
);
_tuningComponent
=
new
PX4TuningComponent
(
_vehicle
,
this
);
_tuningComponent
->
setupTriggerSignals
();
_tuningComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_tuningComponent
));
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_tuningComponent
));
//-- Is there an ESP8266 Connected?
if
(
factExists
(
FactSystem
::
ParameterProvider
,
MAV_COMP_ID_UDP_BRIDGE
,
"SW_VER"
))
{
_esp8266Component
=
new
ESP8266Component
(
_vehicle
,
this
);
_esp8266Component
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_esp8266Component
));
}
}
else
{
}
else
{
qWarning
()
<<
"Call to vehicleCompenents prior to parametersReady"
;
qWarning
()
<<
"Call to vehicleCompenents prior to parametersReady"
;
}
}
...
...
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