18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 18:05:01 +01:00

test: slippery rail skid cases, wheelslip and vehicle speed checks

- physicslog rows keep all columns (text ones as None), checks can read
  the wheelslip flag and the new vehicle speed column
- slips: the lead vehicle's wheels slip at some point (makes sure a
  slippery rail case does what it's meant to)
- slip_clears: once stopped, the wheels stop slipping within N seconds
- holds_still: once stopped, the vehicle doesn't creep, by vehicle speed
- td_red_signal_moving.scn: the red signal case starting already moving
- eu07_slippery_red_signal / eu07_slippery_push_red_signal: skid on
  braking for the red signal with track friction 0.03; the pushing one
  fails without the fix for eu07/maszyna#479 (stays skidding, creeps)
- sn61_td_timetable: stop hold 5 -> 2 s, the railcar arrives 5-7 s
  before its departure time, so 5 s made the case flaky
This commit is contained in:
jerrrrycho
2026-10-14 14:11:54 +02:00
parent fe9e2f77c2
commit 6209e16558
6 changed files with 156 additions and 6 deletions

View File

@@ -0,0 +1,36 @@
{
"description": "EU07 pushing three coaches on td.scn with slippery rail and no route set, starting at 30 km/h: brakes for the exit signal at stop and skids. Pushed by the train it doesn't roll back at the stop, so it used to stay skidding on locked wheels with the brakes capped by the sliding adhesion and creep (eu07/maszyna#479).",
"base_scenery": "td.scn",
"time": "10:34",
"track_friction": 0.03,
"fragment": "td_red_signal_moving.scn",
"vars": {
"velocity": "30",
"consist": [
"node -1 0 {{vehicle}}_w1 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 115 0 enddynamic",
"node -1 0 {{vehicle}}_w2 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608011-6 BDHPUMN_NG_1 0 nobody 115 0 enddynamic",
"node -1 0 {{vehicle}}_w3 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 115 0 enddynamic",
"node -1 0 {{vehicle}} dynamic pkp\\4e_v1 4e-004 4e 0 headdriver 0 0 enddynamic"
]
},
"duration": 240,
"timeout": 900,
"checks": [
{
"type": "slips",
"within": 60
},
{
"type": "slip_clears",
"moving_speed": 5,
"stop_speed": 0.05,
"within": 5
},
{
"type": "holds_still",
"moving_speed": 5,
"stop_speed": 0.05,
"max_distance": 0.01
}
]
}

View File

@@ -0,0 +1,36 @@
{
"description": "EU07 with three coaches on td.scn with slippery rail and no route set, starting at 30 km/h: brakes for the exit signal at stop and skids, then the skid ends and the train holds still.",
"base_scenery": "td.scn",
"time": "10:34",
"track_friction": 0.03,
"fragment": "td_red_signal_moving.scn",
"vars": {
"velocity": "30",
"consist": [
"node -1 0 {{vehicle}} dynamic pkp\\4e_v1 4e-004 4e 0 headdriver 0 0 enddynamic",
"node -1 0 {{vehicle}}_w1 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 115 0 enddynamic",
"node -1 0 {{vehicle}}_w2 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608011-6 BDHPUMN_NG_1 0 nobody 115 0 enddynamic",
"node -1 0 {{vehicle}}_w3 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 115 0 enddynamic"
]
},
"duration": 240,
"timeout": 900,
"checks": [
{
"type": "slips",
"within": 60
},
{
"type": "slip_clears",
"moving_speed": 5,
"stop_speed": 0.05,
"within": 5
},
{
"type": "holds_still",
"moving_speed": 5,
"stop_speed": 0.05,
"max_distance": 0.01
}
]
}

View File

@@ -12,6 +12,6 @@
{ "type": "starts", "min_speed": 20, "within": 150 },
{ "type": "max_speed", "limit": 90, "tolerance": 3 },
{ "type": "brakes", "min_pressure": 0.5 },
{ "type": "stops", "moving_speed": 20, "stop_speed": 0.5, "hold": 5 }
{ "type": "stops", "moving_speed": 20, "stop_speed": 0.5, "hold": 2 }
]
}

View File

@@ -0,0 +1,6 @@
// added by tests/scenarios/run.py to td.scn, whose own trainsets were removed.
// like td_red_signal.scn (no route, the exit signal stacja1_j about 150 m ahead stays at stop),
// but the train starts already moving at {{velocity}} km/h, so it has to brake right away.
trainset td/rozklad tdo_n1734 0.0 {{velocity}}
{{consist}}
endtrainset