Class WsAnalogGyroConfig
java.lang.Object
org.wildstang.hardware.roborio.inputs.config.WsAnalogGyroConfig
- All Implemented Interfaces:
InputConfig
Contains configuration for analog gyros.
-
Constructor Summary
ConstructorsConstructorDescriptionWsAnalogGyroConfig(int channel, boolean driftCompensate) Construct the analog gyro config. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the hardware port number.booleanReturns the drift compensation factor.toString()Builds a JSON String describing the absolute encoder config.
-
Constructor Details
-
WsAnalogGyroConfig
public WsAnalogGyroConfig(int channel, boolean driftCompensate) Construct the analog gyro config.- Parameters:
channel- Encoder hardware port number.driftCompensate- Drift compensation factor.
-
-
Method Details
-
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
Builds a JSON String describing the absolute encoder config.
-