summaryrefslogtreecommitdiff
path: root/altoslib/AltosFlightStats.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-02-07 20:36:10 -0800
committerKeith Packard <keithp@keithp.com>2015-02-07 20:36:10 -0800
commitc72d83ccd207b5300a90f2e84de6c5c96642478c (patch)
treeabf7d2b195033d01ae3f4ffd116d559033bd70eb /altoslib/AltosFlightStats.java
parent426bacbbd6e0573b143e7c48d71db977e53181fc (diff)
altosuilib: Don't offer to graph some GPS details that TM doesn't log
When using a TM eeprom file, various minor GPS details are logged (course, ground speed, climb rate, etc). Make sure these aren't offered up for graphing. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosFlightStats.java')
-rw-r--r--altoslib/AltosFlightStats.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/altoslib/AltosFlightStats.java b/altoslib/AltosFlightStats.java
index 677230e1..555a34b5 100644
--- a/altoslib/AltosFlightStats.java
+++ b/altoslib/AltosFlightStats.java
@@ -38,6 +38,7 @@ public class AltosFlightStats {
public boolean has_flight_data;
public boolean has_gps;
public boolean has_gps_sats;
+ public boolean has_gps_detail;
public boolean has_flight_adc;
public boolean has_battery;
public boolean has_rssi;
@@ -178,6 +179,8 @@ public class AltosFlightStats {
has_gps = true;
if (state.gps.cc_gps_sat != null)
has_gps_sats = true;
+ if (state.gps.course != AltosLib.MISSING)
+ has_gps_detail = true;
}
if (state.imu != null)
has_imu = true;