Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Time elapsed since the last green switch

If you did not modify the phase duration from its default, then:
previousSwitch = traci.trafficlight.getNextSwitch(tlsiD) - traci.trafficlight.getPhaseDuration(tlsID)

regards,
Jakob

Am Mi., 10. Apr. 2019 um 18:55 Uhr schrieb Kamble Akash Ankush cs17m018 <cs17m018@xxxxxxxxxxxxxxxx>:
Hi,
    Can I get the amount of time elapsed since a particular phase of tls program started? TraCI allows to get the time at which the next switch is going to happen but not previous one. How can I get that?
Thanks in advance.
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top