|
C++ Errors
#include "WPILib.h"
#include<time.h>
class Robot : public SampleRobot
{
private:
Talon talon;
Jaguar jaguar;
public:
Robot() :
talon(1),
jaguar(2)
{
}
void Autonomous()
{
Wait(2.0);
}
void OperatorControl()
{
while (IsOperatorControl() && IsEnabled())
{
talon.Set(1);
Wait(1.0);
}
}
};
START_ROBOT_CLASS(Robot);
Why are the errors here? Help!
Last edited by FRC2501 : 30-01-2015 at 16:54.
|