From 8c2cf123af4c10bc848645256136ba65e1e5f3dc Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 26 Jul 2021 10:32:13 +1000 Subject: [PATCH] Rover: stop using AHRS as conduit for Compass pointer --- Rover/sensors.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Rover/sensors.cpp b/Rover/sensors.cpp index 69bac92917..bce8375485 100644 --- a/Rover/sensors.cpp +++ b/Rover/sensors.cpp @@ -5,9 +5,7 @@ // check for new compass data - 10Hz void Rover::update_compass(void) { - if (AP::compass().enabled() && compass.read()) { - ahrs.set_compass(&compass); - } + compass.read(); } // Save compass offsets