Use units for new NotifierCommand (#1869)

This commit is contained in:
Peter Johnson
2019-09-04 22:54:49 -05:00
committed by GitHub
parent 5ffe15d5ff
commit 3e0f7d0995
3 changed files with 8 additions and 5 deletions

View File

@@ -9,7 +9,8 @@
using namespace frc2;
NotifierCommand::NotifierCommand(std::function<void()> toRun, double period,
NotifierCommand::NotifierCommand(std::function<void()> toRun,
units::second_t period,
std::initializer_list<Subsystem*> requirements)
: m_toRun(toRun), m_notifier{std::move(toRun)}, m_period{period} {
AddRequirements(requirements);