diff --git a/libraries/AP_InertialSensor/examples/INS_generic/INS_generic.cpp b/libraries/AP_InertialSensor/examples/INS_generic/INS_generic.cpp index ea1ee6534c..d1fe927dc5 100644 --- a/libraries/AP_InertialSensor/examples/INS_generic/INS_generic.cpp +++ b/libraries/AP_InertialSensor/examples/INS_generic/INS_generic.cpp @@ -5,10 +5,14 @@ #include #include #include +#include const AP_HAL::HAL &hal = AP_HAL::get_HAL(); static AP_InertialSensor ins; +#if HAL_EXTERNAL_AHRS_ENABLED +static AP_ExternalAHRS eAHRS; +#endif // HAL_EXTERNAL_AHRS_ENABLED static void display_offsets_and_scaling(); static void run_test();