Errors with CTRE FalconSRX and SparkMAX NEO motor controllers

Good morning,

I have been working to revive an old swerve chassis recently, it is built with CTRE TalonSRXs for turning motors and SparkMAX NEOs for drive motors. In trying to get it to work I have been experiencing many issues with the both motors. When I try to run the code (located here) I see a constant stream of scrolling errors:

ERROR  -3  CTR: CAN frame not received/too-stale.  Talon SRX 13 GetSelectedSensorPosition 
ERROR  -3  CTR: CAN frame not received/too-stale.  Talon SRX 13 GetSelectedSensorPosition 
ERROR  -3  CTR: CAN frame not received/too-stale.  Talon SRX 3 GetSelectedSensorPosition 
ERROR  -3  CTR: CAN frame not received/too-stale.  Talon SRX 3 GetSelectedSensorPosition 
ERROR  -3  CTR: CAN frame not received/too-stale.  Talon SRX 14 GetSelectedSensorPosition 
ERROR  -3  CTR: CAN frame not received/too-stale.  Talon SRX 20 GetSelectedSensorPosition 
ERROR  -3  CTR: CAN frame not received/too-stale.  Talon SRX 14 GetSelectedSensorPosition 
ERROR  -3  CTR: CAN frame not received/too-stale.  Talon SRX 20 GetSelectedSensorPosition 
ERROR  4  [CAN SPARK MAX] IDs: 1, 12, 15, WPILib or External HAL Error: CAN: Message not found Periodic Status 1   
ERROR  4  [CAN SPARK MAX] IDs: 1, 12, 15, WPILib or External HAL Error: CAN: Message not found Periodic Status 1   

These same errors go endlessly until I disable the robot. I am quite certain that all of the CAN IDs are correct as I have checked them many times in the REV client and the Phoenix tuner. All of the devices show up in their respective applications as well.

I read somewhere that the Talon errors could be caused my instantiating the drive train twice, however, I am not instantiating it twice in my code. If you could double check that again for me it would be great :).

I rewired the whole thing so I am reasonable sure that all of the can connections on the CAN bus are correct. CAN utilization also doesn’t appear to be anything abnormal 30%-70% normally. Interestingly the LEDs on the SparkMAXs blink, which according to the documentations means that they have no signal, however they all show up when I plug a USB cord in and look at the client software.

I am new to this so if this issue happens to be very rudimentary, I apologize.

Any help resolving this would be appreciated.

Thanks,
sckzor

Getting a deleted file error when trying to view the code. Can you put it on Github?
Is your firmware all up to date? Are you running 2022 VSCode?

I updated all firmware and I am running the latest vs code. Here is the github link https://github.com/sckzor/StevenTheGreat

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