View Single Post
  #11   Spotlight this post!  
Unread 13-09-2015, 15:23
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,224
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: PID functionality on the Talon SRX?

Quote:
Originally Posted by Chris_Elston View Post
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.
Oh wow, so all you're doing is just executing one command after another. All the smoothness comes form the Talon. Definitely trying this! Thank you.
__________________
<Now accepting CAD requests and commissions>