Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/nav/nav_base.h"
Go to the source code of this file.
Macros | |
#define | NavCircleCount() nav_circle_get_count(&nav_rotorcraft_base.circle) |
Macros for circle and oval nav. More... | |
#define | NavCircleQdr() nav_circle_qdr(&nav_rotorcraft_base.circle) |
#define | NavOvalCount nav_rotorcraft_base.oval.count |
#define | NavQdrCloseTo(x) CloseDegAngles(x, NavCircleQdr()) |
True if x (in degrees) is close to the current QDR (less than 10 degrees) More... | |
#define | NavCourseCloseTo(x) CloseDegAngles(x, DegOfRad(stateGetHorizontalSpeedDir_f())) |
Functions | |
void | nav_rotorcraft_init (void) |
Init and register nav functions. More... | |
Variables | |
struct NavBase_t | nav_rotorcraft_base |
Basic Nav struct. More... | |
Definition in file nav_rotorcraft_base.h.
#define NavCircleCount | ( | ) | nav_circle_get_count(&nav_rotorcraft_base.circle) |
Macros for circle and oval nav.
Definition at line 41 of file nav_rotorcraft_base.h.
#define NavCircleQdr | ( | ) | nav_circle_qdr(&nav_rotorcraft_base.circle) |
Definition at line 42 of file nav_rotorcraft_base.h.
#define NavCourseCloseTo | ( | x | ) | CloseDegAngles(x, DegOfRad(stateGetHorizontalSpeedDir_f())) |
Definition at line 48 of file nav_rotorcraft_base.h.
#define NavOvalCount nav_rotorcraft_base.oval.count |
Definition at line 43 of file nav_rotorcraft_base.h.
#define NavQdrCloseTo | ( | x | ) | CloseDegAngles(x, NavCircleQdr()) |
True if x (in degrees) is close to the current QDR (less than 10 degrees)
Definition at line 47 of file nav_rotorcraft_base.h.
void nav_rotorcraft_init | ( | void | ) |
Init and register nav functions.
Definition at line 298 of file nav_rotorcraft_base.c.
References _nav_oval_init(), NavBase_t::circle, DEFAULT_CIRCLE_RADIUS, DefaultPeriodic, NavBase_t::goto_wp, NavGoto_t::leg_length, NavGoto_t::leg_progress, nav_approaching(), nav_circle(), nav_goto(), nav_oval(), nav_register_circle(), nav_register_goto_wp(), nav_register_oval(), nav_register_stage_init(), nav_rotorcraft_base, nav_route(), nav_stage_init(), NavCircle_t::radius, register_periodic_telemetry(), and send_nav_status().
|
extern |
Basic Nav struct.
Definition at line 1 of file nav_rotorcraft_base.c.
Referenced by _nav_oval_init(), nav_circle(), nav_goto(), nav_hybrid_circle(), nav_hybrid_goto(), nav_hybrid_route(), nav_oval(), nav_rotorcraft_hybrid_init(), nav_rotorcraft_init(), nav_route(), nav_stage_init(), send_circle(), send_nav_status(), and send_segment().