Hello, I’m on team 1075 and I’m relatively new to programming. I’m having some trouble when uploading code from eclipse to the roboRIO.
Whenever I run the code to the rio nothing appears in the console and no code gets uploaded to the rio. (BTW I’m coding in Java)
If anyone could help that would be great. Thanks!
Is the console providing you an error?
No error appears. It opens the console and stays blank.
Are you sending anything to the smartDashboard?
Last year my team ran into the same problem. We ended up finding that trying to put anything on the smartDashboard outside of a method would send the code to the roborio, but the driver station would say there is no robot code.
Definitely go over your code and make sure that smartDashboard/liveWindowSendable code is within a method.
Hope this helps!
Have you made sure that you are running the selected robot program and not some other program in Eclipse?
I have run an the issue before where if I click the run button at the top of the window Eclipse runs some other program in my workspace. To fix this issue, when you want to run your robot program, right click on your robot program and select run from that menu.
We aren’t sending anything to the SmartDashboard outside of a method. We are also deploying the correct build. I tried creating a clean build with the same code but we still get the same problem.
Another coder on our team looked into it and we figured that the build.xml file was being changed which prevented it from being deployed. We fixed the problem by replacing the faulty xml file with a working one from a previous year.
Thank you guys for the help. I hope this can help other people that have the same problem.