You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A command that only runs when safe-mode is enabled and returns {@code isFinished() = true} otherwise.
10
+
*
11
+
* Note that this does not block calls to {@link #end(boolean)} (If the command is scheduled when safe-mode is disabled, {@link #end(boolean)} will be called immediately})
// These are suitable for cases where the command should keep running such as a default command where isFinished must always return false
8
+
/**
9
+
* A command that only runs its {@link #execute()} method when safe-mode is enabled, and continues running as long as the underlying command is not finished.
10
+
*
11
+
* Keep in mind that this does not block calls to {@link #initialize()} or {@link #end(boolean)}, so it is not appropriate for wrapping commands such as {@link edu.wpi.first.wpilibj2.command.InstantCommand}.
12
+
* It is intended for cases where the command should keep running such as a default command where {@link #isFinished()} must always return {@code false}
0 commit comments