31 #include "generated/airframe.h"
40 #include "pprzlink/messages.h"
122 #ifdef GPS_IMU_LEVER_ARM_X
123 #pragma message "Sending XSens GPS Arm."
124 XSENS_SetLeverArmGps(GPS_IMU_LEVER_ARM_X, GPS_IMU_LEVER_ARM_Y, GPS_IMU_LEVER_ARM_Z);
129 XSENS_SetBaudrate(baud);
134 XSENS_GoToMeasurment();
149 if (
xsens_id == XSENS_ReqLeverArmGpsAck_ID) {
153 }
else if (
xsens_id == XSENS_Error_ID) {
155 }
else if (
xsens_id == XSENS_MTData2_ID) {
165 }
else if (code2 == 0x20) {
171 }
else if (code1 == 0x20) {
180 }
else if (code1 == 0x40) {
187 }
else if (code1 == 0x80) {
194 }
else if (code1 == 0x30) {
198 }
else if (code1 == 0xE0) {
213 }
else if (code1 == 0x88) {
220 }
else if (code2 == 0xA0) {
234 if (ch >
xsens700.gps.nb_channels) {
continue; }
242 }
else if (code1 == 0x50) {
245 }
else if (code2 == 0x20) {
255 }
else if (code2 == 0x40) {
267 }
else if (code1 == 0xD0) {
280 if (subpacklen < 0) {
283 offset += subpacklen;
volatile int xsens_configured
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
static float wgs84_ellipsoid_to_geoid_f(float lat, float lon)
Get WGS84 ellipsoid/geoid separation.
static struct EcefCoor_d offset
uint32_t xsens_msg_statusword
uint16_t xsens_output_mode
#define GPS_VALID_VEL_NED_BIT
uint32_t xsens_output_settings
Parser for the Xsens protocol.
#define GPS_FIX_3D
3D GPS fix
struct FloatVect3 vel
NED velocity in m/s.
void parse_xsens700_msg(void)
#define GPS_FIX_NONE
No GPS fix.
#define GPS_FIX_2D
2D GPS fix
#define XsensSend1ByAddr(x)
void xsens700_periodic(void)
uint8_t xsens_msg_buf[XSENS_MAX_PAYLOAD]
#define GPS_VALID_HMSL_BIT
volatile uint32_t nb_sec_rem
remainder of seconds since startup in CPU_TICKS
uint16_t xsens_time_stamp
volatile uint32_t nb_sec
full seconds since startup
Common code for AP and FBW telemetry.
arch independent LED (Light Emitting Diodes) API
Parser for the Xsens protocol.
uint8_t xsens_id
Includes macros generated from xsens_MTi-G.xml.
static void xsens_ask_message_rate(uint8_t c1, uint8_t c2, uint8_t freq)
#define XsensHeader(msg_id, len)
#define UNINIT
Receiving pprz messages.
volatile bool new_attitude