Update 'Follow_the_line/Programs /Follow_line_intensity_reflected_light.py'
This commit is contained in:
parent
07e4a65ef0
commit
5be893b6ed
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user