Files
allwpilib/eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/SetCollectionSpeed.h
Alex Henning c7e17b8e35 Added PacGoat code for C++.
Change-Id: I4fd19fbdc65c25c5bbcdce937a31bc6fa1c11cb4
2014-06-25 16:49:14 -07:00

24 lines
511 B
C++

#ifndef SetCollectionSpeed_H
#define SetCollectionSpeed_H
#include "WPILib.h"
/**
* This command sets the collector rollers spinning at the given speed. Since
* there is no sensor for detecting speed, it finishes immediately. As a result,
* the spinners may still be adjusting their speed.
*/
class SetCollectionSpeed: public Command {
private:
double speed;
public:
SetCollectionSpeed(double speed);
void Initialize();
void Execute();
bool IsFinished();
void End();
void Interrupted();
};
#endif