fine_tune_zoffset.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:RoboLCD 作者: victorevector 项目源码 文件源码
def make_line(self):
        if not self.line_lock:

            #Lock the button down for a better user experience
            self.line_lock = True
            Logger.info("Locked!")
            Clock.schedule_once(self.unlock, 18.00)

            pos = pconsole.get_position()
            while not pos:
                pos = pconsole.get_position()

            Logger.info("self.x is at: " + str(self.x) + " position x is at: " + str(pos[0]))
            if self.mode == "L2R":
                if float(pos[0]) < self.max_x_travel:
                    self._line()
                else:
                    self.warn_and_restart()
            elif self.mode == "R2L":
                if float(pos[0]) > self.max_x_travel:
                    self._line()
                else:
                    self.warn_and_restart()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号