mitgobla / Traffic-Improvement

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

Vehicles not checking to move forward #2

Closed mitgobla closed 5 years ago

mitgobla commented 5 years ago

A vehicle may move forward once into an empty space or if the car in front has successfully moved. However, some vehicles remain stuck for the entire simulation period after running once.

Edward-Upton commented 5 years ago

Redesign of how vehicles look at the vehicle in front. Each vehicle has a "moved" event variable that gets updated when they leave the queue or move up the queue. The vehicle behind sees this change and then runs the functions necessary.