global: use static method to construct AP_GPS

This commit is contained in:
Lucas De Marchi
2017-09-26 03:01:21 +01:00
committed by Francisco Ferreira
parent 2cb2727a31
commit 8094482f21
11 changed files with 11 additions and 12 deletions
@@ -14,7 +14,7 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL();
// sensor declaration
static AP_InertialSensor ins = AP_InertialSensor::create();
AP_GPS gps;
static AP_GPS gps = AP_GPS::create();
static AP_Baro baro = AP_Baro::create();
AP_SerialManager serial_manager;