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
1 changed files with 1 additions and 3 deletions

View File

@ -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