mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-22 03:15:00 +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:
36
tests/scenarios/cases/eu07_slippery_red_signal.json
Normal file
36
tests/scenarios/cases/eu07_slippery_red_signal.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user