View Single Post
  #3   Spotlight this post!  
Unread 03-09-2009, 12:35
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

Thanks for the help, but now we have a more specific question.

We are experimenting with autonomous and we have this code


Code:
void Autonomous(void) 
{
	GetWatchdog().SetEnabled(false);
	myRobot.Drive(0.5,0.5);
}

we dont really know what GetWatchdog is, we know that the sample code has it.

What we have so far makes it drive straight at half speed indefinitely as far as we can tell. We looked at RobotDrive.cpp and .h in the WPILib but we cant figure out how to end the .drive command and move on to the next line.
__________________


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>
Reply With Quote