38 #include "generated/airframe.h"
42 #if PERIODIC_TELEMETRY
54 pprz_msg_send_VECTORNAV_INFO(trans,
dev, AC_ID,
95 #if PERIODIC_TELEMETRY
Main include for ABI (AirBorneInterface).
void imu_vectornav_init(void)
Init IMU struct and set up ABI messages.
void imu_vectornav_event(void)
Event function to read and parse data from the serial port.
struct ImuVectornav imu_vn
void imu_vectornav_periodic(void)
Periodic function checks for the frequency of packets, triggers warning in case the IMU stops sending...
void imu_vectornav_propagate(void)
Send ABI messages.
static void send_vn_info(struct transport_tx *trans, struct link_device *dev)
Vectornav VN-200 IMU module, to be used with other AHRS/INS algorithms.
float vn_freq
data frequency
struct VNData vn_data
Data struct.
enum VNStatus vn_status
VN status.
struct VNPacket vn_packet
Packet struct.
static const struct usb_device_descriptor dev
Architecture independent timing functions.
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
Periodic telemetry system header (includes downlink utility and generated code).
#define DefaultPeriodic
Set default periodic telemetry.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned long long uint64_t
void vn200_read_message(struct VNPacket *vn_packet, struct VNData *vn_data)
Read received message and populate data struct with new measurements.
void vn200_event(struct VNPacket *vnp)
uint8_t err
see page 122 of VN-200 datasheet
struct FloatRates gyro
Rates in the imu frame m/s.
struct FloatEulers ypr_u
Attitude uncertainty, 1sigma, float, [degrees], yaw, pitch, roll.
struct FloatVect3 accel
Acceleration in the imu frame, m/s.
uint8_t mode
0-not tracking, 1 - poor performance, 2- OK
float timestamp
Time since VN startup [s].