master
Zhengyu Peng 3 years ago
parent a3dc31f459
commit 593075afe4

@ -66,7 +66,7 @@ class Hexapod(Thread):
# length units are in mm
# time units are in ms
with open('./config.json', 'r') as read_file:
with open('/home/pi/hexapod/software/raspberry pi/config.json', 'r') as read_file:
self.config = json.load(read_file)
self.mount_x = np.array(self.config['legMountX'])

@ -0,0 +1,14 @@
[Unit]
Description=Hexapod Service
After=multi-user.target
Conflicts=getty@tty1.service
[Service]
Type=simple
User=pi
Group=pi
ExecStart=/usr/bin/python3 /home/pi/edenbridge/camera.py -c /home/pi/edenbridge/front_door.json
StandardInput=tty-force
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save