Files
ardupilot/libraries/AP_Compass
Andrew Tridgell ff37fde6f1 AP_Compass: AF9838: set rotation after registering the compass
The constructor called set_rotation() before register_compass() had
assigned the backend instance, so it wrote the rotation of compass
instance 0. Every AF9838 probe on an external bus constructs a backend,
so on boards without an AF9838 each failed probe cleared the rotation
of whichever compass was already registered as instance 0. An external
IST8310 lost its PITCH_180 rotation this way.
2026-09-04 20:39:10 +10:00
..