|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#10
|
||||
|
||||
|
Re: Modular Autonomous?
I agree with the posters above: modular code is what makes object-oriented code as powerful and elegant as it is. My philosophy is that if you're copy and pasting code everywhere, you haven't created enough methods/function/subroutines/whatever-they're-called. Our autonomous code looks like:
DriveSequence(); drive(-0.25,0); Timer.delay(0.2); drive(0,0); turn(a,b); fire(); If I had more time, I would've put this in a method of its own: drive(-0.25,0); Timer.delay(0.2); drive(0,0); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: Modular Ramp | TheOtherGuy | Extra Discussion | 2 | 19-02-2007 11:52 |
| pic: Installing a modular transmission | Wayne C. | Extra Discussion | 12 | 16-09-2006 23:10 |
| Modular Robot | Jeff Rodriguez | Chit-Chat | 0 | 12-04-2005 14:08 |
| Modular Bots?? | BBFIRSTCHICK | General Forum | 21 | 11-01-2003 04:45 |
| Modular Designs | archiver | 2001 | 6 | 24-06-2002 00:43 |