mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-08 02:57:16 +08:00
global: use static method to construct AP_GPS
This commit is contained in:
committed by
Francisco Ferreira
parent
2cb2727a31
commit
8094482f21
@@ -14,7 +14,7 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
||||
|
||||
// sensor declaration
|
||||
static AP_InertialSensor ins = AP_InertialSensor::create();
|
||||
AP_GPS gps;
|
||||
static AP_GPS gps = AP_GPS::create();
|
||||
static AP_Baro baro = AP_Baro::create();
|
||||
AP_SerialManager serial_manager;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user