FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible? Plz help asap first robotics compition

I am wondering if in  labview can program a single button to exicute a series of tasks? 

Example : push button 3 

Robot drIves forward x distance robot drives back x distance 

 

And if it is possible how would I do it. Thanks for the help 

0 Kudos
Message 1 of 2
(2,987 Views)

In the 
Autonomous vi there is base code that shows you how to sequence through driving commands.

2017-03-10_7-18-09.png

Assuming you want to use this code in Teleop I would copy this code and put it in a case structure and connected a joystick button to the selector.

 

false.png

true.png

This example uses mechanum control so you will need to set the Drive vis for your type of drive.

 

To select the joystick button index go to the driver station, click on the usb tab and press the button you want to use. Then count from the top left down starting at zero. When you reach the on LED that is the Button Index you use.

button.png

 

Reply if you still have questions

Hope this helps.

Champion CLA

Making senseless computers do
intelligent real world things
is NOT easy. SO MAKE IT FUN!
0 Kudos
Message 2 of 2
(2,957 Views)