Overspeed Event

Lukasza year ago

Hi,

I noticed that since the attribute minimalDuration was added to over speeding events, it takes 2 frames to generate an event.
This causes that when the vehicle exceeds the speed for a moment, the event is not generated even if the attribute minimalDuration is 0.

I suggest adding a condition:
(position != null && position.getSpeed() > speedLimit && minimalDuration ==0) then generate event.

What do you think about it?

Anton Tananaeva year ago

I guess it makes sense. Feel free to send a pull request.

Lukasza year ago

I tried to make a pull request but I'm afraid that I'll break something (I don't understand the mechanism of not repeating events) that's why I created an entry in the issue section