Roll= Asin(X-axis) in radian * 180/Pi in degree
Pitch= Asin (Y/axis) in radian * 180/Pi in degree
Try these equations may be this will work for you.
I am Using LIS302DL, both equation are working fine for me.. in order to find the pitch and roll angle from raw acceleration data
I need some information from you guys.
I have readings from acceleration sensors i.e. Acceleration along X-axis, Y-axis and Z-axis.
I want to find the Pitch and roll angle from the above data. Is it possible to find the Pitch and roll data from accleration data.
Regards
waiting for your...