ardupilot/libraries/AP_Compass/AP_Compass_HIL.h

20 lines
357 B
C
Raw Normal View History

#pragma once
#include "AP_Compass.h"
#define HIL_NUM_COMPASSES 2
class AP_Compass_HIL : public AP_Compass_Backend
{
public:
AP_Compass_HIL(Compass &compass);
void read(void);
bool init(void);
// detect the sensor
static AP_Compass_Backend *detect(Compass &compass);
private:
uint8_t _compass_instance[HIL_NUM_COMPASSES];
};