- public void show(AltosState state, int crc_errors) {
- height.show(state, crc_errors);
- speed.show(state, crc_errors);
- 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);
+ public void set_font() {
+ lat.set_font();
+ lon.set_font();
+ height.set_font();
+ speed.set_font();
+ bearing.set_font();
+ range.set_font();
+ distance.set_font();
+ elevation.set_font();
+ main.set_font();
+ apogee.set_font();
+ }
+
+ public void show(AltosState state, AltosListenerState listener_state) {
+ height.show(state, listener_state);
+ speed.show(state, listener_state);
+ if (state.gps != null && state.gps.connected) {
+ bearing.show(state, listener_state);
+ range.show(state, listener_state);
+ distance.show(state, listener_state);
+ elevation.show(state, listener_state);
+ lat.show(state, listener_state);
+ lon.show(state, listener_state);
+ } else {
+ bearing.hide();
+ range.hide();
+ distance.hide();
+ elevation.hide();
+ lat.hide();
+ lon.hide();
+ }
+ if (state.main_sense != AltosRecord.MISSING)
+ main.show(state, listener_state);
+ else
+ main.hide();
+ if (state.drogue_sense != AltosRecord.MISSING)
+ apogee.show(state, listener_state);
+ else
+ apogee.hide();
+ }
+
+ public String getName() {
+ return "Descent";