AP_Compass: fix example
This commit is contained in:
parent
95d0c67a99
commit
1082a799c2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user