Class PIDEncoder

    • Constructor Detail

      • PIDEncoder

        public PIDEncoder​(int channelA,
                          int channelB,
                          boolean reverseDirection)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • PIDEncoder

        public PIDEncoder​(int channelA,
                          int channelB)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • PIDEncoder

        public PIDEncoder​(int channelA,
                          int channelB,
                          boolean reverseDirection,
                          CounterBase.EncodingType encodingType)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • PIDEncoder

        public PIDEncoder​(int channelA,
                          int channelB,
                          int indexChannel,
                          boolean reverseDirection)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • PIDEncoder

        public PIDEncoder​(int channelA,
                          int channelB,
                          int indexChannel)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • PIDEncoder

        public PIDEncoder​(DigitalSource sourceA,
                          DigitalSource sourceB,
                          boolean reverseDirection)
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • setPIDSourceType

        public void setPIDSourceType​(PIDSourceType pidSource)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Set which parameter of the encoder you are using as a process control variable. The encoder class supports the rate and distance parameters.
        Specified by:
        setPIDSourceType in interface PIDSource
        Parameters:
        pidSource - An enum to select the parameter.
      • getPIDSourceType

        public PIDSourceType getPIDSourceType()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: PIDSource
        Get which parameter of the device you are using as a process control variable.
        Specified by:
        getPIDSourceType in interface PIDSource
        Returns:
        the currently selected PID source parameter
      • pidGet

        public double pidGet()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Implement the PIDSource interface.
        Specified by:
        pidGet in interface PIDSource
        Returns:
        The current value of the selected source parameter.