View Single Post
  #10   Spotlight this post!  
Unread 13-09-2015, 15:21
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 751
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: PID functionality on the Talon SRX?

Quote:
Originally Posted by asid61 View Post
So are you implementing special code (state logic) on the RIO, or is that entire movement all programmed into the Talon?
You write all your State Logic in the RIO.

Basically something like this...Let's use the video as reference:

State 1
Grip CAN

State 2
Send Position to Talon SRX = 10,000 counts or "30 inches".

State 3
Retract Drawer

State 4
Send Position to Talon SRX = 9,000 counts or "28 inches".

State 5
Ungrip CAN

etc...

Basically, at those states, you use the Talon SRX library to send position values to the Talon SRX over CAN BUS. It's really easy. Prior to sending commands, you need to TUNE your mechanical system until it's stable, then you can just issue commands or presets to the Talon SRX after that.

The manual referenced above already, is the bible to the Talon SRX library.
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369