OP-1900 have path_progress updated correctly for leg_remaining and error_below end...
[librepilot.git] / ground / openpilotgcs / src / plugins / gpsdisplay / gpssnrwidget.h
blob1ff48b168ff7b5526563946d104334b41014a40a
1 #ifndef GPSSNRWIDGET_H
2 #define GPSSNRWIDGET_H
4 #include <QGraphicsView>
5 #include <QGraphicsRectItem>
7 class GpsSnrWidget : public QGraphicsView {
8 Q_OBJECT
9 public:
10 explicit GpsSnrWidget(QWidget *parent = 0);
11 ~GpsSnrWidget();
13 signals:
15 public slots:
16 void updateSat(int index, int prn, int elevation, int azimuth, int snr);
18 private:
19 static const int MAX_SATTELITES = 16;
20 int satellites[MAX_SATTELITES][4];
21 QGraphicsScene *scene;
22 QGraphicsRectItem *boxes[MAX_SATTELITES];
23 QGraphicsSimpleTextItem *satTexts[MAX_SATTELITES];
24 QGraphicsSimpleTextItem *satSNRs[MAX_SATTELITES];
26 void drawSat(int index);
28 protected:
29 void showEvent(QShowEvent *event);
30 void resizeEvent(QResizeEvent *event);
33 #endif // GPSSNRWIDGET_H