ardupilot/libraries/AP_Compass/Compass_learn.h
Andrew Tridgell 2b19b8a988 AP_Compass: switched to GSF based compass learning
this makes inflight compass learning faster, more accurate and much
simpler
2021-11-01 09:00:27 +11:00

19 lines
286 B
C++

#pragma once
#include <AP_AHRS/AP_AHRS.h>
/*
compass learning using magnetic field tables from AP_Declination and GSF
*/
class CompassLearn {
public:
CompassLearn(Compass &compass);
// called on each compass read
void update(void);
private:
Compass &compass;
};