crossing_signal
Pedestrian crossing signal for tram
Vars | |
amber_distance_threshold | |
---|---|
inbound | Inbound station |
operating_status | If us or anything else in the operation chain is broken |
outbound | Outbound station |
sensor_ref | the sensor we use |
signal_state | green, amber, or red for tram, blue if it's emag, tram missing, etc. |
Procs | |
set_signal_state | Set the signal state and update appearance. |
update_operating | Update processing state. |
wake_up | Only process if the tram is actually moving |
Var Details
amber_distance_threshold
-
Proximity thresholds for crossing signal states
-
The proc that checks the distance between the tram and crossing signal uses these vars to determine the distance between tram and signal to change
-
colors. The numbers are specifically set for Tramstation. If we get another map with crossing signals we'll have to probably subtype it or something.
-
If the value is set too high, it will cause the lights to turn red when the tram arrives at another station. You want to optimize the amount of
-
warning without turning it red unnessecarily.
-
Red: decent chance of getting hit, but if you're quick it's a decent gamble.
-
Amber: slow people may be in danger.
-
inbound
Inbound station
operating_status
If us or anything else in the operation chain is broken
outbound
Outbound station
sensor_ref
the sensor we use
signal_state
green, amber, or red for tram, blue if it's emag, tram missing, etc.
Proc Details
set_signal_state
Set the signal state and update appearance.
Arguments: new_state - the new state (XING_STATE_RED, etc) force_update - force appearance to update even if state didn't change.
update_operating
Update processing state.
Returns whether we are still processing.
wake_up
Only process if the tram is actually moving