![]() |
Driver Station No Robot Code Connection Error
Hello everyone! We are having trouble with the FRC Driver Station. We deploy our code from Eclipse which builds fine, but then when we go to the driver station it shows red on "code connection". We cannot enable the robot to test our code. We have tried pushing older code that we know works from Github but it still isn't working. Has anyone had this problem before and what can we do?
|
Re: Driver Station No Robot Code Connection Error
This is most likely because your code is crashing directly on boot. Check the log (RioLog) and see if it has an error. If it doesn't, there's must be an issue with deploying the code. SSH into the rio and make sure that the executable is actually on the Rio.
|
Re: Driver Station No Robot Code Connection Error
We are using Windows 7 to talk to the roborio. What's the easiest way to use SSH on this system? Thank you!
|
Re: Driver Station No Robot Code Connection Error
We are able to ssh into the roborio. Where are the executable and the log file located? Thank you!
|
Re: Driver Station No Robot Code Connection Error
One of the easiest ways to ssh into the RoboRIO would be to download PuTTY. This SSH client works on Windows, as well as other operating systems. Make sure you are connected to the RoboRIO network, and then input the robot hostname (RoboRIO-[your team number without leading zeroes]-FRC.local). For example, your hostname would be RoboRIO-5975-FRC.local.
On another note, have you renamed the Robot class? Another reason why the driver station may be providing the error of "No Robot Code" could be that you renamed the main Robot class without updating the build.properties file. |
Re: Driver Station No Robot Code Connection Error
We are logged in as admin. Do we need to be logged in as root to see the Riolog and the executable? We ask a lot of questions (and appreciate the answers)
|
Re: Driver Station No Robot Code Connection Error
You should not need to be logged in as root to see the executable, admin is fine. To ensure that the executable is in place, type the command "ls /home/lvuser" and see if a file called "FRCUserProgram.jar" (if you are using Java) is in the list of filenames outputted. If you are using c++, I assume the user program would be called FRCUserProgram or something similar, but I am not entirely sure.
To check the RioLog, the simplest way would be to look at the right side of the driver station. |
Re: Driver Station No Robot Code Connection Error
Quote:
|
Re: Driver Station No Robot Code Connection Error
The build.properties file is on the top level of the package hierarchy in eclipse. It should appear under the folders labeled "build" and "dist".
|
Re: Driver Station No Robot Code Connection Error
Quote:
Flie Edit Source Refactor Navigate Search Project WPIlib Run Window Help We are confused - where do we find the package hierarchy/folders labeled "build" and "dist"? Thank you |
Re: Driver Station No Robot Code Connection Error
Unless you have changed your eclipse layout, you should have a tab on the lefthand side of your eclipse window labelled "Package Explorer". In that view, you can see all of your Java projects. Click on the project you want to check, and it should expand so you can now see the files and folders in the project. Check there for the build.properties file.
|
Re: Driver Station No Robot Code Connection Error
Quote:
robot.class=${package}.Robot This is what we have in our robot.java file package org.usfirst.frc.team5975.robot; public class Robot extends IterativeRobot |
Re: Driver Station No Robot Code Connection Error
Quote:
|
Re: Driver Station No Robot Code Connection Error
Quote:
|
Re: Driver Station No Robot Code Connection Error
It could be due to mapping multiple objects to the same port. For example using the same PCM port twice in the initialization of a solenoid.
|
| All times are GMT -5. The time now is 09:54. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi