[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Time elapsed since the last green switch
|
Will it not work if the duration of one or more phases is changed?
If you did not modify the phase duration from its default, then:
previousSwitch = traci.trafficlight.getNextSwitch(tlsiD) - traci.trafficlight.getPhaseDuration(tlsID)
regards,
Jakob
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
_______________________________________________
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