How kalacademynp/sunfounder_picar-v works
The product is a Raspberry Pi video car controlled either by a PyQt desktop client or a browser. The main workflow is user login/connection, issuing movement or camera commands to the Django server, and viewing the camera stream; calibration is a separate control stage. The server dispatches car and camera actions and starts MJPG-streamer. The tree also contains a ball-tracking script and I²C helper, but their relationship to the control workflow is not shown. Unsampled routes and templates are represented only where the README or shown source supports them.
Main entry points: views.py Control Views · client.py Client UI · camera.py Camera Control · mjpg_streamer.c MJPG Streamer
Components 18
Desktop Client
- Client UI
client/client.py - Client Assets
client/icons_rc.py
Web Server
- HTTP Routes
remote_control/remote_control/urls.py - Control Views
remote_control/remote_control/views.py - Browser Pages
remote_control/remote_control/templates/templates - Server Settings
remote_control/remote_control/settings.py
Car Hardware
- Camera Control
remote_control/remote_control/driver/camera.py - Wheel Control
remote_control/remote_control/views.py - Camera Offsets
remote_control/remote_control/driver/config
Video Streaming
- Stream Driver
remote_control/remote_control/driver/stream.py - MJPG Streamer
mjpg-streamer/mjpg_streamer.c - Plugin Interface
mjpg-streamer/mjpg_streamer.h - Stream Web UI
mjpg-streamer/www/index.html
Additional Runtime
- Ball Tracker
ball_track/ball_tracker.py - I²C Helper
i2cHelper.py
Other components
- Operator
- Camera Device
- Car Hardware
Connections 17
- Operator → Client UI: uses
README.md - Client UI → Client Assets: loads assets
client/client.py - Client UI → Control Views: sends commands
README.md - Operator → Browser Pages: uses browser
README.md - HTTP Routes → Control Views: routes requests
remote_control/remote_control/urls.py - Control Views → Browser Pages: renders pages
remote_control/remote_control/views.py - Server Settings → HTTP Routes: configures routing
remote_control/remote_control/settings.py - Control Views → Camera Control: dispatches camera
remote_control/remote_control/views.py - Control Views → Wheel Control: dispatches movement
remote_control/remote_control/views.py - Camera Control → Camera Offsets: reads and writes
remote_control/remote_control/driver/camera.py - Camera Control → Car Hardware: drives servos
- Wheel Control → Car Hardware: drives wheels
- Control Views → Stream Driver: starts stream
remote_control/remote_control/views.py - Stream Driver → MJPG Streamer: launches streamer
remote_control/remote_control/driver/stream.py - MJPG Streamer → Plugin Interface: uses interface
mjpg-streamer/mjpg_streamer.c - MJPG Streamer → Camera Device: captures video
- Stream Web UI → Camera Device: presents stream