View Single Post
  #1   Spotlight this post!  
Unread 14-02-2012, 23:20
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Timed While loop within Teleop

Hello -

I'm looking to drive a Drive motor for 1/8th of a second with the press of a Joystick button. So, here's what I've come up with.

Basically, checking to see if the button is pressed. If not, pass on the set values assigned by the joystick axis. If it's pressed, substitute the value of -0.8 for 125 iterations, amounting to 1/8th of a second.

Since the Drive Motors will be assigned a value during this time, will I see any watchdog errors?

Thanks.
Reply With Quote