Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nav_poles_rotorcraft.h File Reference

Turn around 2 points, with possible margins Can be used in mission mode. More...

#include "std.h"
#include "math/pprz_geodetic_float.h"
+ Include dependency graph for nav_poles_rotorcraft.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void nav_poles_init (void)
 Global init.
 
bool nav_poles_setup_wp (uint8_t wp1, uint8_t wp2, float height, float radius, float margin, int8_t nb_laps)
 Init poles from flight plan waypoints.
 
bool nav_poles_setup_lla (struct LlaCoor_f *lla1, struct LlaCoor_f *lla2, float height, float radius, float margin, int8_t nb_laps)
 Init poles from waypoints coordinates in LLA format.
 
bool nav_poles_run (void)
 

Variables

uint8_t nav_poles_count
 

Detailed Description

Turn around 2 points, with possible margins Can be used in mission mode.

Definition in file nav_poles_rotorcraft.h.

Function Documentation

◆ nav_poles_init()

void nav_poles_init ( void  )
extern

Global init.

Definition at line 85 of file nav_poles_rotorcraft.c.

References foo, mission_register(), nav_poles_count, nav_poles_nb_laps, and oval_radius.

+ Here is the call graph for this function:

◆ nav_poles_run()

bool nav_poles_run ( void  )
extern

◆ nav_poles_setup_lla()

bool nav_poles_setup_lla ( struct LlaCoor_f lla1,
struct LlaCoor_f lla2,
float  height,
float  radius,
float  margin,
int8_t  nb_laps 
)
extern

Init poles from waypoints coordinates in LLA format.

Parameters
[in]wp1waypoint LLA position
[in]wp2waypoint LLA position
[in]heightflight height above ref point
[in]radiusturn radius in meters, CW is >0, CCW otherwise
[in]marginmargin factor: 0 -> overfly points, 1 -> turn at 'radius' distance
[in]nb_lapsnumber of laps (<0 for no lap limit)
Returns
true if init valid

Definition at line 135 of file nav_poles_rotorcraft.c.

References compute_oval_points(), enu_of_lla_point_f(), foo, nav_poles_nb_laps, and stateGetNedOrigin_f().

+ Here is the call graph for this function:

◆ nav_poles_setup_wp()

bool nav_poles_setup_wp ( uint8_t  wp1,
uint8_t  wp2,
float  height,
float  radius,
float  margin,
int8_t  nb_laps 
)
extern

Init poles from flight plan waypoints.

Parameters
[in]wp1waypoint ID
[in]wp2waypoint ID
[in]heightflight height above ref point
[in]radiusturn radius in meters, CW is >0, CCW otherwise
[in]marginmargin factor: 0 -> overfly points, 1 -> turn at 'radius' distance
Returns
true if init valid

Definition at line 123 of file nav_poles_rotorcraft.c.

References compute_oval_points(), foo, nav_poles_nb_laps, and waypoint_get_enu_f().

+ Here is the call graph for this function:

Variable Documentation

◆ nav_poles_count

uint8_t nav_poles_count
extern

Definition at line 29 of file nav_poles.c.

Referenced by nav_poles_init(), and nav_poles_run().