Log in

View Full Version : Limiting the speed of a Talon SRX


jfitz0807
01-04-2015, 12:05
What's the best way to limit the max speed of a Talon in closed loop position mode? We're using Talon SRXs in our drive train and trying to use them in kPosition mode to make the robot drive a specific distance. We're trying to tune a combination of the CloseLoopRampRate and our PID coefficients, but at one point, while holding a tote with a can on top, we turn right 90 degrees so we can move to the Auto Zone. We'd like to make this turn slower to minimize the risk of the can falling off the tote.

Any thoughts?

From /wpilib/wpilibC++Devices/src/CANTalon.cpp:


/**

* TODO documentation (see CANJaguar.cpp)

*/

void CANTalon::ConfigMaxOutputVoltage(double voltage)

{

/* SRX does not support max output */

wpi_setWPIErrorWithContext(IncompatibleMode, "MaxOutputVoltage not supported.");

}

Ether
01-04-2015, 12:48
What's the best way to limit the max speed of a Talon in closed loop position mode? We're using Talon SRXs in our drive train and trying to use them in kPosition mode to make the robot drive a specific distance.
Any thoughts?

Here are some threads you can look at while you're waiting for other responses:

http://www.chiefdelphi.com/forums/showthread.php?t=134965

http://www.chiefdelphi.com/forums/showthread.php?t=98358&highlight=motion+profile

http://www.chiefdelphi.com/media/papers/3107