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:
parent
369da2ce6a
commit
d9bf21bf9c
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user