FunctionalCommand

class FunctionalCommand : public Command

Subclassed by InstantCommand, RunCommand, WaitUntilCommand

Public Functions

inline virtual void initialize() override

Runs the user-defined initializer function.

inline virtual void execute() override

Runs the user-defined execute function.

inline virtual bool isFinished() override

Uses the user-defined function for isFinished.

Returns:

The boolean result from the user defined function

inline virtual void end(const bool interrupted) override

Runs the user-defined end function.

Parameters:

interrupted – Passes on the interrupted parameter to the user-defined function

inline virtual std::vector<Subsystem*> getRequirements() override

Returns requirements for the subsystem.

Returns:

User-defined requirements for the subsystem

virtual ~FunctionalCommand() = default

Default destructor