accelerometer position and speed