I cannot remember how to use a button on a joystick for a set of motors, could someone send me a diagram?
You should start by looking though the LabVIEW FRC examples. They are extremely helpful, and easy to read through. To answer your question, what you need to do is open up your teleop block diagram VI and inside, there should be a joystick already opened. Right click on any white space, go to programming and look for “unbundle by name” in the cluster palette. Finally just wire the “button” node from the joystick to the input of the “unbundle by name”. Once you’ve done this you will be able to see all the buttons available to you. If you want to control a motor with it just call the motor inside of a case structure and make any button the Boolean input to the case structure. Good luck with your season!
I know where to get buttons, I mean, I don’t know how to wire them to the drive, what VI do I use?
I’ve attached an example VI.
Motor Control Example.vi (7.52 KB)
Motor Control Example.vi (7.52 KB)