summaryrefslogtreecommitdiff
path: root/altoslib/AltosTelemetryLocation.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-07-10 16:15:52 -0700
committerKeith Packard <keithp@keithp.com>2014-07-10 16:15:52 -0700
commitb8fa4e9a077e8e04b922d0c434c139ad0a57ee66 (patch)
tree55cd8c16ba9cf9419cbc09a078f1652529004559 /altoslib/AltosTelemetryLocation.java
parent6f2a4c610dfacbf500650db0eeeca6623bb49c5c (diff)
altoslib: Clean up GPS DOP support in AltosState
Parse out hdop/pdop/vdop from telem and eeprom. Deal with legacy eeprom files that have dop/100 instead of dop/10 values. Clear state DOP values to MISSING at startup Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosTelemetryLocation.java')
-rw-r--r--altoslib/AltosTelemetryLocation.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/altoslib/AltosTelemetryLocation.java b/altoslib/AltosTelemetryLocation.java
index 32ca7608..9d50e2fa 100644
--- a/altoslib/AltosTelemetryLocation.java
+++ b/altoslib/AltosTelemetryLocation.java
@@ -80,8 +80,9 @@ public class AltosTelemetryLocation extends AltosTelemetryStandard {
gps.ground_speed = ground_speed * 1.0e-2;
gps.course = course * 2;
gps.climb_rate = climb_rate * 1.0e-2;
- gps.hdop = hdop;
- gps.vdop = vdop;
+ gps.pdop = pdop / 10.0;
+ gps.hdop = hdop / 10.0;
+ gps.vdop = vdop / 10.0;
}
state.set_temp_gps();
}