Go to Post Looks great! Love that Indiana engineering!! - Mr.D [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-18-2016, 07:44 PM
1572 1572 is offline
Registered User
FRC #1572
 
Join Date: Feb 2016
Location: California
Posts: 1
1572 is an unknown quantity at this point
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?
  #2   Spotlight this post!  
Unread 02-18-2016, 10:51 PM
Joe Derrick's Avatar
Joe Derrick Joe Derrick is offline
Mentor - Programming
FRC #0319
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Prospect Mountain High School
Posts: 43
Joe Derrick is a glorious beacon of lightJoe Derrick is a glorious beacon of lightJoe Derrick is a glorious beacon of lightJoe Derrick is a glorious beacon of lightJoe Derrick is a glorious beacon of lightJoe Derrick is a glorious beacon of light
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!
__________________
2010-2017 Mentor Team 319
2012 - Rockwell Automation Award Winner
2014 - Xerox Creativity in Engineering Winner, Archimedes Division
2015 - Rockwell Automation and Gracious Proffesionalism Winner, Tesla Division
2016 - North Shore and UNH District Event Winner, Carson Division
http://www.frc319.com
  #3   Spotlight this post!  
Unread 02-18-2016, 11:12 PM
bogally99 bogally99 is offline
Registered User
FRC #0159
 
Join Date: Feb 2016
Location: Colorado
Posts: 6
bogally99 is an unknown quantity at this point
Re: CAN Talon SRX Speed Control

Quote:
Originally Posted by 1572 View Post
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.
  #4   Spotlight this post!  
Unread 02-19-2016, 12:02 AM
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,539
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
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.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:05 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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