chiark / gitweb /
Merge and end branch-hostside-wip-2008-01-25 PROPERLY; cvs up -j branch-hostside...
[trains.git] / hostside / dummy-trains.c
1 /*
2  */
3
4 FIXME this should go in a config file
5
6 #include "realtime.h"
7
8 #define NOTA_TRAIN { 0,0,0,0, "internal-error-not-a-train" }
9
10 #define SPEED_MMS2INTERN(mms /* mm/s */) \
11   (((mms) * SPEED_UNIT + 999) / 1000)
12
13 const TrainInfo info_trains[]= {
14   /* data here is all made up ! */
15   NOTA_TRAIN,
16   { SPEED_MMS2INTERN(1000), 20, 900, 20 },
17   { SPEED_MMS2INTERN(400), 10, 50, 10 },
18   { 0,0,0,0,0 }
19 };