Skip to content

Commit d19615c

Browse files
committed
Fix indenting in ultrasonic_sensor_test.py
1 parent fa91f4c commit d19615c

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

nxt/nxt_python/test_scripts/ultrasonic_sensor_test.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,20 @@ def test_sensors(b):
1919
us.command(us.Commands.CONTINUOUS_MEASUREMENT)
2020
start = rospy.Time.now()
2121
while rospy.Time.now() < start+rospy.Duration(5.0):
22-
print 'CONTINUOUS MEASUREMENT DISTANCE:', us.get_distance()
23-
time.sleep(0.1)
22+
print "CONTINUOUS MEASUREMENT DISTANCE:", us.get_distance()
23+
time.sleep(0.1)
2424

2525
us.command(us.Commands.OFF) # Turn off the sensor
26-
print '\n'
26+
print "\n"
2727

2828
start = rospy.Time.now()
2929
while rospy.Time.now() < start+rospy.Duration(6.0):
3030
print "SENSOR WILL MEASURE SINGLE-SHOT DISTANCE IN 2 sec..."
3131
time.sleep(2.0)
32-
33-
us.command(us.Commands.SINGLE_SHOT)
34-
35-
print 'DISTANCE:', us.get_distance()
36-
time.sleep(0.5)
37-
print '\n'
32+
us.command(us.Commands.SINGLE_SHOT)
33+
print "DISTANCE:", us.get_distance()
34+
time.sleep(0.5)
35+
print "\n"
3836

3937
us.command(us.Commands.OFF) # Turn off the sensor
4038

0 commit comments

Comments
 (0)