-
Notifications
You must be signed in to change notification settings - Fork 42
Description
When an already passed BG is (re-)announced via radio, this in some situations causes an unintended re-arrangement of BGs in the list of BGs, calculateTrainPosition provides.
The bug results in some BGs disappearing from the list or hopping around.
(By the way: @BerndHekele: It's not comprehensible for me, why the EVC on the track is robust against these effects, even when the error flags are ignored.)
A bug patch is provided by disabling the re-arrangement function for now, so that the list of BGs is maintained correctly for the needs of the Utrecht-Amsterdam track.
The bug has to be fixed by a correction of addAnnouncedBGs.mergeBGsOnTrack.mergeBGOnTrack.indexOfBGOnTrack and re-enabling the re-arrangement in addAnnouncedBGs.mergeBGsOnTrack.mergeBGOnTrack.
Previously, the need and detailed requirements of a re-arrangement function should be figured out.
The bug fix can be left over for post-openETCS ages.