mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-07 22:05:58 +01:00
delta: Rename get_position() to calc_position()
Calculating the cartesian position from the stepper positions can be complex and cpu intensive, so rename it to calc_position() to be more descriptive. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -93,7 +93,7 @@ class DeltaKinematics:
|
||||
for i in StepList]
|
||||
def _actuator_to_cartesian(self, pos):
|
||||
return actuator_to_cartesian(self.towers, self.arm2, pos)
|
||||
def get_position(self):
|
||||
def calc_position(self):
|
||||
spos = [rail.get_commanded_position() for rail in self.rails]
|
||||
return self._actuator_to_cartesian(spos)
|
||||
def set_position(self, newpos, homing_axes):
|
||||
|
||||
Reference in New Issue
Block a user