feat(operate): a Raise head button beside HALT on the SPIM head - #207
Merged
Merged
Conversation
"in spim head surface in operate panel, along with the HALT button, we also need a button to raise the spim head to 25000 - a reset button or something." A Raise head button on the SPIM head gauge, beside HALT, because that is where the hand goes when the head must get out of the way. It moves the F-drive to its own top limit — 25000 µm, the "Load Sample" height. No number comes from the request: the top is the device's. The device layer runs the move off its loop with the state poller backed off, as a nudge does, and HALT stays live beside it for the whole traverse. The button says "Raising…" while it travels, and a toast says where the head came to rest. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
A Raise head button on the SPIM head gauge, beside HALT. It moves the F-drive to its own top limit — 25000 µm, the "Load Sample" height. No number comes from the request: the top is the device's (
fdrive.limits), so nothing a client sends can pick a height.POST /api/spim/fdrive/raise. The move runs off the loop with the state poller backed off, exactly as a nudge does, so HALT stays live for the whole traverse.raise_fdrive(). Agent:POST /api/devices/spim/fdrive/raise(control role).Ten tests in
tests/test_spim_head_raise.py: the handler moves to the device's limit and reports from/to, backs the poller off and restores it, 503 without the axis, a refused move reported; the route asks the client; the button sits beside HALT and is wired inwire().Not exercised on hardware — verify on the rig that the full traverse completes within the client's timeout (the F-drive's own move timeout is 120 s).
🤖 Generated with Claude Code