- public void show(AltosState state, int crc_errors) {
- if (state.gps != null) {
- lat.show(state, crc_errors);
- lon.show(state, crc_errors);
+ public void units_changed(boolean imperial_units) {
+ lat.units_changed(imperial_units);
+ lon.units_changed(imperial_units);
+ main.units_changed(imperial_units);
+ apogee.units_changed(imperial_units);
+ height.units_changed(imperial_units);
+ speed.units_changed(imperial_units);
+ accel.units_changed(imperial_units);
+ orient.units_changed(imperial_units);
+ }
+
+ public void show(AltosState state, AltosListenerState listener_state) {
+ if (!isShowing()) {
+ last_state = state;
+ last_listener_state = listener_state;
+ return;
+ }
+
+ if (state.gps != null && state.gps.connected) {
+ lat.show(state, listener_state);
+ lon.show(state, listener_state);