Class WsServoConfig
java.lang.Object
org.wildstang.hardware.roborio.outputs.config.WsServoConfig
- All Implemented Interfaces:
OutputConfig
Contains configurations for servos.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the hardware port number.doubleReturns the default position.toString()Builds a JSON String describing the digital output config.
-
Constructor Details
-
WsServoConfig
public WsServoConfig(int channel, double p_default) Construct the servo config.- Parameters:
channel- Hardware port number.p_default- Default position.
-
-
Method Details
-
getChannel
public int getChannel()Returns the hardware port number.- Returns:
- The hardware port number.
-
getDefault
public double getDefault()Returns the default position.- Returns:
- The default position.
-
toString
Builds a JSON String describing the digital output config.
-