Package edu.wpi.first.wpilibj.simulation
Class SendableChooserSim
java.lang.Object
edu.wpi.first.wpilibj.simulation.SendableChooserSim
- All Implemented Interfaces:
AutoCloseable
Class that facilitates control of a SendableChooser's selected option in simulation.
-
Constructor Summary
ConstructorsConstructorDescriptionSendableChooserSim(NetworkTableInstance inst, String path) Constructs a SendableChooserSim.SendableChooserSim(String path) Constructs a SendableChooserSim. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidsetSelected(String option) Set the selected option.
-
Constructor Details
-
SendableChooserSim
Constructs a SendableChooserSim.- Parameters:
path- The path where the SendableChooser is published.
-
SendableChooserSim
Constructs a SendableChooserSim.- Parameters:
inst- The NetworkTables instance.path- The path where the SendableChooser is published.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable
-
setSelected
Set the selected option.- Parameters:
option- The option.
-