33 #if PERIODIC_TELEMETRY
45 pprz_msg_send_VECTORNAV_INFO(trans, dev, AC_ID,
115 #if PERIODIC_TELEMETRY
float vn_freq
data frequency
#define RATES_BFP_OF_REAL(_ri, _rf)
void float_quat_of_eulers(struct FloatQuat *q, struct FloatEulers *e)
quat of euler roation 'ZYX'
void ahrs_vectornav_init(void)
Initialize Vectornav struct.
struct VNData vn_data
Data struct.
static void send_vn_info(struct transport_tx *trans, struct link_device *dev)
Periodic telemetry system header (includes downlink utility and generated code).
void ahrs_vectornav_event(void)
Event handling for Vectornav.
static struct FloatRMat * orientationGetRMat_f(struct OrientationReps *orientation)
Get vehicle body attitude rotation matrix (float).
#define INT32_VECT3_ZERO(_v)
Main include for ABI (AirBorneInterface).
static void stateSetNedToBodyQuat_f(struct FloatQuat *ned_to_body_quat)
Set vehicle body attitude from quaternion (float).
void vn200_event(struct VNPacket *vnp)
enum VNStatus vn_status
VN status.
struct FloatEulers attitude
Attitude, float, [rad], yaw, pitch, roll.
#define ACCELS_BFP_OF_REAL(_ef, _ei)
struct Int32Vect3 accel_i
struct OrientationReps body_to_imu
body_to_imu rotation
void ahrs_vectornav_propagate(void)
Read received data.
struct FloatEulers ypr_u
Attitude uncertainty, 1sigma, float, [degrees], yaw, pitch, roll.
uint8_t mode
0-not tracking, 1 - poor performance, 2- OK
struct FloatVect3 accel
Acceleration in the imu frame, m/s.
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 FloatRates gyro
Rates in the imu frame m/s.
static const struct usb_device_descriptor dev
bool ahrs_vectornav_is_enabled(void)
struct AhrsVectornav ahrs_vn
void float_rmat_ratemult(struct FloatRates *rb, struct FloatRMat *m_a2b, struct FloatRates *ra)
rotate anglular rates by rotation matrix.
Vectornav VN-200 as AHRS.
float timestamp
Time since VN startup [s].
uint8_t err
see page 122 of VN-200 datasheet
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
static void stateSetBodyRates_f(struct FloatRates *body_rate)
Set vehicle body angular rate (float).
struct VNPacket vn_packet
Packet struct.
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.