Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sequencePlay function only playing 1st position point #36

Open
Dirk275 opened this issue Sep 8, 2020 · 2 comments
Open

sequencePlay function only playing 1st position point #36

Dirk275 opened this issue Sep 8, 2020 · 2 comments

Comments

@Dirk275
Copy link

Dirk275 commented Sep 8, 2020

First time I have tested the sequencePlay function:

With an own program but also with the original example "ServoSequence" the sequencePlay function only plays the first position point, then does nothing else.
Is there a way around it?

@Dirk275
Copy link
Author

Dirk275 commented Sep 8, 2020

Still any activity here???

@Dirk275
Copy link
Author

Dirk275 commented Sep 9, 2020

The ServoSequence example doesn't work for me.
If I change the main loop like this:

void loop() {
if (sensorValue > 200) {
for(int i = 0; i < 4; i++) {
myservo1.sequencePlay(slow, 3);
while(myservo1.isMoving()) delay(50);
}
} else {
// ...
}
delay(2);
}

... the sequence is played correctly.
But: why do I have to use a loop for the sequencePlay function, that should play the loop by itself?
And why do I have to wait for the end of each sequence point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant