How to add an option of multiple autos to the driver station

My team is hoping to do at least 2 different autos, one where we reach the defense and one where we cross the defense. What we’re wondering is how we program the buttons into the driver station so we can choose between them before auto starts. We have two programming teams, labview and Java, so if we could learn how to do it in both languages, that would be great.

(We’re new to Java this year so we have a backup option of labview in case Java doesn’t work)

This should help you get started: https://wpilib.screenstepslive.com/s/4485/m/26401/l/255419-choosing-an-autonomous-program-from-smartdashboard

The default/LV dashboard now has a combo-box selector on the front page. It will be filled with strings from a variable called /SmartDashboard/Auto List. The selected choice will available on the robot in a variable named /SmartDashboard/Auto Selector.

The default LV template code switches on this variable in auto, but it can be used in combination with other Basic controls and custom controls.

Greg McKaskle