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!