|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Adding a delay to commands
What I need to do is figure out how to add a delay to a command, like when i press and hold button, the motor that is supposed to turn is delayed for a second, and then turns. I am also wondering how to implement this into autonomous.
Thanks Last edited by APrettyDucky : 21-02-2012 at 17:23. |
|
#2
|
||||
|
||||
|
Re: Adding a delay to commands
Quote:
1) state machine 2) periodic tasks |
|
#3
|
||||
|
||||
|
Re: Adding a delay to commands
Set a flag that you've pressed a button via a functional global or using a
global variable and put your sequence code in the Periodic Tasks VI. If you leave it in your Teleop or autonomous you'll not be happy ... it'll block your execution and cause you code to have delays you don't want ... |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|