29 #ifndef AUTOPILOT_GUIDED_H
30 #define AUTOPILOT_GUIDED_H
98 #define GUIDED_FLAG_XY_OFFSET (1<<0)
99 #define GUIDED_FLAG_XY_BODY (1<<1)
100 #define GUIDED_FLAG_Z_OFFSET (1<<2)
101 #define GUIDED_FLAG_YAW_OFFSET (1<<3)
102 #define GUIDED_FLAG_XY_VEL (1<<5)
103 #define GUIDED_FLAG_Z_VEL (1<<6)
104 #define GUIDED_FLAG_YAW_RATE (1<<7)
108 #define NavGuided(_flags, _x, _y, _z, _yaw) { \
109 nav.horizontal_mode = NAV_HORIZONTAL_MODE_GUIDED; \
110 nav.vertical_mode = NAV_VERTICAL_MODE_GUIDED; \
111 autopilot_guided_update(_flags, _x, _y, _z, _yaw); \
void autopilot_guided_update(uint8_t flags, float x, float y, float z, float yaw)
Set guided setpoints using flag mask in GUIDED mode.
bool autopilot_guided_move_ned(float vx, float vy, float vz, float heading)
Set velocity and heading setpoints in GUIDED mode.
void autopilot_guided_parse_GUIDED(uint8_t *buf)
Parse GUIDED_SETPOINT_NED messages from datalink.
bool autopilot_guided_goto_ned_relative(float dx, float dy, float dz, float dyaw)
Set position and heading setpoints wrt.
bool autopilot_guided_goto_body_relative(float dx, float dy, float dz, float dyaw)
Set position and heading setpoints wrt.
bool autopilot_guided_goto_ned(float x, float y, float z, float heading)
Set position and heading setpoints in GUIDED mode.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.