- bearing.show(state, crc_errors);
- range.show(state, crc_errors);
- elevation.show(state, crc_errors);
- lat.show(state, crc_errors);
- lon.show(state, crc_errors);
- main.show(state, crc_errors);
- apogee.show(state, crc_errors);
+ if (state.gps != null && state.gps.connected) {
+ bearing.show(state, crc_errors);
+ range.show(state, crc_errors);
+ distance.show(state, crc_errors);
+ elevation.show(state, crc_errors);
+ lat.show(state, crc_errors);
+ lon.show(state, crc_errors);
+ } else {
+ bearing.hide();
+ range.hide();
+ distance.hide();
+ elevation.hide();
+ lat.hide();
+ lon.hide();
+ }
+ if (state.main_sense != AltosRecord.MISSING)
+ main.show(state, crc_errors);
+ else
+ main.hide();
+ if (state.drogue_sense != AltosRecord.MISSING)
+ apogee.show(state, crc_errors);
+ else
+ apogee.hide();