View Single Post
  #18   Spotlight this post!  
Unread 03-02-2005, 16:48
Fixen Fixen is offline
The Sleepless Coder
FRC #0423 (Mechanical Mayhem)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Cheltenham, PA
Posts: 67
Fixen is on a distinguished road
Re: Robot Test - Failure

Required materials:
P-235
C4 charges

AUTONOMOUS CODE
====
static unsigned int t;
static unsigned int r;
hackerModule.disable("competition_system");
hackerModule.disable("E_stop_buttons");
if(t < 15){
beep();
speaker.say("DIE, NOOBS!");
t++;
}
if(r < 500){
pwm01 = 254;
pwm02 = 0;
}
if(r == 500){
arm.pickup(opponentRobot_1);
shoot(toxicWaste);
arm.throw();
arm.pickup(opponentRobot_2);
explodeC4();
}
Putdata(&txdata);

Last edited by Fixen : 03-02-2005 at 16:53.
Reply With Quote