controls vehicle movements based on othetor vehicle locations and cooperative strategy
Current fairness strategy prefers vehicles from a longer queue but can scale to a more complex strategy given a set of features.
Environment continuously selects a single vehicle to pass through the intersection (of a figure 8 track)
Path planning class allows for a different number of cars on either track
Integrated path planning class with graphic simulation so that at every time step it takes as an input the vehicles on the track and updates their locations.
Tested performance of graphic simulation with PP class and it seems to work fine
Fixed a bug where certain cars could pass through other cars
TODO
Incorporate vehicle acceleration/deceleration to allow for smoother movement as opposed to the vehicles coming to an abrupt stop.
Investigate better fairness strategies to decide vehicle to pass through the intersection
Did more research on power issue and came up with a solution for the scope of our project
After testing power on each part, decided to have different power supplies for NodeMCU and L298N driver so enough current would be available for the Wifi connection
ordered more parts to test interacting with multiple vehicles
Was able to control vehicle’s motors through a Python server
Connected NodeMCU to same WiFi network and controlled motion by byte commands
Was able to do so without glitches or power issues
Able to get an upper bound communication latency time
Progress is as expected
After spring break when the parts come, will begin testing motion with multiple connections and multiple vehicles