Update MainRobotLane.py
This commit is contained in:
		
							parent
							
								
									150399d63d
								
							
						
					
					
						commit
						0fe992396d
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -28,8 +28,9 @@ def main():
 | 
				
			||||||
        if curveVal<0.05: curveVal=0
 | 
					        if curveVal<0.05: curveVal=0
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        if curveVal>-0.08: curveVal=0
 | 
					        if curveVal>-0.08: curveVal=0
 | 
				
			||||||
    car.motion.skt_drive(0.3,-curveVal*sen,0.05)
 | 
					    car.motion.skt_drive(0.3,-curveVal*sen)
 | 
				
			||||||
    print(curveVal)
 | 
					    turn_value = -curveVal*sen
 | 
				
			||||||
 | 
					    print("Curve Value : " + curveVal + "Turn Value : "+ turn_value)
 | 
				
			||||||
    cv2.waitKey(1)
 | 
					    cv2.waitKey(1)
 | 
				
			||||||
     
 | 
					     
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue