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

make B11 able to control both motors in one command #520

Open
davidelang opened this issue Aug 5, 2019 · 4 comments
Open

make B11 able to control both motors in one command #520

davidelang opened this issue Aug 5, 2019 · 4 comments

Comments

@davidelang
Copy link
Contributor

If I understand the login in reading the b11 code, you can't issue commands for both left and right motors at the same time. Please consider fixing this.

@blurfl
Copy link
Collaborator

blurfl commented Aug 5, 2019

Is the desired operation that the two motors run simultaneously, or sequentially? If sequentially, should they run in the order listed in the gcode line?

@davidelang
Copy link
Contributor Author

davidelang commented Aug 5, 2019 via email

@blurfl
Copy link
Collaborator

blurfl commented Aug 5, 2019

Presently, B11 runs a motor in the given direction at the given speed for the given time. Modifying that to run both motors simultaneously looks simple, I've ginned it up and tested it.

Presently B10 reports the encoder value chain length of the axis specified:

B10 L
[Measure: 1756.27]

B10 R
[Measure: 1757.54]

blurfl added a commit to blurfl/Firmware that referenced this issue Aug 5, 2019
Presently, B11 runs a motor in the given direction at the given speed for the given time. Modify that to run both motors simultaneously.
@davidelang
Copy link
Contributor Author

one of the things on my (very long) todo list is to make versions of the B commands that let you move and report by encoder counts, not distance. I really think the internal work should be happening by encoder counts as integer values, only converting to/from real-world distance when evaluating g-code or reporting

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