|
Re: no control of bot when kicker is operating
Quote:
Originally Posted by Andrew Schreiber
I believe so... There should be a way of setting a timer to go off in X period of time. In C++ these would be the Timer.Start Timer.Stop and Timer.HasPeriodPassed (Referenced http://www.virtualroadside.com/WPILib/class_timer.html) Java should have an equivalent. This should not delay the loop you are in which is your problem. (If I am assuming your problem correctly)
|
As far as I can tell, it's literally a delay; if you set a state for something (ie motor 1 forward 50%) and then use that delay method for 2 seconds, motor 1 will continue to operate at 50% until the timer is done and you send a command to change the state.
Last edited by isaacdl : 11-06-2010 at 13:17.
Reason: typo
|