How notgizmo1/drone-guidance works
Terminal Guidance is a Raspberry Pi companion-computer application for detecting and tracking targets, sending MAVLink control to an autopilot, and streaming annotated video to QGroundControl. The principal workflow runs through the application coordinator: camera frames enter detection and tracking, tracking output can drive control, and video is streamed to a ground station. The README documents watchdogs and a browser interface; the source index supports the coordinator’s component references, but excerpts do not expose every runtime call. The bundled QGroundControl source is a separate ground-station product, so it is shown only as the documented video recipient.
Main entry points: src/app.py Application coordinator · pipeline.py Detection pipeline · web/app.py Web interface · mavlink_controller.py MAVLink controller
Components 16
Capture and vision
- Camera capture
src/core/camera.py - Detection pipeline
src/core/pipeline.py - YOLO detector
src/core/detector.py - Target tracker
src/core/tracker.py - ROI tracker
src/core/roi_tracker.py - Motion compensation
src/core/motion_compensation.py
Application services
- Application coordinator
src/app.py - PID controller
src/core/pid.py - Configuration
src/utils/config.py - Logging
src/utils/logging.py
User and vehicle interfaces
- Web interface
src/web/app.py - MAVLink controller
src/core/mavlink_controller.py - Video streamer
src/core/streamer.py
Other components
- Browser operator
- ArduPilot / PX4
- QGroundControl
Connections 17
- Browser operator → Web interface: controls
src/web/app.py - Web interface → Application coordinator: configures
src/web/app.py - Application coordinator → Camera capture: coordinates
src/app.py - Application coordinator → Detection pipeline: coordinates
src/app.py - Detection pipeline → YOLO detector: runs detection
src/core/pipeline.py - Detection pipeline → Target tracker: uses tracking
src/core/pipeline.py - Application coordinator → Target tracker: coordinates
src/app.py - Application coordinator → ROI tracker: coordinates
src/app.py - Application coordinator → Motion compensation: coordinates
src/app.py - Application coordinator → PID controller: coordinates
src/app.py - Application coordinator → MAVLink controller: sends commands
src/app.py - MAVLink controller → ArduPilot / PX4: MAVLink control
- Application coordinator → Video streamer: coordinates
src/app.py - Video streamer → QGroundControl: streams video
README.md - Application coordinator → Configuration: loads settings
src/app.py - Application coordinator → Logging: logs events
src/app.py - Web interface → Logging: exposes logs
src/web/app.py