|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
35 #include "generated/flight_plan.h"
122 wp.wp.wp_f = path->
path.path_f[0];
157 bool el_running =
false;
union _mission_element::@299 element
#define NAVIGATION_FREQUENCY
uint8_t current_idx
current mission element index
struct EnuCoor_f last_wp_f
void nav_circle_XY(float x, float y, float radius)
Navigates around (x, y).
#define LLA_FLOAT_OF_BFP(_o, _i)
struct point waypoints[NB_WAYPOINT]
size == nb_waypoint, waypoint 0 is a dummy waypoint
static bool mission_nav_segment(struct _mission_segment *segment)
Navigation function along a segment.
static bool mission_nav_wp(struct _mission_wp *wp)
Navigation function to a single waypoint.
bool mission_point_of_lla(struct EnuCoor_f *point, struct LlaCoor_i *lla)
Utility function: converts lla (int) to local point (float)
#define NavVerticalAutoThrottleMode(_pitch)
Set the climb control to auto-throttle with the specified pitch pre-command.
union _mission_segment::@297 to
void utm_of_lla_f(struct UtmCoor_f *utm, struct LlaCoor_f *lla)
static bool mission_nav_custom(struct _mission_custom *custom, bool init)
Call custom navigation function.
#define CARROT
default approaching_time for a wp
void nav_route_xy(float last_wp_x, float last_wp_y, float wp_x, float wp_y)
Computes the carrot position along the desired segment.
uint8_t zone
UTM zone number.
vector in East North Up coordinates Units: meters
static bool mission_nav_path(struct _mission_path *path)
Navigation function along a path.
mission_custom_cb cb
navigation/action function callback
float alt
in meters (normally above WGS84 reference ellipsoid)
struct _mission_registered * reg
pointer to a registered custom mission element
#define MISSION_ELEMENT_NB
Max number of elements in the tasks' list can be redefined.
float params[MISSION_CUSTOM_MAX]
list of parameters
int mission_run()
Run mission.
union _mission_circle::@295 center
vector in Latitude, Longitude and Altitude
bool nav_approaching_xy(float x, float y, float from_x, float from_y, float approaching_time)
Decide if the UAV is approaching the current waypoint.
position in UTM coordinates Units: meters
static bool mission_nav_circle(struct _mission_circle *circle)
Navigation function on a circle.
struct _mission_element * mission_get(void)
Get current mission element.
uint8_t nb
number of parameters
float duration
time to spend in the element (<= 0 to disable)
union _mission_path::@298 path
union _mission_segment::@296 from
#define NavVerticalAltitudeMode(_alt, _pre_climb)
Set the vertical mode to altitude control with the specified altitude setpoint and climb pre-command.
static const float dt_navigation
const float max_dist_from_home
union _mission_wp::@294 wp
float element_time
time in second spend in the current element
vector in Latitude, Longitude and Altitude
void fly_to_xy(float x, float y)
Computes desired_x, desired_y and desired_course.