mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-02-07 23:54:06 +08:00
global: use static method to construct AP_SerialManager
This commit is contained in:
committed by
Francisco Ferreira
parent
04866e9f76
commit
72fd2d6f05
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user