Class SendableChooser<V>

java.lang.Object
edu.wpi.first.wpilibj.smartdashboard.SendableChooser<V>
Type Parameters:
V - The type of the values to be stored
All Implemented Interfaces:
NTSendable, Sendable, AutoCloseable

public class SendableChooser<V>
extends Object
implements NTSendable, AutoCloseable
The SendableChooser class is a useful tool for presenting a selection of options to the SmartDashboard.

For instance, you may wish to be able to select between multiple autonomous modes. You can do this by putting every possible Command you want to run as an autonomous into a SendableChooser and then put it into the SmartDashboard to have a list of options appear on the laptop. Once autonomous starts, simply ask the SendableChooser what the selected value is.