global: use static method to construct AP_SerialManager

This commit is contained in:
Lucas De Marchi
2017-08-28 15:03:27 -07:00
committed by Francisco Ferreira
parent 04866e9f76
commit 72fd2d6f05
12 changed files with 15 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL();
static AP_InertialSensor ins = AP_InertialSensor::create();
static AP_GPS gps = AP_GPS::create();
static AP_Baro baro = AP_Baro::create();
AP_SerialManager serial_manager;
static AP_SerialManager serial_manager = AP_SerialManager::create();
// choose which AHRS system to use
AP_AHRS_DCM ahrs(ins, baro, gps);