I'm using an expensive equipment which measures and records the following data when I was on a ship and did some sailing:
GpsTime, GyroX, GyroY, GyroZ, AccX, AccY, accZ, Heading, Pitch, Roll, Latitude Longitude, Heave, V_East, V_North, V_UP.
What I'm trying to do: I'm trying to predict the Roll, Pitch and Yaw from AccX, AccY, AccZ.
What I've tried: After reading some tutorials I found that the following equations are wrong and I'm not sure why, any ideas which equations will work?
pitch = 180 * atan2(accelX, sqrt(accelY*accelY + accelZ*accelZ))/PI;
roll = 180 * atan2(accelY, sqrt(accelX*accelX + accelZ*accelZ))/PI;