Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different timed traffic light programs, configurable per daytime interval #128

Open
VictorPhilipp opened this issue Mar 3, 2019 · 8 comments
Labels
feature A new distinct feature TRAFFIC LIGHTS Feature: Traffic lights - toggle, timed, etc

Comments

@VictorPhilipp
Copy link
Collaborator

@VictorPhilipp VictorPhilipp added the feature A new distinct feature label Mar 3, 2019
@originalfoo
Copy link
Member

This would be essential if we were to also implement "Tidal Lanes" #122

@VictorPhilipp
Copy link
Collaborator Author

Migrated comment:
"At specific intervals, priority signs may take over controlling the junction. The traffic light then flashes yellow. (@GordonDry)"

@VictorPhilipp
Copy link
Collaborator Author

Migrated comment:
"Not sure if this should go here, but here goes:
Provide the ability to mark one state of a timed light plan as the "default" or "rest" state. I'll give an example to demonstrate the use of this feature.

There is an intersection of an arterial road and a collector road. There needs to be a traffic light (instead of priority signs) because there is a heavy volume on the arterial road. The volume coming from the collector road is very light. We have a timing plan such that the maximum amount of time cars would have to queue on the collector road is 45 seconds (aka the max timer of arterial road). The arterial road is in a green state, the max timer has started counting down from 45, but there are no cars in the queue on the collector road. The states will cycle at the end of 45 seconds, even though there are no calls for service on any conflicting movement (wait = 0). The arterial road will cycle to red until all the other states are cycled through. If we could set the state that serves the arterial road as the "default" or "rest" state, then if the wait value is equal to 0, it would not cycle to the next state.

Ideas:

  1. If the active state is "default/rest", and wait value = 0, then do not start max timer. When wait value > 0 (a car has queued for service on a conflicting movement), begin the max timer. The max timer runs out due to heavy volume, and the state terminates as normal, moving to the next state in the timing plan.

  2. If the current state is NOT the "default/rest" state, and flow = 0 and wait = 0, immediately terminate the current state and jump to the "default/rest" state (regardless of current position in timing plan).

Assumptions:

  1. Players would (optionally) indicate which state is the "default/rest" state in their timing plan (state with heaviest anticipated volume/flow).
  2. If player does not designate the "default/rest" state, the timing plan will operate as it currently does."

VictorPhilipp added a commit that referenced this issue Mar 14, 2019
@brazenest-zz
Copy link

Do we have an estimate of the work required for this feature? Reads like "rest on green" would be a minor mod of the timer.

@originalfoo
Copy link
Member

originalfoo commented Mar 29, 2019

Part Time Signals

In UK, usually on roundabouts near motorways (highways), traffic lights often only operate during rush hour or certain times of day. In evenings or when there is low traffic they switch off to allow traffic to move more freely (follow normal priority rules, with traffic usually yielding).

https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/9209/traffic-signals-low-demand-periods.pdf

There are also trials of using them on slip roads for traffic joining a motorway during rush hour: https://www.youtube.com/watch?v=xv6DOvNfzVQ

The part time signals are usually visually different to normal signals; part time traffic lights generally have a big yellow border around them as shown in video above (unlike the small white border as shown in image at the end of this comment).

Part time signals can't be used when there is a pedestrian crossing controlled by same signals (although vehicle-only signals on same road can still be part time) - visually impaired people wouldn't know if they are on or off: http://www.roadsafetyknowledgecentre.org.uk/help-forum/835.html

Where part time signals exist (in UK at least) they are accompanied by this traffic sign (in which case traffic would use normal priority rules):

TSRGD_543 1

However, in some cases traffic must stop rather than yield, in which case this sign is used instead:

part time

@originalfoo
Copy link
Member

In some countries traffic lights just have a yellow flashing light when 'not in use'.

Some info in wikipedia: https://en.wikipedia.org/wiki/Traffic_light_control_and_coordination#Other_types_of_control

@originalfoo
Copy link
Member

Note that if we could detect power failure (as the game does for buildings), that could also affect traffic lights. Will create new issue for that.

@originalfoo
Copy link
Member

Part time signals could be dependent on traffic volume; if there is low traffic the lights could be disabled.

@originalfoo originalfoo added TRAFFIC LIGHTS Feature: Traffic lights - toggle, timed, etc Settings Road config, mod options, config xml labels Aug 11, 2019
@originalfoo originalfoo removed the Settings Road config, mod options, config xml label Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new distinct feature TRAFFIC LIGHTS Feature: Traffic lights - toggle, timed, etc
Projects
None yet
Development

No branches or pull requests

3 participants