>
> Question:
> If I have only one compass (CMPS03) that connects to the I2C bus on an
> R board, what is the simplest method to ensure a second R board, also
> connected via I2C, gets the same reading in near realtime? Board 1
> (with the compass) also has IR rangers that must transfer data.
> Options include:
> Only two basic units of information need to be transferred, 'Heading'
> and 'ObstacleRange'. Use DDELink? Or IO lines? Hardwired to Serial Port?
One thing you CAN'T do is connect the two LOCAL I2C buses together and
hang the sensors on the resulting single bus. The fact that the
EEPROMS would be visible to both machines and the resulting collisions
make that obvious.
oDDELink is probably workable. The host CPU gets the values and
stuffs them in the shared object. The client CPU sees the values
immediately thereafter.
The OOPic is almost useless when it comes to serial IO. I think I
would avoid that approach.
> Extra credit:
> Extensive use of Virtual Circuits
Sure, use a timer to trigger an event to read the sensors and stuff
the results. I haven't looked to see if a timer event can be slow
enough to be reasonable. Or, a first firing of the event starts the
sensing operation, a second firing grabs the values and a third firing
stuffs the results. The advantage to this is that the event code
doesn't tie up the processor for a long period of time.
>
> Show all work.
The function of my code is ALWAYS obvious to the most casual observer.
Comments are never needed because any competent person can see what I
had in mind.
Richard
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment