Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 1 month ago.
Include files
main.cpp requires two include files. Where can I find them? I also noticed that in registers.h (used in one of your other projects) the declarations start with 9150 and then change to 6050. What is the reason for this. What target platform did you use? I have the mbed LPC1768 and the associated application board.
Question relating to:
2 Answers
10 years, 1 month ago.
The MPU9150 is just the MPU6050 with a magnetometer on its internal i2c bus so the header file is mostly a direct copy and all the dependencies are linked to the example and should be imported with it. The library was written and tested on the LPC1768,
The api is currently lacking as you have to decode the returned sample data yourself, that's why QuaternionMath lib was included in the example.
10 years, 1 month ago.
One is in the MPU9150_DMP library, the other is in the QuaternionMath library.
They are both dependencies of that project with names that match the header files being included.