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 int
AUTOMATIC_TYPE
static int
CTRE_TYPE
static int
DEFAULT_MODULE
static int
REV_TYPE
-
Constructor Summary
Constructors Constructor Description PowerDistributionJNI()
-
Method Summary
Modifier and Type Method Description static boolean
checkChannel(int handle, int channel)
static boolean
checkModule(int module, int type)
static void
clearStickyFaults(int handle)
static void
free(int handle)
static void
getAllCurrents(int handle, double[] currents)
static double
getChannelCurrent(int handle, int channel)
static double
getChannelCurrentNoError(int handle, int channel)
static PowerDistributionFaults
getFaults(int handle)
static int
getFaultsNative(int handle)
static int
getModuleNumber(int handle)
static int
getNumChannels(int handle)
static PowerDistributionStickyFaults
getStickyFaults(int handle)
static int
getStickyFaultsNative(int handle)
static boolean
getSwitchableChannel(int handle)
static boolean
getSwitchableChannelNoError(int handle)
static double
getTemperature(int handle)
static double
getTotalCurrent(int handle)
static double
getTotalCurrentNoError(int handle)
static double
getTotalEnergy(int handle)
static double
getTotalPower(int handle)
static int
getType(int handle)
static PowerDistributionVersion
getVersion(int handle)
static double
getVoltage(int handle)
static double
getVoltageNoError(int handle)
static int
initialize(int module, int type)
static void
resetTotalEnergy(int handle)
static void
setSwitchableChannel(int handle, boolean enabled)
static void
setSwitchableChannelNoError(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
-