Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.07 KB

README.md

File metadata and controls

26 lines (20 loc) · 1.07 KB

Statemachine_Experiments

Demos from some statemachine frameworks (Qt, Boost.MSM, ...)

Task (for testing the statemachine frameworks)

There are 2 states: statePing and statePong.
Maximum lifetime of statePing is 1000 ms - it will then automatically transition to statePong;
Maximum lifetime of statePong is 2000 ms - it will then automatically transition to statePing.

(We want zero drift in using the timers!)

Keyboard-Input can cause transitions before the max-lifetime-timeouts:

'x': xchange state
'i': leave current state and go to statePing (pIng)
'o': leave current state and go to statePong (pOng)
't': toggle timer (on/off)
'q' or eof (Ctrl-d): exit

Realizations