WPILib 2012
WPILibRoboticsLibraryforFRC
Commands/WaitUntilCommand.h
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 #ifndef __WAIT_UNTIL_COMMAND_H__
00008 #define __WAIT_UNTIL_COMMAND_H__
00009 
00010 #include "Commands/Command.h"
00011 
00012 class WaitUntilCommand : public Command
00013 {
00014 public:
00015         WaitUntilCommand(double time);
00016         WaitUntilCommand(const char *name, double time);
00017         virtual ~WaitUntilCommand() {}
00018 
00019 protected:
00020         virtual void Initialize();
00021         virtual void Execute();
00022         virtual bool IsFinished();
00023         virtual void End();
00024         virtual void Interrupted();     
00025 
00026 private:
00027         double m_time;
00028 };
00029 
00030 #endif
 All Classes Functions Variables