How fuji-astronomy-club-coders/sun_watching works
SUN Find West is a live solar-position and west-angle tracking application. Its main workflow validates YAML configuration, initializes a physical or video-backed camera, captures frames, estimates the solar disk and its motion, and presents alignment feedback; the main module also documents result saving. The sampled sources show the entry-point handoff and core analysis calls. The Matplotlib drawer is a distinct substantial visualization component, but its connection to the live workflow is not established by the excerpts.
Main entry points: main.py Tracking App · run.py CLI Launcher · loader.py Config Loader · controller.py Camera Controller
Components 15
Startup & Config
- CLI Launcher
run.py - Config Loader
sun_find_west_v2/config/loader.py - YAML Settings
sun_find_west_v2/config/config.yaml - Config Schema
sun_find_west_v2/config/config_schema.json
Camera & Capture
- Tracking App
sun_find_west_v2/main.py - Camera Controller
sun_find_west_v2/camera/controller.py - Video Camera
sun_find_west_v2/camera/vid_dummy.py - Frame Conversion
sun_find_west_v2/main.py
Solar Analysis
- Solar Disk Estimator
sun_find_west_v2/core/MIN2ver2.py - Robust Motion Estimator
sun_find_west_v2/core/RANSAC.py
Visualization & Results
- Qt Dashboard
sun_find_west_v2/qt_visualizer.py - Matplotlib Drawer
sun_find_west_v2/core/drawer.py - Saved Results
sun_find_west_v2/main.py
Other components
- Operator
- ASI Camera
Connections 13
- Operator → CLI Launcher: starts
run.py - CLI Launcher → Config Loader: loads config
run.py - Config Loader → YAML Settings: reads settings
sun_find_west_v2/config/loader.py - Config Loader → Config Schema: validates against
sun_find_west_v2/config/loader.py - CLI Launcher → Tracking App: starts with config
run.py - Tracking App → Camera Controller: connects camera
sun_find_west_v2/main.py - Camera Controller → Video Camera: selects video mode
sun_find_west_v2/camera/controller.py - Camera Controller → ASI Camera: initializes SDK
sun_find_west_v2/camera/controller.py - Tracking App → Frame Conversion: converts frames
sun_find_west_v2/main.py - Tracking App → Solar Disk Estimator: estimates disk
sun_find_west_v2/main.py - Tracking App → Robust Motion Estimator: estimates motion
sun_find_west_v2/main.py - Tracking App → Qt Dashboard: updates dashboard
sun_find_west_v2/main.py - Tracking App → Saved Results: saves results
sun_find_west_v2/main.py