Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tasks - DEADLINE 22.04.2014

(Submission via Confluence)

T1A1: Important Thoughts

Write down in own words why the railway installation is a) a real-time system, b) an embedded system, and c) a safety-critical system.

 

T1A2: C Interface

Since you have already checked out the project's repository, you also downloaded the c interface of the railway installation. Look inside the railway folder inside your local repository clone. You will find the example controller presented at the kickoff meeting the RailwayControllerC folder. Use this stub to create your own railway controller.

...

  • The train stationed at KH_ST_1 should travel to IC_ST_3 1 with a speed of 60 and against the main travel direction.
  • Upon entering the IC station the speed should be reduced to 20.
  • Once the train reached its target platform, stop it (with brakes) and wait for 5 seconds.
  • Subsequently, the train should return to its home platform at KH_ST_1 (without changing its direction) with a speed of 60.
  • Equivalent to the IC station the train should reduce its speed when entering the KH station and wait for 5 seconds when its platform is reached.
  • Eventually, the cycle starts again.

Before writing the c code make a plan how to achieve the task. Which tracks and point switches must be set when. Write down your plan briefly and program your controller. Eventually, test your controller with the simulation environment and the modelGUI.

IMPORTANT: In order to run the controller properly (with its configuration file) you must execute it from its parent directory, i.e., ./Executables/SampleController!

T1A3: Reality vs. Simulation

Subsequent to fixing superflous bugs (in A2), what can you observe?  Write down all things that differ from your initial expectations and explain why the railway/simulation did behave in a different way. Additionally list all differences that you that you expect to exist between the simulation and the real model railway. Therefore inspect the railway documentation and experiment with the simulation (sources).

...