|
Re: Talon SRX Swerve Control
The POS value did as expected and went past 1023. Your code appears to be throwing away the overflow and trying to limit everything to a single rotation.
Don't do that. Just add to or subtract from the current setpoint, without worrying about going "too far" in any direction.
Last edited by Alan Anderson : 15-12-2015 at 13:33.
|