View Single Post
  #3   Spotlight this post!  
Unread 19-01-2017, 18:47
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,758
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: VersaPlanetary Integrated Encoder

First off debugging. Is the status light on your SRX encoder green or yellow? If not, you don't have power or you've assembled it wrong and it can't see the magnet. If you spin the wheel by hand, do you see a change in feedback or error? If not, there may be a problem with your cable or encoder.

Secondly, you should have a non-zero value for F. For initial tuning, you want PID = 0, F = number. Then tweak F up until you have 0 error at your target speed.

Thirdly, if all these are tied together in one system, it's better to have a single feedback and PID, and slave the other talons to the one that's doing PID. You have to do that anyways if you only have one. Check the Talon Software Reference Manual for info on that.

Thirdly, I'd rather you weren't setting ALL that in the Shoot function. It's fine for debugging, but the final code should have most of that in an initialize function and the Set calls only in Shoot.

Lastly, let me know if you haven't figured this out by Saturday and I can swing by your shop and see if I can help.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote