global: use static method to construct AP_InertialSensor

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