2016-02-17 21:25:20 -04:00
|
|
|
#pragma once
|
2011-02-14 00:27:07 -04:00
|
|
|
|
2016-03-10 20:41:18 -04:00
|
|
|
#include "AP_Compass.h"
|
2011-02-14 00:27:07 -04:00
|
|
|
|
2019-11-20 03:18:10 -04:00
|
|
|
#define HIL_NUM_COMPASSES 1
|
2015-05-15 18:06:04 -03:00
|
|
|
|
2014-11-15 21:58:23 -04:00
|
|
|
class AP_Compass_HIL : public AP_Compass_Backend
|
2011-02-14 00:27:07 -04:00
|
|
|
{
|
2012-08-17 03:19:22 -03:00
|
|
|
public:
|
2018-08-06 19:21:27 -03:00
|
|
|
AP_Compass_HIL();
|
2018-11-07 06:57:48 -04:00
|
|
|
void read(void) override;
|
2014-11-15 21:58:23 -04:00
|
|
|
bool init(void);
|
|
|
|
|
|
|
|
// detect the sensor
|
2018-08-06 19:21:27 -03:00
|
|
|
static AP_Compass_Backend *detect();
|
2013-12-29 07:55:20 -04:00
|
|
|
|
2013-03-01 10:58:55 -04:00
|
|
|
private:
|
2015-05-15 18:06:04 -03:00
|
|
|
uint8_t _compass_instance[HIL_NUM_COMPASSES];
|
2011-02-14 00:27:07 -04:00
|
|
|
};
|