Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_Beacon/AP_Beacon_config.h
9762 views
1
#pragma once
2
3
#include <AP_HAL/AP_HAL_Boards.h>
4
5
#ifndef AP_BEACON_ENABLED
6
#define AP_BEACON_ENABLED HAL_PROGRAM_SIZE_LIMIT_KB > 2048
7
#endif
8
9
#ifndef AP_BEACON_MAX_BEACONS
10
#define AP_BEACON_MAX_BEACONS 4
11
#endif
12
13
#ifndef AP_BEACON_TIMEOUT_MS
14
#define AP_BEACON_TIMEOUT_MS 300
15
#endif
16
17
#ifndef AP_BEACON_BACKEND_DEFAULT_ENABLED
18
#define AP_BEACON_BACKEND_DEFAULT_ENABLED AP_BEACON_ENABLED
19
#endif
20
21
#ifndef AP_BEACON_MARVELMIND_ENABLED
22
#define AP_BEACON_MARVELMIND_ENABLED AP_BEACON_BACKEND_DEFAULT_ENABLED
23
#endif
24
25
#ifndef AP_BEACON_NOOPLOOP_ENABLED
26
#define AP_BEACON_NOOPLOOP_ENABLED AP_BEACON_BACKEND_DEFAULT_ENABLED
27
#endif
28
29
#ifndef AP_BEACON_POZYX_ENABLED
30
#define AP_BEACON_POZYX_ENABLED AP_BEACON_BACKEND_DEFAULT_ENABLED
31
#endif
32
33
#ifndef AP_BEACON_SITL_ENABLED
34
#define AP_BEACON_SITL_ENABLED (AP_BEACON_BACKEND_DEFAULT_ENABLED && CONFIG_HAL_BOARD == HAL_BOARD_SITL)
35
#endif
36
37