Skip to content

Commit 8214d30

Browse files
author
andy
committed
test z axis
1 parent 4f25847 commit 8214d30

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

ot3_testing/test_config/pipette_leveling_config.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ class CalibrateMethod(enum.Enum):
2121
"UninstallPos": {"Point": Point(223, 203, 500)}
2222
}
2323

24-
ChannelDefinitionCH96 = {"left_front": {"device_addr": 1, "channel": 4, "offset": 0},
25-
"left_rear": {"device_addr": 1, "channel": 5, "offset": 0},
26-
"right_front": {"device_addr": 1, "channel": 3, "offset": 0},
27-
"right_rear": {"device_addr": 1, "channel": 2, "offset": 0},
28-
"rear_right": {"device_addr": 1, "channel": 0, "offset": 0},
29-
"rear_left": {"device_addr": 1, "channel": 1, "offset": 0},
30-
"below_front_left": {"device_addr": 2, "channel": 1, "offset": 0},
31-
"below_front_right": {"device_addr": 2, "channel": 0, "offset": 0},
32-
"below_rear_left": {"device_addr": 2, "channel": 3, "offset": 0},
33-
"below_rear_right": {"device_addr": 2, "channel": 2, "offset": 0},
24+
ChannelDefinitionCH96 = {"left_front": {"device_addr": 1, "channel": 0, "offset": 0},
25+
"left_rear": {"device_addr": 1, "channel": 1, "offset": 0},
26+
"right_front": {"device_addr": 1, "channel": 2, "offset": 0},
27+
"right_rear": {"device_addr": 1, "channel": 3, "offset": 0},
28+
"rear_right": {"device_addr": 1, "channel": 5, "offset": 0},
29+
"rear_left": {"device_addr": 1, "channel": 4, "offset": 0},
30+
"below_front_left": {"device_addr": 2, "channel": 8, "offset": 0},
31+
"below_front_right": {"device_addr": 2, "channel": 9, "offset": 0},
32+
"below_rear_left": {"device_addr": 2, "channel": 10, "offset": 0},
33+
"below_rear_right": {"device_addr": 2, "channel": 11, "offset": 0},
3434
}
3535

3636
# device addr are un-useful in ch8

ot3_testing/tests/pipette_leveling.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ async def read_distance_mm_from_code_value(self, code_value: int, get_voltage=Fa
8787
:param get_voltage: return voltage
8888
:return:
8989
"""
90-
if self.test_name == "96ch":
91-
voltage = round(float((code_value / 1600) / 2), 3) # /V
92-
else:
93-
voltage = round(float(code_value), 3)
90+
# if self.test_name == "96ch":
91+
# voltage = round(float((code_value / 1600) / 2), 3) # /V
92+
# else:
93+
voltage = round(float(code_value), 3)
9494
if get_voltage:
9595
return voltage
9696
else:
@@ -317,7 +317,7 @@ async def run_96ch_test(self, flex_name: str, project_path=None):
317317
addr = self.robot_ip
318318
self.initial_api(addr, hc=True)
319319
await self.api.home()
320-
self.init_laser_sensor()
320+
self.init_laser_sensor(send=False)
321321

322322
ret = await self.run_test_slot("Test y-Axis-A2", "A2-Y", ["left_front", "left_rear"], with_cal=DoCalibrate)
323323
test_result.update(ret)
@@ -412,4 +412,6 @@ async def run_96ch_test(self, flex_name: str, project_path=None):
412412

413413

414414
if __name__ == '__main__':
415-
pass
415+
import asyncio
416+
pipette_leveling = PipetteLeveling(SlotLocationCH96, ChannelDefinitionCH96, )
417+
asyncio.run(pipette_leveling.run_96ch_test("FLXA1020240513001"))

0 commit comments

Comments
 (0)