Skip to content

Program running out of sync after arbitrary amount of time #1

Description

@xopr

When running two traffic lights, eventually they will go out of sync and switch to "maintenance mode"

STEPS TO REPRODUCE

  • start two traffic lights
  • wait a couple of minutes

CURRENT RESULT

  • "maintenance/blink mode" will be activated by one of the lights, taking the other one with it

EXPECTED RESULT

  • both should just run as normal, handing off / releasing the intersection for one another

ADDITIONAL NOTES

  • most likely, one of the sent commands is not received (properly) by the other which will trigger maintenance mode due to timeout
  • this might be mitigated by repeatedly sending the "red" and "release intersection" until the other light responds with "standby" and "prepare green" respectively
  • maybe rename "prepare green" to "take intersection"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions