Update MainRobotLane.py
This commit is contained in:
parent
f0fed976cf
commit
649e908448
|
@ -28,9 +28,9 @@ def main():
|
|||
if curveVal<0.05: curveVal=0
|
||||
else:
|
||||
if curveVal>-0.08: curveVal=0
|
||||
car.motion.skt_drive(0.3,-curveVal*sen)
|
||||
car.motion.skt_drive(0.4,-curveVal*sen,0.05)
|
||||
turn_value = -curveVal*sen
|
||||
print("Curve Value : " + curveVal + "Turn Value : "+ turn_value)
|
||||
print("Curve Value : " + str(curveVal) + "Turn Value : "+ str(turn_value))
|
||||
cv2.waitKey(1)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue