Skip to content

Latest commit

 

History

History
73 lines (60 loc) · 3.62 KB

progress.md

File metadata and controls

73 lines (60 loc) · 3.62 KB

HOT Control Python Port Progress

Step 1 - Scaffold and core compute

  • Create python_port project structure.
  • Add dependency list and run entrypoint.
  • Build parity UI shell with tabs: Manual, Pattern, Image, Python, Camera(stub), Animation(stub).
  • Port core algorithms (GS/WGS/RME) in plain Python modules.
  • Add target generation (manual table, pattern presets, image threshold import, python script frames).
  • Add correction-mask compose and save pipeline.
  • Keep persistence for hardware/optical settings in hardware_config.json.
  • Reshape UI to match C++ structure: menus + 3 monitor panels + tools row + 3-column control area.

Step 2 - Camera integration (next)

  • OpenCV camera discovery/start/stop.
  • UDP camera feed option (config-driven backend mode).
  • Live preview with target overlay and basic pixel readout.
  • Snapshot and recording controls.

Step 3 - SLM output routing (next)

  • Direct-screen output window routing (fullscreen, monitor-selectable).
  • Vendor DLL bridge parity (Image_Control.dll) wrapper.
  • Send/Clear behavior parity.

Step 4 - Advanced parity (next)

  • Animation timeline controls and real-time mode.
  • Media sequence playback (video/folder to mask frames).
  • Additional UI parity and workflow polish.

Step 5 - Settings and persistence

  • Hardware settings dialog with optical/camera/SLM fields.
  • Persist and re-apply selected hardware runtime settings.
  • Integrate monitor selection persistence with direct-screen output.

Step 6 - Polish and validation

  • Unify SLM routing across manual send, animation playback, and phase-media playback.
  • Add output mode selection (Direct Screen / Image_Control.dll) with status feedback.
  • Run compile/import smoke checks after parity steps.

Step 7 - Parity QA pass

  • Create side-by-side workflow checklist report.
  • Validate parity status against key workflows.
  • Track remaining open gaps for hardware verification and regression tests.

Step 8 - UI mismatch patch pass

  • Add interactive target-pane point editing (add/move/remove + hover readout).
  • Add Python-tab parity controls (realtime, trap selector, send/stop/reset, save/load script).
  • Add camera preview monitor output window controls (show/hide monitor, save/record, FPS/pixel readout).
  • Add phase-media player dialog UI (preview, slider, frame info, play/stop).
  • Add grid enlarge/restore toggle in monitor header.

Planned Next Steps

Step 9 - Strict C++ UI parity cleanup

  • Remove remaining non-C++ main-window controls/labels.
  • Match exact text labels/tooltips to C++ UI.
  • Tune spacing/sizing/alignment to reduce visual drift.
  • Match target-grid interaction parity: select/drag points + table edit sync.
  • Add Camera target mode behavior in target section (live camera frame on Camera tab).

Step 10 - Runtime behavior parity validation

  • Run side-by-side workflow tests on local hardware (camera + SLM).
  • Fix behavior mismatches in send/clear/playback edge cases.
  • Validate monitor routing behavior across screen changes.

Step 11 - Stability and regression safety

  • Add small regression checks for config load/save and critical UI flows.
  • Add error-path hardening for camera disconnect/UDP loss/DLL failures.
  • Finalize release checklist for Python port handoff.

Settings Fixes (Current)

  • Auto-run GS now triggers on point edits/add/remove/drag end and target imports.
  • Auto-send SLM now sends on auto-generated masks and manual generate action.
  • Settings now persist immediately on Apply/Save and survive relaunch.