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.
28 lines
492 B
28 lines
492 B
#pragma once |
|
|
|
#include "AP_Beacon_Backend.h" |
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL |
|
|
|
#include <SITL/SITL.h> |
|
|
|
class AP_Beacon_SITL : public AP_Beacon_Backend |
|
{ |
|
|
|
public: |
|
// constructor |
|
AP_Beacon_SITL(AP_Beacon &frontend); |
|
|
|
// return true if sensor is basically healthy (we are receiving data) |
|
bool healthy() override; |
|
|
|
// update |
|
void update() override; |
|
|
|
private: |
|
SITL::SIM *sitl; |
|
uint8_t next_beacon; |
|
uint32_t last_update_ms; |
|
}; |
|
|
|
#endif // CONFIG_HAL_BOARD
|
|
|