SendableChooserSim
- class wpilib.simulation.SendableChooserSim(*args, **kwargs)
Bases:
pybind11_object
Class that facilitates control of a SendableChooser’s selected option in simulation.
Overloaded function.
__init__(self: wpilib.simulation._simulation.SendableChooserSim, path: str) -> None
Constructs a SendableChooserSim.
- Parameters:
path – The path where the SendableChooser is published.
__init__(self: wpilib.simulation._simulation.SendableChooserSim, inst: ntcore._ntcore.NetworkTableInstance, path: str) -> None
Constructs a SendableChooserSim.
- Parameters:
inst – The NetworkTables instance.
path – The path where the SendableChooser is published.
- setSelected(option: str) None
Set the selected option.
- Parameters:
option – The option.