hemanthrajv / flutter_compass

MIT License
102 stars 187 forks source link

Improve heading calculation for "camera mode" #44

Closed gabeschine closed 4 years ago

gabeschine commented 4 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)