def __init__(self, ctrl): super().__init__(ctrl) self.ctrl = ctrl self.planner = bbctrl.Planner(ctrl) ctrl.state.set('cycle', 'idle') PeriodicCallback(self._update_cycle, 1000, ctrl.ioloop).start() ctrl.state.add_listener(self._update) super().reboot()
def __init__(self, ctrl): super().__init__(ctrl) self.ctrl = ctrl self.planner = bbctrl.Planner(ctrl) ctrl.state.set('cycle', 'idle') self._update_cycle_cb(False) ctrl.state.add_listener(self._update) super().reboot()
def __init__(self, ctrl, avr): super().__init__(ctrl, avr) self.ctrl = ctrl self.mlog = self.ctrl.log.get('Mach') self.planner = bbctrl.Planner(ctrl) self.unpausing = False ctrl.state.set('cycle', 'idle') ctrl.state.add_listener(self._update) super().reboot()