[commands] Add Subsystem.idle() (#7815)

This commit is contained in:
Wispy
2025-08-31 00:54:53 -05:00
committed by GitHub
parent 129cbbe11d
commit 2cfd58f119
3 changed files with 22 additions and 0 deletions

View File

@@ -98,6 +98,15 @@ public interface Subsystem {
CommandScheduler.getInstance().registerSubsystem(this);
}
/**
* Constructs a command that does nothing until interrupted. Requires this subsystem.
*
* @return the command
*/
default Command idle() {
return Commands.idle(this);
}
/**
* Constructs a command that runs an action once and finishes. Requires this subsystem.
*