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