29 #ifndef INS_VECTORNAV_H
30 #define INS_VECTORNAV_H
47 #include "generated/airframe.h"
56 #if !defined INS_VN_BODY_TO_IMU_PHI && !defined INS_VN_BODY_TO_IMU_THETA && !defined INS_VN_BODY_TO_IMU_PSI
57 #define INS_VN_BODY_TO_IMU_PHI 0
58 #define INS_VN_BODY_TO_IMU_THETA 0
59 #define INS_VN_BODY_TO_IMU_PSI 0
void ins_vectornav_yaw_pitch_roll_to_attitude(struct FloatEulers *vn_attitude)
Convert yaw, pitch, and roll data from VectorNav to correct attitude yaw(0), pitch(1), roll(2) -> phi, theta, psi [deg] -> rad.
struct NedCoor_f ltp_accel_f
definition of the local (flat earth) coordinate system
void ins_vectornav_read_message(void)
Read received data.
struct VNPacket vn_packet
Packet struct.
uint8_t err
see page 122 of VN-200 datasheet
struct NedCoor_i ltp_accel_i
void ins_vectornav_check_status(void)
Check INS status.
uint32_t vn_ltime
aux time stamp
struct FloatEulers ypr_u
Attitude uncertainty, 1sigma, float, [degrees], yaw, pitch, roll.
Main include for ABI (AirBorneInterface).
enum VNStatus vn_status
VN status.
struct FloatVect3 lin_accel
Linear acceleration in imu frame [m/s^2].
Integrated Navigation System interface.
uint16_t vn_chksm
aux variable for checksum
struct FloatEulers attitude
Attitude, float, [degrees], yaw, pitch, roll.
struct FloatRates gyro
Rates in the imu frame m/s.
vector in Latitude, Longitude and Altitude
void ins_vectornav_event(void)
Event handling for Vectornav.
vector in North East Down coordinates Units: meters
Paparazzi floating point algebra.
Architecture independent timing functions.
uint8_t mode
0-not tracking, 1 - poor performance, 2- OK
void ins_vectornav_init(void)
Initialize Vectornav struct.
Vectornav VN-200 INS subsystem.
struct FloatVect3 accel
Acceleration in the imu frame, m/s.
Paparazzi generic algebra macros.
float pos_u[3]
The current GPS position uncertainty in the North East Down (NED) coordinate frame, given in meters.
Device independent GPS code (interface)
Paparazzi atmospheric pressure conversion utilities.
float baro_z
z-position calculated from baro in meters (z-down)
float vel_u
NED velocity uncertainty [m/s].
Paparazzi fixed point math for geodetic calculations.
void ins_vectornav_set_sacc(void)
Set speed (velocity) uncertainty (NED) speed accuracy in cm/s.
void ins_vectornav_propagate(void)
Propagate the received states into the vehicle state machine.
struct Int32Vect3 accel_i
vector in North East Down coordinates
struct NedCoor_i ltp_speed_i
struct OrientationReps body_to_imu
body_to_imu rotation
void ins_vectornav_set_pacc(void)
Find maximum uncertainty (NED) position accuracy in cm.
struct InsVectornav ins_vn
uint16_t ins_status
see page 122 of VN-200 datasheet
struct NedCoor_i ltp_pos_i
float vn_freq
data frequency
struct FloatVect3 vel_body
The estimated velocity in the imu frame, given in m/s.
struct NedCoor_f vel_ned
The estimated velocity in the North East Down (NED) frame, given in m/s.
uint32_t vn_time
VN time stamp.
float timestamp
System time [s].