Update kuukar_motion.py
This commit is contained in:
parent
2bb53969d4
commit
ec1bf540e6
|
@ -97,6 +97,8 @@ class motion:
|
|||
elif leftSpeed<-100: leftSpeed= -100
|
||||
if rightSpeed>100: rightSpeed=100
|
||||
elif rightSpeed<-100: rightSpeed= -100
|
||||
if speed>100: speed=100
|
||||
elif speed<-100: speed= -100
|
||||
|
||||
self.motor_write(MOTOR_FL_F, MOTOR_FL_R, abs(leftSpeed))
|
||||
self.motor_write(MOTOR_FR_F, MOTOR_FR_R, abs(rightSpeed))
|
||||
|
|
Loading…
Reference in New Issue