Go to Post The first law of programming is that there are always ways of doing things quicker and in less space than you already are. - jgannon [more]
Home
Go Back   Chief Delphi > Technical > Programming
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
  #19   Spotlight this post!  
Unread 12-02-2006, 11:34
lkdjm's Avatar
lkdjm lkdjm is offline
Registered User
AKA: David Mazza
FRC #0564 (Digital Impact)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Middle Island, NY
Posts: 31
lkdjm will become famous soon enough
Send a message via AIM to lkdjm Send a message via Yahoo to lkdjm
Re: Has anyone else had trouble staying within the 10 second limit in autonomous?

Quote:
Originally Posted by Tom Bottiglieri
It could be done something like this

Code:
#define BEGIN_DISABLE     0

extern char robot_state=0;

Process_Data_From_Master_uP{
	switch(robot_state)
	{
		case: BEGIN_DISABLE
		{
			Tracking_Stuff();
                        break;
		}
	
		
		default: break;
	}

	Other Stuff...
	
	Default Routine;
}
(I put the switch statement in just in case you wanted other robot 'modes')

Code:
User_Autonmous_Mode
{
	robot_state=1;
	
	Autonomous Stuff;
}

So I assume that means that by default the camera will not start searching until autonomous starts. With this code, will it remain locked on when autonomous starts, or will it just restart the search?
__________________
Longwood's Digital Impact

 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Autonomous Code trouble The yellowdart Programming 16 21-01-2006 10:36
A Warning to Human Players During Autonomous The Lucas General Forum 21 07-04-2005 02:29
Setting Autonomous Settings from OI Tom Saxton Programming 15 27-03-2005 11:45
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11


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

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