35 #include "generated/flight_plan.h"
77 last_wp_f = wp->
wp.wp_f;
103 last_wp_f = segment->
to.to_f;
122 wp.
wp.wp_f = path->
path.path_f[0];
151 bool el_running =
false;
union _mission_wp::@282 wp
union _mission_circle::@283 center
union _mission_segment::@285 to
struct _mission_element * mission_get(void)
Get current mission element.
vector in East North Up coordinates Units: meters
void nav_circle_XY(float x, float y, float radius)
Navigates around (x, y).
position in UTM coordinates Units: meters
const float max_dist_from_home
float duration
time to spend in the element (<= 0 to disable)
vector in Latitude, Longitude and Altitude
union _mission_path::@286 path
bool mission_point_of_lla(struct EnuCoor_f *point, struct LlaCoor_i *lla)
Utility function: converts lla (int) to local point (float)
int32_t alt
in millimeters above WGS84 reference ellipsoid
float element_time
time in second spend in the current element
vector in Latitude, Longitude and Altitude
#define MISSION_ELEMENT_NB
Max number of elements in the tasks' list can be redefined.
const float dt_navigation
#define NavVerticalAltitudeMode(_alt, _pre_climb)
Set the vertical mode to altitude control with the specified altitude setpoint and climb pre-command...
union _mission_element::@287 element
static bool mission_nav_segment(struct _mission_segment *segment)
Navigation function along a segment.
uint8_t zone
UTM zone number.
#define NavVerticalAutoThrottleMode(_pitch)
Set the climb control to auto-throttle with the specified pitch pre-command.
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.
int mission_run()
Run mission.
union _mission_segment::@284 from
struct point waypoints[NB_WAYPOINT]
size == nb_waypoint, waypoint 0 is a dummy waypoint
uint8_t current_idx
current mission element index
void fly_to_xy(float x, float y)
Computes desired_x, desired_y and desired_course.
static bool mission_nav_circle(struct _mission_circle *circle)
Navigation function on a circle.
#define CARROT
default approaching_time for a wp
#define NAVIGATION_FREQUENCY
static bool mission_nav_wp(struct _mission_wp *wp)
Navigation function to a single waypoint.
struct EnuCoor_f last_wp_f
static bool mission_nav_path(struct _mission_path *path)
Navigation function along a path.
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.
Fixedwing Navigation library.
#define LLA_FLOAT_OF_BFP(_o, _i)
void utm_of_lla_f(struct UtmCoor_f *utm, struct LlaCoor_f *lla)
Fixedwing autopilot modes.