37 #include "autopilot.h"
38 #include "generated/flight_plan.h"
44 #ifndef NAV_SPIRAL_MIN_CIRCLE_RADIUS
45 #define NAV_SPIRAL_MIN_CIRCLE_RADIUS 60
94 float DistanceStartEstim;
float alt
in meters (above WGS84 reference ellipsoid or above MSL)
vector in East North Up coordinates Units: meters
void nav_circle_XY(float x, float y, float radius)
Navigates around (x, y).
#define VECT2_COPY(_a, _b)
#define VECT2_DIFF(_c, _a, _b)
static struct EnuCoor_f * stateGetPositionEnu_f(void)
Get position in local ENU coordinates (float).
bool nav_spiral_setup(uint8_t center_wp, uint8_t edge_wp, float radius_start, float radius_inc, float segments)
#define FLOAT_VECT3_NORM(_v)
Fixedwing navigation in a spiral/helix.
struct FloatVect3 trans_current
bool nav_spiral_run(void)
struct FloatVect2 last_circle
Standard Digital Camera Control Interface.
static float float_vect2_norm(struct FloatVect2 *v)
struct FloatVect2 fly_from
#define NavVerticalAltitudeMode(_alt, _pre_climb)
Set the vertical mode to altitude control with the specified altitude setpoint and climb pre-command...
struct NavSpiral nav_spiral
#define NAV_SPIRAL_MIN_CIRCLE_RADIUS
#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.
void dc_send_command(uint8_t cmd)
Send Command To Camera.
static struct UtmCoor_f * stateGetPositionUtm_f(void)
Get position in UTM coordinates (float).
API to get/set the generic vehicle states.
uint8_t dc_stop(void)
Stop dc control.
struct point waypoints[NB_WAYPOINT]
size == nb_waypoint, waypoint 0 is a dummy waypoint
#define dc_Circle(interval)
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.
float dc_cam_angle
camera angle