Now you can download a copy of these docs so you can use them offline! Download now
WaitCommand.cpp
00001 /*----------------------------------------------------------------------------*/ 00002 /* Copyright (c) FIRST 2011. All Rights Reserved. */ 00003 /* Open Source Software - may be modified and shared by FRC teams. The code */ 00004 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */ 00005 /*----------------------------------------------------------------------------*/ 00006 00007 #include "Commands/WaitCommand.h" 00008 #include <sstream> 00009 00010 WaitCommand::WaitCommand(double timeout) : 00011 Command(((std::stringstream&)(std::stringstream("Wait(") << timeout << ")")).str().c_str(), timeout) 00012 { 00013 } 00014 00015 WaitCommand::WaitCommand(const char *name, double timeout) : 00016 Command(name, timeout) 00017 { 00018 } 00019 00020 void WaitCommand::Initialize() 00021 { 00022 } 00023 00024 void WaitCommand::Execute() 00025 { 00026 } 00027 00028 bool WaitCommand::IsFinished() 00029 { 00030 return IsTimedOut(); 00031 } 00032 00033 void WaitCommand::End() 00034 { 00035 } 00036 00037 void WaitCommand::Interrupted() 00038 { 00039 }
Generated on Thu Jan 12 2012 22:35:25 for WPILibC++ by
1.7.1