Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
spiral.c File Reference
#include "subsystems/navigation/spiral.h"
#include "subsystems/nav.h"
#include "estimator.h"
#include "autopilot.h"
#include "generated/flight_plan.h"
+ Include dependency graph for spiral.c:

Go to the source code of this file.

Macros

#define MIN_CIRCLE_RADIUS   120
 

Enumerations

enum  SpiralStatus { Outside, StartCircle, Circle, IncSpiral }
 creating a helix: start radius to end radius, increasing after reaching alphamax Alphamax is calculated from given segments IMPORTANT: numer of segments has to be larger than 2! More...
 

Functions

bool_t InitializeSpiral (uint8_t CenterWP, uint8_t EdgeWP, float StartRad, float IncRad, float Segments, float ZKoord)
 
bool_t SpiralNav (void)
 

Variables

static enum SpiralStatus CSpiralStatus
 
static float FlyFromX
 
static float FlyFromY
 
static float TransCurrentX
 
static float TransCurrentY
 
static float TransCurrentZ
 
static float EdgeCurrentX
 
static float EdgeCurrentY
 
static float LastCircleX
 
static float LastCircleY
 
static float DistanceFromCenter
 
static float Spiralradius
 
static uint8_t Center
 
static uint8_t Edge
 
static float SRad
 
static float IRad
 
static float Alphalimit
 
static float Segmente
 
static float ZPoint
 
static float nav_radius_min
 

Macro Definition Documentation

#define MIN_CIRCLE_RADIUS   120

Definition at line 47 of file spiral.c.

Referenced by InitializeSpiral().

Enumeration Type Documentation

creating a helix: start radius to end radius, increasing after reaching alphamax Alphamax is calculated from given segments IMPORTANT: numer of segments has to be larger than 2!

Enumerator
Outside 
StartCircle 
Circle 
IncSpiral 

Definition at line 20 of file spiral.c.

Function Documentation

bool_t InitializeSpiral ( uint8_t  CenterWP,
uint8_t  EdgeWP,
float  StartRad,
float  IncRad,
float  Segments,
float  ZKoord 
)

Variable Documentation

float Alphalimit
static

Definition at line 41 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().

uint8_t Center
static

Definition at line 37 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().

enum SpiralStatus CSpiralStatus
static

Definition at line 21 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().

float DistanceFromCenter
static

Definition at line 35 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().

uint8_t Edge
static

Definition at line 38 of file spiral.c.

Referenced by InitializeSpiral().

float EdgeCurrentX
static

Definition at line 31 of file spiral.c.

Referenced by InitializeSpiral().

float EdgeCurrentY
static

Definition at line 32 of file spiral.c.

Referenced by InitializeSpiral().

float FlyFromX
static

Definition at line 26 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().

float FlyFromY
static

Definition at line 27 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().

float IRad
static

Definition at line 40 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().

float LastCircleX
static

Definition at line 33 of file spiral.c.

Referenced by SpiralNav().

float LastCircleY
static

Definition at line 34 of file spiral.c.

Referenced by SpiralNav().

float nav_radius_min
static

Definition at line 44 of file spiral.c.

Referenced by InitializeSpiral().

float Segmente
static

Definition at line 42 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().

float Spiralradius
static

Definition at line 36 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().

float SRad
static

Definition at line 39 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().

float TransCurrentX
static

Definition at line 28 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().

float TransCurrentY
static

Definition at line 29 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().

float TransCurrentZ
static

Definition at line 30 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().

float ZPoint
static

Definition at line 43 of file spiral.c.

Referenced by InitializeSpiral(), and SpiralNav().