|
Post by stephassoria on Feb 29, 2016 14:51:47 GMT
Hello,
using android API we have this code :
Log.i("sensor", "magnetometer : " + sensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD)); ok = ok && sensorManager.registerListener(sensorEventListener, mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD), SensorManager.SENSOR_DELAY_FASTEST);
in the logcat we have : magnetometer : {Sensor name="MPL Magnetic Field", vendor="Invensense", version=1, type=2, maxRange=9830.0, resolution=0.285, power=10.0, minDelay=10000}
So one magnetometer seems to be found, but in the listener if we log event values like this : Log.i("sensor fusion", "magneto : " + event.values[0] + ", " + event.values[1] + ", " + event.values[2]);
we always get {0,0,0}.
So when we tried to use the sensor type "Sensor.TYPE_ROTATION_VECTOR" : sensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR);
the initialisation is OK (no error), but the returned values are corrupted as magnetometer return 0 values. Is ORA-1 really have a magnetometer (not specified on hardware specs) ?
What's the good way to retrieve gyroscope data ?
thanks
Stéphane Capo
|
|
|
Post by sarayeddine on Apr 17, 2016 17:02:56 GMT
DEar Mr Capo, I think we have replied to you directly through direct technical support & email exchange and by checking your Glasses functionality, fo which we have changed the MPU and now it works.
Khaled Sarayeddine CTO
|
|
|
Post by maryafleming on Jul 20, 2016 9:40:33 GMT
Need more clarification
|
|