flutter_device_orientation 0.2.0 copy "flutter_device_orientation: ^0.2.0" to clipboard
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_compass dependency.

0.1.0 #

  • Initial release.
  • Add OrientationEngine for 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.
0
likes
160
points
195
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Calculate the direction of a phone's rear camera using accelerometer and magnetometer sensors.

Repository (GitHub)
View/report issues

Topics

#sensors #orientation #accelerometer #magnetometer #astronomy

License

MIT (license)

Dependencies

flutter, sensors_plus

More

Packages that depend on flutter_device_orientation