View Single Post
  #10   Spotlight this post!  
Unread 04-09-2009, 17:39
mikelowry mikelowry is offline
Registered User
FRC #1771 (N.G.R.)
Team Role: Engineer
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Suwanee GA
Posts: 63
mikelowry is a name known to allmikelowry is a name known to allmikelowry is a name known to allmikelowry is a name known to allmikelowry is a name known to allmikelowry is a name known to all
Re: very basic code help

Code:
while (IsOperatorControl()) 
			{
				GetWatchdog().Feed();
				myRobot.TankDrive(leftStick, rightStick);
				Wait(0.005);
			}
Is the while(IsOperatorControl()) line really necessary? because all of the code inside it is inside the teleop section of the code anyway.

And what is the difference between putting the RobotDrive and the Joysticks inside the class and moving the constructors as opposed to how i had it?
__________________


2008 Xerox Creativity Award - Championships
2009 Rockwell Automation Innovation in Control award - Peachtree
2009 GM Industrial Design Award - Palmetto
2009 Palmetto Champions <1771 2415 21>

Last edited by mikelowry : 04-09-2009 at 17:48.
Reply With Quote