52 std::function<bool()> m_condition;
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:25
A command that does nothing but ends after a specified match time or condition.
Definition: WaitUntilCommand.h:21
bool RunsWhenDisabled() const override
WaitUntilCommand(units::second_t time)
Creates a new WaitUntilCommand that ends after a given match time.
WaitUntilCommand(WaitUntilCommand &&other)=default
WaitUntilCommand(std::function< bool()> condition)
Creates a new WaitUntilCommand that ends after a given condition becomes true.
WaitUntilCommand(const WaitUntilCommand &other)=default
bool IsFinished() override
Definition: ProfiledPIDCommand.h:18