Class EncoderJNI

java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.EncoderJNI

public class EncoderJNI
extends JNIWrapper
  • Constructor Details

  • Method Details

    • initializeEncoder

      public static int initializeEncoder​(int digitalSourceHandleA, int analogTriggerTypeA, int digitalSourceHandleB, int analogTriggerTypeB, boolean reverseDirection, int encodingType)
    • freeEncoder

      public static void freeEncoder​(int encoderHandle)
    • setEncoderSimDevice

      public static void setEncoderSimDevice​(int handle, int device)
    • getEncoder

      public static int getEncoder​(int encoderHandle)
    • getEncoderRaw

      public static int getEncoderRaw​(int encoderHandle)
    • getEncodingScaleFactor

      public static int getEncodingScaleFactor​(int encoderHandle)
    • resetEncoder

      public static void resetEncoder​(int encoderHandle)
    • getEncoderPeriod

      public static double getEncoderPeriod​(int encoderHandle)
    • setEncoderMaxPeriod

      public static void setEncoderMaxPeriod​(int encoderHandle, double maxPeriod)
    • getEncoderStopped

      public static boolean getEncoderStopped​(int encoderHandle)
    • getEncoderDirection

      public static boolean getEncoderDirection​(int encoderHandle)
    • getEncoderDistance

      public static double getEncoderDistance​(int encoderHandle)
    • getEncoderRate

      public static double getEncoderRate​(int encoderHandle)
    • setEncoderMinRate

      public static void setEncoderMinRate​(int encoderHandle, double minRate)
    • setEncoderDistancePerPulse

      public static void setEncoderDistancePerPulse​(int encoderHandle, double distancePerPulse)
    • setEncoderReverseDirection

      public static void setEncoderReverseDirection​(int encoderHandle, boolean reverseDirection)
    • setEncoderSamplesToAverage

      public static void setEncoderSamplesToAverage​(int encoderHandle, int samplesToAverage)
    • getEncoderSamplesToAverage

      public static int getEncoderSamplesToAverage​(int encoderHandle)
    • setEncoderIndexSource

      public static void setEncoderIndexSource​(int encoderHandle, int digitalSourceHandle, int analogTriggerType, int indexingType)
    • getEncoderFPGAIndex

      public static int getEncoderFPGAIndex​(int encoderHandle)
    • getEncoderEncodingScale

      public static int getEncoderEncodingScale​(int encoderHandle)
    • getEncoderDecodingScaleFactor

      public static double getEncoderDecodingScaleFactor​(int encoderHandle)
    • getEncoderDistancePerPulse

      public static double getEncoderDistancePerPulse​(int encoderHandle)
    • getEncoderEncodingType

      public static int getEncoderEncodingType​(int encoderHandle)