Now you can download a copy of these docs so you can use them offline! Download now
WaitUntilCommand.cpp
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/WaitUntilCommand.h"
8 #include "DriverStation.h"
9 #include "Timer.h"
10 
18  Command("WaitUntilCommand", time)
19 {
20  m_time = time;
21 }
22 
23 WaitUntilCommand::WaitUntilCommand(const char *name, double time) :
24  Command(name, time)
25 {
26  m_time = time;
27 }
28 
30 {
31 }
32 
34 {
35 }
36 
41 {
42  return DriverStation::GetInstance()->GetMatchTime() >= m_time;
43 }
44 
46 {
47 }
48 
50 {
51 }
WaitUntilCommand(double time)
virtual void Execute()
virtual bool IsFinished()
static DriverStation * GetInstance()
double GetMatchTime()
virtual void End()
virtual void Initialize()
virtual void Interrupted()

Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by doxygen 1.8.6