convert accel to distance