Buttons on Joystick
Just a quick simple question -
Is the code attatched done correctly? The false area in both of the case structures are completely blank.
I want it so that Button One will accuate solenoid and basically kick. Then, I want Button Two to bring the kicker back in when it is pressed.
When this code is running, the Joystick on the Driver Station Diagnostics tab lights blue. Does this mean that the code is reading the buttons or just that it will light blue no matter what button is pressed.
Right now, the code is not working and doesn't seem to be controlling the solenoids at all.
Also, our compressor doesn't seem to be the problem. I placed the compressor code within Periodic Tasks and it does work.
|