(self, steps)
| 62 | sleep(self.delay) |
| 63 | |
| 64 | def move_steps(self, steps): |
| 65 | direction = steps < 0 # < clockwise positive |
| 66 | steps = abs(int(steps)) |
| 67 | |
| 68 | self.set_direction(direction) |
| 69 | for _ in range(steps): |
| 70 | self.step() |
| 71 | |
| 72 | # update current steps considering direction |
| 73 | self.current_steps += steps if not direction else -steps |
| 74 | |
| 75 | def move_angle(self, angle): |
| 76 | steps = self.get_steps_for_angle(abs(angle)) |
no test coverage detected