Keyboard+motion+RobotLane

This commit is contained in:
Siwat Sirichai 2022-12-11 21:34:17 +07:00
parent 649e908448
commit ad16c4908e
5 changed files with 53 additions and 4 deletions

View file

@ -16,7 +16,7 @@ class cv:
def _cv_loop(self):
while True:
img = self.capture_image()
stop_sign = self.detect_sign(img)
##stop_sign = self.detect_sign(img)
def get_road_curve(self, frame):
pass

View file

@ -132,8 +132,8 @@ class motion:
self.motor_write(MOTOR_FL_F, MOTOR_FL_R, abs(leftSpeed))
self.motor_write(MOTOR_FR_F, MOTOR_FR_R, abs(rightSpeed))
##self.motor_write(MOTOR_RL_F, MOTOR_RL_R, speed)
##self.motor_write(MOTOR_RR_F, MOTOR_RR_R, speed)
self.motor_write(MOTOR_RL_F, MOTOR_RL_R, speed)
self.motor_write(MOTOR_RR_F, MOTOR_RR_R, speed)
time.sleep(t)