12 #include <units/units.h>
14 #include "frc2/command/CommandBase.h"
15 #include "frc2/command/CommandHelper.h"
53 std::function<bool()> m_condition;
bool IsFinished() override
Whether the command has finished.
bool RunsWhenDisabled() const override
Whether the given command should run when the robot is disabled.
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:26
A command that does nothing but ends after a specified match time or condition.
Definition: WaitUntilCommand.h:22
WaitUntilCommand(std::function< bool()> condition)
Creates a new WaitUntilCommand that ends after a given condition becomes true.