We’re using setReference on CANPIDController to set our SparkMax to approach a kSmartVelocity reference point. We would like to be able to “clear” that reference (that is, bail out of the PID Control loop on the SparkMax and just allow the motors to naturally spin down while in Coast).
We can call “setReference(0)” , but that actually makes the motors “work” to approach 0 as quickly as possible. Is there a simple way to “clear” to just return the SparkMax to the state it was in before the initial setReference call?
Thanks for any insight you can provide!