Skip to content

Commit fe4eac7

Browse files
committed
fix(hardware-testing): use both baseline and runtime to pass a tof sensor
1 parent 7bf339f commit fe4eac7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

hardware-testing/hardware_testing/modules/flex_stacker/flex_stacker_qc/test_tof_functional.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async def test_tof_sensors_labware_detection(
136136
[
137137
baseline_result,
138138
"HISTOGRAM",
139-
CSVResult.from_bool(runtime_result),
139+
CSVResult.from_bool(baseline_result and runtime_result),
140140
histogram_string,
141141
],
142142
)
@@ -154,11 +154,13 @@ async def run(stacker: FlexStacker, report: CSVReport, section: str) -> None:
154154
"Make sure there is NO labware in the stacker tower or gripper position"
155155
)
156156
print("Getting runtime baseline.")
157-
runtime_baseline_x = await create_runtime_baseline(stacker, TOFSensor.X)
157+
await stacker.home_axis(StackerAxis.X, Direction.EXTEND)
158158
runtime_baseline_z = await create_runtime_baseline(stacker, TOFSensor.Z)
159159

160-
print("Test that we have no labware on the X")
161160
await stacker.home_axis(StackerAxis.X, Direction.RETRACT)
161+
runtime_baseline_x = await create_runtime_baseline(stacker, TOFSensor.X)
162+
163+
print("Test that we have no labware on the X")
162164
await test_tof_sensors_labware_detection(
163165
stacker,
164166
report,

0 commit comments

Comments
 (0)