stepper: Query the stepper mcu position during startup

Try to keep the host mcu_position synchronized with the
micro-controller by querying during startup and after every homing
event.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-04-02 12:18:05 -04:00
parent 33dcb38297
commit 24586f0c31
3 changed files with 12 additions and 8 deletions

View file

@ -122,7 +122,7 @@ class MCU_trsync:
params = self._trsync_query_cmd.send([self._oid,
self.REASON_HOST_REQUEST])
for s in self._steppers:
s.note_homing_end(did_trigger=True) # XXX
s.note_homing_end()
return params['trigger_reason']
class MCU_endstop: