Can anyone tell me whether gravity sensor is as a tilt sensor to improve heading accuracy?
问题 X and Y axis of magnetometer can be used to calculate the heading of north when phone is level to the local ground. But when rolling or pitching the phone, we should use roll and pitch degree to eliminate the tilt error. Now, I want to know whether the gravity sensor is used as tilt sensor to get the roll and pitch to help improve the accuracy of heading to the north? 回答1: Here I describe how to get the orientation of the device with respect to the horizontal plane and the magnetic North. It