Change C++ WaitCommand to use units (#1865)

Also remove unique_ptr usage.
This commit is contained in:
Peter Johnson
2019-09-02 23:39:51 -07:00
committed by GitHub
parent 1fb3011235
commit 761bc3ef85
10 changed files with 27 additions and 25 deletions

View File

@@ -36,7 +36,7 @@ class RobotContainer {
// Three commands that do nothing; for demonstration purposes.
frc2::InstantCommand m_instantCommand1;
frc2::InstantCommand m_instantCommand2;
frc2::WaitCommand m_waitCommand{5};
frc2::WaitCommand m_waitCommand{5_s};
void ConfigureButtonBindings();
};