chiark / gitweb /
safety.h: comment Traininfo.ts and .xs
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Mon, 8 Nov 2010 01:36:40 +0000 (01:36 +0000)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Mon, 8 Nov 2010 01:36:46 +0000 (01:36 +0000)
hostside/safety.h

index 263e219dbb6b1452c11ef2d12e9255849908ff48..ace543ea0a4690d91f3ed1dd0864b641c0f27780 100644 (file)
@@ -27,9 +27,9 @@ typedef struct MovPosChange MovPosChange;
 #define SPEEDSTEPS 126
 
 typedef struct {
-  float speed;
-  Distance xs;
-  TimeInterval ts;
+  float speed; /* applies to all speeds up to and including this one */
+  Distance xs; /* max stopping distance */
+  TimeInterval ts; /* max stopping time */
 } SpeedRange;
 
 struct Train {