can you give me a hand with the bool?
Code:
#include "WPILib.h"
class Robot: public SampleRobot
{
Talon Motor;
DigitalInput limitSwitch;
bool limitValue
public:
Robot():
limitSwitch(1),
Motor(6)
{
}
void OperatorControl()
{
while (IsOperatorControl() && IsEnabled())
{
if(limitSwitch.Get()=1)
{
Motor.Set(1.0);
Wait(0.005);
}
}
}
};
START_ROBOT_CLASS(Robot);