mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
global: use static method to construct AP_SerialManager
This commit is contained in:
1 parent
04866e9f76
commit
72fd2d6f05
12 files changed
+15
-13
No files matched your search
@@ -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