File tree 1 file changed +4
-5
lines changed
hardware-testing/hardware_testing/opentrons_api
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -626,9 +626,9 @@ async def get_capacitance_ot3(
626
626
if api .is_simulator :
627
627
return 0.0
628
628
node_id = sensor_node_for_mount (mount )
629
- if not channel or channel == "primary " :
629
+ if not channel or channel == "rear " :
630
630
capacitive = sensor_types .CapacitiveSensor .build (SensorId .S0 , node_id )
631
- elif channel == "secondary " :
631
+ elif channel == "front " :
632
632
capacitive = sensor_types .CapacitiveSensor .build (SensorId .S1 , node_id )
633
633
else :
634
634
raise ValueError (f"unexpected channel for capacitance sensor: { channel } " )
@@ -701,10 +701,9 @@ async def get_pressure_ot3(
701
701
if api .is_simulator :
702
702
return 0.0
703
703
node_id = sensor_node_for_mount (mount )
704
- # FIXME: allow SensorId to specify which sensor on the device to read from
705
- if not channel or channel == "primary" :
704
+ if not channel or channel == "rear" :
706
705
pressure = sensor_types .PressureSensor .build (SensorId .S0 , node_id )
707
- elif channel == "secondary " :
706
+ elif channel == "front " :
708
707
pressure = sensor_types .PressureSensor .build (SensorId .S1 , node_id )
709
708
else :
710
709
raise ValueError (f"unexpected channel for pressure sensor: { channel } " )
You can’t perform that action at this time.
0 commit comments