Package edu.wpi.first.hal.simulation
Class CTREPCMDataJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.simulation.CTREPCMDataJNI
public class CTREPCMDataJNI extends JNIWrapper
JNI for CTRE PCM data.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description static void
cancelClosedLoopEnabledCallback(int index, int uid)
static void
cancelCompressorCurrentCallback(int index, int uid)
static void
cancelCompressorOnCallback(int index, int uid)
static void
cancelInitializedCallback(int index, int uid)
static void
cancelPressureSwitchCallback(int index, int uid)
static void
cancelSolenoidOutputCallback(int index, int channel, int uid)
static boolean
getClosedLoopEnabled(int index)
static double
getCompressorCurrent(int index)
static boolean
getCompressorOn(int index)
static boolean
getInitialized(int index)
static boolean
getPressureSwitch(int index)
static boolean
getSolenoidOutput(int index, int channel)
static void
registerAllNonSolenoidCallbacks(int index, NotifyCallback callback, boolean initialNotify)
static void
registerAllSolenoidCallbacks(int index, int channel, NotifyCallback callback, boolean initialNotify)
static int
registerClosedLoopEnabledCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerCompressorCurrentCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerCompressorOnCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerPressureSwitchCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerSolenoidOutputCallback(int index, int channel, NotifyCallback callback, boolean initialNotify)
static void
resetData(int index)
static void
setClosedLoopEnabled(int index, boolean closeLoopEnabled)
static void
setCompressorCurrent(int index, double compressorCurrent)
static void
setCompressorOn(int index, boolean compressorOn)
static void
setInitialized(int index, boolean initialized)
static void
setPressureSwitch(int index, boolean pressureSwitch)
static void
setSolenoidOutput(int index, int channel, boolean solenoidOutput)
-
Method Details
-
registerInitializedCallback
public static int registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelInitializedCallback
-
getInitialized
-
setInitialized
-
registerSolenoidOutputCallback
public static int registerSolenoidOutputCallback(int index, int channel, NotifyCallback callback, boolean initialNotify) -
cancelSolenoidOutputCallback
-
getSolenoidOutput
-
setSolenoidOutput
-
registerCompressorOnCallback
public static int registerCompressorOnCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelCompressorOnCallback
-
getCompressorOn
-
setCompressorOn
-
registerClosedLoopEnabledCallback
public static int registerClosedLoopEnabledCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelClosedLoopEnabledCallback
-
getClosedLoopEnabled
-
setClosedLoopEnabled
-
registerPressureSwitchCallback
public static int registerPressureSwitchCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelPressureSwitchCallback
-
getPressureSwitch
-
setPressureSwitch
-
registerCompressorCurrentCallback
public static int registerCompressorCurrentCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelCompressorCurrentCallback
-
getCompressorCurrent
-
setCompressorCurrent
-
registerAllNonSolenoidCallbacks
public static void registerAllNonSolenoidCallbacks(int index, NotifyCallback callback, boolean initialNotify) -
registerAllSolenoidCallbacks
public static void registerAllSolenoidCallbacks(int index, int channel, NotifyCallback callback, boolean initialNotify) -
resetData
-