How s7nique/xmc7100-car works
This is XMC7100 warehouse-rover firmware paired with an RDK X3 ROS 2 navigation side. The main workflow receives UART wheel-speed commands, parses them, runs periodic closed-loop motor control, and reports wheel, IMU, and status frames. README-documented RDK capabilities include lidar, SLAM, navigation, and map saving; the tree exposes only one RDK bridge script, so those broader capabilities are represented at their enclosing directory. Several firmware relationships rely on the SOURCE INDEX; unsampled RDK internals are not inferred.
Main entry points: originbot_platform.c Platform services · main.c Main scheduler · app_motion_control.c Wheel control · Con_uart.c UART DMA transport
Components 14
Firmware runtime
- Main scheduler
main.c - UART DMA transport
Con_uart.c - Command parser
protocol.c
Motion control
- Wheel control
app_motion_control.c - Wheel PID
pid.c
Sensing and status
- QMI8658 driver
imu.c
Board support
- Platform services
originbot_platform.c - Board configuration
bsps/TARGET_APP_KIT_XMC71_EVK_LITE_V1
RDK navigation
- Odometry bridge
rdk_nav_setup/xmc7100_base_odom_bridge.py - Lidar and navigation
rdk_nav_setup
Other components
- RDK X3
- Motors and encoders
- QMI8658 sensor
- ROS 2 navigation
Connections 18
- RDK X3 → UART DMA transport: sends commands
- Main scheduler → Platform services: initializes
main.c - Main scheduler → Command parser: dispatches commands
main.c - Main scheduler → UART DMA transport: services receive
main.c - Main scheduler → Wheel control: runs control
main.c - Command parser → Wheel control: sets wheel targets
protocol.c - Command parser → Platform services: uses platform services
protocol.c - Wheel control → Wheel PID: uses PID
app_motion_control.c - Platform services → Board configuration: uses board peripherals
originbot_platform.c - Platform services → QMI8658 driver: uses IMU driver
originbot_platform.c - QMI8658 driver → QMI8658 sensor: reads sensor
- Wheel control → Motors and encoders: drives and reads
- Platform services → UART DMA transport: sends status frames
originbot_platform.c - UART DMA transport → RDK X3: returns telemetry
- RDK X3 → Odometry bridge: runs bridge
- Odometry bridge → ROS 2 navigation: bridges odometry
- RDK X3 → Lidar and navigation: runs lidar and navigation
- Lidar and navigation → ROS 2 navigation: supports SLAM and Nav2