Go to Post Last I looked, FIRST wasn't an acronym for inspiration and recognition of robots. It was and is an acronym for inspiration and recognition of science and technology. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 10-30-2016, 10:00 PM
Roth So Roth So is offline
Registered User
FRC #0086
 
Join Date: Oct 2016
Location: Jacksonville, FL
Posts: 2
Roth So is an unknown quantity at this point
Deploy to a legacy cRIO from our new IDEs (Eclipse/IDEA)?

Hi! Our team today successfully resurrected the ole' 2014 robot. The cRIO fortunately still had code in it, so we didn't have to deploy it again.

However, we likely will need to modify the code soon (to practice), which means we will have to find a way to deploy it. After some researching, my understanding is that the only way to deploy Java code to the cRIO is through the Netbeans plugins.

I would ideally like to keep both our current IDEs and the cRIO. But if I understand correctly, this means we now face a conundrum:
  • If we want to keep the cRIO, we must use Netbeans
  • If we want to keep our IDE, we must use the roboRIO

Seems odd. Am missing something here? Is it true there is no good way to deploy Java code to the old cRIO from Eclipse or IntelliJ? If so, would we also face compatibility issues in using the latest WPILib?

At this point, I'm considering we instead snag a roboRIO from another robot and then use GradleRIO to deploy from IntelliJ for a truly "fresh" start that better mimics our environment this upcoming season. We would also be able to use the new latest WPILib. However, I can't justify this action; it feels wrong to suggest this is the only course of action when I'm not entirely sure it is.

Thanks in advance for any help here!
Reply With Quote
  #2   Spotlight this post!  
Unread 10-31-2016, 08:46 AM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,697
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Deploy to a legacy cRIO from our new IDEs (Eclipse/IDEA)?

The older cRIO used a different Java implementation (utilizing Squawk VM) so you have to use the older matching Java and WPILib versions: http://wpilib.screenstepslive.com/s/...elopment-tools
If you want to closely emulate the current control system, especially the current capabilities, a roboRIO is a better bet.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 10-31-2016 at 08:51 AM.
Reply With Quote
  #3   Spotlight this post!  
Unread 10-31-2016, 07:40 PM
Roth So Roth So is offline
Registered User
FRC #0086
 
Join Date: Oct 2016
Location: Jacksonville, FL
Posts: 2
Roth So is an unknown quantity at this point
Re: Deploy to a legacy cRIO from our new IDEs (Eclipse/IDEA)?

Oh, okay. That all makes sense, thank you for the insight! We'll get going with our migration to the roboRIO then.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-31-2016, 08:29 PM
krieck's Avatar
krieck krieck is offline
Registered User
AKA: Keith
FRC #2846 (Firebears)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Minnesota
Posts: 49
krieck is an unknown quantity at this point
Re: Deploy to a legacy cRIO from our new IDEs (Eclipse/IDEA)?

We were able to deploy from Eclipse to the cRIO last year. The wpilib build tool is based on ant, so it runs directly inside eclipse, no problems. You will need the cRIO version of wpilib, however.

You'll need to tweak your .sunspotfrc.properties file to have the path of the old wpilib directory, as well as the remote address of your robot. When building from ant, you'll need to specify the remote address as a system property: e.g. -Dremoteaddress=10.te.am.2

When deploying, the ant build script will FTP your code onto the remote address.
Reply With Quote
  #5   Spotlight this post!  
Unread 10-31-2016, 09:30 PM
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is offline
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 2,547
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: Deploy to a legacy cRIO from our new IDEs (Eclipse/IDEA)?

Quote:
Originally Posted by krieck View Post
We were able to deploy from Eclipse to the cRIO last year. The wpilib build tool is based on ant, so it runs directly inside eclipse, no problems. You will need the cRIO version of wpilib, however.

You'll need to tweak your .sunspotfrc.properties file to have the path of the old wpilib directory, as well as the remote address of your robot. When building from ant, you'll need to specify the remote address as a system property: e.g. -Dremoteaddress=10.te.am.2

When deploying, the ant build script will FTP your code onto the remote address.
This is cool, if you wrote up a guide for this, I think a lot of teams would be thankful.
__________________

Team 647 | Cyber Wolf Corps | Alumni | 2003-2006 | Shoemaker HS
Team 2587 | DiscoBots | Mentor | 2008-2011 | Rice University / Houston Food Bank
Team 3847 | Spectrum | Coach | 2012-20... | St Agnes Academy
LRI | Alamo Regional | 2014-20...
"Competition has been shown to be useful up to a certain point and no further, but cooperation, which is the thing we must strive for today, begins where competition leaves off." - Franklin D. Roosevelt
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 08:39 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