Go to Post Note to self: Go to IRI sometime. - [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 08-02-2016, 19:40
cantdecide cantdecide is offline
Registered User
FRC #5773 (YAFL Mechatronics)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Turkey
Posts: 31
cantdecide is an unknown quantity at this point
Re: Running networking code while robot is disabled

Quote:
Originally Posted by MaikeruKonare View Post
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");
}
If it loops on its own, wouldn't that print "Robot Disabled!!" over and over?
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:20.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi