Skip to content

Commit

Permalink
change api doc to markdown
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Blue <[email protected]>
  • Loading branch information
Starlight220 and rzblue authored Dec 20, 2024
1 parent f2a2af9 commit ec831df
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions wpilibNewCommands/src/main/native/include/frc2/command/Commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,18 @@ CommandPtr Select(std::function<Key()> selector,
/**
* Runs a command chosen from the dashboard.
*
* <p>Example usage:
*
* <pre>
* <code>
* CommandPtr autonomousCommand = frc2::cmd::Choose(
* [](wpi::Sendable* chooser) { frc::SmartDashboard::PutData("Auto Chooser",
* chooser); }, std::move(myFirstAuto).WithName("First Auto"),
* std::move(mySecondAuto).WithName("Second Auto")
* );
* </code>
* </pre>
* Example usage:
*
* ```cpp
* frc2::CommandPtr autonomousCommand = frc2::cmd::Choose(
* [](wpi::Sendable* chooser) {
* frc::SmartDashboard::PutData("Auto Chooser", chooser);
* },
* std::move(myFirstAuto).WithName("First Auto"),
* std::move(mySecondAuto).WithName("Second Auto"));
* ```
*
*
* @param publish lambda used for publishing the chooser to the dashboard
* @param commands commands to choose from
Expand Down

0 comments on commit ec831df

Please sign in to comment.