2013-12-15 18:30:16 -05:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2015-06-25 15:07:55 -04:00
|
|
|
/* Copyright (c) FIRST 2011. All Rights Reserved.
|
|
|
|
|
*/
|
2013-12-15 18:30:16 -05:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#ifndef __WAIT_COMMAND_H__
|
|
|
|
|
#define __WAIT_COMMAND_H__
|
|
|
|
|
|
|
|
|
|
#include "Commands/Command.h"
|
|
|
|
|
|
2015-06-25 15:07:55 -04:00
|
|
|
class WaitCommand : public Command {
|
|
|
|
|
public:
|
|
|
|
|
WaitCommand(double timeout);
|
2015-06-30 15:01:20 -04:00
|
|
|
WaitCommand(const std::string &name, double timeout);
|
2015-06-24 01:06:29 -07:00
|
|
|
virtual ~WaitCommand() = default;
|
2013-12-15 18:30:16 -05:00
|
|
|
|
2015-06-25 15:07:55 -04:00
|
|
|
protected:
|
|
|
|
|
virtual void Initialize();
|
|
|
|
|
virtual void Execute();
|
|
|
|
|
virtual bool IsFinished();
|
|
|
|
|
virtual void End();
|
|
|
|
|
virtual void Interrupted();
|
2013-12-15 18:30:16 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|