mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
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.