From 148e59a4de14735f032cb082b61ee12d1f03540b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 8 Jun 2012 16:07:40 +1000 Subject: [PATCH] GPS: tidy up the auto gps test --- libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.pde | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.pde b/libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.pde index 282be972fd..d88b9f699c 100644 --- a/libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.pde +++ b/libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.pde @@ -52,16 +52,17 @@ void loop() gps->update(); if (gps->new_data) { if (gps->fix) { - Serial.print("\nLat: "); + Serial.print("Lat: "); print_latlon(&Serial,gps->latitude); Serial.print(" Lon: "); print_latlon(&Serial,gps->longitude); - Serial.printf(" Alt: %.2fm GSP: %.2fm/s CoG: %d SAT: %d TIM: %lu", + Serial.printf(" Alt: %.2fm GSP: %.2fm/s CoG: %d SAT: %d TIM: %lu STATUS: %u\n", (float)gps->altitude / 100.0, (float)gps->ground_speed / 100.0, (int)gps->ground_course / 100, gps->num_sats, - gps->time); + gps->time, + gps->status()); } else { Serial.println("No fix"); }