30 #include "pprzlink/dl_protocol.h"
42 uint8_t msg_id = IdOfPprzMsg(buf);
49 if (DL_BLOCK_ac_id(buf) != AC_ID) {
break; }
56 if (ac_id != AC_ID) {
break; }
58 uint8_t wp_id = DL_MOVE_WP_wp_id(buf);
60 lla.
lat = DL_MOVE_WP_lat(buf);
61 lla.
lon = DL_MOVE_WP_lon(buf);
74 case DL_GUIDED_SETPOINT_NED:
75 if (DL_GUIDED_SETPOINT_NED_ac_id(buf) != AC_ID) {
break; }
78 DL_GUIDED_SETPOINT_NED_x(buf),
79 DL_GUIDED_SETPOINT_NED_y(buf),
80 DL_GUIDED_SETPOINT_NED_z(buf),
81 DL_GUIDED_SETPOINT_NED_yaw(buf));
Rotorcraft navigation functions.
void autopilot_guided_update(uint8_t flags, float x, float y, float z, float yaw)
Set guided setpoints using flag mask in GUIDED mode.
static bool stateIsLocalCoordinateValid(void)
Test if local coordinates are valid.
Handling of messages coming from ground and other A/Cs.
void firmware_parse_msg(struct link_device *dev, struct transport_tx *trans, uint8_t *buf)
Firmware specfic msg handler.
Autopilot guided mode interface.
vector in Latitude, Longitude and Altitude
int32_t hmsl
Height above mean sea level in mm.
int32_t alt
in millimeters above WGS84 reference ellipsoid
void waypoint_move_lla(uint8_t wp_id, struct LlaCoor_i *lla)
struct LlaCoor_i lla
Reference point in lla.
int32_t lon
in degrees*1e7
Paparazzi fixed point math for geodetic calculations.
static const struct usb_device_descriptor dev
struct LtpDef_i ned_origin_i
Definition of the local (flat earth) coordinate system.
Core autopilot interface common to all firmwares.
int32_t lat
in degrees*1e7
void nav_goto_block(uint8_t b)