global: use static method to construct AP_Baro

This commit is contained in:
Lucas De Marchi
2017-08-08 00:50:14 -07:00
committed by Francisco Ferreira
parent c5c1d5abfe
commit 91feec0e14
11 changed files with 11 additions and 11 deletions

View File

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