How mikehammy/robo-car works
robo_drive is BeagleY-AI RC-car software with web and IR manual controls and an ultrasonic wall-avoiding mode. Users issue commands through a browser or remote; the main program starts the interfaces and control modules, while carControl applies requests, enforces safety and mode rules, and is the sole motor-driving authority. The graph preserves the sensor-sampling, autonomy, and hardware layers. Relationships are based on the README and shown source/index references; unsampled implementation details are not inferred.
Main entry points: main.c Application startup · carControl.c Car control · remoteController.c Remote controller · webServer.c Web server
Components 17
Application lifecycle
- Application startup
app/src/main.c - Shutdown handling
app/src/shutdown.c
User interfaces
- Web server
app/src/webServer.c - Remote controller
app/src/remoteController.c - IR command receiver
app/src/irRemote.c - NEC frame decoder
app/src/irDecoder.c
Driving and autonomy
- Car control
app/src/carControl.c - Obstacle avoidance
app/src/autonomy.c - Drive commands
app/src/drive.c
Distance sensing
- Distance sampler
app/src/distanceSampler.c - HC-SR04 access
hal/src/ultrasonic.c
Hardware access
- GPIO wrapper
hal/src/gpio.c - Motor driver access
hal/src/motors.c - IR receiver access
hal/src/receiver.c - Time utilities
hal/src/timeUtils.c
Other components
- Browser
- IR remote
Connections 25
- Browser → Web server: sends requests
README.md - IR remote → Remote controller: sends buttons
README.md - Application startup → Shutdown handling: initializes and waits
app/src/main.c - Application startup → GPIO wrapper: initializes and cleans
app/src/main.c - Application startup → Motor driver access: initializes and cleans
app/src/main.c - Application startup → Distance sampler: starts and stops
app/src/main.c - Application startup → Car control: starts and stops
app/src/main.c - Application startup → Remote controller: starts and stops
app/src/main.c - Application startup → Web server: starts and stops
app/src/main.c - Web server → Car control: requests actions
README.md - Web server → Shutdown handling: requests shutdown
app/src/webServer.c - Remote controller → IR command receiver: reads commands
app/src/remoteController.c - Remote controller → Car control: requests actions
app/src/remoteController.c - Remote controller → Time utilities: reads time
app/src/remoteController.c - IR command receiver → NEC frame decoder: decodes frames
app/src/irRemote.c - IR command receiver → IR receiver access: reads pulses
app/src/irRemote.c - Car control → Obstacle avoidance: runs autonomy
README.md - Car control → Distance sampler: reads measurements
app/src/carControl.c - Car control → Drive commands: executes commands
app/src/carControl.c - Car control → Time utilities: checks timeouts
app/src/carControl.c - Distance sampler → HC-SR04 access: takes measurements
app/src/distanceSampler.c - Distance sampler → Time utilities: timestamps readings
app/src/distanceSampler.c - Drive commands → Motor driver access: sets directions
app/src/drive.c - Motor driver access → GPIO wrapper: controls pins
hal/src/motors.c - HC-SR04 access → GPIO wrapper: uses GPIO lines
hal/src/ultrasonic.c