Go to Post To put it simply: An adult coach impacts a team for two minutes. An adult mentor impacts a team for a lifetime. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-03-2016, 00:42
mhaeberli mhaeberli is online now
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
Talon SRX / VersaPlanetary encoder parameters?

Hi!

We are trying to figure out how to use and configure Talon SRX with VexPro VersaPlanetary encoder on a 63:1 gearbox.
We're running it directly to the Talon SRX with the weird special cable...
We already (think) we figured out that we have to call either of:

talonSRX.SetSensorDirection(true);
talonSRX.SetClosedLoopOutputDirection(true);

But can find no documentation on what, if anything, to do with:

talonSRX.ConfigEncoderCodesPerRev();

Some documentation claims that the right thing happens, magically, without setting this value.

Another document suggests that the actual value is 1024.

And, only when we call:

talonSRX.ConfigEncoderCodesPerRev(1024);

Do results seem sort of reasonable.

Suggestions welcome.

Thanks,

Martin Haeberli
(de-)mentor, FRC 3045 Gear Gremlins (formerly SWAT)
  #2   Spotlight this post!  
Unread 09-03-2016, 00:48
wsh32's Avatar
wsh32 wsh32 is offline
The Nerdiest of the Nerd Herd
AKA: Wesley Soo-Hoo
FRC #0687 (The Nerd Herd)
Team Role: Leadership
 
Join Date: Sep 2014
Rookie Year: 2014
Location: SoCal
Posts: 15
wsh32 is on a distinguished road
Re: Talon SRX / VersaPlanetary encoder parameters?

You should call talon.setFeedbackDevice(FeedbackDevice.CtreMagEnco der_Absolute); (or CtreMagEncoder_Relative depending on how you want to use it). Setting the feedback device to the CTRE Mag Encoder presets all the settings so you don't need to call the configEncoderCodesPerRev.
  #3   Spotlight this post!  
Unread 09-03-2016, 09:05
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Talon SRX / VersaPlanetary encoder parameters?

Checkout section 17.2 in the talon srx software reference manual.
Closed Thread


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 02:01.

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