Go to Post I'm here to unintentionally offer insightful quotes. - Jeff Waegelin [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 07-02-2016, 18:38
Poseidon5817's Avatar
Poseidon5817 Poseidon5817 is online now
"Cool" Squad
AKA: Mitchel Stokes
FRC #5817 (Uni-Rex)
Team Role: Mentor
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Clovis, CA
Posts: 365
Poseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud of
CTRE CAN Recieve Timeout?

Code:
CTRE CAN Recieve Timeout at edu.wpi.first.wpilibj.hal.CanTalonJNI.GetSensorPosition(Native Method) 
 edu.wpi.first.wpilibj.CANTalon.getPosition(CANTalon.java:818)
...
...
...
We were driving our practice robot, and we began getting this error seemingly out of nowhere for four different talons. And the real kicker is that it doesn't just shut down our drive, it stops us from being able to move anything on the robot. I looked through the TalonSRX software manual and didn't find anything about this. We have VersaPlanetary encoders hooked up to each TalonSRX too. Has anybody had this error before, and how did you solve it?

NOTE: We think it might've been caused by an earlier brownout, but this is untested.
__________________
My FRC History:

2014 - Team 1671: Central Valley Regional Finalist and Chairman's Award Winner, Sacramento Regional Finalist, Archimedes Quarterfinalist
2015 - Team 1671: Central Valley Regional Semifinalist, Sacramento Regional Semifinalist and Chairman's Award Winner, Newton Winner, Einstein Winner
2016 - Team 5817: Central Valley Regional Finalist and Rookie All-Star, Orange County Regional Quarterfinalist and Rookie All-Star, Newton Division
2017 - Team 5817: Return of the bench grinder


  #2   Spotlight this post!  
Unread 08-02-2016, 08:03
Schnabel's Avatar
Schnabel Schnabel is offline
Seriously I'm almost never serious!
AKA: Eric Schnabel
FRC #0469
Team Role: Mentor
 
Join Date: Apr 2006
Rookie Year: 2003
Location: Troy, MI
Posts: 1,174
Schnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond repute
Re: CTRE CAN Recieve Timeout?

Most of the time when I get this it is due to me using a talon in code that does not physically exist. My suggestion is to verify the talons have individual device id's and then make sure those are the only ones you are talking to in code.
__________________
I win! XD
  #3   Spotlight this post!  
Unread 08-02-2016, 08:34
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: 59
gerthworm has a spectacular aura aboutgerthworm has a spectacular aura about
Re: CTRE CAN Recieve Timeout?

We get this error whenever the device isn't properly hooked up, or otherwise isn't visible to the RIO. Check out the web browser interface to your RIO and make sure it's showing up on CAN, the self-tests pass, etc.

As to shutting down the whole drivetrain, we've shown this year that lots of CAN timeouts add lots of delay to the user controls code (we were clocking over 200ms to execute our teleopPeriodic control code with CAN timeouts, and ~10ms without the timeouts). Depending on the rest of your code, its possible you could be hitting watchdogs or other timeouts that are disabling the drive? In any case I'd expect it to be a lot less responsive.
  #4   Spotlight this post!  
Unread 08-02-2016, 14:12
Poseidon5817's Avatar
Poseidon5817 Poseidon5817 is online now
"Cool" Squad
AKA: Mitchel Stokes
FRC #5817 (Uni-Rex)
Team Role: Mentor
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Clovis, CA
Posts: 365
Poseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud of
Re: CTRE CAN Recieve Timeout?

Quote:
Originally Posted by Schnabel View Post
Most of the time when I get this it is due to me using a talon in code that does not physically exist. My suggestion is to verify the talons have individual device id's and then make sure those are the only ones you are talking to in code.
Turns out the yellow CAN wire came out of the roboRIO. We realized this when every Talon wasn't listed on the roboRIO page . Thanks for the help guys!
__________________
My FRC History:

2014 - Team 1671: Central Valley Regional Finalist and Chairman's Award Winner, Sacramento Regional Finalist, Archimedes Quarterfinalist
2015 - Team 1671: Central Valley Regional Semifinalist, Sacramento Regional Semifinalist and Chairman's Award Winner, Newton Winner, Einstein Winner
2016 - Team 5817: Central Valley Regional Finalist and Rookie All-Star, Orange County Regional Quarterfinalist and Rookie All-Star, Newton Division
2017 - Team 5817: Return of the bench grinder


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

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