Class 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 sensor
      static VelocitySensor toVelocitySensor​(edu.wpi.first.wpilibj.Encoder encoder)
      Convert an encoder to a velocity sensor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EncoderUtils

        public EncoderUtils()
    • 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