[wpilib] Don't print PD errors for LiveWindow reads (#3708)

If something happens with the PD connection, these would have spammed messages continuously.
This wasn't the case previously, and we don't want this behavior now.
This commit is contained in:
Thad House
2021-11-07 13:45:28 -08:00
committed by GitHub
parent 7699a1f827
commit 3dd41c0d37
4 changed files with 117 additions and 9 deletions

View File

@@ -46,4 +46,14 @@ public class PowerDistributionJNI extends JNIWrapper {
public static native boolean getSwitchableChannel(int handle);
public static native void setSwitchableChannel(int handle, boolean enabled);
public static native double getVoltageNoError(int handle);
public static native double getChannelCurrentNoError(int handle, int channel);
public static native double getTotalCurrentNoError(int handle);
public static native boolean getSwitchableChannelNoError(int handle);
public static native void setSwitchableChannelNoError(int handle, boolean enabled);
}