Commit c70292f0 authored by pixhawk's avatar pixhawk

Fixed HSI, back to operational

parent ebe0ae96
......@@ -140,8 +140,6 @@ HDDisplay::HDDisplay(QStringList* plotList, QString title, QWidget *parent) :
// Connect with UAS
connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), this, SLOT(setActiveUAS(UASInterface*)));
//start();
this->setVisible(false);
}
HDDisplay::~HDDisplay()
......
......@@ -46,7 +46,7 @@ This file is part of the QGROUNDCONTROL project
#include <QDebug>
HSIDisplay::HSIDisplay(QWidget *parent) :
HDDisplay(NULL, "", parent),
HDDisplay(NULL, "HSI", parent),
gpsSatellites(),
satellitesUsed(0),
attXSet(0),
......@@ -102,11 +102,17 @@ HSIDisplay::HSIDisplay(QWidget *parent) :
connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), this, SLOT(setActiveUAS(UASInterface*)));
refreshTimer->setInterval(updateInterval);
columns = 1;
// this->setScene(new QGraphicsScene(-metricWidth/2.0f, -metricWidth/2.0f, metricWidth, metricWidth, this));
vwidth = 80;
vheight = 80;
xCenterPos = vwidth/2.0f;
yCenterPos = vheight/2.0f + topMargin - bottomMargin;
qDebug() << "CENTER" << xCenterPos << yCenterPos;
// Add interaction elements
QHBoxLayout* layout = new QHBoxLayout(this);
......
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