Commit 8fecd7bc authored by Bryant Mairs's avatar Bryant Mairs

Fixes for using unitialized variables reported by valgrind.

parent 7d23b024
......@@ -436,6 +436,8 @@ MAVLinkSimulationWaypointPlanner::MAVLinkSimulationWaypointPlanner(MAVLinkSimula
link(parent),
idle(false),
current_active_wp_id(-1),
yawReached(false),
posReached(false),
timestamp_lastoutside_orbit(0),
timestamp_firstinside_orbit(0),
waypoints(&waypoints1),
......
......@@ -82,8 +82,8 @@ UAS::UAS(MAVLinkProtocol* protocol, QThread* thread, int id) : UASInterface(),
lpVoltage(12.0f),
currentCurrent(0.4f),
batteryRemainingEstimateEnabled(false),
// chargeLevel not initialized
// timeRemaining not initialized
chargeLevel(-1),
timeRemaining(0),
lowBattAlarm(false),
startTime(QGC::groundTimeMilliseconds()),
......
......@@ -72,7 +72,8 @@ LinechartWidget::LinechartWidget(int systemid, QWidget *parent) : QWidget(parent
logging(false),
logStartTime(0),
updateTimer(new QTimer()),
selectedMAV(-1)
selectedMAV(-1),
lastTimestamp(0)
{
// Add elements defined in Qt Designer
ui.setupUi(this);
......
......@@ -5,7 +5,8 @@
#include "UASQuickViewTextItem.h"
#include <QSettings>
#include <QInputDialog>
UASQuickView::UASQuickView(QWidget *parent) : QWidget(parent)
UASQuickView::UASQuickView(QWidget *parent) : QWidget(parent),
uas(NULL)
{
quickViewSelectDialog=0;
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