Errors compiling the IMU Code

I'm a NOOB in this, and can't seem to get the .pde to compile properly when USE_MAGNETOMETER==1. I'm using 1.8.2 on v2 hardware.

 

I get this:

arduimu.cpp: In function 'void setup()':
arduimu:286: error: 'APM_Compass' was not declared in this scope
arduimu.cpp: In function 'void loop()':
arduimu:385: error: 'APM_Compass' was not declared in this scope
arduimu.cpp: In function 'void Drift_correction()':
DCM:170: error: 'AP_Compass' was not declared in this scope

 

My guess is that my libraries are not in the right place, but when I use the test programs, it works fine.

 

The second question relates to setting the orientation matrix correctly (sparkfun, components up, pins right). Where do I set this?  

 

Can somebody please point this noob in the right direction?

 

Many thanks,

D.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • 3D Robotics

    Yeah, it looks like we broke something with the new libraries--sorry about that. I see you've filed an issue, which is good. When the dev team gets back from vacations they'll look at it.

     

This reply was deleted.

Activity

Jose Araujo liked Jose Araujo's profile
Aug 29
spencer harvey liked spencer harvey's profile
Jul 9
More…