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
df4043b5
Commit
df4043b5
authored
Jan 18, 2016
by
Tomaz Canabrava
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify creation of Plugin Members
Signed-off-by:
Tomaz Canabrava
<
tomaz.canabrava@intel.com
>
parent
d13f930e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
42 deletions
+14
-42
APMAutoPilotPlugin.cc
src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc
+14
-42
No files found.
src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc
View file @
df4043b5
...
...
@@ -70,64 +70,36 @@ const QVariantList& APMAutoPilotPlugin::vehicleComponents(void)
if
(
parametersReady
())
{
_airframeComponent
=
new
APMAirframeComponent
(
_vehicle
,
this
);
if
(
_airframeComponent
)
{
_airframeComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_airframeComponent
));
}
else
{
qWarning
()
<<
"new APMAirframeComponent failed"
;
}
_airframeComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_airframeComponent
));
_cameraComponent
=
new
APMCameraComponent
(
_vehicle
,
this
);
_cameraComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_cameraComponent
));
_flightModesComponent
=
new
APMFlightModesComponent
(
_vehicle
,
this
);
if
(
_flightModesComponent
)
{
_flightModesComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_flightModesComponent
));
}
else
{
qWarning
()
<<
"new APMFlightModesComponent failed"
;
}
_flightModesComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_flightModesComponent
));
_powerComponent
=
new
APMPowerComponent
(
_vehicle
,
this
);
if
(
_powerComponent
)
{
_powerComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_powerComponent
));
}
else
{
qWarning
()
<<
"new APMPowerComponent failed"
;
}
_powerComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_powerComponent
));
_radioComponent
=
new
APMRadioComponent
(
_vehicle
,
this
);
if
(
_radioComponent
)
{
_radioComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_radioComponent
));
}
else
{
qWarning
()
<<
"new APMRadioComponent failed"
;
}
_radioComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_radioComponent
));
_sensorsComponent
=
new
APMSensorsComponent
(
_vehicle
,
this
);
if
(
_sensorsComponent
)
{
_sensorsComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_sensorsComponent
));
}
else
{
qWarning
()
<<
"new APMSensorsComponent failed"
;
}
_sensorsComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_sensorsComponent
));
_safetyComponent
=
new
APMSafetyComponent
(
_vehicle
,
this
);
if
(
_safetyComponent
)
{
_safetyComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_safetyComponent
));
}
else
{
qWarning
()
<<
"new APMSafetyComponent failed"
;
}
_safetyComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_safetyComponent
));
_tuningComponent
=
new
APMTuningComponent
(
_vehicle
,
this
);
if
(
_tuningComponent
)
{
_tuningComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_tuningComponent
));
}
else
{
qWarning
()
<<
"new APMTuningComponent failed"
;
}
_tuningComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_tuningComponent
));
}
else
{
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