-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile errors: FreeIMU_serial_ARM_9250_3115A2.ino #17
Comments
Hi - thanks for trying the library. Lets see if I can help.
If this does not work let me know what IMU you are using and Arduino board. I have been using primarily the Mega2560 and the Teensy 3.1. If you are using a Uno it probably won't fit. |
Hello 1 - Yes, I did that. I am using an invensense MPU9250, but I should not be using "FreeIMU_serial_ARM_9250_3115A2.ino", as I have no other sensors on the board. I still am puzzled with the #include statement and the position of the libraries in the folder tree. If you know of a good reference about this subject, I would appreciate if you could share it. (Already been to http://arduino.cc/en/Guide/Libraries.) PS: is there a document in this package that describes what the several modules purpose is? Sometimes the name tells everything one needs to know, but at times I can't figure it. Thanks for you help |
Real simple fix here. Add the following line to the sketch (FreeIMU_quaternion.ino) along with the other includes: It should now compile for you. Missed that adding that one. Unfortunately I don't know of any good reference for this issue. I learned from trial and error. The sketch you should be using is: FreeIMU_serial_ARM_CPU.ino, this will give you everything you need from the 9250. Just remember to comment out all the board defines except for the GEN_9250. I have not got around to create a list and explanation of all the examples. Like you said most were self explanatory. Mike |
Hello Thanks for the quick reply Cheers Carlos |
Hi Carlos, My mistake - suppose to be #include <AK8963.h> Sorry about that. Mike |
Interesting, just checked my post and it didn't do the include correctly. Lets try something different: Leave out the spaces before and after AK8963.h if the compiler complains. Mike |
Mike, I did the tests - but... ...and Carlos |
Carlos. This very strange. Have to think about this one. Did you ditch the Also just do a double check that the only board you have selected is the Mike
|
Hi, Mike #include <ADXL345.h> The FreeIMU_SERIAL_ARM_CPU.ino compiles nicely but does not load, it is too big for the Uno. I bit less than 2 K bytes... Sketch uses 34,026 bytes (105%) of program storage space. Maximum is 32,256 bytes. Pretty sure FreeIMU is ok, but below are the first 50 or so lines... #ifndef FreeIMU_h // Uncomment the appropriated version of FreeIMU you are using // 3rd party boards. Please consider donating or buying a FreeIMU board to support this library development. //#define DISABLE_MAGN // Uncomment this line to disable the magnetometer in the sensor fusion algorithm //Magnetic declination angle for iCompass //Number of samples to average in iCompass // Set filter type: 1 = Madgwick Gradient Descent, 0 - Madgwick implementation of Mahoney DCM // proportional gain governs rate of convergence to accelerometer/magnetometer Thanks a lot for trying to help, I appreciate it! Carlos |
Hi Carlos Well the configuration looks correct. Since the other sketch compiles then Mike
|
Hi, Mike - I tried both ways, with and without spaces. The compiler issues On 8 February 2015 at 19:52, Mike S notifications@github.com wrote:
|
When I get to my computer I will you the sketch that I have verified
|
Correct, Arduino Uno. Thanks a lot! Carlos On 9 February 2015 at 14:54, Mike S notifications@github.com wrote:
|
I have attached the sketch that compiles without issue for me. Let me know if you have a problem. Don’t use the one with matrix at the end – trying to convert quaternion to dcm. Still have to get the math right on that one J Mike From: nandomtl [mailto:notifications@github.com] Correct, Arduino Uno. Thanks a lot! Carlos On 9 February 2015 at 14:54, Mike S notifications@github.com wrote:
— |
Mike, was there supposed to be a file attached?? On 9 February 2015 at 15:09, Mike S notifications@github.com wrote:
|
Yes there was a file attached GITHUB must have blocked it. Going to try and paste it below, just do a copy and paste into the ide (I deleted the lib:
|
Mike, your code compiled fine (after I had a couple of library issues fixed). In file included from FreeIMU_quaternion.ino:28:0: I added the statement #include "AK8963.h" to the file, and the compiler was happy! Thanks a lot for your help! Carlos |
No problem Carlos. Let me know how it works out for. Are you willing to Mike
|
It's the least I can do... http://tinyurl.com/ojenszs http://tinyurl.com/ojenszs Let me know what you think... On 9 February 2015 at 20:08, Mike S notifications@github.com wrote:
|
Just checked it out. Very nice. Becateful with using men's. Pretty PS. I am a Aero engineer. Mike
|
The instruments driven by the 9250 won't be critical - the plane is going to be VFR only. I'm an engineer too (electrical), but have spent all of my professional life in IT. Cheers Carlos |
Just saw it. Had to view the link in desktop view to see and read Like the instrument panel. Struggled to get it working in processing. By the way booked marked the page so I can follow. Will read when more awake. By the way if you need to reach me you can email I have tested the code out on a uno, Mega, Teensy 3.1, Due, and even on the Been working on the library updates for over a year. So yep, slow going but Good luck. The instruments driven by the 9250 won't be critical - the plane is going I'm an engineer too (electrical), but have spent all of my professional Cheers Carlos — |
I am trying to compile the module in the subject line, but am getting a pile of error msgs.
Probably a rookie mistake, but I can't figure what's the glitch...
Below are the first few msgs - to make it more readable, I removed the prefix in all but the first line.
/Users/username/Documents/Arduino/libraries/FreeIMU/FreeIMU.h:436: error: 'HMC58X3' does not name a type
FreeIMU.h:436: error: 'HMC58X3' does not name a type
FreeIMU.h:472: error: 'BMP085' does not name a type
FreeIMU.h:497: error: ISO C++ forbids initialization of member 'zeroMotioncount'
FreeIMU.h:497: error: making 'zeroMotioncount' static
FreeIMU.h:497: error: ISO C++ forbids in-class initialization of non-const static member 'zeroMotioncount'
FreeIMU.h:512: error: a brace-enclosed initializer is not allowed here before '{' token
FreeIMU.h:512: error: ISO C++ forbids initialization of member 'sensor_order'
FreeIMU.h:512: error: making 'sensor_order' static
FreeIMU.h:512: error: invalid in-class initialization of static data member of non-integral type 'int [9]'
FreeIMU.h:513: error: a brace-enclosed initializer is not allowed here before '{' token
FreeIMU.h:513: error: ISO C++ forbids initialization of member 'sensor_sign'
FreeIMU.h:513: error: making 'sensor_sign' static
FreeIMU.h:513: error: invalid in-class initialization of static data member of non-integral type 'int [9]'
FreeIMU.h:545: error: ISO C++ forbids initialization of member 'lastUpdate1'
FreeIMU.h:545: error: making 'lastUpdate1' static
Below is a screenshot of the folder structure.
The text was updated successfully, but these errors were encountered: