Browse Source

Working on text in HSI display

QGC4.4
pixhawk 15 years ago
parent
commit
425e32bd9d
  1. 8
      src/ui/HSIDisplay.cc
  2. 1
      src/ui/HSIDisplay.h

8
src/ui/HSIDisplay.cc

@ -40,7 +40,8 @@ This file is part of the PIXHAWK project
HSIDisplay::HSIDisplay(QWidget *parent) : HSIDisplay::HSIDisplay(QWidget *parent) :
HDDisplay(NULL, parent), HDDisplay(NULL, parent),
gpsSatellites() gpsSatellites(),
satellitesUsed(0)
{ {
} }
@ -174,6 +175,11 @@ void HSIDisplay::drawGPS()
const float margin = 0.2f; // 20% margin of total width on each side const float margin = 0.2f; // 20% margin of total width on each side
float radius = (vwidth - vwidth * 2.0f * margin) / 2.0f; float radius = (vwidth - vwidth * 2.0f * margin) / 2.0f;
// Draw satellite labels
// QString label;
// label.sprintf("%05.1f", value);
// paintText(label, color, 4.5f, xRef-7.5f, yRef-2.0f, painter);
for (int i = 0; i < gpsSatellites.size(); i++) for (int i = 0; i < gpsSatellites.size(); i++)
{ {
GPSSatellite* sat = gpsSatellites.at(i); GPSSatellite* sat = gpsSatellites.at(i);

1
src/ui/HSIDisplay.h

@ -97,6 +97,7 @@ protected:
}; };
QVector<GPSSatellite*> gpsSatellites; QVector<GPSSatellite*> gpsSatellites;
unsigned int satellitesUsed;
private: private:
}; };

Loading…
Cancel
Save