Skip to content

The traffic light FSM implementation for deviceShifu #547

Open
@kris21he

Description

@kris21he

Is your feature request related to a problem? Please describe.

I want to use FSM to represent the traffic light change logic, take the deviceShifu mimic the behaviour of the traffic light

Describe the solution you'd like

  1. The traffic light has RED, YELLOW, GREEN states
  2. The light can change from RED to GREEN
  3. The light can change from GREEN to YELLOW
  4. The light can change from YELLOW to RED
  5. The light can not change any other state except above rules

Additional context
use https://github.com/looplab/fsm to implement
refer to #542 if that was implemented

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions