mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-07 23:17:37 -06: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:
parent
20b404ecf5
commit
0216201cb6
8 changed files with 12 additions and 12 deletions
|
@ -605,7 +605,7 @@ class GCodeParser:
|
|||
["%s:%.6f" % (s.get_name(), s.get_commanded_position())
|
||||
for s in steppers])
|
||||
kinematic_pos = " ".join(["%s:%.6f" % (a, v)
|
||||
for a, v in zip("XYZE", kin.get_position())])
|
||||
for a, v in zip("XYZE", kin.calc_position())])
|
||||
toolhead_pos = " ".join(["%s:%.6f" % (a, v) for a, v in zip(
|
||||
"XYZE", self.toolhead.get_position())])
|
||||
gcode_pos = " ".join(["%s:%.6f" % (a, v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue