stepper: Do not call itersolve_set_commanded_pos() after homing
Now that the homing code does not use get_commanded_position(), it is no longer necessary to alter the low-level commanded position after a homing move. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
fa433c7f04
commit
9396431c6b
|
@ -134,8 +134,7 @@ class MCU_stepper:
|
||||||
mcu_pos_dist = params['pos'] * self._step_dist
|
mcu_pos_dist = params['pos'] * self._step_dist
|
||||||
if self._invert_dir:
|
if self._invert_dir:
|
||||||
mcu_pos_dist = -mcu_pos_dist
|
mcu_pos_dist = -mcu_pos_dist
|
||||||
self._ffi_lib.itersolve_set_commanded_pos(
|
self._mcu_position_offset = mcu_pos_dist - self.get_commanded_position()
|
||||||
self._stepper_kinematics, mcu_pos_dist - self._mcu_position_offset)
|
|
||||||
def set_trapq(self, tq):
|
def set_trapq(self, tq):
|
||||||
if tq is None:
|
if tq is None:
|
||||||
ffi_main, self._ffi_lib = chelper.get_ffi()
|
ffi_main, self._ffi_lib = chelper.get_ffi()
|
||||||
|
|
Loading…
Reference in New Issue