Skip to content

v1 Mantis LC3: the carousel is a driver feature and reads a slot's chip with its RFID reader - #1688

Open
AskeU wants to merge 1 commit into
PyLabRobot:mainfrom
AskeU:mantis-lc3-rfid
Open

AskeU wants to merge 1 commit into
PyLabRobot:mainfrom
AskeU:mantis-lc3-rfid

Conversation

@AskeU

@AskeU AskeU commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

  • The carousel is a feature discovered like the others: a declared left_carousel or right_carousel block 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 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.
  • MantisCarousel moves to driver/features/carousel.py 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 arm is brought up and the head reads at idle; nothing is sent otherwise.
  • MantisCarousel.request_tag(slot=...) turns the slot to the reader's angle (rfid_slot_one_position, from the unit's RfidCarousel<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.
  • Tests: the captured LC3 moves, sent with the values they were captured with, and the Mantis reader's captured tag replies. No turn to the reader's angle is captured, so none is pinned.
  • design.md and the hello-world notebook: the carousel feature, the tag read, and the open points no capture covers yet.

🤖 Generated with Claude Code

@AskeU
AskeU requested a review from a team as a code owner November 24, 2026 14:22
…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 BioCam changed the title v1 Mantis LC3: read a carousel slot's chip with the LC3's RFID reader v1 Mantis LC3: the carousel is a driver feature and reads a slot's chip with its RFID reader Nov 27, 2026

This branch has not been deployed

No deployments
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.

2 participants