]> rtime.felk.cvut.cz Git - hubacji1/autiminipoci.git/blobdiff - go_and_stop.py
Rename go function
[hubacji1/autiminipoci.git] / go_and_stop.py
index 454c8b3c1549d1f831e9d7a91011b06d2cce783f..5941b2bd0bf19f32ffc167c1647ee2c3dd1c02ec 100644 (file)
@@ -10,7 +10,7 @@ BACK = PWM(Pin(15), freq=1000)
 
 dist = 40
 
-def get_dist():
+def go():
     """Read data from ultrasonic sensor and drive car if no obstacle."""
     global dist
     BACK.duty(0)
@@ -39,4 +39,4 @@ def get_dist():
     return
 
 if __name__ == "__main__":
-    get_dist()
+    go()