Skip to content

Commit 039e35d

Browse files
fix(app): Fix labware misaligned with stacker hopper (#18934)
1 parent 8e796af commit 039e35d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

components/src/hardware-sim/BaseDeck/BaseDeck.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,15 @@ export interface HopperLabwareProps {
8989
// these ugly consts are unfortunately necessary as the hopper location exists
9090
// outside of our deck definition so the render doesn't follow our normal conventions
9191
export const STACKER_MODULE_Y_OFFSET = -6
92-
export const STACKER_HOPPER_LABWARE_X_OFFSET = 178.5
93-
export const STACKER_HOPPER_LABWARE_Y_OFFSET = 7
92+
// todo(mm, 2025-07-16): 17.5 mm is a by-eye adjustment that takes us from a little bit
93+
// left of the hopper to inside the hopper. The fact that we were 17.5 mm left in the
94+
// first place is weird, and suggests we're doing wrong math somewhere. A more normal
95+
// thing to expect here would be starting at the extended shuttle position and needing
96+
// an offset of hundreds of mm to go from there to inside the hopper.
97+
export const STACKER_HOPPER_LABWARE_X_OFFSET = 17.5
98+
export const STACKER_HOPPER_LABWARE_Y_OFFSET = 6
9499
export const STACKER_DECK_VIEW_BOX_EXPANSION = 220
100+
95101
interface BaseDeckProps {
96102
deckConfig: DeckConfiguration
97103
robotType: RobotType

0 commit comments

Comments
 (0)