CS 452/652 Train Tracking Part 2
(to be done in groups)
Extend you train tracking system that runs on your Real-Time
operating system to include multiple train tracking and single train route
finding. Your system interacts with the user via the WYSE or
console terminal to control these independent real-time activities:
- a digital clock
- train location to the nearest cm
- train speed in cm/s
- train's estimated time until next sensor
- Add the command:
- tr train_number
train_speed destination
set any train at the desired speed
on the shortest path to the destination point
where it will stop.
Any point on the track can be distinguished from another through the following format:
Track location format
Evaluation
This assignment will be evaluated during a short demo (5 minutes)
You will do a two-part demonstration. In one part, you will track at
least two trains accurately and with fault tolerance. In the other, you
will route a single train (no other trains on the track) to given destinations,
with some resistance to interference from the TA's.
The init command will be used to find the train(s)
The train destination command will be used to drive the train(s) to a
given location
Collision detection is not required for this assignment