force_move: Use strings for axes to clear in clear_homing_state()
Pass a string such as "xyz" to kin.clear_homing_state(). This makes the parameter a little less cryptic. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -116,10 +116,10 @@ class DeltesianKinematics:
|
||||
for axis_name in homing_axes:
|
||||
axis = "xyz".index(axis_name)
|
||||
self.homed_axis[axis] = True
|
||||
def clear_homing_state(self, axes):
|
||||
for i, _ in enumerate(self.limits):
|
||||
if i in axes:
|
||||
self.homed_axis[i] = False
|
||||
def clear_homing_state(self, clear_axes):
|
||||
for axis, axis_name in enumerate("xyz"):
|
||||
if axis_name in clear_axes:
|
||||
self.homed_axis[axis] = False
|
||||
def home(self, homing_state):
|
||||
homing_axes = homing_state.get_axes()
|
||||
home_xz = 0 in homing_axes or 2 in homing_axes
|
||||
|
||||
Reference in New Issue
Block a user