38 #include "generated/airframe.h"
46 #if PERIODIC_TELEMETRY
58 pprz_msg_send_VECTORNAV_INFO(trans, dev, AC_ID,
99 #if PERIODIC_TELEMETRY
#define RATES_BFP_OF_REAL(_ri, _rf)
static void send_vn_info(struct transport_tx *trans, struct link_device *dev)
Periodic telemetry system header (includes downlink utility and generated code).
float vn_freq
data frequency
Main include for ABI (AirBorneInterface).
Vectornav VN-200 IMU subsystems, to be used with other AHRS/INS algorithms.
struct Imu imu
global IMU state
void vn200_event(struct VNPacket *vnp)
#define ACCELS_BFP_OF_REAL(_ef, _ei)
enum VNStatus vn_status
VN status.
struct FloatEulers ypr_u
Attitude uncertainty, 1sigma, float, [degrees], yaw, pitch, roll.
struct Int32Vect3 accel
accelerometer measurements in m/s^2 in BFP with INT32_ACCEL_FRAC
unsigned long long uint64_t
uint8_t mode
0-not tracking, 1 - poor performance, 2- OK
Architecture independent timing functions.
struct FloatVect3 accel
Acceleration in the imu frame, m/s.
struct VNPacket vn_packet
Packet struct.
void vn200_read_message(struct VNPacket *vn_packet, struct VNData *vn_data)
Read received message and populate data struct with new measurements.
#define DefaultPeriodic
Set default periodic telemetry.
struct ImuVectornav imu_vn
struct FloatRates gyro
Rates in the imu frame m/s.
void imu_scale_gyro(struct Imu *_imu)
static const struct usb_device_descriptor dev
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.
void imu_vectornav_propagate(void)
Send ABI messages.
void imu_scale_accel(struct Imu *_imu)
struct VNData vn_data
Data struct.
abstract IMU interface providing fixed point interface
float timestamp
Time since VN startup [s].
uint8_t err
see page 122 of VN-200 datasheet
void imu_vectornav_periodic(void)
Periodic function checks for the frequency of packets, triggers warning in case the IMU stops sending...
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
struct Int32Rates gyro
gyroscope measurements in rad/s in BFP with INT32_RATE_FRAC