2017-08-18 05:58:08 -03:00
|
|
|
#pragma once
|
|
|
|
|
2018-04-04 02:49:56 -03:00
|
|
|
#include <AP_AHRS/AP_AHRS.h>
|
|
|
|
|
2017-08-18 05:58:08 -03:00
|
|
|
/*
|
2021-10-14 05:48:47 -03:00
|
|
|
compass learning using magnetic field tables from AP_Declination and GSF
|
2017-08-18 05:58:08 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
class CompassLearn {
|
|
|
|
public:
|
2018-10-19 02:07:53 -03:00
|
|
|
CompassLearn(Compass &compass);
|
2017-08-18 05:58:08 -03:00
|
|
|
|
|
|
|
// called on each compass read
|
|
|
|
void update(void);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Compass &compass;
|
|
|
|
};
|