From be642d68570bd1ecbb0e63edd7304c05f916c769 Mon Sep 17 00:00:00 2001 From: Sukal Date: Mon, 25 Sep 2023 17:35:52 +0200 Subject: [PATCH] Tested Line Following with different track shape --- .../Programs /Follow_line_intensity_reflected_light.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Follow_the_line/Programs /Follow_line_intensity_reflected_light.py b/Follow_the_line/Programs /Follow_line_intensity_reflected_light.py index 94d4b97..80a5a7b 100644 --- a/Follow_the_line/Programs /Follow_line_intensity_reflected_light.py +++ b/Follow_the_line/Programs /Follow_line_intensity_reflected_light.py @@ -41,12 +41,12 @@ while True: m_l_speed_percent= max_speed_percent*cs_l_percent m_r_speed_percent= max_speed_percent*cs_r_percent # make sure percentage is not higher than possible (100%) and signal it through lights - if m_l_speed_percent >= 100: + if m_l_speed_percent > 100: m_l_speed_percent = 0 leds.set_color("LEFT", "AMBER") else: leds.set_color("LEFT", "GREEN") - if m_r_speed_percent >= 100: + if m_r_speed_percent > 100: m_r_speed_percent = 0 leds.set_color("RIGHT", "AMBER") else: