blob: c46d9574c9e16761b9eb3e0b03c3a31765099ffe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
from pendulum import System
from time import sleep
# Main program
#print("before system()call")
sys = System()
#print("after system() call")
sys.initialize()
#print("after sys.inintalize called")
ang,lin = sys.measure()
print("Starting position before moving: " + str(lin))
sys.adjust(0)
ang,lin = sys.measure()
sleep(1.0)
while lin < 10:
ang,lin = sys.measure()
sleep(0.01)
sys.return_home()
|