From 5be893b6ed5e86252ce04c8d0d8fd1300a2c3294 Mon Sep 17 00:00:00 2001 From: Tanja Sukal Date: Tue, 10 Sep 2024 12:35:53 +0000 Subject: [PATCH] Update 'Follow_the_line/Programs /Follow_line_intensity_reflected_light.py' --- .../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 3e1c990..3a7551e 100644 --- a/Follow_the_line/Programs /Follow_line_intensity_reflected_light.py +++ b/Follow_the_line/Programs /Follow_line_intensity_reflected_light.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 - +# Version 1.2 from 03/08/23 from time import sleep import ev3dev2 as ev3 from ev3dev2.motor import Motor, SpeedPercent, OUTPUT_A, OUTPUT_B, OUTPUT_C, OUTPUT_D @@ -31,7 +31,7 @@ range = (Floor - Line) # while-loop: the robot drives as long as the programm is not stopped while True: - # the detected intensity of the two colorsensors are measured + # the detected intensity of the two color sensors are measured cs_r_intensity = cs_right.reflected_light_intensity cs_l_intensity = cs_left.reflected_light_intensity # calculate percentage of intensity from given range