- public void show(AltosState state, int crc_errors) {
- lat.show(state, crc_errors);
- lon.show(state, crc_errors);
- height.show(state, crc_errors);
- main.show(state, crc_errors);
- apogee.show(state, crc_errors);
- speed.show(state, crc_errors);
- accel.show(state, crc_errors);
+ public void set_font() {
+ cur.setFont(Altos.label_font);
+ max.setFont(Altos.label_font);
+ lat.set_font();
+ lon.set_font();
+ main.set_font();
+ apogee.set_font();
+ height.set_font();
+ speed.set_font();
+ accel.set_font();
+ }
+
+ public void show(AltosState state, AltosListenerState listener_state) {
+ if (state.gps != null && state.gps.connected) {
+ lat.show(state, listener_state);
+ lon.show(state, listener_state);
+ } else {
+ lat.hide();
+ lon.hide();
+ }
+ height.show(state, listener_state);
+ if (state.main_voltage != AltosLib.MISSING)
+ main.show(state, listener_state);
+ else
+ main.hide();
+ if (state.apogee_voltage != AltosLib.MISSING)
+ apogee.show(state, listener_state);
+ else
+ apogee.hide();
+ speed.show(state, listener_state);
+ accel.show(state, listener_state);