def setDistancePerPulse(self, distancePerPulse: float) -> None: """Set the distance per pulse for this encoder. This sets the multiplier used to determine the distance driven based on the count value from the encoder. Do not include the decoding type in this scale. The library already compensates for the decoding type. Set this value based on the encoder's rated Pulses per Revolution and factor in gearing reductions following the encoder shaft. This distance can be in any units you like, linear or angular. :param distancePerPulse: The scale factor that will be used to convert pulses to useful units. """ hal.setEncoderDistancePerPulse(self.encoder, distancePerPulse)