View Single Post
  #1   Spotlight this post!  
Unread 01-04-2015, 12:05
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 67
jfitz0807 is an unknown quantity at this point
Limiting the speed of a Talon SRX

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.");

}