How axedelubac/mcu_robot works
This is Zephyr-based MCU robot firmware. Its principal control path receives velocity commands over micro-ROS, converts them into wheel setpoints, compares them with encoder measurements, and updates mecanum odometry. Separate runtime tasks collect IMU, pressure/temperature, and GNSS data; the micro-ROS client publishes telemetry. The README also describes UART status output. Several listed serial framing and motor-controller modules are not shown wired into the sampled runtime, so they are represented only as documented capabilities or omitted from the active control flow.
Main entry points: RTOS.c Zephyr tasks · MicroRosNode.c micro-ROS client · GlobalControl.c Global speed control · PositionOrientation.c Orientation update
Components 15
Runtime orchestration
- Zephyr tasks
src/RTOS.c
Motion control
- Wheel speed measurement
src/speedMesurement/GlobalSpeed.c - Rotary encoders
src/speedMesurement/rotaryEncoder.c - Forward kinematics
src/navigation/forwardKinematics.c - Global speed control
src/speedControlSystem/GlobalControl.c - PID control
src/speedControlSystem/closedLoopControl.c - Mecanum odometry
src/navigation/mecanumOdometrie.c
Sensing and state
- IMU acquisition
src/positionManagement/Imu.c - Orientation update
src/positionManagement/PositionOrientation.c - Pressure and temperature
src/sensorManagement/lps22dfSensor.c - GNSS sample handling
src/RTOS.c
Robot communication
- micro-ROS client
src/DataCommunication/MicroRosNode.c - Serial packet format
src/DataCommunication/SerialDataStructure.h
Other components
- ROS 2 operator
- micro-ROS agent
Connections 14
- ROS 2 operator → micro-ROS agent: sends commands
README.md - micro-ROS agent → micro-ROS client: exchanges ROS data
README.md - Zephyr tasks → micro-ROS client: runs client
src/RTOS.c - Zephyr tasks → Orientation update: updates orientation
src/RTOS.c - Orientation update → IMU acquisition: uses IMU
- Zephyr tasks → Pressure and temperature: initializes sensor
src/RTOS.c - Zephyr tasks → Wheel speed measurement: measures wheel speed
src/RTOS.c - Zephyr tasks → Forward kinematics: computes wheel setpoints
src/RTOS.c - Zephyr tasks → Global speed control: updates regulation
src/RTOS.c - Zephyr tasks → Mecanum odometry: updates odometry
src/RTOS.c - micro-ROS client → IMU acquisition: reads telemetry
src/DataCommunication/MicroRosNode.c - micro-ROS client → Pressure and temperature: reads measurements
src/DataCommunication/MicroRosNode.c - micro-ROS client → Zephyr tasks: reads GNSS and speeds
src/DataCommunication/MicroRosNode.c - Global speed control → PID control: uses PID loops