Tutorial 01: Railway interface
Preliminaries
Administrative stuff
Get all administrative things out of the way. Read the Introduction and the Technical Information chapters and set up your working environment. Do this carefully! You do not want to waste time with this kind of stuff later on.
To get yourself running create an ... ... ... ... ... account and checkout the git repository of the railway project (summer term 2014).
If you have trouble using git ask a supervisor for help!
Railway layout
Get familiar with the railway. Read the technical documentation and understand the track layout scheme.
- Technical Documentation: http://www.informatik.uni-kiel.de/~railway/
- Railway Lecture Summary: http://rtsys.informatik.uni-kiel.de/~rt-teach/ws11/v-synch/lectures/lecture05a-handout4.pdf (slides 24-48)
- Kickoff Talk:
Tasks
T1A1: Important Thoughts
Write down in own words why the railway installation is a) a real-time system and b) an embedded system.
T1A2: C Interface
Since you have checked out the project's repository already, you also downloaded the c interface of the railway installation. Look inside the railway folder inside your local repository clone and find the railway.h. There should be two interfaces, one for the simulation and another for the real railway hardway. Examine the structure of the header and try to find API functions describe in the technical documentation and try to find out where the two versions differ.
Write a .c program that implements a simple railway controler. Use the interface for the simulation and start your control with the modelGUI. The controler should work as follows:
- a
- b
- c