hemanthrajv / flutter_compass

MIT License
101 stars 170 forks source link

Improve heading calculation for "camera mode" #44

Closed gabeschine closed 3 years ago

gabeschine commented 3 years ago

Android: uses matrix reorientation to do a better job calculating heading "out the back of the phone" iOS: uses a trigonometric correction based on accelerometer gravity for the same purpose.

Also:

(ps I don't know why the PR contains changes already in master)