Go to Post Now there is something I am going to suggest to my team...."testing before ship (bag)"....on second thought, maybe I'll just ref! - ExTexan [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: 43 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 15-03-2015, 22:55
cbf cbf is offline
Registered User
FRC #2877
 
Join Date: Feb 2012
Location: Newton, MA
Posts: 73
cbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nice
Re: Talon SRX Position PID Control Issue

We use the Talon in a similar manner to control our up/down elevator. By default, it's set to hold the elevator in place. But we also have manual joystick control (actually the triggers on an Xbox controller). We do have a small problem when switching from manual control (which is %VBus mode) to PID loop control -- the elevator falls a little bit before the PID loop takes control. But for us that seems to be because by the time we sample the position with GetEncoderPos, the elevator has already started falling (couldn't be more than 20 ms later). But we were surprised at how much it falls, so it could be we're experiencing something similar to what you're seeing.

Note -- we don't store the profiles in the Talon. We were concerned about storing the profile in the Talon in case we had to swap one out. So we just set them in code every time we enter kPosition mode.

We also are only using the "P" value. Didn't have time to tune the rest.
 


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 05:13.

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