mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[commands] Add requirements parameter to Commands.idle() (#5774)
This commit is contained in:
@@ -28,10 +28,11 @@ public final class Commands {
|
||||
/**
|
||||
* Constructs a command that does nothing until interrupted.
|
||||
*
|
||||
* @param requirements Subsystems to require
|
||||
* @return the command
|
||||
*/
|
||||
public static Command idle() {
|
||||
return run(() -> {});
|
||||
public static Command idle(Subsystem... requirements) {
|
||||
return run(() -> {}, requirements);
|
||||
}
|
||||
|
||||
// Action Commands
|
||||
|
||||
Reference in New Issue
Block a user