My team used the SRX closed loop last year, and we want to use it again this year with the versaplanetary encoders on our drivetrain. I tried doing the same as last year, but it does not seem to work at all.
Basically i have 4 versa planetary gearboxes and one of them has the built in encoder. I use the Follower mode for 3 of them, and the Position mode for the leading one. When I use the method Set(), with distance as a parameter to move, it just runs at full speed until I disable the robot. I tried printing the encoder value, and it goes way over the setpoint, like it doesn’t even care.
Anyone ever had this problem? thanks
enableControl() shouldn’t be necessary unless disableControl() is called somewhere. OR if you are calling changeMode() but not calling set() immediately after like in Section 16.12 (Talon SRX Software Reference Manual).
Just in case it helps anyone else, a simple Java example for Position Closed-Loop.