WPILibC++  2019.1.1-beta-1-21-gfb557f4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
WaitCommand.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2011-2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include <wpi/Twine.h>
11 
12 #include "frc/commands/TimedCommand.h"
13 
14 namespace frc {
15 
16 class WaitCommand : public TimedCommand {
17  public:
24  explicit WaitCommand(double timeout);
25 
31  WaitCommand(const wpi::Twine& name, double timeout);
32 
33  virtual ~WaitCommand() = default;
34 
35  WaitCommand(WaitCommand&&) = default;
36  WaitCommand& operator=(WaitCommand&&) = default;
37 };
38 
39 } // namespace frc
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
A TimedCommand will wait for a timeout before finishing.
Definition: TimedCommand.h:21
WaitCommand(double timeout)
Creates a new WaitCommand with the given name and timeout.
Definition: WaitCommand.h:16
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79