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