Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OSAMNav.h
Go to the documentation of this file.
1 #ifndef OSAMNav_H
2 #define OSAMNav_H
3 
4 #include "std.h"
5 
6 
7 struct Point2D {float x; float y;};
8 struct Line {float m;float b;float x;};
9 
10 extern bool_t FlowerNav(void);
11 extern bool_t InitializeFlower(uint8_t CenterWP, uint8_t EdgeWP);
12 
13 extern bool_t InitializeBungeeTakeoff(uint8_t BungeeWP);
14 extern bool_t BungeeTakeoff(void);
15 
16 extern bool_t InitializeSkidLanding(uint8_t AFWP, uint8_t TDWP, float radius);
17 extern bool_t SkidLanding(void);
18 
19 #define PolygonSize 10
20 #define MaxFloat 1000000000
21 #define MinFloat -1000000000
22 
23 extern bool_t InitializePolygonSurvey(uint8_t FirstWP, uint8_t Size, float Sweep, float Orientation);
24 extern bool_t PolygonSurvey(void);
27 
28 extern bool_t InitializeVerticalRaster( void );
29 extern bool_t VerticalRaster(uint8_t wp1, uint8_t wp2, float radius, float AltSweep);
30 
31 extern bool_t FlightLine(uint8_t From_WP, uint8_t To_WP, float radius, float Space_Before, float Space_After);
32 extern bool_t FlightLineBlock(uint8_t First_WP, uint8_t Last_WP, float radius, float Space_Before, float Space_After);
33 
34 void TranslateAndRotateFromWorld(struct Point2D *p, float Zrot, float transX, float transY);
35 void RotateAndTranslateToWorld(struct Point2D *p, float Zrot, float transX, float transY);
36 
37 void FindInterceptOfTwoLines(float *x, float *y, struct Line L1, struct Line L2);
38 float EvaluateLineForY(float x, struct Line L);
39 float EvaluateLineForX(float y, struct Line L);
40 float DistanceEquation(struct Point2D p1,struct Point2D p2);
41 
42 #endif
float y
Definition: OSAMNav.h:7
unsigned short uint16_t
Definition: types.h:16
bool_t VerticalRaster(uint8_t wp1, uint8_t wp2, float radius, float AltSweep)
Definition: OSAMNav.c:749
bool_t InitializePolygonSurvey(uint8_t FirstWP, uint8_t Size, float Sweep, float Orientation)
Definition: OSAMNav.c:351
bool_t InitializeVerticalRaster(void)
Definition: OSAMNav.c:744
bool_t InitializeBungeeTakeoff(uint8_t BungeeWP)
Definition: OSAMNav.c:179
float EvaluateLineForY(float x, struct Line L)
Definition: OSAMNav.c:1182
Definition: OSAMNav.c:332
float x
Definition: OSAMNav.h:8
bool_t FlightLineBlock(uint8_t First_WP, uint8_t Last_WP, float radius, float Space_Before, float Space_After)
Definition: OSAMNav.c:1112
static float radius
Definition: chemotaxis.c:15
float x
Definition: OSAMNav.h:7
float b
Definition: OSAMNav.h:8
void TranslateAndRotateFromWorld(struct Point2D *p, float Zrot, float transX, float transY)
Definition: OSAMNav.c:1150
bool_t FlightLine(uint8_t From_WP, uint8_t To_WP, float radius, float Space_Before, float Space_After)
Definition: OSAMNav.c:1005
bool_t PolygonSurvey(void)
Definition: OSAMNav.c:547
void RotateAndTranslateToWorld(struct Point2D *p, float Zrot, float transX, float transY)
Definition: OSAMNav.c:1165
bool_t FlowerNav(void)
Definition: OSAMNav.c:70
Definition: OSAMNav.h:8
float DistanceEquation(struct Point2D p1, struct Point2D p2)
Definition: OSAMNav.c:1192
bool_t InitializeSkidLanding(uint8_t AFWP, uint8_t TDWP, float radius)
Definition: OSAMNav.c:890
void FindInterceptOfTwoLines(float *x, float *y, struct Line L1, struct Line L2)
Definition: OSAMNav.c:1176
uint16_t PolySurveySweepNum
Definition: OSAMNav.c:348
unsigned char uint8_t
Definition: types.h:14
Definition: OSAMNav.h:7
bool_t InitializeFlower(uint8_t CenterWP, uint8_t EdgeWP)
Definition: OSAMNav.c:40
uint16_t PolySurveySweepBackNum
Definition: OSAMNav.c:349
bool_t BungeeTakeoff(void)
Definition: OSAMNav.c:233
float EvaluateLineForX(float y, struct Line L)
Definition: OSAMNav.c:1187
float m
Definition: OSAMNav.h:8
bool_t SkidLanding(void)
Definition: OSAMNav.c:929