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

output: add functions for custom motor speed ramping #28

Merged
merged 1 commit into from Jan 18, 2020
Merged

output: add functions for custom motor speed ramping #28

merged 1 commit into from Jan 18, 2020

Conversation

JakubVanek
Copy link
Contributor

Hi everyone,

this PR exposes the EV3 motor ramping functionality.

Best regards,

Jakub

@JakubVanek
Copy link
Contributor Author

I have tested this patch and it works correctly.
Test program:

#include "ev3.h"
#include "ev3_command.h"

int main() {

    RotateMotorRamp(OUT_AD, 100, 180, 360, 180, true);
    RotateMotorRampNoWait(OUT_A, -50, 10, 180, 10, true);
    RotateMotorRampNoWait(OUT_D, +50, 10, 180, 10, true);
    Wait(1000);

    return 0;
}

Video of the motors: https://photos.app.goo.gl/hCEJkwBtkHZgr4fY9

@JakubVanek JakubVanek marked this pull request as ready for review January 12, 2020 14:03
@a3f a3f force-pushed the master branch 3 times, most recently from 6835acd to 1e3733f Compare January 18, 2020 00:51
@a3f a3f merged commit 694a9ed into c4ev3:master Jan 18, 2020
@JakubVanek JakubVanek deleted the feature/ramps branch January 18, 2020 12:25
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

Successfully merging this pull request may close these issues.

None yet

2 participants