ardupilot/libraries/AP_Beacon/AP_Beacon_SITL.h
2016-11-30 17:56:39 +09:00

30 lines
574 B
C++

// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#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::SITL *sitl;
uint8_t next_beacon;
uint32_t last_update_ms;
};
#endif // CONFIG_HAL_BOARD