User Tools

Site Tools



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

Link to this comparison view

automobile-blocks-en [2018/11/12 08:56] (current)
Line 1: Line 1:
 +====== Tips concerning sensors in the car system ======
 +[[:​english#​automatic mode|{{ ​ :​automat.png}}]][[:​english|{{ ​ :​rocrail-logo-35.png}}]]
 +[[english|Content]] -> [[english#​automatic mode|Automatic Mode]] -> **[[english#​car_automobile|Car / Automobile]]**
 + \\
 +| **Note:** This is independent of the used car system. |
 +{{ :​road:​car-rocrail-enter2in.png?​600}}
 +To achieve realistic traffic as many blocks as possible are used in order to get a short sequence of cars, thus a rather dense traffic. Therefore a relatively large number of sensors is necessary making it reasonable to use only one sensor per block to reduce costs. With **[[sensors_and_blocks-en#​sensor_events|enter2in]]** and **[[sensors_and_blocks-en#​sensor_events|enter2route]]** Rocrail offers two ways to achieve this:
 + ​\\ ​
 +===== enter2in =====
 + ​\\ ​
 +The **enter2in**-sensor is a combination of a physical **enter**- and a virtual **in**-sensor. The physical sensor is placed at the beginning of a block causing the vehicle to slow down to Vmid in case the next block is occupied. After the event timer has elapsed the vehicle will stop. The distance between the physical sensor and the stopping point depends on vehicle speed, time set and breaking parameter of the respective vehicle. The stopping point thus will vary depending on vehicle and situation. Setting a shorter time between **enter** and **in** will increase accuracy but in many cases is not sufficient.
 +The vehicle can stop too soon, in which case the next car can bump in to it, or it can stop to late so it is already at the crossing or bumps into the car in front.
 + \\
 +===== enter2route =====
 + ​\\ ​
 +{{ :​road:​car-rocrail-enter2route.png?​600}}
 +The **enter2route**-sensor is virtual only. The physical sensor is the **in**-sensor placed at the end of the block within close distance of the desired stopping point. The virtual **enter** is generated by the **in**-sensor of the previous block. \\ 
 +In that case the vehicle will start braking when in leaves the previous block, so it will have reached minimum speed before touching the **in**-sensor and will come to a stop very shortly after the **in**-sensor. The worst thing that can happen is that minimum speed is reached too early, which makes the car run at slow speed for some cm, but in practice this looks quite natural. \\
 + \\
 +The reason for **enter2route** therefore is to reach a much better ​
 +predictable stopping point for your vehicles \\
 + ​\\ ​
 +====Setting up enter2route====
 +  * Place the physical **in**-sensor as described above
 +  * Declare this sensor in Rocrail
 +  * In the respective block define this sensor as **in**-sensor for a specific or all routes to the block
 +  * Define the **enter2route**-sensor leaving the sensor-ID blank. Important: The enter2route-sensor has to be defined in __every specific route__ to the block
automobile-blocks-en.txt ยท Last modified: 2018/11/12 08:56 (external edit)