Add addional displacement in estimation of delay due to detector distance
This adds displacement in detector distance in addition to the distance given by the motor. This displacement allows to adjust manually the detector distance if the motor position is not enough for it.
This also fix unit conversion in distance calculation.