How pitraclm/pitrac works
PiTrac is a Raspberry Pi golf launch monitor: cameras capture images, image-processing software estimates ball launch and spin, and results can be used by golf simulators or the web dashboard. The web server also manages configuration, calibration, diagnostics, and updates. The graph preserves these documented capabilities while distinguishing the sampled web-server orchestration from the mostly unsampled C++ runtime. Arrows are limited to relationships visible in the excerpts or source index; the internal image-processing flow is therefore not asserted.
Main entry points: server.py Dashboard API · golf_ball.cpp Ball and spin estimates · pitrac_manager.py PiTrac process manager · calibration_manager.py Camera calibration
Components 21
Web dashboard
- Dashboard API
Software/web-server/server.py - Dashboard interface
Software/web-server/static/js/dashboard.js
Device operations
- Configuration manager
Software/web-server/config_manager.py - PiTrac process manager
Software/web-server/pitrac_manager.py - Camera calibration
Software/web-server/calibration_manager.py - Charuco detection
Software/web-server/charuco_detector.py - Camera detection
Software/web-server/camera_detector.py - Strobe calibration
Software/web-server/strobe_calibration_manager.py - Diagnostic tools
Software/web-server/testing_tools_manager.py - Update manager
Software/web-server/update_manager.py
Capture and vision
- Camera hardware
Software/LMSourceCode/ImageProcessing/camera_hardware.cpp - Camera capture
Software/LMSourceCode/ImageProcessing/core/rpicam_app.cpp - Ball image processing
Software/LMSourceCode/ImageProcessing/ball_image_proc.cpp - Ball and spin estimates
Software/LMSourceCode/ImageProcessing/golf_ball.cpp - Runtime configuration
Software/LMSourceCode/ImageProcessing/configuration_manager.cpp - Image and event logging
Software/LMSourceCode/ImageProcessing/logging_tools.h
Results and integrations
- GSPro interface
Software/LMSourceCode/ImageProcessing/gs_gspro_interface.cpp - E6 interface
Software/LMSourceCode/ImageProcessing/gs_e6_interface.cpp - Standalone web app
Software/web-server/server.py
Other components
- Builder / operator
- Golf simulators
Connections 18
- Builder / operator → Dashboard API: uses dashboard
README.md - Dashboard API → Configuration manager: routes configuration
Software/web-server/server.py - Dashboard API → PiTrac process manager: manages process
Software/web-server/server.py - Dashboard API → Camera calibration: routes calibration
Software/web-server/server.py - Dashboard API → Diagnostic tools: routes diagnostics
Software/web-server/server.py - Dashboard API → Strobe calibration: manages calibration
Software/web-server/server.py - Dashboard API → Update manager: broadcasts updates
Software/web-server/server.py - Camera calibration → Charuco detection: uses detector
Software/web-server/calibration_manager.py - PiTrac process manager → Configuration manager: reads settings
Software/web-server/pitrac_manager.py - Builder / operator → Camera hardware: captures golf shots
README.md - Camera hardware → Camera capture: supplies images
- Camera capture → Ball image processing: processes images
- Ball image processing → Ball and spin estimates: estimates ball motion
- Ball and spin estimates → GSPro interface: provides shot results
README.md - Ball and spin estimates → E6 interface: provides shot results
README.md - GSPro interface → Golf simulators: interfaces with
README.md - E6 interface → Golf simulators: interfaces with
README.md - Builder / operator → Standalone web app: views results
README.md