From 1aaedba9db101aaba478348fcdf34eb14fd01a63 Mon Sep 17 00:00:00 2001 From: ayseidman <44843240+ayseidman@users.noreply.github.com> Date: Wed, 27 Oct 2021 12:14:53 +0300 Subject: [PATCH] Update linefollower.py More explanatory comments has been added. --- Line Follower/linefollower.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Line Follower/linefollower.py b/Line Follower/linefollower.py index 1ed4076..a33c686 100644 --- a/Line Follower/linefollower.py +++ b/Line Follower/linefollower.py @@ -52,8 +52,9 @@ class Car: sum_weights = 1 sum_values = 1 sensors = [] -# SETUP + +# Setup Configurations GPIO.setup(leftm_fwd, GPIO.OUT) GPIO.setup(leftm_bck, GPIO.OUT) GPIO.setup(left_en, GPIO.OUT) @@ -71,6 +72,7 @@ class Car: GPIO.setup(sensor8, GPIO.IN) time.sleep(50 / 1000.0) +# Left and right pwm's left_pwm = GPIO.PWM(left_en, 100) right_pwm = GPIO.PWM(right_en, 100)