Class SimLong
java.lang.Object
org.wpilib.hardware.hal.SimValue
org.wpilib.hardware.hal.SimLong
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSimLong(int handle) Wraps a simulated value handle as returned by SimDeviceJNI.createSimValueLong(). -
Method Summary
Methods inherited from class SimValue
getNativeHandle, getValue, setValue
-
Constructor Details
-
SimLong
Wraps a simulated value handle as returned by SimDeviceJNI.createSimValueLong().- Parameters:
handle- simulated value handle
-
-
Method Details
-
get
-
set
-
reset
Resets the simulated value to 0. Use this instead of Set(0) for resetting incremental sensor values like encoder counts or gyro accumulated angle to ensure correct behavior in a distributed system (e.g. WebSockets).
-