Introduction - If you have any usage issues, please Google them yourself
The use of an accelerometer, a gyroscope, a geomagnetic solver attitude of good articles, the English name Design of orientation estimation system by inertial and magnetic sensors