Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
OSAMNav.h File Reference
#include "std.h"
+ Include dependency graph for OSAMNav.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Point2D
 
struct  Line
 

Macros

#define PolygonSize   10
 
#define MaxFloat   1000000000
 
#define MinFloat   -1000000000
 

Functions

bool_t FlowerNav (void)
 
bool_t InitializeFlower (uint8_t CenterWP, uint8_t EdgeWP)
 
bool_t InitializeBungeeTakeoff (uint8_t BungeeWP)
 
bool_t BungeeTakeoff (void)
 
bool_t InitializeSkidLanding (uint8_t AFWP, uint8_t TDWP, float radius)
 
bool_t SkidLanding (void)
 
bool_t InitializePolygonSurvey (uint8_t FirstWP, uint8_t Size, float Sweep, float Orientation)
 
bool_t PolygonSurvey (void)
 
bool_t InitializeVerticalRaster (void)
 
bool_t VerticalRaster (uint8_t wp1, uint8_t wp2, float radius, float AltSweep)
 
bool_t FlightLine (uint8_t From_WP, uint8_t To_WP, float radius, float Space_Before, float Space_After)
 
bool_t FlightLineBlock (uint8_t First_WP, uint8_t Last_WP, float radius, float Space_Before, float Space_After)
 
void TranslateAndRotateFromWorld (struct Point2D *p, float Zrot, float transX, float transY)
 
void RotateAndTranslateToWorld (struct Point2D *p, float Zrot, float transX, float transY)
 Rotates point round z by -Zrot then translates so (0,0) becomes (transX,transY) More...
 
void FindInterceptOfTwoLines (float *x, float *y, struct Line L1, struct Line L2)
 
float EvaluateLineForY (float x, struct Line L)
 
float EvaluateLineForX (float y, struct Line L)
 
float DistanceEquation (struct Point2D p1, struct Point2D p2)
 

Variables

uint16_t PolySurveySweepNum
 
uint16_t PolySurveySweepBackNum
 

Macro Definition Documentation

#define MaxFloat   1000000000

Definition at line 46 of file OSAMNav.h.

Referenced by InitializePolygonSurvey().

#define MinFloat   -1000000000

Definition at line 47 of file OSAMNav.h.

#define PolygonSize   10

Definition at line 45 of file OSAMNav.h.

Function Documentation

float DistanceEquation ( struct Point2D  p1,
struct Point2D  p2 
)

Definition at line 1217 of file OSAMNav.c.

References Point2D::x, and Point2D::y.

float EvaluateLineForX ( float  y,
struct Line  L 
)

Definition at line 1212 of file OSAMNav.c.

References Line::b, and Line::m.

Referenced by InitializePolygonSurvey(), and PolygonSurvey().

+ Here is the caller graph for this function:

float EvaluateLineForY ( float  x,
struct Line  L 
)

Definition at line 1207 of file OSAMNav.c.

References Line::b, and Line::m.

void FindInterceptOfTwoLines ( float *  x,
float *  y,
struct Line  L1,
struct Line  L2 
)

Definition at line 1201 of file OSAMNav.c.

References Line::b, and Line::m.

Referenced by InitializePolygonSurvey().

+ Here is the caller graph for this function:

bool_t FlightLine ( uint8_t  From_WP,
uint8_t  To_WP,
float  radius,
float  Space_Before,
float  Space_After 
)
bool_t FlightLineBlock ( uint8_t  First_WP,
uint8_t  Last_WP,
float  radius,
float  Space_Before,
float  Space_After 
)

Definition at line 1139 of file OSAMNav.c.

References CFLStatus, FALSE, FLBlockCount, FlightLine(), FLInitialize, and TRUE.

+ Here is the call graph for this function:

bool_t InitializeBungeeTakeoff ( uint8_t  BungeeWP)
bool_t InitializeFlower ( uint8_t  CenterWP,
uint8_t  EdgeWP 
)
bool_t InitializeSkidLanding ( uint8_t  AFWP,
uint8_t  TDWP,
float  radius 
)
bool_t InitializeVerticalRaster ( void  )

Definition at line 771 of file OSAMNav.c.

References FALSE, and LR12.

void RotateAndTranslateToWorld ( struct Point2D p,
float  Zrot,
float  transX,
float  transY 
)

Rotates point round z by -Zrot then translates so (0,0) becomes (transX,transY)

Definition at line 1190 of file OSAMNav.c.

References Point2D::x, and Point2D::y.

Referenced by PolygonSurvey().

+ Here is the caller graph for this function:

void TranslateAndRotateFromWorld ( struct Point2D p,
float  Zrot,
float  transX,
float  transY 
)

Definition at line 1177 of file OSAMNav.c.

References Point2D::x, and Point2D::y.

Referenced by FlightLine(), and InitializePolygonSurvey().

+ Here is the caller graph for this function:

bool_t VerticalRaster ( uint8_t  wp1,
uint8_t  wp2,
float  radius,
float  AltSweep 
)

Variable Documentation

uint16_t PolySurveySweepBackNum

Definition at line 376 of file OSAMNav.c.

Referenced by InitializePolygonSurvey(), and PolygonSurvey().

uint16_t PolySurveySweepNum

Definition at line 375 of file OSAMNav.c.

Referenced by InitializePolygonSurvey(), and PolygonSurvey().