Path: blob/master/libraries/AC_Fence/AC_Fence_config.h
9808 views
#pragma once12#include <AP_HAL/AP_HAL_Boards.h>34#include <GCS_MAVLink/GCS_config.h>56// Enabled 0 is compiled out7// Enabled 1 is always enabled on all vehicles8// Enabled 2 is enabled with dummy methods for tracker and blimp910#ifndef AP_FENCE_ENABLED11#define AP_FENCE_ENABLED 212#endif1314// CODE_REMOVAL15// ArduPilot 4.6 sends deprecation warnings for FENCE_POINT/FENCE_FETCH_POINT16// ArduPilot 4.7 stops compiling them in17// ArduPilot 4.8 removes the code entirely18#ifndef AC_POLYFENCE_FENCE_POINT_PROTOCOL_SUPPORT19#define AC_POLYFENCE_FENCE_POINT_PROTOCOL_SUPPORT 020#endif2122// CODE_REMOVAL2324// ArduPilot 4.7 no longer stores circle radiuses that look like25// integers as integer item types, so any time a fence is saved the26// use of the deprecated types is fixed.27// ArduPilot 4.8 warns if it loads an integer item, warns user to re-upload the fence28// ArduPilot 4.9 warns if it loads an integer item, warns user to re-upload the fence29// ArduPilot 4.10 removes support for them30#ifndef AC_POLYFENCE_CIRCLE_INT_SUPPORT_ENABLED31#define AC_POLYFENCE_CIRCLE_INT_SUPPORT_ENABLED 132#endif // AC_POLYFENCE_CIRCLE_INT_SUPPORT_ENABLED333435