Update kuukar_motion.py

This commit is contained in:
Siwat Sirichai 2022-12-10 15:05:27 +07:00
parent 2bb53969d4
commit ec1bf540e6
1 changed files with 2 additions and 0 deletions

View File

@ -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))