Package edu.wpi.first.hal
Class REVPHJNI
- java.lang.Object
-
- edu.wpi.first.hal.JNIWrapper
-
- edu.wpi.first.hal.REVPHJNI
-
public class REVPHJNI extends JNIWrapper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.wpi.first.hal.JNIWrapper
JNIWrapper.Helper
-
-
Field Summary
Fields Modifier and Type Field Description static int
COMPRESSOR_CONFIG_TYPE_ANALOG
static int
COMPRESSOR_CONFIG_TYPE_DIGITAL
static int
COMPRESSOR_CONFIG_TYPE_DISABLED
static int
COMPRESSOR_CONFIG_TYPE_HYBRID
-
Constructor Summary
Constructors Constructor Description REVPHJNI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
checkSolenoidChannel(int channel)
static void
clearStickyFaults(int handle)
static void
fireOneShot(int handle, int index, int durMs)
static void
free(int handle)
static double
get5VVoltage(int handle)
static double
getAnalogVoltage(int handle, int channel)
static boolean
getCompressor(int handle)
static int
getCompressorConfig(int handle)
static double
getCompressorCurrent(int handle)
static REVPHFaults
getFaults(int handle)
static int
getFaultsNative(int handle)
static double
getInputVoltage(int handle)
static boolean
getPressureSwitch(int handle)
static double
getSolenoidCurrent(int handle)
static int
getSolenoids(int handle)
static double
getSolenoidVoltage(int handle)
static REVPHStickyFaults
getStickyFaults(int handle)
static int
getStickyFaultsNative(int handle)
static REVPHVersion
getVersion(int handle)
static int
initialize(int module)
static void
setClosedLoopControlAnalog(int handle, double minAnalogVoltage, double maxAnalogVoltage)
static void
setClosedLoopControlDigital(int handle)
static void
setClosedLoopControlDisabled(int handle)
static void
setClosedLoopControlHybrid(int handle, double minAnalogVoltage, double maxAnalogVoltage)
static void
setCompressorConfig(int handle, double minAnalogVoltage, double maxAnalogVoltage, boolean forceDisable, boolean useDigital)
static void
setSolenoids(int handle, int mask, int values)
-
Methods inherited from class edu.wpi.first.hal.JNIWrapper
forceLoad, suppressUnused
-
-
-
-
Field Detail
-
COMPRESSOR_CONFIG_TYPE_DISABLED
public static final int COMPRESSOR_CONFIG_TYPE_DISABLED
- See Also:
- Constant Field Values
-
COMPRESSOR_CONFIG_TYPE_DIGITAL
public static final int COMPRESSOR_CONFIG_TYPE_DIGITAL
- See Also:
- Constant Field Values
-
COMPRESSOR_CONFIG_TYPE_ANALOG
public static final int COMPRESSOR_CONFIG_TYPE_ANALOG
- See Also:
- Constant Field Values
-
COMPRESSOR_CONFIG_TYPE_HYBRID
public static final int COMPRESSOR_CONFIG_TYPE_HYBRID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
REVPHJNI
public REVPHJNI()
-
-
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)
-
setCompressorConfig
public static void setCompressorConfig(int handle, double minAnalogVoltage, double maxAnalogVoltage, boolean forceDisable, boolean useDigital)
-
setClosedLoopControlDisabled
public static void setClosedLoopControlDisabled(int handle)
-
setClosedLoopControlDigital
public static void setClosedLoopControlDigital(int handle)
-
setClosedLoopControlAnalog
public static void setClosedLoopControlAnalog(int handle, double minAnalogVoltage, double maxAnalogVoltage)
-
setClosedLoopControlHybrid
public static void setClosedLoopControlHybrid(int handle, double minAnalogVoltage, double maxAnalogVoltage)
-
getCompressorConfig
public static int getCompressorConfig(int handle)
-
getPressureSwitch
public static boolean getPressureSwitch(int handle)
-
getAnalogVoltage
public static double getAnalogVoltage(int handle, int channel)
-
getCompressorCurrent
public static double getCompressorCurrent(int handle)
-
getSolenoids
public static int getSolenoids(int handle)
-
setSolenoids
public static void setSolenoids(int handle, int mask, int values)
-
fireOneShot
public static void fireOneShot(int handle, int index, int durMs)
-
clearStickyFaults
public static void clearStickyFaults(int handle)
-
getInputVoltage
public static double getInputVoltage(int handle)
-
get5VVoltage
public static double get5VVoltage(int handle)
-
getSolenoidCurrent
public static double getSolenoidCurrent(int handle)
-
getSolenoidVoltage
public static double getSolenoidVoltage(int handle)
-
getStickyFaultsNative
public static int getStickyFaultsNative(int handle)
-
getStickyFaults
public static REVPHStickyFaults getStickyFaults(int handle)
-
getFaultsNative
public static int getFaultsNative(int handle)
-
getFaults
public static REVPHFaults getFaults(int handle)
-
getVersion
public static REVPHVersion getVersion(int handle)
-
-