update
This commit is contained in:
		@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user