Commit Graph
4 Commits
Author SHA1 Message Date
Peter Barker dabcf0e91c AP_Compass: make compass instance number part of AP_Compass_Backend
rather than each backend storing this itself.

This allows many methods to assume that they are working on the current instance number rather than being passed the instance number

registering the compass via the compass backend method now infers setting the device ID
2025-10-14 14:48:58 +11:00
Peter Barker 39a4032f70 AP_Compass: add a probe method to AP_Compass_ExternalAHRS
this allows for the creation of the backend to fail gracefully

without this the backend will still have a value of 0, and will still get updated, overwriting the data for one of the registered compasses
2025-09-23 08:59:56 +09:00
Peter Barker 3adbaddab0 AP_Compass: regularise compass defines
start to make compass backends look like backends from our other libraries
2022-11-15 16:44:38 +11:00
Andrew Tridgell a068e95a48 AP_Compass: added ExternalAHRS driver 2021-01-05 21:13:12 +11:00