Sensors: Revise compass compensation mechanism to fix non-linear issue.

Revise the equation of compass compensation to
make the data moving curve more linear when rotating.
This fixes that the Orientation data variation doesn't match the degrees
that the device actually has been rotated.

Bug: 7395562
Change-Id: Ib628920066adc8250e901a40e69ee5fc2364298c
2 files changed