Repository navigation
Conversation
…chip with its RFID reader The LC3 carousel was a standalone class with its own USB link: nothing knew where the Mantis's head was when it turned, and a carousel slot's chip could only be known by picking it up. The carousel is now a feature discovered like the others: a declared `left_carousel` or `right_carousel` block (CarouselConfiguration's fields) gives `driver.left_carousel` / `driver.right_carousel` (also on the device), None by default. Setup opens the LC3's command link and its RFID reader (interface A), reads firmware and limits without moving; one that does not answer is left out, logged. The Mantis's stop stops each carousel in place and closes its links. MantisCarousel moves to driver/features and takes the Mantis's driver and the LC3's links; the old module path is gone. A carousel turns, homing included, only once the Mantis's arm is brought up and its head reads at idle; nothing is sent otherwise. `request_tag(slot=...)` turns the slot to the reader's angle (`rfid_slot_one_position`, the vendor's RfidCarousel<capacity>Offset), reads back under the carousel's lock that it stands there, and reads its tag as the Mantis's reader does; a read that times out or is malformed raises instead of reading as an empty slot; the tag read and its description are shared module functions in rfid.py. Tests pin the captured LC3 moves with the values they were captured with and the Mantis reader's captured tag replies; no turn to a reader angle is captured, so none is sent; design.md lists what no capture covers yet. Co-Authored-By: AskeU <89412030+AskeU@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BioCam
force-pushed
the
mantis-lc3-rfid
branch
from
November 27, 2026 18:45
ea63ed8 to
c720464
Compare
Mantis LC3: read a carousel slot's chip with the LC3's RFID readerMantis LC3: the carousel is a driver feature and reads a slot's chip with its RFID reader
This branch has not been deployed
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.
The Problem
The LC3 carousel was a standalone class with its own USB link: nothing knew where the Mantis's head was when it turned, and a carousel slot's chip could only be known by picking it up.
PR Content
left_carouselorright_carouselblock givesdriver.left_carousel/driver.right_carousel(also on the device), None by default. Setup opens the LC3's command link and its RFID reader without moving it; one that does not answer is left out, logged. The Mantis's stop stops each carousel in place and closes its links.MantisCarouselmoves todriver/features/carousel.pyand takes the Mantis's driver and the LC3's links; the old module path is gone.MantisCarousel.request_tag(slot=...)turns the slot to the reader's angle (rfid_slot_one_position, from the unit'sRfidCarousel<capacity>Offset), reads back under the carousel's lock that it stands there, and reads the tag as the Mantis's reader does. A read that times out or is malformed raises instead of reading as an empty slot.design.mdand the hello-world notebook: the carousel feature, the tag read, and the open points no capture covers yet.🤖 Generated with Claude Code