Teapot example does not contain the accelerometer part, does it? Also, I tried to import the SDK into my Visual stdio 2008 project but I got nothing when applying the API in my code. I am wondering do you have any example code for accessing accelerometer value.
Re: Re: How to access accelerometer in MPU 9150
Please be more specific about what version you are working with, and whether the orientation output of the teapot application is working correctly. The MotionFit SDK is compatible only with the "Teapot" application within its download zip file. The verison on the download page of the website is only compatible with the UC3 example project, etc. For additional raw data options, you also may need to reprogram the MotionFit SDK for your application.
Re: Re: How to access accelerometer in MPU 9150
The orientation output of the teapot application is working correctly, but in the teapot source code I could not find a data transition for accelerometer. All data teapot program used (combined 16 bytes into 4 variable: rotate angle and vector) are not related to the accelerometer.
In addition, I use SDK, linking it into my Visual Stdio 2010 project, it still fail to read accelerometer, all the API offer by SDK did not return me any value of the sensor: all return value is 0 even though I made much movement of MPU 9150. I am wondering do you offer the example to read the accelerometer, even a small program?
Re: Re: How to access accelerometer in MPU 9150
Acceleration is retreived from the MotionFit SDK board by transmitting "inva" over the bluetooth connection. Additional parameters are defined in the MotionFit SDK download's embedded project folder. Look for the handle_input() function.
I have been sending the commands "inva", "invr" etc from the pygame window. I would like to know which sections of code on the python program and/or mllite_test is involved in transmitting these commands over the bluetooth connection.