mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[commands] Add Subsystem.idle() (#7815)
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user