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

s3_motorSet sometimes advances a wheels position, when changing speed from 0 to 0 #178

Open
dlcarrier opened this issue Oct 27, 2018 · 0 comments

Comments

@dlcarrier
Copy link

The s3_motorSet command, in s3.c, may advance either wheel's position, when the speed is changed from 0 to 0, while the other wheel is set to a non-zero speed. The following program repeatedly sets the left wheel speed to 25, and the right one to 0, but the right wheel advances often enough with each call to have noticeable movement:

#include "simpletools.h"
#include "s3.h"

int main() {
  s3_setup();
  while(1){
    pause(10);
    s3_motorSet(25, 0, 0);
  }    
}

Each call to s3_motorSet appears to have a change of advancing the right wheel, and while frequent calls make the movement obvious, it is still noticeable on any individual call where the uncommanded position advancement occurs.

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

No branches or pull requests

2 participants