Go to Post Course there's more than corn in Indiana... there's soybeans and wheat and hay and cattle and hogs and... oh never mind. :D - Jeremiah H [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 25-06-2015, 00:25
tdbroun tdbroun is offline
Registered User
AKA: Tim Brounscheidel
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: May 2013
Rookie Year: 2013
Location: Lockport NY
Posts: 16
tdbroun is an unknown quantity at this point
Using PID on Talon SRX with Gyro for feedback

We are looking at off season activities and wanted to explore using the Talon SRX controller's internal PID capabilities on our drive system to drive both to a fixed distance (using a quadrature encoder) and in a straight line (using a gyro).

I'm not sure if this is possible; I'm looking for a sanity check on the concept.

We have a tank drive six wheel drop center drive system. The thought was to wire the encoder to the left side Talon SRX, and use positional PID to control this side. We'd tune our PID with the right Talon slaved to the left. After tuning, the right Talon SRX would get attached to the Gyro, using the analog connection, just like wiring a potentiometer. We would read the current setting of the gyro before moving, and send that as the positional PID target for the right side.
The thought is that as the left side starts to move, the right side will detect a direction change and speed up to correct.

I know that this will require a great deal of tuning to get correct. What I don't know is if it is technically possible. Also, I know that in Labview there are a number of VI's that are used to get data from and to control the gyro. I believe that these expect the gyro to be attached to an analog port on the roborio. If the gyro is attached to the Talon SRX, I would assume that I can no longer use these VI's to get an angle, pitch, or yawl, or reset the angle to zero. That would be a major drawback to this approach, as we would no longer be able to say, turn 90 degrees in place. I suppose an alternative might be to put another gyro on an analog roborio port and use percent Vbus mode on the talons to turn that way.

Has anyone done this type of control? or see reasons why it just plain won't work? We have code to do this without PID using victors or the old talons, but want to take advantage of the processing power in the new controllers.
We used the PID capabilities of the Talon SRX on this past years robot, so we are familiar with CAN, the break out board, etc...[/size]
Reply With Quote
 


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 10:29.

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