Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    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)