WPILibC++
2020.3.2
WaitCommand.h
1
/*----------------------------------------------------------------------------*/
2
/* Copyright (c) 2011-2019 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
frc::WaitCommand::WaitCommand
WaitCommand(double timeout)
Creates a new WaitCommand with the given name and timeout.
frc::TimedCommand
A TimedCommand will wait for a timeout before finishing.
Definition:
TimedCommand.h:21
frc
A class that enforces constraints on the differential drive kinematics.
Definition:
SPIAccelerometerSim.h:16
wpi::Twine
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition:
Twine.h:85
frc::WaitCommand
Definition:
WaitCommand.h:16
wpilibOldCommands
src
main
native
include
frc
commands
WaitCommand.h
Generated on Fri Feb 21 2020 08:50:36 for WPILibC++ by
1.8.16