altosuilib: Put units on GPS altitude and height in info table
authorKeith Packard <keithp@keithp.com>
Thu, 13 Feb 2020 23:38:34 +0000 (15:38 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 13 Feb 2020 23:43:35 +0000 (15:43 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosInfoTable.java

index 09e497a5ec01a049ea5d54251bf24d14e840053e..6bfe0cf51b20d59c787fab8aebec58c83a7c7742 100644 (file)
@@ -201,9 +201,9 @@ public class AltosInfoTable extends JTable implements AltosFlightDisplay, Hierar
                                if (state.gps.lon != AltosLib.MISSING)
                                        info_add_deg(1, "Longitude", state.gps.lon, 'E', 'W');
                                if (state.gps.alt != AltosLib.MISSING)
-                                       info_add_row(1, "GPS altitude", "%8.1f", state.gps.alt);
+                                       info_add_row(1, "GPS altitude", "%8.1f m", state.gps.alt);
                                if (state.gps_height != AltosLib.MISSING)
-                                       info_add_row(1, "GPS height", "%8.1f", state.gps_height);
+                                       info_add_row(1, "GPS height", "%8.1f m", state.gps_height);
 
                                if (state.gps.ground_speed != AltosLib.MISSING && state.gps.course != AltosLib.MISSING)
                                        info_add_row(1, "GPS ground speed", "%6.1f m/s %3d°",