Thread: C++ Errors
View Single Post
  #1   Spotlight this post!  
Unread 30-01-2015, 16:30
FRC2501's Avatar
FRC2501 FRC2501 is offline
Registered User
FRC #2501 (Bionic Poalrs)
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Minnesota
Posts: 52
FRC2501 is an unknown quantity at this point
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.
Reply With Quote