Package com.frcteam3255.utils
Class SN_InstantCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.FunctionalCommand
edu.wpi.first.wpilibj2.command.InstantCommand
com.frcteam3255.utils.SN_InstantCommand
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
public class SN_InstantCommand
extends edu.wpi.first.wpilibj2.command.InstantCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior -
Constructor Summary
ConstructorsConstructorDescriptionSN_InstantCommand(Runnable toRun, boolean runsWhenDisabled, edu.wpi.first.wpilibj2.command.Subsystem... requirements) Creates a new InstantCommand that runs the given Runnable with the given requirements.SN_InstantCommand(Runnable toRun, edu.wpi.first.wpilibj2.command.Subsystem... requirements) Creates a new InstantCommand that runs the given Runnable with the given requirements. -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.FunctionalCommand
end, execute, initialize, isFinishedMethods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
SN_InstantCommand
public SN_InstantCommand() -
SN_InstantCommand
public SN_InstantCommand(Runnable toRun, boolean runsWhenDisabled, edu.wpi.first.wpilibj2.command.Subsystem... requirements) Creates a new InstantCommand that runs the given Runnable with the given requirements.- Parameters:
toRun- the Runnable to runrunsWhenDisabled- whether the command should runnable when the robot is disabledrequirements- the subsystems required by this command
-
SN_InstantCommand
Creates a new InstantCommand that runs the given Runnable with the given requirements.- Parameters:
toRun- the Runnable to runrequirements- the subsystems required by this command
-
-
Method Details
-
runsWhenDisabled
public final boolean runsWhenDisabled()- Overrides:
runsWhenDisabledin classedu.wpi.first.wpilibj2.command.Command
-