Hi Michael,
Thanks to you and Mark Pedley for confirming that. No apologies are necessary -- I am glad to help out. I appreciate that Freescale is making the code and documentation available to help the community making further advances in this area.
I found that bug while porting the code to Java (to run on Android in particular). The available documentation helps to make reading such good quality code a pleasure. Please give Mark my compliment.
That reminds me: May I ask you a somewhat related question on this thread? In function, driver.c:CreateAndSendBluetoothPacketsViaUART(), it is not clear to me why various measurements are scaled by different amounts. For examples, angular velocities (fOmega) are scaled by 20, Euler angles (fPhiPl, fThePl, fRhoPl) by 10, quaternions (fq) by 30K, etc.
1. Why do they need to be scaled? How are the scaling values determined?
2. Linear acceleration (faSePl) is not output. But if it were, how would it be scaled?
Regards,
Vinh