Repository navigation
feat(backend): configure UC2 hardware from YAML - #8
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.