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 intCOMPRESSOR_CONFIG_TYPE_ANALOGstatic intCOMPRESSOR_CONFIG_TYPE_DIGITALstatic intCOMPRESSOR_CONFIG_TYPE_DISABLEDstatic intCOMPRESSOR_CONFIG_TYPE_HYBRID -
Constructor Summary
Constructors Constructor Description REVPHJNI() -
Method Summary
Modifier and Type Method Description static booleancheckSolenoidChannel(int channel)static voidclearStickyFaults(int handle)static voidfireOneShot(int handle, int index, int durMs)static voidfree(int handle)static doubleget5VVoltage(int handle)static doublegetAnalogVoltage(int handle, int channel)static booleangetCompressor(int handle)static intgetCompressorConfig(int handle)static doublegetCompressorCurrent(int handle)static REVPHFaultsgetFaults(int handle)static intgetFaultsNative(int handle)static doublegetInputVoltage(int handle)static booleangetPressureSwitch(int handle)static doublegetSolenoidCurrent(int handle)static intgetSolenoids(int handle)static doublegetSolenoidVoltage(int handle)static REVPHStickyFaultsgetStickyFaults(int handle)static intgetStickyFaultsNative(int handle)static REVPHVersiongetVersion(int handle)static intinitialize(int module)static voidsetClosedLoopControlAnalog(int handle, double minAnalogVoltage, double maxAnalogVoltage)static voidsetClosedLoopControlDigital(int handle)static voidsetClosedLoopControlDisabled(int handle)static voidsetClosedLoopControlHybrid(int handle, double minAnalogVoltage, double maxAnalogVoltage)static voidsetCompressorConfig(int handle, double minAnalogVoltage, double maxAnalogVoltage, boolean forceDisable, boolean useDigital)static voidsetSolenoids(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
-