CTR: CAN frame not received/too-stale

Hi, we are using the CANCoder library with the CTRE Mag Encoder. When we run our code, including the CTRE example code found here.

We get the error, “CTR: CAN frame not received/too-stale.” We made sure that the ID of the Talon SRX the encoder it is plugged into’s ID is the same as in the code as well as the motors it is connected to. We also tried switching the cable, the encoder, the Talon, and the motor.

Thanks,
Team 6969

Are you using a CANCoder or an SRX Mag Encoder?

The CANCoder is connected directly to the CAN bus, while the SRX Mag Encoder uses the 10-pin ribbon cable.

You should only use the CANCoder class if you’re using the CANCoder device.

If you’re using an SRX Mag Encoder you should be using the instructions for Talon SRX Sensors here: https://phoenix-documentation.readthedocs.io/en/latest/ch14_MCSensor.html

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.