Noticed that OnePlus one CM12.1 compass points the opposite direction.
Cbecked magnetic field and found out Bz value is inverted, compared to N4 AOSP.
Bz is the direction orthogonal to the screen, which explains the behavior that when phone is not lying flat (held up), it points to the opposite/wrong direction: When held up, it can points East and West correctly because the field is in By (landscape), but North and South are reversed since the field is in Bz direction,and the sensor reports the negative of the field.
Not to mention that Bz is most important when navigating as phone is mounted on dashboard and the back of screen is the direction you are going.
My question is what is the culprit ? Kernel, ROM, or config file ?
Cbecked magnetic field and found out Bz value is inverted, compared to N4 AOSP.
Bz is the direction orthogonal to the screen, which explains the behavior that when phone is not lying flat (held up), it points to the opposite/wrong direction: When held up, it can points East and West correctly because the field is in By (landscape), but North and South are reversed since the field is in Bz direction,and the sensor reports the negative of the field.
Not to mention that Bz is most important when navigating as phone is mounted on dashboard and the back of screen is the direction you are going.
My question is what is the culprit ? Kernel, ROM, or config file ?
Aucun commentaire:
Enregistrer un commentaire