APM:Libraries
libraries
AP_Beacon
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
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::SITL
*
sitl
;
24
uint8_t
next_beacon
;
25
uint32_t
last_update_ms
;
26
};
27
28
#endif // CONFIG_HAL_BOARD
SITL::SITL
Definition:
SITL.h:37
AP_Beacon
Definition:
AP_Beacon.h:29
AP_Beacon_SITL::next_beacon
uint8_t next_beacon
Definition:
AP_Beacon_SITL.h:24
AP_Beacon_Backend.h
SITL.h
AP_Beacon_Backend
Definition:
AP_Beacon_Backend.h:22
AP_Beacon_SITL::healthy
bool healthy() override
Definition:
AP_Beacon_SITL.cpp:50
AP_Beacon_SITL::last_update_ms
uint32_t last_update_ms
Definition:
AP_Beacon_SITL.h:25
AP_Beacon_SITL::AP_Beacon_SITL
AP_Beacon_SITL(AP_Beacon &frontend)
Definition:
AP_Beacon_SITL.cpp:43
AP_Beacon_SITL::update
void update() override
Definition:
AP_Beacon_SITL.cpp:57
AP_Beacon_SITL
Definition:
AP_Beacon_SITL.h:9
AP_Beacon_SITL::sitl
SITL::SITL * sitl
Definition:
AP_Beacon_SITL.h:23
Generated on Sun Jun 17 2018 14:18:47 for APM:Libraries by
1.8.13