global: use static method to construct AP_InertialSensor

This commit is contained in:
Lucas De Marchi authored and Francisco Ferreira committed 2017-09-26 03:01:21 +01:00
1 parent d566567d87
commit 87b30b4552
12 files changed
+12 -13

No files matched your search

@@ -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;