Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Limiting the speed of a Talon SRX (http://www.chiefdelphi.com/forums/showthread.php?t=136293)

jfitz0807 01-04-2015 12:05

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

}

Ether 01-04-2015 12:48

Re: Limiting the speed of a Talon SRX
 
Quote:

Originally Posted by jfitz0807 (Post 1464832)
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/sh...d.php?t=134965

http://www.chiefdelphi.com/forums/sh...motion+profile

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




All times are GMT -5. The time now is 01:45.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi