ts2 / ts2-sim-server

TS2 SimServer, the core of the TS2 Simulator
https://ts2.github.io
GNU General Public License v2.0
5 stars 9 forks source link

Fixed track circuit based simulations #20

Closed npiganeau closed 5 years ago

npiganeau commented 5 years ago

Fixed signal updates from next signal

npiganeau commented 5 years ago

Needs fix when new route is set just behind a train, entering signal does not update when train leaves the block.

codecov[bot] commented 5 years ago

Codecov Report

Merging #20 into master will increase coverage by 3.44%. The diff coverage is 89.65%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   72.51%   75.95%   +3.44%     
==========================================
  Files          37       37              
  Lines        2405     2425      +20     
==========================================
+ Hits         1744     1842      +98     
+ Misses        545      472      -73     
+ Partials      116      111       -5
Impacted Files Coverage Δ
simulation/signal_conditions.go 80.18% <100%> (+6.3%) :arrow_up:
simulation/trains.go 46.38% <100%> (+3.76%) :arrow_up:
simulation/simulation.go 87.24% <100%> (+0.26%) :arrow_up:
simulation/track_signals.go 80.88% <82.35%> (+9.12%) :arrow_up:
simulation/position.go 61.79% <0%> (+2.24%) :arrow_up:
simulation/track_points.go 85.07% <0%> (+5.97%) :arrow_up:
simulation/track_items.go 82.51% <0%> (+6.55%) :arrow_up:
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5d3be9f...7e20cb6. Read the comment docs.