Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   How to add an option of multiple autos to the driver station (http://www.chiefdelphi.com/forums/showthread.php?t=143527)

maxnz 09-02-2016 18:30

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)

nollchr 09-02-2016 21:40

Re: How to add an option of multiple autos to the driver station
 
This should help you get started: https://wpilib.screenstepslive.com/s...smartdashboard

Greg McKaskle 10-02-2016 10:05

Re: How to add an option of multiple autos to the driver station
 
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


All times are GMT -5. The time now is 00:37.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi