View Single Post
  #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,658
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