summaryrefslogtreecommitdiff
path: root/ao-tools
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2010-11-21 00:17:51 +1000
committerAnthony Towns <aj@erisian.com.au>2010-11-21 00:17:51 +1000
commit51e403145d28ac913e36d205077a613845596be2 (patch)
treef693ab6b891c527ca08d0670206c3b7f37b2b271 /ao-tools
parent25ffe1cc7823895886b4777f310b4bda1c80133b (diff)
AltosSiteMapTile: draw boost circle as well as landed
Diffstat (limited to 'ao-tools')
-rw-r--r--ao-tools/altosui/AltosSiteMapTile.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/ao-tools/altosui/AltosSiteMapTile.java b/ao-tools/altosui/AltosSiteMapTile.java
index 56bc98af..6035a794 100644
--- a/ao-tools/altosui/AltosSiteMapTile.java
+++ b/ao-tools/altosui/AltosSiteMapTile.java
@@ -137,6 +137,7 @@ public class AltosSiteMapTile extends JLayeredPane {
};
boolean drawn_landed_circle = false;
+ boolean drawn_boost_circle = false;
public void show(AltosState state, int crc_errors) {
if (!state.gps_ready) {
if (state.pad_lat == 0 && state.pad_lon == 0)
@@ -172,9 +173,16 @@ public class AltosSiteMapTile extends JLayeredPane {
}
}
+ if (state.state == 3 && !drawn_boost_circle) {
+ drawn_boost_circle = true;
+ g2d.setColor(Color.RED);
+ g2d.drawOval((int)last_pt.x-5, (int)last_pt.y-5, 10, 10);
+ g2d.drawOval((int)last_pt.x-20, (int)last_pt.y-20, 40, 40);
+ g2d.drawOval((int)last_pt.x-35, (int)last_pt.y-35, 70, 70);
+ }
if (state.state == 8 && !drawn_landed_circle) {
drawn_landed_circle = true;
- g2d.setColor(Color.RED);
+ g2d.setColor(Color.BLACK);
g2d.drawOval((int)pt.x-5, (int)pt.y-5, 10, 10);
g2d.drawOval((int)pt.x-20, (int)pt.y-20, 40, 40);
g2d.drawOval((int)pt.x-35, (int)pt.y-35, 70, 70);