Update kuukar_motion.py
This commit is contained in:
parent
42463e14d6
commit
da809ad79d
|
@ -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()
|
Loading…
Reference in New Issue