]> rtime.felk.cvut.cz Git - hubacji1/autiminipoci.git/commitdiff
Rename go function
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Thu, 21 Feb 2019 13:59:25 +0000 (14:59 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Thu, 21 Feb 2019 13:59:25 +0000 (14:59 +0100)
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()