getVelocity

Get the current encoder velocity in a distance.

Return

the distance, else null if the wheel diameter is not provided.