projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
25ffe1c
)
AltosSiteMapTile: draw boost circle as well as landed
author
Anthony Towns
<aj@erisian.com.au>
Sat, 20 Nov 2010 14:17:51 +0000
(
00:17
+1000)
committer
Anthony Towns
<aj@erisian.com.au>
Sat, 20 Nov 2010 14:17:51 +0000
(
00:17
+1000)
ao-tools/altosui/AltosSiteMapTile.java
patch
|
blob
|
history
diff --git
a/ao-tools/altosui/AltosSiteMapTile.java
b/ao-tools/altosui/AltosSiteMapTile.java
index 56bc98afa60d2d2836c855f11dee4bde20024afd..6035a7940e7cb8507751ce813fd712c2daf82ff6 100644
(file)
--- 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_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)
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;
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);
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);