Position and speed encoder.