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
a4e55db2
Commit
a4e55db2
authored
Aug 22, 2015
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1780 from DonLakeFlyer/NoRC
Respect COM_RC_IN_MODE setting
parents
93cbdea2
eb69c87a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
28 deletions
+40
-28
PX4AutoPilotPlugin.cc
src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.cc
+40
-28
No files found.
src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.cc
View file @
a4e55db2
...
...
@@ -273,11 +273,19 @@ const QVariantList& PX4AutoPilotPlugin::vehicleComponents(void)
if
(
_components
.
count
()
==
0
&&
!
_incorrectParameterVersion
)
{
Q_ASSERT
(
_uas
);
if
(
pluginReady
())
{
bool
noRCTransmitter
=
false
;
if
(
parameterExists
(
FactSystem
::
defaultComponentId
,
"COM_RC_IN_MODE"
))
{
Fact
*
rcFact
=
getParameterFact
(
FactSystem
::
defaultComponentId
,
"COM_RC_IN_MODE"
);
noRCTransmitter
=
rcFact
->
value
().
toInt
()
==
1
;
}
_airframeComponent
=
new
AirframeComponent
(
_uas
,
this
);
Q_CHECK_PTR
(
_airframeComponent
);
_airframeComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_airframeComponent
));
if
(
!
noRCTransmitter
)
{
_radioComponent
=
new
RadioComponent
(
_uas
,
this
);
Q_CHECK_PTR
(
_radioComponent
);
_radioComponent
->
setupTriggerSignals
();
...
...
@@ -287,6 +295,7 @@ const QVariantList& PX4AutoPilotPlugin::vehicleComponents(void)
Q_CHECK_PTR
(
_flightModesComponent
);
_flightModesComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_flightModesComponent
));
}
_sensorsComponent
=
new
SensorsComponent
(
_uas
,
this
);
Q_CHECK_PTR
(
_sensorsComponent
);
...
...
@@ -302,6 +311,9 @@ const QVariantList& PX4AutoPilotPlugin::vehicleComponents(void)
Q_CHECK_PTR
(
_safetyComponent
);
_safetyComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_safetyComponent
));
}
else
{
qWarning
()
<<
"Call to vehicleCompenents prior to pluginReady"
;
}
}
return
_components
;
...
...
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