aboutsummaryrefslogtreecommitdiffstats
path: root/System/initialize_system.py
blob: 38b71343cd0296fb23e15f3bb4a81602b7b79129 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This file should be run on system startup. It will initialize the linear position to the center so that all tests originate from a proper position.
# The center is found by using the hardware limit switches
from system import System
import RPi.GPIO as GPIO
        
# Main program
print("Got to init")
sys = System()
sys.initialize()
GPIO.cleanup()


##debug version
#print("alive")
#sys = System()
#limit_negative_pin = 19
#while(1):
#    print(GPIO.input(limit_negative_pin))