From: Jiri Vlasak Date: Thu, 21 Feb 2019 13:59:25 +0000 (+0100) Subject: Rename go function X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hubacji1/autiminipoci.git/commitdiff_plain/0ff44ab6f2080915c3c66abd014944f584928a99?ds=sidebyside Rename go function --- diff --git a/go_and_stop.py b/go_and_stop.py index 454c8b3..5941b2b 100644 --- a/go_and_stop.py +++ b/go_and_stop.py @@ -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()