View Single Post
  #4   Spotlight this post!  
Unread 04-02-2007, 20:26
Mitch's Avatar
Mitch Mitch is offline
Registered User
FRC #1197 (TorBots)
Team Role: Programmer
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Southern California
Posts: 7
Mitch is an unknown quantity at this point
Re: Enabling Multiple Light Tracking Using Kevin's Code

I was also wondering the usefulness of implementing multiple light tracking...but I thought I'd try it out since most other things are finished.

I am having a problem which is very strange... I am just going to go ahead and post the C here. This is the function to set the camera to poll mode. Just to test it, I'm actually setting it in STATE_TWO of the camera initialization since nothing is happening there. Is this okay? Furthermore, I am not receiving an ACK or NCK, leading me to believe the way I am setting PM to 1 is incorrrect.

Code:
void Set_Poll_Mode(void)
{
	Write_Camera_Serial_Port('P');
	Write_Camera_Serial_Port('M');
	Write_Camera_Serial_Port(' ');
	Write_Camera_Serial_Port('1');
	Write_Camera_Serial_Port('\r');
}