View Single Post
  #28   Spotlight this post!  
Unread 05-02-2005, 15:10
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

Quote:
Originally Posted by Eria4044
Could you write a code that's something like this: robot.kill(slackers)
I'd love that.
Code:
function kill (object target){
static unsigned const COLOR = Green;  //you must enter the color of the target's shirt

driveTowardsTarget(COLOR);
impale();
}

function impale(){
pwm11 = 254;  //extend arm with highest speed
}
Reply With Quote