View Single Post
  #1   Spotlight this post!  
Unread 24-01-2006, 13:58
tribotec_ca88's Avatar
tribotec_ca88 tribotec_ca88 is offline
FIRST-a-holic
AKA: Camila Fitzgibbon
FRC #1382 (Tribotec Team)
Team Role: Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: São José dos Campos, Brazil
Posts: 194
tribotec_ca88 is just really nicetribotec_ca88 is just really nicetribotec_ca88 is just really nicetribotec_ca88 is just really nicetribotec_ca88 is just really nice
Send a message via ICQ to tribotec_ca88 Send a message via MSN to tribotec_ca88 Send a message via Yahoo to tribotec_ca88
Question Serial Commands on MPLAB

Just to check and see if i'm thinking straightforward here...
our team started to work with a few serial commands on MPLAB used to communicate with the camera. As an example, we wrote the following code for the SL (sleep) command:

void Sleep_Mode(unsigned char active)
{
Write_Camera_Serial_Port('S');
Write_Camera_Serial_Port('L');
Write_Camera_Serial_Port(1);
Write_Camera_Serial_Port(active);
Write_Camera_Serial_Port('\r');
}

First off, one point we were discussing was related as to whether the "Write_Camera_Serial_Port('\r');" was necessary or not. Secondly, should the function return any values whatsoever?...

Any help at all would be greatly appreciated, as we're still a bit unsure as to how these serial commands work properly...so here's just a callout to all of you programmers out there who are less "confused"...

Thanks ...
__________________
1382 Tribotec Team - Brazil
-----------------------------------------------
2005 NJ Regional GM Industrial Design Award
2005 NJ Regional Website Excellence Award
2004 NJ Regional Semifinalists
-----------------------------------------------

Last edited by tribotec_ca88 : 24-01-2006 at 14:08.