Update main.py
This commit is contained in:
		
							
								
								
									
										9
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								main.py
									
									
									
									
									
								
							@@ -88,9 +88,12 @@ def ws_handler():
 | 
				
			|||||||
            sumorobot.move(STOP)
 | 
					            sumorobot.move(STOP)
 | 
				
			||||||
            # for terminating delays in code
 | 
					            # for terminating delays in code
 | 
				
			||||||
            sumorobot.terminate = True
 | 
					            sumorobot.terminate = True
 | 
				
			||||||
        elif b'calibrate_line' in data:
 | 
					        elif b'calibrate_line_value' in data:
 | 
				
			||||||
            sumorobot.calibrate_line()
 | 
					            sumorobot.calibrate_line_value()
 | 
				
			||||||
            #print('calibrate')
 | 
					            #print('calibrate_line')
 | 
				
			||||||
 | 
					        elif b'calibrate_line_threshold' in data:
 | 
				
			||||||
 | 
					            sumorobot.calibrate_line_threshold()
 | 
				
			||||||
 | 
					            #print('calibrate_threshold')
 | 
				
			||||||
        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