add calibrate_line command
This commit is contained in:
		
							
								
								
									
										3
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								main.py
									
									
									
									
									
								
							@@ -87,6 +87,9 @@ def ws_handler():
 | 
				
			|||||||
            # for terminating delays in code
 | 
					            # for terminating delays in code
 | 
				
			||||||
            sumorobot.terminate = True
 | 
					            sumorobot.terminate = True
 | 
				
			||||||
            #print("Got stop")
 | 
					            #print("Got stop")
 | 
				
			||||||
 | 
					        elif data == b"calibrate_line":
 | 
				
			||||||
 | 
					            sumorobot.calibrate_line()
 | 
				
			||||||
 | 
					            #print("Got calibrate")
 | 
				
			||||||
        elif b"Gone" in data:
 | 
					        elif b"Gone" in data:
 | 
				
			||||||
            print("Server said 410 Gone, attempting to reconnect...")
 | 
					            print("Server said 410 Gone, attempting to reconnect...")
 | 
				
			||||||
            conn = uwebsockets.connect(url)
 | 
					            conn = uwebsockets.connect(url)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user