View Single Post
  #1   Spotlight this post!  
Unread 12-02-2009, 16:02
Zellboy Zellboy is offline
Registered User
FRC #1203
 
Join Date: Jan 2009
Location: West Babylon
Posts: 4
Zellboy is an unknown quantity at this point
Limit Switch problem

We're trying to program a digital input with a limit switch. How do we set the if statement?

This is what we have so far

Code:
if(Clamplimit -> Get() > 0)
{
       s[0] -> Set(false);
       s[1] -> Set(true);
}
Is it correct?

Last edited by Zellboy : 12-02-2009 at 16:29.