Package edu.wpi.first.hal.simulation
Class PowerDistributionDataJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.simulation.PowerDistributionDataJNI
public class PowerDistributionDataJNI extends JNIWrapper
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description PowerDistributionDataJNI()
-
Method Summary
Modifier and Type Method Description static void
cancelCurrentCallback(int index, int channel, int uid)
static void
cancelInitializedCallback(int index, int uid)
static void
cancelTemperatureCallback(int index, int uid)
static void
cancelVoltageCallback(int index, int uid)
static double
getCurrent(int index, int channel)
static boolean
getInitialized(int index)
static double
getTemperature(int index)
static double
getVoltage(int index)
static int
registerCurrentCallback(int index, int channel, NotifyCallback callback, boolean initialNotify)
static int
registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerTemperatureCallback(int index, NotifyCallback callback, boolean initialNotify)
static int
registerVoltageCallback(int index, NotifyCallback callback, boolean initialNotify)
static void
resetData(int index)
static void
setCurrent(int index, int channel, double current)
static void
setInitialized(int index, boolean initialized)
static void
setTemperature(int index, double temperature)
static void
setVoltage(int index, double voltage)
-
Constructor Details
-
Method Details
-
registerInitializedCallback
public static int registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelInitializedCallback
-
getInitialized
-
setInitialized
-
registerTemperatureCallback
public static int registerTemperatureCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelTemperatureCallback
-
getTemperature
-
setTemperature
-
registerVoltageCallback
public static int registerVoltageCallback(int index, NotifyCallback callback, boolean initialNotify) -
cancelVoltageCallback
-
getVoltage
-
setVoltage
-
registerCurrentCallback
public static int registerCurrentCallback(int index, int channel, NotifyCallback callback, boolean initialNotify) -
cancelCurrentCallback
-
getCurrent
-
setCurrent
-
resetData
-