Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JoshuaBuker opened this issue Dec 3, 2021 · 4 comments
Open

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

JoshuaBuker opened this issue Dec 3, 2021 · 4 comments

Comments

@JoshuaBuker
Copy link

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
Copy link

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

@JoshuaBuker
Copy link
Author

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
Copy link

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

@JoshuaBuker
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants