+ class LoggingReady extends LaunchStatus {
+ void show (AltosState state, int crc_errors) {
+ show();
+ if (state.data.flight != 0) {
+ if (state.data.state <= Altos.ao_flight_pad)
+ value.setText("Ready to record");
+ else if (state.data.state < Altos.ao_flight_landed)
+ value.setText("Recording data");
+ else
+ value.setText("Recorded data");
+ }
+ else
+ value.setText("Storage full");
+ lights.set(state.data.flight != 0);
+ }
+ public LoggingReady (GridBagLayout layout, int y) {
+ super(layout, y, "On-board Data Logging");
+ }
+ }
+
+ LoggingReady logging_ready;
+