Open gargakshit opened 7 years ago
I'm seeing the same issue - servo resets position when calling attach()
, instead of just staying where it is. Except for this issue this library is great - exactly what I was looking for - thanks!
Same here, unfortunately this makes the library unusable for my project :-(.
Hi @gargakshit, thanks for clarifying, and offering a work-around. I'm the owner of the library. I will admit that I have not had time recently to work on this repo. I'm am looking for someone to help resolve some of the other open issues and pull requests.
@pvanallen Sir, should I re-open the issue???
@gargakshit this issue does not occur for me using the standard Servo library.
When I use write() directly after attach() it still moves to 0 before moving to the desired value, even when wait = false. This doesn't happen using the Servo library.
I've remedied it by exposing DEFAULT_PULSE_WIDTH from the library, reading the servo position then setting it before calling attach().
@jackdewhurst Hey, thanks for the update. This solved the issue.
Sent from my YU5010 using FastHub
@jackdewhurst, @gargakshit I've reopened this issue - Jack, could you submit a pull request and I'll integrate it? Or just post the changes. Thanks!
What's the status???
@gargakshit Could you post the code you used to resolve this?
Hi, I am having the same issue. when attach a servo, the servo moves to 0. I need to avoid this, thanks
I create the PR to fix this issue. I have not tested the PR yet, because I don't have servo motor. It would be helpful, if you could test it.
My servo comes to 0 when I use attach function.
Here is the code I used:
include
VarSpeedServo test;
void setup() { // put your setup code here, to run onc test.attach(2); }
void loop() { // put your main code here, to run repeatedly: }