Skip to content

ajneu/statemachine_experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published