|
time delayed task
Hello,
Our robot has a button that when pressed gives full power to our shooting mechanism. We also have a belt that supplies the shooter with the balls. I have put together a function to run both the belt motor and the shooting motor when a button is pressed. However we need the belt to start 2 seconds after the shooting motor engages. I am having a major block here and can't figure out how to put a 2 second delay on a task after the button is pressed. I have looked all over and not found anything for the past few days. If anyone can offer any help or examples, it would be greatly appreciated.
thank you
|