|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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) ... ... ... NOTE: We think it might've been caused by an earlier brownout, but this is untested. |
|
#2
|
|||||
|
|||||
|
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.
|
|
#3
|
||||
|
||||
|
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
|
||||
|
||||
|
Re: CTRE CAN Recieve Timeout?
Quote:
. Thanks for the help guys! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|