Skip to content

Commit

Permalink
Fixing formating
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozgulbas committed May 8, 2024
1 parent 19f3c09 commit 1cf0976
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions src/platecrane_driver/platecrane_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import re
from pathlib import Path

#from platecrane_driver.serial_port import SerialPort
from serial_port import SerialPort
from platecrane_driver.serial_port import SerialPort


class PlateCrane:
Expand Down Expand Up @@ -711,14 +710,12 @@ def remove_lid(
"""
self.get_new_plate_height(plate_type)

# TESTING
# TESTING
print("LID HEIGHT")
print(self.lid_height)

target_offset = (
2 * self.plate_above_height
- self.plate_pick_steps_stack
+ self.lid_height
2 * self.plate_above_height - self.plate_pick_steps_stack + self.lid_height
# + height_offset
) # Finding the correct target hight when only transferring the plate lid
target_loc = self.get_location_joint_values(target)
Expand All @@ -731,8 +728,8 @@ def remove_lid(
target_loc[2],
target_loc[3],
)
self.plate_pick_steps_stack = self.plate_lid_steps
self.plate_pick_steps_stack = self.plate_lid_steps + height_offset

self.transfer(
source=source,
target=remove_lid_target,
Expand Down Expand Up @@ -763,11 +760,9 @@ def replace_lid(
self.get_new_plate_height(plate_type)

target_offset = (
2 * self.plate_above_height
- self.plate_pick_steps_stack
+ self.lid_height
# + height_offset
) # Finding the correct target hight when only transferring the plate lid
2 * self.plate_above_height - self.plate_pick_steps_stack + self.lid_height
)

source_loc = self.get_location_joint_values(source)
remove_lid_source = "Temp_Lid_Source_loc"

Expand All @@ -778,7 +773,7 @@ def replace_lid(
source_loc[2],
source_loc[3],
)
self.plate_pick_steps_stack = self.plate_lid_steps
self.plate_pick_steps_stack = self.plate_lid_steps + height_offset

self.transfer(
source=remove_lid_source,
Expand Down

0 comments on commit 1cf0976

Please sign in to comment.