29 #ifndef VN200_SERIAl_H
30 #define VN200_SERIAl_H
45 #define VN_OUTPUT_GROUP 0x39
46 #define VN_GROUP_BYTES 8
48 #define VN_BUFFER_SIZE 512
49 #define VN_HEADER_SIZE 9
50 #define VN_PAYLOAD_SIZE 144
Paparazzi generic algebra macros.
Paparazzi floating point algebra.
Paparazzi floating point math for geodetic calculations.
vector in North East Down coordinates Units: meters
Paparazzi fixed point math for geodetic calculations.
Paparazzi atmospheric pressure conversion utilities.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned long long uint64_t
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
uint8_t err
see page 122 of VN-200 datasheet
struct FloatRates gyro
Rates in the imu frame m/s.
struct FloatEulers attitude
Attitude, float, [rad], yaw, pitch, roll.
uint8_t msg_buf[VN_BUFFER_SIZE]
void vn200_event(struct VNPacket *vnp)
struct FloatEulers ypr_u
Attitude uncertainty, 1sigma, float, [degrees], yaw, pitch, roll.
float ypr[3]
yaw, pitch, roll [deg]
uint64_t tow
tow (in nanoseconds), uint64
struct FloatVect3 accel
Acceleration in the imu frame, m/s.
uint8_t mode
0-not tracking, 1 - poor performance, 2- OK
float timestamp
Time since VN startup [s].
float pos_u[3]
The current GPS position uncertainty in the North East Down (NED) coordinate frame,...
uint16_t ins_status
see page 122 of VN-200 datasheet
struct FloatVect3 vel_body
The estimated velocity in the imu frame, given in m/s.
float vel_u
NED velocity uncertainty [m/s].
uint8_t gps_fix
None|2D|3D.
uint8_t num_sv
number of visible satellites
void vn200_read_message(struct VNPacket *vnp, struct VNData *vndata)
Read received message and populate data struct with new measurements.
struct FloatVect3 lin_accel
Linear acceleration in imu frame [m/s^2].
struct NedCoor_f vel_ned
The estimated velocity in the North East Down (NED) frame, given in m/s.
void vn200_parse(struct VNPacket *vnp, uint8_t c)
Packet Collection & state machine.