ArduPlane: 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 b2575c2b1d
commit 85e8b362a7
1 changed files with 1 additions and 3 deletions

View File

@ -185,9 +185,7 @@ void Plane::update_speed_height(void)
*/ */
void Plane::update_compass(void) void Plane::update_compass(void)
{ {
if (AP::compass().enabled() && compass.read()) { compass.read();
ahrs.set_compass(&compass);
}
} }
/* /*