Quote:
Originally Posted by Poseidon1671
How about using Talon.setVoltageRampRate()? The only downside is it would also slow down deceleration, and I think it only works on CANTalons.
|
Quote:
Originally Posted by vps
I wanted Can Motor controllers but we ended up using regular one. I was going to use the setVoltageRampRate function,
|
Quote:
Originally Posted by Ether
If you are simply wanting to prevent driver "jackrabbit" starts and stops so the totes won't fall off the stack you are carrying, a simple solution would be to add a slew rate limiter to your joystick commands.
|
^^Here's the code for the above:
Code:
change = joystickAxis - limitedJoystickAxis;
if (change>limit) change = limit;
else if (change<-limit) change = -limit;
limitedJoystickAxis += change;
Quote:
Originally Posted by vps
The acceleration curve by Math.pow(val, x) wasn't good enough for us, where x is an int. Why? because if the joystick slips, we don't want the robot to rapidly accelerate.
|
Exactly.