Quote:
Originally Posted by Chris_Elston
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.