mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-21 21:58:05 -06:00
stepper: Remove set_tag_position() code
Have callers store the stepper positions in a dict. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
77bc5e4388
commit
c0d860487a
17 changed files with 62 additions and 66 deletions
|
@ -36,8 +36,8 @@ class CoreXYKinematics:
|
|||
self.axes_max = toolhead.Coord(*[r[1] for r in ranges], e=0.)
|
||||
def get_steppers(self):
|
||||
return [s for rail in self.rails for s in rail.get_steppers()]
|
||||
def calc_tag_position(self):
|
||||
pos = [rail.get_tag_position() for rail in self.rails]
|
||||
def calc_position(self, stepper_positions):
|
||||
pos = [stepper_positions[rail.get_name()] for rail in self.rails]
|
||||
return [0.5 * (pos[0] + pos[1]), 0.5 * (pos[0] - pos[1]), pos[2]]
|
||||
def set_position(self, newpos, homing_axes):
|
||||
for i, rail in enumerate(self.rails):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue