drydart / flutter_android

Android bindings plugin for Flutter.
https://pub.dev/packages/flutter_android
The Unlicense
131 stars 21 forks source link

Can't use android hardware 28: TYPE_POSE_6DOF #10

Open enzoescipy opened 3 years ago

enzoescipy commented 3 years ago

Describe the bug other sensors work really well as example shows, however, if I use TYPE_POSE_6DOF, the SensorManager.getDefaultSensor can't get Sensor instance.

To reproduce Steps to reproduce the behavior:

  1. Go to 'examples Heart-rate monitoring '
  2. Change TYPE_HEART_RATE to TYPE_POSE_6DOF.
  3. Run it.
  4. See error, the variable sensor is 'null'

Expected behavior hope to use TYPE_POSE_6DOF

Desktop (please complete the following information):

Smartphone (please complete the following information):

sleichu2 commented 3 years ago

I also encountered the same problem, did you have any idea.

enzoescipy commented 3 years ago

Just...make it your self. I failed to make it whatever.

Find the complementary filter and kalman filter, if you want...