5

Is there any method of calculating linear distance using accelerometer and gyroscope sensor data as double integral on acceleration seems to give lot of drift.

Note : Image processing techniques using the camera / GPS seem to be a heavy duty on battery.

Harsh
  • 105
  • 1
  • 5
  • Many people have tried to measure the linear displacement using accelerometer and gyro sensors. To the best of my knowledge, unfortunately, it is practically impossible to achieve it solely employing the sensors. – Luqman Mar 13 '14 at 09:21

1 Answers1

0

Since you wish to calculate linear distance, you should not read from raw Accelerometer data. In API 9. android introduced Sensor.TYPE_LINEAR_ACCELERATION, which is nothing but the gravity component deducted from raw accelerometer values.

The drift can build up much quickly if there is even a single degree error in your own calculations for finding linear component in raw data. Check out an experiences from Google: SensorFusion.

The question is very similar to Calculating distance using Linear acceleration android

Community
  • 1
  • 1
Mohitt
  • 2,957
  • 3
  • 29
  • 52