mjs513 / FreeIMU-Updates

IMU - FreeIMU Library Zero Drift, Altitude & LSM303 Heading Stability
MIT License
325 stars 159 forks source link

Can't compile #6

Closed cyrildiagne closed 9 years ago

cyrildiagne commented 9 years ago

Hi, thanks for sharing these great updates.

I'd like to try them with my GY-87 but I'm unable to compile the FreeIMU_serial example for my Leonardo with Arduino 1.5.4. I get a bunch of errors : image

Is that an expected behaviours with this example ? Or am I missing something ? Any hint would be appreciated, thanks!

mjs513 commented 9 years ago

Hi Cyril

Looks like you have the libraries in the wrong place. Take all the folders you have in the freeimu-updates-master folder and put them in the arduino 1.5.4 library directory. Then when you go examples in the Arduino IDE

Mike On Mon, Sep 15, 2014 at 2:54 PM, Cyril Diagne notifications@github.com wrote:

Hi, thanks for sharing these great updates.

I'd like to try them with my GY-87 but I'm unable to compile the FreeIMU_serial example for my Leonardo with Arduino 1.5.4. I get a bunch of errors : [image: image] https://cloud.githubusercontent.com/assets/144372/4276905/858cfb16-3d09-11e4-92f6-4da9f959c85b.png

Is that an expected behaviours with this example ? Or am I missing something ? Any hint would be appreciated, thanks!

— Reply to this email directly or view it on GitHub https://github.com/mjs513/FreeIMU-Updates/issues/6.

cyrildiagne commented 9 years ago

Hi Mike,

Thanks a lot for the feedback.

Yes I've copied all the folders inside the freeimu-updates-master/libraries to into my arduino/libraries folder.

When I do the same with the original FreeIMU lib, everything compiles fine, that's why I'm not sure what's going wrong.

Cyril Diagne Artist / Coder

kikko.fr - @kikko_fr https://twitter.com/kikko_Fr +(33) 645 900 028

LAB212 - lab212.org http://www.lab212.org OCTANIUM - octanium.eu

On 16 September 2014 18:04, Mike S notifications@github.com wrote:

Hi Cyril

Looks like you have the libraries in the wrong place. Take all the folders you have in the freeimu-updates-master folder and put them in the arduino 1.5.4 library directory. Then when you go examples in the Arduino IDE

Mike On Mon, Sep 15, 2014 at 2:54 PM, Cyril Diagne notifications@github.com wrote:

Hi, thanks for sharing these great updates.

I'd like to try them with my GY-87 but I'm unable to compile the FreeIMU_serial example for my Leonardo with Arduino 1.5.4. I get a bunch of errors : [image: image] < https://cloud.githubusercontent.com/assets/144372/4276905/858cfb16-3d09-11e4-92f6-4da9f959c85b.png>

Is that an expected behaviours with this example ? Or am I missing something ? Any hint would be appreciated, thanks!

— Reply to this email directly or view it on GitHub https://github.com/mjs513/FreeIMU-Updates/issues/6.

— Reply to this email directly or view it on GitHub https://github.com/mjs513/FreeIMU-Updates/issues/6#issuecomment-55766898 .

mjs513 commented 9 years ago

One other thing you can try is to delete the MotionDriver library. I ran into that problem once. I appears that depending on the IDE it can be a problem. Right now I am running IDE 1.5.7. You might want to download that version. Also, make sure you don't have a duplicate libraries.

A couple of other things when using either Fabio's original library or any of the FreeIMU libraries:

  1. You will have to set up a GY-87 configuration.
  2. From what I read the BMP180 can operate with the BMP085 library so use that in your configuration lines. Its pretty easy to set up a new board just follow what is there now).
  3. The GY-87 has its axis aligned so make sure you set that up as well and you should be good to go.

Also, just to save you some time my version won't fit on the Leonardo, the Leo has 32K of mem and with all the changes and options it will probably be over that.

Also, don't forget to calibrate the magnetometer and accelerometer using Fabio's GUI. THen put the new calibration.h file into the FreeIMU library.

Hope this helps. Mike

cyrildiagne commented 9 years ago

Hi Mike,

That's super helpful informations, thank you very much. I didn't realise it wouldn't fit on a Leo, I'll check for another board.

Thanks!

mjs513 commented 9 years ago

Hi Cyril I have been using for most of my work the sainsmart mega 2560. Works like a charm. I also use the teensy 3.1, works even better - will probably use that for the rover I am working on at some point in time.

Also forgot to say to make sure you identify the GY87 as a 9DOF in the defines.

Mike