SwerveDriveSpecialties / Do-not-use-swerve-template-2021-unmaintained

Do not use - Old Template code for SDS MK3, MK4, and MK4i modules
Other
62 stars 74 forks source link

I have error codes that I do not know how to fix. #5

Open JoshuaBuker opened 2 years ago

JoshuaBuker commented 2 years ago

I am very new to this and am having issues deploying code. This is what I am getting.

ERROR  4  [CAN SPARK MAX] WPILib or External HAL Error: CAN: Message not found   ERROR  1  Unhandled exception: java.lang.RuntimeException: Failed to enable voltage compensation: kHALError  com.swervedrivespecialties.swervelib.rev.RevUtils.checkNeoError(RevUtils.java:10)  ERROR  1  The startCompetition() method (or methods called by it) should have handled the exception above.  edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:352)  Warning at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:350): Robots should not quit, but yours did!  ERROR  5  [CAN SPARK MAX] Unable to retrieve SPARK MAX firmware version for CAN ID: 27. Please verify the deviceID field matches the configured CAN ID of the controller, and that the controller is connected to the CAN Bus.   ERROR  4  [CAN SPARK MAX] WPILib or External HAL Error: CAN: Message not found   ERROR  1  Unhandled exception: java.lang.RuntimeException: Failed to enable voltage compensation: kHALError  com.swervedrivespecialties.swervelib.rev.RevUtils.checkNeoError(RevUtils.java:10)  ERROR  1  The startCompetition() method (or methods called by it) should have handled the exception above.  edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:352)  Warning at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:350): Robots should not quit, but yours did! 

Warning at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:350): Robots should not quit, but yours did!  ERROR  1  The startCompetition() method (or methods called by it) should have handled the exception above.  edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:352)  ERROR  5  [CAN SPARK MAX] Unable to retrieve SPARK MAX firmware version for CAN ID: 27. Please verify the deviceID field matches the configured CAN ID of the controller, and that the controller is connected to the CAN Bus.   ERROR  4  [CAN SPARK MAX] WPILib or External HAL Error: CAN: Message not found   ERROR  1  Unhandled exception: java.lang.RuntimeException: Failed to enable voltage compensation: kHALError  com.swervedrivespecialties.swervelib.rev.RevUtils.checkNeoError(RevUtils.java:10)  Warning at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:350): Robots should not quit, but yours did!  ERROR  1  The startCompetition() method (or methods called by it) should have handled the exception above.  edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:352) 

 

jasondaming commented 2 years ago

Do all of your SPARK MAXs have device ids? Are all of those ids properly set per step 5 of the readme?

JoshuaBuker commented 2 years ago

Yes, I went through and connected to each one with the Rev Spark Client and they all have IDs and I changed the constants for each thing to the correct ID.

jasondaming commented 2 years ago

What is CAN ID 27? Can you double check it?

JoshuaBuker commented 2 years ago

CAN ID 27 is our Left Front Drive motor. Checked it in the Rev Client. However, we found out that the sodering on the CANCoders are screwed up, So we are in the process of fixing them. In Phoenix tuner only 1 cancoder shows up, so we are thinking that these things are the issue.