Thread: Limit Switches
View Single Post
  #3   Spotlight this post!  
Unread 03-03-2009, 17:53
gwytheyrn gwytheyrn is offline
Registered User
AKA: David
FRC #0461 (West Side Boiler Invasion)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2004
Location: Indiana
Posts: 44
gwytheyrn is infamous around these parts
Send a message via AIM to gwytheyrn
Re: Limit Switches

Once you get past the opening and getting of the value of the switch, there's a bit of boolean mess to get it so it will work. Just using a single select won't quite do (unless you use an AND statement to check if the motor is actually trying to go past the limit and not away from it), as it will shut down the motor permanently unless something physically knocks the motor from pressing the switch.
Reply With Quote