Commit 0b85b0f7 authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #791 from Susurrus/valgrind2

Cleanup some unitialized variable issues pointed out by Valgrind
parents 8caddac0 8fecd7bc
...@@ -436,6 +436,8 @@ MAVLinkSimulationWaypointPlanner::MAVLinkSimulationWaypointPlanner(MAVLinkSimula ...@@ -436,6 +436,8 @@ MAVLinkSimulationWaypointPlanner::MAVLinkSimulationWaypointPlanner(MAVLinkSimula
link(parent), link(parent),
idle(false), idle(false),
current_active_wp_id(-1), current_active_wp_id(-1),
yawReached(false),
posReached(false),
timestamp_lastoutside_orbit(0), timestamp_lastoutside_orbit(0),
timestamp_firstinside_orbit(0), timestamp_firstinside_orbit(0),
waypoints(&waypoints1), waypoints(&waypoints1),
......
...@@ -82,8 +82,8 @@ UAS::UAS(MAVLinkProtocol* protocol, QThread* thread, int id) : UASInterface(), ...@@ -82,8 +82,8 @@ UAS::UAS(MAVLinkProtocol* protocol, QThread* thread, int id) : UASInterface(),
lpVoltage(12.0f), lpVoltage(12.0f),
currentCurrent(0.4f), currentCurrent(0.4f),
batteryRemainingEstimateEnabled(false), batteryRemainingEstimateEnabled(false),
// chargeLevel not initialized chargeLevel(-1),
// timeRemaining not initialized timeRemaining(0),
lowBattAlarm(false), lowBattAlarm(false),
startTime(QGC::groundTimeMilliseconds()), startTime(QGC::groundTimeMilliseconds()),
......
...@@ -72,7 +72,8 @@ LinechartWidget::LinechartWidget(int systemid, QWidget *parent) : QWidget(parent ...@@ -72,7 +72,8 @@ LinechartWidget::LinechartWidget(int systemid, QWidget *parent) : QWidget(parent
logging(false), logging(false),
logStartTime(0), logStartTime(0),
updateTimer(new QTimer()), updateTimer(new QTimer()),
selectedMAV(-1) selectedMAV(-1),
lastTimestamp(0)
{ {
// Add elements defined in Qt Designer // Add elements defined in Qt Designer
ui.setupUi(this); ui.setupUi(this);
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
#include "UASQuickViewTextItem.h" #include "UASQuickViewTextItem.h"
#include <QSettings> #include <QSettings>
#include <QInputDialog> #include <QInputDialog>
UASQuickView::UASQuickView(QWidget *parent) : QWidget(parent) UASQuickView::UASQuickView(QWidget *parent) : QWidget(parent),
uas(NULL)
{ {
quickViewSelectDialog=0; quickViewSelectDialog=0;
m_columnCount=2; m_columnCount=2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment