Open
Conversation
Collaborator
|
There seems to be a conflict with other changes to interp_g7x.cc Your change: Existing code in Master: Is it possible that this is already fixed? |
Contributor
Author
|
I'll have a look soon, but I'm not sure it solves the same problem.
I will also improve my patch, since == on floating point numbers is not
a good idea.
andypugh ***@***.***> wrote:
andypugh left a comment (LinuxCNC/linuxcnc#3790)
There seems to be a conflict with other changes to interp_g7x.cc
```
<<<<<<< 2.9
if(std::abs(imag(location)-x)>tolerance || (*p)->ep()==location) {
=======
// We have added our move commands for the last path, we end the
// recursive function before calculating and adding intersections.
if (p==std::prev(end()))
return;
if(std::abs(imag(location)-x)>tolerance) {
>>>>>> master
```
Is it possible that this is already fixed?
…--
Reply to this email directly or view it on GitHub:
#3790 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The following program created an infinite loop, this patch fixes that
#<_initial>=20
#<_final>=19.726
#<_champher>=0.5
#<_zmax>=0
#<_zmin>=-25
#=2
G54
G7
G18
G21
T2M6G43
o100 sub
o101 if [#<_champher> gt 0]
G1 X[#<_final>-2.0001*#<_champher>]
Z#<_zmax>
X#<_final>C#<_champher>
o101 else
X#<_final>
o101 endif
W-5
U0.5
Z#<_zmin>
X#<_initial>
o100 endsub
M3 G96 S200 d1400
G95 F0.12
G52 z[0.1-#]
;m7
G71 Q100 Z[#<_zmax>+0.8+#] X#<_initial> D# I# R0.3
G52 z0
;m7
g42
G70 Q100 Z[#<_zmax>+1] X#<_initial> D# P1
g40
M9
G0X[#<_initial>+5]
M2