WPILibC++
2020.3.2
WaitUntilCommand.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/Command.h"
13
14
namespace
frc
{
15
16
class
WaitUntilCommand
:
public
Command
{
17
public
:
26
explicit
WaitUntilCommand
(
double
time);
27
28
WaitUntilCommand
(
const
wpi::Twine
& name,
double
time);
29
30
virtual
~
WaitUntilCommand
() =
default
;
31
32
WaitUntilCommand
(
WaitUntilCommand
&&) =
default
;
33
WaitUntilCommand
& operator=(
WaitUntilCommand
&&) =
default
;
34
35
protected
:
39
virtual
bool
IsFinished
();
40
41
private
:
42
double
m_time;
43
};
44
45
}
// namespace frc
frc::WaitUntilCommand
Definition:
WaitUntilCommand.h:16
frc::Command
The Command class is at the very core of the entire command framework.
Definition:
Command.h:49
frc::WaitUntilCommand::WaitUntilCommand
WaitUntilCommand(double time)
A WaitCommand will wait until a certain match time before finishing.
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::WaitUntilCommand::IsFinished
virtual bool IsFinished()
Check if we've reached the actual finish time.
wpilibOldCommands
src
main
native
include
frc
commands
WaitUntilCommand.h
Generated on Fri Feb 21 2020 08:50:36 for WPILibC++ by
1.8.16