Integration of speed signals in the direction of motion