altosuilib: GPS errors are recorded in floating point, not integers
authorKeith Packard <keithp@keithp.com>
Fri, 7 Nov 2014 00:02:07 +0000 (16:02 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 7 Nov 2014 00:02:07 +0000 (16:02 -0800)
Fix the format used to present them in the info table.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosInfoTable.java

index 625fe76f6ff33f09416490b057f3fc99a97e4be6..91cc43bb29541bea306232b90dd10ab409996bb3 100644 (file)
@@ -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 &&