Is there any document or tutorial to get error corrected Roll, Pitch and YAW (AHRS) using 3 axis accelerometer + 3 axis Magnetometer +3 axisGyro. I tried finding the quaternion using Madgwick algorithm for AHRS but it didn't worked. When I tried changing the orientation from 0-90 degree , the values showed 0-360 degrees multiple times. So I wanted to follow the standards and make it work. In this I wanted self calibration and using these sensor error correction also. Please Look into the matter.
Thanks for responding. I wanted complete AHRS. I agree that I will get Pitch, Roll, Yaw with the above equation but it the system is in accelerating frame that it will buildup some errors so to rectify that Gyro is needed and to rectify the gyro's error acc and magnetometer is needed so in short as a feedback i would be needing 9 axis for taking out AHRS.
Thanks for the link. I have been through this lib. It is too confusing. and meanwhile I am stuck with the Magnetometer not working FXOS8700CQ Magnetometer Not Working Properly! After fixing this issue I will again look into this lib.