Go to Post We excel at making our robots nice and colorful. - AlecMataloni [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

 
 
 
Thread Tools Rating: Thread Rating: 9 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 14-02-2015, 18:32
James Kuszmaul James Kuszmaul is offline
NEFIRST CSA
FRC #0971 (Spartan Robotics)
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Worcester, MA
Posts: 61
James Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud of
Re: Talon SRX PID Not Running

Nothing strikes me as obviously wrong with your code.
However, I do have to ask: How exactly did you arrive at that P gain value? Per section 17.13 of the Talon SRX Software Reference Manual, the P gain is in units of throttle / sensor, where throttle is 0 - 1024 and sensor units are encoder ticks (same units as the 1300 you are seeing). This means that your code should cause the talon to apply a throttle of 1300 * 0.00091054 = 1.18 throttle (out of 1024), and it is not implausible that such a low throttle could get rounded to zero. Have you tried a larger P value, tried including an I or D gain, or tried increasing the error?

Edit: Just as a reminder, if you haven't already, be sure to read the Talon Software Reference Manual. It is quite comprehensive and can generally answer any questions you may have.
__________________
FRC971 (Student) 2011-2014
FRC190 (College Mentor-ish) 2014
WPILib Development 2014-present
 


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 01:46.

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