APM:Libraries
AP_Beacon_SITL.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "AP_Beacon_Backend.h"
4 
5 #if CONFIG_HAL_BOARD == HAL_BOARD_SITL
6 
7 #include <SITL/SITL.h>
8 
10 {
11 
12 public:
13  // constructor
14  AP_Beacon_SITL(AP_Beacon &frontend);
15 
16  // return true if sensor is basically healthy (we are receiving data)
17  bool healthy() override;
18 
19  // update
20  void update() override;
21 
22 private:
24  uint8_t next_beacon;
25  uint32_t last_update_ms;
26 };
27 
28 #endif // CONFIG_HAL_BOARD
uint8_t next_beacon
bool healthy() override
uint32_t last_update_ms
AP_Beacon_SITL(AP_Beacon &frontend)
void update() override
SITL::SITL * sitl