1
0
mirror of https://github.com/undera/pylgbst.git synced 2020-11-18 19:37:26 -08:00

Make it run more powerful

This commit is contained in:
Andrey Pohilko 2017-09-21 14:21:01 +03:00
parent 369da2ce6a
commit d9bf21bf9c

View File

@ -34,7 +34,7 @@ robot.motor_A.subscribe(on_turn, granularity=30)
while running:
# turn around, measuring luminosity
lum_values = {}
robot.turn(RIGHT, degrees=360, speed=0.1)
robot.turn(RIGHT, degrees=360, speed=0.2)
# get max luminosity angle
amin = min(lum_values.keys())