mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
2b19b8a988
this makes inflight compass learning faster, more accurate and much simpler
19 lines
286 B
C++
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;
|
|
};
|