mitgobla / Traffic-Improvement

Winner of PA Consulting Raspberry Pi Competition 2019 (Category 4)
MIT License
2 stars 1 forks source link

Vehicles Not in Correct Order After Moving #1

Closed Edward-Upton closed 5 years ago

Edward-Upton commented 5 years ago

Most likely due to running functions with Simpy when two vehicles are moving up the queue at similar times in the simulation which creates incorrect modifications to the "vehiclesAtLight" list for the traffic lights.

Edward-Upton commented 5 years ago

Vehicles now don't move up the list, just the first one gets popped when the light is green for it. The other vehicles will look at if the car in front has moved, wait the time it takes them to move up the queue, but not actually move up the list. This means there are no complex edits to the "vehiclesAtLight" list for each traffic light.