I want to show the direction on the screen that the phone is handling. For example:
0 |- [] |_ South --- North
In the above diagram, the phone displays "North." Since the user (stick with 0 for the head) holds out the phone ([] on the diagram) pointing north.
I found this example . I understand what he is doing, except that it seems to calculate yaw, pace, throw and addiction. What is it and how will I use them to just find how the phone is indicated?
In addition, the x, y, and z axes are mentioned in this android documentation , but I don't see anywhere where it says that these axes correspond to the phone? Is the Z from the bottom of the phone to the top?
android compass-geolocation
Greg
source share