https://github.com/hebirobotics/aeyrium-sensor
https://github.com/hebirobotics/aeyrium-sensor
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/hebirobotics/aeyrium-sensor
- Owner: HebiRobotics
- License: mit
- Created: 2022-11-29T20:30:07.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T00:41:01.000Z (about 2 years ago)
- Last Synced: 2025-01-29T10:30:24.352Z (over 1 year ago)
- Language: Java
- Size: 7.05 MB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Flutter Aeyrium Sensor Plugin
[Aeyrium Sensor Plugin](https://pub.dartlang.org/packages/aeyrium_sensor)
A Flutter sensor plugin which provide easy access to the Pitch and Roll on Android and iOS devices. It was made using TYPE_ROTATION_VECTOR sensor on Android and DeviceMotion on iOS.
## Import
To use this plugin, add `aeyrium_sensor` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/). For example:
```yaml
dependencies:
aeyrium_sensor: ^1.0.4
```
## Usage
``` dart
import 'package:aeyrium_sensor/aeyrium_sensor.dart';
AeyriumSensor.sensorEvents.listen((SensorEvent event) {
//do something with the event , values expressed in radians
print("Pitch ${event.pitch} and Roll ${event.roll}")
});
```
## Real Demo
We developed this plugin to use it on our Attitude indicator screen.
[](http://www.youtube.com/watch?v=IIoa9uNka_0 "Attitude indicator")
## Issues
Please file any issues, bugs or feature request as an issue on our [GitHub](https://github.com/aeyrium/aeyrium-sensor/issues) page.
## Author
This Aeyrium Sensor plugin for Flutter is developed by [Aeyrium Inc](https://aeyrium.com)