Page tree

Versions Compared

Key

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

Train numbering

Variable trainNum is used to identify trains.

The assignment of numbers to trains is chosen as followed

trainNumStarting track
0KH_ST_1
1KH_ST_2
2KH_ST_3 (r)
3KH_ST_4 (r)
4IC_ST_3
5IC_ST_2
6OC_ST_2
7OC_ST_1
8KH_ST_5
9IC_ST_1
10OC_ST_3

Logging

Variable debug indicates verbose logging.

Prefix of all log messages must be : [trainnum][ST-ST]

Use println function to produce textual output. Do not use printf or other io functions, because output may not be flushed correctlyThe documentation of the Railway-Project is separated into two parts.

  1. Modelling of the controller logic in SCCharts.
  2. C code environment to connect to the railway and execute the compiled SCChart controller.