You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Enhancements
Java: Adds initial WPILib simulation support
Supports ControlType.kVelocity and ControlType.kVoltage
To use, make the following modifications to your Robot class (adjust parameters as necessary):
Call RevPhysicsSim.getInstance().addSparkMax(sparkMax, DCMotor.getNEO(1)) from simulationInit()
Call RevPhysicsSim.GetInstance.run() from simulationPeriodic()
These changes will keep the simulated position value up-to-date.
Limitations
When in simulation mode, calling setReference() will only update the velocity of the primary encoder, even if SparkMaxPIDController.setFeedbackDevice() was called with a different feedback sensor
Fixes
C++: Fixes move semantics for supported classes
Known issues
SparkMaxPIDController.setIAccum() only works while the control mode is active