Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Talon SRX Encoder Breakout (http://www.chiefdelphi.com/forums/showthread.php?t=132643)

amesmich 11-01-2015 14:20

Talon SRX Encoder Breakout
 
I had a question about the SRX breakout board for the new talon. Located here http://www.vexrobotics.com/217-4398.html

TChey way I understand it is you could add an encoder right to the tallon and it woudl process the signal on to the CAN bus.

Correct me if I am wrong, the encoder would still be on the mechanical side to monitor the actual movement of the saft it will just feed data to directly the controller instead of directly to the myrio.

nickmcski 11-01-2015 15:14

Re: Talon SRX Encoder Breakout
 
Yes i believe your right but I with this I believe you can also just have the PID control on the motor controller itself (eg keep a wheel spinning at 70 rpm)

FrankJ 11-01-2015 15:26

Re: Talon SRX Encoder Breakout
 
The reason to run the encoder to the talon is the same for the Jags. You would run the PID in the Talon. Otherwise you would run the encoder into the RoboRio.

Thad House 11-01-2015 15:31

Re: Talon SRX Encoder Breakout
 
Quote:

Originally Posted by FrankJ (Post 1426310)
The reason to run the encoder to the talon is the same for the Jags. You would run the PID in the Talon. Otherwise you would run the encoder into the RoboRio.

Also, because you can get the raw encoder values at any time, you can plug the encoder into the talon, then still do the PID calculation on the roboRIO. This has some interesting use cases, and could both simplify wiring, and require less IO's to be used for encoders.

amesmich 12-01-2015 08:50

Re: Talon SRX Encoder Breakout
 
Wow, ok that makes sense. Its uses the encoder for the onboard PID. Nice. Originally I was thinking it would save an I/O and some wire but now I understand the PID can be offloaded from the myrio to the controller. I knew the new talon had PID but I never put the two together.


Thanks for the help all.

adciv 12-01-2015 09:27

Re: Talon SRX Encoder Breakout
 
Quote:

Originally Posted by Thad House (Post 1426312)
Also, because you can get the raw encoder values at any time, you can plug the encoder into the talon, then still do the PID calculation on the roboRIO. This has some interesting use cases, and could both simplify wiring, and require less IO's to be used for encoders.

From a controls standpoint, I wouldn't recommend this for most cases. There will be an increased time delay between getting the encoder value from the Talon to the RIO and sending back the new control command. If you're going to use processing on the RIO, it's better to have the encoder wired to the RIO and use PWM. This is all to maintain the minimum possible time lag in the system.

ozrien 12-01-2015 12:22

Re: Talon SRX Encoder Breakout
 
The Talon SRX reports the sensor position and sensor velocity every 20ms. The control frame to the Talon is sent every 10ms.

If you are using C++/Java you can change these time periods. If you do this be sure to check the CAN metrics in the DS tab.

See sections 20.5 and 20.7 in the Talon SRX Software Reference Manual for details. Also section 15 for measuring CAN performance.

"Talon SRX Software Reference Manual 2014-12-26 (.pdf)"
http://www.crosstheroadelectronics.c...ol_system.html

Thad House 12-01-2015 12:30

Re: Talon SRX Encoder Breakout
 
Quote:

Originally Posted by adciv (Post 1426649)
From a controls standpoint, I wouldn't recommend this for most cases. There will be an increased time delay between getting the encoder value from the Talon to the RIO and sending back the new control command. If you're going to use processing on the RIO, it's better to have the encoder wired to the RIO and use PWM. This is all to maintain the minimum possible time lag in the system.

Even if running 10ms loops on the RoboRIO, you will be at max 10ms behind the actual sensor. Thats not that much, and just like ozrien said above, we can speed up the controls to lower that to even less. I don't believe latency across the CAN line would account to more then 1ms, which is negligible.

Quote:

Originally Posted by ozrien (Post 1426756)
The Talon SRX reports the sensor position and sensor velocity every 20ms. The control frame to the Talon is sent every 10ms.

If you are using C++/Java you can change these time periods. If you do this be sure to check the CAN metrics in the DS tab.

See sections 20.5 and 20.7 in the Talon SRX Software Reference Manual for details. Also section 15 for measuring CAN performance.

"Talon SRX Software Reference Manual 2014-12-26 (.pdf)"
http://www.crosstheroadelectronics.c...ol_system.html

Is there any timeline for when that functionality will be added to LabVIEW? That could be something good to have.

Foster 12-01-2015 14:29

Re: Talon SRX Encoder Breakout
 
Quote:

Originally Posted by adciv (Post 1426649)
From a controls standpoint, I wouldn't recommend this for most cases. There will be an increased time delay between getting the encoder value from the Talon to the RIO and sending back the new control command. If you're going to use processing on the RIO, it's better to have the encoder wired to the RIO and use PWM. This is all to maintain the minimum possible time lag in the system.

Can I get some more details about this?

From what I read the values come back every 20ms. You get new values 50 times a second (20*50=1000ms=1 second)

The update rate is at 10ms, so you can update it 100 times a second, You are using slightly stale data.

At 10 fps (random robot speed that seemed reasonable) you will travel ~2.5 inches per 20ms period.

But you are not going to stop on a dime ( or turn on one) since your 120lb robot moving 10 fps has a lot of momentum.

Are the drive trains / actuators that sensitive to need higher update rates?

Or is this just a case of faster is always better?

KrazyCarl92 12-01-2015 14:54

Re: Talon SRX Encoder Breakout
 
Quote:

Originally Posted by ozrien (Post 1426756)
See sections 20.5 and 20.7 in the Talon SRX Software Reference Manual for details. Also section 15 for measuring CAN performance.

"Talon SRX Software Reference Manual 2014-12-26 (.pdf)"
http://www.crosstheroadelectronics.c...ol_system.html

These links are dead for me; they redirect to the Talon SR product page. When I try to right click and save as to recover the .pdf files, it says that the files are damaged or unrecognizable upon attempting to open them. Our team would be interested in the information in these documents, but we are unable to access them.

In particular we are interested in how many pulses per second the Talon SRX is capable of reading from a quadrature encoder in CAN.

ozrien 12-01-2015 14:58

Re: Talon SRX Encoder Breakout
 
Just to be clear you went to ....

http://www.crosstheroadelectronics.c...ol_system.html

...and clicked on the "Talon SRX Software Reference Manual 2014-12-26 (.pdf)" hyperlink at the bottom and it redirected to Talon SR?

Quote:

Originally Posted by KrazyCarl92 (Post 1426858)
These links are dead for me; they redirect to the Talon SR product page. When I try to right click and save as to recover the .pdf files, it says that the files are damaged or unrecognizable upon attempting to open them. Our team would be interested in the information in these documents, but we are unable to access them.

In particular we are interested in how many pulses per second the Talon SRX is capable of reading from a quadrature encoder in CAN.


KrazyCarl92 13-01-2015 13:17

Re: Talon SRX Encoder Breakout
 
Quote:

Originally Posted by ozrien (Post 1426863)
Just to be clear you went to ....

http://www.crosstheroadelectronics.c...ol_system.html

...and clicked on the "Talon SRX Software Reference Manual 2014-12-26 (.pdf)" hyperlink at the bottom and it redirected to Talon SR?

Exactly. When I hover over that link, it displays:
"www.crosstheroadelectronics.com/Talon SRX Software Reference Manual.pdf"
in the lower left corner of my browser (Google Chrome) in a gray box.

Then I click it and I end up here:
http://www.crosstheroadelectronics.c...e%20Manual.pdf

I'm no expert, but it might be helpful to change the " " (space) character in the file name and directory to an "_" (underscore). My browser seems to replace the space with a percent symbol and then direct me to the wrong page as a result.

Bob Steele 13-01-2015 15:00

Re: Talon SRX Encoder Breakout
 
Where does this take you?:

http://content.vexrobotics.com/vexpr...l-20141226.pdf


It should take you to the software manual directly.

ozrien 13-01-2015 15:04

Re: Talon SRX Encoder Breakout
 
That's correct, space ' ' is encoded as %20.
Yeah I don't get it, both style paths seem to work for me, iexplorer and chrome.

crosstheroadelectronics.com/Talon SRX Software Reference Manual.pdf
crosstheroadelectronics.com/Talon%20SRX%20Software%20Reference%20Manual.pdf

Anyone else having trouble?

You can also just google Talon SRX Software Reference Manual.
Also it's on vex's site
http://www.vexrobotics.com/217-8080.html

KrazyCarl92 13-01-2015 17:31

Re: Talon SRX Encoder Breakout
 
I am able to access it from the vexpro site, thanks for pointing that out.


All times are GMT -5. The time now is 11:33.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi