AntennaTracker: change to Compass::learn_offsets

This commit is contained in:
Andrew Tridgell 2014-02-16 13:21:58 +11:00
parent 6618bdae67
commit f493b1c07a

View File

@ -30,7 +30,7 @@ static void update_compass(void)
{
if (g.compass_enabled && compass.read()) {
ahrs.set_compass(&compass);
compass.null_offsets();
compass.learn_offsets();
} else {
ahrs.set_compass(NULL);
}