Skip to content

Servo not waiting until move complete before executing another move #22

Description

The code below sets up and initiates a move from 20 degrees to 170 degrees and then back to 20 degrees all at full speed waiting for each move to complete before starting the next:

`VarSpeedServo servo1;
servo1.attach(5);
servo1.write(20, 0);
servo1.wait();

servo1.write(170, 0);
servo1.wait();

servo1.write(20, 0);
servo1.wait();`

However the servo is not completing the move to 170 degrees before returning to 20 degrees.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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