solve_skt_drive_issue
add absolute to speed FR, FL
This commit is contained in:
parent
0b7bf21ddb
commit
2bb53969d4
1 changed files with 2 additions and 2 deletions
|
@ -98,8 +98,8 @@ class motion:
|
|||
if rightSpeed>100: rightSpeed=100
|
||||
elif rightSpeed<-100: rightSpeed= -100
|
||||
|
||||
self.motor_write(MOTOR_FL_F, MOTOR_FL_R, leftSpeed)
|
||||
self.motor_write(MOTOR_FR_F, MOTOR_FR_R, rightSpeed)
|
||||
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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue