diff options
author | Janar Sööt <janar.soot@gmail.com> | 2020-12-28 00:37:32 +0200 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2020-12-28 10:19:57 -0500 |
commit | e68cf08d15a985ecce7497b58408ee233dd54eb9 (patch) | |
tree | b79435a0b1346686abfd31ccdb4f3c2c0f6e2f23 /klippy/kinematics/rotary_delta.py | |
parent | a5ebe5825aa6bbb58b3c755fab77b3472cceed8a (diff) | |
download | kutter-e68cf08d15a985ecce7497b58408ee233dd54eb9.tar.gz kutter-e68cf08d15a985ecce7497b58408ee233dd54eb9.tar.xz kutter-e68cf08d15a985ecce7497b58408ee233dd54eb9.zip |
kinematics: report all axis limits (min/max)
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
Diffstat (limited to 'klippy/kinematics/rotary_delta.py')
-rw-r--r-- | klippy/kinematics/rotary_delta.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/klippy/kinematics/rotary_delta.py b/klippy/kinematics/rotary_delta.py index c11dd6f6..2901ca60 100644 --- a/klippy/kinematics/rotary_delta.py +++ b/klippy/kinematics/rotary_delta.py @@ -4,7 +4,7 @@ # # This file may be distributed under the terms of the GNU GPLv3 license. import math, logging -import stepper, mathutil, chelper +import stepper, mathutil, chelper, homing class RotaryDeltaKinematics: def __init__(self, toolhead, config): @@ -122,7 +122,14 @@ class RotaryDeltaKinematics: limit_xy2 = -1. self.limit_xy2 = limit_xy2 def get_status(self, eventtime): - return {'homed_axes': '' if self.need_home else 'XYZ'} + max_xy = math.sqrt(self.max_xy2) + axes_min = [-max_xy, -max_xy, self.min_z, 0.] + axes_max = [max_xy, max_xy, self.max_z, 0.] + return { + 'homed_axes': '' if self.need_home else 'XYZ', + 'axis_minimum': homing.Coord(*axes_min), + 'axis_maximum': homing.Coord(*axes_max) + } def get_calibration(self): return self.calibration |