RunCommand

class RunCommand : public FunctionalCommand

Creates a FunctionalCommand that runs forever with an onRun function that runs every time execute is run by the CommandScheduler.

Public Functions

inline RunCommand(const std::function<void()> &onRun, const std::initializer_list<Subsystem*> requirements)

Initializes a RunCommand with the onRun function and necessary Subsystem requirements.

Parameters:
  • onRun – Function to run every frame

  • requirements – Requirements that this function will need