AP_GPS: fixed example builds with change to init()

This commit is contained in:
Andrew Tridgell 2014-03-16 06:44:50 +11:00
parent 2b8cc1a1df
commit 6b5d27efbb
5 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ void setup()
hal.uartB->begin(57600, 128, 16);
gps.print_errors = true;
gps.init(hal.uartB); // GPS Initialization
gps.init(hal.uartB, GPS::GPS_ENGINE_AIRBORNE_4G); // GPS Initialization
hal.scheduler->delay(1000);
}
void loop()

View File

@ -35,7 +35,7 @@ void setup()
hal.console->println("GPS AUTO library test");
gps = &GPS;
gps->init(hal.uartB, GPS::GPS_ENGINE_AIRBORNE_2G);
gps->init(hal.uartB, GPS::GPS_ENGINE_AIRBORNE_4G);
// initialise the leds
board_led.init();

View File

@ -30,7 +30,7 @@ void setup()
gps.print_errors = true;
hal.console->println("GPS MTK library test");
gps.init(hal.uartB); // GPS Initialization
gps.init(hal.uartB, GPS::GPS_ENGINE_AIRBORNE_4G); // GPS Initialization
}
void loop()

View File

@ -51,7 +51,7 @@ void setup()
for (uint8_t i = 0; i < sizeof(sirf_to_nmea); i++)
hal.uartB->write(sirf_to_nmea[i]);
gps->init(hal.uartB);
gps->init(hal.uartB, GPS::GPS_ENGINE_AIRBORNE_4G);
}
void loop()

View File

@ -30,7 +30,7 @@ void setup()
gps.print_errors = true;
hal.console->println("GPS UBLOX library test");
gps.init(hal.uartB, GPS::GPS_ENGINE_AIRBORNE_2G); // GPS Initialization
gps.init(hal.uartB, GPS::GPS_ENGINE_AIRBORNE_4G); // GPS Initialization
}
void loop()