コード例 #1
0
ファイル: counter.py プロジェクト: robotpy/robotpy-wpilib
    def setSemiPeriodMode(self, highSemiPeriod: float) -> None:
        """Set Semi-period mode on this counter. Counts up on both rising and
        falling edges.

        :param highSemiPeriod: True to count up on both rising and falling
        """
        hal.setCounterSemiPeriodMode(self.counter, highSemiPeriod)
コード例 #2
0
ファイル: counter.py プロジェクト: warrenlp/robotpy-wpilib
    def setSemiPeriodMode(self, highSemiPeriod: float) -> None:
        """Set Semi-period mode on this counter. Counts up on both rising and
        falling edges.

        :param highSemiPeriod: True to count up on both rising and falling
        """
        hal.setCounterSemiPeriodMode(self.counter, highSemiPeriod)
コード例 #3
0
ファイル: counter.py プロジェクト: arilotter/robotpy-wpilib
    def setSemiPeriodMode(self, highSemiPeriod):
        """Set Semi-period mode on this counter. Counts up on both rising and
        falling edges.

        :param highSemiPeriod: True to count up on both rising and falling
        :type  highSemiPeriod: bool
        """
        if self.counter is None:
            raise ValueError("operation on freed port")
        hal.setCounterSemiPeriodMode(self.counter, highSemiPeriod)
コード例 #4
0
    def setSemiPeriodMode(self, highSemiPeriod):
        """Set Semi-period mode on this counter. Counts up on both rising and
        falling edges.

        :param highSemiPeriod: True to count up on both rising and falling
        :type  highSemiPeriod: bool
        """
        if self.counter is None:
            raise ValueError("operation on freed port")
        hal.setCounterSemiPeriodMode(self.counter, highSemiPeriod)