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