47  void End(
bool interrupted) 
override;
 
   50  std::function<void()> m_toRun;
 
   52  units::second_t m_period;
 
 
CRTP implementation to allow polymorphic decorator functions in Command.
Definition CommandHelper.h:25
 
A command that starts a notifier to run the given runnable periodically in a separate thread.
Definition NotifierCommand.h:29
 
NotifierCommand(NotifierCommand &&other)
 
NotifierCommand(std::function< void()> toRun, units::second_t period, Requirements requirements={})
Creates a new NotifierCommand.
 
NotifierCommand(const NotifierCommand &other)
 
void Initialize() override
 
void End(bool interrupted) override
 
Represents requirements for a command, which is a set of (pointers to) subsystems.
Definition Requirements.h:20
 
Notifiers run a user-provided callback function on a separate thread.
Definition Notifier.h:29
 
Definition FunctionalCommand.h:13