Package edu.wpi.first.hal
Class CTREPCMJNI
- java.lang.Object
-
- edu.wpi.first.hal.JNIWrapper
-
- edu.wpi.first.hal.CTREPCMJNI
-
public class CTREPCMJNI extends JNIWrapper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.wpi.first.hal.JNIWrapper
JNIWrapper.Helper
-
-
Constructor Summary
Constructors Constructor Description CTREPCMJNI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
checkSolenoidChannel(int channel)
static void
clearAllStickyFaults(int handle)
static void
fireOneShot(int handle, int index)
static void
free(int handle)
static boolean
getClosedLoopControl(int handle)
static boolean
getCompressor(int handle)
static double
getCompressorCurrent(int handle)
static boolean
getCompressorCurrentTooHighFault(int handle)
static boolean
getCompressorCurrentTooHighStickyFault(int handle)
static boolean
getCompressorNotConnectedFault(int handle)
static boolean
getCompressorNotConnectedStickyFault(int handle)
static boolean
getCompressorShortedFault(int handle)
static boolean
getCompressorShortedStickyFault(int handle)
static boolean
getPressureSwitch(int handle)
static int
getSolenoidDisabledList(int handle)
static int
getSolenoids(int handle)
static boolean
getSolenoidVoltageFault(int handle)
static boolean
getSolenoidVoltageStickyFault(int handle)
static int
initialize(int module)
static void
setClosedLoopControl(int handle, boolean enabled)
static void
setOneShotDuration(int handle, int index, int durMs)
static void
setSolenoids(int handle, int mask, int values)
-
Methods inherited from class edu.wpi.first.hal.JNIWrapper
forceLoad, suppressUnused
-
-
-
-
Constructor Detail
-
CTREPCMJNI
public CTREPCMJNI()
-
-
Method Detail
-
initialize
public static int initialize(int module)
-
free
public static void free(int handle)
-
checkSolenoidChannel
public static boolean checkSolenoidChannel(int channel)
-
getCompressor
public static boolean getCompressor(int handle)
-
setClosedLoopControl
public static void setClosedLoopControl(int handle, boolean enabled)
-
getClosedLoopControl
public static boolean getClosedLoopControl(int handle)
-
getPressureSwitch
public static boolean getPressureSwitch(int handle)
-
getCompressorCurrent
public static double getCompressorCurrent(int handle)
-
getCompressorCurrentTooHighFault
public static boolean getCompressorCurrentTooHighFault(int handle)
-
getCompressorCurrentTooHighStickyFault
public static boolean getCompressorCurrentTooHighStickyFault(int handle)
-
getCompressorShortedFault
public static boolean getCompressorShortedFault(int handle)
-
getCompressorShortedStickyFault
public static boolean getCompressorShortedStickyFault(int handle)
-
getCompressorNotConnectedFault
public static boolean getCompressorNotConnectedFault(int handle)
-
getCompressorNotConnectedStickyFault
public static boolean getCompressorNotConnectedStickyFault(int handle)
-
getSolenoids
public static int getSolenoids(int handle)
-
setSolenoids
public static void setSolenoids(int handle, int mask, int values)
-
getSolenoidDisabledList
public static int getSolenoidDisabledList(int handle)
-
getSolenoidVoltageFault
public static boolean getSolenoidVoltageFault(int handle)
-
getSolenoidVoltageStickyFault
public static boolean getSolenoidVoltageStickyFault(int handle)
-
clearAllStickyFaults
public static void clearAllStickyFaults(int handle)
-
fireOneShot
public static void fireOneShot(int handle, int index)
-
setOneShotDuration
public static void setOneShotDuration(int handle, int index, int durMs)
-
-