mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-19 00:35:59 +01:00
Since #187 the braking curve towards a stop or a lower speed leaves room for the time the brake takes to respond, as long as the train brake handle is still in the running position. The horizon it takes has the AI's old look-ahead, (1 - a0) * 30/3.6 s, about 7-8 s, as its floor; at 60 km/h that is over 100 m, up to half of the braking distance. Stops at signals were tuned with it. A vehicle that brakes with its independent brake (an SN61, a light engine) leaves the train brake handle where it is, so it kept that room the whole way in: it braked early and gently, came down to 10 km/h some 50 m out and crawled the rest, applying power and the brake in turn. Making for a passenger stop (the point the train is to stop at, found by the scan of the route, is a W4), the room now covers only the time the brake takes to fill (half its application time), without the look-ahead floor. Stops at signals and anything else keep the room as it was. When a vehicle ahead is closer than the stop the scan found, the train makes for that vehicle, so the room is the full one again.