blob: 8c5be65e96b75b66af4e69649c9fca02c4c9b283 [file] [log] [blame]
Brian Silverman26e4e522015-12-17 01:56:40 -05001/*----------------------------------------------------------------------------*/
Brian Silverman1a675112016-02-20 20:42:49 -05002/* Copyright (c) FIRST 2011-2016. All Rights Reserved. */
Brian Silverman26e4e522015-12-17 01:56:40 -05003/* Open Source Software - may be modified and shared by FRC teams. The code */
Brian Silverman1a675112016-02-20 20:42:49 -05004/* must be accompanied by the FIRST BSD license file in the root directory of */
5/* the project. */
Brian Silverman26e4e522015-12-17 01:56:40 -05006/*----------------------------------------------------------------------------*/
7
8#include "Commands/WaitCommand.h"
9#include <sstream>
10
11WaitCommand::WaitCommand(double timeout)
12 : Command(
13 ((std::stringstream &)(std::stringstream("Wait(") << timeout << ")"))
14 .str()
15 .c_str(),
16 timeout) {}
17
18WaitCommand::WaitCommand(const std::string &name, double timeout)
19 : Command(name, timeout) {}
20
21void WaitCommand::Initialize() {}
22
23void WaitCommand::Execute() {}
24
25bool WaitCommand::IsFinished() { return IsTimedOut(); }
26
27void WaitCommand::End() {}
28
29void WaitCommand::Interrupted() {}