homing: Support querying the current status of endstops

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2016-09-22 11:09:20 -04:00
parent c8ff439722
commit 0685802cb8
6 changed files with 75 additions and 17 deletions

View file

@ -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