Closed behrisch closed 6 years ago
@dkrajzew commented:
Two issues:
- It is not correct to determine the entry time by adding (myPosition - oldPos) / newSpeed to the current simulation second in any case; if a vehicle changes it's lane (probably also if it enters the lane with his front being behind the detector) this is no longer valid. Now I do not add anything if myPosition (detector position) is < than oldPos (old vehicle's front)
- Induction loops stored the last vehicle that entered them in myCurrentVehicle. The idea was to keep it for collision cases so that it may be removed when a second vehicle enters the detector before the first one leaves. In fact, this situation may happen and is valid for detectors which are near to a lane's boundary - because the vehicle which enters the detector is moved in moveFirstChecked before the one that has to leave the detector. Due to this, I now completely removed the myCurrentVehicle field and the according checks.
run
M:\Daten\Sumo\Bugreports\503_acosta_assertion\debug.sumo.cfg
with debug-built sumoassertion in MSInductLoop.cpp:255
Migrated from http://sumo.dlr.de/ticket/503