View Single Post
  #2   Spotlight this post!  
Unread 02-08-2016, 07:22 PM
MaikeruKonare's Avatar
MaikeruKonare MaikeruKonare is offline
Programming Division Captain
AKA: Michael Conard
FRC #4237 (Team Lance-a-Bot)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Michigan
Posts: 15
MaikeruKonare is an unknown quantity at this point
Re: Running networking code while robot is disabled

Don't put a loop in Disabled() because when the robot is disabled that function loops on its own.

Having code run in Disabled(), such as variable updates and prints, is fine. However, putting code that could potentially move or control the robot would defeat the purpose of having a Disabled() function.

This is usually what my Disabled() function looks like:

Code:
void Robot::Disabled()
{
	printf("Robot Disabled!!\n");
}
Reply With Quote