View Single Post
  #4   Spotlight this post!  
Unread 12-03-2010, 00:05
Kyledoo Kyledoo is offline
Registered User
FRC #2603
 
Join Date: Jan 2010
Location: Ohio
Posts: 24
Kyledoo is an unknown quantity at this point
Re: switching turning direction using arcade drive?

Thanks for the great quick responses! I really can't believe i missed that now... but anyways, is anyone timing the release of pnumatics(we want to leave our kicker extended for a full second once we press the button). What makes most sense to me is to use a for loop, and possibly put this inside an if.
For example:
if(buttonpressed){
for(i = 0; i<10; i++){
// whole code
//feed watchdog
s1->Set(true);
Wait(.1);
}
}
any experiences with this? we basically have tomorrow morning to test all the code and make any necessary modifications so i'd just like to know what to expect. Also, would this concept work for restricting kicker movement after it retracts(so we don't get a penalty)?