![]() |
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 |
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... |
Re: Autonomous backup solution?
Quote:
|
| 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