View Single Post
  #5   Spotlight this post!  
Unread 14-02-2012, 23:43
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,658
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
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
Reply With Quote