|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
35 #if PERIODIC_TELEMETRY
47 pprz_msg_send_VECTORNAV_INFO(trans,
dev, AC_ID,
117 #if PERIODIC_TELEMETRY
struct OrientationReps body_to_imu
body_to_imu rotation
bool ahrs_vectornav_is_enabled(void)
void vn200_event(struct VNPacket *vnp)
struct FloatEulers attitude
Attitude, float, [rad], yaw, pitch, roll.
static struct FloatRMat * orientationGetRMat_f(struct OrientationReps *orientation)
Get vehicle body attitude rotation matrix (float).
struct AhrsVectornav ahrs_vn
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
struct FloatEulers ypr_u
Attitude uncertainty, 1sigma, float, [degrees], yaw, pitch, roll.
#define INT32_VECT3_ZERO(_v)
#define ACCELS_BFP_OF_REAL(_ef, _ei)
struct FloatVect3 accel
Acceleration in the imu frame, m/s.
float vn_freq
data frequency
#define RATES_BFP_OF_REAL(_ri, _rf)
static const struct usb_device_descriptor dev
static void stateSetBodyRates_f(struct FloatRates *body_rate)
Set vehicle body angular rate (float).
uint8_t mode
0-not tracking, 1 - poor performance, 2- OK
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.
static void send_vn_info(struct transport_tx *trans, struct link_device *dev)
struct FloatRates gyro
Rates in the imu frame m/s.
enum VNStatus vn_status
VN status.
struct VNData vn_data
Data struct.
struct VNPacket vn_packet
Packet struct.
void ahrs_vectornav_init(void)
Initialize Vectornav struct.
struct Int32Vect3 accel_i
void float_rmat_ratemult(struct FloatRates *rb, struct FloatRMat *m_a2b, struct FloatRates *ra)
rotate anglular rates by rotation matrix.
uint8_t err
see page 122 of VN-200 datasheet
float timestamp
Time since VN startup [s].
void ahrs_vectornav_event(void)
Event handling for Vectornav.
void ahrs_vectornav_propagate(void)
Read received data.
#define DefaultPeriodic
Set default periodic telemetry.
static void stateSetNedToBodyQuat_f(struct FloatQuat *ned_to_body_quat)
Set vehicle body attitude from quaternion (float).
void float_quat_of_eulers(struct FloatQuat *q, struct FloatEulers *e)
quat of euler roation 'ZYX'