33 #include "pprzlink/dl_protocol.h"
101 if (bit_is_set(flags, 5)) {
102 if (bit_is_set(flags, 1)) {
108 if (!bit_is_set(flags, 0) && !bit_is_set(flags, 1)) {
112 if (bit_is_set(flags, 1)) {
127 if (bit_is_set(flags, 6)) {
130 if (bit_is_set(flags, 2)) {
141 if (bit_is_set(flags, 7)) {
144 if (bit_is_set(flags, 3)) {
159 DL_GUIDED_SETPOINT_NED_flags(buf),
160 DL_GUIDED_SETPOINT_NED_x(buf),
161 DL_GUIDED_SETPOINT_NED_y(buf),
162 DL_GUIDED_SETPOINT_NED_z(buf),
163 DL_GUIDED_SETPOINT_NED_yaw(buf));
uint8_t autopilot_get_mode(void)
get autopilot mode
Core autopilot interface common to all firmwares.
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.
Autopilot guided mode interface.
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
static struct NedCoor_f * stateGetPositionNed_f(void)
Get position in local NED coordinates (float).
static bool stateIsLocalCoordinateValid(void)
Test if local coordinates are valid.
void guidance_h_set_pos(float x, float y)
Set horizontal position setpoint.
void guidance_h_set_heading(float heading)
Set heading setpoint.
void guidance_h_set_vel(float vx, float vy)
Set horizontal acceleration setpoint.
void guidance_h_set_body_vel(float vx, float vy)
Set body relative horizontal velocity setpoint.
void guidance_h_set_heading_rate(float rate)
Set heading rate setpoint.
void guidance_v_set_vz(float vz)
Set z velocity setpoint.
void guidance_v_set_z(float z)
Set z position setpoint.
API to get/set the generic vehicle states.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.