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

Feature Request - Easing for Allbot Move #2

Open
TobiasVdb opened this issue Jan 13, 2017 · 1 comment
Open

Feature Request - Easing for Allbot Move #2

TobiasVdb opened this issue Jan 13, 2017 · 1 comment
Assignees

Comments

@TobiasVdb
Copy link

Please add overload method to allow for easing in the ::move method of the library.

I tried an overload method for the ::move function in the libary.
I tried it myself, but it's not working :).

//void ALLBOT::move(int servo, int angle, int start, int duration)
BOT.move(hipFrontLeft,10,45,100);

// start: beginning value,angle: change in value, duration
void ALLBOT::move(int servo, int angle, int start, int duration)
{
for (int pos=start; pos<duration; pos++){
//move servo from 0 and 140 degrees forward
int moveValue = angle*(pos/=duration)pospos + start;
Serial.println("moving to angle" + moveValue);
_servo[servo].move(moveValue);
_servo[servo].tick();
delay(15); //wait for the servo to move
}
//_servo[servo].move(angle);
}

(Based on https://github.com/tobiastoft/ArduinoEasing)

@BrenuDev BrenuDev self-assigned this Aug 31, 2017
@BrenuDev
Copy link
Contributor

Sorry for the late answer.
We're currently looking into it.
Did you make any progress with it?

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

2 participants