Skip to content

Commit

Permalink
added get_status
Browse files Browse the repository at this point in the history
  • Loading branch information
nick3621 committed Dec 11, 2024
1 parent 0c88c2d commit 2707262
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions klippy/kinematics/dual_gantry.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,15 @@ def check_move(self, move):
move.limit_speed(self.max_z_velocity * z_ratio,
self.max_z_accel * z_ratio)

def get_status(self, eventtime):
axes = [a for a, (l, h) in zip("xyzuv", self.limits) if l <= h]
return {
'homed_axes': "".join(axes),
'axis_minimum': [self.axes_min.x, self.axes_min.y, self.axes_min.z,
self.axes_min.u, self.axes_min.v],
'axis_maximum': [self.axes_max.x, self.axes_max.y, self.axes_max.z,
self.axes_max.u, self.axes_max.v]
}

def load_kinematics(toolhead, config):
return DualGantryKinematics(toolhead, config)

0 comments on commit 2707262

Please sign in to comment.