View Single Post
  #5   Spotlight this post!  
Unread 05-02-2010, 10:07
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: Joystick Button One-Shot (a.k.a. Rising Edge) Detection

All very good advice. Thanks.

The Labview example is good ... but it's a latching toggle ... and I'm in the market for a one-shot. I could use that structure to create a one-shot, but I'd prefer a more elegant solution.

I've never used one before, but wouldn't a simple feedback node be able to help me. That is, I'd only enter into the new state case if the button is TRUE now, and was FALSE the last time thru.

I'll play with it at this afternoon's session and report back later.

Thanks again.


[edit] ... Nice one Alan! That's exactly what I was picturing in my head.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics

Last edited by Ziaholic : 05-02-2010 at 10:08. Reason: ... great minds think alike!
Reply With Quote