Go to Post you might want to consider the Edu-Robo-Whatevertheheckitscalled RC - Matt Krass [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-09-2015, 06:54 PM
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Deploying Code/Connection Problems

Hey everyone. There is actually 2 separate issues here.

We are having a few different problems when trying to deploy code to the roboRIO.

The first issue we are having, is that Eclipse will suddenly "forget" (for lack of a better term) how to deploy code. We have been using one laptop, and it worked one day. Right click on the project > Run as > WPILib C++ Deploy.

That worked great, once or twice. Then we would change a few things, build the program, and attempt to download the code again. However, this time, the option for WPILib C++ Deploy is gone. The only option is "Run Configurations...". On another computer, it went from saying WPILib C++ Deploy, to WPILib Java Deploy. We can't figure out how to bring them back, without uninstalling and reinstalling Eclipse.

A separate issue we have, is connecting to the roboRIO:
At one point, about 5 days ago, I was able to connect to the roboRIO over USB, image it, and deploy code. We could then open the Driver Station, and test the code, it worked perfectly. We configured the wireless router, was able to connect wirelessly, and it still worked.

Then today, we tried to connect to it, to configure the CAN. I connected over USB, went to http://172.22.11.2/ and everything worked perfectly. Then I was able to successfully build and compile the code for CANTalons. But when I tried to deploy it, (still over USB), nothing happened, Eclipse wouldn't progress past this message:

Code:
Buildfile: C:\Users\MatthewBrown\workspace2\CAN Talon SRX\build.xml
Trying to override old definition of task classloader
get-target-ip:
     [echo] Trying Target: roboRIO-1771.local
We tried a different computer, one that has previously been able to deploy code over USB, and received an error message, saying it couldn't find any valid roboRIO targets, over USB or Wirelessly. (I don't know the exact error message, but it was very similar to that).
However, I know the computer can see the roboRIO, because it found it on the imaging tool! The team number is correctly set in Eclipse.

So we tried connecting to it wirelessly, and deploy code, and had the same error message.

It's very frustrating, especially because we were able to previously deploy code.

If anyone has any idea, that'd be great. Thanks!
__________________
1771- Programmer, Captain, Drive Team (2009-2012)
4509- Mentor (2013-2015)
1771- Mentor (2015)
Reply With Quote
  #2   Spotlight this post!  
Unread 01-09-2015, 08:19 PM
TechWarlock TechWarlock is offline
Programming Dude
AKA: Jacob
FRC #1396 (Pyrobots)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2011
Location: New York
Posts: 24
TechWarlock is an unknown quantity at this point
Re: Deploying Code/Connection Problems

When doing it wirelessly are you able to access the roboRIO by typing
roboRIO-1771.local\ into your browsers address bar
Reply With Quote
  #3   Spotlight this post!  
Unread 01-09-2015, 08:34 PM
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Deploying Code/Connection Problems

Quote:
Originally Posted by TechWarlock View Post
When doing it wirelessly are you able to access the roboRIO by typing
roboRIO-1771.local\ into your browsers address bar
That is something I will have to check in the morning.
__________________
1771- Programmer, Captain, Drive Team (2009-2012)
4509- Mentor (2013-2015)
1771- Mentor (2015)
Reply With Quote
  #4   Spotlight this post!  
Unread 01-09-2015, 10:27 PM
TechWarlock TechWarlock is offline
Programming Dude
AKA: Jacob
FRC #1396 (Pyrobots)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2011
Location: New York
Posts: 24
TechWarlock is an unknown quantity at this point
Re: Deploying Code/Connection Problems

As far as i know thats an easy test to see if its working also when checking it wirelessly you can ping 10.xx.xx.22-99 where xx.xx is your team number and 22-99 is just a random number
Reply With Quote
  #5   Spotlight this post!  
Unread 01-10-2015, 11:16 AM
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 587
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Deploying Code/Connection Problems

Quote:
Originally Posted by nighterfighter View Post
The first issue we are having, is that Eclipse will suddenly "forget" (for lack of a better term) how to deploy code. We have been using one laptop, and it worked one day. Right click on the project > Run as > WPILib C++ Deploy.

That worked great, once or twice. Then we would change a few things, build the program, and attempt to download the code again. However, this time, the option for WPILib C++ Deploy is gone. The only option is "Run Configurations...". On another computer, it went from saying WPILib C++ Deploy, to WPILib Java Deploy. We can't figure out how to bring them back, without uninstalling and reinstalling Eclipse.
There's a bug in something in Eclipse that we haven't been able to track down that happens most often when switching between a Java project and a C++ project. Two suggestions: first, make sure that you have the C++ perspective enabled (top right corner of the eclipse window), and second, restarting eclipse usually makes it remember again that the project is a C++ project and you'll see those options come back.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #6   Spotlight this post!  
Unread 01-10-2015, 02:00 PM
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Deploying Code/Connection Problems

Quote:
Originally Posted by BradAMiller View Post
There's a bug in something in Eclipse that we haven't been able to track down that happens most often when switching between a Java project and a C++ project. Two suggestions: first, make sure that you have the C++ perspective enabled (top right corner of the eclipse window), and second, restarting eclipse usually makes it remember again that the project is a C++ project and you'll see those options come back.
Thanks. When we encountered that error yesterday, the student hadn't switched to a Java project, it just disappeared. But he reinstalled Eclipse over night, and it seems to be working now.

Everything is working correctly now, I can download code wirelessly or over USB. The only thing I did was reinstall all the FRC Utilities (Driver Station, imaging tool, etc.) and now I am able to connect with no issues.
__________________
1771- Programmer, Captain, Drive Team (2009-2012)
4509- Mentor (2013-2015)
1771- Mentor (2015)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:55 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi