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
usage:nodes:atc_controller [2019/12/03 11:40]
blockhead Metres per second
usage:nodes:atc_controller [2019/12/18 13:09] (current)
mlaunois added new commands (BB and A0); updated inventory image
Line 1: Line 1:
 ====== ATC controller ====== ====== ATC controller ======
-{{ http://​git.bananach.space/​advtrains.git/​plain/​advtrains_train_track/​textures/​advtrains_dtrack_atc_placer.png?​nolink&​50 ​}}+{{ :usage:​nodes:​advtrains_dtrack_atc_placer.png?​80 }}
 //Unleash the full power of Advtrains by sending Automatic Train Control commands.// //Unleash the full power of Advtrains by sending Automatic Train Control commands.//
  
-//Note: this page has been written for Advtrains 2.0.1 TSS and Minetest 5.1.0. Examples and practices described in this page don't take advantage of improvements introduced in later releases.//+//Note: this page has been written for Advtrains 2.1.0 and Minetest 5.1.0. Examples and practices described in this page don't take advantage of improvements introduced in later releases.//
  
 ===== Properties ===== ===== Properties =====
Line 35: Line 35:
 In ATC commands, spaces are ignored and can be inserted as needed. In ATC commands, spaces are ignored and can be inserted as needed.
  
-==== Simple directives ​====+==== Speed commands ​====
 === S<​speed>​ === === S<​speed>​ ===
  
Line 51: Line 51:
  
 ''<​speed>''​ should be a number constituted only of digits, representing a speed in metres per second. ''<​speed>''​ should be a number constituted only of digits, representing a speed in metres per second.
 +
 +Execution of the ATC command continues **immediately**.
 +
 +=== BB ===
 +
 +Activates the emergency brake. In this mode, the deceleration is higher than with standard brake (i.e. ''​B0''​).
  
 Execution of the ATC command continues **immediately**. Execution of the ATC command continues **immediately**.
Line 63: Line 69:
  
 Reverses movement direction of train. Has only effect while the train is standing. Reverses movement direction of train. Has only effect while the train is standing.
 +
 +==== Door commands ====
  
 === OL, OR === === OL, OR ===
Line 116: Line 124:
 Unfortunately the command <​code>​I+I<​=8I>​=8B0;;;</​code>​ can't be parsed and the parser complains. For now you will have to not nest I+ commands inside I< commands. Unfortunately the command <​code>​I+I<​=8I>​=8B0;;;</​code>​ can't be parsed and the parser complains. For now you will have to not nest I+ commands inside I< commands.
  
-==== Examples ==== +==== Specific commands ==== 
-=== S, B ===+ 
 +=== A<​enable_interlocking>​ === 
 +Either enables (''​A1''​) or disables (''​A0''​) interlocking on the train. ​  
 +When disabled, the train will not trigger automatic route setting on signals based on ARS. 
 + 
 +**This command is available only in the ''​[[http://​git.bananach.space/​advtrains.git/​tree/?​h=luaatc-extensions|luaatc-extensions]]''​ branch of Advtrains.** 
 + 
 +===== Examples ​===== 
 + 
 +==== S, B ====
  
   * ''​SM'':​ accelerate to maximum speed   * ''​SM'':​ accelerate to maximum speed
Line 125: Line 142:
   * ''​S0 B3''​ or ''​B3 S0'':​ brake to 3, then roll to stand.   * ''​S0 B3''​ or ''​B3 S0'':​ brake to 3, then roll to stand.
  
-=== W, R ===+==== W, R ====
  
   * ''​S5 W'':​ set target speed to 5 (~ 18 km/h), and wait for speed to be 5   * ''​S5 W'':​ set target speed to 5 (~ 18 km/h), and wait for speed to be 5
Line 131: Line 148:
   * ''​B0 W D10 SM'':​ brake to stand, wait 10 seconds after the train stopped, and reverse direction of train   * ''​B0 W D10 SM'':​ brake to stand, wait 10 seconds after the train stopped, and reverse direction of train
  
-=== OL, OR, OC ===+==== OL, OR, OC ====
  
   * ''​B0 W OL D10 OC D1 SM'':​ example of train stopping at a standard station with doors opening on the left   * ''​B0 W OL D10 OC D1 SM'':​ example of train stopping at a standard station with doors opening on the left
   * ''​B0 W OL R D20 OC D1 SM'':​ example of train stopping at a terminus station, with returning in opposite direction   * ''​B0 W OL R D20 OC D1 SM'':​ example of train stopping at a terminus station, with returning in opposite direction
  
-=== I, +/-, </<​=/>/>​= ===+==== I, +/-, </<​=/>/>​====
  
   * ''​I + S2;'':​ if the train is going in the right direction, set target speed to 2   * ''​I + S2;'':​ if the train is going in the right direction, set target speed to 2
usage/nodes/atc_controller.txt · Last modified: 2019/12/18 13:09 by mlaunois