View Single Post
  #11   Spotlight this post!  
Unread 07-12-2003, 16:37
Dave... Dave... is offline
Registered User
#0005 (Robocards)
 
Join Date: Aug 2001
Location: AFL/MHS Melvindale, MI
Posts: 64
Dave... will become famous soon enough
Re: EduBot and USART ports

Quote:
Originally Posted by Rickertsen2
...The first important thing this code does it to configure the buffers i described above. The majority of the code is in a loop, which runs three times. The first time it reads the first sensor, the second time the second sensor... since you are only using one sensor you can kill the whole loop thing as well as the buffer code.

...We are trying to read in a three byte packet. The problem is we have no syncronize when we start recieving and when the sensor starts transmitting.
James,
This actually makes quite a bit of sense. Even though we have only have one sensor, it too sends three bytes in a row. If the digital compass has a clk, it will send data in sync with the clk signal. If we tell it to operate in conitunous mode, it sends the three bytes and then waits 480ms before sending the next packet.

I'll try adding the sensors.h file to our workspace.

Dave...
__________________
"...don't worry about that mechanical problem, Dave can fix it in the programming..."