chiark / gitweb /
hostside/measure-speeds: head comment mentions stopping distance capability
authorIan Jackson <ian@davenant.greenend.org.uk>
Sun, 2 Jan 2011 20:03:09 +0000 (20:03 +0000)
committerIan Jackson <ian@davenant.greenend.org.uk>
Sun, 2 Jan 2011 20:03:09 +0000 (20:03 +0000)
hostside/measure-speeds

index d14cc9cc1c788170c65cb8f5247578f198042808..d2f9949d1f5e4b5758d037cf6e28509eb80f9e39 100755 (executable)
@@ -4,6 +4,10 @@
 #  ./measure-speeds /dev/railway 2 0 `seq 1 126` |tee santafe.speeds
 #                                  ^reverse
 
+# For stop distance at speed (say) 126,
+# Put loco on track segment X5 ish, facing ANTICLOCKWISE
+#  ./measure-speeds /dev/railway 2 0 126
+
 # debugging:
 # ./measure-speeds /dev/railway 1 1 `seq 1 126` 2>&1 | perl -pe '$|=1; s/\r/\n/g' | 3<&0 tclsh8.3 <(echo 'set f [open /dev/fd/3]; proc cm {} { clock clicks -milliseconds }; set z [cm]; while {[gets $f l]>=0} { puts [format "%-10s %s" [expr {[cm]-$z}] $l] }')