Esempio n. 1
0
    def setReverseDirection(self, reverseDirection: bool) -> None:
        """Set the direction sensing for this encoder. This sets the direction
        sensing on the encoder so that it could count in the correct software
        direction regardless of the mounting.

        :param reverseDirection: True if the encoder direction should be
            reversed
        """
        hal.setEncoderReverseDirection(self.encoder, reverseDirection)
Esempio n. 2
0
    def setReverseDirection(self, reverseDirection: bool) -> None:
        """Set the direction sensing for this encoder. This sets the direction
        sensing on the encoder so that it could count in the correct software
        direction regardless of the mounting.

        :param reverseDirection: True if the encoder direction should be
            reversed
        """
        hal.setEncoderReverseDirection(self.encoder, reverseDirection)