aboutsummaryrefslogtreecommitdiffstats
path: root/System/test_Return_Home.py
blob: 244f99f41e33fbfdcae2fbc6b36ca5ac6040c750 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from system import System
from time import sleep
        
# Main program
sys = System()
sys.initialize()

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()