mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-08 02:57:16 +08:00
global: use static method to construct AP_InertialSensor
This commit is contained in:
committed by
Francisco Ferreira
parent
d566567d87
commit
87b30b4552
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user