Go to Post A coin flip is a wonderful thing. Not because it makes the decision for you, but because when the coin is in the air, you realize what you really want. - rtfgnow [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 19-09-2011, 14:29
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,506
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Get code from cRIO

Quote:
Originally Posted by Andrew Schreiber View Post
This post seems to come up every year... I strongly suggest throwing your code into a git repository (even LV code)and putting it on a free account at github or any of the other hosted SCM sites. Revision tracking AND backup all in one and it is free.
Highly recommend the same. It's amazing how many programmers don't apreciate the importance of version control.

Off topic, but if you use the two interpreted languages available, Python and Lua, you could ftp the code off
  #2   Spotlight this post!  
Unread 19-09-2011, 15:37
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,062
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Get code from cRIO

Quote:
Originally Posted by AdamHeard View Post
Highly recommend the same. It's amazing how many programmers don't apreciate the importance of version control.

Off topic, but if you use the two interpreted languages available, Python and Lua, you could ftp the code off

True, we are operating off the assumption that the OP did not use either of those languages. If it is incorrect and you DID use one of those the process Adam described above would work.


As for more details on SCM... the thread http://www.chiefdelphi.com/forums/sh....php?p=1073528 has a small discussion on it.

I can tell you when I start a project the first command I type is "git init" depending on what I'm doing I do I then push to a remote server (github usually). Works great for hw assignments too.
__________________




.
  #3   Spotlight this post!  
Unread 19-09-2011, 19:56
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Get code from cRIO

Well, if you just want to upload new code to try it out and then put the old code back on, you can just grab startup.rtexe off of it (I don't know if startup.alias is needed.)
  #4   Spotlight this post!  
Unread 19-09-2011, 23:16
mesamb1's Avatar
mesamb1 mesamb1 is offline
Registered User
AKA: Sam Bacon
FRC #1466 (Webb Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Knoxville
Posts: 93
mesamb1 is just really nicemesamb1 is just really nicemesamb1 is just really nicemesamb1 is just really nice
Re: Get code from cRIO

Creating a zip file of the folder of your code and uploading it to a folder on your teams website is another easy way to back up your code.
bobl, though I feel for your loss having done the same thing my self, this is a great opportunity to review coding in Java before the season starts. Not that saves you any time, but it is an awesome learning experience
  #5   Spotlight this post!  
Unread 20-09-2011, 00:08
~Cory~'s Avatar
~Cory~ ~Cory~ is offline
Student
AKA: Cory Rypkema
FRC #0706
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Worcester MA
Posts: 216
~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold
Re: Get code from cRIO

Slow your horses people. If you really really really want your code (and provided its in c++ or another one of the mentioned languages) You can "Somewhat" get the code from the cRIO. You can ftp and fecth the FRC_UserProgram.out file from the /ni-rt/system/ directory. This code can be be then decompiled using a tool such as ollydebug. This technique should be reserved for times when the amount of work to recreate what ever the old coder made is greater than about 10000000000000000 hours
__________________
corin.rypkema.org
WPI Class of '17
'12 Dean's List Finalist, Mentor of 706 - Cyberhawks
  #6   Spotlight this post!  
Unread 20-09-2011, 10:13
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Get code from cRIO

Quote:
Originally Posted by ~Cory~ View Post
This code can be be then decompiled using a tool such as ollydebug.
Ollydbg contains a disassembler, not a "decompiler". You can't get your original C++ code back.


  #7   Spotlight this post!  
Unread 20-09-2011, 10:42
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,567
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: Get code from cRIO

Quote:
Originally Posted by Ether View Post
Ollydbg contains a disassembler, not a "decompiler". You can't get your original C++ code back.
It also appears to be x86 only, which won't help you with the cRIO's ppc target.

Quote:
Originally Posted by mesamb1 View Post
Creating a zip file of the folder of your code and uploading it to a folder on your teams website is another easy way to back up your code.
Another option would be to use ftp to upload it to your robot.
  #8   Spotlight this post!  
Unread 20-09-2011, 17:47
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Get code from cRIO

Quote:
Originally Posted by Joe Ross View Post
Another option would be to use ftp to upload it to your robot.
Great idea! Also, let's put a compiler and an AI on it so it'll write its own code.
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 23:40.

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