Class InstantCommand

java.lang.Object
edu.wpi.first.wpilibj.command.Command
edu.wpi.first.wpilibj.command.InstantCommand
All Implemented Interfaces:
Sendable, AutoCloseable
Direct Known Subclasses:
PrintCommand, StartCommand

public class InstantCommand
extends Command
This command will execute once, then finish immediately afterward.

Subclassing InstantCommand is shorthand for returning true from isFinished.