diff --git a/libraries/AP_Compass/Compass_learn.cpp b/libraries/AP_Compass/Compass_learn.cpp index 12861e3fe2..f39933f1fe 100644 --- a/libraries/AP_Compass/Compass_learn.cpp +++ b/libraries/AP_Compass/Compass_learn.cpp @@ -9,6 +9,8 @@ #if COMPASS_LEARN_ENABLED +#include + extern const AP_HAL::HAL &hal; // constructor