Add support for G2 & G3 commands that use radius R instead of I & J. #541
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.
What does this pull request do?
Adds support for G2 & G3 commands that use radius R instead of I & J.
e.g.
G02 X2.0 Y6.0 R2.0The code only executes if R is provided in G2 or G3 command. If R, I & J are provided then I & J will be ignored.
Previously this was not supported and code execution would fail if the command was used.
Calculations are copied from MarlinFirmware
MarlinFirmware/Marlin@c2744d8
Does this firmware change affect kinematics or any part of the calibration process?
No.
How can this pull request be tested?
Turn on verbose debugging to see calculated points in console output.
This has not been tested on physical machine. I will not have access to a machine for a while.
Rendered output:
http://www.helmancnc.com/cnc-g02-circular-interpolation-clockwise-cnc-milling-sample-program/
Test G2 code
Test G3 code
GroundControl/WebControl
This PR will need to match changes to GroundControl and WebControl so that they render the commands correctly.
WebControl PR https://github.com/madgrizzle/WebControl/pull/137