If the distance from the pad cannot be computed (due to lacking GPS),
then don't try to report it.
Signed-off-by: Keith Packard <keithp@keithp.com>
/* If the rocket isn't on the pad, then report height */
if (Altos.ao_flight_drogue <= state.state &&
state.state < Altos.ao_flight_landed &&
/* If the rocket isn't on the pad, then report height */
if (Altos.ao_flight_drogue <= state.state &&
state.state < Altos.ao_flight_landed &&
+ state.from_pad != null &&
state.range >= 0)
{
voice.speak("Height %s, bearing %s %d, elevation %d, range %s.\n",
state.range >= 0)
{
voice.speak("Height %s, bearing %s %d, elevation %d, range %s.\n",