Package edu.wpi.first.hal.simulation
Class AccelerometerDataJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.simulation.AccelerometerDataJNI
public class AccelerometerDataJNI extends JNIWrapper
JNI for accelerometer data.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description static void
cancelActiveCallback(int index, int uid)
static void
cancelRangeCallback(int index, int uid)
static void
cancelXCallback(int index, int uid)
static void
cancelYCallback(int index, int uid)
static void
cancelZCallback(int index, int uid)
static boolean
getActive(int index)
static int
getRange(int index)
static double
getX(int index)
static double
getY(int index)
static double
getZ(int index)
static int
registerActiveCallback(int index, NotifyCallback callback, boolean initialNotify)
Register a callback to be run when this accelerometer activates.static int
registerRangeCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerXCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerYCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerZCallback(int index, NotifyCallback callback, boolean initialNotify)
static void
resetData(int index)
static void
setActive(int index, boolean active)
static void
setRange(int index, int range)
static void
setX(int index, double x)
static void
setY(int index, double y)
static void
setZ(int index, double z)
-
Method Details
-
registerActiveCallback
public static int registerActiveCallback(int index, NotifyCallback callback, boolean initialNotify)Register a callback to be run when this accelerometer activates.- Parameters:
index
- the indexcallback
- the callbackinitialNotify
- whether to run the callback with the initial state- Returns:
- the CallbackStore object associated with this callback
-
cancelActiveCallback
-
getActive
-
setActive
-
registerRangeCallback
-
cancelRangeCallback
-
getRange
-
setRange
-
registerXCallback
-
cancelXCallback
-
getX
-
setX
-
registerYCallback
-
cancelYCallback
-
getY
-
setY
-
registerZCallback
-
cancelZCallback
-
getZ
-
setZ
-
resetData
-