diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-06-22 12:27:37 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-06-22 14:09:01 -0400 |
commit | 0216201cb6b9b486a75e446ca1cb2bbd18f329d7 (patch) | |
tree | c13bf90fe6e6159b0e312e303c176138299c5c48 /klippy/corexy.py | |
parent | 20b404ecf5c55a67235b6556b21dcaef46c00200 (diff) | |
download | kutter-0216201cb6b9b486a75e446ca1cb2bbd18f329d7.tar.gz kutter-0216201cb6b9b486a75e446ca1cb2bbd18f329d7.tar.xz kutter-0216201cb6b9b486a75e446ca1cb2bbd18f329d7.zip |
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>
Diffstat (limited to 'klippy/corexy.py')
-rw-r--r-- | klippy/corexy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/corexy.py b/klippy/corexy.py index a2b99248..773b46d6 100644 --- a/klippy/corexy.py +++ b/klippy/corexy.py @@ -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): |