Almost every time we turn our roborio on, our robot doesn’t have robot code.
We already tried re-imaging the roborio but it didn’t seem to work
Is your code crashing?
What is the output on the DriverStation console, or if you’re using VS Code, start the Rio log and see what is in the console output.
You need to give us a lot more information in order to help you. It’s very rare for reimaging to fix a no robot code issue; it’s almost certainly a bug in your code. Without seeing your code, we have nothing to go on other than wild guessing. Post your code somewhere public (like github) and link to it. Share if there are any error messages coming up in the DS console, etc.
No it aint crashing, it works and everything is good but when we turn it off and on, we need to upload it again
When the roborio boots back up, try connecting to it via SSH and seeing if your robot program is running.
If the robot code is not running, try running manually from the ssh shell and see what happens as far as output goes.
We will try it, thank you!
What language are you using?
Java
Are you actually doing a “Deploy Robot Code”?
See from WPILib:
Yes, once we upload the code the robot works