View Single Post
  #3   Spotlight this post!  
Unread 16-02-2004, 19:50
Venkatesh Venkatesh is offline
Registered User
FRC #0030
 
Join Date: Jan 2003
Rookie Year: 2002
Location: USA
Posts: 260
Venkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to behold
Re: Autonomous Program Names

#define GREAT mao

mao()
{

LEAP_FORWARD(GREAT);
}

____________________________________________

The above segment is definately going to be in our code. I think we might have the LEAP_FORWARD function contain all the critical code for driving, and have main() call mao(). Something like that.

Another segment from our code so far:

#define ONE 2
#define TWO 3

IF (ONE != TWO) { /* Main loop goes here */ }

And a freshman on our team has written these lines:

RETURN_OF_THE_EVIL_MENTALLY_DISTURBED_TAX_COLLECTI NG_POTATO_CARROT_HYBRID = 0;

and

#define OUCH pain
#define unneeded_variable NULL /* This should upset the compiler*/
#define GEORGE BUSH
#define AL GORE
#define BILL CLINTON
#define LYNDON LAROUCHE
#define I_AM NOT_DRINKING_SODA
#define YOU_WILL DELETE_MOST_OF_THESE_VARIABLES
#define DEAN HOWARD


___________________

If the code has personality, all is well.

Seriously, all our code is well commented and human readable, except the code in our interrupts. That code is as fast as possible (to the point where it requires at least 2 people working at it to understand it, but it is three lines long)

And our line-tracking code is exactly 2 lines long. =)
__________________
-- vs, me@acm.jhu.edu
Mentor, Team 1719, 2007
Team 30, 2002-2005