Пример #1
0
    def getDirection(self):
        """The last direction the encoder value changed.

        :returns: The last direction the encoder value changed.
        :rtype: bool
        """
        return hal.getEncoderDirection(self.encoder)
Пример #2
0
    def getDirection(self):
        """The last direction the encoder value changed.

        :returns: The last direction the encoder value changed.
        """
        if self.counter is not None:
            return self.counter.getDirection()
        return hal.getEncoderDirection(self.encoder)
Пример #3
0
    def getDirection(self):
        """The last direction the encoder value changed.

        :returns: The last direction the encoder value changed.
        """
        if self.counter is not None:
            return self.counter.getDirection()
        return hal.getEncoderDirection(self.encoder)
Пример #4
0
    def getDirection(self) -> bool:
        """The last direction the encoder value changed.

        :returns: The last direction the encoder value changed.
        """
        return hal.getEncoderDirection(self.encoder)