This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
usage:nodes:atc_controller [2019-07-02 12:30] 82.67.173.193 |
usage:nodes:atc_controller [2019-12-18 13:09] mlaunois added new commands (BB and A0); updated inventory image |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== ATC controller ====== | ====== ATC controller ====== | ||
- | {{ http:// | + | {{ :usage: |
//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< | === S< | ||
Line 41: | Line 41: | ||
''< | ''< | ||
- | * a number constituted only of digits. This represents | + | * a number constituted only of digits. This represents |
* the special value **M**, which represents the maximal speed of the train as defined by the entity definition passed to [[reference: | * the special value **M**, which represents the maximal speed of the train as defined by the entity definition passed to [[reference: | ||
Line 50: | Line 50: | ||
Brakes until the train speed reaches ''< | Brakes until the train speed reaches ''< | ||
- | ''< | + | ''< |
+ | |||
+ | 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. '' | ||
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 98: | Line 106: | ||
=== <, <=, >, >= === | === <, <=, >, >= === | ||
- | Compares the current train speed to the given speed. That speed should be a number constituted only of digits, | + | Compares the current train speed to the given speed. That speed should be a number constituted only of digits, |
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. | ||
- | ==== Examples ==== | + | Although there is no direct command, it is possible to use nested conditional commands to test for equality or inequality: |
- | === S, B === | + | < |
+ | I<8 | ||
+ | Not equal to 8 | ||
+ | E | ||
+ | | ||
+ | Not equal to 8 | ||
+ | E | ||
+ | Equal to 8 | ||
+ | ;; | ||
+ | </ | ||
+ | |||
+ | Unfortunately the command < | ||
+ | |||
+ | ==== Specific commands ==== | ||
+ | |||
+ | === A< | ||
+ | Either enables ('' | ||
+ | When disabled, the train will not trigger automatic route setting on signals based on ARS. | ||
+ | |||
+ | **This command is available only in the '' | ||
+ | |||
+ | ===== Examples | ||
+ | |||
+ | ==== S, B ==== | ||
* '' | * '' | ||
Line 111: | Line 142: | ||
* '' | * '' | ||
- | === W, R === | + | ==== W, R ==== |
* '' | * '' | ||
Line 117: | Line 148: | ||
* '' | * '' | ||
- | === OL, OR, OC === | + | ==== OL, OR, OC ==== |
* '' | * '' | ||
* '' | * '' | ||
- | === I, +/-, </< | + | ==== I, +/-, </< |
* '' | * '' |