Help with the code

Hey guys, I have a problem with my code based on commands, when the code is executed together with the FMS, the roborio is crashing, when I run the code connected directly to the robot, no error appears, I believe that in some disable method, they could give a look?

teste.zip (58.5 MB)

Your file looks to be corrupt. Could you post it to GitHub or GitLabs?
My computer was being weird.

One thing I notice is that you’re setting alliance colour using a SendableChooser when you could be calling DriverStation.getInstance().getAlliance(). Edit: This is unlikely to be the cause of your problem.

Can you reproduce the problem using “test” mode? Does the problem happen with all autos or just one?

If you could find the rioLog file from when your code crashed while connected to the FMS, it probably would indicate what went wrong.

I know you said there were no errors. But just to confirm, have you looked at the docs on where to look for errors, and how to interpret them?

Have you tried running “Practice” mode in the DS? This runs autonomous mode, followed by teleop mode, just like a real match, and can help discover code issues related to transitions between auto and teleop.

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