Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Autonomous backup solution? (http://www.chiefdelphi.com/forums/showthread.php?t=126480)

xTezzie 14-02-2014 23:13

Autonomous backup solution?
 
So my teammates and I had written a code and messed up the cardinal rule of programming (always back your code up!). We were wondering if there was a way to retrieve it, or if we were just screwed and need to rewrite it, which is something we would like to avoid doing because we did it with a mentor and don't recall all of the important syntax surrounding it.

If we cannot recover it, (sad face) could someone give us some pointers in using autonomous to code..
Method 1: Jaguar backwards
Method 2: jaguar stopped
Method 3: upper and lower wheels sucking in
Method 4: upper and lower wheels stopped
Method 5: jaguar up
Method 6: jaguar stopped
Method 7: upper and lower wheels shooting outwards
Method 8: upper and lower stopped
Method 9: chassis drive forward

Obviously some of these can be at the same time.
Let us know!
Team 4940

1024Programming 15-02-2014 14:14

Re: Autonomous backup solution?
 
In CommandBase autonomous is pretty simple if you use command groups. You basically just write a list of the commands you'd like to use in the order you want to use them.

The two commands you use are:
addSequential(new Command(), timeout)
addParallel(new Command(), time out)
They each run the command for the amount of time

For Example:
addSequential(new JagsBackwards(),2);
addSequential(new JagsStop(),0);
addParallel(new UpperJagsIn(),2);
addParallel(new LowerJagsIn(),2);
etc...

ProgrammerMatt 02-03-2014 20:55

Re: Autonomous backup solution?
 
Quote:

Originally Posted by xTezzie (Post 1343348)
So my teammates and I had written a code and messed up the cardinal rule of programming (always back your code up!). We were wondering if there was a way to retrieve it, or if we were just screwed and need to rewrite it, which is something we would like to avoid doing because we did it with a mentor and don't recall all of the important syntax surrounding it.

If we cannot recover it, (sad face) could someone give us some pointers in using autonomous to code..
Method 1: Jaguar backwards
Method 2: jaguar stopped
Method 3: upper and lower wheels sucking in
Method 4: upper and lower wheels stopped
Method 5: jaguar up
Method 6: jaguar stopped
Method 7: upper and lower wheels shooting outwards
Method 8: upper and lower stopped
Method 9: chassis drive forward

Obviously some of these can be at the same time.
Let us know!
Team 4940

You should use GitHub. Netbeans supports it nativally and you can commit changes then if you mess up revert to a working copy, it even highlights code changes!


All times are GMT -5. The time now is 11:30.

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