Go to Post Will.I.Am is not FIRST. - BrendanB [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 02-14-2014, 11:13 PM
xTezzie's Avatar
xTezzie xTezzie is offline
Registered User
FRC #4940
 
Join Date: Jan 2014
Location: Canada
Posts: 4
xTezzie is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 02-15-2014, 02:14 PM
1024Programming 1024Programming is offline
Registered User
FRC #1024
 
Join Date: Jan 2014
Location: Indiana
Posts: 43
1024Programming is an unknown quantity at this point
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...
Reply With Quote
  #3   Spotlight this post!  
Unread 03-02-2014, 08:55 PM
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
Re: Autonomous backup solution?

Quote:
Originally Posted by xTezzie View Post
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!
__________________
2015-2016 CSA
Software Engineering Student @ Johnson & Wales University
Team 228, Gus Robotics Inc.
Facebook
FLL Mentor for 1107, Edison Eagles!
2015- CT State Champions
2012- WPI Finalist(Thanks 1884 and 549), Spirt, Best Website
2011- WPI Chairman's award winners!
2010- WPI Champions! (thanks 230 & 20), WPI Engineering Inspiration, CT Best Website, CT VEX Champions (VRC228, VRC228b) (21-1-0)
2009- QCC VEX Champions (VRC228) (11-0-0), Innovate Award (VRC228)
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:54 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