mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Vehicle: don't create compass singleton if compass not enabled
This commit is contained in:
parent
53fd9056d8
commit
df8801955d
@ -317,7 +317,9 @@ protected:
|
||||
AP_GPS gps;
|
||||
#endif
|
||||
AP_Baro barometer;
|
||||
#if AP_COMPASS_ENABLED
|
||||
Compass compass;
|
||||
#endif
|
||||
#if AP_INERTIALSENSOR_ENABLED
|
||||
AP_InertialSensor ins;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user