2015-12-09 18:18:19 -04:00
|
|
|
#pragma once
|
|
|
|
|
2016-03-10 20:41:18 -04:00
|
|
|
#include "AP_Compass.h"
|
2015-12-09 18:18:19 -04:00
|
|
|
#include "AP_Compass_Backend.h"
|
|
|
|
|
|
|
|
class AP_Compass_QURT : public AP_Compass_Backend
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void read(void) override;
|
|
|
|
|
|
|
|
AP_Compass_QURT(Compass &compass);
|
|
|
|
|
|
|
|
// detect the sensor
|
|
|
|
static AP_Compass_Backend *detect(Compass &compass);
|
|
|
|
|
|
|
|
private:
|
2016-11-09 07:33:38 -04:00
|
|
|
bool init(void);
|
2015-12-09 18:18:19 -04:00
|
|
|
void timer_update(void);
|
2016-03-10 20:13:31 -04:00
|
|
|
|
2015-12-09 18:18:19 -04:00
|
|
|
uint8_t instance;
|
|
|
|
Vector3f sum;
|
|
|
|
uint32_t count;
|
|
|
|
};
|
|
|
|
|
|
|
|
|