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