![]() |
Java Code Deploying Help
Hey CD
we have recently decided to use Java to code our robot. but here we have a problem: everytime we build/deploy the code in Netbeans we get the following message Waiting to Connect to OTA command server of 10.21.85.2:8001 for the past 10 sec this message keeps going on and never stops Would you please help us and tell us what should so or what we did wrong |
Re: Java Code Deploying Help
Netbeans deploys code by FTPing it into your cRIO. My guess is that you aren't making the network connection into the robot.
The first thing to check is whether your Netbeans is configured with your team number, since that will determine what IP address it's trying to connect to. Open the Netbeans preferences dialog and select Miscellaneous / FRC configuration to set it. Next check that your computer is on the correct subnet for the cRIO. The subnet IP addresses are based on your team number. If you open a command window, you should be able to "ping" or "ftp" straight to the cRIO. This will help diagnosing network problems. |
Re: Java Code Deploying Help
Are you sure that the robot is connected properly to your computer/laptop? If connecting times out, that probably means that it is not connected right. Make sure you've set the IP correctly.
|
Re: Java Code Deploying Help
Thanks very much, we fixed that problem but now a new message pops up.
This time when we deploy the code: if does everything but it gets stuck on this line: Code:
[cRIO] GCs: 1 full, 0 partialCould you please help me solve this issue |
Re: Java Code Deploying Help
Quote:
Code:
System.exit(1); |
Re: Java Code Deploying Help
Quote:
The way we deployed the code, was basically connected to our cRIO using a direct ethernet cable, we opened the Driver Station program and it showed us that we had communication. Then we opened netbeans and pressed the green play button to deploy the code. It did all the stuff it shoudl (built the project, downloaded it, rebooted the cRIO) and then it stops at the line that i posted before. I am not sure if this is a programming issue or electrical issue. and also if it would be helpful, i can post my code in this thread |
Re: Java Code Deploying Help
Quote:
|
Re: Java Code Deploying Help
sure here it is:
Code:
package team2185.code.exhibtionCode; |
Re: Java Code Deploying Help
That code looks all right. Not sure of your intentions for it (A button to go full speed?), but from an error standpoint, it looks all good. If I were you, I'd reimage the CRIO and possibly reinstall the FRC plugins (Maybe compiling is going wrong and the bytecode won't run).
|
Re: Java Code Deploying Help
Okay, I did that and I will try that out tmw in school.
Also is any other advice you can give me |
Re: Java Code Deploying Help
In this :
Code:
public void teleopPeriodic() {Code:
public void teleopPeriodic() { |
Re: Java Code Deploying Help
I meant some advice that would help me to deloy the code. Could you like tell me how teams deploy the code and what should the ip address be of the pc and crio
|
Re: Java Code Deploying Help
Okay never mind
I got the robot running. Thanks for all your help, i really appreciate it And also i will looking forward to see ur team at GTR West and east |
Re: Java Code Deploying Help
Quote:
Quote:
|
| All times are GMT -5. The time now is 09:01 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi