-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
[BUG] G2/G3 Arc Math Error for min_segments variable #20258
Comments
I threw together a constexpr function to verify that a negative
I also verified that the proposed method inverts the issue, rather than correcting it.
I'm not entirely sure how this fits into the larger arc code, but the solution seems far simpler.
I don't really intend to do further work with this, at least for now. Hopefully this helps someone else evaluate whether something needs to be repaired here. |
@yysh12 did you have actual print problems that caused you to investigate this? |
Not sure. I was having problems where gaps between some parts of the circle appeared different than others parts of the same circle and I was trying to determine if the points generated by marlin significantly differed from what Cura generates using linear movements and that is when I noticed this in the code. So possibly, but it could also possibly be that my tolerances in the post processing arcwelder plugin are too wide. I am still working out all the math in both projects and it will probably take me a while to get through it all. Also, I am away from my printer for possibly 4-6 months, so I won't be able to test any of it myself until then. |
I flagged it as |
Sounds good. Thanks again for everything Jason! |
Fix has been merged. Closing issue. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug Description
Following from a discussion in the discord chat, I am unsure if this is a bug or not, so the community would have to first confirm if this is an actual marlin bug or I made a math error myself somewhere, but thought I'd just post it here just in case it is a bug. Basically, it appears as though equivalent arc moves in opposite directions use different number of minimum segments. i.e. 60 degrees G2 clockwise uses more segments than 60 degrees G3 counterclockwise.
Current Version:
Suggested Fix:
My math/problem visually described:
https://cdn.discordapp.com/attachments/496524752211410952/779457197926645780/image.png
The text was updated successfully, but these errors were encountered: