17Communication

17Communication - Communication Comp106 IR Port • Both...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Communication Comp106 IR Port • Both input and output • We can use it to send and receive messages from other robots • We can send single integer messages between robots
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Multiple Robots • When we have two robots, one would be called the “master” and the other is called the “slave” • Master give commands, while slave follows them Example (Slave) • The slave continuously waits for commands • Get the commands from the IR port • Must call the ClearMessage() function first, before calling the Message() function.
Background image of page 2
Example (Master) • Master sends out messages to the slave • Message can be any number from 0 to 255 Protocol • In the previous example, we have defined a protocol • A protocol contains the rules of communication • 1 means forward, 2 means backward, and 3 means stop.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Computer Networks • A network contains two or more computers hooked up together such that they can communicate with each other • Each network must have its own protocol • The Internet uses the TCP/IP protocol
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/16/2010 for the course COMP 106 taught by Professor Jasonmadar during the Fall '07 term at Capilano.

Page1 / 7

17Communication - Communication Comp106 IR Port • Both...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online