FRC2706 / 2019-2706-Robot-Code

The main robot code for the FIRST 2019 challenge: Deep Space
MIT License
2 stars 0 forks source link

Add check for if limit switch is enabled #140

Closed KyleRAnderson closed 5 years ago

KyleRAnderson commented 5 years ago

I thought about the efficiency of enabling/disabling the limit switch each time set[Something] was called. I realized that rather than spamming talon APIs, it's slightly more efficient to keep track of the limit switch's state using a boolean field instead.

Summary of Changes

Testing Performed

Environment: Practice bot. Ran the lift, made sure that everything was zeroed when it should be.