donderdag 19 mei 2011

Implementation Communication completed

Today the communication has been fully integrated in the main brick files.

The three light sensors are connected to brick two. Brick two reads out the light values and interprets them. The interpreted value’s now have to be sent to brick one. The motors of the wheels and the encoders connected to the wheels are connected to brick one. Brick one receives the interpreted value’s send by brick two and is able to take measures based on these value’s (brake, drive, turn, ect.).

Experienced Difficulties.
We did experience some trouble when integration the communication software in the main files (main file of brick one and brick two). We had some trouble with the while loop in the main file containing the read and receive threads used for the communication. The trouble was that after passing trough a few loops, brick one would no longer receive the send values. It turned out we had to terminate the treads at the end of the while loop, otherwise every loop new threads would open.

Geen opmerkingen:

Een reactie posten