Survey
Here are some embedded control system projects.
Motor Controllers
SimpleFOC
Simple framework based on Arduino that emphasize on simplicity. Motor is controled in a while loop that;
First acquires sensor data such as phase current from ADC or position/speed sensor.
Then caculates the PWM duty cycles.
Finally, applies the PWM duty cycles to each phase.
ST Motor Workbench
Interrupt-based loops with sensor data acquired in the control loop.
The hardware is optimized for motor control, so the software can be simple.
Spinner
Motor controller based on Zephyr as a proof of concept project.
For STM32 implementation (currently the only one available), it uses Zephyr’s Direct ISR for;
PWM duty cycle is calcuated and set in the current sampling loop [3].
References
Vechicle Controllers
CogniPilot - Cerebri
Publisher/subscriber model.
Flight Controllers
ArduPilot

PX4
3D Printers
Marlin
Kilpper
Zephyr projects
List of Zephyr applications and frameworks: awesome Zephyr
Popular Zephyr projects: