Skip to content

Commit 1beb34c

Browse files
fix(api): fix for backwards liquid probe when using aspirate_while_probing (#19027)
1 parent fed50b4 commit 1beb34c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/src/opentrons/hardware_control/ot3api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2835,7 +2835,7 @@ async def liquid_probe( # noqa: C901
28352835
if not probe_settings:
28362836
probe_settings = deepcopy(self.config.liquid_sense)
28372837

2838-
# We need to significatly slow down the 96 channel liquid probe
2838+
# We need to significantly slow down the 96 channel liquid probe
28392839
if self.gantry_load in [
28402840
GantryLoad.HIGH_THROUGHPUT_1000,
28412841
GantryLoad.HIGH_THROUGHPUT_200,

hardware/opentrons_hardware/hardware_control/tool_sensors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ async def liquid_probe(
300300
)
301301
p_prep_distance = float(plunger_impulse_time * plunger_speed)
302302
p_pass_distance = float(max_p_distance - p_prep_distance)
303-
max_z_distance = (p_pass_distance / plunger_speed) * mount_speed
303+
max_z_distance = (p_pass_distance / abs(plunger_speed)) * mount_speed
304304

305305
lower_plunger = create_step(
306306
distance={tool: float64(p_prep_distance)},

0 commit comments

Comments
 (0)