AP_GPS: use ground_course in preference to ground_course_cd

This commit is contained in:
Peter Barker 2021-01-22 09:19:38 +11:00 committed by Andrew Tridgell
parent 358069df24
commit d426d8e1f8

View File

@ -111,7 +111,7 @@ void loop()
hal.console->printf(" Alt: %.2fm GSP: %.2fm/s CoG: %d SAT: %d TIM: %u/%lu STATUS: %u\n",
(double)(loc.alt * 0.01f),
(double)gps.ground_speed(),
(int)gps.ground_course_cd() / 100,
(int)gps.ground_course(),
gps.num_sats(),
gps.time_week(),
(long unsigned int)gps.time_week_ms(),