|
|
|
@ -30,7 +30,6 @@ public:
@@ -30,7 +30,6 @@ public:
|
|
|
|
|
static AP_Compass_Backend *probe(Compass &compass, |
|
|
|
|
AP_HAL::OwnPtr<AP_HAL::I2CDevice> dev); |
|
|
|
|
|
|
|
|
|
bool init() override; |
|
|
|
|
void read() override; |
|
|
|
|
|
|
|
|
|
static constexpr const char *name = "BMM150"; |
|
|
|
@ -41,6 +40,7 @@ private:
@@ -41,6 +40,7 @@ private:
|
|
|
|
|
/**
|
|
|
|
|
* Device periodic callback to read data from the sensor. |
|
|
|
|
*/ |
|
|
|
|
bool init(); |
|
|
|
|
bool _update(); |
|
|
|
|
bool _load_trim_values(); |
|
|
|
|
int16_t _compensate_xy(int16_t xy, uint32_t rhall, int32_t txy1, int32_t txy2); |
|
|
|
|