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
-
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
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)
-
Field Details
-
Constructor Details
-
Method Details
-
initialize
-
free
-
checkSolenoidChannel
-
getCompressor
-
setCompressorConfig
public static void setCompressorConfig(int handle, double minAnalogVoltage, double maxAnalogVoltage, boolean forceDisable, boolean useDigital) -
setClosedLoopControlDisabled
-
setClosedLoopControlDigital
-
setClosedLoopControlAnalog
public static void setClosedLoopControlAnalog(int handle, double minAnalogVoltage, double maxAnalogVoltage) -
setClosedLoopControlHybrid
public static void setClosedLoopControlHybrid(int handle, double minAnalogVoltage, double maxAnalogVoltage) -
getCompressorConfig
-
getPressureSwitch
-
getAnalogVoltage
-
getCompressorCurrent
-
getSolenoids
-
setSolenoids
-
fireOneShot
-
clearStickyFaults
-
getInputVoltage
-
get5VVoltage
-
getSolenoidCurrent
-
getSolenoidVoltage
-
getStickyFaultsNative
-
getStickyFaults
-
getFaultsNative
-
getFaults
-
getVersion
-