|
turning a push button into a switch
I am trying to get the robot to switch a state based off the single press of a joystick button. I designed a system that i thought would work, but it began constantly switching the state back and forth without me pressing anything every (what I believe based off how i designed it) 10 ms.
I don't have the code with my right now, but in pseudo code this is what i did.
In periodic Tasks
__________________
"Don't worry, programming can fix it"
|