AP_Compass_HIL.h 334 B

12345678910111213141516171819
  1. #pragma once
  2. #include "AP_Compass.h"
  3. #define HIL_NUM_COMPASSES 2
  4. class AP_Compass_HIL : public AP_Compass_Backend
  5. {
  6. public:
  7. AP_Compass_HIL();
  8. void read(void) override;
  9. bool init(void);
  10. // detect the sensor
  11. static AP_Compass_Backend *detect();
  12. private:
  13. uint8_t _compass_instance[HIL_NUM_COMPASSES];
  14. };