chiark
/
gitweb
/
~ijackson
/
trains.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c35714
)
working on new data arrangements
author
ian
<ian>
Thu, 7 Sep 2006 11:44:26 +0000
(11:44 +0000)
committer
ian
<ian>
Thu, 7 Sep 2006 11:44:26 +0000
(11:44 +0000)
hostside/record.c
[new file with mode: 0644]
patch
|
blob
hostside/safety.h
patch
|
blob
|
history
diff --git a/hostside/record.c
b/hostside/record.c
new file mode 100644
(file)
index 0000000..
b025692
--- /dev/null
+++ b/
hostside/record.c
@@ -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>
+ */
+
diff --git
a/hostside/safety.h
b/hostside/safety.h
index b1c88fa6579e0e68413aad04596f663a61df6b56..2cb34c3adaa1c1e2894fe595f3019cfed5943dc4 100644
(file)
--- a/
hostside/safety.h
+++ b/
hostside/safety.h
@@
-31,7
+31,7
@@
typedef struct {
fixme call init_fixed_train;
int addr;
Distance head, detectable, tail;
fixme call init_fixed_train;
int addr;
Distance head, detectable, tail;
- Segment
Num 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 */
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 */