The application logic of my robot (as many other embedded systems) can be effectively represented as a finite-state machine. In this video, I sketch out the state diagram with PlantUML and prepare the corresponding skeleton code in C.
0:00 Overview
1:56 Draw diagram with PlantUML
12:40 How I will code it
13:30 Three previous commits
16:09 Files
17:25 State machine logic
34:48 State wait
36:35 State search
43:48 State attack
49:15 State retreat
57:29 State manual
59:00 Compile
59:40 Flash is full!
01:01:00 Commit
01:02:05 Last words
🌍 Related links
Project code - github.com/artfulbytes/nsumo_...
PlantUML - plantuml.com/
PlantUML previewer - marketplace.visualstudio.com/...
Quantum Leaps tutorial - • #35 State Machines Par...
Wikipedia about State machine - en.wikipedia.org/wiki/Finite-...
🌍 Find me here
GitHub - github.com/artfulbytes
Website - www.artfulbytes.com
👨💻 About me
Hi and welcome. I'm Niklas, an embedded systems engineer from Sweden. On this channel, I make practical videos about embedded systems or, in general terms, about building and programming hardware.
#cprogramming #robot #embeddedsystems
Негізгі бет Ғылым және технология How to Code a State Machine | Embedded System Project Series #26
Пікірлер: 17