Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: fix detection zone creation around crossing node #6906

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

bougue-pe
Copy link
Contributor

For a given crossing node, linking tracks North to South and East to West: A train detected coming from North can only be on North or South track (until detected again).
But the detection zone's role is to protect from conflicts, and there may be a conflicting train from East to West.
So the detection zone of a node must comprise all track section endpoints tied to the node.

@bougue-pe bougue-pe requested a review from multun March 14, 2024 17:08
@bougue-pe bougue-pe requested a review from a team as a code owner March 14, 2024 17:08
For a given crossing linking tracks North to South and East to West:
A train detected coming from North can only be on North or South
track (until detected again).
But the detection zone's role is to protect from conflicts, and there may be a
conflicting train from East to West.
So the detection zone of a node must comprise all track section endpoints
tied to the node.
@bougue-pe bougue-pe force-pushed the peb/core/fix_crossing_detection_zone branch from 6b3d915 to 60d4ecb Compare March 14, 2024 17:09
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.65%. Comparing base (d8e883a) to head (60d4ecb).

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #6906      +/-   ##
============================================
- Coverage     28.66%   28.65%   -0.01%     
- Complexity     2235     2238       +3     
============================================
  Files          1063     1063              
  Lines        131643   131651       +8     
  Branches       2647     2650       +3     
============================================
  Hits          37729    37729              
- Misses        92393    92401       +8     
  Partials       1521     1521              
Flag Coverage Δ
core 79.80% <100.00%> (+0.01%) ⬆️
editoast 74.90% <ø> (-0.04%) ⬇️
front 8.92% <ø> (ø)
gateway 2.49% <ø> (ø)
railjson_generator 87.26% <ø> (ø)
tests 83.07% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@multun multun added this pull request to the merge queue Mar 14, 2024
Merged via the queue into dev with commit e4feee7 Mar 14, 2024
22 checks passed
@multun multun deleted the peb/core/fix_crossing_detection_zone branch March 14, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants