Package edu.wpi.first.hal
Class PowerDistributionJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.PowerDistributionJNI
public class PowerDistributionJNI extends JNIWrapper
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static intAUTOMATIC_TYPEstatic intCTRE_TYPEstatic intDEFAULT_MODULEstatic intREV_TYPE -
Constructor Summary
Constructors Constructor Description PowerDistributionJNI() -
Method Summary
Modifier and Type Method Description static booleancheckChannel(int handle, int channel)static booleancheckModule(int module, int type)static voidclearStickyFaults(int handle)static voidfree(int handle)static voidgetAllCurrents(int handle, double[] currents)static doublegetChannelCurrent(int handle, int channel)static doublegetChannelCurrentNoError(int handle, int channel)static PowerDistributionFaultsgetFaults(int handle)static intgetFaultsNative(int handle)static intgetModuleNumber(int handle)static intgetNumChannels(int handle)static PowerDistributionStickyFaultsgetStickyFaults(int handle)static intgetStickyFaultsNative(int handle)static booleangetSwitchableChannel(int handle)static booleangetSwitchableChannelNoError(int handle)static doublegetTemperature(int handle)static doublegetTotalCurrent(int handle)static doublegetTotalCurrentNoError(int handle)static doublegetTotalEnergy(int handle)static doublegetTotalPower(int handle)static intgetType(int handle)static PowerDistributionVersiongetVersion(int handle)static doublegetVoltage(int handle)static doublegetVoltageNoError(int handle)static intinitialize(int module, int type)static voidresetTotalEnergy(int handle)static voidsetSwitchableChannel(int handle, boolean enabled)static voidsetSwitchableChannelNoError(int handle, boolean enabled)
-
Field Details
-
AUTOMATIC_TYPE
- See Also:
- Constant Field Values
-
CTRE_TYPE
- See Also:
- Constant Field Values
-
REV_TYPE
- See Also:
- Constant Field Values
-
DEFAULT_MODULE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
PowerDistributionJNI
public PowerDistributionJNI()
-
-
Method Details
-
initialize
-
free
-
getModuleNumber
-
checkModule
-
checkChannel
-
getType
-
getNumChannels
-
getTemperature
-
getVoltage
-
getChannelCurrent
-
getAllCurrents
-
getTotalCurrent
-
getTotalPower
-
getTotalEnergy
-
resetTotalEnergy
-
clearStickyFaults
-
getSwitchableChannel
-
setSwitchableChannel
-
getVoltageNoError
-
getChannelCurrentNoError
-
getTotalCurrentNoError
-
getSwitchableChannelNoError
-
setSwitchableChannelNoError
-
getFaultsNative
-
getFaults
-
getStickyFaultsNative
-
getStickyFaults
-
getVersion
-