aboutsummaryrefslogtreecommitdiffstats
path: root/System/Tests/test_Return_Home.py
blob: 9f45925823871c49d472d0ac137c79e328fc6f00 (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(4)
ang,lin = sys.measure()
sleep(0.01)
while lin < 10:
    ang,lin = sys.measure()
    sleep(0.01)
sys.return_home()