Browse Source

AP_GPS: use ground_course in preference to ground_course_cd

zr-v5.1
Peter Barker 4 years ago committed by Andrew Tridgell
parent
commit
d426d8e1f8
  1. 2
      libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.cpp

2
libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.cpp

@ -111,7 +111,7 @@ void loop() @@ -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(),

Loading…
Cancel
Save