From 07e4a65ef0499edb7597e41a190e7f64c6601ad7 Mon Sep 17 00:00:00 2001 From: Tanja Sukal Date: Tue, 10 Sep 2024 12:34:15 +0000 Subject: [PATCH] Update 'Follow_the_line/Programs /Follow_line_color_recognition.py' --- Follow_the_line/Programs /Follow_line_color_recognition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Follow_the_line/Programs /Follow_line_color_recognition.py b/Follow_the_line/Programs /Follow_line_color_recognition.py index bf6aff8..1aba557 100644 --- a/Follow_the_line/Programs /Follow_line_color_recognition.py +++ b/Follow_the_line/Programs /Follow_line_color_recognition.py @@ -43,7 +43,7 @@ while True: m_left.on(SpeedPercent(0)) m_right.on(SpeedPercent(speed_percent_alone)) sleep(0.1) - elif cs_left.color == line_color and cs_right.color == line_color : #if both coloursensors detect the defined line-color, the robot stops because it has no direction + elif cs_left.color == line_color and cs_right.color == line_color : #if both colour sensors detect the defined line-color, the robot stops because it has no direction m_right.stop() m_left.stop() leds.set_color("LEFT", "RED") # both leds light red