chiark / gitweb /
working on new data arrangements
authorian <ian>
Thu, 7 Sep 2006 11:44:26 +0000 (11:44 +0000)
committerian <ian>
Thu, 7 Sep 2006 11:44:26 +0000 (11:44 +0000)
hostside/record.c [new file with mode: 0644]
hostside/safety.h

diff --git a/hostside/record.c b/hostside/record.c
new file mode 100644 (file)
index 0000000..b025692
--- /dev/null
@@ -0,0 +1,11 @@
+/*
+ * ASCII-format record and config file reader/writer
+ *
+ * File format:
+ *
+ *  train <trainpn> at [-]<foredetectpn>:<maxinto>+-<uncertainty>
+ *  seg <segpn> has [-]<ownerpn>|$ <movposcomb>
+ *  train <trainpn> is #<addr> <head>+<detectable>+<tail>
+ *  train <trainpn> step <step>=<speed> <upwait>/<downwait>
+ */
+
index b1c88fa6579e0e68413aad04596f663a61df6b56..2cb34c3adaa1c1e2894fe595f3019cfed5943dc4 100644 (file)
@@ -31,7 +31,7 @@ typedef struct {
   fixme call init_fixed_train;
   int addr;
   Distance head, detectable, tail;
-  SegmentNum foredetect;   /* train's detectable part is at most maxinto   */
+  Segment *foredetect;     /* train's detectable part is at most maxinto   */
   Distance maxinto, uncertainty;   /*   into foredetect but train may be   */
   unsigned                         /*   uncertainty less far advanced      */
     backwards:1, /* train is moving backwards wrt its own front and back */