From f493b1c07aa4677ba98cda6bf88f517dda7a4af8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 16 Feb 2014 13:21:58 +1100 Subject: [PATCH] AntennaTracker: change to Compass::learn_offsets --- Tools/AntennaTracker/sensors.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/AntennaTracker/sensors.pde b/Tools/AntennaTracker/sensors.pde index ee9b351c4f..b2773c97eb 100644 --- a/Tools/AntennaTracker/sensors.pde +++ b/Tools/AntennaTracker/sensors.pde @@ -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); }