コード例 #1
0
 def getEncodingScale(self):
     """
     :returns: The encoding scale factor 1x, 2x, or 4x, per the requested
         encodingType. Used to divide raw edge counts down to spec'd counts.
     :rtype: int
     """
     return hal.getEncoderEncodingScale(self.encoder)
コード例 #2
0
ファイル: encoder.py プロジェクト: robotpy/robotpy-wpilib
 def getEncodingScale(self) -> int:
     """
     :returns: The encoding scale factor 1x, 2x, or 4x, per the requested
         encodingType. Used to divide raw edge counts down to spec'd counts.
     """
     return hal.getEncoderEncodingScale(self.encoder)