From 649e908448f8c1847d3d3eca501b01d6e93caf53 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Sun, 11 Dec 2022 15:51:35 +0700 Subject: [PATCH] Update MainRobotLane.py --- MainRobotLane.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MainRobotLane.py b/MainRobotLane.py index 1357803..c9b6cf8 100644 --- a/MainRobotLane.py +++ b/MainRobotLane.py @@ -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)