vn200.cc File Reference

VectorNav VN-200 Inertial Navigation System implementation. More...

#include "vn200.hh"
Include dependency graph for vn200.cc:

Functions

bool dfti::validateVN200Checksum (QByteArray pkt)
 Validate the VN-200 packet checksum. More...
 

Detailed Description

VectorNav VN-200 Inertial Navigation System implementation.

Author
Joshua Harris
License
BSD 2-Clause License

Function Documentation

bool dfti::validateVN200Checksum ( QByteArray  pkt)

Validate the VN-200 packet checksum.

The checksum is a CRC 16; if the checksum byte is included the checksum should evaluate to 0.

Parameters
pktA full VN-200 packet to validate.
Returns
True if the packet checksum is correct.