I am using a Freescale 3 axis accelerometer to build a model that flies and would like to log and calculate angles during a flight. My model can both hover and move up to 40kph as well as rotate on any axis 360 degrees. I have done some basic calculations on angles using raw data sent back but the data looks kind of weird with spikes.Right now I am just using Excel to do the calculations until I get the formulas correct for the software I'm developing. I am using: X-data = column B Y-data = column C Z-data = column D pitch = ATAN(B3/SQRT(C3^2+D3^2)) roll = ATAN(C3/SQRT(B3^2+D3^2)) theta = ATAN(SQRT(B3^2+C3^2)/D3)
The questions I have are: Is there a way to calculate speed from the data? Can I filter out the spikes using some sort of software filtering without skewing the data?