projects
/
fresonbot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
exchanging encoders
[fresonbot.git]
/
test_motors.py
1
from Fresonbot import Fresonbot
2
import time
3
4
t = 1
5
R1 = Fresonbot()
6
7
print ("Drive forward for 1 seconds")
8
R1.motion(50,50)
9
time.sleep(t)
10
11
print ("Drive backward for 1 seconds")
12
R1.motion(-50,-50)
13
time.sleep(t)
14
15
print ("Turn left for 1 seconds")
16
R1.motion(-50,50)
17
time.sleep(t)
18
19
print ("Turn right for 1 seconds")
20
R1.motion(50,-50)
21
time.sleep(t)
22
23
24
R1.stop()