Class WsAnalogGyroConfig

  • All Implemented Interfaces:
    InputConfig

    public class WsAnalogGyroConfig
    extends java.lang.Object
    implements InputConfig
    Contains configuration for analog gyros.
    • Constructor Summary

      Constructors 
      Constructor Description
      WsAnalogGyroConfig​(int channel, boolean driftCompensate)
      Construct the analog gyro config.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getChannel()
      Returns the hardware port number.
      boolean getCompensate()
      Returns the drift compensation factor.
      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

      • WsAnalogGyroConfig

        public WsAnalogGyroConfig​(int channel,
                                  boolean driftCompensate)
        Construct the analog gyro config.
        Parameters:
        channel - Encoder hardware port number.
        driftCompensate - Drift compensation factor.
    • Method Detail

      • getChannel

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

        public boolean getCompensate()
        Returns the drift compensation factor.
        Returns:
        The drift compensation factor.
      • 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 drift compensation factor.