Refactored function AdaptToJunctionLeader#11583
Refactored function AdaptToJunctionLeader#11583Domsall wants to merge 2 commits intoeclipse-sumo:mainfrom
Conversation
Signed-off-by: Dominik Salles <dominik.salles@fkfs.de>
Signed-off-by: Dominik Salles <dominik.salles@fkfs.de>
|
As far as I understood, the goal of this PR is to eliminate the line |
|
That is exact the line I had the most problems with... In all other cases, the changes work as expected for the EIDM (with CURRENT as input for stopSpeed). |
|
Frankly, I find the current code in that function hard to read and this PR isn't helping (by adding some redundancy). I'll try to think of ways to refactor the original to both improve readability and get rid of the MAX calls. |
|
Yes, I had a hard time understanding/changing it all, too. But it works great by comparing, if the vehicle's following speed is sufficient or if the vehicle needs to stop at the junction. Thanks in advance! |
this should not change any model except EIDM (one EIDM test changed as expected)