aboutsummaryrefslogtreecommitdiffstats
path: root/System_Python/initialize_system.py
diff options
context:
space:
mode:
authorRaspberry Pi <pi@umn.edu>2019-10-29 16:01:35 -0500
committerRaspberry Pi <pi@umn.edu>2019-10-29 16:01:35 -0500
commitc52d6aeec9cb5dd23c458095ad213c9908577b6c (patch)
tree2a57f9266b57cd53753407a8208e6f424ec0d983 /System_Python/initialize_system.py
parentMeasured linear movement from physical system. Slightly modified test_Motor t... (diff)
parentAdd better limit handling to system: when a limit is triggered, return to the... (diff)
downloadee4511w-c52d6aeec9cb5dd23c458095ad213c9908577b6c.tar
ee4511w-c52d6aeec9cb5dd23c458095ad213c9908577b6c.tar.gz
ee4511w-c52d6aeec9cb5dd23c458095ad213c9908577b6c.tar.bz2
ee4511w-c52d6aeec9cb5dd23c458095ad213c9908577b6c.tar.lz
ee4511w-c52d6aeec9cb5dd23c458095ad213c9908577b6c.tar.xz
ee4511w-c52d6aeec9cb5dd23c458095ad213c9908577b6c.tar.zst
ee4511w-c52d6aeec9cb5dd23c458095ad213c9908577b6c.zip
Resolved merge conflicts.
Diffstat (limited to 'System_Python/initialize_system.py')
-rw-r--r--System_Python/initialize_system.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/System_Python/initialize_system.py b/System_Python/initialize_system.py
new file mode 100644
index 0000000..4eb287a
--- /dev/null
+++ b/System_Python/initialize_system.py
@@ -0,0 +1,7 @@
+# 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
+
+# Main program
+sys = System()
+sys.initialize()