blob: 6276363c106ceb9880ab4897b129bc10e9ece672 [file] [log] [blame]
jerrymf1579332013-02-07 01:56:28 +00001/*----------------------------------------------------------------------------*/
2/* Copyright (c) FIRST 2011. 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 $(WIND_BASE)/WPILib. */
5/*----------------------------------------------------------------------------*/
6
7#include "Commands/WaitCommand.h"
8#include <sstream>
9
10WaitCommand::WaitCommand(double timeout) :
11 Command(((std::stringstream&)(std::stringstream("Wait(") << timeout << ")")).str().c_str(), timeout)
12{
13}
14
15WaitCommand::WaitCommand(const char *name, double timeout) :
16 Command(name, timeout)
17{
18}
19
20void WaitCommand::Initialize()
21{
22}
23
24void WaitCommand::Execute()
25{
26}
27
28bool WaitCommand::IsFinished()
29{
30 return IsTimedOut();
31}
32
33void WaitCommand::End()
34{
35}
36
37void WaitCommand::Interrupted()
38{
39}