DavidGillsjo / VideoIMUCapture-Android

Android application for capture of Video, IMU data and Camera data useful in SLAM and Structure from Motion research. Differs between Optical Image Stabilization (OIS) and Digital Video Stabilization (DVS) and can provide OIS data if the device supports it.
GNU General Public License v3.0
242 stars 44 forks source link

"Cannot find IMU" error on Samsung A50, Android 11 #3

Closed pvn-jio closed 2 years ago

pvn-jio commented 2 years ago

Hi, I have been trying to use the app but I get a warning sign with "Cannot find IMU" as the error. I can understand that the issue is the SensorManager not being able to find the accelerometer and gyroscope on my phone, but I can't figure out how to enable them for this app. I'm able to use my sensors on the marslogger app (but it has different issues). I'm also able to use this app on another model with the same Android version.

Need some pointers on how to fix this.

Phone details: Model: Samsung A50 (SM-A505F) Android version: Android 11

DavidGillsjo commented 2 years ago

Hi, Sorry to hear you're having trouble with the app. It is unfortunately untested on many devices, since I only use it on my Pixel phones.

Compared to the Marslogger I use the Uncalibrated devices for accelerometer and gyro. Maybe these are not available on your Samsung?

Try changing the sensortypes in the Sensormanager function setSensorType to

ACC_TYPE = Sensor.TYPE_ACCELEROMETER;
GYRO_TYPE = Sensor.TYPE_GYROSCOPE;