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

    Constructors
    Constructor
    Description
     
    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.
    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

    Modifier and Type
    Method
    Description
    final boolean
     

    Methods inherited from class edu.wpi.first.wpilibj2.command.FunctionalCommand

    end, execute, initialize, isFinished

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 run
      runsWhenDisabled - whether the command should runnable when the robot is disabled
      requirements - the subsystems required by this command
    • SN_InstantCommand

      public SN_InstantCommand(Runnable toRun, 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 run
      requirements - the subsystems required by this command
  • Method Details

    • runsWhenDisabled

      public final boolean runsWhenDisabled()
      Overrides:
      runsWhenDisabled in class edu.wpi.first.wpilibj2.command.Command