diff options
author | Keith Packard <keithp@keithp.com> | 2009-07-18 01:47:34 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-07-18 01:47:34 -0700 |
commit | 8ddf3345afd8cbf638e81993633f7861d8dbca63 (patch) | |
tree | 7e4a2b019bfb6bb1f050e1c2aa23c929454560da | |
parent | fbcb7b20fa701a6e534d38e307839466545668e3 (diff) |
Don't report distance to rocket without valid GPS
When there's no valid GPS data, don't try to report the distance and bearing
to the rocket after landing.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | aoview/aoview_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aoview/aoview_state.c b/aoview/aoview_state.c index 9852cabd..7efd33b0 100644 --- a/aoview/aoview_state.c +++ b/aoview/aoview_state.c @@ -251,7 +251,7 @@ aoview_state_timeout(gpointer data) aoview_voice_speak("rocket landed safely\n"); else aoview_voice_speak("rocket may have crashed\n"); - if (aostate.gps.gps_connected) { + if (aostate.gps_valid) { aoview_voice_speak("rocket reported %s of pad distance %d meters\n", aoview_compass_point(aostate.bearing), (int) aostate.distance); |