diff --git a/libraries/AP_Compass/examples/AP_Compass_test/AP_Compass_test.cpp b/libraries/AP_Compass/examples/AP_Compass_test/AP_Compass_test.cpp index 9c2c435b54..7571e086c8 100644 --- a/libraries/AP_Compass/examples/AP_Compass_test/AP_Compass_test.cpp +++ b/libraries/AP_Compass/examples/AP_Compass_test/AP_Compass_test.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include const AP_HAL::HAL& hal = AP_HAL::get_HAL(); @@ -30,6 +31,7 @@ static AP_BoardConfig board_config; class DummyVehicle { public: AP_AHRS_DCM ahrs; // Need since https://github.com/ArduPilot/ardupilot/pull/10890 + AP_Baro baro; // Compass tries to set magnetic model based on location. }; static DummyVehicle vehicle;