Commenting out the auto code I had added fixed the red comm light. Does anyone mind reading through the code to see what might be causing the error?
Code:
void AutonomousInit()
{
//gyro->Reset();
}
void AutonomousPeriodic()
{
/*
SmartDashboard::PutNumber("Gyro Angle:", Angle);
if (automode == 1)
{
gyro->GetAngle();
{
if (Angle == 90)
{
robottime = false;
} else {
robottime = true;
}
}
if(robottime == true)
{
robot->Drive(0,-1);
}
if (robottime == false)
{
robot->Drive(0,-1);
}
}
if (automode == 2)
{
gyro->GetAngle();
if (Angle == 45)
{
robottime = false;
} else {
robottime = true;
}
if (robottime == true)
{
robot->Drive(0, -.5);
}
if (robottime == false)
{
robot->Drive(0,0);
}
}
*/
}
is using a selector based on joystick button during robotinit causing this?