VectorNav C Library
Functions
UART ASCII Asynchronous Packet Parsers

This group of functions allow parsing of ASCII asynchronous data packets from VectorNav sensors. More...

Functions

void VnUartPacket_parseVNYPR (VnUartPacket *packet, vec3f *yawPitchRoll)
 Parses a VNYPR asynchronous packet. More...
 
void VnUartPacket_parseVNQTN (VnUartPacket *packet, vec4f *quaternion)
 Parses a VNQTN asynchronous packet. More...
 
void VnUartPacket_parseVNQMR (VnUartPacket *packet, vec4f *quaternion, vec3f *magnetic, vec3f *acceleration, vec3f *angularRate)
 Parses a VNQMR asynchronous packet. More...
 
void VnUartPacket_parseVNMAG (VnUartPacket *packet, vec3f *magnetic)
 Parses a VNMAG asynchronous packet. More...
 
void VnUartPacket_parseVNACC (VnUartPacket *packet, vec3f *acceleration)
 Parses a VNACC asynchronous packet. More...
 
void VnUartPacket_parseVNGYR (VnUartPacket *packet, vec3f *angularRate)
 Parses a VNGYR asynchronous packet. More...
 
void VnUartPacket_parseVNMAR (VnUartPacket *packet, vec3f *magnetic, vec3f *acceleration, vec3f *angularRate)
 Parses a VNMAR asynchronous packet. More...
 
VnError VnUartPacket_parseVNYMR (VnUartPacket *packet, vec3f *yawPitchRoll, vec3f *magnetic, vec3f *acceleration, vec3f *angularRate)
 Parses a VNYMR asynchronous packet. More...
 
void VnUartPacket_parseVNYBA (VnUartPacket *packet, vec3f *yawPitchRoll, vec3f *accelerationBody, vec3f *angularRate)
 Parses a VNYMR asynchronous packet. More...
 
void VnUartPacket_parseVNYIA (VnUartPacket *packet, vec3f *yawPitchRoll, vec3f *accelerationInertial, vec3f *angularRate)
 Parses a VNYIA asynchronous packet. More...
 
void VnUartPacket_parseVNIMU (VnUartPacket *packet, vec3f *magneticUncompensated, vec3f *accelerationUncompensated, vec3f *angularRateUncompensated, float *temperature, float *pressure)
 Parses a VNIMU asynchronous packet. More...
 
void VnUartPacket_parseVNGPS (VnUartPacket *packet, double *time, uint16_t *week, uint8_t *gpsFix, uint8_t *numSats, vec3d *lla, vec3f *nedVel, vec3f *nedAcc, float *speedAcc, float *timeAcc)
 Parses a VNGPS asynchronous packet. More...
 
void VnUartPacket_parseVNINS (VnUartPacket *packet, double *time, uint16_t *week, uint16_t *status, vec3f *yawPitchRoll, vec3d *lla, vec3f *nedVel, float *attUncertainty, float *posUncertainty, float *velUncertainty)
 Parses a VNINS asynchronous packet. More...
 
void VnUartPacket_parseVNINE (VnUartPacket *packet, double *time, uint16_t *week, uint16_t *status, vec3f *yawPitchRoll, vec3d *position, vec3f *velocity, float *attUncertainty, float *posUncertainty, float *velUncertainty)
 Parses a VNINE asynchronous packet. More...
 
void VnUartPacket_parseVNISL (VnUartPacket *packet, vec3f *ypr, vec3d *lla, vec3f *velocity, vec3f *acceleration, vec3f *angularRate)
 Parse a VNISL asynchronous packet. More...
 
void VnUartPacket_parseVNISE (VnUartPacket *packet, vec3f *ypr, vec3d *position, vec3f *velocity, vec3f *acceleration, vec3f *angularRate)
 Parse a VNISE asynchronous packet. More...
 
void VnUartPacket_parseVNGPE (VnUartPacket *packet, double *tow, uint16_t *week, uint8_t *gpsFix, uint8_t *numSats, vec3d *position, vec3f *velocity, vec3f *posAcc, float *speedAcc, float *timeAcc)
 Parses a VNGPE asynchronous packet. More...
 
void VnUartPacket_parseVNDTV (VnUartPacket *packet, float *deltaTime, vec3f *deltaTheta, vec3f *deltaVelocity)
 Parses a VNDTV asynchronous packet. More...
 

Detailed Description

This group of functions allow parsing of ASCII asynchronous data packets from VectorNav sensors.

The units are not specified for the out parameters since these functions do a simple conversion operation from the received packet string. Please consult the appropriate sensor user manual for details about the units returned by the sensor.

Function Documentation

void VnUartPacket_parseVNACC ( VnUartPacket packet,
vec3f acceleration 
)

Parses a VNACC asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]accelerationThe acceleration values in the packet.
void VnUartPacket_parseVNDTV ( VnUartPacket packet,
float *  deltaTime,
vec3f deltaTheta,
vec3f deltaVelocity 
)

Parses a VNDTV asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]deltaTimeThe DeltaTime value in the packet.
[out]deltaThetaThe DeltaTheta values in the packet.
[out]deltaVelocityThe DeltaVelocity values in the packet.
void VnUartPacket_parseVNGPE ( VnUartPacket packet,
double *  tow,
uint16_t *  week,
uint8_t *  gpsFix,
uint8_t *  numSats,
vec3d position,
vec3f velocity,
vec3f posAcc,
float *  speedAcc,
float *  timeAcc 
)

Parses a VNGPE asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]towThe tow value in the packet.
[out]weekThe week value in the packet.
[out]gpsFixThe GPS fix value in the packet.
[out]numSatsThe numSats value in the packet.
[out]positionThe ECEF position values in the packet.
[out]velocityThe ECEF velocity values in the packet.
[out]posAccThe PosAcc values in the packet.
[out]speedAccThe SpeedAcc value in the packet.
[out]timeAccThe TimeAcc value in the packet.
void VnUartPacket_parseVNGPS ( VnUartPacket packet,
double *  time,
uint16_t *  week,
uint8_t *  gpsFix,
uint8_t *  numSats,
vec3d lla,
vec3f nedVel,
vec3f nedAcc,
float *  speedAcc,
float *  timeAcc 
)

Parses a VNGPS asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]timeThe time value in the packet.
[out]weekThe week value in the packet.
[out]gpsFixThe GPS fix value in the packet.
[out]numSatsThe NumSats value in the packet.
[out]llaThe latitude, longitude and altitude values in the packet.
[out]nedVelThe NED velocity values in the packet.
[out]nedAccThe NED position accuracy values in the packet.
[out]speedAccThe SpeedAcc value in the packet.
[out]timeAccThe TimeAcc value in the packet.
void VnUartPacket_parseVNGYR ( VnUartPacket packet,
vec3f angularRate 
)

Parses a VNGYR asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]angularRateThe angular rate values in the packet.
void VnUartPacket_parseVNIMU ( VnUartPacket packet,
vec3f magneticUncompensated,
vec3f accelerationUncompensated,
vec3f angularRateUncompensated,
float *  temperature,
float *  pressure 
)

Parses a VNIMU asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]magneticUncompensatedThe uncompensated magnetic values in the packet.
[out]accelerationUncompensatedThe uncompensated acceleration values in the packet.
[out]angularRateUncompensatedThe uncompensated angular rate values in the packet.
[out]temperatureThe temperature value in the packet.
[out]pressureThe pressure value in the packet.
void VnUartPacket_parseVNINE ( VnUartPacket packet,
double *  time,
uint16_t *  week,
uint16_t *  status,
vec3f yawPitchRoll,
vec3d position,
vec3f velocity,
float *  attUncertainty,
float *  posUncertainty,
float *  velUncertainty 
)

Parses a VNINE asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]timeThe time value in the packet.
[out]weekThe week value in the packet.
[out]statusThe status value in the packet.
[out]yawPitchRollThe yaw, pitch, roll values in the packet.
[out]positionThe latitude, longitude, altitude values in the packet.
[out]velocityThe NED velocity values in the packet.
[out]attUncertaintyThe attitude uncertainty value in the packet.
[out]posUncertaintyThe position uncertainty value in the packet.
[out]velUncertaintyThe velocity uncertainty value in the packet.
void VnUartPacket_parseVNINS ( VnUartPacket packet,
double *  time,
uint16_t *  week,
uint16_t *  status,
vec3f yawPitchRoll,
vec3d lla,
vec3f nedVel,
float *  attUncertainty,
float *  posUncertainty,
float *  velUncertainty 
)

Parses a VNINS asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]timeThe time value in the packet.
[out]weekThe week value in the packet.
[out]statusThe status value in the packet.
[out]yawPitchRollThe yaw, pitch, roll values in the packet.
[out]llaThe latitude, longitude, altitude values in the packet.
[out]nedVelThe NED velocity values in the packet.
[out]attUncertaintyThe attitude uncertainty value in the packet.
[out]posUncertaintyThe position uncertainty value in the packet.
[out]velUncertaintyThe velocity uncertainty value in the packet.
void VnUartPacket_parseVNISE ( VnUartPacket packet,
vec3f ypr,
vec3d position,
vec3f velocity,
vec3f acceleration,
vec3f angularRate 
)

Parse a VNISE asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]yprThe yaw, pitch, roll values in the packet.
[out]positionThe ECEF position values in the packet.
[out]velocityThe ECEF velocity values in the packet.
[out]accelerationThe acceleration values in the packet.
[out]angularRateThe angular rate values in the packet.
void VnUartPacket_parseVNISL ( VnUartPacket packet,
vec3f ypr,
vec3d lla,
vec3f velocity,
vec3f acceleration,
vec3f angularRate 
)

Parse a VNISL asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]yprThe yaw, pitch, roll values in the packet.
[out]llaThe latitude, longitude, altitude values in the packet.
[out]velocityThe velocity values in the packet.
[out]accelerationThe acceleration values in the packet.
[out]angularRateThe angular rate values in the packet.
void VnUartPacket_parseVNMAG ( VnUartPacket packet,
vec3f magnetic 
)

Parses a VNMAG asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]magneticThe magnetic values in the packet.
void VnUartPacket_parseVNMAR ( VnUartPacket packet,
vec3f magnetic,
vec3f acceleration,
vec3f angularRate 
)

Parses a VNMAR asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]magneticThe magnetic values in the packet.
[out]accelerationThe acceleration values in the packet.
[out]angularRateThe angular rate values in the packet.
void VnUartPacket_parseVNQMR ( VnUartPacket packet,
vec4f quaternion,
vec3f magnetic,
vec3f acceleration,
vec3f angularRate 
)

Parses a VNQMR asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]quaternionThe quaternion values in the packet.
[out]magneticThe magnetic values in the packet.
[out]accelerationThe acceleration values in the packet.
[out]angularRateThe angular rate values in the packet.
void VnUartPacket_parseVNQTN ( VnUartPacket packet,
vec4f quaternion 
)

Parses a VNQTN asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]quaternionThe quaternion values in the packet.
void VnUartPacket_parseVNYBA ( VnUartPacket packet,
vec3f yawPitchRoll,
vec3f accelerationBody,
vec3f angularRate 
)

Parses a VNYMR asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[in]packetLengthThe number of bytes in the packet buffer.
[out]yawPitchRollThe yaw, pitch, roll values in the packet.
[out]magneticThe magnetic values in the packet.
[out]accelerationThe acceleration values in the packet.
[out]angularRateThe angular rate values in the packet. Parses a VNYBA asynchronous packet.
[in]packetThe packet to extract the values from.
[out]yawPitchRollThe yaw, pitch, roll values in the packet.
[out]accelerationBodyThe acceleration body values in the packet.
[out]angularRateThe angular rate values in the packet.
void VnUartPacket_parseVNYIA ( VnUartPacket packet,
vec3f yawPitchRoll,
vec3f accelerationInertial,
vec3f angularRate 
)

Parses a VNYIA asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]yawPitchRollThe yaw, pitch, roll values in the packet.
[out]accelerationInertialThe acceleration inertial values in the packet.
[out]angularRateThe angular rate values in the packet.
VnError VnUartPacket_parseVNYMR ( VnUartPacket packet,
vec3f yawPitchRoll,
vec3f magnetic,
vec3f acceleration,
vec3f angularRate 
)

Parses a VNYMR asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]yawPitchRollThe yaw, pitch, roll values in the packet.
[out]magneticThe magnetic values in the packet.
[out]accelerationThe acceleration values in the packet.
[out]angularRateThe angular rate values in the packet.
Examples:
getting_started/main.c.
void VnUartPacket_parseVNYPR ( VnUartPacket packet,
vec3f yawPitchRoll 
)

Parses a VNYPR asynchronous packet.

Parameters
[in]packetThe packet to extract the values from.
[out]yawPitchRollThe yaw, pitch, roll values in the packet.
Examples:
sensor/main.c.