31#include "generated/airframe.h"
46 if (
xsens.parser.msg_received) {
57 if (
xsens.gyro_available) {
64 AbiSendMsgIMU_GYRO_RAW(
IMU_XSENS_ID, now_ts, &gyro, 1, NAN, NAN);
66 if (
xsens.accel_available) {
73 AbiSendMsgIMU_ACCEL_RAW(
IMU_XSENS_ID, now_ts, &accel, 1, NAN, NAN);
75 if (
xsens.mag_available) {
85 if (
xsens.gyro_available) {
91 AbiSendMsgIMU_GYRO_RAW(
IMU_XSENS_ID, now_ts, &gyro, 1, NAN, NAN);
94 if (
xsens.accel_available) {
100 AbiSendMsgIMU_ACCEL_RAW(
IMU_XSENS_ID, now_ts, &accel, 1, NAN, NAN);
103 if (
xsens.mag_available) {
Main include for ABI (AirBorneInterface).
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
#define ACCEL_BFP_OF_REAL(_af)
#define MAG_BFP_OF_REAL(_af)
#define RATE_BFP_OF_REAL(_af)
static void handle_ins_msg(void)
void imu_xsens_event(void)
void imu_xsens_init(void)
XSENS to just provide IMU measurements.
Architecture independent timing functions.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
void parse_xsens_msg(void)
Parser for the Xsens protocol.
void xsens_parser_event(struct XsensParser *xsensparser)