Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
c1e64d8f
Commit
c1e64d8f
authored
Oct 23, 2018
by
Patrick José Pereira
Browse files
AutoPilotPlugins: Remove unused variables
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
4885d2f5
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/AutoPilotPlugins/PX4/PX4AdvancedFlightModesController.cc
View file @
c1e64d8f
...
...
@@ -56,9 +56,7 @@ void PX4AdvancedFlightModesController::_init(void)
rcMinParam
=
QString
(
"RC%1_MIN"
).
arg
(
channel
+
1
);
rcMaxParam
=
QString
(
"RC%1_MAX"
).
arg
(
channel
+
1
);
rcRevParam
=
QString
(
"RC%1_REV"
).
arg
(
channel
+
1
);
QVariant
value
;
_rgRCMin
[
channel
]
=
getParameterFact
(
FactSystem
::
defaultComponentId
,
rcMinParam
)
->
rawValue
().
toInt
();
_rgRCMax
[
channel
]
=
getParameterFact
(
FactSystem
::
defaultComponentId
,
rcMaxParam
)
->
rawValue
().
toInt
();
...
...
@@ -220,8 +218,6 @@ void PX4AdvancedFlightModesController::_rcChannelsChanged(int channelCount, int
double
PX4AdvancedFlightModesController
::
_switchLiveRange
(
const
QString
&
param
)
{
QVariant
value
;
int
channel
=
getParameterFact
(
-
1
,
param
)
->
rawValue
().
toInt
();
if
(
channel
==
0
)
{
return
0.0
;
...
...
src/AutoPilotPlugins/PX4/PX4AirframeLoader.cc
View file @
c1e64d8f
...
...
@@ -90,7 +90,6 @@ void PX4AirframeLoader::loadAirframeMetaData(void)
QString
airframeGroup
;
QString
image
;
QString
errorString
;
int
xmlState
=
XmlStateNone
;
while
(
!
xml
.
atEnd
())
{
...
...
src/AutoPilotPlugins/PX4/PowerComponent.cc
View file @
c1e64d8f
...
...
@@ -43,7 +43,6 @@ bool PowerComponent::requiresSetup(void) const
bool
PowerComponent
::
setupComplete
(
void
)
const
{
QVariant
cvalue
,
evalue
,
nvalue
;
return
_vehicle
->
parameterManager
()
->
getParameter
(
FactSystem
::
defaultComponentId
,
"BAT_V_CHARGED"
)
->
rawValue
().
toFloat
()
!=
0.0
f
&&
_vehicle
->
parameterManager
()
->
getParameter
(
FactSystem
::
defaultComponentId
,
"BAT_V_EMPTY"
)
->
rawValue
().
toFloat
()
!=
0.0
f
&&
_vehicle
->
parameterManager
()
->
getParameter
(
FactSystem
::
defaultComponentId
,
"BAT_N_CELLS"
)
->
rawValue
().
toInt
()
!=
0
;
...
...
src/AutoPilotPlugins/PX4/PowerComponentController.cc
View file @
c1e64d8f
...
...
@@ -140,7 +140,6 @@ void PowerComponentController::_handleUASTextMessage(int uasId, int compId, int
return
;
}
QString
busCompletePrefix
(
"bus conf done:"
);
if
(
text
.
startsWith
(
calCompletePrefix
))
{
_stopBusConfig
();
emit
calibrationSuccess
(
_warningMessages
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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