CS452 - Real-Time Programming - Winter 2013

Lecture 18 - Projects

Pubilc Service Annoucements

  1. First train control demo.
  2. Measurement is an activity that is not speeded up by being smart.
  3. Exam: 16.00, 11 April to 18.30 12 April.

Projects

1. Train style

Give trains roles and objectives. For example,

Another example,

Another example,

2. Game style: AI

The track is a graph.

Many games are played on graphs

For example, watchmen and bandit.

Another example, PAC man

3. Game style: interactive

In the games you play for pleasure, the user normally controls one or more of the game entities.

Students often want to make an interactive project. It has been done successfully in the past, but constructing a usable interface is a challenge.

4. Stunts

Make the trains do something neat that seems impossible. All I have is examples.

  1. Dancing trains.
  2. Trains that follow closely, like the Aramis transit system.

Calibration

1. Calibrating Stopping Distance

2. Calibrating Constant Velocity

3. Calibrating Acceleration and Deceleration: Minimal

How Long does it Take to Stop?

Try the following exercise.

  1. Choose a sensor.
  2. Put the train on a course that will cross the sensor.
  3. Run the train at a constant speed.
  4. Give the speed zero command at a location that stops the train with its contact on the sensor.
  5. Calculate the time between when you gave the command and when the sensor triggered.
  6. Look for regularities.

How Long does it Take to Start and Stop?

4. Calibrating Acceleration and Deceleration: Doing Better

Modelling Velocity


Return to: