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
nav_survey_rectangle.c File Reference
#include "subsystems/navigation/nav_survey_rectangle.h"
#include "estimator.h"
#include "generated/flight_plan.h"
+ Include dependency graph for nav_survey_rectangle.c:

Go to the source code of this file.

Macros

#define SurveyGoingNorth()   ((survey_orientation == NS) && (survey_to.y > survey_from.y))
 
#define SurveyGoingSouth()   ((survey_orientation == NS) && (survey_to.y < survey_from.y))
 
#define SurveyGoingEast()   ((survey_orientation == WE) && (survey_to.x > survey_from.x))
 
#define SurveyGoingWest()   ((survey_orientation == WE) && (survey_to.x < survey_from.x))
 
#define LINE_START_FUNCTION   {}
 
#define LINE_STOP_FUNCTION   {}
 

Functions

static bool_t survey_uturn __attribute__ ((unused))
 
void nav_survey_rectangle_init (uint8_t wp1, uint8_t wp2, float grid, survey_orientation_t so)
 
void nav_survey_rectangle (uint8_t wp1, uint8_t wp2)
 

Variables

static struct point survey_from
 
static struct point survey_to
 
static survey_orientation_t survey_orientation = NS
 

Macro Definition Documentation

#define LINE_START_FUNCTION   {}

Definition at line 17 of file nav_survey_rectangle.c.

Referenced by nav_survey_rectangle(), and nav_survey_rectangle_init().

#define LINE_STOP_FUNCTION   {}

Definition at line 20 of file nav_survey_rectangle.c.

Referenced by nav_survey_rectangle().

#define SurveyGoingEast ( )    ((survey_orientation == WE) && (survey_to.x > survey_from.x))

Definition at line 11 of file nav_survey_rectangle.c.

Referenced by nav_survey_rectangle().

#define SurveyGoingNorth ( )    ((survey_orientation == NS) && (survey_to.y > survey_from.y))

Definition at line 9 of file nav_survey_rectangle.c.

Referenced by nav_survey_rectangle().

#define SurveyGoingSouth ( )    ((survey_orientation == NS) && (survey_to.y < survey_from.y))

Definition at line 10 of file nav_survey_rectangle.c.

Referenced by nav_survey_rectangle().

#define SurveyGoingWest ( )    ((survey_orientation == WE) && (survey_to.x < survey_from.x))

Definition at line 12 of file nav_survey_rectangle.c.

Referenced by nav_survey_rectangle().

Function Documentation

static bool_t survey_uturn __attribute__ ( (unused)  )
static

Variable Documentation

struct point survey_from
static

Definition at line 4 of file nav_survey_rectangle.c.

Referenced by nav_survey_rectangle(), and nav_survey_rectangle_init().

survey_orientation_t survey_orientation = NS
static

Definition at line 7 of file nav_survey_rectangle.c.

struct point survey_to
static

Definition at line 5 of file nav_survey_rectangle.c.

Referenced by nav_survey_rectangle(), and nav_survey_rectangle_init().