Class WsAbsoluteEncoderConfig
java.lang.Object
org.wildstang.hardware.roborio.inputs.config.WsAbsoluteEncoderConfig
- All Implemented Interfaces:
InputConfig
Contains configuration for absolute encoders.
-
Constructor Summary
ConstructorsConstructorDescriptionWsAbsoluteEncoderConfig(int channel, int p_maxVoltage) Construct the absolute encoder config. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the hardware port number.intReturns the max voltage.toString()Builds a JSON String describing the absolute encoder config.
-
Constructor Details
-
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 Details
-
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
Builds a JSON String describing the absolute encoder config.
-