diff options
author | Jure Žabkar <jure.zabkar@fri.uni-lj.si> | 2015-12-15 13:13:49 +0100 |
---|---|---|
committer | Jure Žabkar <jure.zabkar@fri.uni-lj.si> | 2015-12-15 13:17:48 +0100 |
commit | 0883cb2a6b0bac23bd7553618f4e8db7c882a757 (patch) | |
tree | 37bc932914857cf3572c7961f9b80f336f00988f /robot/problems/introduction/wall1m | |
parent | 6cfee9293d18efed76dc2c83d7a00b1b40230bbf (diff) |
Popravki programov pred zagovorom projekta.
Diffstat (limited to 'robot/problems/introduction/wall1m')
-rw-r--r-- | robot/problems/introduction/wall1m/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/robot/problems/introduction/wall1m/common.py b/robot/problems/introduction/wall1m/common.py index 42b4067..e8a5917 100644 --- a/robot/problems/introduction/wall1m/common.py +++ b/robot/problems/introduction/wall1m/common.py @@ -15,10 +15,10 @@ robot.connect_motor( 'left' ) robot.connect_motor( 'right' ) robot.connect_sensor( 'ultrasonic' ) robot.move_steering( 'on', power=80 ) -while robot.ultrasonic_sensor_measure( 'distance-cm' ) > 500: +while robot.ultrasonic_sensor_measure( 'distance-cm' ) > 50: pass robot.move_steering( 'on', power=20 ) -while robot.ultrasonic_sensor_measure( 'distance-cm' ) > 200: +while robot.ultrasonic_sensor_measure( 'distance-cm' ) > 20: pass robot.move_steering( 'off' ) ''' |