Class FunctionalCommand

java.lang.Object
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.FunctionalCommand
All Implemented Interfaces:
Sendable
Direct Known Subclasses:
InstantCommand, RunCommand, StartEndCommand

public class FunctionalCommand
extends Command
A command that allows the user to pass in functions for each of the basic command methods through the constructor. Useful for inline definitions of complex commands - note, however, that if a command is beyond a certain complexity it is usually better practice to write a proper class for it than to inline it.

This class is provided by the NewCommands VendorDep