If the system detects an approaching object on the main road and on the side road, it gives a green signal to the driver on the main road and a red signal to the driver on the side road.
And if the priority is set to an object type, when two objects meet, it gives priority to the one we defined.