Skip to content

Commit

Permalink
Update hybrid_corexy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeKeck committed Sep 27, 2023
1 parent ae1d077 commit d03d0a3
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions klippy/kinematics/hybrid_corexy.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,16 @@ def calc_position(self, stepper_positions):
if (self.dc_module is not None and 'PRIMARY' == \
self.dc_module.get_status()['carriage_1']):
if self.inverted == False:
return [stepper_positions['dual_carriage'] \
- pos[1], pos[1], pos[2]]
return stepper_positions['dual_carriage'] \
- pos[1], pos[1], pos[2]
else:
return [stepper_positions['dual_carriage'] \
+ pos[1], pos[1], pos[2]]
return stepper_positions['dual_carriage'] \
+ pos[1], pos[1], pos[2]
else:
if self.inverted == False:
return [stepper_positions['stepper_x'] \
+ pos[1], pos[1], pos[2]]
return pos[0] + pos[1], pos[1], pos[2]
else:
return [stepper_positions['stepper_x'] \
- pos[1], pos[1], pos[2]]
return pos[0] - pos[1], pos[1], pos[2]
def update_limits(self, i, range):
l, h = self.limits[i]
# Only update limits if this axis was already homed,
Expand Down

0 comments on commit d03d0a3

Please sign in to comment.