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:
@@ -42,7 +42,7 @@ class CoreXYKinematics:
|
||||
if flags == "Z":
|
||||
return [self.rails[2]]
|
||||
return list(self.rails)
|
||||
def get_position(self):
|
||||
def calc_position(self):
|
||||
pos = [rail.get_commanded_position() 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):
|
||||
|
||||
Reference in New Issue
Block a user