mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-08 15:37:31 -06:00
homing: Support querying the current status of endstops
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
c8ff439722
commit
0685802cb8
6 changed files with 75 additions and 17 deletions
|
@ -67,6 +67,8 @@ class CartKinematics:
|
|||
def motor_off(self, move_time):
|
||||
for stepper in self.steppers:
|
||||
stepper.motor_enable(move_time, 0)
|
||||
def query_endstops(self, move_time):
|
||||
return homing.QueryEndstops(["x", "y", "z"], self.steppers)
|
||||
def move(self, move_time, move):
|
||||
inv_accel = 1. / move.accel
|
||||
inv_cruise_v = 1. / move.cruise_v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue