Пример #1
0
 def sync_stepper(self, stepper):
     epos = self.stepper.get_commanded_position()
     stepper.set_position([epos, 0., 0.])
     stepper.set_trapq(self.trapq)
Пример #2
0
 def sync_stepper(self, stepper):
     toolhead = self.printer.lookup_object('toolhead')
     toolhead.flush_step_generation()
     epos = self.stepper.get_commanded_position()
     stepper.set_position([epos, 0., 0.])
     stepper.set_trapq(self.trapq)