You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
699 B
26 lines
699 B
/// -*- 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" |
|
|
|
class AP_Compass_HIL : public AP_Compass_Backend |
|
{ |
|
public: |
|
AP_Compass_HIL(Compass &compass); |
|
bool read(void); |
|
void accumulate(void); |
|
bool init(void); |
|
bool read_raw(void) {return true;} |
|
bool re_initialise(void) {return true;} |
|
bool read_register(uint8_t address, uint8_t *value) {return true;} |
|
bool write_register(uint8_t address, uint8_t value) {return true;} |
|
|
|
// detect the sensor |
|
static AP_Compass_Backend *detect(Compass &compass); |
|
|
|
private: |
|
uint8_t _compass_instance; |
|
}; |
|
|
|
#endif
|
|
|