Keyboard+motion+RobotLane
This commit is contained in:
parent
649e908448
commit
ad16c4908e
5 changed files with 53 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue