def getRate(self) -> float: """Get the current rate of the encoder. Units are distance per second as scaled by the value from :func:`setDistancePerPulse`. :returns: The current rate of the encoder. """ return hal.getEncoderRate(self.encoder)