Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AC_Fence/AC_Fence_config.h
9808 views
1
#pragma once
2
3
#include <AP_HAL/AP_HAL_Boards.h>
4
5
#include <GCS_MAVLink/GCS_config.h>
6
7
// Enabled 0 is compiled out
8
// Enabled 1 is always enabled on all vehicles
9
// Enabled 2 is enabled with dummy methods for tracker and blimp
10
11
#ifndef AP_FENCE_ENABLED
12
#define AP_FENCE_ENABLED 2
13
#endif
14
15
// CODE_REMOVAL
16
// ArduPilot 4.6 sends deprecation warnings for FENCE_POINT/FENCE_FETCH_POINT
17
// ArduPilot 4.7 stops compiling them in
18
// ArduPilot 4.8 removes the code entirely
19
#ifndef AC_POLYFENCE_FENCE_POINT_PROTOCOL_SUPPORT
20
#define AC_POLYFENCE_FENCE_POINT_PROTOCOL_SUPPORT 0
21
#endif
22
23
// CODE_REMOVAL
24
25
// ArduPilot 4.7 no longer stores circle radiuses that look like
26
// integers as integer item types, so any time a fence is saved the
27
// use of the deprecated types is fixed.
28
// ArduPilot 4.8 warns if it loads an integer item, warns user to re-upload the fence
29
// ArduPilot 4.9 warns if it loads an integer item, warns user to re-upload the fence
30
// ArduPilot 4.10 removes support for them
31
#ifndef AC_POLYFENCE_CIRCLE_INT_SUPPORT_ENABLED
32
#define AC_POLYFENCE_CIRCLE_INT_SUPPORT_ENABLED 1
33
#endif // AC_POLYFENCE_CIRCLE_INT_SUPPORT_ENABLED
34
35