Пример #1
0
    def getDistance(self) -> float:
        """Get the distance the robot has driven since the last reset.

        :returns: The distance driven since the last reset as scaled by the
            value from :func:`setDistancePerPulse`.
        """
        return hal.getEncoderDistance(self.encoder)
Пример #2
0
    def getDistance(self) -> float:
        """Get the distance the robot has driven since the last reset.

        :returns: The distance driven since the last reset as scaled by the
            value from :func:`setDistancePerPulse`.
        """
        return hal.getEncoderDistance(self.encoder)