Class WsAbsoluteEncoderConfig

  • All Implemented Interfaces:
    InputConfig

    public class WsAbsoluteEncoderConfig
    extends java.lang.Object
    implements InputConfig
    Contains configuration for absolute encoders.
    • Constructor Summary

      Constructors 
      Constructor Description
      WsAbsoluteEncoderConfig​(int channel, int p_maxVoltage)
      Construct the absolute encoder config.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getChannel()
      Returns the hardware port number.
      int getMaxVoltage()
      Returns the max voltage.
      java.lang.String toString()
      Builds a JSON String describing the absolute encoder config.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WsAbsoluteEncoderConfig

        public WsAbsoluteEncoderConfig​(int channel,
                                       int p_maxVoltage)
        Construct the absolute encoder config.
        Parameters:
        channel - Encoder hardware port number.
        p_maxVoltage - Max voltage from the encoder.
    • Method Detail

      • getChannel

        public int getChannel()
        Returns the hardware port number.
        Returns:
        The hardware port number.
      • getMaxVoltage

        public int getMaxVoltage()
        Returns the max voltage.
        Returns:
        The max voltage.
      • toString

        public java.lang.String toString()
        Builds a JSON String describing the absolute encoder config.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Channel number and max voltage.