Go to Post FIRST is all about helping eachother and team work, isn't it? - vadyr [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: 17 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 28-01-2015, 13:13
kmrchiefdelphi kmrchiefdelphi is offline
Registered User
FRC #3950 (Robo Gym)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: North Shore High School
Posts: 5
kmrchiefdelphi is an unknown quantity at this point
Talon SRX PID parameters

Hi. First timer here.

We are attempting to use the PID functionality of the Talon SRX and am confused about the magnitude of the parameters to be used in the SetPID method. We are using a Quadrature Encoder.

From the 'Can Talon SRX PID' example C++ code it states, just before the call to SetPID:
// These values are in units of throttle / sensor_units where throttle ranges
// from -1023 to +1023 and sensor units are from 0 - 1023 for analog
// potentiometers, encoder ticks for encoders, and position / 10ms for
/ speeds.

And in the CanTalonSRX.h is states:
* P gain is specified in throttle per error tick. For example, a value of 102 is ~9.9% (which is 102/1023) throttle per 1
* ADC unit(10bit) or 1 quadrature encoder edge depending on selected sensor.

Since we are using a Quadrature Encoder are we correct in assuming that the values for P, I and D should be integer values, according to the comment above, 'encoder ticks for encoders'?

Our tests using integer values did not work. When we used PID values all less than 1.0 we had better results but the encoder never reached the set point. Any ideas?

Thanks in advance.
 


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:45.

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