View Single Post
  #10   Spotlight this post!  
Unread 22-02-2010, 02:44
anyheck anyheck is offline
Registered User
FRC #2242 (Cougars)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: New Orleans
Posts: 26
anyheck is on a distinguished road
Re: Creating a "delay" for a boolean value

Quote:
Originally Posted by masterspy7 View Post
The boolean controlling the case structure is the incoming boolean for the solenoid. It's set up that way because I only want a delay when the false value is coming in. I will try what you suggested. What I had before didn't work though...Does it matter if its unwrapped or not?
Reading your description again, I think that the lower example that I showed would work for what you want:

When the incoming boolean goes true, it activates the "one-loop-latch" which is basically a modifier that makes the output true for only one loop. That will activate the countdown and make it true for just 2000 ms after the boolean input goes true.

If you wire it up as in the top example, the output will be held true for as long as the input is true plus 2000 ms before going false.

I hope this helps and not too late. We had another late night.

Regards,
Sten
Reply With Quote