Hello programmers, Team 4296 here, I have a quick question (I think). I am programming some ball shifters on a robot and would like to wire them to a button on my controller, the problem is, when you press the button the value is true, and when you release it the value is false. This results in the ball shifter to go from low gear to high then back all very quickly rather than shifting from one to the other. I currently have it programmed to a switch in the Labview dashboard to save the value, but this is not the solution I would like. How would I go about storing the “true” or “false” value from one button press on a controller? Thanks in advance.
Here is one example:
http://team358.org/files/programming/ControlSystem2015-2019/labview/ButtonToggle.png
Thanks so much, we are testing now and I will definitely try this
Do you really want to use a single button to toggle between high and low gear? It might be easier on the driver to give him or her two buttons, one to select high gear and the other to select low gear. That way there will never be any confusion over which gear the robot is being commanded to use.
An easy solution to this is putting an indicator light into driver station in order to know what “mode” the drive is in.