summaryrefslogtreecommitdiff
path: root/altosuilib/AltosInfoTable.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-11-06 16:02:07 -0800
committerKeith Packard <keithp@keithp.com>2014-11-06 16:02:07 -0800
commit2313cdacefb2139bc68cd98e782c54d706af0704 (patch)
treebf687af3961dee67d6f2fed6619e5d91422e9c9e /altosuilib/AltosInfoTable.java
parent2f0ff9675017655846a8abc617b4dc9a3666d0b9 (diff)
altosuilib: GPS errors are recorded in floating point, not integers
Fix the format used to present them in the info table. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosInfoTable.java')
-rw-r--r--altosuilib/AltosInfoTable.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/altosuilib/AltosInfoTable.java b/altosuilib/AltosInfoTable.java
index 625fe76f..91cc43bb 100644
--- a/altosuilib/AltosInfoTable.java
+++ b/altosuilib/AltosInfoTable.java
@@ -207,7 +207,7 @@ public class AltosInfoTable extends JTable implements AltosFlightDisplay, Hierar
state.gps.climb_rate);
if (state.gps.h_error != AltosLib.MISSING && state.gps.v_error != AltosLib.MISSING)
- info_add_row(1, "GPS error", "%6d m(h)%3d m(v)",
+ info_add_row(1, "GPS error", "%6.0f m(h)%6.0f m(v)",
state.gps.h_error, state.gps.v_error);
if (state.gps.pdop != AltosLib.MISSING &&
state.gps.hdop != AltosLib.MISSING &&