Extract Nav data from AR Drone 1.0 hex dump.

Problems of AR Drone 1.0, Freeflight 1.
Post Reply
flarezt@gmail.com
Newcomer
Posts: 1
Joined: 15 Oct 2015, 13:05
Drone Type: AR.Drone

Extract Nav data from AR Drone 1.0 hex dump.

Post by flarezt@gmail.com » 13 Nov 2015, 18:42

Dear all,

I'm trying to extract nav data from a hex dump. I've captured it according to this manual: http://blog.perquin.com/blog/ar-drone-navboard/.
To extract data I follow steps: convert hex -> byte.
Results are a bit confusing. What I'm doing wrong?

This is an example of captured data package:
2c002a003c089c07c80b640665066806240629069000f205a206770627837aed270318060000000089110600a200
Hex data
ax = 2a ay = 00 az = 3c
After conversion both hex digits at once:
ax = 42 ay = 0 az = 60
After conversion hex digits separate.
ax = 5097 ay = 4848 az = 5199
Calculate ax:
ax = (ax - ax_offset) / ax_gain.

Kind regards,
Flare

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests