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
c1e64d8f
Commit
c1e64d8f
authored
Oct 23, 2018
by
Patrick José Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AutoPilotPlugins: Remove unused variables
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
4885d2f5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
8 deletions
+1
-8
PX4AdvancedFlightModesController.cc
src/AutoPilotPlugins/PX4/PX4AdvancedFlightModesController.cc
+1
-5
PX4AirframeLoader.cc
src/AutoPilotPlugins/PX4/PX4AirframeLoader.cc
+0
-1
PowerComponent.cc
src/AutoPilotPlugins/PX4/PowerComponent.cc
+0
-1
PowerComponentController.cc
src/AutoPilotPlugins/PX4/PowerComponentController.cc
+0
-1
No files found.
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
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