Skip to content

feat(backend): configure UC2 hardware from YAML - #8

Merged
gokugiant merged 10 commits into
mainfrom
codex/merge-yaml-runtime
Nov 9, 2026
Merged

gokugiant merged 10 commits into
mainfrom
codex/merge-yaml-runtime

Conversation

@gokugiant

Copy link
Copy Markdown
Contributor

Change

Start UC2 motion and illumination from the validated device YAML instead of the parallel JSON hardware settings. Resolve controller mappings for Serial, direct CANopen, and mixed connections; apply axis calibration, limits, homing parameters, completion waits and output addresses. Add Serial/CAN examples and the tested microscope Pi profile (four linear axes and one LED).

Keep the existing camera driver, authentication, user management, logging implementation and frontend unchanged. Pass camera configuration through the existing camera manager. Empty objective/filter lists no longer try to select an absent device.

Validation

  • Full backend test suite on a clean Python 3.12 environment; Ruff lint and formatting.
  • Live Pi: real Serial connection, authenticated LED-off command through API/WebSocket, and user-confirmed axis motion.
  • CAN, mixed connections, matrix and homing are covered with fake clients; not yet verified on physical hardware.

Compatibility

NEWSWITCH_CONFIG now selects a device YAML; legacy JSON startup overrides are rejected. Nondefault legacy uc2_* settings must be migrated to controller mappings. Angular axes, actuated wheels and unspecified downstream Serial bridge mappings remain unsupported. The Pi profile excludes the camera due to an incompatible installed MVS SDK; the camera driver itself is retained.

Runtime credentials and persistent configurations are not included. Pre-existing uncommitted changes in the Mac working directory were excluded by preparing this integration in a separate checkout.

@gokugiant
gokugiant merged commit d78df7b into main Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant