Package edu.wpi.first.hal
Class SimDouble
java.lang.Object
edu.wpi.first.hal.SimValue
edu.wpi.first.hal.SimDouble
public class SimDouble extends SimValue
A wrapper around a simulator double value handle.
- 
Field Summary
- 
Constructor SummaryConstructors Constructor Description SimDouble(int handle)Wraps a simulated value handle as returned by SimDeviceJNI.createSimValueDouble().
- 
Method Summary
- 
Constructor Details- 
SimDoubleWraps a simulated value handle as returned by SimDeviceJNI.createSimValueDouble().- Parameters:
- handle- simulated value handle
 
 
- 
- 
Method Details- 
getGets the simulated value.- Returns:
- The current value
 
- 
setSets the simulated value.- Parameters:
- value- the value to set
 
- 
resetResets 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).
 
-