18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-05 16:55:32 +01:00

test(scenarios): a dual-mode vehicle's genset runs dry on the way (GE#536)

e6actad_genset_out_of_fuel: the E6ACTad of e6actad_genset_td_timetable
with a genset tank of 1 l. It leaves on its genset, which runs dry some
25 s later, about 200 m out, at full power: the log says so, the line
breaker opens, and from 300 m on the train takes no traction force.

The AI knows nothing of the genset yet (stage 3): it coasts on, and
rolled past Przystanek at 20 km/h without braking, so the case doesn't
check where the train ends.
This commit is contained in:
jerrrrycho
2026-12-03 17:57:47 +01:00
parent fa41922910
commit f41dda675f
2 changed files with 34 additions and 0 deletions
+6
View File
@@ -430,6 +430,12 @@ vehicle holds one command at a time. The AI knows nothing of the genset: it clos
and drives the timetable on it, at most 520 kW x 0.85 = 442 kW at the wheels (`traction_power`).
`e6actad_catenary_td_timetable` is the same variant without the events: it stays on the catenary and takes several
times that, which shows the check tells the two apart.
`e6actad_genset_out_of_fuel` is the genset run with a tank of 1 l on the genset (`GensetFuelCapacity=1` added to the
`Power:` line). The genset runs dry some 25 s after the train leaves, about 200 m out, at full power: the log says
`Genset of <vehicle>: out of fuel`, the genset stops, the line breaker opens on the falling voltage and from 300 m on
the train takes no traction force (`traction` `at_most` 0). The AI doesn't know why it lost the power (stage 3 of
#536): it coasts on, and on 2026-12-03 it rolled past Przystanek at 20 km/h without braking, so the case doesn't
check where the train ends.
### Heavy trains
@@ -0,0 +1,28 @@
{
"description": "GE#536 stage 2: the E6ACTad of e6actad_genset_td_timetable with a genset tank of 1 l (GensetFuelCapacity=1). Switched to its genset by the scenery before it leaves, it starts on it and the genset runs dry some 25 s after the start, about 200 m out, at full power: the log says out of fuel, the genset stops, the line breaker opens on the falling voltage and the train takes no traction force from there on. The AI knows nothing of the genset (stage 3): the case checks only what the vehicle does, not where the coasting train ends. Makes its own E6ACTad for the run (vehicle_variants g6, as e6actad_genset_td_timetable, with the tank).",
"base_scenery": "td.scn",
"time": "10:34",
"fragment": "td_timetable_genset.scn",
"vehicle_variants": [
{ "name": "g6", "from": "pkp/e6act_v2/e6actad", "fiz_from": "pkp/e6act_v2/e6acta.fiz.inc", "replace": [
["InactiveCabFlag=15", "InactiveCabFlag=15 GensetStart=Manual"],
["PhysicalLayout=3", "PhysicalLayout=3 GensetPower=520 GensetVoltage=3000 GensetIdleRPM=700 GensetMaxRPM=1800 GensetStartTime=8 GensetSpinUpTime=3 GensetPmaxRatio=0.85 GensetFuelCapacity=1"]
] }
],
"vars": {
"consist": "node -1 0 {{vehicle}} dynamic pkp\\e6act_v2 e6actad-017 {{variant_g6}} 0 headdriver 0 0 enddynamic"
},
"ini": ["gfxrenderer null"],
"track_events": {
"tdo_n1734": "event0 autotest_genset"
},
"duration": 300,
"timeout": 600,
"checks": [
{ "type": "log_contains", "pattern": "Genset of autotest_e6actad_genset_out_of_fuel: running" },
{ "type": "log_contains", "pattern": "Genset of autotest_e6actad_genset_out_of_fuel: out of fuel" },
{ "type": "starts", "min_speed": 5, "within": 180 },
{ "type": "traction_power", "max_kw": 451, "min_peak_kw": 380 },
{ "type": "traction", "from_distance": 300, "to_distance": 1200, "at_most": 0 }
]
}