flutter_device_orientation 0.2.0
flutter_device_orientation: ^0.2.0 copied to clipboard
Calculate the direction of a phone's rear camera using accelerometer and magnetometer sensors.
0.2.0 #
- Calculate the rear camera's 3D direction from accelerometer and magnetometer vectors instead of using compass heading as the final yaw.
- Improve camera azimuth stability when the phone is rolled around its viewing axis.
- Document the camera-focused yaw, pitch, and roll conventions.
- Add focused tests for invalid vectors, cardinal azimuths, pitch conventions, normalization, and deterministic roll behavior.
- Remove the unused
flutter_compassdependency.
0.1.0 #
- Initial release.
- Add
OrientationEnginefor calculating device pitch, roll, and yaw. - Normalize the accelerometer vector and fix the roll offset when flat.
- Wrap compass yaw calculations to the
[0, 360)range.