Problem compiling FreeIMU_yaw_pitch_roll

Asked by kenneth andersen

Hi.

In advance, thanks for a great and inspiring product, the FreeIMU, and an excellent webpage with lots of fun.

My problem is with compiling or uploading the code FreeIMU_yaw_pitch_roll to Arduino UNO. I use Arduino 1.0 and FreeIMU 0.4r3. I have no problem uploading either the FreeIMU_raw or the FreeIMU_quaternion files. They all load fine and especially with the raw file I can see that the board is interacting to my moving it around.

The error I get when compiling FreeIMU_yaw_pitch_roll is:

In file included from FreeIMU_yaw_pitch_roll.cpp:10:
C:\Users\Bruker\Documents\Arduino\libraries\FreeIMU/FreeIMU.h:73:22: error: I2Cdev.h: No such file or directory
C:\Users\Bruker\Documents\Arduino\libraries\FreeIMU/FreeIMU.h:74:23: error: MPU6050.h: No such file or directory
In file included from FreeIMU_yaw_pitch_roll.cpp:10:
C:\Users\Bruker\Documents\Arduino\libraries\FreeIMU/FreeIMU.h:138: error: 'MPU6050' does not name a type

I have, off course tried to download and replace the entire library files, actually two times :) But still I get the same error. If I comment away the #define FREEIMU_v04 and uncomment one of the other #define ... lines the program loads fine, and the serial monitor opens with, in most cases, only zeroes - as to be expected. The files are of course in their respective folders, I have neither moved or renamed them.

Do you have any suggestion to what might be the problem here?

Thank you in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
FreeIMU Edit question
Assignee:
No assignee Edit question
Solved by:
kenneth andersen
Solved:
Last query:
Last reply:
Revision history for this message
kenneth andersen (kenneth4pope) said :
#1

Ok. So after looking in all the wrong places, the problem was quite obvious when I discovered it :)

The #include "I2Cdev.h" and #include "MPU6050.h" where missing from the main FreeIMU_yaw_pitch_roll program.

Now the program compiles and returns great values.

Cheers :)