Go to Post You know you've overdosed on FIRST when you set your alarm clock to your team # ex: 9:32 - bladetech932 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-01-2013, 05:08
Michael_Lee Michael_Lee is offline
Registered User
FRC #2976
 
Join Date: Jan 2012
Location: Issaquah, WA
Posts: 21
Michael_Lee is an unknown quantity at this point
Tool to easily deploy code, for non-programmers

This is sort of a follow-up from this post:
http://www.chiefdelphi.com/forums/sh...d.php?t=110219

So, several of our non-programmers had difficulty learning how to compile and deploy code to the robot. I decided to try writing a small program that tries to simplify compiling and deploying code as much as possible.

It basically downloads the latest source code from an SVN repository (or if there's a folder called "source" in the same folder as the exe, it uses the code from that instead), compiles it, configures the ip address of the computer, and transfers the compiled program via ftp to the robot.

I tried to make it as simple as possible: once you set up the options, it should just be a matter of opening the program and clicking a single button.

Limitations:
It's for C++ only, and any computer that uses this needs to have WindRiver installed. It also only works on Windows. It's set up to download code from an SVN repository only, since that's what my team uses, but you can circumvent that by placing your source code inside a folder called "source", as I stated above.

The source code also needs to be a WindRiver project (it has the `.wrmakefile` files in it and such).

I'm still in the process of testing it, but I thought I'd post what I have now in case somebody finds it useful. Feedback is appreciated!

Link: (source code and exe included)
http://www.filedropper.com/one-click-deployr4
  #2   Spotlight this post!  
Unread 03-01-2013, 09:19
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Tool to easily deploy code, for non-programmers

Seems unnecessary.

Once your programming laptop is set up, its just a matter of going to FIRST>Deploy (or whatever that option is called) in WindRiver. Its ALREADY a two-click solution.
  #3   Spotlight this post!  
Unread 03-01-2013, 11:29
nathan_hui nathan_hui is offline
Registered User
AKA: Nathan Hui
FRC #2473 (CHS Robotics)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2009
Location: Cupertino, CA
Posts: 228
nathan_hui will become famous soon enoughnathan_hui will become famous soon enough
Send a message via AIM to nathan_hui
Re: Tool to easily deploy code, for non-programmers

True, except for the programmers who've got multiple projects lying around (on the hard drive) and we mechies have no idea which project is what or even that we're deploying the right version of code. Especially when our team has the software guys write test/utility code separately from the main code to test our systems.
  #4   Spotlight this post!  
Unread 03-01-2013, 12:08
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Tool to easily deploy code, for non-programmers

Quote:
Originally Posted by 1075guy View Post
Seems unnecessary.

Once your programming laptop is set up, its just a matter of going to FIRST>Deploy (or whatever that option is called) in WindRiver. Its ALREADY a two-click solution.
Same with Java, though I use git bash anyway.
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
  #5   Spotlight this post!  
Unread 11-01-2013, 13:37
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
Re: Tool to easily deploy code, for non-programmers

Quote:
Originally Posted by nathan_hui View Post
True, except for the programmers who've got multiple projects lying around (on the hard drive) and we mechies have no idea which project is what or even that we're deploying the right version of code. Especially when our team has the software guys write test/utility code separately from the main code to test our systems.
Then that's a different problem, and one that won't be solved by any number of "simple programs" or gui solutions. This program that he wrote still requires you to know which code base you want to deploy. Why are non-programers deploying code anyway? Any code that non-programmers would need to use should already be on the bot (and if its not there's probably something wrong anyway.)
__________________
Proud alum of CORE 2062.
www.core2062.com
  #6   Spotlight this post!  
Unread 12-01-2013, 18:57
nathan_hui nathan_hui is offline
Registered User
AKA: Nathan Hui
FRC #2473 (CHS Robotics)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2009
Location: Cupertino, CA
Posts: 228
nathan_hui will become famous soon enoughnathan_hui will become famous soon enough
Send a message via AIM to nathan_hui
Re: Tool to easily deploy code, for non-programmers

We actually have our software team split up into subsystem teams, who write multiple pieces of code (hardware test code, prototype code, subsystem code, and manual diagnostic code). Unless there is a way of maintaining multiple programs on the cRIO (which I'm not aware there is, unless you write a big umbrella program as a program chooser, or maybe there is)... And we had a naming scheme for the projects and we're finally doing documentation (last I checked, which was a while ago), so non-programmers (and programmers from another system) know what's going on.
__________________
Nathan Hui
B.S. Electrical Engineering, UCSD '16
FRC 2473 (CHS Robotics), Team Captain '12
FTC 4950, 6038

Last edited by nathan_hui : 12-01-2013 at 18:59.
Closed Thread


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 02:13.

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