Skip to content

Commit 7acccde

Browse files
author
marcusw
committed
Fixing one of the mindsensors examples.
1 parent e3da875 commit 7acccde

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/mindsensors/LineLeader.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
b = nxt.locator.find_one_brick()#find brick and connect
88
s = MSLineLeader(b, PORT_1) #which sensor, brick and port
99

10-
s.command(c.Commands.SENSOR_WAKE) #sending commands
11-
s.set_pid('i', 25) # p, i, or d depending on which you want
12-
s.set_pid_divisor('i', 32) #same as above
13-
s.set_set_point(50)
10+
s.command(s.Commands.SENSOR_WAKE) #sending commands
1411
print s.get_steering()
1512
print 'Result: ' + str(bin(s.get_result())) #to print result as byte
1613
print 'Average: ' + str(s.get_average()) #Inserting text before values

0 commit comments

Comments
 (0)