From 59e308ae56bb33b10f7f1be289602e3ec5cc0f56 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Wed, 25 Dec 2024 06:39:04 +0100 Subject: [PATCH] Position hold depends on GPS (#14101) --- src/main/target/common_pre.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/target/common_pre.h b/src/main/target/common_pre.h index 505e48656..0db3a0d1d 100644 --- a/src/main/target/common_pre.h +++ b/src/main/target/common_pre.h @@ -483,3 +483,7 @@ #undef USE_RUNAWAY_TAKEOFF #endif // USE_WING + +#if defined(USE_POSITION_HOLD) && !defined(USE_GPS) +#error "USE_POSITION_HOLD requires USE_GPS to be defined" +#endif -- 2.11.4.GIT