jerrym | f157933 | 2013-02-07 01:56:28 +0000 | [diff] [blame] | 1 | /*----------------------------------------------------------------------------*/
|
| 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 |
|
| 10 | WaitCommand::WaitCommand(double timeout) :
|
| 11 | Command(((std::stringstream&)(std::stringstream("Wait(") << timeout << ")")).str().c_str(), timeout)
|
| 12 | {
|
| 13 | }
|
| 14 |
|
| 15 | WaitCommand::WaitCommand(const char *name, double timeout) :
|
| 16 | Command(name, timeout)
|
| 17 | {
|
| 18 | }
|
| 19 |
|
| 20 | void WaitCommand::Initialize()
|
| 21 | {
|
| 22 | }
|
| 23 |
|
| 24 | void WaitCommand::Execute()
|
| 25 | {
|
| 26 | }
|
| 27 |
|
| 28 | bool WaitCommand::IsFinished()
|
| 29 | {
|
| 30 | return IsTimedOut();
|
| 31 | }
|
| 32 |
|
| 33 | void WaitCommand::End()
|
| 34 | {
|
| 35 | }
|
| 36 |
|
| 37 | void WaitCommand::Interrupted()
|
| 38 | {
|
| 39 | }
|