/* This helps verify nav packets against the Nodecopter implementation.
* To run, you will need Node.js installed, and then clone the Nodecopter
* git repository from:
*
* https://github.com/felixge/node-ar-drone
*
* Put the packet data in the packet var as a hex string. Then execute with:
*
* NODE_PATH=/path/to/nodecopter/lib/navdata node nav_data_dump.js
*
*/
var packet = "88776655f504800fb51700000100000000009400000003004c0000000000b8c20000dcc30030654616020000c73d86431d4143c300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000e53b7d3fd51816befe0733bb271d163e2f3a7d3fa356f13b01afd43a79dafbbbfafd7f3f65903544a9c4fec200808bc410004801000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff0800e3230000";
var packet_buf = new Buffer( packet, "hex" );
var parseNavData = require( "parseNavdata" );
var navdata = parseNavData( packet_buf );
console.log( navdata );