mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
LP-536 Display information for up to 24 satellites instead of only 16.
Information for 24 satellites is fine when using 3 constellations. I think displaying more is overkill.
This commit is contained in:
parent
1a4bb0cc5b
commit
4ca27d2413
@ -47,7 +47,7 @@ public slots:
|
||||
private slots:
|
||||
|
||||
private:
|
||||
static const int MAX_SATTELITES = 16;
|
||||
static const int MAX_SATTELITES = 24;
|
||||
int satellites[MAX_SATTELITES][4];
|
||||
QGraphicsScene *scene;
|
||||
QSvgRenderer *renderer;
|
||||
|
@ -16,7 +16,7 @@ public slots:
|
||||
void updateSat(int index, int prn, int elevation, int azimuth, int snr);
|
||||
|
||||
private:
|
||||
static const int MAX_SATTELITES = 16;
|
||||
static const int MAX_SATTELITES = 24;
|
||||
int satellites[MAX_SATTELITES][4];
|
||||
QGraphicsScene *scene;
|
||||
QGraphicsRectItem *boxes[MAX_SATTELITES];
|
||||
|
@ -2,10 +2,10 @@
|
||||
<object name="GPSSatellites" singleinstance="true" settings="false" category="Sensors">
|
||||
<description>Contains information about the GPS satellites in view from @ref GPSModule.</description>
|
||||
<field name="SatsInView" units="" type="int8" elements="1"/>
|
||||
<field name="PRN" units="" type="uint8" elements="16"/>
|
||||
<field name="Elevation" units="degrees" type="int8" elements="16"/>
|
||||
<field name="Azimuth" units="degrees" type="int16" elements="16"/>
|
||||
<field name="SNR" units="" type="int8" elements="16"/>
|
||||
<field name="PRN" units="" type="uint8" elements="24"/>
|
||||
<field name="Elevation" units="degrees" type="int8" elements="24"/>
|
||||
<field name="Azimuth" units="degrees" type="int16" elements="24"/>
|
||||
<field name="SNR" units="" type="int8" elements="24"/>
|
||||
<access gcs="readwrite" flight="readwrite"/>
|
||||
<telemetrygcs acked="false" updatemode="manual" period="0"/>
|
||||
<telemetryflight acked="false" updatemode="periodic" period="10000"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user