Get a distance from the provided encoder ticks.
the distance, else null if the wheel diameter is not provided.