altosui: Report baro ground alt for 'Pad Altitude' when GPS missing
[fw/altos] / altosuilib / AltosInfoTable.java
index e20a516c573e278de42696b0cfdba7fb4e84a2c6..226f112f9542dff7c328b91514704bb4931a9bb8 100644 (file)
@@ -242,7 +242,7 @@ public class AltosInfoTable extends JTable implements AltosFlightDisplay, Hierar
                                        }
                                        info_add_deg(1, "Pad latitude", state.pad_lat, 'N', 'S');
                                        info_add_deg(1, "Pad longitude", state.pad_lon, 'E', 'W');
-                                       info_add_row(1, "Pad GPS alt", "%6.0f m", state.pad_alt);
+                                       info_add_row(1, "Pad GPS alt", "%6.0f m", state.gps_ground_altitude());
                                }
                                if (state.gps.year != AltosLib.MISSING)
                                        info_add_row(2, "GPS date", "%04d-%02d-%02d",