APM:Libraries
Classes | Macros
AC_Fence.h File Reference
#include <inttypes.h>
#include <AP_Common/AP_Common.h>
#include <AP_Param/AP_Param.h>
#include <AP_Math/AP_Math.h>
#include <GCS_MAVLink/GCS_MAVLink.h>
#include <AP_AHRS/AP_AHRS.h>
#include <AC_Fence/AC_PolyFence_loader.h>
#include <AP_Common/Location.h>
Include dependency graph for AC_Fence.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AC_Fence
 

Macros

#define AC_FENCE_TYPE_ALT_MAX   1
 
#define AC_FENCE_TYPE_CIRCLE   2
 
#define AC_FENCE_TYPE_POLYGON   4
 
#define AC_FENCE_ACTION_REPORT_ONLY   0
 
#define AC_FENCE_ACTION_RTL_AND_LAND   1
 
#define AC_FENCE_ALT_MAX_DEFAULT   100.0f
 
#define AC_FENCE_ALT_MIN_DEFAULT   -10.0f
 
#define AC_FENCE_CIRCLE_RADIUS_DEFAULT   300.0f
 
#define AC_FENCE_ALT_MAX_BACKUP_DISTANCE   20.0f
 
#define AC_FENCE_CIRCLE_RADIUS_BACKUP_DISTANCE   20.0f
 
#define AC_FENCE_MARGIN_DEFAULT   2.0f
 
#define AC_FENCE_GIVE_UP_DISTANCE   100.0f
 
#define AC_FENCE_MANUAL_RECOVERY_TIME_MIN   10000
 

Macro Definition Documentation

◆ AC_FENCE_ACTION_REPORT_ONLY

#define AC_FENCE_ACTION_REPORT_ONLY   0

Definition at line 18 of file AC_Fence.h.

Referenced by AC_Fence::sys_status_enabled().

◆ AC_FENCE_ACTION_RTL_AND_LAND

#define AC_FENCE_ACTION_RTL_AND_LAND   1

Definition at line 19 of file AC_Fence.h.

◆ AC_FENCE_ALT_MAX_BACKUP_DISTANCE

#define AC_FENCE_ALT_MAX_BACKUP_DISTANCE   20.0f

Definition at line 25 of file AC_Fence.h.

Referenced by AC_Fence::check_fence_alt_max().

◆ AC_FENCE_ALT_MAX_DEFAULT

#define AC_FENCE_ALT_MAX_DEFAULT   100.0f

Definition at line 22 of file AC_Fence.h.

◆ AC_FENCE_ALT_MIN_DEFAULT

#define AC_FENCE_ALT_MIN_DEFAULT   -10.0f

Definition at line 23 of file AC_Fence.h.

◆ AC_FENCE_CIRCLE_RADIUS_BACKUP_DISTANCE

#define AC_FENCE_CIRCLE_RADIUS_BACKUP_DISTANCE   20.0f

Definition at line 26 of file AC_Fence.h.

Referenced by AC_Fence::check_fence_circle().

◆ AC_FENCE_CIRCLE_RADIUS_DEFAULT

#define AC_FENCE_CIRCLE_RADIUS_DEFAULT   300.0f

Definition at line 24 of file AC_Fence.h.

◆ AC_FENCE_GIVE_UP_DISTANCE

#define AC_FENCE_GIVE_UP_DISTANCE   100.0f

Definition at line 30 of file AC_Fence.h.

◆ AC_FENCE_MANUAL_RECOVERY_TIME_MIN

#define AC_FENCE_MANUAL_RECOVERY_TIME_MIN   10000

Definition at line 31 of file AC_Fence.h.

Referenced by AC_Fence::check().

◆ AC_FENCE_MARGIN_DEFAULT

#define AC_FENCE_MARGIN_DEFAULT   2.0f

Definition at line 27 of file AC_Fence.h.

◆ AC_FENCE_TYPE_ALT_MAX

#define AC_FENCE_TYPE_ALT_MAX   1

◆ AC_FENCE_TYPE_CIRCLE

#define AC_FENCE_TYPE_CIRCLE   2

◆ AC_FENCE_TYPE_POLYGON

#define AC_FENCE_TYPE_POLYGON   4