Command Based Programming Keeps Crashing

Hello All,
We have been trying to get our command based code to deploy with no luck this year. We started out with robot builder, and deployed our code. After deploying the “Robot Code” light on the drive station toggles from green to red every few seconds. I can only assume that it is our code crashing before robot init completes.
We then tried using the Command Based Template provided in VS Code and got the same result. I was wondering if a few of you wouldn’t mind being a second set of eyes to help us get up and running again.
Uploaded Code

1 Like

Can you bring up the FRC Driver Station console when the code crashes? This will give an idea of why the code is actually crashing.
In driver station, click the gear on the top right and then press view console. Just paste in the entire error message.

This is the only error we receive from the driver station console, we do have a controller connected.

  ********** Robot program starting ********** 
Warning  1  Joystick Button missing, check if all controllers are plugged in   
 Joystick Button missing, check if all controllers are plugged in

After making some adjustments here is the error we are receiving now.

********** Robot program starting ********** 
 NT: ERROR: bind() to port 1735 failed: Address already in use (TCPAcceptor.cpp:117) 
Warning  44003  FRC:  No robot code is currently running.  Driver Station 
Warning  1  Joystick Button missing, check if all controllers are plugged in   
 Joystick Button missing, check if all controllers are plugged in

I just wanted to follow up to say we weren’t able to resolve this with any method of generating our own code. I borrowed another teams code that didn’t crash and modified it. We are now back up and running.

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