From: Keith Packard Date: Fri, 7 Nov 2014 00:02:07 +0000 (-0800) Subject: altosuilib: GPS errors are recorded in floating point, not integers X-Git-Tag: bdale-altosdroid~6^2~21 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=2313cdacefb2139bc68cd98e782c54d706af0704 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 --- 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 &&