AP_Vehicle: use AP_GPS_ENABLED to exclude more code when GPS not compiled in

This commit is contained in:
Peter Barker 2023-09-25 18:16:34 +10:00 committed by Peter Barker
parent 132b04562d
commit 8cfdf10cf1
1 changed files with 2 additions and 0 deletions

View File

@ -289,7 +289,9 @@ protected:
float G_Dt;
// sensor drivers
#if AP_GPS_ENABLED
AP_GPS gps;
#endif
AP_Baro barometer;
Compass compass;
AP_InertialSensor ins;