summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2010-11-21 01:34:52 +1000
committerAnthony Towns <aj@erisian.com.au>2010-11-21 01:34:52 +1000
commit6f8bc2ad20b715343e0510563ab0f14787ef3e07 (patch)
tree7645d8fbc6a5d5e41aa13cedca6809febdb3e0bd
parent89f44c5587ea4f927d5e398b6af919df0d6561c3 (diff)
AltosDescent: switch elev from height to range
-rw-r--r--ao-tools/altosui/AltosDescent.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/ao-tools/altosui/AltosDescent.java b/ao-tools/altosui/AltosDescent.java
index 379946e1..930b8968 100644
--- a/ao-tools/altosui/AltosDescent.java
+++ b/ao-tools/altosui/AltosDescent.java
@@ -178,13 +178,12 @@ public class AltosDescent extends JComponent implements AltosFlightDisplay {
}
}
- class Height extends DescentDualValue {
+ class Height extends DescentValue {
void show (AltosState state, int crc_errors) {
- show("%6.0f m", state.height,
- "%3.0f°", state.elevation);
+ show("%6.0f m", state.height);
}
public Height (GridBagLayout layout, int x, int y) {
- super (layout, x, y, "Height/Elevation");
+ super (layout, x, y, "Height");
}
}
@@ -224,7 +223,7 @@ public class AltosDescent extends JComponent implements AltosFlightDisplay {
show("???", "???");
}
public LatLon (GridBagLayout layout, int x, int y) {
- super (layout, x, y, "Lat/Long");
+ super (layout, x, y, "Latitude, Longitude");
}
}
@@ -257,9 +256,9 @@ public class AltosDescent extends JComponent implements AltosFlightDisplay {
class Bearing extends DescentDualValue {
void show (AltosState state, int crc_errors) {
if (state.from_pad != null) {
- show( state.from_pad.bearing_words(
- AltosGreatCircle.BEARING_LONG),
- String.format("%3.0f°", state.from_pad.bearing));
+ show( String.format("%3.0f°", state.from_pad.bearing),
+ state.from_pad.bearing_words(
+ AltosGreatCircle.BEARING_LONG));
} else {
show("???", "???");
}
@@ -271,12 +270,13 @@ public class AltosDescent extends JComponent implements AltosFlightDisplay {
Bearing bearing;
- class Range extends DescentValue {
+ class Range extends DescentDualValue {
void show (AltosState state, int crc_errors) {
- show("%6.0f m", state.range);
+ show("%6.0f m", state.range,
+ "%3.0f°", state.elevation);
}
public Range (GridBagLayout layout, int x, int y) {
- super (layout, x, y, "Range");
+ super (layout, x, y, "Range, Elevation");
}
}