Package edu.wpi.first.hal
Class EncoderJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.EncoderJNI
public class EncoderJNI extends JNIWrapper
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description EncoderJNI()
-
Method Summary
Modifier and Type Method Description static void
freeEncoder(int encoderHandle)
static int
getEncoder(int encoderHandle)
static double
getEncoderDecodingScaleFactor(int encoderHandle)
static boolean
getEncoderDirection(int encoderHandle)
static double
getEncoderDistance(int encoderHandle)
static double
getEncoderDistancePerPulse(int encoderHandle)
static int
getEncoderEncodingScale(int encoderHandle)
static int
getEncoderEncodingType(int encoderHandle)
static int
getEncoderFPGAIndex(int encoderHandle)
static double
getEncoderPeriod(int encoderHandle)
static double
getEncoderRate(int encoderHandle)
static int
getEncoderRaw(int encoderHandle)
static int
getEncoderSamplesToAverage(int encoderHandle)
static boolean
getEncoderStopped(int encoderHandle)
static int
getEncodingScaleFactor(int encoderHandle)
static int
initializeEncoder(int digitalSourceHandleA, int analogTriggerTypeA, int digitalSourceHandleB, int analogTriggerTypeB, boolean reverseDirection, int encodingType)
static void
resetEncoder(int encoderHandle)
static void
setEncoderDistancePerPulse(int encoderHandle, double distancePerPulse)
static void
setEncoderIndexSource(int encoderHandle, int digitalSourceHandle, int analogTriggerType, int indexingType)
static void
setEncoderMaxPeriod(int encoderHandle, double maxPeriod)
static void
setEncoderMinRate(int encoderHandle, double minRate)
static void
setEncoderReverseDirection(int encoderHandle, boolean reverseDirection)
static void
setEncoderSamplesToAverage(int encoderHandle, int samplesToAverage)
static void
setEncoderSimDevice(int handle, int device)
-
Constructor Details
-
EncoderJNI
public EncoderJNI()
-
-
Method Details
-
initializeEncoder
public static int initializeEncoder(int digitalSourceHandleA, int analogTriggerTypeA, int digitalSourceHandleB, int analogTriggerTypeB, boolean reverseDirection, int encodingType) -
freeEncoder
-
setEncoderSimDevice
-
getEncoder
-
getEncoderRaw
-
getEncodingScaleFactor
-
resetEncoder
-
getEncoderPeriod
-
setEncoderMaxPeriod
-
getEncoderStopped
-
getEncoderDirection
-
getEncoderDistance
-
getEncoderRate
-
setEncoderMinRate
-
setEncoderDistancePerPulse
-
setEncoderReverseDirection
-
setEncoderSamplesToAverage
-
getEncoderSamplesToAverage
-
setEncoderIndexSource
public static void setEncoderIndexSource(int encoderHandle, int digitalSourceHandle, int analogTriggerType, int indexingType) -
getEncoderFPGAIndex
-
getEncoderEncodingScale
-
getEncoderDecodingScaleFactor
-
getEncoderDistancePerPulse
-
getEncoderEncodingType
-