Class WsAnalogGyroConfig
- java.lang.Object
-
- org.wildstang.hardware.roborio.inputs.config.WsAnalogGyroConfig
-
- All Implemented Interfaces:
InputConfig
public class WsAnalogGyroConfig extends java.lang.Object implements InputConfig
Contains configuration for analog gyros.
-
-
Constructor Summary
Constructors Constructor Description WsAnalogGyroConfig(int channel, boolean driftCompensate)
Construct the analog gyro config.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getChannel()
Returns the hardware port number.boolean
getCompensate()
Returns the drift compensation factor.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.
-
getCompensate
public boolean getCompensate()
Returns the drift compensation factor.- Returns:
- The drift compensation factor.
-
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 drift compensation factor.
-
-