View Single Post
  #2   Spotlight this post!  
Unread 16-02-2011, 13:43
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: Action on button press and release

So you want it to run one way the whole time when the button is being held and the other way the whole time the button is not held?

If that's what you want try the "Select" node. It's in the Comparisons palette I believe, and it will select the top input and pass it through if the middle input is true and the bottom input if the middle input is false. You would put the button as the middle input and your desired motor speeds as the top and bottom.

If you want to run the motor in a certain direction for a certain period of time on button press and release that becomes a little bit trickier.
__________________


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