Package com.thegongoliers.input.odometry
Class EncoderUtils
- java.lang.Object
-
- com.thegongoliers.input.odometry.EncoderUtils
-
public class EncoderUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EncoderUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DistanceSensor
toDistanceSensor(edu.wpi.first.wpilibj.Encoder encoder)
Convert an encoder to a distance sensorstatic VelocitySensor
toVelocitySensor(edu.wpi.first.wpilibj.Encoder encoder)
Convert an encoder to a velocity sensor
-
-
-
Method Detail
-
toDistanceSensor
public static DistanceSensor toDistanceSensor(edu.wpi.first.wpilibj.Encoder encoder)
Convert an encoder to a distance sensor- Parameters:
encoder
- the encoder- Returns:
- the distance sensor
-
toVelocitySensor
public static VelocitySensor toVelocitySensor(edu.wpi.first.wpilibj.Encoder encoder)
Convert an encoder to a velocity sensor- Parameters:
encoder
- the encoder- Returns:
- the velocity sensor
-
-