|
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.
|