Distance determination using linear accelerometer.