Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   CAN Talon SRX Speed Control (http://www.chiefdelphi.com/forums/showthread.php?t=144114)

1572 18-02-2016 19:44

CAN Talon SRX Speed Control
 
When we set the RPM to 1, the motor spins at 4000 RPM. When we set it to 2, the motor spins at -2000 RPM. When we set it to 3, the motor spins at 250 RPM. When we set it to 4, it goes full speed forward.

How do we fix it?

Joe Derrick 18-02-2016 22:51

Re: CAN Talon SRX Speed Control
 
We have had good success following the CTR Talons SRX Software reference manual.



specifically the 12.4. Velocity Closed-Loop Walkthrough – starting on page 76.

Hope this helps!

bogally99 18-02-2016 23:12

Re: CAN Talon SRX Speed Control
 
Quote:

Originally Posted by 1572 (Post 1542423)
When we set the RPM to 1, the motor spins at 4000 RPM. When we set it to 2, the motor spins at -2000 RPM. When we set it to 3, the motor spins at 250 RPM. When we set it to 4, it goes full speed forward.

How do we fix it?

If you can mount an encoder on the motor you can allow that to regulate the speed control, but otherwise all I can say is guess and test.

GeeTwo 19-02-2016 00:02

Re: CAN Talon SRX Speed Control
 
That's peculiar enough that I'm going to suggest a thorough type check of all your variables. Are you perhaps sending variables of the wrong types to methods? Floats vs ints vs longs vs doubles can sometimes generate this weird sort of behavior. If you can't find anything, post your code and I'm sure someone will help more specifically.


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

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