Go to Post Doing something reliably is better than doing something well occasionally. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 12-02-2016, 23:18
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: 16
wsh32 is on a distinguished road
TalonSRX Speed Control

My team is having trouble using the TalonSRX in speed control mode. The source code and self test log can we are using/getting can be found here: https://github.com/nerdherd/TalonSRX

My understanding of this is that the encoder velocity is not being fed into the control loop...and for some reason the Talon believes that the error is 409 (we tried other speeds too and the error is 409 no matter what).

Any tips?
  #2   Spotlight this post!  
Unread 13-02-2016, 08:32
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 65
gerthworm has a spectacular aura aboutgerthworm has a spectacular aura about
Re: TalonSRX Speed Control

One thing to try- Check the firmware version on the SRX. Latest is 2.0. We were using an srx similarly and had issues when that was out of date.
  #3   Spotlight this post!  
Unread 16-02-2016, 19:56
CHenry18 CHenry18 is offline
Registered User
FRC #2874
 
Join Date: Feb 2016
Location: Grain valley
Posts: 6
CHenry18 is an unknown quantity at this point
Re: TalonSRX Speed Control

Hello,
Can I just use one TalonSRX and then use three Talons SR and not mess up the drive?
If I can, can I be able to send and receive code on the one talon SRX using the encoder?
Thanks,
CHenry18

p.s. Labview user
  #4   Spotlight this post!  
Unread 16-02-2016, 20:04
tedlasai tedlasai is offline
Registered User
FRC #2996
 
Join Date: Feb 2016
Location: Colorado Springs
Posts: 9
tedlasai is an unknown quantity at this point
Re: TalonSRX Speed Control

I would like to inform you that certain versions of the Talons have hardware defects and don't get a B channel from the encoder. Talon SRX has these hardware models posted on their site. If your encoders do have hardware defects then change the input from "digital quadrature" to "A Rising" and try again.

Hope this helps
Sai
  #5   Spotlight this post!  
Unread 16-02-2016, 23:03
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: 522
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: TalonSRX Speed Control

Quote:
Originally Posted by wsh32 View Post
My team is having trouble using the TalonSRX in speed control mode. The source code and self test log can we are using/getting can be found here: https://github.com/nerdherd/TalonSRX

My understanding of this is that the encoder velocity is not being fed into the control loop...and for some reason the Talon believes that the error is 409 (we tried other speeds too and the error is 409 no matter what).

Any tips?
Please read "section 16.31 My Closed-Loop is not working? Now what?" in the 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 00:41.

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