@staticmethod
def __linear(i, pulses_per_mm, total_pulses, velocity_mm_per_sec):
    """ Helper function for linear movement.
        """
    if total_pulses == 0.0 or i >= total_pulses:
        return None
    return i / pulses_per_mm / velocity_mm_per_sec
