コード例 #1
0
    def getDirection(self):
        """The last direction the counter value changed.

        :returns: The last direction the counter value changed.
        :rtype: bool
        """
        return hal.getCounterDirection(self.counter)
コード例 #2
0
ファイル: counter.py プロジェクト: arilotter/robotpy-wpilib
    def getDirection(self):
        """The last direction the counter value changed.

        :returns: The last direction the counter value changed.
        :rtype: bool
        """
        if self.counter is None:
            raise ValueError("operation on freed port")
        return hal.getCounterDirection(self.counter)
コード例 #3
0
    def getDirection(self):
        """The last direction the counter value changed.

        :returns: The last direction the counter value changed.
        :rtype: bool
        """
        if self.counter is None:
            raise ValueError("operation on freed port")
        return hal.getCounterDirection(self.counter)