Go to Post IRI: where egos go to die...uhm..I mean fly! - Koko Ed [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-02-2017, 13:34
DurT1178 DurT1178 is offline
Registered User
FRC #1178
 
Join Date: Feb 2016
Location: Saint Louis
Posts: 8
DurT1178 is an unknown quantity at this point
SRX Encoder not working

Hello Everyone! We are having trouble getting the encoders on our CANTalons to work properly. We are using four CANTalon SRX as our drive train with one talon to each sim. We are programming in Java, and are trying to use the getEncoderPostion method from the CANTalon class; however, it is not working. We have tried to send the values to SmartDashboard, and when we do they are continuously set to 0. We used a similar setup last year. Was something changed in the CANTalon classes? Also is there a better version of the CANTalon Javadocs? Becuase the one on the Cross The Road Website does not have detailed information on everything. Any advice is appreciated. Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2017, 13:53
dardeshna's Avatar
dardeshna dardeshna is offline
Build Captain
AKA: Devin Ardeshna
FRC #0008 (Paly Robotics | Team 8)
Team Role: Mechanical
 
Join Date: Dec 2015
Rookie Year: 2015
Location: Palo Alto
Posts: 39
dardeshna is an unknown quantity at this point
Re: SRX Encoder not working

Quote:
Originally Posted by DurT1178 View Post
Hello Everyone! We are having trouble getting the encoders on our CANTalons to work properly. We are using four CANTalon SRX as our drive train with one talon to each sim. We are programming in Java, and are trying to use the getEncoderPostion method from the CANTalon class; however, it is not working. We have tried to send the values to SmartDashboard, and when we do they are continuously set to 0. We used a similar setup last year. Was something changed in the CANTalon classes? Also is there a better version of the CANTalon Javadocs? Becuase the one on the Cross The Road Website does not have detailed information on everything. Any advice is appreciated. Thanks!
Can you specify the model of your breakout boards and encoders? It could very well be the same issue we had - lack of pullup resistors.
Reply With Quote
  #3   Spotlight this post!  
Unread 03-02-2017, 13:58
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 73
dvanvoorst is an unknown quantity at this point
Re: SRX Encoder not working

You can use the web interface of the roboRIO to view what's going on with your Talons. It's a quick way to see if you're getting encoder readings or not. Manually moving the motors should show encoder value changes in the web interface.
__________________

Reply With Quote
  #4   Spotlight this post!  
Unread 03-02-2017, 14:04
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 541
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: SRX Encoder not working

https://github.com/CrossTheRoadElec/FRC-Examples

CTRE Examples on GitHub.
__________________
The sooner we get behind schedule, the more time we have to catch up.

Reply With Quote
  #5   Spotlight this post!  
Unread 03-02-2017, 14:17
DurT1178 DurT1178 is offline
Registered User
FRC #1178
 
Join Date: Feb 2016
Location: Saint Louis
Posts: 8
DurT1178 is an unknown quantity at this point
Re: SRX Encoder not working

Quote:
Originally Posted by dardeshna View Post
Can you specify the model of your breakout boards and encoders?
Where do we look to find out the model of our breakout board. Also we are trying to use the built in encoders on the Talon SRX's, do they have a model number?


Quote:
Originally Posted by dvanvoorst View Post
You can use the web interface of the roboRIO to view what's going on with your Talons. It's a quick way to see if you're getting encoder readings or not. Manually moving the motors should show encoder value changes in the web interface.
Web interface says that the talons have a position and velocity of zero.
Reply With Quote
  #6   Spotlight this post!  
Unread 03-02-2017, 14:25
T8PineappleSam T8PineappleSam is online now
Jonathan
AKA: Jonathan Zwiebel
FRC #0008 (Paly Robotics)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2013
Location: California
Posts: 29
T8PineappleSam will become famous soon enoughT8PineappleSam will become famous soon enough
Re: SRX Encoder not working

Quote:
Originally Posted by DurT1178 View Post
Where do we look to find out the model of our breakout board. Also we are trying to use the built in encoders on the Talon SRX's, do they have a model number?




Web interface says that the talons have a position and velocity of zero.
The Talon SRX can not get positional data without an external encoder plugged in. In order to receive sensor data you will need to plug an external sensor to the Talon's data port. (This is found on the top and covered by a plastic shield).
__________________
Jonathan Zwiebel
Driver, Project Manager, Programmer [Team 8, Paly Robotics]




2016 Central Valley Regional Finalist and Wildcard, Silicon Valley Regional Quarterfinalist, Curie Division, CalGames Quarterfinalist and Entrepreneurship Award, Capital City Classic Quarterfinalist
2015 Central Valley Regional Entrepreneurship Award, Silicon Valley Regional Entrepreneurship Award, Capital City Classic Semifinalist and Judges' Award
2014 Central Valley Regional, Silicon Valley Regional, Chezy Champs
Reply With Quote
  #7   Spotlight this post!  
Unread 03-02-2017, 14:26
dardeshna's Avatar
dardeshna dardeshna is offline
Build Captain
AKA: Devin Ardeshna
FRC #0008 (Paly Robotics | Team 8)
Team Role: Mechanical
 
Join Date: Dec 2015
Rookie Year: 2015
Location: Palo Alto
Posts: 39
dardeshna is an unknown quantity at this point
Re: SRX Encoder not working

Quote:
Originally Posted by DurT1178 View Post
Where do we look to find out the model of our breakout board. Also we are trying to use the built in encoders on the Talon SRX's, do they have a model number?


Web interface says that the talons have a position and velocity of zero.
There has to be a physical encoder attached to the mechanism that is rotating. The talons themselves cannot record position without the sensor. Do you have an encoder built into your gearbox?
Reply With Quote
  #8   Spotlight this post!  
Unread 03-02-2017, 14:28
T8PineappleSam T8PineappleSam is online now
Jonathan
AKA: Jonathan Zwiebel
FRC #0008 (Paly Robotics)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2013
Location: California
Posts: 29
T8PineappleSam will become famous soon enoughT8PineappleSam will become famous soon enough
Re: SRX Encoder not working

The setup we used for out drivetrain had one CIMCoder for each side with the sensors plugged in to am-3281 breakout boards (http://www.andymark.com/product-p/am-3281.htm). The breakouts plug into the data port and interface well with the CIMCoder's quadrature output.
__________________
Jonathan Zwiebel
Driver, Project Manager, Programmer [Team 8, Paly Robotics]




2016 Central Valley Regional Finalist and Wildcard, Silicon Valley Regional Quarterfinalist, Curie Division, CalGames Quarterfinalist and Entrepreneurship Award, Capital City Classic Quarterfinalist
2015 Central Valley Regional Entrepreneurship Award, Silicon Valley Regional Entrepreneurship Award, Capital City Classic Semifinalist and Judges' Award
2014 Central Valley Regional, Silicon Valley Regional, Chezy Champs
Reply With Quote
  #9   Spotlight this post!  
Unread 03-02-2017, 14:33
Bob Steele's Avatar
Bob Steele Bob Steele is offline
Professional Steamacrit Hunter
AKA: Bob Steele
FRC #1983 (Skunk Works Robotics)
Team Role: Coach
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Seattle, Washington
Posts: 1,541
Bob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond repute
Re: SRX Encoder not working

Are you using the new version of the CIM Coder or the older version?
The new one came out just a couple of weeks ago.
The old one requires a pull up resistor to be installed.
The new one has that incorporated.

oops I just realized that you guys are not the ones having problems...It was team 1178... I am sure you know what you are doing.
:0)
__________________
Raisbeck Aviation High School TEAM 1983 - Seattle, Washington
Las Vegas 07 WINNER w/ 1425/254...Seattle 08 WINNER w/ 2046/949.. Oregon 09 WINNER w/1318/2635..SEA 10 RCA ..Spokane 12 WINNER w/2122/4082 and RCA...Central Wa 13 WINNER w/1425/753..Seattle 13 WINNER w/948/492 & RCA ..Spokane 13 WINNER w/2471/4125.. Spokane 14 - DCA --Auburn 14 - WINNER w/1318/4960..District CMP 14 WINNER w/1318/2907, District CMA.. CMP 14 Newton Finalist w 971/341/3147 ... Auburn Mountainview 15 WINNER w/1318/3049 - Mt Vernon 15 WINNER w/1318/4654 - Philomath 15 WINNER w/955/847 -District CMP 15 WINNER w/955/2930 & District CMA -CMP Newton -Industrial Design Award


Last edited by Bob Steele : 03-02-2017 at 14:35.
Reply With Quote
Reply


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 19:28.

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