VIVO Mobile gravity sensor pit record

Source: Internet
Author: User

VIVO-X9 mobile phone sensor mode in the hand, the rotation effect is incorrect, the results found that Gravity sensor returned the wrong data, and other models returned by the reverse.

Refer to the Gravity description:

A three dimensional vector indicating the direction and magnitude of gravity. Units is m/s^2. The coordinate system is the same as was used by the acceleration sensor.

Note:when the device is at rest and the output of the gravity sensor should be identical to that of the accelerometer.

Normally, when the phone is held vertically, the screen is almost parallel to the gravity of the earth, and the gravitational component obtained is mainly concentrated in the Y component, which is close to the G = 9.80665 m/s2. When the phone keeps the screen and gravity parallel, but horizontally, with the head facing to the left and navigation bar on the right, the logic inside the IOS is called DEVICE_LANDSCAPE_LEFT Nature's other way of traversing DEVICE_LANDSCAPE_RIGHT . In left mode, the gravitational acceleration is mainly represented by the X component, but in this VIV O mobile phones, although also reflected in the X component, but the opposite, the X component is close to -9.8 m/s2. Similarly, the z component has the same problem, and the Y component is normal.

Solutions can only be modified, according to the log of the hardware sensor model:

I/InteractControl: Gravity sensor akm Version 2I/InteractControl: Game rotation sensor vendor: AOSP Version: 3

Just see this and go around. (Garbage Vivo)

VIVO Mobile gravity sensor pit record

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.