Skip to content

Commit

Permalink
hardware testing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyBatten committed Jan 30, 2025
1 parent 9d17f2d commit 343ae3c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async def _save_result(tag: str, target_z: float, include_pass_fail: bool) -> bo
mount,
Point(z=-Z_AXIS_TRAVEL_DISTANCE),
speed=speed,
_expect_stalls=True,
expect_stalls=True,
)
down_end_passed = await _save_result(
_get_test_tag(current, speed, "down", "end"),
Expand All @@ -139,7 +139,7 @@ async def _save_result(tag: str, target_z: float, include_pass_fail: bool) -> bo
mount,
Point(z=Z_AXIS_TRAVEL_DISTANCE),
speed=speed,
_expect_stalls=True,
expect_stalls=True,
)
up_end_passed = await _save_result(
_get_test_tag(current, speed, "up", "end"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ async def _test_gripper(api: OT3API, report: CSVReport, section: str) -> None:
target_z = 100
await api.home([z_ax, Axis.G])
start_pos = await api.gantry_position(OT3Mount.GRIPPER)
await api.move_to(mount, start_pos._replace(z=target_z), _expect_stalls=True)
await api.move_to(mount, start_pos._replace(z=target_z), expect_stalls=True)
enc_pos = await api.encoder_current_position_ot3(OT3Mount.GRIPPER)
if abs(enc_pos[Axis.Z_G] - target_z) < 0.25:
await api.move_to(mount, start_pos, _expect_stalls=True)
await api.move_to(mount, start_pos, expect_stalls=True)
if abs(enc_pos[Axis.Z_G] - target_z) < 0.25:
result = CSVResult.PASS
await api.home([z_ax])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ async def _force_gauge(
mount=mount,
abs_position=press_pos,
speed=FORCE_SPEED,
_expect_stalls=True,
expect_stalls=True,
)
finally:
thread_sensor = False
Expand Down

0 comments on commit 343ae3c

Please sign in to comment.