Update kuukar_motion.py

This commit is contained in:
Siwat Sirichai 2022-12-12 16:35:45 +07:00
parent 42463e14d6
commit da809ad79d
1 changed files with 1 additions and 2 deletions

View File

@ -159,7 +159,7 @@ class motion:
while True:
if self.roaming:
self.__roam_handle()
time.sleep(0.3)
time.sleep(0.5)
def __roam_handle(self):
if self.sensors.sonar_get_distance()<500:
@ -167,6 +167,5 @@ class motion:
time.sleep(0.1)
self.drive(25)
time.sleep(0.5)
time.sleep(0.5)
if not self.roaming:
self.stop()