mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-23 22:54:10 -06:00
kinematics: report all axis limits (min/max)
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
parent
a5ebe5825a
commit
e68cf08d15
9 changed files with 81 additions and 15 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue