Getting heading data from MPU-9150

By xtal1 , 15 January 2013

Folks,

I'm obviously missing something (and some recent threads here haven't solved my confusion :-) Here are a couple quick questions seeking your comments to set me straight.

Background:
Using the MotionFit SDK Rev. B hardware with the recent 5.1 software release, including the UC3umplDebugConsole.py program. Goal is to get "compass-fused" (i.e., corrected) heading angle, using minimally-modified SDK firmware.

* Does the current SDK firmware turn on 9D fusion by default, or is it just 6D? What do I need to do to turn it on?

* Another thread mentions issuing commands to the firmware, e.g., "invh", but this doesn't work for me. Typing input (with either the "console" window or game view window in focus has null effect. Do I need to mod the Python code?

* If I can't turn on 9D fusion, I presume the heading data I get is a gyro-derived measurement using the power-on as the zero reference. Correct? (Note: I currently seem to get a value of around 3 degrees for the heading, which only changes a very small amount when I fully rotate the PCB -- that is if I'm interpreting the 4th-7th bytes of the output stream correctly, i.e., binary bytes, q16, msb first.)

TIA,

Mike

phpbb Topic ID
14982