AP_Beacon_SITL.h 497 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "AP_Beacon_Backend.h"
  3. #if CONFIG_HAL_BOARD == HAL_BOARD_SITL
  4. #include <SITL/SITL.h>
  5. class AP_Beacon_SITL : public AP_Beacon_Backend
  6. {
  7. public:
  8. // constructor
  9. AP_Beacon_SITL(AP_Beacon &frontend);
  10. // return true if sensor is basically healthy (we are receiving data)
  11. bool healthy() override;
  12. // update
  13. void update() override;
  14. private:
  15. SITL::SITL *sitl;
  16. uint8_t next_beacon;
  17. uint32_t last_update_ms;
  18. };
  19. #endif // CONFIG_HAL_BOARD