I would like to try this lib and see if it can help with my drift problem
http://n0m1.com/2012/02/27/6dof-arduino … lerometer/
But its written for the MMA8453 accelerometer, I tried to port it to ADXL345 but i’m too new to Cpp and Arduino, someone else wanna give it a shot?
Finally got a port to compile, but for some reason the Yaw is not responding, instead roll or pitch is mapped to the Yaw axis (I do not know which side on the card is pitch and which is roll) Heres a youtube clip showing the output
http://www.youtube.com/watch?v=2BxxYVEs7rw
And here is my converted code to use ADXL345
http://pastebin.com/dTAsygbN
Do you guys see any obvious bugs in the code? Thanks