SE-631Real-Time System Design and Implementation
Lab Assignment 7 (Due Monday, April 30)Create a project which controls the motion of two trains in the real-time lab according to the following requirements: 1. Train #1 (address: 60) is initially parked in front of stopper S2, and train #2 (address 80) is initially parked in front of stopper S3. 2. Train #1 starts to move earlier than train #2 by 4 seconds. 3. When train #1 hits sensor 11, it reverses the moving direction, and then moves along path 11-17-12-9-14. After that, the train will circle the outmost circle (14-27-24-10-1-2-4-14) clock-wise for three laps. It will finally stop in front of S1. 4. Train #2 will follow train #1 all the way without collision with train #1 till stop between sensors 28 and 29. 5. When moving along the outmost circle, the two trains always have different speeds. The work is due Monday, April 30. On the due day, each team is required to give a demo to the class and send me the source code as well.
|
||
Back Last modified: 04/08/2007 |
||