Rover: stop using AHRS as conduit for Compass pointer

This commit is contained in:
Peter Barker 2021-07-26 10:32:13 +10:00 committed by Peter Barker
parent 85e8b362a7
commit 8c2cf123af

View File

@ -5,9 +5,7 @@
// check for new compass data - 10Hz // check for new compass data - 10Hz
void Rover::update_compass(void) void Rover::update_compass(void)
{ {
if (AP::compass().enabled() && compass.read()) { compass.read();
ahrs.set_compass(&compass);
}
} }
// Save compass offsets // Save compass offsets