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;
|
AP_GPS gps;
|
||||||
#endif
|
#endif
|
||||||
AP_Baro barometer;
|
AP_Baro barometer;
|
||||||
|
#if AP_COMPASS_ENABLED
|
||||||
Compass compass;
|
Compass compass;
|
||||||
|
#endif
|
||||||
#if AP_INERTIALSENSOR_ENABLED
|
#if AP_INERTIALSENSOR_ENABLED
|
||||||
AP_InertialSensor ins;
|
AP_InertialSensor ins;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user