Hello;
I am trying to get Euler Angles from MiniIMU-9 V2 through Arduino Uno.
I used the libraries written for L3G (https://github.com/pololu/L3G) and LSM303 (https://github.com/pololu/LSM303) and the example code given at Pololu Website (https://github.com/pololu/MinIMU-9-Arduino-AHRS/tree/master/MinIMU9AHRS)
However I couldnt get accurate readings from the sensor. I tried to change m.min and m.max values with the help of Calibration code given at L3G website. Firstly I always receive different values for every iteration they doesnt differ a lot but still there are considarable differences. I didnt see anything about calibration process on the website. So can you tell me how shall I move the sensor during calibration process. Shall I move fast or slow and the movement must have a pattern or just be random. Additionally the magnetometer is not tilt compensated as well. When I give a roll or pitch movement to the sensor the heading changes a lot.
Secondly my roll and pitch angle reading are not accurate. When I make a roll or pitch movement, the sensor readings change slowly and the sensor doesnt show the right values. Like if I make a roll movement of 50 degrees it only shows a 30 degrees of pitch and additionally it shows an additional roll movement as well, although there isn’t.
Thanks for your help already.