WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
frc::sim::SendableChooserSim Class Reference

Class that facilitates control of a SendableChooser's selected option in simulation. More...

#include <frc/simulation/SendableChooserSim.h>

Public Member Functions

 SendableChooserSim (std::string_view path)
 Constructs a SendableChooserSim.
 
 SendableChooserSim (nt::NetworkTableInstance inst, std::string_view path)
 Constructs a SendableChooserSim.
 
void SetSelected (std::string_view option)
 Set the selected option.
 

Detailed Description

Class that facilitates control of a SendableChooser's selected option in simulation.

Constructor & Destructor Documentation

◆ SendableChooserSim() [1/2]

frc::sim::SendableChooserSim::SendableChooserSim ( std::string_view path)
explicit

Constructs a SendableChooserSim.

Parameters
pathThe path where the SendableChooser is published.

◆ SendableChooserSim() [2/2]

frc::sim::SendableChooserSim::SendableChooserSim ( nt::NetworkTableInstance inst,
std::string_view path )

Constructs a SendableChooserSim.

Parameters
instThe NetworkTables instance.
pathThe path where the SendableChooser is published.

Member Function Documentation

◆ SetSelected()

void frc::sim::SendableChooserSim::SetSelected ( std::string_view option)

Set the selected option.

Parameters
optionThe option.

The documentation for this class was generated from the following file: