summaryrefslogtreecommitdiff
path: root/altoslib/AltosFlightStats.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-02-06 20:40:05 -0800
committerKeith Packard <keithp@keithp.com>2015-02-06 20:40:05 -0800
commit58f06706383418ebfa56d88ba51411e6185e09df (patch)
treecdae7cfc88600996b58e6c96856f8018a52c2ad5 /altoslib/AltosFlightStats.java
parent35ad1833b10595564de84c88f44a214b1c134ccf (diff)
altosuilib: Don't show 'Sats in view' for TeleGPS eeprom graphing
We don't log the visible sats from TeleGPS, only the basic GPS info. Have AltosFlightStats track whether sat info is present, then use that to elide the Sats In View graph entry as needed. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosFlightStats.java')
-rw-r--r--altoslib/AltosFlightStats.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/altoslib/AltosFlightStats.java b/altoslib/AltosFlightStats.java
index 1b88cb9f..677230e1 100644
--- a/altoslib/AltosFlightStats.java
+++ b/altoslib/AltosFlightStats.java
@@ -37,6 +37,7 @@ public class AltosFlightStats {
public double pad_lat, pad_lon;
public boolean has_flight_data;
public boolean has_gps;
+ public boolean has_gps_sats;
public boolean has_flight_adc;
public boolean has_battery;
public boolean has_rssi;
@@ -113,6 +114,7 @@ public class AltosFlightStats {
lat = lon = AltosLib.MISSING;
has_flight_data = false;
has_gps = false;
+ has_gps_sats = false;
has_flight_adc = false;
has_battery = false;
has_rssi = false;
@@ -174,6 +176,8 @@ public class AltosFlightStats {
lat = state.gps.lat;
lon = state.gps.lon;
has_gps = true;
+ if (state.gps.cc_gps_sat != null)
+ has_gps_sats = true;
}
if (state.imu != null)
has_imu = true;