Commit Graph
2 Commits
Author SHA1 Message Date
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
“Jim 4f48a09e7f AP_Compass: add AF9838 backend 2026-08-31 08:18:54 +10:00