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
c9cdc464
Commit
c9cdc464
authored
Jan 12, 2014
by
Don Gagne
Browse files
-Wreorder fixes
parent
ff390617
Changes
9
Hide whitespace changes
Inline
Side-by-side
qgroundcontrol.pro
View file @
c9cdc464
...
...
@@ -129,7 +129,6 @@ MacBuild | LinuxBuild {
QMAKE_CXXFLAGS_WARN_ON
+=
\
-
Wall
\
-
Wno
-
unused
-
parameter
\
-
Wno
-
reorder
\
-
Wno
-
unused
-
variable
\
-
Wno
-
narrowing
\
-
Wno
-
unused
-
function
...
...
src/comm/XbeeLink.cpp
View file @
c9cdc464
...
...
@@ -7,8 +7,14 @@
#include
"XbeeLink.h"
XbeeLink
::
XbeeLink
(
QString
portName
,
int
baudRate
)
:
m_xbeeCon
(
NULL
),
m_portName
(
NULL
),
m_portNameLength
(
0
),
m_baudRate
(
baudRate
),
m_connected
(
false
),
m_id
(
-
1
),
m_addrHigh
(
0
),
m_addrLow
(
0
)
m_xbeeCon
(
NULL
),
m_id
(
-
1
),
m_portName
(
NULL
),
m_portNameLength
(
0
),
m_baudRate
(
baudRate
),
m_connected
(
false
),
m_addrHigh
(
0
),
m_addrLow
(
0
)
{
/* setup the xbee */
...
...
src/uas/UAS.cc
View file @
c9cdc464
...
...
@@ -115,23 +115,19 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(),
altitudeAMSL
(
0.0
),
altitudeRelative
(
0.0
),
airSpeed
(
std
::
numeric_limits
<
double
>::
quiet_NaN
()),
groundSpeed
(
std
::
numeric_limits
<
double
>::
quiet_NaN
()),
globalEstimatorActive
(
false
),
latitude_gps
(
0.0
),
longitude_gps
(
0.0
),
altitude_gps
(
0.0
),
speedX
(
0.0
),
speedY
(
0.0
),
speedZ
(
0.0
),
globalEstimatorActive
(
false
),
latitude_gps
(
0.0
),
longitude_gps
(
0.0
),
altitude_gps
(
0.0
),
nedPosGlobalOffset
(
0
,
0
,
0
),
nedAttGlobalOffset
(
0
,
0
,
0
),
waypointManager
(
this
),
paramMgr
(
this
),
#if defined(QGC_PROTOBUF_ENABLED) && defined(QGC_USE_PIXHAWK_MESSAGES)
receivedOverlayTimestamp
(
0.0
),
receivedObstacleListTimestamp
(
0.0
),
...
...
@@ -140,6 +136,10 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(),
receivedRGBDImageTimestamp
(
0.0
),
#endif
airSpeed
(
std
::
numeric_limits
<
double
>::
quiet_NaN
()),
groundSpeed
(
std
::
numeric_limits
<
double
>::
quiet_NaN
()),
waypointManager
(
this
),
attitudeKnown
(
false
),
attitudeStamped
(
false
),
lastAttitude
(
0
),
...
...
@@ -148,7 +148,12 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(),
pitch
(
0.0
),
yaw
(
0.0
),
blockHomePositionChanges
(
false
),
receivedMode
(
false
),
paramsOnceRequested
(
false
),
paramMgr
(
this
),
simulation
(
0
),
// The protected members.
...
...
@@ -159,9 +164,7 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(),
hilEnabled
(
false
),
sensorHil
(
false
),
lastSendTimeGPS
(
0
),
lastSendTimeSensors
(
0
),
blockHomePositionChanges
(
false
),
receivedMode
(
false
)
lastSendTimeSensors
(
0
)
{
for
(
unsigned
int
i
=
0
;
i
<
255
;
++
i
)
{
...
...
src/ui/HUD.cc
View file @
c9cdc464
...
...
@@ -57,6 +57,7 @@ This file is part of the QGROUNDCONTROL project
*/
HUD
::
HUD
(
int
width
,
int
height
,
QWidget
*
parent
)
:
QLabel
(
parent
),
image
(
NULL
),
uas
(
NULL
),
yawInt
(
0.0
f
),
mode
(
tr
(
"UNKNOWN MODE"
)),
...
...
@@ -111,11 +112,10 @@ HUD::HUD(int width, int height, QWidget* parent)
nextOfflineImage
(
""
),
HUDInstrumentsEnabled
(
false
),
videoEnabled
(
true
),
imageLoggingEnabled
(
false
),
xImageFactor
(
1.0
),
yImageFactor
(
1.0
),
imageLoggingEnabled
(
false
),
imageRequested
(
false
),
image
(
NULL
)
imageRequested
(
false
)
{
Q_UNUSED
(
width
);
Q_UNUSED
(
height
);
...
...
src/ui/MainWindow.cc
View file @
c9cdc464
...
...
@@ -121,13 +121,13 @@ MainWindow::MainWindow(QWidget *parent):
currentStyle
(
QGC_MAINWINDOW_STYLE_DARK
),
aboutToCloseFlag
(
false
),
changingViewsFlag
(
false
),
mavlink
(
new
MAVLinkProtocol
()),
centerStackActionGroup
(
new
QActionGroup
(
this
)),
darkStyleFileName
(
defaultDarkStyle
),
lightStyleFileName
(
defaultLightStyle
),
autoReconnect
(
false
),
simulationLink
(
NULL
),
lowPowerMode
(
false
),
mavlink
(
new
MAVLinkProtocol
()),
customMode
(
CUSTOM_MODE_NONE
),
menuActionHelper
(
new
MenuActionHelper
())
{
...
...
src/ui/QGCBaseParamWidget.cc
View file @
c9cdc464
...
...
@@ -11,8 +11,8 @@
QGCBaseParamWidget
::
QGCBaseParamWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
),
mav
(
NULL
),
paramMgr
(
NULL
),
mav
(
NULL
),
updatingParamNameLock
(
""
)
{
}
...
...
src/ui/QGCSettingsWidget.cc
View file @
c9cdc464
...
...
@@ -13,8 +13,8 @@
QGCSettingsWidget
::
QGCSettingsWidget
(
QWidget
*
parent
,
Qt
::
WindowFlags
flags
)
:
QDialog
(
parent
,
flags
),
ui
(
new
Ui
::
QGCSettingsWidge
t
),
mainWindow
((
MainWindow
*
)
paren
t
)
mainWindow
((
MainWindow
*
)
paren
t
),
ui
(
new
Ui
::
QGCSettingsWidge
t
)
{
ui
->
setupUi
(
this
);
...
...
src/ui/main/QGCViewModeSelection.cc
View file @
c9cdc464
...
...
@@ -5,8 +5,8 @@
QGCViewModeSelection
::
QGCViewModeSelection
(
QWidget
*
parent
)
:
QWidget
(
parent
),
selected
(
false
),
ui
(
new
Ui
::
QGCViewModeSelection
)
ui
(
new
Ui
::
QGCViewModeSelection
),
selected
(
false
)
{
ui
->
setupUi
(
this
);
...
...
src/ui/map/QGCMapToolBar.cc
View file @
c9cdc464
...
...
@@ -7,12 +7,12 @@ QGCMapToolBar::QGCMapToolBar(QWidget *parent) :
ui
(
new
Ui
::
QGCMapToolBar
),
map
(
NULL
),
optionsMenu
(
this
),
mapTypesMenu
(
this
),
trailPlotMenu
(
this
),
updateTimesMenu
(
this
),
mapTypes
Group
(
new
QActionGroup
(
this
)
)
,
mapTypes
Menu
(
this
),
trailSettingsGroup
(
new
QActionGroup
(
this
)),
updateTimesGroup
(
new
QActionGroup
(
this
))
updateTimesGroup
(
new
QActionGroup
(
this
)),
mapTypesGroup
(
new
QActionGroup
(
this
))
{
ui
->
setupUi
(
this
);
}
...
...
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