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
0dbc3ef9
Unverified
Commit
0dbc3ef9
authored
Oct 24, 2018
by
Don Gagne
Committed by
GitHub
Oct 24, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6936 from patrickelectric/remove_unused
Remove random unused variables
parents
0c382c9a
850ad3aa
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
30 deletions
+12
-30
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
APMParameterMetaData.cc
src/FirmwarePlugin/APM/APMParameterMetaData.cc
+0
-1
QGCJSBSimLink.cc
src/comm/QGCJSBSimLink.cc
+11
-14
TCPLink.cc
src/comm/TCPLink.cc
+0
-1
UAS.cc
src/uas/UAS.cc
+0
-3
QGCUASFileView.cc
src/ui/QGCUASFileView.cc
+0
-3
No files found.
src/AutoPilotPlugins/PX4/PX4AdvancedFlightModesController.cc
View file @
0dbc3ef9
...
...
@@ -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 @
0dbc3ef9
...
...
@@ -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 @
0dbc3ef9
...
...
@@ -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 @
0dbc3ef9
...
...
@@ -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
);
...
...
src/FirmwarePlugin/APM/APMParameterMetaData.cc
View file @
0dbc3ef9
...
...
@@ -154,7 +154,6 @@ void APMParameterMetaData::loadParameterFactMetaDataFile(const QString& metaData
return
;
}
QString
errorString
;
bool
badMetaData
=
true
;
QStack
<
int
>
xmlState
;
APMFactMetaDataRaw
*
rawMetaData
=
NULL
;
...
...
src/comm/QGCJSBSimLink.cc
View file @
0dbc3ef9
...
...
@@ -285,23 +285,20 @@ void QGCJSBSimLink::readBytes()
if
(
s
>
maxLength
)
std
::
cerr
<<
__FILE__
<<
__LINE__
<<
" UDP datagram overflow, allowed to read less bytes than datagram size"
<<
std
::
endl
;
socket
->
readDatagram
(
data
,
maxLength
,
&
sender
,
&
senderPort
);
QByteArray
b
(
data
,
s
);
/*
// Print string
// QString state(b);
// // Parse string
// float roll, pitch, yaw, rollspeed, pitchspeed, yawspeed;
// double lat, lon, alt;
// double vx, vy, vz, xacc, yacc, zacc;
// // Send updated state
// emit hilStateChanged(QGC::groundTimeUsecs(), roll, pitch, yaw, rollspeed,
// pitchspeed, yawspeed, lat, lon, alt,
// vx, vy, vz, xacc, yacc, zacc);
QByteArray b(data, s);
QString state(b);
// Parse string
float roll, pitch, yaw, rollspeed, pitchspeed, yawspeed;
double lat, lon, alt;
double vx, vy, vz, xacc, yacc, zacc;
// Send updated state
emit hilStateChanged(QGC::groundTimeUsecs(), roll, pitch, yaw, rollspeed,
pitchspeed, yawspeed, lat, lon, alt, vx, vy, vz, xacc, yacc, zacc);
*/
// Echo data for debugging purposes
std
::
cerr
<<
__FILE__
<<
__LINE__
<<
"Received datagram:"
<<
std
::
endl
;
...
...
src/comm/TCPLink.cc
View file @
0dbc3ef9
...
...
@@ -253,7 +253,6 @@ static QString get_ip_address(const QString& address)
if
(
info
.
error
()
==
QHostInfo
::
NoError
)
{
QList
<
QHostAddress
>
hostAddresses
=
info
.
addresses
();
QHostAddress
address
;
for
(
int
i
=
0
;
i
<
hostAddresses
.
size
();
i
++
)
{
// Exclude all IPv6 addresses
...
...
src/uas/UAS.cc
View file @
0dbc3ef9
...
...
@@ -181,9 +181,6 @@ void UAS::receiveMessage(mavlink_message_t message)
// and we already got one attitude packet
if
(
message
.
sysid
==
uasId
&&
(
!
attitudeStamped
||
lastAttitude
!=
0
||
message
.
msgid
==
MAVLINK_MSG_ID_ATTITUDE
))
{
QString
uasState
;
QString
stateDescription
;
bool
multiComponentSourceDetected
=
false
;
bool
wrongComponent
=
false
;
...
...
src/ui/QGCUASFileView.cc
View file @
0dbc3ef9
...
...
@@ -227,9 +227,6 @@ Again:
}
if
(
childItem
)
{
// Process this item
QString
text
=
childItem
->
text
(
0
);
// Move to the next item for processing at this level
_walkIndexStack
.
last
()
=
++
walkIndex
;
...
...
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