Class NamedInstantCommand

java.lang.Object
org.wpilib.command2.Command
org.wpilib.command2.FunctionalCommand
org.wpilib.command2.InstantCommand
xbot.common.command.NamedInstantCommand
All Implemented Interfaces:
org.wpilib.telemetry.TelemetryLoggable, org.wpilib.tunable.ComplexTunable

public class NamedInstantCommand extends org.wpilib.command2.InstantCommand
Convenience wrapper of InstantCommand that allows setting a human readable name for dashboard and logging readability.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.wpilib.command2.Command

    org.wpilib.command2.Command.InterruptionBehavior
  • Constructor Summary

    Constructors
    Constructor
    Description
    NamedInstantCommand(String name, Runnable toRun, org.wpilib.command2.Subsystem... requirements)
     
  • Method Summary

    Methods inherited from class org.wpilib.command2.FunctionalCommand

    end, execute, initialize, isFinished

    Methods inherited from class org.wpilib.command2.Command

    addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getTelemetryType, getTunableType, handleInterrupt, hasRequirement, ignoringDisable, isScheduled, logTo, onlyIf, onlyWhile, publishTunable, raceWith, repeatedly, runsWhenDisabled, setName, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.wpilib.tunable.ComplexTunable

    publishChildTunable, publishChildTunable, removeChildTunable, setChildTunableChanged, updateTunable
  • Constructor Details

    • NamedInstantCommand

      public NamedInstantCommand(String name, Runnable toRun, org.wpilib.command2.Subsystem... requirements)