diff options
| author | Keith Packard <keithp@keithp.com> | 2017-05-25 22:36:05 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-05-25 22:37:22 -0700 | 
| commit | 222158581887b5f9e8b9843d14321c313fa023fa (patch) | |
| tree | 4baab1916948932f9c5eff5960d685b58d62f470 /altoslib/AltosTelemetryLocation.java | |
| parent | 4d497c1be534e2b206edec3c096198c8ea64cebe (diff) | |
altoslib/altosuilib/altosui: More work towards using AltosFlightSeries for analysis
Graphing and CSV seem complete now; stats still missing lots of stuff.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosTelemetryLocation.java')
| -rw-r--r-- | altoslib/AltosTelemetryLocation.java | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/altoslib/AltosTelemetryLocation.java b/altoslib/AltosTelemetryLocation.java index 5eb727d6..c7b7fa22 100644 --- a/altoslib/AltosTelemetryLocation.java +++ b/altoslib/AltosTelemetryLocation.java @@ -58,6 +58,9 @@ public class AltosTelemetryLocation extends AltosTelemetryStandard {  		gps.nsat = flags & 0xf;  		gps.locked = (flags & (1 << 4)) != 0;  		gps.connected = (flags & (1 << 5)) != 0; +		gps.pdop = pdop() / 10.0; +		gps.hdop = hdop() / 10.0; +		gps.vdop = vdop() / 10.0;  		if (gps.locked) {  			gps.lat = latitude() * 1.0e-7; @@ -72,12 +75,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.pdop = pdop() / 10.0; -			gps.hdop = hdop() / 10.0; -			gps.vdop = vdop() / 10.0;  			if (gps.nsat >= 4) -				cal_data.set_gps_altitude(gps.alt); +				cal_data.set_gps(gps);  		}  		listener.set_gps(gps);  	} | 
