Go to Post The only thing more dangerous than a Programmer with a screwdriver is a Hardware Designer with the root password... - kmcclary [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 13-02-2016, 17:09
while1fork while1fork is offline
Registered User
FRC #1389
 
Join Date: Jul 2015
Location: Bethesda MD
Posts: 6
while1fork is an unknown quantity at this point
TalonSRX uses encoder when in Voltage mode

We have been trying to read an encoder connected to a TalonSRX. We have it in voltage control mode, but are trying to read the velocity from the encoder.

However, we have come across some behavior that we can't understand. When we have an encoder plugged into the talon, even when the talon is in voltage control mode, it causes the talon to make the motor jitter and move slowly. The talon works fine if I remove the encoder (without changing the code).

Why is the encoder affecting how the talon works even when the code tells it not to use the encoder?
  #2   Spotlight this post!  
Unread 13-02-2016, 21:09
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,610
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: TalonSRX uses encoder when in Voltage mode

A I understand things it shouldn't, if things are wired correctly.

If you don't get some more specific guidance from Omar or someone else at CTRE, check your encoder cables and breakouts to make sure everything is connected where it should be (including under a bit of flexing) and disconnected where it should not be connected (again, including under flexing). Also, check that you are using an encoder (not analog) breakout.

Also, double check your code to make sure you aren't giving the SRX conflicting signals. Perhaps you forgot to comment out something in your encoder code, and your remnant encoder code and your new constant voltage code are fighting each other.
If you don't find any issues, if you post your code here, or provide a link to your github or other code repository, there are several here on CD who will look your code over for this sort of thing.

Finally, if things still don't work, post the state of your SRX's diagnostic lights when it jitters; that may be illuminating.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
  #3   Spotlight this post!  
Unread 13-02-2016, 22:06
davidaustin davidaustin is offline
Registered User
FRC #4003 (FRC 4003 TriSonics / FTC 7023 HexaSonics)
Team Role: Mentor
 
Join Date: Apr 2012
Rookie Year: 2008
Location: Allendale, Michigan
Posts: 20
davidaustin is an unknown quantity at this point
Re: TalonSRX uses encoder when in Voltage mode

Have you updated the firmware in your TalonSRX's? We saw some strange behavior until we remembered to do so.
__________________



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:43.

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