Thread: Jiggly servo
View Single Post
  #6   Spotlight this post!  
Unread 08-02-2010, 16:15
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Jiggly servo

Quote:
Originally Posted by grosh View Post
We will try Alan's "rising edge" program. We don't understand the logic in it, but I have seen the icons before.
The code Alan posted in that thread uses a feedback node to look at both the current value of the button and the last value of the button. The triangular gate is a NOT gate and inverts the true/false value coming out of the feedback node. The other gate is an AND gate which returns true if and only if both inputs are true.

So the code outputs true if and only if the button is pressed now and wasn't pressed the last time the code executed.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote