|
|
|
@ -42,17 +42,17 @@ public:
@@ -42,17 +42,17 @@ public:
|
|
|
|
|
/* Probe for AK09916 standalone on I2C bus */ |
|
|
|
|
static AP_Compass_Backend *probe(AP_HAL::OwnPtr<AP_HAL::I2CDevice> dev, |
|
|
|
|
bool force_external, |
|
|
|
|
enum Rotation rotation = ROTATION_NONE); |
|
|
|
|
enum Rotation rotation); |
|
|
|
|
|
|
|
|
|
/* Probe for AK09916 on auxiliary bus of ICM20948, connected through I2C */ |
|
|
|
|
static AP_Compass_Backend *probe_ICM20948(AP_HAL::OwnPtr<AP_HAL::I2CDevice> dev, |
|
|
|
|
AP_HAL::OwnPtr<AP_HAL::I2CDevice> dev_icm, |
|
|
|
|
bool force_external, |
|
|
|
|
enum Rotation rotation = ROTATION_NONE); |
|
|
|
|
enum Rotation rotation); |
|
|
|
|
|
|
|
|
|
/* Probe for AK09916 on auxiliary bus of ICM20948, connected through SPI */ |
|
|
|
|
static AP_Compass_Backend *probe_ICM20948(uint8_t mpu9250_instance, |
|
|
|
|
enum Rotation rotation = ROTATION_NONE); |
|
|
|
|
enum Rotation rotation); |
|
|
|
|
|
|
|
|
|
static constexpr const char *name = "AK09916"; |
|
|
|
|
|
|
|
|
@ -62,7 +62,7 @@ public:
@@ -62,7 +62,7 @@ public:
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
AP_Compass_AK09916(AP_AK09916_BusDriver *bus, bool force_external, |
|
|
|
|
enum Rotation rotation = ROTATION_NONE); |
|
|
|
|
enum Rotation rotation); |
|
|
|
|
|
|
|
|
|
bool init(); |
|
|
|
|
void _make_factory_sensitivity_adjustment(Vector3f &field) const; |
|
|
|
|