Package edu.wpi.first.hal.simulation
Class EncoderDataJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.simulation.EncoderDataJNI
public class EncoderDataJNI extends JNIWrapper
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description EncoderDataJNI()
-
Method Summary
Modifier and Type Method Description static void
cancelCountCallback(int index, int uid)
static void
cancelDirectionCallback(int index, int uid)
static void
cancelDistancePerPulseCallback(int index, int uid)
static void
cancelInitializedCallback(int index, int uid)
static void
cancelMaxPeriodCallback(int index, int uid)
static void
cancelPeriodCallback(int index, int uid)
static void
cancelResetCallback(int index, int uid)
static void
cancelReverseDirectionCallback(int index, int uid)
static void
cancelSamplesToAverageCallback(int index, int uid)
static int
findForChannel(int channel)
static int
getCount(int index)
static boolean
getDirection(int index)
static double
getDistance(int index)
static double
getDistancePerPulse(int index)
static boolean
getInitialized(int index)
static double
getMaxPeriod(int index)
static double
getPeriod(int index)
static double
getRate(int index)
static boolean
getReset(int index)
static boolean
getReverseDirection(int index)
static int
getSamplesToAverage(int index)
static int
registerCountCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerDirectionCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerDistancePerPulseCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerMaxPeriodCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerPeriodCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerResetCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerReverseDirectionCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerSamplesToAverageCallback(int index, NotifyCallback callback, boolean initialNotify)
static void
resetData(int index)
static void
setCount(int index, int count)
static void
setDirection(int index, boolean direction)
static void
setDistance(int index, double distance)
static void
setDistancePerPulse(int index, double distancePerPulse)
static void
setInitialized(int index, boolean initialized)
static void
setMaxPeriod(int index, double maxPeriod)
static void
setPeriod(int index, double period)
static void
setRate(int index, double rate)
static void
setReset(int index, boolean reset)
static void
setReverseDirection(int index, boolean reverseDirection)
static void
setSamplesToAverage(int index, int samplesToAverage)
-
Constructor Details
-
EncoderDataJNI
public EncoderDataJNI()
-
-
Method Details
-
registerInitializedCallback
public static int registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelInitializedCallback
-
getInitialized
-
setInitialized
-
registerCountCallback
-
cancelCountCallback
-
getCount
-
setCount
-
registerPeriodCallback
public static int registerPeriodCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelPeriodCallback
-
getPeriod
-
setPeriod
-
registerResetCallback
-
cancelResetCallback
-
getReset
-
setReset
-
registerMaxPeriodCallback
public static int registerMaxPeriodCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelMaxPeriodCallback
-
getMaxPeriod
-
setMaxPeriod
-
registerDirectionCallback
public static int registerDirectionCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelDirectionCallback
-
getDirection
-
setDirection
-
registerReverseDirectionCallback
public static int registerReverseDirectionCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelReverseDirectionCallback
-
getReverseDirection
-
setReverseDirection
-
registerSamplesToAverageCallback
public static int registerSamplesToAverageCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelSamplesToAverageCallback
-
getSamplesToAverage
-
setSamplesToAverage
-
registerDistancePerPulseCallback
public static int registerDistancePerPulseCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelDistancePerPulseCallback
-
getDistancePerPulse
-
setDistancePerPulse
-
setDistance
-
getDistance
-
setRate
-
getRate
-
resetData
-
findForChannel
-