View Single Post
  #1   Spotlight this post!  
Unread 24-01-2009, 14:20
Team1710's Avatar
Team1710 Team1710 is offline
Registered User
FRC #1710
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Kansas City
Posts: 95
Team1710 is an unknown quantity at this point
Limit Switch return value

In the process of programming our shooter turret, I realized we needed some limit switches in there. I looked up at the library, and it seems that the DigitalInput class is what we need.

I'm using the digitalInput get method, so after declaration my code looks like this:

Code:
limitSwitchLeft->Get()
Will this return a Boolean? I would assume its default would be false...when the limit switch is hit it would turn to true. I'm looking to impliment this into an if-else condition to use in limiting my turret.

Am I looking at this from the right direction?

Thanks!
Reply With Quote