If you have a robot, use for example, the following code while driving:
leftMotor.setmotor(_CCW, 0); rightMotor.setmotor(_CCW, 0);
The robot will turn the left wheel off first, then delay, and then the right wheel, causing the robot to turn 10-20 degrees left.
This is caused by
Is there a reason that this delay is here? Whatever the reason is, blocking the entire code for 100 ms is not the solution. I highly recommend removing the delay, it is not appropriate. If there are I²C problems, these must be solved in a different way than this.
If you have a robot, use for example, the following code while driving:
leftMotor.setmotor(_CCW, 0); rightMotor.setmotor(_CCW, 0);The robot will turn the left wheel off first, then delay, and then the right wheel, causing the robot to turn 10-20 degrees left.
This is caused by
WEMOS_Motor_Shield_Arduino_Library/src/WEMOS_Motor.cpp
Line 114 in 3497cb3
Is there a reason that this delay is here? Whatever the reason is, blocking the entire code for 100 ms is not the solution. I highly recommend removing the delay, it is not appropriate. If there are I²C problems, these must be solved in a different way than this.