How to calculate Heading using Gyro and magnetometer
问题 I have raw data of Gyroscope and magnetometer. on basis of this data, i have to calculate Heading information with an accuracy of 1Deg. I would like to know, is there any algorithm which can help me to get heading info using available information with mentioned accuracy? Any article or any link also will be helpful. Thanks 回答1: I am assuming you are using phone to collect gyroscope+magnetometer data. You cannot calculate Heading with Gyro+Magnetometer unless you know initial state of device.