- Range range;
-
- class Elevation extends DescentValue {
- void show (AltosState state, int crc_errors) {
- show("%3.0f°", state.elevation);
- }
- public Elevation (GridBagLayout layout, int x, int y) {
- super (layout, x, y, "Elevation");
- }
- }
-
- Elevation elevation;
-
- public void reset() {
- lat.reset();
- lon.reset();
- height.reset();
- speed.reset();
- bearing.reset();
- range.reset();
- elevation.reset();
- main.reset();
- apogee.reset();
- }
-
- public void show(AltosState state, int crc_errors) {
- height.show(state, crc_errors);
- speed.show(state, crc_errors);
- if (state.gps != null) {
- 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);
- } else {
- bearing.hide();
- range.hide();
- elevation.hide();
- lat.hide();
- lon.hide();
- }
- main.show(state, crc_errors);
- apogee.show(state, crc_errors);