[templates] Add bindings to command-based template (#4838)

This commit is contained in:
Starlight220
2022-12-26 21:28:06 +02:00
committed by GitHub
parent 4534e75787
commit 87a34af367
8 changed files with 80 additions and 12 deletions

View File

@@ -16,6 +16,14 @@ class ExampleSubsystem : public frc2::SubsystemBase {
*/
frc2::CommandPtr ExampleMethodCommand();
/**
* An example method querying a boolean state of the subsystem (for example, a
* digital sensor).
*
* @return value of some boolean subsystem state, such as a digital sensor.
*/
bool ExampleCondition();
/**
* Will be called periodically whenever the CommandScheduler runs.
*/