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)
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)
def getDirection(self) -> bool: """The last direction the encoder value changed. :returns: The last direction the encoder value changed. """ return hal.getEncoderDirection(self.encoder)