From: Keith Packard Date: Sat, 18 Jul 2009 08:47:34 +0000 (-0700) Subject: Don't report distance to rocket without valid GPS X-Git-Tag: 0.5~14 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=8ddf3345afd8cbf638e81993633f7861d8dbca63 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 --- 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);