Thread: limit switches
View Single Post
  #12   Spotlight this post!  
Unread 27-04-2005, 17:37
Workaphobia Workaphobia is offline
Registered User
AKA: Jon
FRC #1546 (Chaos Inc.)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Long Island
Posts: 26
Workaphobia will become famous soon enough
Re: limit switches

This is definitely a simple matter of testing for the wrong value in code. Digital inputs on the RC (but not on the OI) have "pull ups", which means they are set to register as 1 in software when not grounded. Your input will be in the 0 state when the switch is pressed. This isn't a problem at all, just invert where you have tests for 1s and 0s.