Update Line_Tracking.py

This commit is contained in:
jack G 2019-10-16 09:33:44 +08:00 committed by GitHub
parent 8ec757db75
commit 237d7ad878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,13 +21,13 @@ class Line_Tracking:
if self.LMR==2: if self.LMR==2:
PWM.setMotorModel(800,800,800,800) PWM.setMotorModel(800,800,800,800)
elif self.LMR==4: elif self.LMR==4:
PWM.setMotorModel(-1400,-1400,1400,1400) PWM.setMotorModel(-1500,-1500,2500,2500)
elif self.LMR==6: elif self.LMR==6:
PWM.setMotorModel(-800,-800,1200,1200) PWM.setMotorModel(-2000,-2000,4000,4000)
elif self.LMR==1: elif self.LMR==1:
PWM.setMotorModel(1400,1400,-1400,-1400) PWM.setMotorModel(2500,2500,-1500,-1500)
elif self.LMR==3: elif self.LMR==3:
PWM.setMotorModel(1200,1200,-800,-800) PWM.setMotorModel(4000,4000,-2000,-2000)
elif self.LMR==7: elif self.LMR==7:
pass pass