|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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));
int32_t lon
in degrees*1e7
int32_t alt
in millimeters above WGS84 reference ellipsoid
static bool stateIsLocalCoordinateValid(void)
Test if local coordinates are valid.
struct LtpDef_i ned_origin_i
Definition of the local (flat earth) coordinate system.
Paparazzi fixed point math for geodetic calculations.
void firmware_parse_msg(struct link_device *dev, struct transport_tx *trans, uint8_t *buf)
Firmware specfic msg handler.
void waypoint_move_lla(uint8_t wp_id, struct LlaCoor_i *lla)
int32_t lat
in degrees*1e7
static const struct usb_device_descriptor dev
vector in Latitude, Longitude and Altitude
int32_t hmsl
Height above mean sea level in mm.
Handling of messages coming from ground and other A/Cs.
void autopilot_guided_update(uint8_t flags, float x, float y, float z, float yaw)
Set guided setpoints using flag mask in GUIDED mode.
struct LlaCoor_i lla
Reference point in lla.
void nav_goto_block(uint8_t b)