User Tools

Site Tools


usage:nodes:atc_controller

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
usage:nodes:atc_controller [2019-11-06 14:51]
blockhead [Conditional statements] missing semicolons
usage:nodes:atc_controller [2019-12-03 11:40]
blockhead Metres per second
Line 41: Line 41:
  
 ''<speed>'' can be either: ''<speed>'' can be either:
-  * a number constituted only of digits. This represents an [[usage:trains#advtrains_speed_unit|Advtrains speed unit]], or+  * a number constituted only of digits. This represents the speed in metres per second (1 m/s = 3.6 km/h), or
   * the special value **M**, which represents the maximal speed of the train as defined by the entity definition passed to [[reference:advtrains:register_wagon|advtrains.register_wagon]].   * the special value **M**, which represents the maximal speed of the train as defined by the entity definition passed to [[reference:advtrains:register_wagon|advtrains.register_wagon]].
  
Line 50: Line 50:
 Brakes until the train speed reaches ''<speed>''. The train applies brakes if slower than current speed, and does nothing if not. Brakes until the train speed reaches ''<speed>''. The train applies brakes if slower than current speed, and does nothing if not.
  
-''<speed>'' should be a number constituted only of digits, representing an [[usage:trains#advtrains_speed_unit|Advtrains speed unit]].+''<speed>'' should be a number constituted only of digits, representing speed in metres per second.
  
 Execution of the ATC command continues **immediately**. Execution of the ATC command continues **immediately**.
Line 98: Line 98:
 === <, <=, >, >= === === <, <=, >, >= ===
  
-Compares the current train speed to the given speed. That speed should be a number constituted only of digits, representing an [[usage:trains#advtrains_speed_unit|Advtrains speed unit]].+Compares the current train speed to the given speed. That speed should be a number constituted only of digits, and in metres per second.
  
 It is not currently possible to test directly the speed for equality or inequality. It is not currently possible to test directly the speed for equality or inequality.
usage/nodes/atc_controller.txt · Last modified: 2022-06-27 04:32 by blockhead