33#include "generated/flight_plan.h"
50 radius =
fabs(radius);
Core autopilot interface common to all firmwares.
struct point waypoints[NB_WAYPOINT]
size == nb_waypoint, waypoint 0 is a dummy waypoint
#define WaypointAlt(_wp)
waypoint altitude in m above MSL
static struct UtmCoor_f * stateGetPositionUtm_f(void)
Get position in UTM coordinates (float).
void nav_init_stage(void)
needs to be implemented by fixedwing and rotorcraft seperately
void nav_circle_XY(float x, float y, float radius)
Navigates around (x, y).
Fixedwing Navigation library.
#define NavApproachingFrom(wp, from, time)
#define NavQdrCloseTo(x)
True if x (in degrees) is close to the current QDR (less than 10 degrees)
#define NavSegment(_start, _end)
#define NavVerticalAltitudeMode(_alt, _pre_climb)
Set the vertical mode to altitude control with the specified altitude setpoint and climb pre-command.
#define NavVerticalAutoThrottleMode(_pitch)
Set the climb control to auto-throttle with the specified pitch pre-command.
line_status
Status along the pattern.
bool nav_vertical_raster_run(uint8_t l1, uint8_t l2, float radius, float AltSweep)
line_status
Copy of nav line.
void nav_vertical_raster_setup(void)
#define CARROT
default approaching_time for a wp
API to get/set the generic vehicle states.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.