Thread: limit switches
View Single Post
  #13   Spotlight this post!  
Unread 27-04-2005, 17:51
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
Re: limit switches

actually, limit switches are the opposite of that. They are normally 0, or true, then once pressed, turn to 1. I'm trying to find the code I used, but I think it's on my flash drive some where where I can't fine it. I'll post tomorrow with results and code. Thanks for all the help!!!

or wait, do you mean that they've actually 'simplified' it for us, by reversing the values in the code we work with, so I should use == 1 to test for being pressed? that would make a lot of sense, because I thought the joysticks were supposed to be == 0 when pressed, but it only worked when I did == 1. thanks for the information. Why don't they tell people these small, but important things. Thanks!

Last edited by stephenthe1 : 27-04-2005 at 17:55.