update
This commit is contained in:
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'])
|
||||
|
14
software/raspberry pi/service/hexapod.service
Normal file
14
software/raspberry pi/service/hexapod.service
Normal file
@ -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…
x
Reference in New Issue
Block a user