Class WsAbsoluteEncoderConfig
- java.lang.Object
-
- org.wildstang.hardware.roborio.inputs.config.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.
-
-
-
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 classjava.lang.Object
- Returns:
- Channel number and max voltage.
-
-