Thread
:
Toggle program for a controller?
View Single Post
#
3
18-01-2017, 10:33
rich2202
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,275
Re: Toggle program for a controller?
You also might want to include a function to "debounce" the button. A quick and dirty way is to wait at least 1/2 a second before recognizing a change in state of the button.
__________________
rich2202
View Public Profile
Find all posts by rich2202
Find CD-Media Photos by rich2202
Find CD-Media Papers by rich2202