mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
152edf7189
Using a global .dir-locals.el file is a better alternative than reincluding the same emacs header in every file of the project.
20 lines
357 B
C++
20 lines
357 B
C++
#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];
|
|
};
|