Go to Post I think I just found a way to replace our entire robot drive team! (no big deal, they are graduating anyway!) :D - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-02-2015, 19:58
Rohan8616's Avatar
Rohan8616 Rohan8616 is offline
Rohan Singh
AKA: Rohan Singh
FRC #0201 (FEDS 201)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Rochester Hills, Mi
Posts: 4
Rohan8616 is an unknown quantity at this point
Exclamation CAN Talon Current Control

Our can talon motor control is having problems. We can not get the current control right. when we try to run straight one of our motors gains a little more power than the others and the robot starts curving to the right. can anyone help?
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2015, 20:09
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 524
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: CAN Talon Current Control

Did you read the Talon SRX Software Reference Manual, specifically section 21.2?

Did you mean velocity control instead of current?
Reply With Quote
  #3   Spotlight this post!  
Unread 26-02-2015, 18:47
Rohan8616's Avatar
Rohan8616 Rohan8616 is offline
Rohan Singh
AKA: Rohan Singh
FRC #0201 (FEDS 201)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Rochester Hills, Mi
Posts: 4
Rohan8616 is an unknown quantity at this point
Re: CAN Talon Current Control

SRX velocity control, one of the motors is running at a different speed than the others.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-02-2015, 22:43
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,708
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: CAN Talon Current Control

Possible problems, in no particular order:
  1. You're commanding max speed on the drivetrain, and one side has more resistance so is bound to run slower at max speed.
  2. One side of your drivetrain is binding up heavily, so the steady-state velocity error of the two sides is different
  3. The slower side of the robot has a motor that's miswired or not mechanically coupled (missing the key on the shaft).
  4. Velocity control PID in Talon is poorly tuned or not at all.
  5. You're not actually in velocity control mode
  6. You don't have feedback, and your P term term in the PID is making it act like regular %voltage mode
  7. One of your wheel/motor encoders is slipping

Possible solutions to the above:
  1. Pull up the diagnostics on the roboRIO and watch the Talon output value on both sides. Make sure you're not getting up to 100% output on either side.
  2. Spin each side by hand to make sure they're about the same resistance. Possibly also check current draw on the motors when they're running at full speed.
  3. Check to make sure all motors are drawing power and turning the right direction. Easiest is to switch back to the default %voltage mode, then unplug things till only one motor should be spinning on each side. Repeat until you've verified each drivetrain motor moves the robot in the correct direction.
  4. Look at the commanded velocity vs feedback velocity in the CAN diagnostics on the roboRIO. They should match closely. If not, slowly increase your P gain until they do,
  5. You need to use the Talons in CAN mode. You need to tell them to operate in velocity control because the default mode is %voltage. You should be able to determine this through the CAN diagnostics on the roboRIO.
  6. In CAN diagnostics, verify that you're actually seeing velocity feedback when the wheels are spinning.
  7. This is the hardest to check. Only real thing you can do is put a sharpie mark on the encoder shaft and the thing it's attached to and make sure those sharpie marks stay lined up. If you can't do that for some reason, testing this is going to be pretty tricky.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
Reply


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 21:24.

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