Go to Post you know the FIRST season is never over . . it just pauses a while so you can get some sleep. - Stuart [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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 30-01-2016, 01:11
ram112358 ram112358 is offline
Registered User
FRC #3502
 
Join Date: Jan 2015
Location: Tallahassee
Posts: 9
ram112358 is an unknown quantity at this point
Exclamation Talon SRX Closed Loop

I'm having some troubles getting a closed loop position control loop set up running on a talon SRX. I'm using Java and after searching on delphi and else where I can't seem to find a solution for my problems.

I'm trying to use the closed loop position control function that runs on the Talon SRX. I've read any documentation I can find on it and I'm certain that I have the encoder plugged in correctly to the breaker board. The code is currently set up to run off of half of our tank drive from last year to be sure there is no damage done to our lifter. We are using the new KOP router and the RoboRIO was flashed at the beginning of build season with the latest image and all the talons have the newest firmware as well.

With my code (attached) I can run the "lifter" off a joystick and watch the encoder value change as I do so. When I press the button to run my command that should run the pid functionality and through the RoboRIO web interface I can confirm that the Talon goes into closed loop position mode and that my PID values are actually sent to the Talon. However, when I push said button the "lifter" just runs full speed forward regardless of the relation between the value of the encoder and the set value.

Is there any insight you can give me into this or what's going on or resources where I can learn more about how to address this problem?

Thanks in advance for your help.

Link to zip of project: https://drive.google.com/file/d/0B32...ew?usp=sharing
 


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 20:04.

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