|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
38 #include "generated/airframe.h"
46 #if PERIODIC_TELEMETRY
58 pprz_msg_send_VECTORNAV_INFO(trans,
dev, AC_ID,
99 #if PERIODIC_TELEMETRY
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.
struct Int32Vect3 accel
accelerometer measurements in m/s^2 in BFP with INT32_ACCEL_FRAC
struct VNPacket vn_packet
Packet struct.
static void send_vn_info(struct transport_tx *trans, struct link_device *dev)
void imu_vectornav_init(void)
Init IMU struct and set up ABI messages.
void vn200_event(struct VNPacket *vnp)
struct FloatEulers ypr_u
Attitude uncertainty, 1sigma, float, [degrees], yaw, pitch, roll.
abstract IMU interface providing fixed point interface
#define ACCELS_BFP_OF_REAL(_ef, _ei)
struct FloatVect3 accel
Acceleration in the imu frame, m/s.
struct ImuVectornav imu_vn
#define RATES_BFP_OF_REAL(_ri, _rf)
static const struct usb_device_descriptor dev
uint8_t mode
0-not tracking, 1 - poor performance, 2- OK
enum VNStatus vn_status
VN status.
Architecture independent timing functions.
void imu_scale_gyro(struct Imu *_imu)
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
void vn200_read_message(struct VNPacket *vn_packet, struct VNData *vn_data)
Read received message and populate data struct with new measurements.
struct Imu imu
global IMU state
struct FloatRates gyro
Rates in the imu frame m/s.
struct VNData vn_data
Data struct.
void imu_vectornav_event(void)
Event function to read and parse data from the serial port.
uint8_t err
see page 122 of VN-200 datasheet
float timestamp
Time since VN startup [s].
float vn_freq
data frequency
void imu_scale_accel(struct Imu *_imu)
#define DefaultPeriodic
Set default periodic telemetry.
unsigned long long uint64_t
struct Int32Rates gyro
gyroscope measurements in rad/s in BFP with INT32_RATE_FRAC