mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-02-08 20:09:13 +08:00
global: use static method to construct AP_Baro
This commit is contained in:
committed by
Francisco Ferreira
parent
c5c1d5abfe
commit
91feec0e14
@@ -15,7 +15,7 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
||||
// sensor declaration
|
||||
AP_InertialSensor ins;
|
||||
AP_GPS gps;
|
||||
AP_Baro baro;
|
||||
static AP_Baro baro = AP_Baro::create();
|
||||
AP_SerialManager serial_manager;
|
||||
|
||||
// choose which AHRS system to use
|
||||
|
||||
Reference in New Issue
Block a user