AP_Compass: fix example

This commit is contained in:
Pierre Kancir 2021-02-08 15:05:31 +01:00 committed by Andrew Tridgell
parent 95d0c67a99
commit 1082a799c2

View File

@ -23,6 +23,7 @@
#include <AP_AHRS/AP_AHRS.h>
#include <AP_Baro/AP_Baro.h>
#include <AP_Compass/AP_Compass.h>
#include <AP_ExternalAHRS/AP_ExternalAHRS.h>
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
@ -32,6 +33,9 @@ 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.
#if HAL_EXTERNAL_AHRS_ENABLED
AP_ExternalAHRS eAHRS;
#endif // HAL_EXTERNAL_AHRS_ENABLED
};
static DummyVehicle vehicle;