CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_Beacon/AP_Beacon_SITL.h
Views: 1798
1
#pragma once
2
3
#include "AP_Beacon_Backend.h"
4
5
#if AP_BEACON_SITL_ENABLED
6
7
#include <SITL/SITL.h>
8
9
class AP_Beacon_SITL : public AP_Beacon_Backend
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:
23
SITL::SIM *sitl;
24
uint8_t next_beacon;
25
uint32_t last_update_ms;
26
};
27
28
#endif // AP_BEACON_SITL_ENABLED
29
30