Skip to content

Library is very slow #4

Open
Open
@L0laapk3

Description

@L0laapk3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions