mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-09 14:56:02 +01:00
stepper: Add get/set_tag_position() and convert calc_position()
Rename calc_position() to calc_tag_position() and have it calculate the value of the position from the last stepper set_tag_position() call. This enables the calc_tag_position() code to be more flexible as it can be run with arbitrary positions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -9,7 +9,7 @@ class NoneKinematics:
|
||||
pass
|
||||
def get_steppers(self, flags=""):
|
||||
return []
|
||||
def calc_position(self):
|
||||
def calc_tag_position(self):
|
||||
return [0, 0, 0]
|
||||
def set_position(self, newpos, homing_axes):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user