mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
1a4a26de2b
For all supported boards the maximum number of instances is 3. The number of HIL_COMPASSES was already defined as 2 instead of 3, so this is left as before.
24 lines
477 B
C++
24 lines
477 B
C++
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
|
#ifndef AP_Compass_HIL_H
|
|
#define AP_Compass_HIL_H
|
|
|
|
#include "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];
|
|
};
|
|
|
|
#endif
|