Home > Mobile >  Get to the phone accelerometer XYZ coordinate, how to get mobile phone location?
Get to the phone accelerometer XYZ coordinate, how to get mobile phone location?

Time:12-04

According to this post at https://blog.csdn.net/android_wql/article/details/18664965? Utm_medium=distribute. Pc_relevant. None - task - blog - baidujs - 2 after the access to mobile phone XYZ coordinate, want to through the three parameters to calculate the orientation of the mobile phone
And in the xyz coordinate

CodePudding user response:

Bearing? The post is not used to locate and how to use the three coordinates azimuth, if a direction, post a paragraph is already very detailed instructions:

Values of Z axis Angle: [0] said direction Angle, we usually judge the thing north and south is to look at the data, after my experiment, found an interesting thing, that is to use the first way to obtain the direction (magnetic field) + acceleration data (180 ~ 180), is the scope that is to say, 0 means due north, east, 90 said said south/180-180-90 is moving west said, and the second way (directly through direction sensor) data range is 360/0 (0 ~ 360), said north east, 90 said 180 said south, 270 is moving west said,

Values of X axis Angle: [1] said pitching Angle from stationary state, namely before and after the flip

Y axis Angle values [2] said: turn around the corner from stationary state, flip around



  • Related