Sorry, I should have been specific. The periodic one loops. In SampleRobot it does not.
If you want to loop in Disabled() you could try:
Code:
Robot::Disabled()
{
while(!IsEnabled()) //or while(IsEnabled() == false)
{
printf("Disabled!\n");
}
}
Regardless, I would only do this at home and not at competitions.
Edit: When I said that it loops earlier I was thinking of when print statements from OperatorControl continue printing if you're missing the "IsOperatorControl()" function in your while condition.