Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

#40 State Machines Part-6: What is a Hierarchical State Machine?

28.5K views on YouTube

This lesson continues the subject of STATE MACHINES. Today you will get the first glimpse of the modern hierarchical state machines. You will learn what hierarchical state machines are and how they differ from the traditional finite state machines. You will also get an idea of how to implement state hierarchy in C and you’ll see which aspects are easy and which are harder to implement. Finally, you’ll port your TimeBomb application from the toy Micro-C-AO framework to the professional QP/C framework, where hierarchical state machines are fully supported.

This lesson comes with two projects:
– the partial implementation of state hierarchy with the uC/AO active object framework.
– the full implementation of state hierarchy with the QP/C active object framework.

——-
Resources:

Companion web page for this video course:
https://www.state-machine.com/quickstart

GitHub repository for projects for this video course:
https://github.com/QuantumLeaps/modern-embedded-programming-course

Transcript of this lesson:
https://www.state-machine.com/course/lesson40.txt

Music credits:
The background music comes from:
https://www.bensound.com/royalty-free-music/track/straight