Go to Post The battery will be mounted at the top, correct? There can be no other way. - Travis Hoffman [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 09-01-2017, 14:24
stiny861 stiny861 is offline
Registered User
FRC #3055
 
Join Date: Jan 2017
Location: Austin, MN
Posts: 4
stiny861 is an unknown quantity at this point
Connecting Eclipse to Github

Hello there.

This is my first year as the primary programming mentor for our team. I am trying to figure out a way to get our code linked up with Github through eclipse so all team members can work on the codebase. I was able to attach a standard GIT repo in eclipse with a previous years robot code, but that code is not deployable to the robot. I'm sure I am missing something somewhere. I can successfully create a new WPILIB project and properly build and deploy the code to the roborio, but how to link the 2 processes together, is escaping me. Any assistance would be much appreciated.

Thank you in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 09-01-2017, 15:08
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Connecting Eclipse to Github

What are the errors with the old project? Each year, there are a few breaking changes to wpilib and you may have run into one of them. They are documented on screensteps.

2017: http://wpilib.screenstepslive.com/s/...8-new-for-2017
2016: http://wpilib.screenstepslive.com/s/...e-2015-to-2016
2015: http://wpilib.screenstepslive.com/s/...e-2014-to-2015
Reply With Quote
  #3   Spotlight this post!  
Unread 09-01-2017, 15:36
stiny861 stiny861 is offline
Registered User
FRC #3055
 
Join Date: Jan 2017
Location: Austin, MN
Posts: 4
stiny861 is an unknown quantity at this point
Re: Connecting Eclipse to Github

I am not really getting errors, what the issue is, when I imported the old code as a GIT project, I do not have the options under Run As to do a WPILIB C++ Deploy to flash the code to the robot.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-01-2017, 09:18
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 361
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Connecting Eclipse to Github

Manually edit .project and under <natures> add this:

Code:
<nature>edu.wpi.first.wpilib.plugins.core.nature.FRCProjectNature</nature>
That lets the WPILib plugin know your project is a robot project so it can add the menu items.

Example

Edit: I realized that I assumed you have the WPILib Eclipse plugin installed. If not, go install the plugin
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #5   Spotlight this post!  
Unread 11-01-2017, 09:50
stiny861 stiny861 is offline
Registered User
FRC #3055
 
Join Date: Jan 2017
Location: Austin, MN
Posts: 4
stiny861 is an unknown quantity at this point
Re: Connecting Eclipse to Github

I was able to figure it out. Turns out I was going about it backwards. I was trying to directly import a Git project, which in this case was last years code, and then somehow convert it to a WPIlib project. You actually need to do it the other way around. Create the WPIlib project, then under the Team section of the project, create a repository and then link that repo to github. Works like a dream now. I can give more precise instructions if anyone is interested.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-01-2017, 10:04
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 361
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Connecting Eclipse to Github

Quote:
Originally Posted by stiny861 View Post
I was able to figure it out. Turns out I was going about it backwards. I was trying to directly import a Git project, which in this case was last years code, and then somehow convert it to a WPIlib project. You actually need to do it the other way around. Create the WPIlib project, then under the Team section of the project, create a repository and then link that repo to github. Works like a dream now. I can give more precise instructions if anyone is interested.
We've never needed to jump through hoops like that to get a project imported. I wonder why it needs to be like that for you.
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #7   Spotlight this post!  
Unread 11-01-2017, 10:10
stiny861 stiny861 is offline
Registered User
FRC #3055
 
Join Date: Jan 2017
Location: Austin, MN
Posts: 4
stiny861 is an unknown quantity at this point
Re: Connecting Eclipse to Github

I have a feeling it was because of the nature of eclipse. When you import a project directly from a Git repo, it is only going to pull what was in that repo. I did not have the ability to do a reindex or anything like that to even add in the includes. I think it is intended for fully self-contained codesets that do not include any additional components on your computer, which in this case was the WPIlib 2017 code. I had to simply reverse the process and start as a wpilib codeset, then add the repo onto it to update the needed files. In this case, we don't need to include the includes as it is a needed prereq to even work with the code in the first place.
Reply With Quote
  #8   Spotlight this post!  
Unread 11-01-2017, 10:10
bobbysq bobbysq is offline
Registered User
FRC #4646 (Team ASAP)
Team Role: Leadership
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Des Moines, IA
Posts: 300
bobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud of
Re: Connecting Eclipse to Github

Quote:
Originally Posted by euhlmann View Post
We've never needed to jump through hoops like that to get a project imported. I wonder why it needs to be like that for you.
I've also always had to make a new project and then import it. Maybe it's because we .gitignore most IDE files?
Reply With Quote
  #9   Spotlight this post!  
Unread 11-01-2017, 11:25
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 361
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Connecting Eclipse to Github

Quote:
Originally Posted by bobbysq View Post
I've also always had to make a new project and then import it. Maybe it's because we .gitignore most IDE files?
That's a good point. Don't gitignore .project or .classpath or .cproject
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
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 13:59.

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