-
Notifications
You must be signed in to change notification settings - Fork 52
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
Repeated small move #64
Comments
Thanks for the report. It is on our list to actually have some smooth 'jogging' feature with input e.g. from a joystick, but sometimes other projects come into the way :) @lromor do you think it would be possible to configure the queue length at runtime ? We could have an |
I have to think about it a little bit more, but it sounds indeed more straightforward than implementing the direct motors control on the PRU. I would probably just leave https://github.com/hzeller/beagleg/blob/main/src/planner.cc#L267 |
@lromor added a new command
Maybe a number a biit above one might be good, something like |
I'm trying to run repeated small move to approach the tool very closely to an object. The exact position of the object is not known before doing this operation. Thus while i'm pressing a button, small move commands (
G0X0.005F300
) are sended every 10ms. In previous versions of machine-control, this action worked well and allowed to get an accurate positioning of the tool.Since the "new" planner has been released (2 years ago), this operation is not working anymore, moving only occurred when I stop sending commands. It seems to come from the planner. In the method
Planner::Impl::issue_motor_move_if_possible
, while theplanning_buffer_ size
is < to theplanning_buffer_capacity
, the planner wait to enqueue segments inmotor_ops_
.In my use case, the move commands are thus treated when I stop sending commands, or when the planning_buffer get full.
In the past version, the segments were enqueue when at least 3 segments were requested.
Is there any idea to fix this ?
I tried another approach that is to send a large move G0X300, and send M0 to stop the move when I want. But it appears that the M0 is treated after G0X300. Maybe I missed something ?
The text was updated successfully, but these errors were encountered: