diff options
| author | Keith Packard <keithp@keithp.com> | 2010-07-28 21:01:41 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2010-07-28 21:01:41 -0700 | 
| commit | 5fd225c3a52445ecdc7c04fac5e3d9a0db177c66 (patch) | |
| tree | 2a1b305e67b7b6794eeb9627768d46a2feb570bb | |
| parent | d2d772164af95a35ea0f5d2413a5be67de9a210f (diff) | |
altosui: report rocket ground bearing at landing only if known
if state.from_pad is null, then there isn't any data to report.
Signed-off-by: Keith Packard <keithp@keithp.com>
| -rw-r--r-- | ao-tools/altosui/AltosUI.java | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/ao-tools/altosui/AltosUI.java b/ao-tools/altosui/AltosUI.java index 863d173e..5c771df2 100644 --- a/ao-tools/altosui/AltosUI.java +++ b/ao-tools/altosui/AltosUI.java @@ -374,7 +374,7 @@ public class AltosUI extends JFrame {  					voice.speak("rocket landed safely");  				else  					voice.speak("rocket may have crashed"); -				if (state.gps != null) +				if (state.from_pad != null)  					voice.speak("bearing %d degrees, range %d meters",  						    (int) (state.from_pad.bearing + 0.5),  						    (int) (state.from_pad.distance + 0.5)); | 
