mirror of https://github.com/ArduPilot/ardupilot
AP_GPS: Add missing setup for GPS_AUTO_test
GPS_AUTO_test was missing some setup lines.
This commit is contained in:
parent
7f7d92913e
commit
be67b019a7
|
@ -37,6 +37,7 @@
|
||||||
#include <AP_Rally.h>
|
#include <AP_Rally.h>
|
||||||
#include <AP_Scheduler.h>
|
#include <AP_Scheduler.h>
|
||||||
#include <AP_BattMonitor.h>
|
#include <AP_BattMonitor.h>
|
||||||
|
#include <AP_SerialManager.h>
|
||||||
|
|
||||||
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
|
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
|
||||||
|
|
||||||
|
@ -45,6 +46,8 @@ AP_BoardLED board_led;
|
||||||
|
|
||||||
AP_GPS gps;
|
AP_GPS gps;
|
||||||
|
|
||||||
|
AP_SerialManager serial_manager;
|
||||||
|
|
||||||
#define T6 1000000
|
#define T6 1000000
|
||||||
#define T7 10000000
|
#define T7 10000000
|
||||||
|
|
||||||
|
@ -54,6 +57,8 @@ void setup()
|
||||||
|
|
||||||
// initialise the leds
|
// initialise the leds
|
||||||
board_led.init();
|
board_led.init();
|
||||||
|
serial_manager.init();
|
||||||
|
gps.init(NULL, serial_manager);
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
|
|
Loading…
Reference in New Issue