|
Re: Timed While loop within Teleop
You might trip the watchdog. You'll certainly mess with your drivers, since everything will pause for 1/8 of a second.
Teleop.vi happens pretty regularly. You really can use it as your timing loop. Have some value that passes between each run of Teleop.vi. (Use a feedback node for this.) If the value =0, do nothing and pass your joystick value through. If the value >0, subtract one from it and substitute 0.8 for your joystick value. To trigger it, set the value = 125 (or whatever's appropriate. I forget the timing of Teleop.vi) if the button is triggered.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.
Lone Star Regional Troubleshooter
|