altos: Dump GPS dop/course data from 'g' command
authorKeith Packard <keithp@keithp.com>
Sun, 9 Apr 2023 23:44:04 +0000 (16:44 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 9 Apr 2023 23:47:08 +0000 (16:47 -0700)
This lets monitor idle show more of the GPS status

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_gps_show.c

index ab29e5e507daa74828f5a3d898347460f44f9f9c..c1d5e9bfd119c2aca10146648567bc7ebdcfff6b 100644 (file)
@@ -35,6 +35,9 @@ ao_gps_show(void)
 #else
        printf ("Alt: %d\n", AO_TELEMETRY_LOCATION_ALTITUDE(&ao_gps_data));
 #endif
+       printf ("Pdop/Hdop/Vdop: %u %u %u\n", ao_gps_data.pdop, ao_gps_data.hdop, ao_gps_data.vdop);
+       printf ("Ground Speed/Climb Rate/Course: %u %d %u\n", ao_gps_data.ground_speed,
+               ao_gps_data.climb_rate, ao_gps_data.course);
        printf ("Flags: 0x%x\n", ao_gps_data.flags);
        printf ("Sats: %d", ao_gps_tracking_data.channels);
        for (i = 0; i < ao_gps_tracking_data.channels; i++)