From 8cfdf10cf1f3d8bd662bf2f49d633a56baf2f0c1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 25 Sep 2023 18:16:34 +1000 Subject: [PATCH] AP_Vehicle: use AP_GPS_ENABLED to exclude more code when GPS not compiled in --- libraries/AP_Vehicle/AP_Vehicle.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index 89a7f1a912..18b43fc020 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -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;