Browse Source

AP_GPS: fixed examples build

master
Andrew Tridgell 12 years ago
parent
commit
c7141c4851
  1. 6
      libraries/AP_GPS/examples/GPS_406_test/GPS_406_test.pde
  2. 6
      libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.pde
  3. 6
      libraries/AP_GPS/examples/GPS_MTK_test/GPS_MTK_test.pde
  4. 6
      libraries/AP_GPS/examples/GPS_NMEA_test/GPS_NMEA_test.pde
  5. 6
      libraries/AP_GPS/examples/GPS_UBLOX_test/GPS_UBLOX_test.pde

6
libraries/AP_GPS/examples/GPS_406_test/GPS_406_test.pde

@ -40,11 +40,11 @@ void loop() @@ -40,11 +40,11 @@ void loop()
hal.console->print(" Lon:");
hal.console->print((float)gps.longitude / T7, DEC);
hal.console->print(" Alt:");
hal.console->print((float)gps.altitude / 100.0, DEC);
hal.console->print((float)gps.altitude_cm / 100.0, DEC);
hal.console->print(" GSP:");
hal.console->print(gps.ground_speed / 100.0);
hal.console->print(gps.ground_speed_cm / 100.0);
hal.console->print(" COG:");
hal.console->print(gps.ground_course / 100, DEC);
hal.console->print(gps.ground_course_cd / 100, DEC);
hal.console->print(" SAT:");
hal.console->print(gps.num_sats, DEC);
hal.console->print(" FIX:");

6
libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.pde

@ -43,9 +43,9 @@ void loop() @@ -43,9 +43,9 @@ void loop()
hal.console->print(" Lon: ");
print_latlon(hal.console,gps->longitude);
hal.console->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,
(float)gps->altitude_cm / 100.0,
(float)gps->ground_speed_cm / 100.0,
(int)gps->ground_course_cd / 100,
gps->num_sats,
gps->time,
gps->status());

6
libraries/AP_GPS/examples/GPS_MTK_test/GPS_MTK_test.pde

@ -43,11 +43,11 @@ void loop() @@ -43,11 +43,11 @@ void loop()
hal.console->print(" Lon:");
hal.console->print((float)gps.longitude / T7, DEC);
hal.console->print(" Alt:");
hal.console->print((float)gps.altitude / 100.0, DEC);
hal.console->print((float)gps.altitude_cm / 100.0, DEC);
hal.console->print(" GSP:");
hal.console->print(gps.ground_speed / 100.0);
hal.console->print(gps.ground_speed_cm / 100.0);
hal.console->print(" COG:");
hal.console->print(gps.ground_course / 100.0, DEC);
hal.console->print(gps.ground_course_cd / 100.0, DEC);
hal.console->print(" SAT:");
hal.console->print(gps.num_sats, DEC);
hal.console->print(" FIX:");

6
libraries/AP_GPS/examples/GPS_NMEA_test/GPS_NMEA_test.pde

@ -63,9 +63,9 @@ void loop() @@ -63,9 +63,9 @@ void loop()
"CoG: %d SAT: %d TIM: %lu\r\n"),
(float)gps->latitude / T7,
(float)gps->longitude / T7,
(float)gps->altitude / 100.0,
(float)gps->ground_speed / 100.0,
(int)gps->ground_course / 100,
(float)gps->altitude_cm / 100.0,
(float)gps->ground_speed_cm / 100.0,
(int)gps->ground_course_cd / 100,
gps->num_sats,
gps->time);
} else {

6
libraries/AP_GPS/examples/GPS_UBLOX_test/GPS_UBLOX_test.pde

@ -43,11 +43,11 @@ void loop() @@ -43,11 +43,11 @@ void loop()
hal.console->print(" Lon:");
hal.console->print((float)gps.longitude / T7, DEC);
hal.console->print(" Alt:");
hal.console->print((float)gps.altitude / 100.0, DEC);
hal.console->print((float)gps.altitude_cm / 100.0, DEC);
hal.console->print(" GSP:");
hal.console->print(gps.ground_speed / 100.0);
hal.console->print(gps.ground_speed_cm / 100.0);
hal.console->print(" COG:");
hal.console->print(gps.ground_course / 100.0, DEC);
hal.console->print(gps.ground_course_cd / 100.0, DEC);
Vector2f vel = Vector2f(gps.velocity_north(), gps.velocity_east());
hal.console->printf(" VEL: %.2f %.2f %.2f",
vel.x,

Loading…
Cancel
Save