APM:Libraries
Classes | Macros
AP_SmartRTL.h File Reference
#include <AP_Buffer/AP_Buffer.h>
#include <AP_HAL/AP_HAL.h>
#include <AP_Common/Bitmask.h>
#include <AP_Math/AP_Math.h>
#include <AP_AHRS/AP_AHRS.h>
#include <DataFlash/DataFlash.h>
#include <GCS_MAVLink/GCS.h>
Include dependency graph for AP_SmartRTL.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AP_SmartRTL
 
struct  AP_SmartRTL::dist_point
 
struct  AP_SmartRTL::simplify_start_finish_t
 
struct  AP_SmartRTL::prune_loop_t
 

Macros

#define SMARTRTL_ACCURACY_DEFAULT   2.0f
 
#define SMARTRTL_POINTS_DEFAULT   150
 
#define SMARTRTL_POINTS_MAX   500
 
#define SMARTRTL_TIMEOUT   15000
 
#define SMARTRTL_CLEANUP_POINT_TRIGGER   50
 
#define SMARTRTL_CLEANUP_START_MARGIN   10
 
#define SMARTRTL_CLEANUP_POINT_MIN   10
 
#define SMARTRTL_SIMPLIFY_EPSILON   (_accuracy * 0.5f)
 
#define SMARTRTL_SIMPLIFY_STACK_LEN_MULT   (2.0f/3.0f)+1
 
#define SMARTRTL_SIMPLIFY_TIME_US   200
 
#define SMARTRTL_PRUNING_DELTA   (_accuracy * 0.99)
 
#define SMARTRTL_PRUNING_LOOP_BUFFER_LEN_MULT   0.25f
 
#define SMARTRTL_PRUNING_LOOP_TIME_US   200
 

Macro Definition Documentation

◆ SMARTRTL_ACCURACY_DEFAULT

#define SMARTRTL_ACCURACY_DEFAULT   2.0f

Definition at line 12 of file AP_SmartRTL.h.

◆ SMARTRTL_CLEANUP_POINT_MIN

#define SMARTRTL_CLEANUP_POINT_MIN   10

Definition at line 18 of file AP_SmartRTL.h.

Referenced by AP_SmartRTL::routine_cleanup().

◆ SMARTRTL_CLEANUP_POINT_TRIGGER

#define SMARTRTL_CLEANUP_POINT_TRIGGER   50

Definition at line 16 of file AP_SmartRTL.h.

Referenced by AP_SmartRTL::routine_cleanup().

◆ SMARTRTL_CLEANUP_START_MARGIN

#define SMARTRTL_CLEANUP_START_MARGIN   10

Definition at line 17 of file AP_SmartRTL.h.

Referenced by AP_SmartRTL::routine_cleanup().

◆ SMARTRTL_POINTS_DEFAULT

#define SMARTRTL_POINTS_DEFAULT   150

Definition at line 13 of file AP_SmartRTL.h.

◆ SMARTRTL_POINTS_MAX

#define SMARTRTL_POINTS_MAX   500

◆ SMARTRTL_PRUNING_DELTA

#define SMARTRTL_PRUNING_DELTA   (_accuracy * 0.99)

Definition at line 24 of file AP_SmartRTL.h.

Referenced by AP_SmartRTL::detect_loops().

◆ SMARTRTL_PRUNING_LOOP_BUFFER_LEN_MULT

#define SMARTRTL_PRUNING_LOOP_BUFFER_LEN_MULT   0.25f

Definition at line 25 of file AP_SmartRTL.h.

Referenced by AP_SmartRTL::init().

◆ SMARTRTL_PRUNING_LOOP_TIME_US

#define SMARTRTL_PRUNING_LOOP_TIME_US   200

Definition at line 26 of file AP_SmartRTL.h.

Referenced by AP_SmartRTL::detect_loops().

◆ SMARTRTL_SIMPLIFY_EPSILON

#define SMARTRTL_SIMPLIFY_EPSILON   (_accuracy * 0.5f)

Definition at line 19 of file AP_SmartRTL.h.

Referenced by AP_SmartRTL::detect_simplifications().

◆ SMARTRTL_SIMPLIFY_STACK_LEN_MULT

#define SMARTRTL_SIMPLIFY_STACK_LEN_MULT   (2.0f/3.0f)+1

Definition at line 20 of file AP_SmartRTL.h.

Referenced by AP_SmartRTL::init().

◆ SMARTRTL_SIMPLIFY_TIME_US

#define SMARTRTL_SIMPLIFY_TIME_US   200

Definition at line 23 of file AP_SmartRTL.h.

Referenced by AP_SmartRTL::detect_simplifications().

◆ SMARTRTL_TIMEOUT

#define SMARTRTL_TIMEOUT   15000

Definition at line 15 of file AP_SmartRTL.h.

Referenced by AP_SmartRTL::update().