Skip to content

Commit

Permalink
Fix (hardware-testing): fix gripper diagnostic test for v7.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Andiiiiiiyy committed Aug 1, 2024
1 parent 7fd2f22 commit 32f7897
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
DEFAULT_SPEED = DEFAULT_MAX_SPEEDS.low_throughput[OT3AxisKind.Z_G]
DEFAULT_CURRENT = DEFAULT_RUN_CURRENT.low_throughput[OT3AxisKind.Z_G]
SPEEDS_TO_TEST = [DEFAULT_SPEED]
MIN_PASS_CURRENT = round(DEFAULT_CURRENT * 0.6, 1) # 0.67 * 0.6 = ~0.4
# MIN_PASS_CURRENT = round(DEFAULT_CURRENT * 0.6, 1) # 0.67 * 0.6 = ~0.4
MIN_PASS_CURRENT = 0.3
CURRENTS_SPEEDS: Dict[float, List[float]] = {
round(MIN_PASS_CURRENT - 0.2, 1): SPEEDS_TO_TEST,
round(MIN_PASS_CURRENT - 0.1, 1): SPEEDS_TO_TEST,
MIN_PASS_CURRENT: SPEEDS_TO_TEST,
# round(MIN_PASS_CURRENT - 0.2, 1): SPEEDS_TO_TEST,
round(MIN_PASS_CURRENT , 1): SPEEDS_TO_TEST,
MIN_PASS_CURRENT + 0.1: SPEEDS_TO_TEST,
DEFAULT_CURRENT: SPEEDS_TO_TEST,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ async def run(api: OT3API, report: CSVReport, section: str) -> None:
z_ax = Axis.by_mount(mount)
found_pos = await api.capacitive_probe(mount, z_ax, probe_pos.z, pass_settings)
print(f"Found deck height: {found_pos}")

found_pos = found_pos[0]
# check against max overrun
valid_height = found_pos >= z_limit
deck_pf = 0.0
Expand All @@ -160,7 +160,7 @@ async def run(api: OT3API, report: CSVReport, section: str) -> None:
await api.move_to(mount, probe_pos._replace(z=found_pos))
if not api.is_simulator:
deck_pf = await _read_from_sensor(api, s_driver, cap_sensor, 10)
print(f"Reading on deck: {deck_pf}")
print(f"Reading on deck: {deck_pf}")

result = (
PROBE_DIFF_MIN < (deck_pf - open_air_pf)
Expand Down

0 comments on commit 32f7897

Please sign in to comment.