Friday 7 July 2017

TrafficControl: Adding Tracks to QML Map (part 2)

In order to make the map more useful, I had to separate the duplicate tracks on the map. I did this by adding an offset to the coordinates in the polyline.

A queue was also added for each track, in order to track how many trains are on the track. The queue will also help detecting whether the tracks will really follow a First In-First Out order.

The visualization rules will be defined in the QML JavaScripts. C++ will send the new states of the stations and trains.



The next steps will be to fix the tracks in QML and to add the trains to the QML map and update them.

No comments:

Post a Comment