diff --git a/app.py b/app.py index 54e3f81..e622055 100644 --- a/app.py +++ b/app.py @@ -18,8 +18,6 @@ lcd = kuukar_lcd.lcd(motion, sensors) environment = kuukar_environment.environment(lcd, leds, sensors) collision = kuukar_collision.collision(mcu, lcd, leds) -motion.roam_start() - while True: temp = sensors.get_temperature() humid = sensors.get_humidity_pct() diff --git a/kuukar/kuukar_motion.py b/kuukar/kuukar_motion.py index 6af9846..0bc4a3b 100644 --- a/kuukar/kuukar_motion.py +++ b/kuukar/kuukar_motion.py @@ -93,6 +93,8 @@ class motion: def roam_stop(self): self.roaming = False + time.sleep(0.5) + self.stop() def is_roaming(self) -> bool: return self.roaming @@ -133,7 +135,4 @@ class motion: else: self.turn(-23, TURN_TIME_FS_90DEG_MS) self.drive(30) - self.stop() - - print("stopping") time.sleep(0.5) \ No newline at end of file